var oIr=Object.defineProperty;var lIr=(e,t,r)=>t in e?oIr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gi=(e,t,r)=>lIr(e,typeof t!="symbol"?t+"":t,r);import{r as ue,R as Er,b as odt,j as ct,a as w9,$ as g$}from"./vendor-react.js?v=1775123024591";import{a as O1,c as ml}from"./_commonjsHelpers.js?v=1775123024591";import{_ as ea}from"./preload-helper.js?v=1775123024591";import{c as sO}from"./_commonjs-dynamic-modules.js?v=1775123024591";function cIr(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uIr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bAn=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var hIr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dIr=ue.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:u,...h},f)=>ue.createElement("svg",{ref:f,...hIr,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:bAn("lucide",s),...h},[...u.map(([p,m])=>ue.createElement(p,m)),...Array.isArray(o)?o:[o]]));/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ta=(e,t)=>{const r=ue.forwardRef(({className:a,...s},o)=>ue.createElement(dIr,{ref:o,iconNode:t,className:bAn(`lucide-${uIr(e)}`,a),...s}));return r.displayName=`${e}`,r};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fIr=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],sSa=Ta("AppWindow",fIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pIr=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],oSa=Ta("ArrowRightLeft",pIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gIr=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],lSa=Ta("BookOpen",gIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mIr=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],cSa=Ta("Boxes",mIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bIr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uSa=Ta("Check",bIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yIr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hSa=Ta("ChevronDown",yIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vIr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dSa=Ta("ChevronRight",vIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _Ir=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fSa=Ta("ChevronUp",_Ir);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],pSa=Ta("CircleAlert",wIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EIr=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gSa=Ta("CircleCheckBig",EIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mSa=Ta("CircleCheck",xIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bSa=Ta("CircleHelp",SIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ySa=Ta("CircleX",TIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vSa=Ta("Circle",CIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AIr=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],_Sa=Ta("CloudUpload",AIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kIr=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],wSa=Ta("CodeXml",kIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RIr=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],ESa=Ta("Component",RIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IIr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],xSa=Ta("Copy",IIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NIr=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],SSa=Ta("Database",NIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OIr=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],TSa=Ta("Download",OIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LIr=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],CSa=Ta("Ellipsis",LIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DIr=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ASa=Ta("ExternalLink",DIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MIr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],kSa=Ta("Eye",MIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PIr=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],RSa=Ta("FileArchive",PIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BIr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ISa=Ta("FileText",BIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FIr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],NSa=Ta("File",FIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $Ir=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],OSa=Ta("FolderOpen",$Ir);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UIr=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],LSa=Ta("FolderPlus",UIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zIr=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],DSa=Ta("Folder",zIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GIr=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],MSa=Ta("GitCommitHorizontal",GIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],PSa=Ta("Globe",qIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HIr=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],BSa=Ta("GraduationCap",HIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VIr=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],FSa=Ta("History",VIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YIr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],$Sa=Ta("Image",YIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],USa=Ta("Info",jIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WIr=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],zSa=Ta("Link",WIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KIr=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],GSa=Ta("LoaderCircle",KIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XIr=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],qSa=Ta("Menu",XIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QIr=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],HSa=Ta("MessageCircle",QIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZIr=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],VSa=Ta("Monitor",ZIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JIr=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],YSa=Ta("Moon",JIr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eNr=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],jSa=Ta("OctagonX",eNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tNr=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],WSa=Ta("Palette",tNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],KSa=Ta("PanelLeftClose",nNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],XSa=Ta("PanelLeftOpen",rNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],QSa=Ta("PanelsTopLeft",iNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aNr=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],ZSa=Ta("PenLine",aNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sNr=[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],JSa=Ta("PencilRuler",sNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oNr=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],e4a=Ta("Pencil",oNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lNr=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],t4a=Ta("Plus",lNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cNr=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],n4a=Ta("RefreshCw",cNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uNr=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],r4a=Ta("Rocket",uNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hNr=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],i4a=Ta("RotateCcw",hNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dNr=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],a4a=Ta("RotateCw",dNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fNr=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],s4a=Ta("Save",fNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pNr=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],o4a=Ta("Search",pNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gNr=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],l4a=Ta("Settings",gNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mNr=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],c4a=Ta("Smartphone",mNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bNr=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],u4a=Ta("Sparkles",bNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yNr=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],h4a=Ta("SquarePen",yNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vNr=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],d4a=Ta("SquareTerminal",vNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _Nr=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],f4a=Ta("Star",_Nr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wNr=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],p4a=Ta("Sun",wNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ENr=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],g4a=Ta("Tablet",ENr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xNr=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],m4a=Ta("Trash2",xNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SNr=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],b4a=Ta("TriangleAlert",SNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TNr=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],y4a=Ta("Unlink",TNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CNr=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],v4a=Ta("Upload",CNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ANr=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],_4a=Ta("WandSparkles",ANr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kNr=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],w4a=Ta("Wifi",kNr);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RNr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],E4a=Ta("X",RNr);function INr(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const NNr=e=>{switch(e){case"success":return DNr;case"info":return PNr;case"warning":return MNr;case"error":return BNr;default:return null}},ONr=Array(12).fill(0),LNr=({visible:e,className:t})=>Er.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Er.createElement("div",{className:"sonner-spinner"},ONr.map((r,a)=>Er.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),DNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),MNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),PNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),FNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Er.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Er.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$Nr=()=>{const[e,t]=Er.useState(document.hidden);return Er.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Mat=1;class UNr{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:a,...s}=t,o=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Mat++,u=this.toasts.find(f=>f.id===o),h=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),u?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:a}),{...f,...t,id:o,dismissible:h,title:a}):f):this.addToast({title:a,...s,dismissible:h,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=a!==void 0,u;const h=s.then(async p=>{if(u=["resolve",p],Er.isValidElement(p))o=!1,this.create({id:a,type:"default",message:p});else if(GNr(p)&&!p.ok){o=!1;const b=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,_=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"error",description:_,...S})}else if(p instanceof Error){o=!1;const b=typeof r.error=="function"?await r.error(p):r.error,_=typeof r.description=="function"?await r.description(p):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"error",description:_,...S})}else if(r.success!==void 0){o=!1;const b=typeof r.success=="function"?await r.success(p):r.success,_=typeof r.description=="function"?await r.description(p):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"success",description:_,...S})}}).catch(async p=>{if(u=["reject",p],r.error!==void 0){o=!1;const m=typeof r.error=="function"?await r.error(p):r.error,b=typeof r.description=="function"?await r.description(p):r.description,w=typeof m=="object"&&!Er.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:b,...w})}}).finally(()=>{o&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),f=()=>new Promise((p,m)=>h.then(()=>u[0]==="reject"?m(u[1]):p(u[1])).catch(m));return typeof a!="string"&&typeof a!="number"?{unwrap:f}:Object.assign(a,{unwrap:f})},this.custom=(t,r)=>{const a=(r==null?void 0:r.id)||Mat++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const L2=new UNr,zNr=(e,t)=>{const r=(t==null?void 0:t.id)||Mat++;return L2.addToast({title:e,...t,id:r}),r},GNr=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qNr=zNr,HNr=()=>L2.toasts,VNr=()=>L2.getActiveToasts(),x4a=Object.assign(qNr,{success:L2.success,info:L2.info,warning:L2.warning,error:L2.error,custom:L2.custom,message:L2.message,promise:L2.promise,dismiss:L2.dismiss,loading:L2.loading},{getHistory:HNr,getToasts:VNr});INr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function n_e(e){return e.label!==void 0}const YNr=3,jNr="24px",WNr="16px",Xhn=4e3,KNr=356,XNr=14,QNr=45,ZNr=200;function hC(...e){return e.filter(Boolean).join(" ")}function JNr(e){const[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}const eOr=e=>{var t,r,a,s,o,u,h,f,p;const{invert:m,toast:b,unstyled:_,interacting:w,setHeights:S,visibleToasts:C,heights:A,index:k,toasts:I,expanded:N,removeToast:L,defaultRichColors:P,closeButton:M,style:F,cancelButtonStyle:U,actionButtonStyle:$,className:G="",descriptionClassName:B="",duration:Z,position:z,gap:Y,expandByDefault:W,classNames:Q,icons:V,closeButtonAriaLabel:j="Close toast"}=e,[ee,te]=Er.useState(null),[ne,se]=Er.useState(null),[ie,ge]=Er.useState(!1),[ce,be]=Er.useState(!1),[ve,De]=Er.useState(!1),[ye,Ee]=Er.useState(!1),[he,we]=Er.useState(!1),[Ce,Ie]=Er.useState(0),[Le,Fe]=Er.useState(0),Ve=Er.useRef(b.duration||Z||Xhn),Oe=Er.useRef(null),Dt=Er.useRef(null),ot=k===0,sn=k+1<=C,Kt=b.type,Ft=b.dismissible!==!1,Je=b.className||"",ht=b.descriptionClassName||"",et=Er.useMemo(()=>A.findIndex(Dn=>Dn.toastId===b.id)||0,[A,b.id]),qe=Er.useMemo(()=>{var Dn;return(Dn=b.closeButton)!=null?Dn:M},[b.closeButton,M]),He=Er.useMemo(()=>b.duration||Z||Xhn,[b.duration,Z]),Ge=Er.useRef(0),Ye=Er.useRef(0),Ae=Er.useRef(0),Xe=Er.useRef(null),[fe,Qe]=z.split("-"),Ke=Er.useMemo(()=>A.reduce((Dn,zn,vn)=>vn>=et?Dn:Dn+zn.height,0),[A,et]),mt=$Nr(),lt=b.invert||m,$t=Kt==="loading";Ye.current=Er.useMemo(()=>et*Y+Ke,[et,Ke]),Er.useEffect(()=>{Ve.current=He},[He]),Er.useEffect(()=>{ge(!0)},[]),Er.useEffect(()=>{const Dn=Dt.current;if(Dn){const zn=Dn.getBoundingClientRect().height;return Fe(zn),S(vn=>[{toastId:b.id,height:zn,position:b.position},...vn]),()=>S(vn=>vn.filter(Cn=>Cn.toastId!==b.id))}},[S,b.id]),Er.useLayoutEffect(()=>{if(!ie)return;const Dn=Dt.current,zn=Dn.style.height;Dn.style.height="auto";const vn=Dn.getBoundingClientRect().height;Dn.style.height=zn,Fe(vn),S(Cn=>Cn.find(ur=>ur.toastId===b.id)?Cn.map(ur=>ur.toastId===b.id?{...ur,height:vn}:ur):[{toastId:b.id,height:vn,position:b.position},...Cn])},[ie,b.title,b.description,S,b.id,b.jsx,b.action,b.cancel]);const Ut=Er.useCallback(()=>{be(!0),Ie(Ye.current),S(Dn=>Dn.filter(zn=>zn.toastId!==b.id)),setTimeout(()=>{L(b)},ZNr)},[b,L,S,Ye]);Er.useEffect(()=>{if(b.promise&&Kt==="loading"||b.duration===1/0||b.type==="loading")return;let Dn;return N||w||mt?(()=>{if(Ae.current<Ge.current){const Cn=new Date().getTime()-Ge.current;Ve.current=Ve.current-Cn}Ae.current=new Date().getTime()})():(()=>{Ve.current!==1/0&&(Ge.current=new Date().getTime(),Dn=setTimeout(()=>{b.onAutoClose==null||b.onAutoClose.call(b,b),Ut()},Ve.current))})(),()=>clearTimeout(Dn)},[N,w,b,Kt,mt,Ut]),Er.useEffect(()=>{b.delete&&(Ut(),b.onDismiss==null||b.onDismiss.call(b,b))},[Ut,b.delete]);function Jt(){var Dn;if(V!=null&&V.loading){var zn;return Er.createElement("div",{className:hC(Q==null?void 0:Q.loader,b==null||(zn=b.classNames)==null?void 0:zn.loader,"sonner-loader"),"data-visible":Kt==="loading"},V.loading)}return Er.createElement(LNr,{className:hC(Q==null?void 0:Q.loader,b==null||(Dn=b.classNames)==null?void 0:Dn.loader),visible:Kt==="loading"})}const wn=b.icon||(V==null?void 0:V[Kt])||NNr(Kt);var Vn,Wn;return Er.createElement("li",{tabIndex:0,ref:Dt,className:hC(G,Je,Q==null?void 0:Q.toast,b==null||(t=b.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Kt],b==null||(r=b.classNames)==null?void 0:r[Kt]),"data-sonner-toast":"","data-rich-colors":(Vn=b.richColors)!=null?Vn:P,"data-styled":!(b.jsx||b.unstyled||_),"data-mounted":ie,"data-promise":!!b.promise,"data-swiped":he,"data-removed":ce,"data-visible":sn,"data-y-position":fe,"data-x-position":Qe,"data-index":k,"data-front":ot,"data-swiping":ve,"data-dismissible":Ft,"data-type":Kt,"data-invert":lt,"data-swipe-out":ye,"data-swipe-direction":ne,"data-expanded":!!(N||W&&ie),"data-testid":b.testId,style:{"--index":k,"--toasts-before":k,"--z-index":I.length-k,"--offset":`${ce?Ce:Ye.current}px`,"--initial-height":W?"auto":`${Le}px`,...F,...b.style},onDragEnd:()=>{De(!1),te(null),Xe.current=null},onPointerDown:Dn=>{Dn.button!==2&&($t||!Ft||(Oe.current=new Date,Ie(Ye.current),Dn.target.setPointerCapture(Dn.pointerId),Dn.target.tagName!=="BUTTON"&&(De(!0),Xe.current={x:Dn.clientX,y:Dn.clientY})))},onPointerUp:()=>{var Dn,zn,vn;if(ye||!Ft)return;Xe.current=null;const Cn=Number(((Dn=Dt.current)==null?void 0:Dn.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ar=Number(((zn=Dt.current)==null?void 0:zn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ur=new Date().getTime()-((vn=Oe.current)==null?void 0:vn.getTime()),On=ee==="x"?Cn:Ar,Ir=Math.abs(On)/ur;if(Math.abs(On)>=QNr||Ir>.11){Ie(Ye.current),b.onDismiss==null||b.onDismiss.call(b,b),se(ee==="x"?Cn>0?"right":"left":Ar>0?"down":"up"),Ut(),Ee(!0);return}else{var Ln,pr;(Ln=Dt.current)==null||Ln.style.setProperty("--swipe-amount-x","0px"),(pr=Dt.current)==null||pr.style.setProperty("--swipe-amount-y","0px")}we(!1),De(!1),te(null)},onPointerMove:Dn=>{var zn,vn,Cn;if(!Xe.current||!Ft||((zn=window.getSelection())==null?void 0:zn.toString().length)>0)return;const ur=Dn.clientY-Xe.current.y,On=Dn.clientX-Xe.current.x;var Ir;const Ln=(Ir=e.swipeDirections)!=null?Ir:JNr(z);!ee&&(Math.abs(On)>1||Math.abs(ur)>1)&&te(Math.abs(On)>Math.abs(ur)?"x":"y");let pr={x:0,y:0};const Cr=Zr=>1/(1.5+Math.abs(Zr)/20);if(ee==="y"){if(Ln.includes("top")||Ln.includes("bottom"))if(Ln.includes("top")&&ur<0||Ln.includes("bottom")&&ur>0)pr.y=ur;else{const Zr=ur*Cr(ur);pr.y=Math.abs(Zr)<Math.abs(ur)?Zr:ur}}else if(ee==="x"&&(Ln.includes("left")||Ln.includes("right")))if(Ln.includes("left")&&On<0||Ln.includes("right")&&On>0)pr.x=On;else{const Zr=On*Cr(On);pr.x=Math.abs(Zr)<Math.abs(On)?Zr:On}(Math.abs(pr.x)>0||Math.abs(pr.y)>0)&&we(!0),(vn=Dt.current)==null||vn.style.setProperty("--swipe-amount-x",`${pr.x}px`),(Cn=Dt.current)==null||Cn.style.setProperty("--swipe-amount-y",`${pr.y}px`)}},qe&&!b.jsx&&Kt!=="loading"?Er.createElement("button",{"aria-label":j,"data-disabled":$t,"data-close-button":!0,onClick:$t||!Ft?()=>{}:()=>{Ut(),b.onDismiss==null||b.onDismiss.call(b,b)},className:hC(Q==null?void 0:Q.closeButton,b==null||(a=b.classNames)==null?void 0:a.closeButton)},(Wn=V==null?void 0:V.close)!=null?Wn:FNr):null,(Kt||b.icon||b.promise)&&b.icon!==null&&((V==null?void 0:V[Kt])!==null||b.icon)?Er.createElement("div",{"data-icon":"",className:hC(Q==null?void 0:Q.icon,b==null||(s=b.classNames)==null?void 0:s.icon)},b.promise||b.type==="loading"&&!b.icon?b.icon||Jt():null,b.type!=="loading"?wn:null):null,Er.createElement("div",{"data-content":"",className:hC(Q==null?void 0:Q.content,b==null||(o=b.classNames)==null?void 0:o.content)},Er.createElement("div",{"data-title":"",className:hC(Q==null?void 0:Q.title,b==null||(u=b.classNames)==null?void 0:u.title)},b.jsx?b.jsx:typeof b.title=="function"?b.title():b.title),b.description?Er.createElement("div",{"data-description":"",className:hC(B,ht,Q==null?void 0:Q.description,b==null||(h=b.classNames)==null?void 0:h.description)},typeof b.description=="function"?b.description():b.description):null),Er.isValidElement(b.cancel)?b.cancel:b.cancel&&n_e(b.cancel)?Er.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||U,onClick:Dn=>{n_e(b.cancel)&&Ft&&(b.cancel.onClick==null||b.cancel.onClick.call(b.cancel,Dn),Ut())},className:hC(Q==null?void 0:Q.cancelButton,b==null||(f=b.classNames)==null?void 0:f.cancelButton)},b.cancel.label):null,Er.isValidElement(b.action)?b.action:b.action&&n_e(b.action)?Er.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||$,onClick:Dn=>{n_e(b.action)&&(b.action.onClick==null||b.action.onClick.call(b.action,Dn),!Dn.defaultPrevented&&Ut())},className:hC(Q==null?void 0:Q.actionButton,b==null||(p=b.classNames)==null?void 0:p.actionButton)},b.action.label):null)};function Qhn(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tOr(e,t){const r={};return[e,t].forEach((a,s)=>{const o=s===1,u=o?"--mobile-offset":"--offset",h=o?WNr:jNr;function f(p){["top","right","bottom","left"].forEach(m=>{r[`${u}-${m}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?f(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?r[`${u}-${p}`]=h:r[`${u}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):f(h)}),r}const S4a=Er.forwardRef(function(t,r){const{id:a,invert:s,position:o="bottom-right",hotkey:u=["altKey","KeyT"],expand:h,closeButton:f,className:p,offset:m,mobileOffset:b,theme:_="light",richColors:w,duration:S,style:C,visibleToasts:A=YNr,toastOptions:k,dir:I=Qhn(),gap:N=XNr,icons:L,containerAriaLabel:P="Notifications"}=t,[M,F]=Er.useState([]),U=Er.useMemo(()=>a?M.filter(ie=>ie.toasterId===a):M.filter(ie=>!ie.toasterId),[M,a]),$=Er.useMemo(()=>Array.from(new Set([o].concat(U.filter(ie=>ie.position).map(ie=>ie.position)))),[U,o]),[G,B]=Er.useState([]),[Z,z]=Er.useState(!1),[Y,W]=Er.useState(!1),[Q,V]=Er.useState(_!=="system"?_:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=Er.useRef(null),ee=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=Er.useRef(null),ne=Er.useRef(!1),se=Er.useCallback(ie=>{F(ge=>{var ce;return(ce=ge.find(be=>be.id===ie.id))!=null&&ce.delete||L2.dismiss(ie.id),ge.filter(({id:be})=>be!==ie.id)})},[]);return Er.useEffect(()=>L2.subscribe(ie=>{if(ie.dismiss){requestAnimationFrame(()=>{F(ge=>ge.map(ce=>ce.id===ie.id?{...ce,delete:!0}:ce))});return}setTimeout(()=>{odt.flushSync(()=>{F(ge=>{const ce=ge.findIndex(be=>be.id===ie.id);return ce!==-1?[...ge.slice(0,ce),{...ge[ce],...ie},...ge.slice(ce+1)]:[ie,...ge]})})})}),[M]),Er.useEffect(()=>{if(_!=="system"){V(_);return}if(_==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const ie=window.matchMedia("(prefers-color-scheme: dark)");try{ie.addEventListener("change",({matches:ge})=>{V(ge?"dark":"light")})}catch{ie.addListener(({matches:ce})=>{try{V(ce?"dark":"light")}catch(be){console.error(be)}})}},[_]),Er.useEffect(()=>{M.length<=1&&z(!1)},[M]),Er.useEffect(()=>{const ie=ge=>{var ce;if(u.every(De=>ge[De]||ge.code===De)){var ve;z(!0),(ve=j.current)==null||ve.focus()}ge.code==="Escape"&&(document.activeElement===j.current||(ce=j.current)!=null&&ce.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[u]),Er.useEffect(()=>{if(j.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,ne.current=!1)}},[j.current]),Er.createElement("section",{ref:r,"aria-label":`${P} ${ee}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((ie,ge)=>{var ce;const[be,ve]=ie.split("-");return U.length?Er.createElement("ol",{key:ie,dir:I==="auto"?Qhn():I,tabIndex:-1,ref:j,className:p,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":be,"data-x-position":ve,style:{"--front-toast-height":`${((ce=G[0])==null?void 0:ce.height)||0}px`,"--width":`${KNr}px`,"--gap":`${N}px`,...C,...tOr(m,b)},onBlur:De=>{ne.current&&!De.currentTarget.contains(De.relatedTarget)&&(ne.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,te.current=De.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Y||z(!1)},onDragEnd:()=>z(!1),onPointerDown:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},U.filter(De=>!De.position&&ge===0||De.position===ie).map((De,ye)=>{var Ee,he;return Er.createElement(eOr,{key:De.id,icons:L,index:ye,toast:De,defaultRichColors:w,duration:(Ee=k==null?void 0:k.duration)!=null?Ee:S,className:k==null?void 0:k.className,descriptionClassName:k==null?void 0:k.descriptionClassName,invert:s,visibleToasts:A,closeButton:(he=k==null?void 0:k.closeButton)!=null?he:f,interacting:Y,position:ie,style:k==null?void 0:k.style,unstyled:k==null?void 0:k.unstyled,classNames:k==null?void 0:k.classNames,cancelButtonStyle:k==null?void 0:k.cancelButtonStyle,actionButtonStyle:k==null?void 0:k.actionButtonStyle,closeButtonAriaLabel:k==null?void 0:k.closeButtonAriaLabel,removeToast:se,toasts:U.filter(we=>we.position==De.position),heights:G.filter(we=>we.position==De.position),setHeights:B,expandByDefault:h,gap:N,expanded:Z,swipeDirections:t.swipeDirections})})):null}))});function T4a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dj(e){"@babel/helpers - typeof";return dj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dj(e)}function nOr(e,t){if(dj(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(dj(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yAn(e){var t=nOr(e,"string");return dj(t)=="symbol"?t:t+""}function rOr(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,yAn(a.key),a)}}function C4a(e,t,r){return t&&rOr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ldt(e,t,r){return(t=yAn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zhn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function A4a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zhn(Object(r),!0).forEach(function(a){ldt(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zhn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Pat(){return Pat=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Pat.apply(null,arguments)}var vAn={exports:{}},rh={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cdt=Symbol.for("react.element"),udt=Symbol.for("react.portal"),x5e=Symbol.for("react.fragment"),S5e=Symbol.for("react.strict_mode"),T5e=Symbol.for("react.profiler"),C5e=Symbol.for("react.provider"),A5e=Symbol.for("react.context"),iOr=Symbol.for("react.server_context"),k5e=Symbol.for("react.forward_ref"),R5e=Symbol.for("react.suspense"),I5e=Symbol.for("react.suspense_list"),N5e=Symbol.for("react.memo"),O5e=Symbol.for("react.lazy"),aOr=Symbol.for("react.offscreen"),_An;_An=Symbol.for("react.module.reference");function LS(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cdt:switch(e=e.type,e){case x5e:case T5e:case S5e:case R5e:case I5e:return e;default:switch(e=e&&e.$$typeof,e){case iOr:case A5e:case k5e:case O5e:case N5e:case C5e:return e;default:return t}}case udt:return t}}}rh.ContextConsumer=A5e;rh.ContextProvider=C5e;rh.Element=cdt;rh.ForwardRef=k5e;rh.Fragment=x5e;rh.Lazy=O5e;rh.Memo=N5e;rh.Portal=udt;rh.Profiler=T5e;rh.StrictMode=S5e;rh.Suspense=R5e;rh.SuspenseList=I5e;rh.isAsyncMode=function(){return!1};rh.isConcurrentMode=function(){return!1};rh.isContextConsumer=function(e){return LS(e)===A5e};rh.isContextProvider=function(e){return LS(e)===C5e};rh.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cdt};rh.isForwardRef=function(e){return LS(e)===k5e};rh.isFragment=function(e){return LS(e)===x5e};rh.isLazy=function(e){return LS(e)===O5e};rh.isMemo=function(e){return LS(e)===N5e};rh.isPortal=function(e){return LS(e)===udt};rh.isProfiler=function(e){return LS(e)===T5e};rh.isStrictMode=function(e){return LS(e)===S5e};rh.isSuspense=function(e){return LS(e)===R5e};rh.isSuspenseList=function(e){return LS(e)===I5e};rh.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===x5e||e===T5e||e===S5e||e===R5e||e===I5e||e===aOr||typeof e=="object"&&e!==null&&(e.$$typeof===O5e||e.$$typeof===N5e||e.$$typeof===C5e||e.$$typeof===A5e||e.$$typeof===k5e||e.$$typeof===_An||e.getModuleId!==void 0)};rh.typeOf=LS;vAn.exports=rh;var k4a=vAn.exports;function wAn(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=wAn(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function sOr(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=wAn(e))&&(a&&(a+=" "),a+=t);return a}function Bat(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function oOr(e){if(Array.isArray(e))return Bat(e)}function lOr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EAn(e,t){if(e){if(typeof e=="string")return Bat(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bat(e,t):void 0}}function cOr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fat(e){return oOr(e)||lOr(e)||EAn(e)||cOr()}function R4a(e){for(var t=0,r,a=0,s=e.length;s>=4;++a,s-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var I4a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dd="-ms-",Vae="-moz-",Eu="-webkit-",xAn="comm",hdt="rule",ddt="decl",uOr="@import",hOr="@namespace",SAn="@keyframes",dOr="@layer",TAn=Math.abs,fdt=String.fromCharCode,$at=Object.assign;function fOr(e,t){return _p(e,0)^45?(((t<<2^_p(e,0))<<2^_p(e,1))<<2^_p(e,2))<<2^_p(e,3):0}function CAn(e){return e.trim()}function o7(e,t){return(e=t.exec(e))?e[0]:e}function Ml(e,t,r){return e.replace(t,r)}function NEe(e,t,r){return e.indexOf(t,r)}function _p(e,t){return e.charCodeAt(t)|0}function yF(e,t,r){return e.slice(t,r)}function k3(e){return e.length}function AAn(e){return e.length}function Eie(e,t){return t.push(e),e}function pOr(e,t){return e.map(t).join("")}function Jhn(e,t){return e.filter(function(r){return!o7(r,t)})}var L5e=1,fj=1,kAn=0,pS=0,C1=0,mW="";function D5e(e,t,r,a,s,o,u,h){return{value:e,root:t,parent:r,type:a,props:s,children:o,line:L5e,column:fj,length:u,return:"",siblings:h}}function zN(e,t){return $at(D5e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function IH(e){for(;e.root;)e=zN(e.root,{children:[e]});Eie(e,e.siblings)}function gOr(){return C1}function mOr(){return C1=pS>0?_p(mW,--pS):0,fj--,C1===10&&(fj=1,L5e--),C1}function H3(){return C1=pS<kAn?_p(mW,pS++):0,fj++,C1===10&&(fj=1,L5e++),C1}function oO(){return _p(mW,pS)}function OEe(){return pS}function M5e(e,t){return yF(mW,e,t)}function zse(e){switch(e){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 bOr(e){return L5e=fj=1,kAn=k3(mW=e),pS=0,[]}function yOr(e){return mW="",e}function hXe(e){return CAn(M5e(pS-1,Uat(e===91?e+2:e===40?e+1:e)))}function vOr(e){for(;(C1=oO())&&C1<33;)H3();return zse(e)>2||zse(C1)>3?"":" "}function _Or(e,t){for(;--t&&H3()&&!(C1<48||C1>102||C1>57&&C1<65||C1>70&&C1<97););return M5e(e,OEe()+(t<6&&oO()==32&&H3()==32))}function Uat(e){for(;H3();)switch(C1){case e:return pS;case 34:case 39:e!==34&&e!==39&&Uat(C1);break;case 40:e===41&&Uat(e);break;case 92:H3();break}return pS}function wOr(e,t){for(;H3()&&e+C1!==57;)if(e+C1===84&&oO()===47)break;return"/*"+M5e(t,pS-1)+"*"+fdt(e===47?e:H3())}function EOr(e){for(;!zse(oO());)H3();return M5e(e,pS)}function RAn(e){return yOr(LEe("",null,null,null,[""],e=bOr(e),0,[0],e))}function LEe(e,t,r,a,s,o,u,h,f){for(var p=0,m=0,b=u,_=0,w=0,S=0,C=1,A=1,k=1,I=0,N="",L=s,P=o,M=a,F=N;A;)switch(S=I,I=H3()){case 40:if(S!=108&&_p(F,b-1)==58){NEe(F+=Ml(hXe(I),"&","&\f"),"&\f",TAn(p?h[p-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:F+=hXe(I);break;case 9:case 10:case 13:case 32:F+=vOr(S);break;case 92:F+=_Or(OEe()-1,7);continue;case 47:switch(oO()){case 42:case 47:Eie(xOr(wOr(H3(),OEe()),t,r,f),f),(zse(S||1)==5||zse(oO()||1)==5)&&k3(F)&&yF(F,-1,void 0)!==" "&&(F+=" ");break;default:F+="/"}break;case 123*C:h[p++]=k3(F)*k;case 125*C:case 59:case 0:switch(I){case 0:case 125:A=0;case 59+m:k==-1&&(F=Ml(F,/\f/g,"")),w>0&&(k3(F)-b||C===0&&S===47)&&Eie(w>32?tdn(F+";",a,r,b-1,f):tdn(Ml(F," ","")+";",a,r,b-2,f),f);break;case 59:F+=";";default:if(Eie(M=edn(F,t,r,p,m,s,h,N,L=[],P=[],b,o),o),I===123)if(m===0)LEe(F,t,M,M,L,o,b,h,P);else{switch(_){case 99:if(_p(F,3)===110)break;case 108:if(_p(F,2)===97)break;default:m=0;case 100:case 109:case 115:}m?LEe(e,M,M,a&&Eie(edn(e,M,M,0,0,s,h,N,s,L=[],b,P),P),s,P,b,h,a?L:P):LEe(F,M,M,M,[""],P,0,h,P)}}p=m=w=0,C=k=1,N=F="",b=u;break;case 58:b=1+k3(F),w=S;default:if(C<1){if(I==123)--C;else if(I==125&&C++==0&&mOr()==125)continue}switch(F+=fdt(I),I*C){case 38:k=m>0?1:(F+="\f",-1);break;case 44:h[p++]=(k3(F)-1)*k,k=1;break;case 64:oO()===45&&(F+=hXe(H3())),_=oO(),m=b=k3(N=F+=EOr(OEe())),I++;break;case 45:S===45&&k3(F)==2&&(C=0)}}return o}function edn(e,t,r,a,s,o,u,h,f,p,m,b){for(var _=s-1,w=s===0?o:[""],S=AAn(w),C=0,A=0,k=0;C<a;++C)for(var I=0,N=yF(e,_+1,_=TAn(A=u[C])),L=e;I<S;++I)(L=CAn(A>0?w[I]+" "+N:Ml(N,/&\f/g,w[I])))&&(f[k++]=L);return D5e(e,t,r,s===0?hdt:h,f,p,m,b)}function xOr(e,t,r,a){return D5e(e,t,r,xAn,fdt(gOr()),yF(e,2,-2),0,a)}function tdn(e,t,r,a,s){return D5e(e,t,r,ddt,yF(e,0,a),yF(e,a+1,-1),a,s)}function IAn(e,t,r){switch(fOr(e,t)){case 5103:return Eu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Eu+e+e;case 4855:return Eu+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Eu+e+Vae+e+dd+e+e;case 5936:switch(_p(e,t+11)){case 114:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Eu+e+dd+e+e;case 6165:return Eu+e+dd+"flex-"+e+e;case 5187:return Eu+e+Ml(e,/(\w+).+(:[^]+)/,Eu+"box-$1$2"+dd+"flex-$1$2")+e;case 5443:return Eu+e+dd+"flex-item-"+Ml(e,/flex-|-self/g,"")+(o7(e,/flex-|baseline/)?"":dd+"grid-row-"+Ml(e,/flex-|-self/g,""))+e;case 4675:return Eu+e+dd+"flex-line-pack"+Ml(e,/align-content|flex-|-self/g,"")+e;case 5548:return Eu+e+dd+Ml(e,"shrink","negative")+e;case 5292:return Eu+e+dd+Ml(e,"basis","preferred-size")+e;case 6060:return Eu+"box-"+Ml(e,"-grow","")+Eu+e+dd+Ml(e,"grow","positive")+e;case 4554:return Eu+Ml(e,/([^-])(transform)/g,"$1"+Eu+"$2")+e;case 6187:return Ml(Ml(Ml(e,/(zoom-|grab)/,Eu+"$1"),/(image-set)/,Eu+"$1"),e,"")+e;case 5495:case 3959:return Ml(e,/(image-set\([^]*)/,Eu+"$1$`$1");case 4968:return Ml(Ml(e,/(.+:)(flex-)?(.*)/,Eu+"box-pack:$3"+dd+"flex-pack:$3"),/space-between/,"justify")+Eu+e+e;case 4200:if(!o7(e,/flex-|baseline/))return dd+"grid-column-align"+yF(e,t)+e;break;case 2592:case 3360:return dd+Ml(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,s){return t=s,o7(a.props,/grid-\w+-end/)})?~NEe(e+(r=r[t].value),"span",0)?e:dd+Ml(e,"-start","")+e+dd+"grid-row-span:"+(~NEe(r,"span",0)?o7(r,/\d+/):+o7(r,/\d+/)-+o7(e,/\d+/))+";":dd+Ml(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return o7(a.props,/grid-\w+-start/)})?e:dd+Ml(Ml(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ml(e,/(.+)-inline(.+)/,Eu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(k3(e)-1-t>6)switch(_p(e,t+1)){case 109:if(_p(e,t+4)!==45)break;case 102:return Ml(e,/(.+:)(.+)-([^]+)/,"$1"+Eu+"$2-$3$1"+Vae+(_p(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~NEe(e,"stretch",0)?IAn(Ml(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ml(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,s,o,u,h,f,p){return dd+s+":"+o+p+(u?dd+s+"-span:"+(h?f:+f-+o)+p:"")+e});case 4949:if(_p(e,t+6)===121)return Ml(e,":",":"+Eu)+e;break;case 6444:switch(_p(e,_p(e,14)===45?18:11)){case 120:return Ml(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Eu+(_p(e,14)===45?"inline-":"")+"box$3$1"+Eu+"$2$3$1"+dd+"$2box$3")+e;case 100:return Ml(e,":",":"+dd)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ml(e,"scroll-","scroll-snap-")+e}return e}function Gse(e,t){for(var r="",a=0;a<e.length;a++)r+=t(e[a],a,e,t)||"";return r}function NAn(e,t,r,a){switch(e.type){case dOr:if(e.children.length)break;case uOr:case hOr:case ddt:return e.return=e.return||e.value;case xAn:return"";case SAn:return e.return=e.value+"{"+Gse(e.children,a)+"}";case hdt:if(!k3(e.value=e.props.join(",")))return""}return k3(r=Gse(e.children,a))?e.return=e.value+"{"+r+"}":""}function N4a(e){var t=AAn(e);return function(r,a,s,o){for(var u="",h=0;h<t;h++)u+=e[h](r,a,s,o)||"";return u}}function O4a(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ddt:e.return=IAn(e.value,e.length,r);return;case SAn:return Gse([zN(e,{value:Ml(e.value,"@","@"+Eu)})],a);case hdt:if(e.length)return pOr(r=e.props,function(s){switch(o7(s,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":IH(zN(e,{props:[Ml(s,/:(read-\w+)/,":"+Vae+"$1")]})),IH(zN(e,{props:[s]})),$at(e,{props:Jhn(r,a)});break;case"::placeholder":IH(zN(e,{props:[Ml(s,/:(plac\w+)/,":"+Eu+"input-$1")]})),IH(zN(e,{props:[Ml(s,/:(plac\w+)/,":"+Vae+"$1")]})),IH(zN(e,{props:[Ml(s,/:(plac\w+)/,dd+"input-$1")]})),IH(zN(e,{props:[s]})),$at(e,{props:Jhn(r,a)});break}return""})}}function pj(e){"@babel/helpers - typeof";return pj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pj(e)}function SOr(e){if(Array.isArray(e))return e}function TOr(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,s,o,u,h=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(a=o.call(r)).done)&&(h.push(a.value),h.length!==t);f=!0);}catch(m){p=!0,s=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw s}}return h}}function zat(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function pdt(e,t){if(e){if(typeof e=="string")return zat(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zat(e,t):void 0}}function COr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4a(e,t){return SOr(e)||TOr(e,t)||pdt(e,t)||COr()}function AOr(e){if(Array.isArray(e))return zat(e)}function kOr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ROr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D4a(e){return AOr(e)||kOr(e)||pdt(e)||ROr()}function IOr(e,t){if(pj(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(pj(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OAn(e){var t=IOr(e,"string");return pj(t)=="symbol"?t:t+""}function NOr(e,t,r){return(t=OAn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ndn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function M4a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ndn(Object(r),!0).forEach(function(a){NOr(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ndn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function P4a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rdn(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,OAn(a.key),a)}}function B4a(e,t,r){return t&&rdn(e.prototype,t),r&&rdn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OOr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qse(e,t){return qse=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qse(e,t)}function F4a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qse(e,t)}function Hse(e){return Hse=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hse(e)}function gdt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gdt=function(){return!!e})()}function LOr(e,t){if(t&&(pj(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OOr(e)}function $4a(e){var t=gdt();return function(){var r,a=Hse(e);if(t){var s=Hse(this).constructor;r=Reflect.construct(a,arguments,s)}else r=a.apply(this,arguments);return LOr(this,r)}}function mSe(e){return mSe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mSe(e)}function LAn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LAn=function(){return!!e})()}function DOr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MOr(e,t){if(t&&(dj(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DOr(e)}function Gat(e,t){return Gat=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Gat(e,t)}function U4a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gat(e,t)}const idn=e=>typeof e=="object"&&e!=null&&e.nodeType===1,adn=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",r_e=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return adn(r.overflowY,t)||adn(r.overflowX,t)||(a=>{const s=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!s&&(s.clientHeight<a.scrollHeight||s.clientWidth<a.scrollWidth)})(e)}return!1},i_e=(e,t,r,a,s,o,u,h)=>o<e&&u>t||o>e&&u<t?0:o<=e&&h<=r||u>=t&&h>=r?o-e-a:u>t&&h<r||o<e&&h>r?u-t+s:0,POr=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},sdn=(e,t)=>{var r,a,s,o;if(typeof document>"u")return[];const{scrollMode:u,block:h,inline:f,boundary:p,skipOverflowHiddenElements:m}=t,b=typeof p=="function"?p:Q=>Q!==p;if(!idn(e))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,w=[];let S=e;for(;idn(S)&&b(S);){if(S=POr(S),S===_){w.push(S);break}S!=null&&S===document.body&&r_e(S)&&!r_e(document.documentElement)||S!=null&&r_e(S,m)&&w.push(S)}const C=(a=(r=window.visualViewport)==null?void 0:r.width)!=null?a:innerWidth,A=(o=(s=window.visualViewport)==null?void 0:s.height)!=null?o:innerHeight,{scrollX:k,scrollY:I}=window,{height:N,width:L,top:P,right:M,bottom:F,left:U}=e.getBoundingClientRect(),{top:$,right:G,bottom:B,left:Z}=(Q=>{const V=window.getComputedStyle(Q);return{top:parseFloat(V.scrollMarginTop)||0,right:parseFloat(V.scrollMarginRight)||0,bottom:parseFloat(V.scrollMarginBottom)||0,left:parseFloat(V.scrollMarginLeft)||0}})(e);let z=h==="start"||h==="nearest"?P-$:h==="end"?F+B:P+N/2-$+B,Y=f==="center"?U+L/2-Z+G:f==="end"?M+G:U-Z;const W=[];for(let Q=0;Q<w.length;Q++){const V=w[Q],{height:j,width:ee,top:te,right:ne,bottom:se,left:ie}=V.getBoundingClientRect();if(u==="if-needed"&&P>=0&&U>=0&&F<=A&&M<=C&&(V===_&&!r_e(V)||P>=te&&F<=se&&U>=ie&&M<=ne))return W;const ge=getComputedStyle(V),ce=parseInt(ge.borderLeftWidth,10),be=parseInt(ge.borderTopWidth,10),ve=parseInt(ge.borderRightWidth,10),De=parseInt(ge.borderBottomWidth,10);let ye=0,Ee=0;const he="offsetWidth"in V?V.offsetWidth-V.clientWidth-ce-ve:0,we="offsetHeight"in V?V.offsetHeight-V.clientHeight-be-De:0,Ce="offsetWidth"in V?V.offsetWidth===0?0:ee/V.offsetWidth:0,Ie="offsetHeight"in V?V.offsetHeight===0?0:j/V.offsetHeight:0;if(_===V)ye=h==="start"?z:h==="end"?z-A:h==="nearest"?i_e(I,I+A,A,be,De,I+z,I+z+N,N):z-A/2,Ee=f==="start"?Y:f==="center"?Y-C/2:f==="end"?Y-C:i_e(k,k+C,C,ce,ve,k+Y,k+Y+L,L),ye=Math.max(0,ye+I),Ee=Math.max(0,Ee+k);else{ye=h==="start"?z-te-be:h==="end"?z-se+De+we:h==="nearest"?i_e(te,se,j,be,De+we,z,z+N,N):z-(te+j/2)+we/2,Ee=f==="start"?Y-ie-ce:f==="center"?Y-(ie+ee/2)+he/2:f==="end"?Y-ne+ve+he:i_e(ie,ne,ee,ce,ve+he,Y,Y+L,L);const{scrollLeft:Le,scrollTop:Fe}=V;ye=Ie===0?0:Math.max(0,Math.min(Fe+ye/Ie,V.scrollHeight-j/Ie+we)),Ee=Ce===0?0:Math.max(0,Math.min(Le+Ee/Ce,V.scrollWidth-ee/Ce+he)),z+=Fe-ye,Y+=Le-Ee}W.push({el:V,top:ye,left:Ee})}return W},BOr=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function z4a(e,t){if(!e.isConnected||!(s=>{let o=s;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const r=(s=>{const o=window.getComputedStyle(s);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((s=>typeof s=="object"&&typeof s.behavior=="function")(t))return t.behavior(sdn(e,t));const a=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:s,top:o,left:u}of sdn(e,BOr(t))){const h=o-r.top+r.bottom,f=u-r.left+r.right;s.scroll({top:h,left:f,behavior:a})}}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},n_.apply(null,arguments)}function FOr(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function $Or(e,t,r){if(gdt())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var s=new(e.bind.apply(e,a));return r&&qse(s,r.prototype),s}function odn(e){var t=typeof Map=="function"?new Map:void 0;return odn=function(a){if(a===null||!FOr(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(a))return t.get(a);t.set(a,s)}function s(){return $Or(a,arguments,Hse(this).constructor)}return s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),qse(s,a)},odn(e)}var DAn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r=1e3,a=6e4,s=36e5,o="millisecond",u="second",h="minute",f="hour",p="day",m="week",b="month",_="quarter",w="year",S="date",C="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|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,I={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(Y){var W=["th","st","nd","rd"],Q=Y%100;return"["+Y+(W[(Q-20)%10]||W[Q]||W[0])+"]"}},N=function(Y,W,Q){var V=String(Y);return!V||V.length>=W?Y:""+Array(W+1-V.length).join(Q)+Y},L={s:N,z:function(Y){var W=-Y.utcOffset(),Q=Math.abs(W),V=Math.floor(Q/60),j=Q%60;return(W<=0?"+":"-")+N(V,2,"0")+":"+N(j,2,"0")},m:function Y(W,Q){if(W.date()<Q.date())return-Y(Q,W);var V=12*(Q.year()-W.year())+(Q.month()-W.month()),j=W.clone().add(V,b),ee=Q-j<0,te=W.clone().add(V+(ee?-1:1),b);return+(-(V+(Q-j)/(ee?j-te:te-j))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:b,y:w,w:m,d:p,D:S,h:f,m:h,s:u,ms:o,Q:_}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},P="en",M={};M[P]=I;var F="$isDayjsObject",U=function(Y){return Y instanceof Z||!(!Y||!Y[F])},$=function Y(W,Q,V){var j;if(!W)return P;if(typeof W=="string"){var ee=W.toLowerCase();M[ee]&&(j=ee),Q&&(M[ee]=Q,j=ee);var te=W.split("-");if(!j&&te.length>1)return Y(te[0])}else{var ne=W.name;M[ne]=W,j=ne}return!V&&j&&(P=j),j||!V&&P},G=function(Y,W){if(U(Y))return Y.clone();var Q=typeof W=="object"?W:{};return Q.date=Y,Q.args=arguments,new Z(Q)},B=L;B.l=$,B.i=U,B.w=function(Y,W){return G(Y,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function Y(Q){this.$L=$(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[F]=!0}var W=Y.prototype;return W.parse=function(Q){this.$d=function(V){var j=V.date,ee=V.utc;if(j===null)return new Date(NaN);if(B.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var te=j.match(A);if(te){var ne=te[2]-1||0,se=(te[7]||"0").substring(0,3);return ee?new Date(Date.UTC(te[1],ne,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)):new Date(te[1],ne,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)}}return new Date(j)}(Q),this.init()},W.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},W.$utils=function(){return B},W.isValid=function(){return this.$d.toString()!==C},W.isSame=function(Q,V){var j=G(Q);return this.startOf(V)<=j&&j<=this.endOf(V)},W.isAfter=function(Q,V){return G(Q)<this.startOf(V)},W.isBefore=function(Q,V){return this.endOf(V)<G(Q)},W.$g=function(Q,V,j){return B.u(Q)?this[V]:this.set(j,Q)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(Q,V){var j=this,ee=!!B.u(V)||V,te=B.p(Q),ne=function(ye,Ee){var he=B.w(j.$u?Date.UTC(j.$y,Ee,ye):new Date(j.$y,Ee,ye),j);return ee?he:he.endOf(p)},se=function(ye,Ee){return B.w(j.toDate()[ye].apply(j.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(Ee)),j)},ie=this.$W,ge=this.$M,ce=this.$D,be="set"+(this.$u?"UTC":"");switch(te){case w:return ee?ne(1,0):ne(31,11);case b:return ee?ne(1,ge):ne(0,ge+1);case m:var ve=this.$locale().weekStart||0,De=(ie<ve?ie+7:ie)-ve;return ne(ee?ce-De:ce+(6-De),ge);case p:case S:return se(be+"Hours",0);case f:return se(be+"Minutes",1);case h:return se(be+"Seconds",2);case u:return se(be+"Milliseconds",3);default:return this.clone()}},W.endOf=function(Q){return this.startOf(Q,!1)},W.$set=function(Q,V){var j,ee=B.p(Q),te="set"+(this.$u?"UTC":""),ne=(j={},j[p]=te+"Date",j[S]=te+"Date",j[b]=te+"Month",j[w]=te+"FullYear",j[f]=te+"Hours",j[h]=te+"Minutes",j[u]=te+"Seconds",j[o]=te+"Milliseconds",j)[ee],se=ee===p?this.$D+(V-this.$W):V;if(ee===b||ee===w){var ie=this.clone().set(S,1);ie.$d[ne](se),ie.init(),this.$d=ie.set(S,Math.min(this.$D,ie.daysInMonth())).$d}else ne&&this.$d[ne](se);return this.init(),this},W.set=function(Q,V){return this.clone().$set(Q,V)},W.get=function(Q){return this[B.p(Q)]()},W.add=function(Q,V){var j,ee=this;Q=Number(Q);var te=B.p(V),ne=function(ge){var ce=G(ee);return B.w(ce.date(ce.date()+Math.round(ge*Q)),ee)};if(te===b)return this.set(b,this.$M+Q);if(te===w)return this.set(w,this.$y+Q);if(te===p)return ne(1);if(te===m)return ne(7);var se=(j={},j[h]=a,j[f]=s,j[u]=r,j)[te]||1,ie=this.$d.getTime()+Q*se;return B.w(ie,this)},W.subtract=function(Q,V){return this.add(-1*Q,V)},W.format=function(Q){var V=this,j=this.$locale();if(!this.isValid())return j.invalidDate||C;var ee=Q||"YYYY-MM-DDTHH:mm:ssZ",te=B.z(this),ne=this.$H,se=this.$m,ie=this.$M,ge=j.weekdays,ce=j.months,be=j.meridiem,ve=function(Ee,he,we,Ce){return Ee&&(Ee[he]||Ee(V,ee))||we[he].slice(0,Ce)},De=function(Ee){return B.s(ne%12||12,Ee,"0")},ye=be||function(Ee,he,we){var Ce=Ee<12?"AM":"PM";return we?Ce.toLowerCase():Ce};return ee.replace(k,function(Ee,he){return he||function(we){switch(we){case"YY":return String(V.$y).slice(-2);case"YYYY":return B.s(V.$y,4,"0");case"M":return ie+1;case"MM":return B.s(ie+1,2,"0");case"MMM":return ve(j.monthsShort,ie,ce,3);case"MMMM":return ve(ce,ie);case"D":return V.$D;case"DD":return B.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return ve(j.weekdaysMin,V.$W,ge,2);case"ddd":return ve(j.weekdaysShort,V.$W,ge,3);case"dddd":return ge[V.$W];case"H":return String(ne);case"HH":return B.s(ne,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return ye(ne,se,!0);case"A":return ye(ne,se,!1);case"m":return String(se);case"mm":return B.s(se,2,"0");case"s":return String(V.$s);case"ss":return B.s(V.$s,2,"0");case"SSS":return B.s(V.$ms,3,"0");case"Z":return te}return null}(Ee)||te.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(Q,V,j){var ee,te=this,ne=B.p(V),se=G(Q),ie=(se.utcOffset()-this.utcOffset())*a,ge=this-se,ce=function(){return B.m(te,se)};switch(ne){case w:ee=ce()/12;break;case b:ee=ce();break;case _:ee=ce()/3;break;case m:ee=(ge-ie)/6048e5;break;case p:ee=(ge-ie)/864e5;break;case f:ee=ge/s;break;case h:ee=ge/a;break;case u:ee=ge/r;break;default:ee=ge}return j?ee:B.a(ee)},W.daysInMonth=function(){return this.endOf(b).$D},W.$locale=function(){return M[this.$L]},W.locale=function(Q,V){if(!Q)return this.$L;var j=this.clone(),ee=$(Q,V,!0);return ee&&(j.$L=ee),j},W.clone=function(){return B.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Y}(),z=Z.prototype;return G.prototype=z,[["$ms",o],["$s",u],["$m",h],["$H",f],["$W",p],["$M",b],["$y",w],["$D",S]].forEach(function(Y){z[Y[1]]=function(W){return this.$g(W,Y[0],Y[1])}}),G.extend=function(Y,W){return Y.$i||(Y(W,Z,G),Y.$i=!0),G},G.locale=$,G.isDayjs=U,G.unix=function(Y){return G(1e3*Y)},G.en=M[P],G.Ls=M,G.p={},G})})(DAn);var UOr=DAn.exports;const Fc=O1(UOr);var MAn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){return function(r,a){var s=a.prototype,o=s.format;s.format=function(u){var h=this,f=this.$locale();if(!this.isValid())return o.bind(this)(u);var p=this.$utils(),m=(u||"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(b){switch(b){case"Q":return Math.ceil((h.$M+1)/3);case"Do":return f.ordinal(h.$D);case"gggg":return h.weekYear();case"GGGG":return h.isoWeekYear();case"wo":return f.ordinal(h.week(),"W");case"w":case"ww":return p.s(h.week(),b==="w"?1:2,"0");case"W":case"WW":return p.s(h.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return p.s(String(h.$H===0?24:h.$H),b==="k"?1:2,"0");case"X":return Math.floor(h.$d.getTime()/1e3);case"x":return h.$d.getTime();case"z":return"["+h.offsetName()+"]";case"zzz":return"["+h.offsetName("long")+"]";default:return b}});return o.bind(this)(m)}}})})(MAn);var zOr=MAn.exports;const PAn=O1(zOr);var BAn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,u=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,f={},p=function(A){return(A=+A)+(A>68?1900:2e3)},m=function(A){return function(k){this[A]=+k}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var I=k.match(/([+-]|\d\d)/g),N=60*I[1]+(+I[2]||0);return N===0?0:I[0]==="+"?-N:N}(A)}],_=function(A){var k=f[A];return k&&(k.indexOf?k:k.s.concat(k.f))},w=function(A,k){var I,N=f.meridiem;if(N){for(var L=1;L<=24;L+=1)if(A.indexOf(N(L,0,k))>-1){I=L>12;break}}else I=A===(k?"pm":"PM");return I},S={A:[h,function(A){this.afternoon=w(A,!1)}],a:[h,function(A){this.afternoon=w(A,!0)}],Q:[s,function(A){this.month=3*(A-1)+1}],S:[s,function(A){this.milliseconds=100*+A}],SS:[o,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[u,m("seconds")],ss:[u,m("seconds")],m:[u,m("minutes")],mm:[u,m("minutes")],H:[u,m("hours")],h:[u,m("hours")],HH:[u,m("hours")],hh:[u,m("hours")],D:[u,m("day")],DD:[o,m("day")],Do:[h,function(A){var k=f.ordinal,I=A.match(/\d+/);if(this.day=I[0],k)for(var N=1;N<=31;N+=1)k(N).replace(/\[|\]/g,"")===A&&(this.day=N)}],w:[u,m("week")],ww:[o,m("week")],M:[u,m("month")],MM:[o,m("month")],MMM:[h,function(A){var k=_("months"),I=(_("monthsShort")||k.map(function(N){return N.slice(0,3)})).indexOf(A)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(A){var k=_("months").indexOf(A)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(A){this.year=p(A)}],YYYY:[/\d{4}/,m("year")],Z:b,ZZ:b};function C(A){var k,I;k=A,I=f&&f.formats;for(var N=(A=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(G,B,Z){var z=Z&&Z.toUpperCase();return B||I[Z]||r[Z]||I[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,W,Q){return W||Q.slice(1)})})).match(a),L=N.length,P=0;P<L;P+=1){var M=N[P],F=S[M],U=F&&F[0],$=F&&F[1];N[P]=$?{regex:U,parser:$}:M.replace(/^\[|\]$/g,"")}return function(G){for(var B={},Z=0,z=0;Z<L;Z+=1){var Y=N[Z];if(typeof Y=="string")z+=Y.length;else{var W=Y.regex,Q=Y.parser,V=G.slice(z),j=W.exec(V)[0];Q.call(B,j),G=G.replace(j,"")}}return function(ee){var te=ee.afternoon;if(te!==void 0){var ne=ee.hours;te?ne<12&&(ee.hours+=12):ne===12&&(ee.hours=0),delete ee.afternoon}}(B),B}}return function(A,k,I){I.p.customParseFormat=!0,A&&A.parseTwoDigitYear&&(p=A.parseTwoDigitYear);var N=k.prototype,L=N.parse;N.parse=function(P){var M=P.date,F=P.utc,U=P.args;this.$u=F;var $=U[1];if(typeof $=="string"){var G=U[2]===!0,B=U[3]===!0,Z=G||B,z=U[2];B&&(z=U[2]),f=this.$locale(),!G&&z&&(f=I.Ls[z]),this.$d=function(V,j,ee,te){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*V);var ne=C(j)(V),se=ne.year,ie=ne.month,ge=ne.day,ce=ne.hours,be=ne.minutes,ve=ne.seconds,De=ne.milliseconds,ye=ne.zone,Ee=ne.week,he=new Date,we=ge||(se||ie?1:he.getDate()),Ce=se||he.getFullYear(),Ie=0;se&&!ie||(Ie=ie>0?ie-1:he.getMonth());var Le,Fe=ce||0,Ve=be||0,Oe=ve||0,Dt=De||0;return ye?new Date(Date.UTC(Ce,Ie,we,Fe,Ve,Oe,Dt+60*ye.offset*1e3)):ee?new Date(Date.UTC(Ce,Ie,we,Fe,Ve,Oe,Dt)):(Le=new Date(Ce,Ie,we,Fe,Ve,Oe,Dt),Ee&&(Le=te(Le).week(Ee).toDate()),Le)}catch{return new Date("")}}(M,$,F,I),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),Z&&M!=this.format($)&&(this.$d=new Date("")),f={}}else if($ instanceof Array)for(var Y=$.length,W=1;W<=Y;W+=1){U[1]=$[W-1];var Q=I.apply(this,U);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}W===Y&&(this.$d=new Date(""))}else L.call(this,P)}}})})(BAn);var GOr=BAn.exports;const FAn=O1(GOr);var P5e={exports:{}};P5e.exports=mdt;P5e.exports.isMobile=mdt;P5e.exports.default=mdt;const qOr=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,HOr=/CrOS/,VOr=/android|ipad|playbook|silk/i;function mdt(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=qOr.test(t)&&!HOr.test(t)||!!e.tablet&&VOr.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var YOr=P5e.exports;const G4a=O1(YOr);function jOr(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function q4a(e,t){if(e==null)return{};var r,a,s=jOr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function WOr(e,t,r){var a=r||{},s=a.noTrailing,o=s===void 0?!1:s,u=a.noLeading,h=u===void 0?!1:u,f=a.debounceMode,p=f===void 0?void 0:f,m,b=!1,_=0;function w(){m&&clearTimeout(m)}function S(A){var k=A||{},I=k.upcomingOnly,N=I===void 0?!1:I;w(),b=!N}function C(){for(var A=arguments.length,k=new Array(A),I=0;I<A;I++)k[I]=arguments[I];var N=this,L=Date.now()-_;if(b)return;function P(){_=Date.now(),t.apply(N,k)}function M(){m=void 0}!h&&p&&!m&&P(),w(),p===void 0&&L>e?h?(_=Date.now(),o||(m=setTimeout(p?M:P,e))):P():o!==!0&&(m=setTimeout(p?M:P,p===void 0?e-L:e))}return C.cancel=S,C}function H4a(e,t,r){var a={},s=a.atBegin,o=s===void 0?!1:s;return WOr(e,t,{debounceMode:o!==!1})}function V4a(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pdt(e))||t){r&&(e=r);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,u=!0,h=!1;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return u=p.done,p},e:function(p){h=!0,o=p},f:function(){try{u||r.return==null||r.return()}finally{if(h)throw o}}}}function KOr(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function XOr(e,t){if(e==null)return{};var r,a,s=KOr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function QOr(e){if(Array.isArray(e))return e}function ZOr(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,s,o,u,h=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(a=o.call(r)).done)&&(h.push(a.value),h.length!==t);f=!0);}catch(m){p=!0,s=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw s}}return h}}function JOr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y4a(e,t){return QOr(e)||ZOr(e,t)||EAn(e,t)||JOr()}const bdt=ue.createContext({});function ydt(e){const t=ue.useRef(null);return t.current===null&&(t.current=e()),t.current}const e9r=typeof window<"u",$An=e9r?ue.useLayoutEffect:ue.useEffect,B5e=ue.createContext(null);function vdt(e,t){e.indexOf(t)===-1&&e.push(t)}function bSe(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const gA=(e,t,r)=>r>t?t:r<e?e:r;let _dt=()=>{};const FO={},UAn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zAn(e){return typeof e=="object"&&e!==null}const GAn=e=>/^0[^.\s]+$/u.test(e);function qAn(e){let t;return()=>(t===void 0&&(t=e()),t)}const cS=e=>e,t9r=(e,t)=>r=>t(e(r)),Lle=(...e)=>e.reduce(t9r),Vse=(e,t,r)=>{const a=t-e;return a===0?1:(r-e)/a};class wdt{constructor(){this.subscriptions=[]}add(t){return vdt(this.subscriptions,t),()=>bSe(this.subscriptions,t)}notify(t,r,a){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,a);else for(let o=0;o<s;o++){const u=this.subscriptions[o];u&&u(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dw=e=>e*1e3,rS=e=>e/1e3;function HAn(e,t){return t?e*(1e3/t):0}const VAn=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,n9r=1e-7,r9r=12;function i9r(e,t,r,a,s){let o,u,h=0;do u=t+(r-t)/2,o=VAn(u,a,s)-e,o>0?r=u:t=u;while(Math.abs(o)>n9r&&++h<r9r);return u}function Dle(e,t,r,a){if(e===t&&r===a)return cS;const s=o=>i9r(o,0,1,e,r);return o=>o===0||o===1?o:VAn(s(o),t,a)}const YAn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jAn=e=>t=>1-e(1-t),WAn=Dle(.33,1.53,.69,.99),Edt=jAn(WAn),KAn=YAn(Edt),XAn=e=>e>=1?1:(e*=2)<1?.5*Edt(e):.5*(2-Math.pow(2,-10*(e-1))),xdt=e=>1-Math.sin(Math.acos(e)),QAn=jAn(xdt),ZAn=YAn(xdt),a9r=Dle(.42,0,1,1),s9r=Dle(0,0,.58,1),JAn=Dle(.42,0,.58,1),o9r=e=>Array.isArray(e)&&typeof e[0]!="number",ekn=e=>Array.isArray(e)&&typeof e[0]=="number",l9r={linear:cS,easeIn:a9r,easeInOut:JAn,easeOut:s9r,circIn:xdt,circInOut:ZAn,circOut:QAn,backIn:Edt,backInOut:KAn,backOut:WAn,anticipate:XAn},c9r=e=>typeof e=="string",ldn=e=>{if(ekn(e)){_dt(e.length===4);const[t,r,a,s]=e;return Dle(t,r,a,s)}else if(c9r(e))return l9r[e];return e},a_e=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function u9r(e,t){let r=new Set,a=new Set,s=!1,o=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(p.schedule(m),e()),m(h)}const p={schedule:(m,b=!1,_=!1)=>{const S=_&&s?r:a;return b&&u.add(m),S.add(m),m},cancel:m=>{a.delete(m),u.delete(m)},process:m=>{if(h=m,s){o=!0;return}s=!0;const b=r;r=a,a=b,r.forEach(f),r.clear(),s=!1,o&&(o=!1,p.process(m))}};return p}const h9r=40;function tkn(e,t){let r=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,u=a_e.reduce((N,L)=>(N[L]=u9r(o),N),{}),{setup:h,read:f,resolveKeyframes:p,preUpdate:m,update:b,preRender:_,render:w,postRender:S}=u,C=()=>{const N=FO.useManualTiming,L=N?s.timestamp:performance.now();r=!1,N||(s.delta=a?1e3/60:Math.max(Math.min(L-s.timestamp,h9r),1)),s.timestamp=L,s.isProcessing=!0,h.process(s),f.process(s),p.process(s),m.process(s),b.process(s),_.process(s),w.process(s),S.process(s),s.isProcessing=!1,r&&t&&(a=!1,e(C))},A=()=>{r=!0,a=!0,s.isProcessing||e(C)};return{schedule:a_e.reduce((N,L)=>{const P=u[L];return N[L]=(M,F=!1,U=!1)=>(r||A(),P.schedule(M,F,U)),N},{}),cancel:N=>{for(let L=0;L<a_e.length;L++)u[a_e[L]].cancel(N)},state:s,steps:u}}const{schedule:Dh,cancel:$O,state:bm,steps:dXe}=tkn(typeof requestAnimationFrame<"u"?requestAnimationFrame:cS,!0);let DEe;function d9r(){DEe=void 0}const Vy={now:()=>(DEe===void 0&&Vy.set(bm.isProcessing||FO.useManualTiming?bm.timestamp:performance.now()),DEe),set:e=>{DEe=e,queueMicrotask(d9r)}},nkn=e=>t=>typeof t=="string"&&t.startsWith(e),rkn=nkn("--"),f9r=nkn("var(--"),Sdt=e=>f9r(e)?p9r.test(e.split("/*")[0].trim()):!1,p9r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cdn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const bW={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yse={...bW,transform:e=>gA(0,1,e)},s_e={...bW,default:1},Yae=e=>Math.round(e*1e5)/1e5,Tdt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g9r(e){return e==null}const m9r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cdt=(e,t)=>r=>!!(typeof r=="string"&&m9r.test(r)&&r.startsWith(e)||t&&!g9r(r)&&Object.prototype.hasOwnProperty.call(r,t)),ikn=(e,t,r)=>a=>{if(typeof a!="string")return a;const[s,o,u,h]=a.match(Tdt);return{[e]:parseFloat(s),[t]:parseFloat(o),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},b9r=e=>gA(0,255,e),fXe={...bW,transform:e=>Math.round(b9r(e))},YB={test:Cdt("rgb","red"),parse:ikn("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+fXe.transform(e)+", "+fXe.transform(t)+", "+fXe.transform(r)+", "+Yae(Yse.transform(a))+")"};function y9r(e){let t="",r="",a="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,a+=a,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:s?parseInt(s,16)/255:1}}const qat={test:Cdt("#"),parse:y9r,transform:YB.transform},Mle=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),GN=Mle("deg"),rA=Mle("%"),ja=Mle("px"),v9r=Mle("vh"),_9r=Mle("vw"),udn={...rA,parse:e=>rA.parse(e)/100,transform:e=>rA.transform(e*100)},SV={test:Cdt("hsl","hue"),parse:ikn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+rA.transform(Yae(t))+", "+rA.transform(Yae(r))+", "+Yae(Yse.transform(a))+")"},E1={test:e=>YB.test(e)||qat.test(e)||SV.test(e),parse:e=>YB.test(e)?YB.parse(e):SV.test(e)?SV.parse(e):qat.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?YB.transform(e):SV.transform(e),getAnimatableNone:e=>{const t=E1.parse(e);return t.alpha=0,E1.transform(t)}},w9r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function E9r(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tdt))==null?void 0:t.length)||0)+(((r=e.match(w9r))==null?void 0:r.length)||0)>0}const akn="number",skn="color",x9r="var",S9r="var(",hdn="${}",T9r=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gj(e){const t=e.toString(),r=[],a={color:[],number:[],var:[]},s=[];let o=0;const h=t.replace(T9r,f=>(E1.test(f)?(a.color.push(o),s.push(skn),r.push(E1.parse(f))):f.startsWith(S9r)?(a.var.push(o),s.push(x9r),r.push(f)):(a.number.push(o),s.push(akn),r.push(parseFloat(f))),++o,hdn)).split(hdn);return{values:r,split:h,indexes:a,types:s}}function C9r(e){return gj(e).values}function okn({split:e,types:t}){const r=e.length;return a=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],a[o]!==void 0){const u=t[o];u===akn?s+=Yae(a[o]):u===skn?s+=E1.transform(a[o]):s+=a[o]}return s}}function A9r(e){return okn(gj(e))}const k9r=e=>typeof e=="number"?0:E1.test(e)?E1.getAnimatableNone(e):e,R9r=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:k9r(e);function I9r(e){const t=gj(e);return okn(t)(t.values.map((a,s)=>R9r(a,t.split[s])))}const V3={test:E9r,parse:C9r,createTransformer:A9r,getAnimatableNone:I9r};function pXe(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function N9r({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let s=0,o=0,u=0;if(!t)s=o=u=r;else{const h=r<.5?r*(1+t):r+t-r*t,f=2*r-h;s=pXe(f,h,e+1/3),o=pXe(f,h,e),u=pXe(f,h,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:a}}function ySe(e,t){return r=>r>0?t:e}const vd=(e,t,r)=>e+(t-e)*r,gXe=(e,t,r)=>{const a=e*e,s=r*(t*t-a)+a;return s<0?0:Math.sqrt(s)},O9r=[qat,YB,SV],L9r=e=>O9r.find(t=>t.test(e));function ddn(e){const t=L9r(e);if(!t)return!1;let r=t.parse(e);return t===SV&&(r=N9r(r)),r}const fdn=(e,t)=>{const r=ddn(e),a=ddn(t);if(!r||!a)return ySe(e,t);const s={...r};return o=>(s.red=gXe(r.red,a.red,o),s.green=gXe(r.green,a.green,o),s.blue=gXe(r.blue,a.blue,o),s.alpha=vd(r.alpha,a.alpha,o),YB.transform(s))},Hat=new Set(["none","hidden"]);function D9r(e,t){return Hat.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function M9r(e,t){return r=>vd(e,t,r)}function Adt(e){return typeof e=="number"?M9r:typeof e=="string"?Sdt(e)?ySe:E1.test(e)?fdn:F9r:Array.isArray(e)?lkn:typeof e=="object"?E1.test(e)?fdn:P9r:ySe}function lkn(e,t){const r=[...e],a=r.length,s=e.map((o,u)=>Adt(o)(o,t[u]));return o=>{for(let u=0;u<a;u++)r[u]=s[u](o);return r}}function P9r(e,t){const r={...e,...t},a={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(a[s]=Adt(e[s])(e[s],t[s]));return s=>{for(const o in a)r[o]=a[o](s);return r}}function B9r(e,t){const r=[],a={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][a[o]],h=e.values[u]??0;r[s]=h,a[o]++}return r}const F9r=(e,t)=>{const r=V3.createTransformer(t),a=gj(e),s=gj(t);return a.indexes.var.length===s.indexes.var.length&&a.indexes.color.length===s.indexes.color.length&&a.indexes.number.length>=s.indexes.number.length?Hat.has(e)&&!s.values.length||Hat.has(t)&&!a.values.length?D9r(e,t):Lle(lkn(B9r(a,s),s.values),r):ySe(e,t)};function ckn(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?vd(e,t,r):Adt(e)(e,t)}const $9r=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Dh.update(t,r),stop:()=>$O(t),now:()=>bm.isProcessing?bm.timestamp:Vy.now()}},ukn=(e,t,r=10)=>{let a="";const s=Math.max(Math.round(t/r),2);for(let o=0;o<s;o++)a+=Math.round(e(o/(s-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},vSe=2e4;function kdt(e){let t=0;const r=50;let a=e.next(t);for(;!a.done&&t<vSe;)t+=r,a=e.next(t);return t>=vSe?1/0:t}function U9r(e,t=100,r){const a=r({...e,keyframes:[0,t]}),s=Math.min(kdt(a),vSe);return{type:"keyframes",ease:o=>a.next(s*o).value/t,duration:rS(s)}}const s0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vat(e,t){return e*Math.sqrt(1-t*t)}const z9r=12;function G9r(e,t,r){let a=r;for(let s=1;s<z9r;s++)a=a-e(a)/t(a);return a}const mXe=.001;function q9r({duration:e=s0.duration,bounce:t=s0.bounce,velocity:r=s0.velocity,mass:a=s0.mass}){let s,o,u=1-t;u=gA(s0.minDamping,s0.maxDamping,u),e=gA(s0.minDuration,s0.maxDuration,rS(e)),u<1?(s=p=>{const m=p*u,b=m*e,_=m-r,w=Vat(p,u),S=Math.exp(-b);return mXe-_/w*S},o=p=>{const b=p*u*e,_=b*r+r,w=Math.pow(u,2)*Math.pow(p,2)*e,S=Math.exp(-b),C=Vat(Math.pow(p,2),u);return(-s(p)+mXe>0?-1:1)*((_-w)*S)/C}):(s=p=>{const m=Math.exp(-p*e),b=(p-r)*e+1;return-mXe+m*b},o=p=>{const m=Math.exp(-p*e),b=(r-p)*(e*e);return m*b});const h=5/e,f=G9r(s,o,h);if(e=Dw(e),isNaN(f))return{stiffness:s0.stiffness,damping:s0.damping,duration:e};{const p=Math.pow(f,2)*a;return{stiffness:p,damping:u*2*Math.sqrt(a*p),duration:e}}}const H9r=["duration","bounce"],V9r=["stiffness","damping","mass"];function pdn(e,t){return t.some(r=>e[r]!==void 0)}function Y9r(e){let t={velocity:s0.velocity,stiffness:s0.stiffness,damping:s0.damping,mass:s0.mass,isResolvedFromDuration:!1,...e};if(!pdn(e,V9r)&&pdn(e,H9r))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,a=2*Math.PI/(r*1.2),s=a*a,o=2*gA(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:s0.mass,stiffness:s,damping:o}}else{const r=q9r({...e,velocity:0});t={...t,...r,mass:s0.mass},t.isResolvedFromDuration=!0}return t}function _Se(e=s0.visualDuration,t=s0.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:s}=r;const o=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],h={done:!1,value:o},{stiffness:f,damping:p,mass:m,duration:b,velocity:_,isResolvedFromDuration:w}=Y9r({...r,velocity:-rS(r.velocity||0)}),S=_||0,C=p/(2*Math.sqrt(f*m)),A=u-o,k=rS(Math.sqrt(f/m)),I=Math.abs(A)<5;a||(a=I?s0.restSpeed.granular:s0.restSpeed.default),s||(s=I?s0.restDelta.granular:s0.restDelta.default);let N,L,P,M,F,U;if(C<1)P=Vat(k,C),M=(S+C*k*A)/P,N=G=>{const B=Math.exp(-C*k*G);return u-B*(M*Math.sin(P*G)+A*Math.cos(P*G))},F=C*k*M+A*P,U=C*k*A-M*P,L=G=>Math.exp(-C*k*G)*(F*Math.sin(P*G)+U*Math.cos(P*G));else if(C===1){N=B=>u-Math.exp(-k*B)*(A+(S+k*A)*B);const G=S+k*A;L=B=>Math.exp(-k*B)*(k*G*B-S)}else{const G=k*Math.sqrt(C*C-1);N=Y=>{const W=Math.exp(-C*k*Y),Q=Math.min(G*Y,300);return u-W*((S+C*k*A)*Math.sinh(Q)+G*A*Math.cosh(Q))/G};const B=(S+C*k*A)/G,Z=C*k*B-A*G,z=C*k*A-B*G;L=Y=>{const W=Math.exp(-C*k*Y),Q=Math.min(G*Y,300);return W*(Z*Math.sinh(Q)+z*Math.cosh(Q))}}const $={calculatedDuration:w&&b||null,velocity:G=>Dw(L(G)),next:G=>{if(!w&&C<1){const Z=Math.exp(-C*k*G),z=Math.sin(P*G),Y=Math.cos(P*G),W=u-Z*(M*z+A*Y),Q=Dw(Z*(F*z+U*Y));return h.done=Math.abs(Q)<=a&&Math.abs(u-W)<=s,h.value=h.done?u:W,h}const B=N(G);if(w)h.done=G>=b;else{const Z=Dw(L(G));h.done=Math.abs(Z)<=a&&Math.abs(u-B)<=s}return h.value=h.done?u:B,h},toString:()=>{const G=Math.min(kdt($),vSe),B=ukn(Z=>$.next(G*Z).value,G,30);return G+"ms "+B},toTransition:()=>{}};return $}_Se.applyToOptions=e=>{const t=U9r(e,100,_Se);return e.ease=t.ease,e.duration=Dw(t.duration),e.type="keyframes",e};const j9r=5;function hkn(e,t,r){const a=Math.max(t-j9r,0);return HAn(r-e(a),t-a)}function Yat({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:u,min:h,max:f,restDelta:p=.5,restSpeed:m}){const b=e[0],_={done:!1,value:b},w=U=>h!==void 0&&U<h||f!==void 0&&U>f,S=U=>h===void 0?f:f===void 0||Math.abs(h-U)<Math.abs(f-U)?h:f;let C=r*t;const A=b+C,k=u===void 0?A:u(A);k!==A&&(C=k-b);const I=U=>-C*Math.exp(-U/a),N=U=>k+I(U),L=U=>{const $=I(U),G=N(U);_.done=Math.abs($)<=p,_.value=_.done?k:G};let P,M;const F=U=>{w(_.value)&&(P=U,M=_Se({keyframes:[_.value,S(_.value)],velocity:hkn(N,U,_.value),damping:s,stiffness:o,restDelta:p,restSpeed:m}))};return F(0),{calculatedDuration:null,next:U=>{let $=!1;return!M&&P===void 0&&($=!0,L(U),F(U)),P!==void 0&&U>=P?M.next(U-P):(!$&&L(U),_)}}}function W9r(e,t,r){const a=[],s=r||FO.mix||ckn,o=e.length-1;for(let u=0;u<o;u++){let h=s(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||cS:t;h=Lle(f,h)}a.push(h)}return a}function K9r(e,t,{clamp:r=!0,ease:a,mixer:s}={}){const o=e.length;if(_dt(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=W9r(t,a,s),f=h.length,p=m=>{if(u&&m<e[0])return t[0];let b=0;if(f>1)for(;b<e.length-2&&!(m<e[b+1]);b++);const _=Vse(e[b],e[b+1],m);return h[b](_)};return r?m=>p(gA(e[0],e[o-1],m)):p}function X9r(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const s=Vse(0,t,a);e.push(vd(r,1,s))}}function Q9r(e){const t=[0];return X9r(t,e.length-1),t}function Z9r(e,t){return e.map(r=>r*t)}function J9r(e,t){return e.map(()=>t||JAn).splice(0,e.length-1)}function jae({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){const s=o9r(a)?a.map(ldn):ldn(a),o={done:!1,value:t[0]},u=Z9r(r&&r.length===t.length?r:Q9r(t),e),h=K9r(u,t,{ease:Array.isArray(s)?s:J9r(t,s)});return{calculatedDuration:e,next:f=>(o.value=h(f),o.done=f>=e,o)}}const eLr=e=>e!==null;function F5e(e,{repeat:t,repeatType:r="loop"},a,s=1){const o=e.filter(eLr),h=s<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!h||a===void 0?o[h]:a}const tLr={decay:Yat,inertia:Yat,tween:jae,keyframes:jae,spring:_Se};function dkn(e){typeof e.type=="string"&&(e.type=tLr[e.type])}class Rdt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const nLr=e=>e/100;class wSe extends Rdt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,s;const{motionValue:r}=this.options;r&&r.updatedAt!==Vy.now()&&this.tick(Vy.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(a=this.options).onStop)==null||s.call(a))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dkn(t);const{type:r=jae,repeat:a=0,repeatDelay:s=0,repeatType:o,velocity:u=0}=t;let{keyframes:h}=t;const f=r||jae;f!==jae&&typeof h[0]!="number"&&(this.mixKeyframes=Lle(nLr,ckn(h[0],h[1])),h=[0,100]);const p=f({...t,keyframes:h});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...h].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=kdt(p));const{calculatedDuration:m}=p;this.calculatedDuration=m,this.resolvedDuration=m+s,this.totalDuration=this.resolvedDuration*(a+1)-s,this.generator=p}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:a,totalDuration:s,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:p=0,keyframes:m,repeat:b,repeatType:_,repeatDelay:w,type:S,onUpdate:C,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const k=this.currentTime-p*(this.playbackSpeed>=0?1:-1),I=this.playbackSpeed>=0?k<0:k>s;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let N=this.currentTime,L=a;if(b){const U=Math.min(this.currentTime,s)/h;let $=Math.floor(U),G=U%1;!G&&U>=1&&(G=1),G===1&&$--,$=Math.min($,b+1),!!($%2)&&(_==="reverse"?(G=1-G,w&&(G-=w/h)):_==="mirror"&&(L=u)),N=gA(0,1,G)*h}let P;I?(this.delayState.value=m[0],P=this.delayState):P=L.next(N),o&&!I&&(P.value=o(P.value));let{done:M}=P;!I&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return F&&S!==Yat&&(P.value=F5e(m,this.options,A,this.speed)),C&&C(P.value),F&&this.finish(),P}then(t,r){return this.finished.then(t,r)}get duration(){return rS(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rS(t)}get time(){return rS(this.currentTime)}set time(t){t=Dw(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return hkn(a=>this.generator.next(a).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(Vy.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=rS(this.currentTime))}play(){var s,o;if(this.isStopped)return;const{driver:t=$9r,startTime:r}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(o=(s=this.options).onPlay)==null||o.call(s);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Vy.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function rLr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const jB=e=>e*180/Math.PI,jat=e=>{const t=jB(Math.atan2(e[1],e[0]));return Wat(t)},iLr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jat,rotateZ:jat,skewX:e=>jB(Math.atan(e[1])),skewY:e=>jB(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wat=e=>(e=e%360,e<0&&(e+=360),e),gdn=jat,mdn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bdn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),aLr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mdn,scaleY:bdn,scale:e=>(mdn(e)+bdn(e))/2,rotateX:e=>Wat(jB(Math.atan2(e[6],e[5]))),rotateY:e=>Wat(jB(Math.atan2(-e[2],e[0]))),rotateZ:gdn,rotate:gdn,skewX:e=>jB(Math.atan(e[4])),skewY:e=>jB(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Kat(e){return e.includes("scale")?1:0}function Xat(e,t){if(!e||e==="none")return Kat(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,s;if(r)a=aLr,s=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=iLr,s=h}if(!s)return Kat(t);const o=a[t],u=s[1].split(",").map(oLr);return typeof o=="function"?o(u):u[o]}const sLr=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Xat(r,t)};function oLr(e){return parseFloat(e.trim())}const yW=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vW=new Set(yW),ydn=e=>e===bW||e===ja,lLr=new Set(["x","y","z"]),cLr=yW.filter(e=>!lLr.has(e));function uLr(e){const t=[];return cLr.forEach(r=>{const a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}const lO={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:a})=>{const s=e.max-e.min;return a==="border-box"?s:s-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:a})=>{const s=e.max-e.min;return a==="border-box"?s:s-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Xat(t,"x"),y:(e,{transform:t})=>Xat(t,"y")};lO.translateX=lO.x;lO.translateY=lO.y;const hF=new Set;let Qat=!1,Zat=!1,Jat=!1;function fkn(){if(Zat){const e=Array.from(hF).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{const s=uLr(a);s.length&&(r.set(a,s),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const s=r.get(a);s&&s.forEach(([o,u])=>{var h;(h=a.getValue(o))==null||h.set(u)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Zat=!1,Qat=!1,hF.forEach(e=>e.complete(Jat)),hF.clear()}function pkn(){hF.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zat=!0)})}function hLr(){Jat=!0,pkn(),fkn(),Jat=!1}class Idt{constructor(t,r,a,s,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=s,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(hF.add(this),Qat||(Qat=!0,Dh.read(pkn),Dh.resolveKeyframes(fkn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:a,motionValue:s}=this;if(t[0]===null){const o=s==null?void 0:s.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&r){const h=a.readValue(r,u);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=u),s&&o===void 0&&s.set(t[0])}rLr(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),hF.delete(this)}cancel(){this.state==="scheduled"&&(hF.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dLr=e=>e.startsWith("--");function gkn(e,t,r){dLr(t)?e.style.setProperty(t,r):e.style[t]=r}const fLr={};function mkn(e,t){const r=qAn(e);return()=>fLr[t]??r()}const pLr=mkn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bkn=mkn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xie=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,vdn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xie([0,.65,.55,1]),circOut:xie([.55,0,1,.45]),backIn:xie([.31,.01,.66,-.59]),backOut:xie([.33,1.53,.69,.99])};function ykn(e,t){if(e)return typeof e=="function"?bkn()?ukn(e,t):"ease-out":ekn(e)?xie(e):Array.isArray(e)?e.map(r=>ykn(r,t)||vdn.easeOut):vdn[e]}function gLr(e,t,r,{delay:a=0,duration:s=300,repeat:o=0,repeatType:u="loop",ease:h="easeOut",times:f}={},p=void 0){const m={[t]:r};f&&(m.offset=f);const b=ykn(h,s);Array.isArray(b)&&(m.easing=b);const _={delay:a,duration:s,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return p&&(_.pseudoElement=p),e.animate(m,_)}function vkn(e){return typeof e=="function"&&"applyToOptions"in e}function mLr({type:e,...t}){return vkn(e)&&bkn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _kn extends Rdt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:a,keyframes:s,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:h,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=t,_dt(typeof t.type!="string");const p=mLr(t);this.animation=gLr(r,a,s,p,o),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=F5e(s,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(m),gkn(r,a,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,a,s;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(a=this.animation).commitStyles)==null||s.call(a))}get duration(){var r,a;const t=((a=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:a.call(r).duration)||0;return rS(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rS(t)}get time(){return rS(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Dw(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:a,observe:s}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&pLr()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),a&&(this.animation.rangeEnd=a),cS):s(this)}}const wkn={anticipate:XAn,backInOut:KAn,circInOut:ZAn};function bLr(e){return e in wkn}function yLr(e){typeof e.ease=="string"&&bLr(e.ease)&&(e.ease=wkn[e.ease])}const bXe=10;class vLr extends _kn{constructor(t){yLr(t),dkn(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:a,onComplete:s,element:o,...u}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const h=new wSe({...u,autoplay:!1}),f=Math.max(bXe,Vy.now()-this.startTime),p=gA(0,bXe,f-bXe),m=h.sample(f).value,{name:b}=this.options;o&&b&&gkn(o,b,m),r.setWithVelocity(h.sample(Math.max(0,f-p)).value,m,p),h.stop()}}const _dn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(V3.test(e)||e==="0")&&!e.startsWith("url("));function _Lr(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function wLr(e,t,r,a){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],u=_dn(s,t),h=_dn(o,t);return!u||!h?!1:_Lr(e)||(r==="spring"||vkn(r))&&a}function est(e){e.duration=0,e.type="keyframes"}const Ekn=new Set(["opacity","clipPath","filter","transform"]),ELr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function xLr(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&ELr.test(e[t]))return!0;return!1}const SLr=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),TLr=qAn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function CLr(e){var b;const{motionValue:t,name:r,repeatDelay:a,repeatType:s,damping:o,type:u,keyframes:h}=e;if(!(((b=t==null?void 0:t.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=t.owner.getProps();return TLr()&&r&&(Ekn.has(r)||SLr.has(r)&&xLr(h))&&(r!=="transform"||!m)&&!p&&!a&&s!=="mirror"&&o!==0&&u!=="inertia"}const ALr=40;class kLr extends Rdt{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u="loop",keyframes:h,name:f,motionValue:p,element:m,...b}){var S;super(),this.stop=()=>{var C,A;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Vy.now();const _={autoplay:t,delay:r,type:a,repeat:s,repeatDelay:o,repeatType:u,name:f,motionValue:p,element:m,...b},w=(m==null?void 0:m.KeyframeResolver)||Idt;this.keyframeResolver=new w(h,(C,A,k)=>this.onKeyframesResolved(C,A,_,!k),f,p,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,r,a,s){var k,I;this.keyframeResolver=void 0;const{name:o,type:u,velocity:h,delay:f,isHandoff:p,onUpdate:m}=a;this.resolvedAt=Vy.now();let b=!0;wLr(t,o,u,h)||(b=!1,(FO.instantAnimations||!f)&&(m==null||m(F5e(t,a,r))),t[0]=t[t.length-1],est(a),a.repeat=0);const w={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>ALr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},S=b&&!p&&CLr(w),C=(I=(k=w.motionValue)==null?void 0:k.owner)==null?void 0:I.current;let A;if(S)try{A=new vLr({...w,element:C})}catch{A=new wSe(w)}else A=new wSe(w);A.finished.then(()=>{this.notifyFinished()}).catch(cS),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),hLr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function xkn(e,t,r,a=0,s=1){const o=Array.from(e).sort((p,m)=>p.sortNodePosition(m)).indexOf(t),u=e.size,h=(u-1)*a;return typeof r=="function"?r(o,u):s===1?o*a:h-o*a}const RLr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ILr(e){const t=RLr.exec(e);if(!t)return[,];const[,r,a,s]=t;return[`--${r??a}`,s]}function Skn(e,t,r=1){const[a,s]=ILr(e);if(!a)return;const o=window.getComputedStyle(t).getPropertyValue(a);if(o){const u=o.trim();return UAn(u)?parseFloat(u):u}return Sdt(s)?Skn(s,t,r+1):s}const NLr={type:"spring",stiffness:500,damping:25,restSpeed:10},OLr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LLr={type:"keyframes",duration:.8},DLr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MLr=(e,{keyframes:t})=>t.length>2?LLr:vW.has(e)?e.startsWith("scale")?OLr(t[1]):NLr:DLr;function Tkn(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...a}=e;return{...t,...a}}return e}function Ndt(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?Tkn(r,e):r}const PLr=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function BLr(e){for(const t in e)if(!PLr.has(t))return!0;return!1}const Odt=(e,t,r,a={},s,o)=>u=>{const h=Ndt(a,e)||{},f=h.delay||a.delay||0;let{elapsed:p=0}=a;p=p-Dw(f);const m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-p,onUpdate:_=>{t.set(_),h.onUpdate&&h.onUpdate(_)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:o?void 0:s};BLr(h)||Object.assign(m,MLr(e,m)),m.duration&&(m.duration=Dw(m.duration)),m.repeatDelay&&(m.repeatDelay=Dw(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let b=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(est(m),m.delay===0&&(b=!0)),(FO.instantAnimations||FO.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(b=!0,est(m),m.delay=0),m.allowFlatten=!h.type&&!h.ease,b&&!o&&t.get()!==void 0){const _=F5e(m.keyframes,h);if(_!==void 0){Dh.update(()=>{m.onUpdate(_),m.onComplete()});return}}return h.isSync?new wSe(m):new kLr(m)};function wdn(e){const t=[{},{}];return e==null||e.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function Ldt(e,t,r,a){if(typeof t=="function"){const[s,o]=wdn(a);t=t(r!==void 0?r:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=wdn(a);t=t(r!==void 0?r:e.custom,s,o)}return t}function dF(e,t,r){const a=e.getProps();return Ldt(a,t,r!==void 0?r:a.custom,e)}const Ckn=new Set(["width","height","top","left","right","bottom",...yW]),Edn=30,FLr=e=>!isNaN(parseFloat(e));class $Lr{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var o;const s=Vy.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Vy.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FLr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new wdt);const a=this.events[t].add(r);return t==="change"?()=>{a(),Dh.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vy.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Edn)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Edn);return HAn(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mj(e,t){return new $Lr(e,t)}const tst=e=>Array.isArray(e);function ULr(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,mj(r))}function zLr(e){return tst(e)?e[e.length-1]||0:e}function GLr(e,t){const r=dF(e,t);let{transitionEnd:a={},transition:s={},...o}=r||{};o={...o,...a};for(const u in o){const h=zLr(o[u]);ULr(e,u,h)}}const Em=e=>!!(e&&e.getVelocity);function qLr(e){return!!(Em(e)&&e.add)}function nst(e,t){const r=e.getValue("willChange");if(qLr(r))return r.add(t);if(!r&&FO.WillChange){const a=new FO.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function Ddt(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const HLr="framerAppearId",Akn="data-"+Ddt(HLr);function kkn(e){return e.props[Akn]}function VLr({protectedKeys:e,needsAnimating:t},r){const a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function Rkn(e,t,{delay:r=0,transitionOverride:a,type:s}={}){let{transition:o,transitionEnd:u,...h}=t;const f=e.getDefaultTransition();o=o?Tkn(o,f):f;const p=o==null?void 0:o.reduceMotion;a&&(o=a);const m=[],b=s&&e.animationState&&e.animationState.getState()[s];for(const _ in h){const w=e.getValue(_,e.latestValues[_]??null),S=h[_];if(S===void 0||b&&VLr(b,_))continue;const C={delay:r,...Ndt(o||{},_)},A=w.get();if(A!==void 0&&!w.isAnimating()&&!Array.isArray(S)&&S===A&&!C.velocity){Dh.update(()=>w.set(S));continue}let k=!1;if(window.MotionHandoffAnimation){const L=kkn(e);if(L){const P=window.MotionHandoffAnimation(L,_,Dh);P!==null&&(C.startTime=P,k=!0)}}nst(e,_);const I=p??e.shouldReduceMotion;w.start(Odt(_,w,S,I&&Ckn.has(_)?{type:!1}:C,e,k));const N=w.animation;N&&m.push(N)}if(u){const _=()=>Dh.update(()=>{u&&GLr(e,u)});m.length?Promise.all(m).then(_):_()}return m}function rst(e,t,r={}){var f;const a=dF(e,t,r.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(s=r.transitionOverride);const o=a?()=>Promise.all(Rkn(e,a,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:b,staggerDirection:_}=s;return YLr(e,t,p,m,b,_,r)}:()=>Promise.resolve(),{when:h}=s;if(h){const[p,m]=h==="beforeChildren"?[o,u]:[u,o];return p().then(()=>m())}else return Promise.all([o(),u(r.delay)])}function YLr(e,t,r=0,a=0,s=0,o=1,u){const h=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),h.push(rst(f,t,{...u,delay:r+(typeof a=="function"?0:a)+xkn(e.variantChildren,f,a,s,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(h)}function jLr(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const s=t.map(o=>rst(e,o,r));a=Promise.all(s)}else if(typeof t=="string")a=rst(e,t,r);else{const s=typeof t=="function"?dF(e,t,r.custom):t;a=Promise.all(Rkn(e,s,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}const WLr={test:e=>e==="auto",parse:e=>e},Ikn=e=>t=>t.test(e),Nkn=[bW,ja,rA,GN,_9r,v9r,WLr],xdn=e=>Nkn.find(Ikn(e));function KLr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GAn(e):!0}const XLr=new Set(["brightness","contrast","saturate","opacity"]);function QLr(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=r.match(Tdt)||[];if(!a)return e;const s=r.replace(a,"");let o=XLr.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+s+")"}const ZLr=/\b([a-z-]*)\(.*?\)/gu,ist={...V3,getAnimatableNone:e=>{const t=e.match(ZLr);return t?t.map(QLr).join(" "):e}},ast={...V3,getAnimatableNone:e=>{const t=V3.parse(e);return V3.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Sdn={...bW,transform:Math.round},JLr={rotate:GN,rotateX:GN,rotateY:GN,rotateZ:GN,scale:s_e,scaleX:s_e,scaleY:s_e,scaleZ:s_e,skew:GN,skewX:GN,skewY:GN,distance:ja,translateX:ja,translateY:ja,translateZ:ja,x:ja,y:ja,z:ja,perspective:ja,transformPerspective:ja,opacity:Yse,originX:udn,originY:udn,originZ:ja},Mdt={borderWidth:ja,borderTopWidth:ja,borderRightWidth:ja,borderBottomWidth:ja,borderLeftWidth:ja,borderRadius:ja,borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomRightRadius:ja,borderBottomLeftRadius:ja,width:ja,maxWidth:ja,height:ja,maxHeight:ja,top:ja,right:ja,bottom:ja,left:ja,inset:ja,insetBlock:ja,insetBlockStart:ja,insetBlockEnd:ja,insetInline:ja,insetInlineStart:ja,insetInlineEnd:ja,padding:ja,paddingTop:ja,paddingRight:ja,paddingBottom:ja,paddingLeft:ja,paddingBlock:ja,paddingBlockStart:ja,paddingBlockEnd:ja,paddingInline:ja,paddingInlineStart:ja,paddingInlineEnd:ja,margin:ja,marginTop:ja,marginRight:ja,marginBottom:ja,marginLeft:ja,marginBlock:ja,marginBlockStart:ja,marginBlockEnd:ja,marginInline:ja,marginInlineStart:ja,marginInlineEnd:ja,fontSize:ja,backgroundPositionX:ja,backgroundPositionY:ja,...JLr,zIndex:Sdn,fillOpacity:Yse,strokeOpacity:Yse,numOctaves:Sdn},eDr={...Mdt,color:E1,backgroundColor:E1,outlineColor:E1,fill:E1,stroke:E1,borderColor:E1,borderTopColor:E1,borderRightColor:E1,borderBottomColor:E1,borderLeftColor:E1,filter:ist,WebkitFilter:ist,mask:ast,WebkitMask:ast},Okn=e=>eDr[e],tDr=new Set([ist,ast]);function Lkn(e,t){let r=Okn(e);return tDr.has(r)||(r=V3),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const nDr=new Set(["auto","none","0"]);function rDr(e,t,r){let a=0,s;for(;a<e.length&&!s;){const o=e[a];typeof o=="string"&&!nDr.has(o)&&gj(o).values.length&&(s=e[a]),a++}if(s&&r)for(const o of t)e[o]=Lkn(r,s)}class iDr extends Idt{constructor(t,r,a,s,o){super(t,r,a,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let b=t[m];if(typeof b=="string"&&(b=b.trim(),Sdt(b))){const _=Skn(b,r.current);_!==void 0&&(t[m]=_),m===t.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Ckn.has(a)||t.length!==2)return;const[s,o]=t,u=xdn(s),h=xdn(o),f=cdn(s),p=cdn(o);if(f!==p&&lO[a]){this.needsMeasurement=!0;return}if(u!==h)if(ydn(u)&&ydn(h))for(let m=0;m<t.length;m++){const b=t[m];typeof b=="string"&&(t[m]=parseFloat(b))}else lO[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,a=[];for(let s=0;s<t.length;s++)(t[s]===null||KLr(t[s]))&&a.push(s);a.length&&rDr(t,a,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lO[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&t.getValue(a,s).jump(s,!1)}measureEndState(){var h;const{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const s=t.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=a.length-1,u=a[o];a[o]=lO[r](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([f,p])=>{t.getValue(f).set(p)}),this.resolveNoneKeyframes()}}function Dkn(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const s=(r==null?void 0:r[e])??a.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(a=>a!=null)}const Mkn=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function MEe(e){return zAn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Pdt}=tkn(queueMicrotask,!1),w3={x:!1,y:!1};function Pkn(){return w3.x||w3.y}function aDr(e){return e==="x"||e==="y"?w3[e]?null:(w3[e]=!0,()=>{w3[e]=!1}):w3.x||w3.y?null:(w3.x=w3.y=!0,()=>{w3.x=w3.y=!1})}function Bkn(e,t){const r=Dkn(e),a=new AbortController,s={passive:!0,...t,signal:a.signal};return[r,s,()=>a.abort()]}function sDr(e){return!(e.pointerType==="touch"||Pkn())}function oDr(e,t,r={}){const[a,s,o]=Bkn(e,r);return a.forEach(u=>{let h=!1,f=!1,p;const m=()=>{u.removeEventListener("pointerleave",S)},b=A=>{p&&(p(A),p=void 0),m()},_=A=>{h=!1,window.removeEventListener("pointerup",_),window.removeEventListener("pointercancel",_),f&&(f=!1,b(A))},w=()=>{h=!0,window.addEventListener("pointerup",_,s),window.addEventListener("pointercancel",_,s)},S=A=>{if(A.pointerType!=="touch"){if(h){f=!0;return}b(A)}},C=A=>{if(!sDr(A))return;f=!1;const k=t(u,A);typeof k=="function"&&(p=k,u.addEventListener("pointerleave",S,s))};u.addEventListener("pointerenter",C,s),u.addEventListener("pointerdown",w,s)}),o}const Fkn=(e,t)=>t?e===t?!0:Fkn(e,t.parentElement):!1,Bdt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lDr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cDr(e){return lDr.has(e.tagName)||e.isContentEditable===!0}const uDr=new Set(["INPUT","SELECT","TEXTAREA"]);function hDr(e){return uDr.has(e.tagName)||e.isContentEditable===!0}const PEe=new WeakSet;function Tdn(e){return t=>{t.key==="Enter"&&e(t)}}function yXe(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dDr=(e,t)=>{const r=e.currentTarget;if(!r)return;const a=Tdn(()=>{if(PEe.has(r))return;yXe(r,"down");const s=Tdn(()=>{yXe(r,"up")}),o=()=>yXe(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function Cdn(e){return Bdt(e)&&!Pkn()}const Adn=new WeakSet;function fDr(e,t,r={}){const[a,s,o]=Bkn(e,r),u=h=>{const f=h.currentTarget;if(!Cdn(h)||Adn.has(h))return;PEe.add(f),r.stopPropagation&&Adn.add(h);const p=t(f,h),m=(w,S)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",_),PEe.has(f)&&PEe.delete(f),Cdn(w)&&typeof p=="function"&&p(w,{success:S})},b=w=>{m(w,f===window||f===document||r.useGlobalTarget||Fkn(f,w.target))},_=w=>{m(w,!1)};window.addEventListener("pointerup",b,s),window.addEventListener("pointercancel",_,s)};return a.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",u,s),MEe(h)&&(h.addEventListener("focus",p=>dDr(p,s)),!cDr(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),o}function Fdt(e){return zAn(e)&&"ownerSVGElement"in e}const BEe=new WeakMap;let qN;const $kn=(e,t,r)=>(a,s)=>s&&s[0]?s[0][e+"Size"]:Fdt(a)&&"getBBox"in a?a.getBBox()[t]:a[r],pDr=$kn("inline","width","offsetWidth"),gDr=$kn("block","height","offsetHeight");function mDr({target:e,borderBoxSize:t}){var r;(r=BEe.get(e))==null||r.forEach(a=>{a(e,{get width(){return pDr(e,t)},get height(){return gDr(e,t)}})})}function bDr(e){e.forEach(mDr)}function yDr(){typeof ResizeObserver>"u"||(qN=new ResizeObserver(bDr))}function vDr(e,t){qN||yDr();const r=Dkn(e);return r.forEach(a=>{let s=BEe.get(a);s||(s=new Set,BEe.set(a,s)),s.add(t),qN==null||qN.observe(a)}),()=>{r.forEach(a=>{const s=BEe.get(a);s==null||s.delete(t),s!=null&&s.size||qN==null||qN.unobserve(a)})}}const FEe=new Set;let TV;function _Dr(){TV=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};FEe.forEach(t=>t(e))},window.addEventListener("resize",TV)}function wDr(e){return FEe.add(e),TV||_Dr(),()=>{FEe.delete(e),!FEe.size&&typeof TV=="function"&&(window.removeEventListener("resize",TV),TV=void 0)}}function kdn(e,t){return typeof e=="function"?wDr(e):vDr(e,t)}function EDr(e){return Fdt(e)&&e.tagName==="svg"}const xDr=[...Nkn,E1,V3],SDr=e=>xDr.find(Ikn(e)),Rdn=()=>({translate:0,scale:1,origin:0,originPoint:0}),CV=()=>({x:Rdn(),y:Rdn()}),Idn=()=>({min:0,max:0}),yp=()=>({x:Idn(),y:Idn()}),TDr=new WeakMap;function $5e(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jse(e){return typeof e=="string"||Array.isArray(e)}const $dt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Udt=["initial",...$dt];function U5e(e){return $5e(e.animate)||Udt.some(t=>jse(e[t]))}function Ukn(e){return!!(U5e(e)||e.variants)}function CDr(e,t,r){for(const a in t){const s=t[a],o=r[a];if(Em(s))e.addValue(a,s);else if(Em(o))e.addValue(a,mj(s,{owner:e}));else if(o!==s)if(e.hasValue(a)){const u=e.getValue(a);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(a);e.addValue(a,mj(u!==void 0?u:s,{owner:e}))}}for(const a in r)t[a]===void 0&&e.removeValue(a);return t}const sst={current:null},zkn={current:!1},ADr=typeof window<"u";function kDr(){if(zkn.current=!0,!!ADr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sst.current=e.matches;e.addEventListener("change",t),t()}else sst.current=!1}const Ndn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ESe={};function Gkn(e){ESe=e}function RDr(){return ESe}class IDr{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:u,visualState:h},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Idt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Vy.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Dh.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=m,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=o,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=U5e(r),this.isVariantNode=Ukn(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:b,..._}=this.scrapeMotionValuesFromProps(r,{},this);for(const w in _){const S=_[w];p[w]!==void 0&&Em(S)&&S.set(p[w])}}mount(t){var r,a;if(this.hasBeenMounted)for(const s in this.initialValues)(r=this.values.get(s))==null||r.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,TDr.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zkn.current||kDr(),this.shouldReduceMotion=sst.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),$O(this.notifyUpdate),$O(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&Ekn.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:f,ease:p,duration:m}=r.accelerate,b=new _kn({element:this.current,name:t,keyframes:h,times:f,ease:p,duration:Dw(m)}),_=u(b);this.valueSubscriptions.set(t,()=>{_(),b.cancel()});return}const a=vW.has(t);a&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Dh.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),o&&o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ESe){const r=ESe[t];if(!r)continue;const{isEnabled:a,Feature:s}=r;if(!this.features[t]&&s&&a(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yp()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let a=0;a<Ndn.length;a++){const s=Ndn[a];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,u=t[o];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=CDr(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const a=this.values.get(t);r!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&r!==void 0&&(a=mj(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(UAn(a)||GAn(a))?a=parseFloat(a):!SDr(a)&&V3.test(r)&&(a=Lkn(t,r)),this.setBaseTarget(t,Em(a)?a.get():a)),Em(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var o;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const u=Ldt(this.props,r,(o=this.presenceContext)==null?void 0:o.custom);u&&(a=u[t])}if(r&&a!==void 0)return a;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Em(s)?s:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new wdt),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Pdt.render(this.render)}}class qkn extends IDr{constructor(){super(...arguments),this.KeyframeResolver=iDr}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const a=t.style;return a?a[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Em(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class E9{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Hkn({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function NDr({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ODr(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function vXe(e){return e===void 0||e===1}function ost({scale:e,scaleX:t,scaleY:r}){return!vXe(e)||!vXe(t)||!vXe(r)}function TB(e){return ost(e)||Vkn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vkn(e){return Odn(e.x)||Odn(e.y)}function Odn(e){return e&&e!=="0%"}function xSe(e,t,r){const a=e-r,s=t*a;return r+s}function Ldn(e,t,r,a,s){return s!==void 0&&(e=xSe(e,s,a)),xSe(e,r,a)+t}function lst(e,t=0,r=1,a,s){e.min=Ldn(e.min,t,r,a,s),e.max=Ldn(e.max,t,r,a,s)}function Ykn(e,{x:t,y:r}){lst(e.x,t.translate,t.scale,t.originPoint),lst(e.y,r.translate,r.scale,r.originPoint)}const Ddn=.999999999999,Mdn=1.0000000000001;function LDr(e,t,r,a=!1){var h;const s=r.length;if(!s)return;t.x=t.y=1;let o,u;for(let f=0;f<s;f++){o=r[f],u=o.projectionDelta;const{visualElement:p}=o.options;p&&p.props.style&&p.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(LC(e.x,-o.scroll.offset.x),LC(e.y,-o.scroll.offset.y)),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Ykn(e,u)),a&&TB(o.latestValues)&&$Ee(e,o.latestValues,(h=o.layout)==null?void 0:h.layoutBox))}t.x<Mdn&&t.x>Ddn&&(t.x=1),t.y<Mdn&&t.y>Ddn&&(t.y=1)}function LC(e,t){e.min+=t,e.max+=t}function Pdn(e,t,r,a,s=.5){const o=vd(e.min,e.max,s);lst(e,t,r,o,a)}function Bdn(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function $Ee(e,t,r){const a=r??e;Pdn(e.x,Bdn(t.x,a.x),t.scaleX,t.scale,t.originX),Pdn(e.y,Bdn(t.y,a.y),t.scaleY,t.scale,t.originY)}function jkn(e,t){return Hkn(ODr(e.getBoundingClientRect(),t))}function DDr(e,t,r){const a=jkn(e,r),{scroll:s}=t;return s&&(LC(a.x,s.offset.x),LC(a.y,s.offset.y)),a}const MDr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PDr=yW.length;function BDr(e,t,r){let a="",s=!0;for(let o=0;o<PDr;o++){const u=yW[o],h=e[u];if(h===void 0)continue;let f=!0;if(typeof h=="number")f=h===(u.startsWith("scale")?1:0);else{const p=parseFloat(h);f=u.startsWith("scale")?p===1:p===0}if(!f||r){const p=Mkn(h,Mdt[u]);if(!f){s=!1;const m=MDr[u]||u;a+=`${m}(${p}) `}r&&(t[u]=p)}}return a=a.trim(),r?a=r(t,s?"":a):s&&(a="none"),a}function zdt(e,t,r){const{style:a,vars:s,transformOrigin:o}=e;let u=!1,h=!1;for(const f in t){const p=t[f];if(vW.has(f)){u=!0;continue}else if(rkn(f)){s[f]=p;continue}else{const m=Mkn(p,Mdt[f]);f.startsWith("origin")?(h=!0,o[f]=m):a[f]=m}}if(t.transform||(u||r?a.transform=BDr(t,e.transform,r):a.transform&&(a.transform="none")),h){const{originX:f="50%",originY:p="50%",originZ:m=0}=o;a.transformOrigin=`${f} ${p} ${m}`}}function Wkn(e,{style:t,vars:r},a,s){const o=e.style;let u;for(u in t)o[u]=t[u];s==null||s.applyProjectionStyles(o,a);for(u in r)o.setProperty(u,r[u])}function Fdn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _re={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ja.test(e))e=parseFloat(e);else return e;const r=Fdn(e,t.target.x),a=Fdn(e,t.target.y);return`${r}% ${a}%`}},FDr={correct:(e,{treeScale:t,projectionDelta:r})=>{const a=e,s=V3.parse(e);if(s.length>5)return a;const o=V3.createTransformer(e),u=typeof s[0]!="number"?1:0,h=r.x.scale*t.x,f=r.y.scale*t.y;s[0+u]/=h,s[1+u]/=f;const p=vd(h,f,.5);return typeof s[2+u]=="number"&&(s[2+u]/=p),typeof s[3+u]=="number"&&(s[3+u]/=p),o(s)}},cst={borderRadius:{..._re,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_re,borderTopRightRadius:_re,borderBottomLeftRadius:_re,borderBottomRightRadius:_re,boxShadow:FDr};function Kkn(e,{layout:t,layoutId:r}){return vW.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!cst[e]||e==="opacity")}function Gdt(e,t,r){var u;const a=e.style,s=t==null?void 0:t.style,o={};if(!a)return o;for(const h in a)(Em(a[h])||s&&Em(s[h])||Kkn(h,e)||((u=r==null?void 0:r.getValue(h))==null?void 0:u.liveStyle)!==void 0)&&(o[h]=a[h]);return o}function $Dr(e){return window.getComputedStyle(e)}class UDr extends qkn{constructor(){super(...arguments),this.type="html",this.renderInstance=Wkn}readValueFromInstance(t,r){var a;if(vW.has(r))return(a=this.projection)!=null&&a.isProjecting?Kat(r):sLr(t,r);{const s=$Dr(t),o=(rkn(r)?s.getPropertyValue(r):s[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return jkn(t,r)}build(t,r,a){zdt(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return Gdt(t,r,a)}}const zDr={offset:"stroke-dashoffset",array:"stroke-dasharray"},GDr={offset:"strokeDashoffset",array:"strokeDasharray"};function qDr(e,t,r=1,a=0,s=!0){e.pathLength=1;const o=s?zDr:GDr;e[o.offset]=`${-a}`,e[o.array]=`${t} ${r}`}const HDr=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xkn(e,{attrX:t,attrY:r,attrScale:a,pathLength:s,pathSpacing:o=1,pathOffset:u=0,...h},f,p,m){if(zdt(e,h,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:_}=e;b.transform&&(_.transform=b.transform,delete b.transform),(_.transform||b.transformOrigin)&&(_.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),_.transform&&(_.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete b.transformBox);for(const w of HDr)b[w]!==void 0&&(_[w]=b[w],delete b[w]);t!==void 0&&(b.x=t),r!==void 0&&(b.y=r),a!==void 0&&(b.scale=a),s!==void 0&&qDr(b,s,o,u,!1)}const Qkn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Zkn=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VDr(e,t,r,a){Wkn(e,t,void 0,a);for(const s in t.attrs)e.setAttribute(Qkn.has(s)?s:Ddt(s),t.attrs[s])}function Jkn(e,t,r){const a=Gdt(e,t,r);for(const s in e)if(Em(e[s])||Em(t[s])){const o=yW.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;a[o]=e[s]}return a}class YDr extends qkn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yp}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(vW.has(r)){const a=Okn(r);return a&&a.default||0}return r=Qkn.has(r)?r:Ddt(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return Jkn(t,r,a)}build(t,r,a){Xkn(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,s){VDr(t,r,a,s)}mount(t){this.isSVGTag=Zkn(t.tagName),super.mount(t)}}const jDr=Udt.length;function e6n(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?e6n(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<jDr;r++){const a=Udt[r],s=e.props[a];(jse(s)||s===!1)&&(t[a]=s)}return t}function t6n(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}const WDr=[...$dt].reverse(),KDr=$dt.length;function XDr(e){return t=>Promise.all(t.map(({animation:r,options:a})=>jLr(e,r,a)))}function QDr(e){let t=XDr(e),r=$dn(),a=!0,s=!1;const o=p=>(m,b)=>{var w;const _=dF(e,b,p==="exit"?(w=e.presenceContext)==null?void 0:w.custom:void 0);if(_){const{transition:S,transitionEnd:C,...A}=_;m={...m,...A,...C}}return m};function u(p){t=p(e)}function h(p){const{props:m}=e,b=e6n(e.parent)||{},_=[],w=new Set;let S={},C=1/0;for(let k=0;k<KDr;k++){const I=WDr[k],N=r[I],L=m[I]!==void 0?m[I]:b[I],P=jse(L),M=I===p?N.isActive:null;M===!1&&(C=k);let F=L===b[I]&&L!==m[I]&&P;if(F&&(a||s)&&e.manuallyAnimateOnMount&&(F=!1),N.protectedKeys={...S},!N.isActive&&M===null||!L&&!N.prevProp||$5e(L)||typeof L=="boolean")continue;if(I==="exit"&&N.isActive&&M!==!0){N.prevResolvedValues&&(S={...S,...N.prevResolvedValues});continue}const U=ZDr(N.prevProp,L);let $=U||I===p&&N.isActive&&!F&&P||k>C&&P,G=!1;const B=Array.isArray(L)?L:[L];let Z=B.reduce(o(I),{});M===!1&&(Z={});const{prevResolvedValues:z={}}=N,Y={...z,...Z},W=j=>{$=!0,w.has(j)&&(G=!0,w.delete(j)),N.needsAnimating[j]=!0;const ee=e.getValue(j);ee&&(ee.liveStyle=!1)};for(const j in Y){const ee=Z[j],te=z[j];if(S.hasOwnProperty(j))continue;let ne=!1;tst(ee)&&tst(te)?ne=!t6n(ee,te):ne=ee!==te,ne?ee!=null?W(j):w.add(j):ee!==void 0&&w.has(j)?W(j):N.protectedKeys[j]=!0}N.prevProp=L,N.prevResolvedValues=Z,N.isActive&&(S={...S,...Z}),(a||s)&&e.blockInitialAnimation&&($=!1);const Q=F&&U;$&&(!Q||G)&&_.push(...B.map(j=>{const ee={type:I};if(typeof j=="string"&&(a||s)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,ne=dF(te,j);if(te.enteringChildren&&ne){const{delayChildren:se}=ne.transition||{};ee.delay=xkn(te.enteringChildren,e,se)}}return{animation:j,options:ee}}))}if(w.size){const k={};if(typeof m.initial!="boolean"){const I=dF(e,Array.isArray(m.initial)?m.initial[0]:m.initial);I&&I.transition&&(k.transition=I.transition)}w.forEach(I=>{const N=e.getBaseTarget(I),L=e.getValue(I);L&&(L.liveStyle=!0),k[I]=N??null}),_.push({animation:k})}let A=!!_.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(A=!1),a=!1,s=!1,A?t(_):Promise.resolve()}function f(p,m){var _;if(r[p].isActive===m)return Promise.resolve();(_=e.variantChildren)==null||_.forEach(w=>{var S;return(S=w.animationState)==null?void 0:S.setActive(p,m)}),r[p].isActive=m;const b=h(p);for(const w in r)r[w].protectedKeys={};return b}return{animateChanges:h,setActive:f,setAnimateFunction:u,getState:()=>r,reset:()=>{r=$dn(),s=!0}}}function ZDr(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!t6n(t,e):!1}function uB(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $dn(){return{animate:uB(!0),whileInView:uB(),whileHover:uB(),whileTap:uB(),whileDrag:uB(),whileFocus:uB(),exit:uB()}}function ust(e,t){e.min=t.min,e.max=t.max}function b3(e,t){ust(e.x,t.x),ust(e.y,t.y)}function Udn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const n6n=1e-4,JDr=1-n6n,eMr=1+n6n,r6n=.01,tMr=0-r6n,nMr=0+r6n;function Yy(e){return e.max-e.min}function rMr(e,t,r){return Math.abs(e-t)<=r}function zdn(e,t,r,a=.5){e.origin=a,e.originPoint=vd(t.min,t.max,e.origin),e.scale=Yy(r)/Yy(t),e.translate=vd(r.min,r.max,e.origin)-e.originPoint,(e.scale>=JDr&&e.scale<=eMr||isNaN(e.scale))&&(e.scale=1),(e.translate>=tMr&&e.translate<=nMr||isNaN(e.translate))&&(e.translate=0)}function Wae(e,t,r,a){zdn(e.x,t.x,r.x,a?a.originX:void 0),zdn(e.y,t.y,r.y,a?a.originY:void 0)}function Gdn(e,t,r,a=0){const s=a?vd(r.min,r.max,a):r.min;e.min=s+t.min,e.max=e.min+Yy(t)}function iMr(e,t,r,a){Gdn(e.x,t.x,r.x,a==null?void 0:a.x),Gdn(e.y,t.y,r.y,a==null?void 0:a.y)}function qdn(e,t,r,a=0){const s=a?vd(r.min,r.max,a):r.min;e.min=t.min-s,e.max=e.min+Yy(t)}function SSe(e,t,r,a){qdn(e.x,t.x,r.x,a==null?void 0:a.x),qdn(e.y,t.y,r.y,a==null?void 0:a.y)}function Hdn(e,t,r,a,s){return e-=t,e=xSe(e,1/r,a),s!==void 0&&(e=xSe(e,1/s,a)),e}function aMr(e,t=0,r=1,a=.5,s,o=e,u=e){if(rA.test(t)&&(t=parseFloat(t),t=vd(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=vd(o.min,o.max,a);e===o&&(h-=t),e.min=Hdn(e.min,t,r,h,s),e.max=Hdn(e.max,t,r,h,s)}function Vdn(e,t,[r,a,s],o,u){aMr(e,t[r],t[a],t[s],t.scale,o,u)}const sMr=["x","scaleX","originX"],oMr=["y","scaleY","originY"];function Ydn(e,t,r,a){Vdn(e.x,t,sMr,r?r.x:void 0,a?a.x:void 0),Vdn(e.y,t,oMr,r?r.y:void 0,a?a.y:void 0)}function jdn(e){return e.translate===0&&e.scale===1}function i6n(e){return jdn(e.x)&&jdn(e.y)}function Wdn(e,t){return e.min===t.min&&e.max===t.max}function lMr(e,t){return Wdn(e.x,t.x)&&Wdn(e.y,t.y)}function Kdn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function a6n(e,t){return Kdn(e.x,t.x)&&Kdn(e.y,t.y)}function Xdn(e){return Yy(e.x)/Yy(e.y)}function Qdn(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function SC(e){return[e("x"),e("y")]}function cMr(e,t,r){let a="";const s=e.x.translate/t.x,o=e.y.translate/t.y,u=(r==null?void 0:r.z)||0;if((s||o||u)&&(a=`translate3d(${s}px, ${o}px, ${u}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:p,rotate:m,rotateX:b,rotateY:_,skewX:w,skewY:S}=r;p&&(a=`perspective(${p}px) ${a}`),m&&(a+=`rotate(${m}deg) `),b&&(a+=`rotateX(${b}deg) `),_&&(a+=`rotateY(${_}deg) `),w&&(a+=`skewX(${w}deg) `),S&&(a+=`skewY(${S}deg) `)}const h=e.x.scale*t.x,f=e.y.scale*t.y;return(h!==1||f!==1)&&(a+=`scale(${h}, ${f})`),a||"none"}const s6n=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],uMr=s6n.length,Zdn=e=>typeof e=="string"?parseFloat(e):e,Jdn=e=>typeof e=="number"||ja.test(e);function hMr(e,t,r,a,s,o){s?(e.opacity=vd(0,r.opacity??1,dMr(a)),e.opacityExit=vd(t.opacity??1,0,fMr(a))):o&&(e.opacity=vd(t.opacity??1,r.opacity??1,a));for(let u=0;u<uMr;u++){const h=s6n[u];let f=efn(t,h),p=efn(r,h);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Jdn(f)===Jdn(p)?(e[h]=Math.max(vd(Zdn(f),Zdn(p),a),0),(rA.test(p)||rA.test(f))&&(e[h]+="%")):e[h]=p}(t.rotate||r.rotate)&&(e.rotate=vd(t.rotate||0,r.rotate||0,a))}function efn(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const dMr=o6n(0,.5,QAn),fMr=o6n(.5,.95,cS);function o6n(e,t,r){return a=>a<e?0:a>t?1:r(Vse(e,t,a))}function pMr(e,t,r){const a=Em(e)?e:mj(e);return a.start(Odt("",a,t,r)),a.animation}function Wse(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}const gMr=(e,t)=>e.depth-t.depth;class mMr{constructor(){this.children=[],this.isDirty=!1}add(t){vdt(this.children,t),this.isDirty=!0}remove(t){bSe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gMr),this.isDirty=!1,this.children.forEach(t)}}function bMr(e,t){const r=Vy.now(),a=({timestamp:s})=>{const o=s-r;o>=t&&($O(a),e(o-t))};return Dh.setup(a,!0),()=>$O(a)}function UEe(e){return Em(e)?e.get():e}class yMr{constructor(){this.members=[]}add(t){vdt(this.members,t);for(let r=this.members.length-1;r>=0;r--){const a=this.members[r];if(a===t||a===this.lead||a===this.prevLead)continue;const s=a.instance;(!s||s.isConnected===!1)&&!a.snapshot&&(bSe(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(bSe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){var r;for(let a=this.members.indexOf(t)-1;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1&&((r=s.instance)==null?void 0:r.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,r){var s;const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=a.options,{layoutDependency:u}=t.options;(o===void 0||o!==u)&&(t.resumeFrom=a,r&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,a,s,o,u;(a=(r=t.options).onExitComplete)==null||a.call(r),(u=(s=t.resumingFrom)==null?void 0:(o=s.options).onExitComplete)==null||u.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const zEe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_Xe=["","X","Y","Z"],vMr=1e3;let _Mr=0;function wXe(e,t,r,a){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),a&&(a[e]=0))}function l6n(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=kkn(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Dh,!(s||o))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&l6n(a)}function c6n({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:s}){return class{constructor(u={},h=t==null?void 0:t()){this.id=_Mr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(xMr),this.nodes.forEach(RMr),this.nodes.forEach(IMr),this.nodes.forEach(SMr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new mMr)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new wdt),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const f=this.eventHandlers.get(u);f&&f.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Fdt(u)&&!EDr(u),this.instance=u;const{layoutId:h,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||h)&&(this.isLayoutDirty=!0),e){let m,b=0;const _=()=>this.root.updateBlockedByResize=!1;Dh.read(()=>{b=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==b&&(b=w,this.root.updateBlockedByResize=!0,m&&m(),m=bMr(_,250),zEe.hasAnimatedSinceResize&&(zEe.hasAnimatedSinceResize=!1,this.nodes.forEach(rfn)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:b,hasRelativeLayoutChanged:_,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||p.getDefaultTransition()||MMr,{onLayoutAnimationStart:C,onLayoutAnimationComplete:A}=p.getProps(),k=!this.targetLayout||!a6n(this.targetLayout,w),I=!b&&_;if(this.options.layoutRoot||this.resumeFrom||I||b&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...Ndt(S,"layout"),onPlay:C,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,I)}else b||rfn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$O(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NMr),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&l6n(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const b=this.path[m];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:f}=this.options;if(h===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(CMr),this.nodes.forEach(tfn);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nfn);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(AMr),this.nodes.forEach(kMr),this.nodes.forEach(wMr),this.nodes.forEach(EMr)):this.nodes.forEach(nfn),this.clearAllSnapshots();const h=Vy.now();bm.delta=gA(0,1e3/60,h-bm.timestamp),bm.timestamp=h,bm.isProcessing=!0,dXe.update.process(bm),dXe.preRender.process(bm),dXe.render.process(bm),bm.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pdt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(TMr),this.sharedNodes.forEach(OMr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dh.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dh.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yy(this.snapshot.measuredBox.x)&&!Yy(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=yp()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h&&this.instance){const f=a(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!i6n(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;u&&this.instance&&(h||TB(this.latestValues)||m)&&(s(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let f=this.removeElementScroll(h);return u&&(f=this.removeTransform(f)),PMr(f),{animationId:this.root.animationId,measuredBox:h,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:u}=this.options;if(!u)return yp();const h=u.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(BMr))){const{scroll:m}=this.root;m&&(LC(h.x,m.offset.x),LC(h.y,m.offset.y))}return h}removeElementScroll(u){var f;const h=yp();if(b3(h,u),(f=this.scroll)!=null&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:b,options:_}=m;m!==this.root&&b&&_.layoutScroll&&(b.wasRoot&&b3(h,u),LC(h.x,b.offset.x),LC(h.y,b.offset.y))}return h}applyTransform(u,h=!1,f){var m,b;const p=f||yp();b3(p,u);for(let _=0;_<this.path.length;_++){const w=this.path[_];!h&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(LC(p.x,-w.scroll.offset.x),LC(p.y,-w.scroll.offset.y)),TB(w.latestValues)&&$Ee(p,w.latestValues,(m=w.layout)==null?void 0:m.layoutBox)}return TB(this.latestValues)&&$Ee(p,this.latestValues,(b=this.layout)==null?void 0:b.layoutBox),p}removeTransform(u){var f;const h=yp();b3(h,u);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!TB(m.latestValues))continue;let b;m.instance&&(ost(m.latestValues)&&m.updateSnapshot(),b=yp(),b3(b,m.measurePageBox())),Ydn(h,m.latestValues,(f=m.snapshot)==null?void 0:f.layoutBox,b)}return TB(this.latestValues)&&Ydn(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==bm.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var w;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==h;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:b}=this.options;if(!this.layout||!(m||b))return;this.resolvedRelativeTargetAt=bm.timestamp;const _=this.getClosestProjectingParent();_&&this.linkedParentVersion!==_.layoutVersion&&!_.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&_&&_.layout?this.createRelativeTarget(_,this.layout.layoutBox,_.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=yp(),this.targetWithTransforms=yp()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iMr(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):b3(this.target,this.layout.layoutBox),Ykn(this.target,this.targetDelta)):b3(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?this.createRelativeTarget(_,this.target,_.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ost(this.parent.latestValues)||Vkn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,h,f){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yp(),this.relativeTargetOrigin=yp(),SSe(this.relativeTargetOrigin,h,f,this.options.layoutAnchor||void 0),b3(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const u=this.getLead(),h=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===bm.timestamp&&(f=!1),f)return;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;b3(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,_=this.treeScale.y;LDr(this.layoutCorrected,this.treeScale,this.path,h),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=yp());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Udn(this.prevProjectionDelta.x,this.projectionDelta.x),Udn(this.prevProjectionDelta.y,this.projectionDelta.y)),Wae(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==_||!Qdn(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qdn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=CV(),this.projectionDelta=CV(),this.projectionDeltaWithTransform=CV()}setAnimationOrigin(u,h=!1){const f=this.snapshot,p=f?f.latestValues:{},m={...this.latestValues},b=CV();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const _=yp(),w=f?f.source:void 0,S=this.layout?this.layout.source:void 0,C=w!==S,A=this.getStack(),k=!A||A.members.length<=1,I=!!(C&&!k&&this.options.crossfade===!0&&!this.path.some(DMr));this.animationProgress=0;let N;this.mixTargetDelta=L=>{const P=L/1e3;ifn(b.x,u.x,P),ifn(b.y,u.y,P),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(SSe(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),LMr(this.relativeTarget,this.relativeTargetOrigin,_,P),N&&lMr(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=yp()),b3(N,this.relativeTarget)),C&&(this.animationValues=m,hMr(m,p,this.latestValues,P,I,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var h,f,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||p.stop(),this.pendingAnimation&&($O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dh.update(()=>{zEe.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mj(0)),this.motionValue.jump(0,!1),this.currentAnimation=pMr(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vMr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:f,layout:p,latestValues:m}=u;if(!(!h||!f||!p)){if(this!==u&&this.layout&&p&&u6n(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||yp();const b=Yy(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+b;const _=Yy(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+_}b3(h,f),$Ee(h,m),Wae(this.projectionDeltaWithTransform,this.layoutCorrected,h,m)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new yMr),this.sharedNodes.get(u).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var h;const{layoutId:u}=this.options;return u?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:u}=this.options;return u?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(h=!0),!h)return;const p={};f.z&&wXe("z",u,p,this.animationValues);for(let m=0;m<_Xe.length;m++)wXe(`rotate${_Xe[m]}`,u,p,this.animationValues),wXe(`skew${_Xe[m]}`,u,p,this.animationValues);u.render();for(const m in p)u.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=UEe(h==null?void 0:h.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=UEe(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!TB(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const m=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=cMr(this.projectionDeltaWithTransform,this.treeScale,m);f&&(b=f(m,b)),u.transform=b;const{x:_,y:w}=this.projectionDelta;u.transformOrigin=`${_.origin*100}% ${w.origin*100}% 0`,p.animationValues?u.opacity=p===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in cst){if(m[S]===void 0)continue;const{correct:C,applyTo:A,isCSSVariable:k}=cst[S],I=b==="none"?m[S]:C(m[S],p);if(A){const N=A.length;for(let L=0;L<N;L++)u[A[L]]=I}else k?this.options.visualElement.renderState.vars[S]=I:u[S]=I}this.options.layoutId&&(u.pointerEvents=p===this?UEe(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(tfn),this.root.sharedNodes.clear()}}}function wMr(e){e.updateLayout()}function EMr(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:o}=e.options,u=t.source!==e.layout.source;if(o==="size")SC(b=>{const _=u?t.measuredBox[b]:t.layoutBox[b],w=Yy(_);_.min=a[b].min,_.max=_.min+w});else if(o==="x"||o==="y"){const b=o==="x"?"y":"x";ust(u?t.measuredBox[b]:t.layoutBox[b],a[b])}else u6n(o,t.layoutBox,a)&&SC(b=>{const _=u?t.measuredBox[b]:t.layoutBox[b],w=Yy(a[b]);_.max=_.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+w)});const h=CV();Wae(h,a,t.layoutBox);const f=CV();u?Wae(f,e.applyTransform(s,!0),t.measuredBox):Wae(f,a,t.layoutBox);const p=!i6n(h);let m=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:_,layout:w}=b;if(_&&w){const S=e.options.layoutAnchor||void 0,C=yp();SSe(C,t.layoutBox,_.layoutBox,S);const A=yp();SSe(A,a,w.layoutBox,S),a6n(C,A)||(m=!0),b.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=C,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:f,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function xMr(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function SMr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TMr(e){e.clearSnapshot()}function tfn(e){e.clearMeasurements()}function CMr(e){e.isLayoutDirty=!0,e.updateLayout()}function nfn(e){e.isLayoutDirty=!1}function AMr(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function kMr(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rfn(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RMr(e){e.resolveTargetDelta()}function IMr(e){e.calcProjection()}function NMr(e){e.resetSkewAndRotation()}function OMr(e){e.removeLeadSnapshot()}function ifn(e,t,r){e.translate=vd(t.translate,0,r),e.scale=vd(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function afn(e,t,r,a){e.min=vd(t.min,r.min,a),e.max=vd(t.max,r.max,a)}function LMr(e,t,r,a){afn(e.x,t.x,r.x,a),afn(e.y,t.y,r.y,a)}function DMr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const MMr={duration:.45,ease:[.4,0,.1,1]},sfn=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ofn=sfn("applewebkit/")&&!sfn("chrome/")?Math.round:cS;function lfn(e){e.min=ofn(e.min),e.max=ofn(e.max)}function PMr(e){lfn(e.x),lfn(e.y)}function u6n(e,t,r){return e==="position"||e==="preserve-aspect"&&!rMr(Xdn(t),Xdn(r),.2)}function BMr(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const FMr=c6n({attachResizeListener:(e,t)=>Wse(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),EXe={current:void 0},h6n=c6n({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!EXe.current){const e=new FMr({});e.mount(window),e.setOptions({layoutScroll:!0}),EXe.current=e}return EXe.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qdt=ue.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function cfn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $Mr(...e){return t=>{let r=!1;const a=e.map(s=>{const o=cfn(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<a.length;s++){const o=a[s];typeof o=="function"?o():cfn(e[s],null)}}}}function UMr(...e){return ue.useCallback($Mr(...e),e)}class zMr extends ue.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(MEe(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=r.offsetParent,s=MEe(a)&&a.offsetWidth||0,o=MEe(a)&&a.offsetHeight||0,u=getComputedStyle(r),h=this.props.sizeRef.current;h.height=parseFloat(u.height),h.width=parseFloat(u.width),h.top=r.offsetTop,h.left=r.offsetLeft,h.right=s-h.width-h.left,h.bottom=o-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function GMr({children:e,isPresent:t,anchorX:r,anchorY:a,root:s,pop:o}){var _;const u=ue.useId(),h=ue.useRef(null),f=ue.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=ue.useContext(qdt),m=((_=e.props)==null?void 0:_.ref)??(e==null?void 0:e.ref),b=UMr(h,m);return ue.useInsertionEffect(()=>{const{width:w,height:S,top:C,left:A,right:k,bottom:I}=f.current;if(t||o===!1||!h.current||!w||!S)return;const N=r==="left"?`left: ${A}`:`right: ${k}`,L=a==="bottom"?`bottom: ${I}`:`top: ${C}`;h.current.dataset.motionPopId=u;const P=document.createElement("style");p&&(P.nonce=p);const M=s??document.head;return M.appendChild(P),P.sheet&&P.sheet.insertRule(`
          [data-motion-pop-id="${u}"] {
            position: absolute !important;
            width: ${w}px !important;
            height: ${S}px !important;
            ${N}px !important;
            ${L}px !important;
          }
        `),()=>{var F;(F=h.current)==null||F.removeAttribute("data-motion-pop-id"),M.contains(P)&&M.removeChild(P)}},[t]),ct.jsx(zMr,{isPresent:t,childRef:h,sizeRef:f,pop:o,children:o===!1?e:ue.cloneElement(e,{ref:b})})}const qMr=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:s,presenceAffectsLayout:o,mode:u,anchorX:h,anchorY:f,root:p})=>{const m=ydt(HMr),b=ue.useId();let _=!0,w=ue.useMemo(()=>(_=!1,{id:b,initial:t,isPresent:r,custom:s,onExitComplete:S=>{m.set(S,!0);for(const C of m.values())if(!C)return;a&&a()},register:S=>(m.set(S,!1),()=>m.delete(S))}),[r,m,a]);return o&&_&&(w={...w}),ue.useMemo(()=>{m.forEach((S,C)=>m.set(C,!1))},[r]),ue.useEffect(()=>{!r&&!m.size&&a&&a()},[r]),e=ct.jsx(GMr,{pop:u==="popLayout",isPresent:r,anchorX:h,anchorY:f,root:p,children:e}),ct.jsx(B5e.Provider,{value:w,children:e})};function HMr(){return new Map}function d6n(e=!0){const t=ue.useContext(B5e);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:a,register:s}=t,o=ue.useId();ue.useEffect(()=>{if(e)return s(o)},[e]);const u=ue.useCallback(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,u]:[!0]}const o_e=e=>e.key||"";function ufn(e){const t=[];return ue.Children.forEach(e,r=>{ue.isValidElement(r)&&t.push(r)}),t}const W4a=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:s=!0,mode:o="sync",propagate:u=!1,anchorX:h="left",anchorY:f="top",root:p})=>{const[m,b]=d6n(u),_=ue.useMemo(()=>ufn(e),[e]),w=u&&!m?[]:_.map(o_e),S=ue.useRef(!0),C=ue.useRef(_),A=ydt(()=>new Map),k=ue.useRef(new Set),[I,N]=ue.useState(_),[L,P]=ue.useState(_);$An(()=>{S.current=!1,C.current=_;for(let U=0;U<L.length;U++){const $=o_e(L[U]);w.includes($)?(A.delete($),k.current.delete($)):A.get($)!==!0&&A.set($,!1)}},[L,w.length,w.join("-")]);const M=[];if(_!==I){let U=[..._];for(let $=0;$<L.length;$++){const G=L[$],B=o_e(G);w.includes(B)||(U.splice($,0,G),M.push(G))}return o==="wait"&&M.length&&(U=M),P(ufn(U)),N(_),null}const{forceRender:F}=ue.useContext(bdt);return ct.jsx(ct.Fragment,{children:L.map(U=>{const $=o_e(U),G=u&&!m?!1:_===L||w.includes($),B=()=>{if(k.current.has($))return;if(A.has($))k.current.add($),A.set($,!0);else return;let Z=!0;A.forEach(z=>{z||(Z=!1)}),Z&&(F==null||F(),P(C.current),u&&(b==null||b()),a&&a())};return ct.jsx(qMr,{isPresent:G,initial:!S.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,root:p,onExitComplete:G?void 0:B,anchorX:h,anchorY:f,children:U},$)})})},f6n=ue.createContext({strict:!1}),hfn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let dfn=!1;function VMr(){if(dfn)return;const e={};for(const t in hfn)e[t]={isEnabled:r=>hfn[t].some(a=>!!r[a])};Gkn(e),dfn=!0}function p6n(){return VMr(),RDr()}function YMr(e){const t=p6n();for(const r in e)t[r]={...t[r],...e[r]};Gkn(t)}const jMr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function TSe(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jMr.has(e)}let g6n=e=>!TSe(e);function WMr(e){typeof e=="function"&&(g6n=t=>t.startsWith("on")?!TSe(t):e(t))}try{WMr(require("@emotion/is-prop-valid").default)}catch{}function KMr(e,t,r){const a={};for(const s in e)s==="values"&&typeof e.values=="object"||Em(e[s])||(g6n(s)||r===!0&&TSe(s)||!t&&!TSe(s)||e.draggable&&s.startsWith("onDrag"))&&(a[s]=e[s]);return a}const z5e=ue.createContext({});function XMr(e,t){if(U5e(e)){const{initial:r,animate:a}=e;return{initial:r===!1||jse(r)?r:void 0,animate:jse(a)?a:void 0}}return e.inherit!==!1?t:{}}function QMr(e){const{initial:t,animate:r}=XMr(e,ue.useContext(z5e));return ue.useMemo(()=>({initial:t,animate:r}),[ffn(t),ffn(r)])}function ffn(e){return Array.isArray(e)?e.join(" "):e}const Hdt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function m6n(e,t,r){for(const a in t)!Em(t[a])&&!Kkn(a,r)&&(e[a]=t[a])}function ZMr({transformTemplate:e},t){return ue.useMemo(()=>{const r=Hdt();return zdt(r,t,e),Object.assign({},r.vars,r.style)},[t])}function JMr(e,t){const r=e.style||{},a={};return m6n(a,r,e),Object.assign(a,ZMr(e,t)),a}function ePr(e,t){const r={},a=JMr(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const b6n=()=>({...Hdt(),attrs:{}});function tPr(e,t,r,a){const s=ue.useMemo(()=>{const o=b6n();return Xkn(o,t,Zkn(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};m6n(o,e.style,e),s.style={...o,...s.style}}return s}const nPr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vdt(e){return typeof e!="string"||e.includes("-")?!1:!!(nPr.indexOf(e)>-1||/[A-Z]/u.test(e))}function rPr(e,t,r,{latestValues:a},s,o=!1,u){const f=(u??Vdt(e)?tPr:ePr)(t,a,s,e),p=KMr(t,typeof e=="string",o),m=e!==ue.Fragment?{...p,...f,ref:r}:{},{children:b}=t,_=ue.useMemo(()=>Em(b)?b.get():b,[b]);return ue.createElement(e,{...m,children:_})}function iPr({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,s){return{latestValues:aPr(r,a,s,e),renderState:t()}}function aPr(e,t,r,a){const s={},o=a(e,{});for(const _ in o)s[_]=UEe(o[_]);let{initial:u,animate:h}=e;const f=U5e(e),p=Ukn(e);t&&p&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let m=r?r.initial===!1:!1;m=m||u===!1;const b=m?h:u;if(b&&typeof b!="boolean"&&!$5e(b)){const _=Array.isArray(b)?b:[b];for(let w=0;w<_.length;w++){const S=Ldt(e,_[w]);if(S){const{transitionEnd:C,transition:A,...k}=S;for(const I in k){let N=k[I];if(Array.isArray(N)){const L=m?N.length-1:0;N=N[L]}N!==null&&(s[I]=N)}for(const I in C)s[I]=C[I]}}}return s}const y6n=e=>(t,r)=>{const a=ue.useContext(z5e),s=ue.useContext(B5e),o=()=>iPr(e,t,a,s);return r?o():ydt(o)},sPr=y6n({scrapeMotionValuesFromProps:Gdt,createRenderState:Hdt}),oPr=y6n({scrapeMotionValuesFromProps:Jkn,createRenderState:b6n}),lPr=Symbol.for("motionComponentSymbol");function cPr(e,t,r){const a=ue.useRef(r);ue.useInsertionEffect(()=>{a.current=r});const s=ue.useRef(null);return ue.useCallback(o=>{var h;o&&((h=e.onMount)==null||h.call(e,o));const u=a.current;if(typeof u=="function")if(o){const f=u(o);typeof f=="function"&&(s.current=f)}else s.current?(s.current(),s.current=null):u(o);else u&&(u.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const v6n=ue.createContext({});function oV(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uPr(e,t,r,a,s,o){var N,L;const{visualElement:u}=ue.useContext(z5e),h=ue.useContext(f6n),f=ue.useContext(B5e),p=ue.useContext(qdt),m=p.reducedMotion,b=p.skipAnimations,_=ue.useRef(null),w=ue.useRef(!1);a=a||h.renderer,!_.current&&a&&(_.current=a(e,{visualState:t,parent:u,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:b,isSVG:o}),w.current&&_.current&&(_.current.manuallyAnimateOnMount=!0));const S=_.current,C=ue.useContext(v6n);S&&!S.projection&&s&&(S.type==="html"||S.type==="svg")&&hPr(_.current,r,s,C);const A=ue.useRef(!1);ue.useInsertionEffect(()=>{S&&A.current&&S.update(r,f)});const k=r[Akn],I=ue.useRef(!!k&&typeof window<"u"&&!((N=window.MotionHandoffIsComplete)!=null&&N.call(window,k))&&((L=window.MotionHasOptimisedAnimation)==null?void 0:L.call(window,k)));return $An(()=>{w.current=!0,S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),I.current&&S.animationState&&S.animationState.animateChanges())}),ue.useEffect(()=>{S&&(!I.current&&S.animationState&&S.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,k)}),I.current=!1),S.enteringChildren=void 0)}),S}function hPr(e,t,r,a){const{layoutId:s,layout:o,drag:u,dragConstraints:h,layoutScroll:f,layoutRoot:p,layoutAnchor:m,layoutCrossfade:b}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:_6n(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!u||h&&oV(h),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:b,layoutScroll:f,layoutRoot:p,layoutAnchor:m})}function _6n(e){if(e)return e.options.allowProjection!==!1?e.projection:_6n(e.parent)}function xXe(e,{forwardMotionProps:t=!1,type:r}={},a,s){a&&YMr(a);const o=r?r==="svg":Vdt(e),u=o?oPr:sPr;function h(p,m){let b;const _={...ue.useContext(qdt),...p,layoutId:dPr(p)},{isStatic:w}=_,S=QMr(p),C=u(p,w);if(!w&&typeof window<"u"){fPr();const A=pPr(_);b=A.MeasureLayout,S.visualElement=uPr(e,C,_,s,A.ProjectionNode,o)}return ct.jsxs(z5e.Provider,{value:S,children:[b&&S.visualElement?ct.jsx(b,{visualElement:S.visualElement,..._}):null,rPr(e,p,cPr(C,S.visualElement,m),C,w,t,o)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=ue.forwardRef(h);return f[lPr]=e,f}function dPr({layoutId:e}){const t=ue.useContext(bdt).id;return t&&e!==void 0?t+"-"+e:e}function fPr(e,t){ue.useContext(f6n).strict}function pPr(e){const t=p6n(),{drag:r,layout:a}=t;if(!r&&!a)return{};const s={...r,...a};return{MeasureLayout:r!=null&&r.isEnabled(e)||a!=null&&a.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function gPr(e,t){if(typeof Proxy>"u")return xXe;const r=new Map,a=(o,u)=>xXe(o,u,e,t),s=(o,u)=>a(o,u);return new Proxy(s,{get:(o,u)=>u==="create"?a:(r.has(u)||r.set(u,xXe(u,void 0,e,t)),r.get(u))})}const mPr=(e,t)=>t.isSVG??Vdt(e)?new YDr(t):new UDr(t,{allowProjection:e!==ue.Fragment});class bPr extends E9{constructor(t){super(t),t.animationState||(t.animationState=QDr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$5e(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let yPr=0;class vPr extends E9{constructor(){super(...arguments),this.id=yPr++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:u,custom:h}=this.node.getProps();if(typeof u=="string"){const f=dF(this.node,u,h);if(f){const{transition:p,transitionEnd:m,...b}=f;for(const _ in b)(o=this.node.getValue(_))==null||o.jump(b[_])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _Pr={animation:{Feature:bPr},exit:{Feature:vPr}};function Ple(e){return{point:{x:e.pageX,y:e.pageY}}}const wPr=e=>t=>Bdt(t)&&e(t,Ple(t));function Kae(e,t,r,a){return Wse(e,t,wPr(r),a)}const w6n=({current:e})=>e?e.ownerDocument.defaultView:null,pfn=(e,t)=>Math.abs(e-t);function EPr(e,t){const r=pfn(e.x,t.x),a=pfn(e.y,t.y);return Math.sqrt(r**2+a**2)}const gfn=new Set(["auto","scroll"]);class E6n{constructor(t,r,{transformPagePoint:a,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:u=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=l_e(this.lastRawMoveEventInfo,this.transformPagePoint));const w=SXe(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=EPr(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!C)return;const{point:A}=w,{timestamp:k}=bm;this.history.push({...A,timestamp:k});const{onStart:I,onMove:N}=this.handlers;S||(I&&I(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,w)},this.handlePointerMove=(w,S)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=l_e(S,this.transformPagePoint),Dh.update(this.updatePoint,!0)},this.handlePointerUp=(w,S)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const I=SXe(w.type==="pointercancel"?this.lastMoveEventInfo:l_e(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(w,I),A&&A(w,I)},!Bdt(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=u,this.contextWindow=s||window;const f=Ple(t),p=l_e(f,this.transformPagePoint),{point:m}=p,{timestamp:b}=bm;this.history=[{...m,timestamp:b}];const{onSessionStart:_}=r;_&&_(t,SXe(p,this.history)),this.removeListeners=Lle(Kae(this.contextWindow,"pointermove",this.handlePointerMove),Kae(this.contextWindow,"pointerup",this.handlePointerUp),Kae(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let r=t.parentElement;for(;r;){const a=getComputedStyle(r);(gfn.has(a.overflowX)||gfn.has(a.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const a=t===window,s=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-r.x,y:s.y-r.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),Dh.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$O(this.updatePoint)}}function l_e(e,t){return t?{point:t(e.point)}:e}function mfn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function SXe({point:e},t){return{point:e,delta:mfn(e,x6n(t)),offset:mfn(e,xPr(t)),velocity:SPr(t,.1)}}function xPr(e){return e[0]}function x6n(e){return e[e.length-1]}function SPr(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null;const s=x6n(e);for(;r>=0&&(a=e[r],!(s.timestamp-a.timestamp>Dw(t)));)r--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&s.timestamp-a.timestamp>Dw(t)*2&&(a=e[1]);const o=rS(s.timestamp-a.timestamp);if(o===0)return{x:0,y:0};const u={x:(s.x-a.x)/o,y:(s.y-a.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function TPr(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?vd(t,e,a.min):Math.max(e,t):r!==void 0&&e>r&&(e=a?vd(r,e,a.max):Math.min(e,r)),e}function bfn(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function CPr(e,{top:t,left:r,bottom:a,right:s}){return{x:bfn(e.x,r,s),y:bfn(e.y,t,a)}}function yfn(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function APr(e,t){return{x:yfn(e.x,t.x),y:yfn(e.y,t.y)}}function kPr(e,t){let r=.5;const a=Yy(e),s=Yy(t);return s>a?r=Vse(t.min,t.max-a,e.min):a>s&&(r=Vse(e.min,e.max-s,t.min)),gA(0,1,r)}function RPr(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const hst=.35;function IPr(e=hst){return e===!1?e=0:e===!0&&(e=hst),{x:vfn(e,"left","right"),y:vfn(e,"top","bottom")}}function vfn(e,t,r){return{min:_fn(e,t),max:_fn(e,r)}}function _fn(e,t){return typeof e=="number"?e:e[t]||0}const NPr=new WeakMap;class OPr{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yp(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=b=>{r&&this.snapToCursor(Ple(b).point),this.stopAnimation()},u=(b,_)=>{const{drag:w,dragPropagation:S,onDragStart:C}=this.getProps();if(w&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aDr(w),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=_,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),SC(k=>{let I=this.getAxisMotionValue(k).get()||0;if(rA.test(I)){const{projection:N}=this.visualElement;if(N&&N.layout){const L=N.layout.layoutBox[k];L&&(I=Yy(L)*(parseFloat(I)/100))}}this.originPoint[k]=I}),C&&Dh.update(()=>C(b,_),!1,!0),nst(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},h=(b,_)=>{this.latestPointerEvent=b,this.latestPanInfo=_;const{dragPropagation:w,dragDirectionLock:S,onDirectionLock:C,onDrag:A}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=_;if(S&&this.currentDirection===null){this.currentDirection=DPr(k),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",_.point,k),this.updateAxis("y",_.point,k),this.visualElement.render(),A&&Dh.update(()=>A(b,_),!1,!0)},f=(b,_)=>{this.latestPointerEvent=b,this.latestPanInfo=_,this.stop(b,_),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new E6n(t,{onSessionStart:o,onStart:u,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:a,contextWindow:w6n(this.visualElement),element:this.visualElement.current})}stop(t,r){const a=t||this.latestPointerEvent,s=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!a)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&Dh.postRender(()=>h(a,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,a){const{drag:s}=this.getProps();if(!a||!c_e(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let u=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(u=TPr(u,this.constraints[t],this.elastic[t])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,s=this.constraints;t&&oV(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=CPr(a.layoutBox,t):this.constraints=!1,this.elastic=IPr(r),s!==this.constraints&&!oV(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&SC(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=RPr(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!oV(t))return!1;const a=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=DDr(a,s.root,this.visualElement.getTransformPagePoint());let u=APr(s.layout.layoutBox,o);if(r){const h=r(NDr(u));this.hasMutatedConstraints=!!h,h&&(u=Hkn(h))}return u}startAnimation(t){const{drag:r,dragMomentum:a,dragElastic:s,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),f=this.constraints||{},p=SC(m=>{if(!c_e(m,r,this.currentDirection))return;let b=f&&f[m]||{};(u===!0||u===m)&&(b={min:0,max:0});const _=s?200:1e6,w=s?40:1e7,S={type:"inertia",velocity:a?t[m]:0,bounceStiffness:_,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...o,...b};return this.startAxisValueAnimation(m,S)});return Promise.all(p).then(h)}startAxisValueAnimation(t,r){const a=this.getAxisMotionValue(t);return nst(this.visualElement,t),a.start(Odt(t,a,0,r,this.visualElement,!1))}stopAnimation(){SC(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),s=a[r];return s||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){SC(r=>{const{drag:a}=this.getProps();if(!c_e(r,a,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(r);if(s&&s.layout){const{min:u,max:h}=s.layout.layoutBox[r],f=o.get()||0;o.set(t[r]-vd(u,h,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!oV(r)||!a||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};SC(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const f=h.get();s[u]=kPr({min:f,max:f},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),SC(u=>{if(!c_e(u,t,null))return;const h=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];h.set(vd(f,p,s[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NPr.set(this.visualElement,this);const t=this.visualElement.current,r=Kae(t,"pointerdown",p=>{const{drag:m,dragListener:b=!0}=this.getProps(),_=p.target,w=_!==t&&hDr(_);m&&b&&!w&&this.start(p)});let a;const s=()=>{const{dragConstraints:p}=this.getProps();oV(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),a||(a=LPr(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,u=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Dh.read(s);const h=Wse(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(SC(b=>{const _=this.getAxisMotionValue(b);_&&(this.originPoint[b]+=p[b].translate,_.set(_.get()+p[b].translate))}),this.visualElement.render())});return()=>{h(),r(),u(),f&&f(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:u=hst,dragMomentum:h=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:s,dragConstraints:o,dragElastic:u,dragMomentum:h}}}function wfn(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function LPr(e,t,r){const a=kdn(e,wfn(r)),s=kdn(t,wfn(r));return()=>{a(),s()}}function c_e(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function DPr(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class MPr extends E9{constructor(t){super(t),this.removeGroupControls=cS,this.removeListeners=cS,this.controls=new OPr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cS}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const TXe=e=>(t,r)=>{e&&Dh.update(()=>e(t,r),!1,!0)};class PPr extends E9{constructor(){super(...arguments),this.removePointerDownListener=cS}onPointerDown(t){this.session=new E6n(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:w6n(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:s}=this.node.getProps();return{onSessionStart:TXe(t),onStart:TXe(r),onMove:TXe(a),onEnd:(o,u)=>{delete this.session,s&&Dh.postRender(()=>s(o,u))}}}mount(){this.removePointerDownListener=Kae(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let CXe=!1;class BPr extends ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:s}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),a&&a.register&&s&&a.register(o),CXe&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zEe.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:a,drag:s,isPresent:o}=this.props,{projection:u}=a;return u&&(u.isPresent=o,t.layoutDependency!==r&&u.setOptions({...u.options,layoutDependency:r}),CXe=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==o?u.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?u.promote():u.relegate()||Dh.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=r,a.root.didUpdate(),Pdt.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:s}=t;CXe=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),a&&a.deregister&&a.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function S6n(e){const[t,r]=d6n(),a=ue.useContext(bdt);return ct.jsx(BPr,{...e,layoutGroup:a,switchLayoutGroup:ue.useContext(v6n),isPresent:t,safeToRemove:r})}const FPr={pan:{Feature:PPr},drag:{Feature:MPr,ProjectionNode:h6n,MeasureLayout:S6n}};function Efn(e,t,r){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,o=a[s];o&&Dh.postRender(()=>o(t,Ple(t)))}class $Pr extends E9{mount(){const{current:t}=this.node;t&&(this.unmount=oDr(t,(r,a)=>(Efn(this.node,a,"Start"),s=>Efn(this.node,s,"End"))))}unmount(){}}class UPr extends E9{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Lle(Wse(this.node.current,"focus",()=>this.onFocus()),Wse(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xfn(e,t,r){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),o=a[s];o&&Dh.postRender(()=>o(t,Ple(t)))}class zPr extends E9{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:a}=this.node.props;this.unmount=fDr(t,(s,o)=>(xfn(this.node,o,"Start"),(u,{success:h})=>xfn(this.node,u,h?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const dst=new WeakMap,AXe=new WeakMap,GPr=e=>{const t=dst.get(e.target);t&&t(e)},qPr=e=>{e.forEach(GPr)};function HPr({root:e,...t}){const r=e||document;AXe.has(r)||AXe.set(r,{});const a=AXe.get(r),s=JSON.stringify(t);return a[s]||(a[s]=new IntersectionObserver(qPr,{root:e,...t})),a[s]}function VPr(e,t,r){const a=HPr(t);return dst.set(e,r),a.observe(e),()=>{dst.delete(e),a.unobserve(e)}}const YPr={some:0,all:1};class jPr extends E9{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:s="some",once:o}=t,u={root:r?r.current:void 0,rootMargin:a,threshold:typeof s=="number"?s:YPr[s]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,o&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:b,onViewportLeave:_}=this.node.getProps(),w=m?b:_;w&&w(p)};this.stopObserver=VPr(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(WPr(t,r))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function WPr({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const KPr={inView:{Feature:jPr},tap:{Feature:zPr},focus:{Feature:UPr},hover:{Feature:$Pr}},XPr={layout:{ProjectionNode:h6n,MeasureLayout:S6n}},QPr={..._Pr,...KPr,...FPr,...XPr},K4a=gPr(QPr,mPr),ZPr=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function JPr(e){return Array.from(e.match(ZPr)??[])}function X4a(e){return JPr(e).map(r=>r.toLowerCase()).join("-")}const Sfn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tfn=sOr,Q4a=(e,t)=>r=>{var a;if((t==null?void 0:t.variants)==null)return Tfn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,u=Object.keys(s).map(p=>{const m=r==null?void 0:r[p],b=o==null?void 0:o[p];if(m===null)return null;const _=Sfn(m)||Sfn(b);return s[p][_]}),h=r&&Object.entries(r).reduce((p,m)=>{let[b,_]=m;return _===void 0||(p[b]=_),p},{}),f=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((p,m)=>{let{class:b,className:_,...w}=m;return Object.entries(w).every(S=>{let[C,A]=S;return Array.isArray(A)?A.includes({...o,...h}[C]):{...o,...h}[C]===A})?[...p,b,_]:p},[]);return Tfn(e,u,f,r==null?void 0:r.class,r==null?void 0:r.className)};function G5e(){return typeof window<"u"}function _W(e){return Ydt(e)?(e.nodeName||"").toLowerCase():"#document"}function X2(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function TA(e){var t;return(t=(Ydt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ydt(e){return G5e()?e instanceof Node||e instanceof X2(e).Node:!1}function yd(e){return G5e()?e instanceof Element||e instanceof X2(e).Element:!1}function Fw(e){return G5e()?e instanceof HTMLElement||e instanceof X2(e).HTMLElement:!1}function fst(e){return!G5e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof X2(e).ShadowRoot}const eBr=new Set(["inline","contents"]);function Ble(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=gS(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!eBr.has(s)}const tBr=new Set(["table","td","th"]);function nBr(e){return tBr.has(_W(e))}const rBr=[":popover-open",":modal"];function q5e(e){return rBr.some(t=>{try{return e.matches(t)}catch{return!1}})}const iBr=["transform","translate","scale","rotate","perspective"],aBr=["transform","translate","scale","rotate","perspective","filter"],sBr=["paint","layout","strict","content"];function jdt(e){const t=H5e(),r=yd(e)?gS(e):e;return iBr.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||aBr.some(a=>(r.willChange||"").includes(a))||sBr.some(a=>(r.contain||"").includes(a))}function oBr(e){let t=j7(e);for(;Fw(t)&&!P7(t);){if(jdt(t))return t;if(q5e(t))return null;t=j7(t)}return null}function H5e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lBr=new Set(["html","body","#document"]);function P7(e){return lBr.has(_W(e))}function gS(e){return X2(e).getComputedStyle(e)}function V5e(e){return yd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j7(e){if(_W(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fst(e)&&e.host||TA(e);return fst(t)?t.host:t}function T6n(e){const t=j7(e);return P7(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fw(t)&&Ble(t)?t:T6n(t)}function wO(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=T6n(e),o=s===((a=e.ownerDocument)==null?void 0:a.body),u=X2(s);if(o){const h=pst(u);return t.concat(u,u.visualViewport||[],Ble(s)?s:[],h&&r?wO(h):[])}return t.concat(s,wO(s,[],r))}function pst(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const cBr=["top","right","bottom","left"],UO=Math.min,Rw=Math.max,CSe=Math.round,u_e=Math.floor,iA=e=>({x:e,y:e}),uBr={left:"right",right:"left",bottom:"top",top:"bottom"},hBr={start:"end",end:"start"};function gst(e,t,r){return Rw(e,UO(t,r))}function W7(e,t){return typeof e=="function"?e(t):e}function K7(e){return e.split("-")[0]}function wW(e){return e.split("-")[1]}function Wdt(e){return e==="x"?"y":"x"}function Kdt(e){return e==="y"?"height":"width"}const dBr=new Set(["top","bottom"]);function VC(e){return dBr.has(K7(e))?"y":"x"}function Xdt(e){return Wdt(VC(e))}function fBr(e,t,r){r===void 0&&(r=!1);const a=wW(e),s=Xdt(e),o=Kdt(s);let u=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=ASe(u)),[u,ASe(u)]}function pBr(e){const t=ASe(e);return[mst(e),t,mst(t)]}function mst(e){return e.replace(/start|end/g,t=>hBr[t])}const Cfn=["left","right"],Afn=["right","left"],gBr=["top","bottom"],mBr=["bottom","top"];function bBr(e,t,r){switch(e){case"top":case"bottom":return r?t?Afn:Cfn:t?Cfn:Afn;case"left":case"right":return t?gBr:mBr;default:return[]}}function yBr(e,t,r,a){const s=wW(e);let o=bBr(K7(e),r==="start",a);return s&&(o=o.map(u=>u+"-"+s),t&&(o=o.concat(o.map(mst)))),o}function ASe(e){return e.replace(/left|right|bottom|top/g,t=>uBr[t])}function vBr(e){return{top:0,right:0,bottom:0,left:0,...e}}function C6n(e){return typeof e!="number"?vBr(e):{top:e,right:e,bottom:e,left:e}}function kSe(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}/*!
* tabbable 6.4.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var _Br=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],bst=_Br.join(","),A6n=typeof Element>"u",Kse=A6n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,RSe=!A6n&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ISe=function(t,r){var a;r===void 0&&(r=!0);var s=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),o=s===""||s==="true",u=o||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ISe(t.parentNode));return u},wBr=function(t){var r,a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return a===""||a==="true"},EBr=function(t,r,a){if(ISe(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(bst));return r&&Kse.call(t,bst)&&s.unshift(t),s=s.filter(a),s},yst=function(t,r,a){for(var s=[],o=Array.from(t);o.length;){var u=o.shift();if(!ISe(u,!1))if(u.tagName==="SLOT"){var h=u.assignedElements(),f=h.length?h:u.children,p=yst(f,!0,a);a.flatten?s.push.apply(s,p):s.push({scopeParent:u,candidates:p})}else{var m=Kse.call(u,bst);m&&a.filter(u)&&(r||!t.includes(u))&&s.push(u);var b=u.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(u),_=!ISe(b,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(u));if(b&&_){var w=yst(b===!0?u.children:b.children,!0,a);a.flatten?s.push.apply(s,w):s.push({scopeParent:u,candidates:w})}else o.unshift.apply(o,u.children)}}return s},k6n=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},R6n=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||wBr(t))&&!k6n(t)?0:t.tabIndex},xBr=function(t,r){var a=R6n(t);return a<0&&r&&!k6n(t)?0:a},SBr=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},I6n=function(t){return t.tagName==="INPUT"},TBr=function(t){return I6n(t)&&t.type==="hidden"},CBr=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return r},ABr=function(t,r){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===r)return t[a]},kBr=function(t){if(!t.name)return!0;var r=t.form||RSe(t),a=function(h){return r.querySelectorAll('input[type="radio"][name="'+h+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(t.name));else try{s=a(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var o=ABr(s,t.form);return!o||o===t},RBr=function(t){return I6n(t)&&t.type==="radio"},IBr=function(t){return RBr(t)&&!kBr(t)},NBr=function(t){var r,a=t&&RSe(t),s=(r=a)===null||r===void 0?void 0:r.host,o=!1;if(a&&a!==t){var u,h,f;for(o=!!((u=s)!==null&&u!==void 0&&(h=u.ownerDocument)!==null&&h!==void 0&&h.contains(s)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!o&&s;){var p,m,b;a=RSe(s),s=(p=a)===null||p===void 0?void 0:p.host,o=!!((m=s)!==null&&m!==void 0&&(b=m.ownerDocument)!==null&&b!==void 0&&b.contains(s))}}return o},kfn=function(t){var r=t.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},OBr=function(t,r){var a=r.displayCheck,s=r.getShadowRoot;if(a==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var u=Kse.call(t,"details>summary:first-of-type"),h=u?t.parentElement:t;if(Kse.call(h,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var f=t;t;){var p=t.parentElement,m=RSe(t);if(p&&!p.shadowRoot&&s(p)===!0)return kfn(t);t.assignedSlot?t=t.assignedSlot:!p&&m!==t.ownerDocument?t=m.host:t=p}t=f}if(NBr(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return kfn(t);return!1},LBr=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return Kse.call(r,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}r=r.parentElement}return!1},DBr=function(t,r){return!(r.disabled||TBr(r)||OBr(r,t)||CBr(r)||LBr(r))},Rfn=function(t,r){return!(IBr(r)||R6n(r)<0||!DBr(t,r))},MBr=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},N6n=function(t){var r=[],a=[];return t.forEach(function(s,o){var u=!!s.scopeParent,h=u?s.scopeParent:s,f=xBr(h,u),p=u?N6n(s.candidates):h;f===0?u?r.push.apply(r,p):r.push(h):a.push({documentOrder:o,tabIndex:f,item:s,isScope:u,content:p})}),a.sort(SBr).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(r)},O6n=function(t,r){r=r||{};var a;return r.getShadowRoot?a=yst([t],r.includeContainer,{filter:Rfn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:MBr}):a=EBr(t,r.includeContainer,Rfn.bind(null,r)),N6n(a)};function Ifn(e,t,r){let{reference:a,floating:s}=e;const o=VC(t),u=Xdt(t),h=Kdt(u),f=K7(t),p=o==="y",m=a.x+a.width/2-s.width/2,b=a.y+a.height/2-s.height/2,_=a[h]/2-s[h]/2;let w;switch(f){case"top":w={x:m,y:a.y-s.height};break;case"bottom":w={x:m,y:a.y+a.height};break;case"right":w={x:a.x+a.width,y:b};break;case"left":w={x:a.x-s.width,y:b};break;default:w={x:a.x,y:a.y}}switch(wW(t)){case"start":w[u]-=_*(r&&p?-1:1);break;case"end":w[u]+=_*(r&&p?-1:1);break}return w}async function PBr(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:o,rects:u,elements:h,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:_=!1,padding:w=0}=W7(t,e),S=C6n(w),A=h[_?b==="floating"?"reference":"floating":b],k=kSe(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(A)))==null||r?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(h.floating)),boundary:p,rootBoundary:m,strategy:f})),I=b==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h.floating)),L=await(o.isElement==null?void 0:o.isElement(N))?await(o.getScale==null?void 0:o.getScale(N))||{x:1,y:1}:{x:1,y:1},P=kSe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:I,offsetParent:N,strategy:f}):I);return{top:(k.top-P.top+S.top)/L.y,bottom:(P.bottom-k.bottom+S.bottom)/L.y,left:(k.left-P.left+S.left)/L.x,right:(P.right-k.right+S.right)/L.x}}const BBr=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:u}=r,h=o.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:b}=Ifn(p,a,f),_=a,w={},S=0;for(let A=0;A<h.length;A++){var C;const{name:k,fn:I}=h[A],{x:N,y:L,data:P,reset:M}=await I({x:m,y:b,initialPlacement:a,placement:_,strategy:s,middlewareData:w,rects:p,platform:{...u,detectOverflow:(C=u.detectOverflow)!=null?C:PBr},elements:{reference:e,floating:t}});m=N??m,b=L??b,w={...w,[k]:{...w[k],...P}},M&&S<=50&&(S++,typeof M=="object"&&(M.placement&&(_=M.placement),M.rects&&(p=M.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):M.rects),{x:m,y:b}=Ifn(p,_,f)),A=-1)}return{x:m,y:b,placement:_,strategy:s,middlewareData:w}},FBr=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:o,platform:u,elements:h,middlewareData:f}=t,{element:p,padding:m=0}=W7(e,t)||{};if(p==null)return{};const b=C6n(m),_={x:r,y:a},w=Xdt(s),S=Kdt(w),C=await u.getDimensions(p),A=w==="y",k=A?"top":"left",I=A?"bottom":"right",N=A?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[w]-_[w]-o.floating[S],P=_[w]-o.reference[w],M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let F=M?M[N]:0;(!F||!await(u.isElement==null?void 0:u.isElement(M)))&&(F=h.floating[N]||o.floating[S]);const U=L/2-P/2,$=F/2-C[S]/2-1,G=UO(b[k],$),B=UO(b[I],$),Z=G,z=F-C[S]-B,Y=F/2-C[S]/2+U,W=gst(Z,Y,z),Q=!f.arrow&&wW(s)!=null&&Y!==W&&o.reference[S]/2-(Y<Z?G:B)-C[S]/2<0,V=Q?Y<Z?Y-Z:Y-z:0;return{[w]:_[w]+V,data:{[w]:W,centerOffset:Y-W-V,...Q&&{alignmentOffset:V}},reset:Q}}}),$Br=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:s,middlewareData:o,rects:u,initialPlacement:h,platform:f,elements:p}=t,{mainAxis:m=!0,crossAxis:b=!0,fallbackPlacements:_,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...A}=W7(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const k=K7(s),I=VC(h),N=K7(h)===h,L=await(f.isRTL==null?void 0:f.isRTL(p.floating)),P=_||(N||!C?[ASe(h)]:pBr(h)),M=S!=="none";!_&&M&&P.push(...yBr(h,C,S,L));const F=[h,...P],U=await f.detectOverflow(t,A),$=[];let G=((a=o.flip)==null?void 0:a.overflows)||[];if(m&&$.push(U[k]),b){const Y=fBr(s,u,L);$.push(U[Y[0]],U[Y[1]])}if(G=[...G,{placement:s,overflows:$}],!$.every(Y=>Y<=0)){var B,Z;const Y=(((B=o.flip)==null?void 0:B.index)||0)+1,W=F[Y];if(W&&(!(b==="alignment"?I!==VC(W):!1)||G.every(j=>VC(j.placement)===I?j.overflows[0]>0:!0)))return{data:{index:Y,overflows:G},reset:{placement:W}};let Q=(Z=G.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:Z.placement;if(!Q)switch(w){case"bestFit":{var z;const V=(z=G.filter(j=>{if(M){const ee=VC(j.placement);return ee===I||ee==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ee=>ee>0).reduce((ee,te)=>ee+te,0)]).sort((j,ee)=>j[1]-ee[1])[0])==null?void 0:z[0];V&&(Q=V);break}case"initialPlacement":Q=h;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function Nfn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ofn(e){return cBr.some(t=>e[t]>=0)}const UBr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:a}=t,{strategy:s="referenceHidden",...o}=W7(e,t);switch(s){case"referenceHidden":{const u=await a.detectOverflow(t,{...o,elementContext:"reference"}),h=Nfn(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ofn(h)}}}case"escaped":{const u=await a.detectOverflow(t,{...o,altBoundary:!0}),h=Nfn(u,r.floating);return{data:{escapedOffsets:h,escaped:Ofn(h)}}}default:return{}}}}},L6n=new Set(["left","top"]);async function zBr(e,t){const{placement:r,platform:a,elements:s}=e,o=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=K7(r),h=wW(r),f=VC(r)==="y",p=L6n.has(u)?-1:1,m=o&&f?-1:1,b=W7(t,e);let{mainAxis:_,crossAxis:w,alignmentAxis:S}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof S=="number"&&(w=h==="end"?S*-1:S),f?{x:w*m,y:_*p}:{x:_*p,y:w*m}}const GBr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:o,placement:u,middlewareData:h}=t,f=await zBr(t,e);return u===((r=h.offset)==null?void 0:r.placement)&&(a=h.arrow)!=null&&a.alignmentOffset?{}:{x:s+f.x,y:o+f.y,data:{...f,placement:u}}}}},qBr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s,platform:o}=t,{mainAxis:u=!0,crossAxis:h=!1,limiter:f={fn:k=>{let{x:I,y:N}=k;return{x:I,y:N}}},...p}=W7(e,t),m={x:r,y:a},b=await o.detectOverflow(t,p),_=VC(K7(s)),w=Wdt(_);let S=m[w],C=m[_];if(u){const k=w==="y"?"top":"left",I=w==="y"?"bottom":"right",N=S+b[k],L=S-b[I];S=gst(N,S,L)}if(h){const k=_==="y"?"top":"left",I=_==="y"?"bottom":"right",N=C+b[k],L=C-b[I];C=gst(N,C,L)}const A=f.fn({...t,[w]:S,[_]:C});return{...A,data:{x:A.x-r,y:A.y-a,enabled:{[w]:u,[_]:h}}}}}},HBr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:o,middlewareData:u}=t,{offset:h=0,mainAxis:f=!0,crossAxis:p=!0}=W7(e,t),m={x:r,y:a},b=VC(s),_=Wdt(b);let w=m[_],S=m[b];const C=W7(h,t),A=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const N=_==="y"?"height":"width",L=o.reference[_]-o.floating[N]+A.mainAxis,P=o.reference[_]+o.reference[N]-A.mainAxis;w<L?w=L:w>P&&(w=P)}if(p){var k,I;const N=_==="y"?"width":"height",L=L6n.has(K7(s)),P=o.reference[b]-o.floating[N]+(L&&((k=u.offset)==null?void 0:k[b])||0)+(L?0:A.crossAxis),M=o.reference[b]+o.reference[N]+(L?0:((I=u.offset)==null?void 0:I[b])||0)-(L?A.crossAxis:0);S<P?S=P:S>M&&(S=M)}return{[_]:w,[b]:S}}}},VBr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:o,platform:u,elements:h}=t,{apply:f=()=>{},...p}=W7(e,t),m=await u.detectOverflow(t,p),b=K7(s),_=wW(s),w=VC(s)==="y",{width:S,height:C}=o.floating;let A,k;b==="top"||b==="bottom"?(A=b,k=_===(await(u.isRTL==null?void 0:u.isRTL(h.floating))?"start":"end")?"left":"right"):(k=b,A=_==="end"?"top":"bottom");const I=C-m.top-m.bottom,N=S-m.left-m.right,L=UO(C-m[A],I),P=UO(S-m[k],N),M=!t.middlewareData.shift;let F=L,U=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(U=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(F=I),M&&!_){const G=Rw(m.left,0),B=Rw(m.right,0),Z=Rw(m.top,0),z=Rw(m.bottom,0);w?U=S-2*(G!==0||B!==0?G+B:Rw(m.left,m.right)):F=C-2*(Z!==0||z!==0?Z+z:Rw(m.top,m.bottom))}await f({...t,availableWidth:U,availableHeight:F});const $=await u.getDimensions(h.floating);return S!==$.width||C!==$.height?{reset:{rects:!0}}:{}}}};function D6n(e){const t=gS(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=Fw(e),o=s?e.offsetWidth:r,u=s?e.offsetHeight:a,h=CSe(r)!==o||CSe(a)!==u;return h&&(r=o,a=u),{width:r,height:a,$:h}}function Qdt(e){return yd(e)?e:e.contextElement}function GV(e){const t=Qdt(e);if(!Fw(t))return iA(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:o}=D6n(t);let u=(o?CSe(r.width):r.width)/a,h=(o?CSe(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!h||!Number.isFinite(h))&&(h=1),{x:u,y:h}}const YBr=iA(0);function M6n(e){const t=X2(e);return!H5e()||!t.visualViewport?YBr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jBr(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==X2(e)?!1:t}function vF(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Qdt(e);let u=iA(1);t&&(a?yd(a)&&(u=GV(a)):u=GV(e));const h=jBr(o,r,a)?M6n(o):iA(0);let f=(s.left+h.x)/u.x,p=(s.top+h.y)/u.y,m=s.width/u.x,b=s.height/u.y;if(o){const _=X2(o),w=a&&yd(a)?X2(a):a;let S=_,C=pst(S);for(;C&&a&&w!==S;){const A=GV(C),k=C.getBoundingClientRect(),I=gS(C),N=k.left+(C.clientLeft+parseFloat(I.paddingLeft))*A.x,L=k.top+(C.clientTop+parseFloat(I.paddingTop))*A.y;f*=A.x,p*=A.y,m*=A.x,b*=A.y,f+=N,p+=L,S=X2(C),C=pst(S)}}return kSe({width:m,height:b,x:f,y:p})}function Y5e(e,t){const r=V5e(e).scrollLeft;return t?t.left+r:vF(TA(e)).left+r}function P6n(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-Y5e(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function WBr(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const o=s==="fixed",u=TA(a),h=t?q5e(t.floating):!1;if(a===u||h&&o)return r;let f={scrollLeft:0,scrollTop:0},p=iA(1);const m=iA(0),b=Fw(a);if((b||!b&&!o)&&((_W(a)!=="body"||Ble(u))&&(f=V5e(a)),Fw(a))){const w=vF(a);p=GV(a),m.x=w.x+a.clientLeft,m.y=w.y+a.clientTop}const _=u&&!b&&!o?P6n(u,f):iA(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+m.x+_.x,y:r.y*p.y-f.scrollTop*p.y+m.y+_.y}}function KBr(e){return Array.from(e.getClientRects())}function XBr(e){const t=TA(e),r=V5e(e),a=e.ownerDocument.body,s=Rw(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=Rw(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+Y5e(e);const h=-r.scrollTop;return gS(a).direction==="rtl"&&(u+=Rw(t.clientWidth,a.clientWidth)-s),{width:s,height:o,x:u,y:h}}const Lfn=25;function QBr(e,t){const r=X2(e),a=TA(e),s=r.visualViewport;let o=a.clientWidth,u=a.clientHeight,h=0,f=0;if(s){o=s.width,u=s.height;const m=H5e();(!m||m&&t==="fixed")&&(h=s.offsetLeft,f=s.offsetTop)}const p=Y5e(a);if(p<=0){const m=a.ownerDocument,b=m.body,_=getComputedStyle(b),w=m.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,S=Math.abs(a.clientWidth-b.clientWidth-w);S<=Lfn&&(o-=S)}else p<=Lfn&&(o+=p);return{width:o,height:u,x:h,y:f}}const ZBr=new Set(["absolute","fixed"]);function JBr(e,t){const r=vF(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,o=Fw(e)?GV(e):iA(1),u=e.clientWidth*o.x,h=e.clientHeight*o.y,f=s*o.x,p=a*o.y;return{width:u,height:h,x:f,y:p}}function Dfn(e,t,r){let a;if(t==="viewport")a=QBr(e,r);else if(t==="document")a=XBr(TA(e));else if(yd(t))a=JBr(t,r);else{const s=M6n(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return kSe(a)}function B6n(e,t){const r=j7(e);return r===t||!yd(r)||P7(r)?!1:gS(r).position==="fixed"||B6n(r,t)}function eFr(e,t){const r=t.get(e);if(r)return r;let a=wO(e,[],!1).filter(h=>yd(h)&&_W(h)!=="body"),s=null;const o=gS(e).position==="fixed";let u=o?j7(e):e;for(;yd(u)&&!P7(u);){const h=gS(u),f=jdt(u);!f&&h.position==="fixed"&&(s=null),(o?!f&&!s:!f&&h.position==="static"&&!!s&&ZBr.has(s.position)||Ble(u)&&!f&&B6n(e,u))?a=a.filter(m=>m!==u):s=h,u=j7(u)}return t.set(e,a),a}function tFr(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const u=[...r==="clippingAncestors"?q5e(t)?[]:eFr(t,this._c):[].concat(r),a],h=u[0],f=u.reduce((p,m)=>{const b=Dfn(t,m,s);return p.top=Rw(b.top,p.top),p.right=UO(b.right,p.right),p.bottom=UO(b.bottom,p.bottom),p.left=Rw(b.left,p.left),p},Dfn(t,h,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function nFr(e){const{width:t,height:r}=D6n(e);return{width:t,height:r}}function rFr(e,t,r){const a=Fw(t),s=TA(t),o=r==="fixed",u=vF(e,!0,o,t);let h={scrollLeft:0,scrollTop:0};const f=iA(0);function p(){f.x=Y5e(s)}if(a||!a&&!o)if((_W(t)!=="body"||Ble(s))&&(h=V5e(t)),a){const w=vF(t,!0,o,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else s&&p();o&&!a&&s&&p();const m=s&&!a&&!o?P6n(s,h):iA(0),b=u.left+h.scrollLeft-f.x-m.x,_=u.top+h.scrollTop-f.y-m.y;return{x:b,y:_,width:u.width,height:u.height}}function kXe(e){return gS(e).position==="static"}function Mfn(e,t){if(!Fw(e)||gS(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return TA(e)===r&&(r=r.ownerDocument.body),r}function F6n(e,t){const r=X2(e);if(q5e(e))return r;if(!Fw(e)){let s=j7(e);for(;s&&!P7(s);){if(yd(s)&&!kXe(s))return s;s=j7(s)}return r}let a=Mfn(e,t);for(;a&&nBr(a)&&kXe(a);)a=Mfn(a,t);return a&&P7(a)&&kXe(a)&&!jdt(a)?r:a||oBr(e)||r}const iFr=async function(e){const t=this.getOffsetParent||F6n,r=this.getDimensions,a=await r(e.floating);return{reference:rFr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function aFr(e){return gS(e).direction==="rtl"}const sFr={convertOffsetParentRelativeRectToViewportRelativeRect:WBr,getDocumentElement:TA,getClippingRect:tFr,getOffsetParent:F6n,getElementRects:iFr,getClientRects:KBr,getDimensions:nFr,getScale:GV,isElement:yd,isRTL:aFr};function $6n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oFr(e,t){let r=null,a;const s=TA(e);function o(){var h;clearTimeout(a),(h=r)==null||h.disconnect(),r=null}function u(h,f){h===void 0&&(h=!1),f===void 0&&(f=1),o();const p=e.getBoundingClientRect(),{left:m,top:b,width:_,height:w}=p;if(h||t(),!_||!w)return;const S=u_e(b),C=u_e(s.clientWidth-(m+_)),A=u_e(s.clientHeight-(b+w)),k=u_e(m),N={rootMargin:-S+"px "+-C+"px "+-A+"px "+-k+"px",threshold:Rw(0,UO(1,f))||1};let L=!0;function P(M){const F=M[0].intersectionRatio;if(F!==f){if(!L)return u();F?u(!1,F):a=setTimeout(()=>{u(!1,1e-7)},1e3)}F===1&&!$6n(p,e.getBoundingClientRect())&&u(),L=!1}try{r=new IntersectionObserver(P,{...N,root:s.ownerDocument})}catch{r=new IntersectionObserver(P,N)}r.observe(e)}return u(!0),o}function U6n(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:f=!1}=a,p=Qdt(e),m=s||o?[...p?wO(p):[],...wO(t)]:[];m.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),o&&k.addEventListener("resize",r)});const b=p&&h?oFr(p,r):null;let _=-1,w=null;u&&(w=new ResizeObserver(k=>{let[I]=k;I&&I.target===p&&w&&(w.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(t)})),r()}),p&&!f&&w.observe(p),w.observe(t));let S,C=f?vF(e):null;f&&A();function A(){const k=vF(e);C&&!$6n(C,k)&&r(),C=k,S=requestAnimationFrame(A)}return r(),()=>{var k;m.forEach(I=>{s&&I.removeEventListener("scroll",r),o&&I.removeEventListener("resize",r)}),b==null||b(),(k=w)==null||k.disconnect(),w=null,f&&cancelAnimationFrame(S)}}const lFr=GBr,cFr=qBr,uFr=$Br,hFr=VBr,dFr=UBr,Pfn=FBr,fFr=HBr,pFr=(e,t,r)=>{const a=new Map,s={platform:sFr,...r},o={...s.platform,_c:a};return BBr(e,t,{...s,platform:o})};var gFr=typeof document<"u",mFr=function(){},GEe=gFr?ue.useLayoutEffect:mFr;function NSe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!NSe(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,s[a]))return!1;for(a=r;a--!==0;){const o=s[a];if(!(o==="_owner"&&e.$$typeof)&&!NSe(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function z6n(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bfn(e,t){const r=z6n(e);return Math.round(t*r)/r}function RXe(e){const t=ue.useRef(e);return GEe(()=>{t.current=e}),t}function Zdt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:o,floating:u}={},transform:h=!0,whileElementsMounted:f,open:p}=e,[m,b]=ue.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=ue.useState(a);NSe(_,a)||w(a);const[S,C]=ue.useState(null),[A,k]=ue.useState(null),I=ue.useCallback(j=>{j!==M.current&&(M.current=j,C(j))},[]),N=ue.useCallback(j=>{j!==F.current&&(F.current=j,k(j))},[]),L=o||S,P=u||A,M=ue.useRef(null),F=ue.useRef(null),U=ue.useRef(m),$=f!=null,G=RXe(f),B=RXe(s),Z=RXe(p),z=ue.useCallback(()=>{if(!M.current||!F.current)return;const j={placement:t,strategy:r,middleware:_};B.current&&(j.platform=B.current),pFr(M.current,F.current,j).then(ee=>{const te={...ee,isPositioned:Z.current!==!1};Y.current&&!NSe(U.current,te)&&(U.current=te,w9.flushSync(()=>{b(te)}))})},[_,t,r,B,Z]);GEe(()=>{p===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,b(j=>({...j,isPositioned:!1})))},[p]);const Y=ue.useRef(!1);GEe(()=>(Y.current=!0,()=>{Y.current=!1}),[]),GEe(()=>{if(L&&(M.current=L),P&&(F.current=P),L&&P){if(G.current)return G.current(L,P,z);z()}},[L,P,z,G,$]);const W=ue.useMemo(()=>({reference:M,floating:F,setReference:I,setFloating:N}),[I,N]),Q=ue.useMemo(()=>({reference:L,floating:P}),[L,P]),V=ue.useMemo(()=>{const j={position:r,left:0,top:0};if(!Q.floating)return j;const ee=Bfn(Q.floating,m.x),te=Bfn(Q.floating,m.y);return h?{...j,transform:"translate("+ee+"px, "+te+"px)",...z6n(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:te}},[r,h,Q.floating,m.x,m.y]);return ue.useMemo(()=>({...m,update:z,refs:W,elements:Q,floatingStyles:V}),[m,z,W,Q,V])}const bFr=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:s}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?Pfn({element:a.current,padding:s}).fn(r):{}:a?Pfn({element:a,padding:s}).fn(r):{}}}},G6n=(e,t)=>({...lFr(e),options:[e,t]}),q6n=(e,t)=>({...cFr(e),options:[e,t]}),H6n=(e,t)=>({...fFr(e),options:[e,t]}),V6n=(e,t)=>({...uFr(e),options:[e,t]}),Y6n=(e,t)=>({...hFr(e),options:[e,t]}),j6n=(e,t)=>({...dFr(e),options:[e,t]}),W6n=(e,t)=>({...bFr(e),options:[e,t]});var K6n={exports:{}},X6n={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bj=ue;function yFr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vFr=typeof Object.is=="function"?Object.is:yFr,_Fr=bj.useState,wFr=bj.useEffect,EFr=bj.useLayoutEffect,xFr=bj.useDebugValue;function SFr(e,t){var r=t(),a=_Fr({inst:{value:r,getSnapshot:t}}),s=a[0].inst,o=a[1];return EFr(function(){s.value=r,s.getSnapshot=t,IXe(s)&&o({inst:s})},[e,r,t]),wFr(function(){return IXe(s)&&o({inst:s}),e(function(){IXe(s)&&o({inst:s})})},[e]),xFr(r),r}function IXe(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vFr(e,r)}catch{return!0}}function TFr(e,t){return t()}var CFr=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?TFr:SFr;X6n.useSyncExternalStore=bj.useSyncExternalStore!==void 0?bj.useSyncExternalStore:CFr;K6n.exports=X6n;var AFr=K6n.exports,Q6n={exports:{}},Z6n={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var j5e=ue,kFr=AFr;function RFr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IFr=typeof Object.is=="function"?Object.is:RFr,NFr=kFr.useSyncExternalStore,OFr=j5e.useRef,LFr=j5e.useEffect,DFr=j5e.useMemo,MFr=j5e.useDebugValue;Z6n.useSyncExternalStoreWithSelector=function(e,t,r,a,s){var o=OFr(null);if(o.current===null){var u={hasValue:!1,value:null};o.current=u}else u=o.current;o=DFr(function(){function f(w){if(!p){if(p=!0,m=w,w=a(w),s!==void 0&&u.hasValue){var S=u.value;if(s(S,w))return b=S}return b=w}if(S=b,IFr(m,w))return S;var C=a(w);return s!==void 0&&s(S,C)?(m=w,S):(m=w,b=C)}var p=!1,m,b,_=r===void 0?null:r;return[function(){return f(t())},_===null?void 0:function(){return f(_())}]},[t,r,a,s]);var h=NFr(e,o[0],o[1]);return LFr(function(){u.hasValue=!0,u.value=h},[h]),MFr(h),h};Q6n.exports=Z6n;var PFr=Q6n.exports;const BFr=O1(PFr);var BC=function(){return BC=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},BC.apply(this,arguments)};function J6n(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function FFr(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,o;a<s;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var _1=function(){return _1=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_1.apply(this,arguments)},Ffn={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},$fn={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},h_e={width:"20px",height:"20px",position:"absolute",zIndex:1},$Fr={top:_1(_1({},Ffn),{top:"-5px"}),right:_1(_1({},$fn),{left:void 0,right:"-5px"}),bottom:_1(_1({},Ffn),{top:void 0,bottom:"-5px"}),left:_1(_1({},$fn),{left:"-5px"}),topRight:_1(_1({},h_e),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:_1(_1({},h_e),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:_1(_1({},h_e),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:_1(_1({},h_e),{left:"-10px",top:"-10px",cursor:"nw-resize"})},UFr=ue.memo(function(e){var t=e.onResizeStart,r=e.direction,a=e.children,s=e.replaceStyles,o=e.className,u=ue.useCallback(function(p){t(p,r)},[t,r]),h=ue.useCallback(function(p){t(p,r)},[t,r]),f=ue.useMemo(function(){return _1(_1({position:"absolute",userSelect:"none"},$Fr[r]),s??{})},[s,r]);return ct.jsx("div",{className:o||void 0,style:f,onMouseDown:u,onTouchStart:h,children:a})}),zFr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),TC=function(){return TC=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},TC.apply(this,arguments)},GFr={width:"auto",height:"auto"},d_e=function(e,t,r){return Math.max(Math.min(e,r),t)},Ufn=function(e,t,r){var a=Math.round(e/t);return a*t+r*(a-1)},NH=function(e,t){return new RegExp(e,"i").test(t)},f_e=function(e){return!!(e.touches&&e.touches.length)},qFr=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},zfn=function(e,t,r){r===void 0&&(r=0);var a=t.reduce(function(o,u,h){return Math.abs(u-e)<Math.abs(t[o]-e)?h:o},0),s=Math.abs(t[a]-e);return r===0||s<r?t[a]:e},NXe=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},p_e=function(e,t,r,a){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var s=Number(e.replace("%",""))/100;return t*s}if(e.endsWith("vw")){var s=Number(e.replace("vw",""))/100;return r*s}if(e.endsWith("vh")){var s=Number(e.replace("vh",""))/100;return a*s}}return e},HFr=function(e,t,r,a,s,o,u){return a=p_e(a,e.width,t,r),s=p_e(s,e.height,t,r),o=p_e(o,e.width,t,r),u=p_e(u,e.height,t,r),{maxWidth:typeof a>"u"?void 0:Number(a),maxHeight:typeof s>"u"?void 0:Number(s),minWidth:typeof o>"u"?void 0:Number(o),minHeight:typeof u>"u"?void 0:Number(u)}},VFr=function(e){return Array.isArray(e)?e:[e,e]},YFr=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Gfn="__resizable_base__",Z4a=function(e){zFr(t,e);function t(r){var a,s,o,u,h=e.call(this,r)||this;return h.ratio=1,h.resizable=null,h.parentLeft=0,h.parentTop=0,h.resizableLeft=0,h.resizableRight=0,h.resizableTop=0,h.resizableBottom=0,h.targetLeft=0,h.targetTop=0,h.delta={width:0,height:0},h.appendBase=function(){if(!h.resizable||!h.window)return null;var f=h.parentNode;if(!f)return null;var p=h.window.document.createElement("div");return p.style.width="100%",p.style.height="100%",p.style.position="absolute",p.style.transform="scale(0, 0)",p.style.left="0",p.style.flex="0 0 100%",p.classList?p.classList.add(Gfn):p.className+=Gfn,f.appendChild(p),p},h.removeBase=function(f){var p=h.parentNode;p&&p.removeChild(f)},h.state={isResizing:!1,width:(s=(a=h.propsSize)===null||a===void 0?void 0:a.width)!==null&&s!==void 0?s:"auto",height:(u=(o=h.propsSize)===null||o===void 0?void 0:o.height)!==null&&u!==void 0?u:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},h.onResizeStart=h.onResizeStart.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.onMouseUp=h.onMouseUp.bind(h),h}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||GFr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,a=0;if(this.resizable&&this.window){var s=this.resizable.offsetWidth,o=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:s,a=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=u}return{width:r,height:a}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,a=this.props.size,s=function(h){var f;if(typeof r.state[h]>"u"||r.state[h]==="auto")return"auto";if(r.propsSize&&r.propsSize[h]&&(!((f=r.propsSize[h])===null||f===void 0)&&f.toString().endsWith("%"))){if(r.state[h].toString().endsWith("%"))return r.state[h].toString();var p=r.getParentSize(),m=Number(r.state[h].toString().replace("px","")),b=m/p[h]*100;return"".concat(b,"%")}return NXe(r.state[h])},o=a&&typeof a.width<"u"&&!this.state.isResizing?NXe(a.width):s("width"),u=a&&typeof a.height<"u"&&!this.state.isResizing?NXe(a.height):s("height");return{width:o,height:u}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var a=!1,s=this.parentNode.style.flexWrap;s!=="wrap"&&(a=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var o={width:r.offsetWidth,height:r.offsetHeight};return a&&(this.parentNode.style.flexWrap=s),this.removeBase(r),o},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,a){var s=this.propsSize&&this.propsSize[a];return this.state[a]==="auto"&&this.state.original[a]===r&&(typeof s>"u"||s==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,a){var s=this.props.boundsByDirection,o=this.state.direction,u=s&&NH("left",o),h=s&&NH("top",o),f,p;if(this.props.bounds==="parent"){var m=this.parentNode;m&&(f=u?this.resizableRight-this.parentLeft:m.offsetWidth+(this.parentLeft-this.resizableLeft),p=h?this.resizableBottom-this.parentTop:m.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(f=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,p=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(f=u?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),p=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return f&&Number.isFinite(f)&&(r=r&&r<f?r:f),p&&Number.isFinite(p)&&(a=a&&a<p?a:p),{maxWidth:r,maxHeight:a}},t.prototype.calculateNewSizeFromDirection=function(r,a){var s=this.props.scale||1,o=VFr(this.props.resizeRatio||1),u=o[0],h=o[1],f=this.state,p=f.direction,m=f.original,b=this.props,_=b.lockAspectRatio,w=b.lockAspectRatioExtraHeight,S=b.lockAspectRatioExtraWidth,C=m.width,A=m.height,k=w||0,I=S||0;return NH("right",p)&&(C=m.width+(r-m.x)*u/s,_&&(A=(C-I)/this.ratio+k)),NH("left",p)&&(C=m.width-(r-m.x)*u/s,_&&(A=(C-I)/this.ratio+k)),NH("bottom",p)&&(A=m.height+(a-m.y)*h/s,_&&(C=(A-k)*this.ratio+I)),NH("top",p)&&(A=m.height-(a-m.y)*h/s,_&&(C=(A-k)*this.ratio+I)),{newWidth:C,newHeight:A}},t.prototype.calculateNewSizeFromAspectRatio=function(r,a,s,o){var u=this.props,h=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,m=typeof o.width>"u"?10:o.width,b=typeof s.width>"u"||s.width<0?r:s.width,_=typeof o.height>"u"?10:o.height,w=typeof s.height>"u"||s.height<0?a:s.height,S=f||0,C=p||0;if(h){var A=(_-S)*this.ratio+C,k=(w-S)*this.ratio+C,I=(m-C)/this.ratio+S,N=(b-C)/this.ratio+S,L=Math.max(m,A),P=Math.min(b,k),M=Math.max(_,I),F=Math.min(w,N);r=d_e(r,L,P),a=d_e(a,M,F)}else r=d_e(r,m,b),a=d_e(a,_,w);return{newWidth:r,newHeight:a}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var a=this.parentNode;if(a){var s=a.getBoundingClientRect();this.parentLeft=s.left*r,this.parentTop=s.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left*r,this.targetTop=o.top*r}if(this.resizable){var u=this.resizable.getBoundingClientRect(),h=u.left,f=u.top,p=u.right,m=u.bottom;this.resizableLeft=h*r,this.resizableRight=p*r,this.resizableTop=f*r,this.resizableBottom=m*r}},t.prototype.onResizeStart=function(r,a){if(!(!this.resizable||!this.window)){var s=0,o=0;if(r.nativeEvent&&qFr(r.nativeEvent)?(s=r.nativeEvent.clientX,o=r.nativeEvent.clientY):r.nativeEvent&&f_e(r.nativeEvent)&&(s=r.nativeEvent.touches[0].clientX,o=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(r,a,this.resizable);if(u===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var h,f=this.window.getComputedStyle(this.resizable);if(f.flexBasis!=="auto"){var p=this.parentNode;if(p){var m=this.window.getComputedStyle(p).flexDirection;this.flexDir=m.startsWith("row")?"row":"column",h=f.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var b={original:{x:s,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:TC(TC({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:a,flexBasis:h};this.setState(b)}},t.prototype.onMouseMove=function(r){var a=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&f_e(r))try{r.preventDefault(),r.stopPropagation()}catch{}var s=this.props,o=s.maxWidth,u=s.maxHeight,h=s.minWidth,f=s.minHeight,p=f_e(r)?r.touches[0].clientX:r.clientX,m=f_e(r)?r.touches[0].clientY:r.clientY,b=this.state,_=b.direction,w=b.original,S=b.width,C=b.height,A=this.getParentSize(),k=HFr(A,this.window.innerWidth,this.window.innerHeight,o,u,h,f);o=k.maxWidth,u=k.maxHeight,h=k.minWidth,f=k.minHeight;var I=this.calculateNewSizeFromDirection(p,m),N=I.newHeight,L=I.newWidth,P=this.calculateNewMaxFromBoundary(o,u);this.props.snap&&this.props.snap.x&&(L=zfn(L,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(N=zfn(N,this.props.snap.y,this.props.snapGap));var M=this.calculateNewSizeFromAspectRatio(L,N,{width:P.maxWidth,height:P.maxHeight},{width:h,height:f});if(L=M.newWidth,N=M.newHeight,this.props.grid){var F=Ufn(L,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),U=Ufn(N,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,G=$===0||Math.abs(F-L)<=$?F:L,B=$===0||Math.abs(U-N)<=$?U:N;L=G,N=B}var Z={width:L-w.width,height:N-w.height};if(this.delta=Z,S&&typeof S=="string"){if(S.endsWith("%")){var z=L/A.width*100;L="".concat(z,"%")}else if(S.endsWith("vw")){var Y=L/this.window.innerWidth*100;L="".concat(Y,"vw")}else if(S.endsWith("vh")){var W=L/this.window.innerHeight*100;L="".concat(W,"vh")}}if(C&&typeof C=="string"){if(C.endsWith("%")){var z=N/A.height*100;N="".concat(z,"%")}else if(C.endsWith("vw")){var Y=N/this.window.innerWidth*100;N="".concat(Y,"vw")}else if(C.endsWith("vh")){var W=N/this.window.innerHeight*100;N="".concat(W,"vh")}}var Q={width:this.createSizeForCssProperty(L,"width"),height:this.createSizeForCssProperty(N,"height")};this.flexDir==="row"?Q.flexBasis=Q.width:this.flexDir==="column"&&(Q.flexBasis=Q.height);var V=this.state.width!==Q.width,j=this.state.height!==Q.height,ee=this.state.flexBasis!==Q.flexBasis,te=V||j||ee;te&&w9.flushSync(function(){a.setState(Q)}),this.props.onResize&&te&&this.props.onResize(r,_,this.resizable,Z)}},t.prototype.onMouseUp=function(r){var a,s,o=this.state,u=o.isResizing,h=o.direction;o.original,!(!u||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,h,this.resizable,this.delta),this.props.size&&this.setState({width:(a=this.props.size.width)!==null&&a!==void 0?a:"auto",height:(s=this.props.size.height)!==null&&s!==void 0?s:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:TC(TC({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var a,s;this.setState({width:(a=r.width)!==null&&a!==void 0?a:"auto",height:(s=r.height)!==null&&s!==void 0?s:"auto"})},t.prototype.renderResizer=function(){var r=this,a=this.props,s=a.enable,o=a.handleStyles,u=a.handleClasses,h=a.handleWrapperStyle,f=a.handleWrapperClass,p=a.handleComponent;if(!s)return null;var m=Object.keys(s).map(function(b){return s[b]!==!1?ct.jsx(UFr,{direction:b,onResizeStart:r.onResizeStart,replaceStyles:o&&o[b],className:u&&u[b],children:p&&p[b]?p[b]:null},b):null});return ct.jsx("div",{className:f,style:h,children:m})},t.prototype.render=function(){var r=this,a=Object.keys(this.props).reduce(function(u,h){return YFr.indexOf(h)!==-1||(u[h]=r.props[h]),u},{}),s=TC(TC(TC({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(s.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return ct.jsxs(o,TC({style:s,className:this.props.className},a,{ref:function(u){u&&(r.resizable=u)},children:[this.state.isResizing&&ct.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(ue.PureComponent);const e7n=["shift","alt","meta","mod","ctrl","control"],jFr={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function EO(e){return(jFr[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function t7n(e){return e7n.includes(e)}function OXe(e,t=","){return e.toLowerCase().split(t)}function LXe(e,t="+",r=">",a=!1,s,o){let u=[],h=!1;e=e.trim(),e.includes(r)?(h=!0,u=e.toLocaleLowerCase().split(r).map(m=>EO(m))):u=e.toLocaleLowerCase().split(t).map(m=>EO(m));const f={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:a},p=u.filter(m=>!e7n.includes(m));return{...f,keys:p,description:s,isSequence:h,hotkey:e,metadata:o}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&n7n([EO(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&r7n([EO(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{E7.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{E7.clear()},0)}));const E7=new Set;function Jdt(e){return Array.isArray(e)}function WFr(e,t=","){return(Jdt(e)?e:e.split(t)).every(r=>E7.has(r.trim().toLowerCase()))}function n7n(e){const t=Array.isArray(e)?e:[e];E7.has("meta")&&E7.forEach(r=>{t7n(r)||E7.delete(r.toLowerCase())}),t.forEach(r=>{E7.add(r.toLowerCase())})}function r7n(e){const t=Array.isArray(e)?e:[e];e==="meta"?E7.clear():t.forEach(r=>{E7.delete(r.toLowerCase())})}function KFr(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function XFr(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const QFr=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function ZFr(e){return i7n(e,QFr)}function i7n(e,t=!1){const{target:r,composed:a}=e;let s,o;return JFr(r)&&a?(s=e.composedPath()[0]&&e.composedPath()[0].tagName,o=e.composedPath()[0]&&e.composedPath()[0].role):(s=r&&r.tagName,o=r&&r.role),Jdt(t)?!!(s&&t&&t.some(u=>u.toLowerCase()===s.toLowerCase()||u===o)):!!(s&&t&&t)}function JFr(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function e$r(e,t){return e.length===0&&t?!1:t?e.some(r=>t.includes(r))||e.includes("*"):!0}const t$r=(e,t,r=!1)=>{const{alt:a,meta:s,mod:o,shift:u,ctrl:h,keys:f,useKey:p}=t,{code:m,key:b,ctrlKey:_,metaKey:w,shiftKey:S,altKey:C}=e,A=EO(m);if(p&&(f==null?void 0:f.length)===1&&f.includes(b.toLowerCase()))return!0;if(!(f!=null&&f.includes(A))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(A))return!1;if(!r){if(a!==C&&A!=="alt"||u!==S&&A!=="shift")return!1;if(o){if(!w&&!_)return!1}else if(s!==w&&A!=="meta"&&A!=="os"||h!==_&&A!=="ctrl"&&A!=="control")return!1}return f&&f.length===1&&f.includes(A)?!0:f&&f.length>0?f.includes(A)?WFr(f):!1:!f||f.length===0},n$r=ue.createContext(void 0),r$r=()=>ue.useContext(n$r);function a7n(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,a)=>r&&a7n(e[a],t[a]),!0):e===t}const i$r=ue.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),a$r=()=>ue.useContext(i$r);function s$r(e){const t=ue.useRef(void 0);return a7n(t.current,e)||(t.current=e),t.current}const qfn=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},o$r=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;function J4a(e,t,r,a){const s=ue.useRef(null),o=ue.useRef(!1),u=Array.isArray(r)?Array.isArray(a)?void 0:a:r,h=Jdt(e)?e.join(u==null?void 0:u.delimiter):e,f=Array.isArray(r)?r:Array.isArray(a)?a:void 0,p=ue.useCallback(t,f??[]),m=ue.useRef(p);f?m.current=p:m.current=t;const b=s$r(u),{activeScopes:_}=a$r(),w=r$r();return o$r(()=>{if((b==null?void 0:b.enabled)===!1||!e$r(_,b==null?void 0:b.scopes))return;let S=[],C;const A=(L,P=!1)=>{var M;if(!(ZFr(L)&&!i7n(L,b==null?void 0:b.enableOnFormTags))){if(s.current!==null){const F=s.current.getRootNode();if((F instanceof Document||F instanceof ShadowRoot)&&F.activeElement!==s.current&&!s.current.contains(F.activeElement)){qfn(L);return}}(M=L.target)!=null&&M.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||OXe(h,b==null?void 0:b.delimiter).forEach(F=>{var $,G,B,Z;if(F.includes((b==null?void 0:b.splitKey)??"+")&&F.includes((b==null?void 0:b.sequenceSplitKey)??">")){console.warn(`Hotkey ${F} contains both ${(b==null?void 0:b.splitKey)??"+"} and ${(b==null?void 0:b.sequenceSplitKey)??">"} which is not supported.`);return}const U=LXe(F,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata);if(U.isSequence){C=setTimeout(()=>{S=[]},(b==null?void 0:b.sequenceTimeoutMs)??1e3);const z=U.useKey?L.key:EO(L.code);if(t7n(z.toLowerCase()))return;S.push(z);const Y=($=U.keys)==null?void 0:$[S.length-1];if(z!==Y){S=[],C&&clearTimeout(C);return}S.length===((G=U.keys)==null?void 0:G.length)&&(m.current(L,U),C&&clearTimeout(C),S=[])}else if(t$r(L,U,b==null?void 0:b.ignoreModifiers)||(B=U.keys)!=null&&B.includes("*")){if((Z=b==null?void 0:b.ignoreEventWhen)!=null&&Z.call(b,L)||P&&o.current)return;if(KFr(L,U,b==null?void 0:b.preventDefault),!XFr(L,U,b==null?void 0:b.enabled)){qfn(L);return}m.current(L,U),P||(o.current=!0)}})}},k=L=>{L.code!==void 0&&(n7n(EO(L.code)),((b==null?void 0:b.keydown)===void 0&&(b==null?void 0:b.keyup)!==!0||b!=null&&b.keydown)&&A(L))},I=L=>{L.code!==void 0&&(r7n(EO(L.code)),o.current=!1,b!=null&&b.keyup&&A(L,!0))},N=s.current||(u==null?void 0:u.document)||document;return N.addEventListener("keyup",I,u==null?void 0:u.eventListenerOptions),N.addEventListener("keydown",k,u==null?void 0:u.eventListenerOptions),w&&OXe(h,b==null?void 0:b.delimiter).forEach(L=>{w.addHotkey(LXe(L,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata))}),()=>{N.removeEventListener("keyup",I,u==null?void 0:u.eventListenerOptions),N.removeEventListener("keydown",k,u==null?void 0:u.eventListenerOptions),w&&OXe(h,b==null?void 0:b.delimiter).forEach(L=>{w.removeHotkey(LXe(L,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata))}),S=[],C&&clearTimeout(C)}},[h,b,_]),s}var s7n={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",u=0;u<arguments.length;u++){var h=arguments[u];h&&(o=s(o,a(h)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var h in o)t.call(o,h)&&o[h]&&(u=s(u,h));return u}function s(o,u){return u?o?o+" "+u:o+u:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(s7n);var l$r=s7n.exports;const e3a=O1(l$r);let Kx=class o7n{constructor(t,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=a}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new o7n(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},Y3=class l7n{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new l7n(r,Kx.range(this,t))}},Bi=class c7n{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,s,o,u=r&&r.loc;if(u&&u.start<=u.end){var h=u.lexer.input;s=u.start,o=u.end,s===h.length?a+=" at end of input: ":a+=" at position "+(s+1)+": ";var f=h.slice(s,o).replace(/[^]/g,"$&̲"),p;s>15?p="…"+h.slice(s-15,s):p=h.slice(0,s);var m;o+15<h.length?m=h.slice(o,o+15)+"…":m=h.slice(o),a+=p+f+m}var b=new Error(a);return b.name="ParseError",b.__proto__=c7n.prototype,b.position=s,s!=null&&o!=null&&(b.length=o-s),b.rawMessage=t,b}};Bi.prototype.__proto__=Error.prototype;var c$r=function(t,r){return t===void 0?r:t},u$r=/([A-Z])/g,h$r=function(t){return t.replace(u$r,"-$1").toLowerCase()},d$r={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},f$r=/[&><"']/g;function p$r(e){return String(e).replace(f$r,t=>d$r[t])}var u7n=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},g$r=function(t){var r=u7n(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},m$r=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},b$r=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},uu={deflt:c$r,escape:p$r,hyphenate:h$r,getBaseElem:u7n,isCharacterBox:g$r,protocolFromUrl:b$r},Xae={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function y$r(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let eft=class{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Xae)if(Xae.hasOwnProperty(r)){var a=Xae[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:y$r(a)}}reportNonstrict(t,r,a){var s=this.strict;if(typeof s=="function"&&(s=s(t,r,a)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new Bi("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var s=this.strict;if(typeof s=="function")try{s=s(t,r,a)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=uu.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}},IN=class{constructor(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}sup(){return DC[v$r[this.id]]}sub(){return DC[_$r[this.id]]}fracNum(){return DC[w$r[this.id]]}fracDen(){return DC[E$r[this.id]]}cramp(){return DC[x$r[this.id]]}text(){return DC[S$r[this.id]]}isTight(){return this.size>=2}};var tft=0,OSe=1,qV=2,B7=3,Xse=4,iS=5,yj=6,jy=7,DC=[new IN(tft,0,!1),new IN(OSe,0,!0),new IN(qV,1,!1),new IN(B7,1,!0),new IN(Xse,2,!1),new IN(iS,2,!0),new IN(yj,3,!1),new IN(jy,3,!0)],v$r=[Xse,iS,Xse,iS,yj,jy,yj,jy],_$r=[iS,iS,iS,iS,jy,jy,jy,jy],w$r=[qV,B7,Xse,iS,yj,jy,yj,jy],E$r=[B7,B7,iS,iS,jy,jy,jy,jy],x$r=[OSe,OSe,B7,B7,iS,iS,jy,jy],S$r=[tft,OSe,qV,B7,qV,B7,qV,B7],Zs={DISPLAY:DC[tft],TEXT:DC[qV],SCRIPT:DC[Xse],SCRIPTSCRIPT:DC[yj]},vst=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function T$r(e){for(var t=0;t<vst.length;t++)for(var r=vst[t],a=0;a<r.blocks.length;a++){var s=r.blocks[a];if(e>=s[0]&&e<=s[1])return r.name}return null}var qEe=[];vst.forEach(e=>e.blocks.forEach(t=>qEe.push(...t)));function h7n(e){for(var t=0;t<qEe.length;t+=2)if(e>=qEe[t]&&e<=qEe[t+1])return!0;return!1}var OH=80,C$r=function(t,r){return"M95,"+(622+t+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},A$r=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},k$r=function(t,r){return"M983 "+(10+t+r)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},R$r=function(t,r){return"M424,"+(2398+t+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
h400000v`+(40+t)+"h-400000z"},I$r=function(t,r){return"M473,"+(2713+t+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},N$r=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},O$r=function(t,r,a){var s=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
H742v`+s+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},L$r=function(t,r,a){r=1e3*r;var s="";switch(t){case"sqrtMain":s=C$r(r,OH);break;case"sqrtSize1":s=A$r(r,OH);break;case"sqrtSize2":s=k$r(r,OH);break;case"sqrtSize3":s=R$r(r,OH);break;case"sqrtSize4":s=I$r(r,OH);break;case"sqrtTall":s=O$r(r,OH,a)}return s},D$r=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Hfn={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},M$r=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Fle=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}};var YC={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},g_e={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Vfn={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function d7n(e,t){YC[e]=t}function nft(e,t,r){if(!YC[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),s=YC[t][a];if(!s&&e[0]in Vfn&&(a=Vfn[e[0]].charCodeAt(0),s=YC[t][a]),!s&&r==="text"&&h7n(a)&&(s=YC[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var DXe={};function P$r(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!DXe[t]){var r=DXe[t]={cssEmPerMu:g_e.quad[t]/18};for(var a in g_e)g_e.hasOwnProperty(a)&&(r[a]=g_e[a][t])}return DXe[t]}var B$r=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Yfn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],jfn=function(t,r){return r.size<2?t:B$r[t-1][r.size-1]};let f7n=class CB{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||CB.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Yfn[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return new CB(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:jfn(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Yfn[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=jfn(CB.BASESIZE,t);return this.size===r&&this.textSize===CB.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==CB.BASESIZE?["sizing","reset-size"+this.size,"size"+CB.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=P$r(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};f7n.BASESIZE=6;var _st={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},F$r={ex:!0,em:!0,mu:!0},p7n=function(t){return typeof t!="string"&&(t=t.unit),t in _st||t in F$r||t==="ex"},kf=function(t,r){var a;if(t.unit in _st)a=_st[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var s;if(r.style.isTight()?s=r.havingStyle(r.style.text()):s=r,t.unit==="ex")a=s.fontMetrics().xHeight;else if(t.unit==="em")a=s.fontMetrics().quad;else throw new Bi("Invalid unit: '"+t.unit+"'");s!==r&&(a*=s.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},Xi=function(t){return+t.toFixed(4)+"em"},zO=function(t){return t.filter(r=>r).join(" ")},g7n=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var s=r.getColor();s&&(this.style.color=s)}},m7n=function(t){var r=document.createElement(t);r.className=zO(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&r.setAttribute(s,this.attributes[s]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},$$r=/[\s"'>/=\x00-\x1f]/,b7n=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+uu.escape(zO(this.classes))+'"');var a="";for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=uu.hyphenate(s)+":"+this.style[s]+";");a&&(r+=' style="'+uu.escape(a)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if($$r.test(o))throw new Bi("Invalid attribute name '"+o+"'");r+=" "+o+'="'+uu.escape(this.attributes[o])+'"'}r+=">";for(var u=0;u<this.children.length;u++)r+=this.children[u].toMarkup();return r+="</"+t+">",r};let $le=class{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,g7n.call(this,t,a,s),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return m7n.call(this,"span")}toMarkup(){return b7n.call(this,"span")}},rft=class{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,g7n.call(this,r,s),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return m7n.call(this,"a")}toMarkup(){return b7n.call(this,"a")}},U$r=class{constructor(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+uu.escape(this.src)+'"'+(' alt="'+uu.escape(this.alt)+'"'),r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=uu.hyphenate(a)+":"+this.style[a]+";");return r&&(t+=' style="'+uu.escape(r)+'"'),t+="'/>",t}};var z$r={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};let mS=class{constructor(t,r,a,s,o,u,h,f){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=a||0,this.italic=s||0,this.skew=o||0,this.width=u||0,this.classes=h||[],this.style=f||{},this.maxFontSize=0;var p=T$r(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=z$r[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Xi(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=zO(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(r=r||document.createElement("span"),r.style[a]=this.style[a]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=uu.escape(zO(this.classes)),r+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=uu.hyphenate(s)+":"+this.style[s]+";");a&&(t=!0,r+=' style="'+uu.escape(a)+'"');var o=uu.escape(this.text);return t?(r+=">",r+=o,r+="</span>",r):o}},X7=class{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);for(var s=0;s<this.children.length;s++)r.appendChild(this.children[s].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+uu.escape(this.attributes[r])+'"');t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</svg>",t}},GO=class{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Hfn[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+uu.escape(this.alternate)+'"/>':'<path d="'+uu.escape(Hfn[this.pathName])+'"/>'}},wst=class{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+uu.escape(this.attributes[r])+'"');return t+="/>",t}};function Wfn(e){if(e instanceof mS)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function G$r(e){if(e instanceof $le)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var q$r={bin:1,close:1,inner:1,open:1,punct:1,rel:1},H$r={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ed={math:{},text:{}};function ke(e,t,r,a,s,o){ed[e][s]={font:t,group:r,replace:a},o&&a&&(ed[e][a]=ed[e][s])}var Pe="math",hi="text",nt="main",jt="ams",Kd="accent-token",Na="bin",pv="close",EW="inner",Xs="mathord",L1="op-token",Vw="open",W5e="punct",en="rel",gR="spacing",Sn="textord";ke(Pe,nt,en,"≡","\\equiv",!0);ke(Pe,nt,en,"≺","\\prec",!0);ke(Pe,nt,en,"≻","\\succ",!0);ke(Pe,nt,en,"∼","\\sim",!0);ke(Pe,nt,en,"⊥","\\perp");ke(Pe,nt,en,"⪯","\\preceq",!0);ke(Pe,nt,en,"⪰","\\succeq",!0);ke(Pe,nt,en,"≃","\\simeq",!0);ke(Pe,nt,en,"∣","\\mid",!0);ke(Pe,nt,en,"≪","\\ll",!0);ke(Pe,nt,en,"≫","\\gg",!0);ke(Pe,nt,en,"≍","\\asymp",!0);ke(Pe,nt,en,"∥","\\parallel");ke(Pe,nt,en,"⋈","\\bowtie",!0);ke(Pe,nt,en,"⌣","\\smile",!0);ke(Pe,nt,en,"⊑","\\sqsubseteq",!0);ke(Pe,nt,en,"⊒","\\sqsupseteq",!0);ke(Pe,nt,en,"≐","\\doteq",!0);ke(Pe,nt,en,"⌢","\\frown",!0);ke(Pe,nt,en,"∋","\\ni",!0);ke(Pe,nt,en,"∝","\\propto",!0);ke(Pe,nt,en,"⊢","\\vdash",!0);ke(Pe,nt,en,"⊣","\\dashv",!0);ke(Pe,nt,en,"∋","\\owns");ke(Pe,nt,W5e,".","\\ldotp");ke(Pe,nt,W5e,"⋅","\\cdotp");ke(Pe,nt,Sn,"#","\\#");ke(hi,nt,Sn,"#","\\#");ke(Pe,nt,Sn,"&","\\&");ke(hi,nt,Sn,"&","\\&");ke(Pe,nt,Sn,"ℵ","\\aleph",!0);ke(Pe,nt,Sn,"∀","\\forall",!0);ke(Pe,nt,Sn,"ℏ","\\hbar",!0);ke(Pe,nt,Sn,"∃","\\exists",!0);ke(Pe,nt,Sn,"∇","\\nabla",!0);ke(Pe,nt,Sn,"♭","\\flat",!0);ke(Pe,nt,Sn,"ℓ","\\ell",!0);ke(Pe,nt,Sn,"♮","\\natural",!0);ke(Pe,nt,Sn,"♣","\\clubsuit",!0);ke(Pe,nt,Sn,"℘","\\wp",!0);ke(Pe,nt,Sn,"♯","\\sharp",!0);ke(Pe,nt,Sn,"♢","\\diamondsuit",!0);ke(Pe,nt,Sn,"ℜ","\\Re",!0);ke(Pe,nt,Sn,"♡","\\heartsuit",!0);ke(Pe,nt,Sn,"ℑ","\\Im",!0);ke(Pe,nt,Sn,"♠","\\spadesuit",!0);ke(Pe,nt,Sn,"§","\\S",!0);ke(hi,nt,Sn,"§","\\S");ke(Pe,nt,Sn,"¶","\\P",!0);ke(hi,nt,Sn,"¶","\\P");ke(Pe,nt,Sn,"†","\\dag");ke(hi,nt,Sn,"†","\\dag");ke(hi,nt,Sn,"†","\\textdagger");ke(Pe,nt,Sn,"‡","\\ddag");ke(hi,nt,Sn,"‡","\\ddag");ke(hi,nt,Sn,"‡","\\textdaggerdbl");ke(Pe,nt,pv,"⎱","\\rmoustache",!0);ke(Pe,nt,Vw,"⎰","\\lmoustache",!0);ke(Pe,nt,pv,"⟯","\\rgroup",!0);ke(Pe,nt,Vw,"⟮","\\lgroup",!0);ke(Pe,nt,Na,"∓","\\mp",!0);ke(Pe,nt,Na,"⊖","\\ominus",!0);ke(Pe,nt,Na,"⊎","\\uplus",!0);ke(Pe,nt,Na,"⊓","\\sqcap",!0);ke(Pe,nt,Na,"∗","\\ast");ke(Pe,nt,Na,"⊔","\\sqcup",!0);ke(Pe,nt,Na,"◯","\\bigcirc",!0);ke(Pe,nt,Na,"∙","\\bullet",!0);ke(Pe,nt,Na,"‡","\\ddagger");ke(Pe,nt,Na,"≀","\\wr",!0);ke(Pe,nt,Na,"⨿","\\amalg");ke(Pe,nt,Na,"&","\\And");ke(Pe,nt,en,"⟵","\\longleftarrow",!0);ke(Pe,nt,en,"⇐","\\Leftarrow",!0);ke(Pe,nt,en,"⟸","\\Longleftarrow",!0);ke(Pe,nt,en,"⟶","\\longrightarrow",!0);ke(Pe,nt,en,"⇒","\\Rightarrow",!0);ke(Pe,nt,en,"⟹","\\Longrightarrow",!0);ke(Pe,nt,en,"↔","\\leftrightarrow",!0);ke(Pe,nt,en,"⟷","\\longleftrightarrow",!0);ke(Pe,nt,en,"⇔","\\Leftrightarrow",!0);ke(Pe,nt,en,"⟺","\\Longleftrightarrow",!0);ke(Pe,nt,en,"↦","\\mapsto",!0);ke(Pe,nt,en,"⟼","\\longmapsto",!0);ke(Pe,nt,en,"↗","\\nearrow",!0);ke(Pe,nt,en,"↩","\\hookleftarrow",!0);ke(Pe,nt,en,"↪","\\hookrightarrow",!0);ke(Pe,nt,en,"↘","\\searrow",!0);ke(Pe,nt,en,"↼","\\leftharpoonup",!0);ke(Pe,nt,en,"⇀","\\rightharpoonup",!0);ke(Pe,nt,en,"↙","\\swarrow",!0);ke(Pe,nt,en,"↽","\\leftharpoondown",!0);ke(Pe,nt,en,"⇁","\\rightharpoondown",!0);ke(Pe,nt,en,"↖","\\nwarrow",!0);ke(Pe,nt,en,"⇌","\\rightleftharpoons",!0);ke(Pe,jt,en,"≮","\\nless",!0);ke(Pe,jt,en,"","\\@nleqslant");ke(Pe,jt,en,"","\\@nleqq");ke(Pe,jt,en,"⪇","\\lneq",!0);ke(Pe,jt,en,"≨","\\lneqq",!0);ke(Pe,jt,en,"","\\@lvertneqq");ke(Pe,jt,en,"⋦","\\lnsim",!0);ke(Pe,jt,en,"⪉","\\lnapprox",!0);ke(Pe,jt,en,"⊀","\\nprec",!0);ke(Pe,jt,en,"⋠","\\npreceq",!0);ke(Pe,jt,en,"⋨","\\precnsim",!0);ke(Pe,jt,en,"⪹","\\precnapprox",!0);ke(Pe,jt,en,"≁","\\nsim",!0);ke(Pe,jt,en,"","\\@nshortmid");ke(Pe,jt,en,"∤","\\nmid",!0);ke(Pe,jt,en,"⊬","\\nvdash",!0);ke(Pe,jt,en,"⊭","\\nvDash",!0);ke(Pe,jt,en,"⋪","\\ntriangleleft");ke(Pe,jt,en,"⋬","\\ntrianglelefteq",!0);ke(Pe,jt,en,"⊊","\\subsetneq",!0);ke(Pe,jt,en,"","\\@varsubsetneq");ke(Pe,jt,en,"⫋","\\subsetneqq",!0);ke(Pe,jt,en,"","\\@varsubsetneqq");ke(Pe,jt,en,"≯","\\ngtr",!0);ke(Pe,jt,en,"","\\@ngeqslant");ke(Pe,jt,en,"","\\@ngeqq");ke(Pe,jt,en,"⪈","\\gneq",!0);ke(Pe,jt,en,"≩","\\gneqq",!0);ke(Pe,jt,en,"","\\@gvertneqq");ke(Pe,jt,en,"⋧","\\gnsim",!0);ke(Pe,jt,en,"⪊","\\gnapprox",!0);ke(Pe,jt,en,"⊁","\\nsucc",!0);ke(Pe,jt,en,"⋡","\\nsucceq",!0);ke(Pe,jt,en,"⋩","\\succnsim",!0);ke(Pe,jt,en,"⪺","\\succnapprox",!0);ke(Pe,jt,en,"≆","\\ncong",!0);ke(Pe,jt,en,"","\\@nshortparallel");ke(Pe,jt,en,"∦","\\nparallel",!0);ke(Pe,jt,en,"⊯","\\nVDash",!0);ke(Pe,jt,en,"⋫","\\ntriangleright");ke(Pe,jt,en,"⋭","\\ntrianglerighteq",!0);ke(Pe,jt,en,"","\\@nsupseteqq");ke(Pe,jt,en,"⊋","\\supsetneq",!0);ke(Pe,jt,en,"","\\@varsupsetneq");ke(Pe,jt,en,"⫌","\\supsetneqq",!0);ke(Pe,jt,en,"","\\@varsupsetneqq");ke(Pe,jt,en,"⊮","\\nVdash",!0);ke(Pe,jt,en,"⪵","\\precneqq",!0);ke(Pe,jt,en,"⪶","\\succneqq",!0);ke(Pe,jt,en,"","\\@nsubseteqq");ke(Pe,jt,Na,"⊴","\\unlhd");ke(Pe,jt,Na,"⊵","\\unrhd");ke(Pe,jt,en,"↚","\\nleftarrow",!0);ke(Pe,jt,en,"↛","\\nrightarrow",!0);ke(Pe,jt,en,"⇍","\\nLeftarrow",!0);ke(Pe,jt,en,"⇏","\\nRightarrow",!0);ke(Pe,jt,en,"↮","\\nleftrightarrow",!0);ke(Pe,jt,en,"⇎","\\nLeftrightarrow",!0);ke(Pe,jt,en,"△","\\vartriangle");ke(Pe,jt,Sn,"ℏ","\\hslash");ke(Pe,jt,Sn,"▽","\\triangledown");ke(Pe,jt,Sn,"◊","\\lozenge");ke(Pe,jt,Sn,"Ⓢ","\\circledS");ke(Pe,jt,Sn,"®","\\circledR");ke(hi,jt,Sn,"®","\\circledR");ke(Pe,jt,Sn,"∡","\\measuredangle",!0);ke(Pe,jt,Sn,"∄","\\nexists");ke(Pe,jt,Sn,"℧","\\mho");ke(Pe,jt,Sn,"Ⅎ","\\Finv",!0);ke(Pe,jt,Sn,"⅁","\\Game",!0);ke(Pe,jt,Sn,"‵","\\backprime");ke(Pe,jt,Sn,"▲","\\blacktriangle");ke(Pe,jt,Sn,"▼","\\blacktriangledown");ke(Pe,jt,Sn,"■","\\blacksquare");ke(Pe,jt,Sn,"⧫","\\blacklozenge");ke(Pe,jt,Sn,"★","\\bigstar");ke(Pe,jt,Sn,"∢","\\sphericalangle",!0);ke(Pe,jt,Sn,"∁","\\complement",!0);ke(Pe,jt,Sn,"ð","\\eth",!0);ke(hi,nt,Sn,"ð","ð");ke(Pe,jt,Sn,"╱","\\diagup");ke(Pe,jt,Sn,"╲","\\diagdown");ke(Pe,jt,Sn,"□","\\square");ke(Pe,jt,Sn,"□","\\Box");ke(Pe,jt,Sn,"◊","\\Diamond");ke(Pe,jt,Sn,"¥","\\yen",!0);ke(hi,jt,Sn,"¥","\\yen",!0);ke(Pe,jt,Sn,"✓","\\checkmark",!0);ke(hi,jt,Sn,"✓","\\checkmark");ke(Pe,jt,Sn,"ℶ","\\beth",!0);ke(Pe,jt,Sn,"ℸ","\\daleth",!0);ke(Pe,jt,Sn,"ℷ","\\gimel",!0);ke(Pe,jt,Sn,"ϝ","\\digamma",!0);ke(Pe,jt,Sn,"ϰ","\\varkappa");ke(Pe,jt,Vw,"┌","\\@ulcorner",!0);ke(Pe,jt,pv,"┐","\\@urcorner",!0);ke(Pe,jt,Vw,"└","\\@llcorner",!0);ke(Pe,jt,pv,"┘","\\@lrcorner",!0);ke(Pe,jt,en,"≦","\\leqq",!0);ke(Pe,jt,en,"⩽","\\leqslant",!0);ke(Pe,jt,en,"⪕","\\eqslantless",!0);ke(Pe,jt,en,"≲","\\lesssim",!0);ke(Pe,jt,en,"⪅","\\lessapprox",!0);ke(Pe,jt,en,"≊","\\approxeq",!0);ke(Pe,jt,Na,"⋖","\\lessdot");ke(Pe,jt,en,"⋘","\\lll",!0);ke(Pe,jt,en,"≶","\\lessgtr",!0);ke(Pe,jt,en,"⋚","\\lesseqgtr",!0);ke(Pe,jt,en,"⪋","\\lesseqqgtr",!0);ke(Pe,jt,en,"≑","\\doteqdot");ke(Pe,jt,en,"≓","\\risingdotseq",!0);ke(Pe,jt,en,"≒","\\fallingdotseq",!0);ke(Pe,jt,en,"∽","\\backsim",!0);ke(Pe,jt,en,"⋍","\\backsimeq",!0);ke(Pe,jt,en,"⫅","\\subseteqq",!0);ke(Pe,jt,en,"⋐","\\Subset",!0);ke(Pe,jt,en,"⊏","\\sqsubset",!0);ke(Pe,jt,en,"≼","\\preccurlyeq",!0);ke(Pe,jt,en,"⋞","\\curlyeqprec",!0);ke(Pe,jt,en,"≾","\\precsim",!0);ke(Pe,jt,en,"⪷","\\precapprox",!0);ke(Pe,jt,en,"⊲","\\vartriangleleft");ke(Pe,jt,en,"⊴","\\trianglelefteq");ke(Pe,jt,en,"⊨","\\vDash",!0);ke(Pe,jt,en,"⊪","\\Vvdash",!0);ke(Pe,jt,en,"⌣","\\smallsmile");ke(Pe,jt,en,"⌢","\\smallfrown");ke(Pe,jt,en,"≏","\\bumpeq",!0);ke(Pe,jt,en,"≎","\\Bumpeq",!0);ke(Pe,jt,en,"≧","\\geqq",!0);ke(Pe,jt,en,"⩾","\\geqslant",!0);ke(Pe,jt,en,"⪖","\\eqslantgtr",!0);ke(Pe,jt,en,"≳","\\gtrsim",!0);ke(Pe,jt,en,"⪆","\\gtrapprox",!0);ke(Pe,jt,Na,"⋗","\\gtrdot");ke(Pe,jt,en,"⋙","\\ggg",!0);ke(Pe,jt,en,"≷","\\gtrless",!0);ke(Pe,jt,en,"⋛","\\gtreqless",!0);ke(Pe,jt,en,"⪌","\\gtreqqless",!0);ke(Pe,jt,en,"≖","\\eqcirc",!0);ke(Pe,jt,en,"≗","\\circeq",!0);ke(Pe,jt,en,"≜","\\triangleq",!0);ke(Pe,jt,en,"∼","\\thicksim");ke(Pe,jt,en,"≈","\\thickapprox");ke(Pe,jt,en,"⫆","\\supseteqq",!0);ke(Pe,jt,en,"⋑","\\Supset",!0);ke(Pe,jt,en,"⊐","\\sqsupset",!0);ke(Pe,jt,en,"≽","\\succcurlyeq",!0);ke(Pe,jt,en,"⋟","\\curlyeqsucc",!0);ke(Pe,jt,en,"≿","\\succsim",!0);ke(Pe,jt,en,"⪸","\\succapprox",!0);ke(Pe,jt,en,"⊳","\\vartriangleright");ke(Pe,jt,en,"⊵","\\trianglerighteq");ke(Pe,jt,en,"⊩","\\Vdash",!0);ke(Pe,jt,en,"∣","\\shortmid");ke(Pe,jt,en,"∥","\\shortparallel");ke(Pe,jt,en,"≬","\\between",!0);ke(Pe,jt,en,"⋔","\\pitchfork",!0);ke(Pe,jt,en,"∝","\\varpropto");ke(Pe,jt,en,"◀","\\blacktriangleleft");ke(Pe,jt,en,"∴","\\therefore",!0);ke(Pe,jt,en,"∍","\\backepsilon");ke(Pe,jt,en,"▶","\\blacktriangleright");ke(Pe,jt,en,"∵","\\because",!0);ke(Pe,jt,en,"⋘","\\llless");ke(Pe,jt,en,"⋙","\\gggtr");ke(Pe,jt,Na,"⊲","\\lhd");ke(Pe,jt,Na,"⊳","\\rhd");ke(Pe,jt,en,"≂","\\eqsim",!0);ke(Pe,nt,en,"⋈","\\Join");ke(Pe,jt,en,"≑","\\Doteq",!0);ke(Pe,jt,Na,"∔","\\dotplus",!0);ke(Pe,jt,Na,"∖","\\smallsetminus");ke(Pe,jt,Na,"⋒","\\Cap",!0);ke(Pe,jt,Na,"⋓","\\Cup",!0);ke(Pe,jt,Na,"⩞","\\doublebarwedge",!0);ke(Pe,jt,Na,"⊟","\\boxminus",!0);ke(Pe,jt,Na,"⊞","\\boxplus",!0);ke(Pe,jt,Na,"⋇","\\divideontimes",!0);ke(Pe,jt,Na,"⋉","\\ltimes",!0);ke(Pe,jt,Na,"⋊","\\rtimes",!0);ke(Pe,jt,Na,"⋋","\\leftthreetimes",!0);ke(Pe,jt,Na,"⋌","\\rightthreetimes",!0);ke(Pe,jt,Na,"⋏","\\curlywedge",!0);ke(Pe,jt,Na,"⋎","\\curlyvee",!0);ke(Pe,jt,Na,"⊝","\\circleddash",!0);ke(Pe,jt,Na,"⊛","\\circledast",!0);ke(Pe,jt,Na,"⋅","\\centerdot");ke(Pe,jt,Na,"⊺","\\intercal",!0);ke(Pe,jt,Na,"⋒","\\doublecap");ke(Pe,jt,Na,"⋓","\\doublecup");ke(Pe,jt,Na,"⊠","\\boxtimes",!0);ke(Pe,jt,en,"⇢","\\dashrightarrow",!0);ke(Pe,jt,en,"⇠","\\dashleftarrow",!0);ke(Pe,jt,en,"⇇","\\leftleftarrows",!0);ke(Pe,jt,en,"⇆","\\leftrightarrows",!0);ke(Pe,jt,en,"⇚","\\Lleftarrow",!0);ke(Pe,jt,en,"↞","\\twoheadleftarrow",!0);ke(Pe,jt,en,"↢","\\leftarrowtail",!0);ke(Pe,jt,en,"↫","\\looparrowleft",!0);ke(Pe,jt,en,"⇋","\\leftrightharpoons",!0);ke(Pe,jt,en,"↶","\\curvearrowleft",!0);ke(Pe,jt,en,"↺","\\circlearrowleft",!0);ke(Pe,jt,en,"↰","\\Lsh",!0);ke(Pe,jt,en,"⇈","\\upuparrows",!0);ke(Pe,jt,en,"↿","\\upharpoonleft",!0);ke(Pe,jt,en,"⇃","\\downharpoonleft",!0);ke(Pe,nt,en,"⊶","\\origof",!0);ke(Pe,nt,en,"⊷","\\imageof",!0);ke(Pe,jt,en,"⊸","\\multimap",!0);ke(Pe,jt,en,"↭","\\leftrightsquigarrow",!0);ke(Pe,jt,en,"⇉","\\rightrightarrows",!0);ke(Pe,jt,en,"⇄","\\rightleftarrows",!0);ke(Pe,jt,en,"↠","\\twoheadrightarrow",!0);ke(Pe,jt,en,"↣","\\rightarrowtail",!0);ke(Pe,jt,en,"↬","\\looparrowright",!0);ke(Pe,jt,en,"↷","\\curvearrowright",!0);ke(Pe,jt,en,"↻","\\circlearrowright",!0);ke(Pe,jt,en,"↱","\\Rsh",!0);ke(Pe,jt,en,"⇊","\\downdownarrows",!0);ke(Pe,jt,en,"↾","\\upharpoonright",!0);ke(Pe,jt,en,"⇂","\\downharpoonright",!0);ke(Pe,jt,en,"⇝","\\rightsquigarrow",!0);ke(Pe,jt,en,"⇝","\\leadsto");ke(Pe,jt,en,"⇛","\\Rrightarrow",!0);ke(Pe,jt,en,"↾","\\restriction");ke(Pe,nt,Sn,"‘","`");ke(Pe,nt,Sn,"$","\\$");ke(hi,nt,Sn,"$","\\$");ke(hi,nt,Sn,"$","\\textdollar");ke(Pe,nt,Sn,"%","\\%");ke(hi,nt,Sn,"%","\\%");ke(Pe,nt,Sn,"_","\\_");ke(hi,nt,Sn,"_","\\_");ke(hi,nt,Sn,"_","\\textunderscore");ke(Pe,nt,Sn,"∠","\\angle",!0);ke(Pe,nt,Sn,"∞","\\infty",!0);ke(Pe,nt,Sn,"′","\\prime");ke(Pe,nt,Sn,"△","\\triangle");ke(Pe,nt,Sn,"Γ","\\Gamma",!0);ke(Pe,nt,Sn,"Δ","\\Delta",!0);ke(Pe,nt,Sn,"Θ","\\Theta",!0);ke(Pe,nt,Sn,"Λ","\\Lambda",!0);ke(Pe,nt,Sn,"Ξ","\\Xi",!0);ke(Pe,nt,Sn,"Π","\\Pi",!0);ke(Pe,nt,Sn,"Σ","\\Sigma",!0);ke(Pe,nt,Sn,"Υ","\\Upsilon",!0);ke(Pe,nt,Sn,"Φ","\\Phi",!0);ke(Pe,nt,Sn,"Ψ","\\Psi",!0);ke(Pe,nt,Sn,"Ω","\\Omega",!0);ke(Pe,nt,Sn,"A","Α");ke(Pe,nt,Sn,"B","Β");ke(Pe,nt,Sn,"E","Ε");ke(Pe,nt,Sn,"Z","Ζ");ke(Pe,nt,Sn,"H","Η");ke(Pe,nt,Sn,"I","Ι");ke(Pe,nt,Sn,"K","Κ");ke(Pe,nt,Sn,"M","Μ");ke(Pe,nt,Sn,"N","Ν");ke(Pe,nt,Sn,"O","Ο");ke(Pe,nt,Sn,"P","Ρ");ke(Pe,nt,Sn,"T","Τ");ke(Pe,nt,Sn,"X","Χ");ke(Pe,nt,Sn,"¬","\\neg",!0);ke(Pe,nt,Sn,"¬","\\lnot");ke(Pe,nt,Sn,"⊤","\\top");ke(Pe,nt,Sn,"⊥","\\bot");ke(Pe,nt,Sn,"∅","\\emptyset");ke(Pe,jt,Sn,"∅","\\varnothing");ke(Pe,nt,Xs,"α","\\alpha",!0);ke(Pe,nt,Xs,"β","\\beta",!0);ke(Pe,nt,Xs,"γ","\\gamma",!0);ke(Pe,nt,Xs,"δ","\\delta",!0);ke(Pe,nt,Xs,"ϵ","\\epsilon",!0);ke(Pe,nt,Xs,"ζ","\\zeta",!0);ke(Pe,nt,Xs,"η","\\eta",!0);ke(Pe,nt,Xs,"θ","\\theta",!0);ke(Pe,nt,Xs,"ι","\\iota",!0);ke(Pe,nt,Xs,"κ","\\kappa",!0);ke(Pe,nt,Xs,"λ","\\lambda",!0);ke(Pe,nt,Xs,"μ","\\mu",!0);ke(Pe,nt,Xs,"ν","\\nu",!0);ke(Pe,nt,Xs,"ξ","\\xi",!0);ke(Pe,nt,Xs,"ο","\\omicron",!0);ke(Pe,nt,Xs,"π","\\pi",!0);ke(Pe,nt,Xs,"ρ","\\rho",!0);ke(Pe,nt,Xs,"σ","\\sigma",!0);ke(Pe,nt,Xs,"τ","\\tau",!0);ke(Pe,nt,Xs,"υ","\\upsilon",!0);ke(Pe,nt,Xs,"ϕ","\\phi",!0);ke(Pe,nt,Xs,"χ","\\chi",!0);ke(Pe,nt,Xs,"ψ","\\psi",!0);ke(Pe,nt,Xs,"ω","\\omega",!0);ke(Pe,nt,Xs,"ε","\\varepsilon",!0);ke(Pe,nt,Xs,"ϑ","\\vartheta",!0);ke(Pe,nt,Xs,"ϖ","\\varpi",!0);ke(Pe,nt,Xs,"ϱ","\\varrho",!0);ke(Pe,nt,Xs,"ς","\\varsigma",!0);ke(Pe,nt,Xs,"φ","\\varphi",!0);ke(Pe,nt,Na,"∗","*",!0);ke(Pe,nt,Na,"+","+");ke(Pe,nt,Na,"−","-",!0);ke(Pe,nt,Na,"⋅","\\cdot",!0);ke(Pe,nt,Na,"∘","\\circ",!0);ke(Pe,nt,Na,"÷","\\div",!0);ke(Pe,nt,Na,"±","\\pm",!0);ke(Pe,nt,Na,"×","\\times",!0);ke(Pe,nt,Na,"∩","\\cap",!0);ke(Pe,nt,Na,"∪","\\cup",!0);ke(Pe,nt,Na,"∖","\\setminus",!0);ke(Pe,nt,Na,"∧","\\land");ke(Pe,nt,Na,"∨","\\lor");ke(Pe,nt,Na,"∧","\\wedge",!0);ke(Pe,nt,Na,"∨","\\vee",!0);ke(Pe,nt,Sn,"√","\\surd");ke(Pe,nt,Vw,"⟨","\\langle",!0);ke(Pe,nt,Vw,"∣","\\lvert");ke(Pe,nt,Vw,"∥","\\lVert");ke(Pe,nt,pv,"?","?");ke(Pe,nt,pv,"!","!");ke(Pe,nt,pv,"⟩","\\rangle",!0);ke(Pe,nt,pv,"∣","\\rvert");ke(Pe,nt,pv,"∥","\\rVert");ke(Pe,nt,en,"=","=");ke(Pe,nt,en,":",":");ke(Pe,nt,en,"≈","\\approx",!0);ke(Pe,nt,en,"≅","\\cong",!0);ke(Pe,nt,en,"≥","\\ge");ke(Pe,nt,en,"≥","\\geq",!0);ke(Pe,nt,en,"←","\\gets");ke(Pe,nt,en,">","\\gt",!0);ke(Pe,nt,en,"∈","\\in",!0);ke(Pe,nt,en,"","\\@not");ke(Pe,nt,en,"⊂","\\subset",!0);ke(Pe,nt,en,"⊃","\\supset",!0);ke(Pe,nt,en,"⊆","\\subseteq",!0);ke(Pe,nt,en,"⊇","\\supseteq",!0);ke(Pe,jt,en,"⊈","\\nsubseteq",!0);ke(Pe,jt,en,"⊉","\\nsupseteq",!0);ke(Pe,nt,en,"⊨","\\models");ke(Pe,nt,en,"←","\\leftarrow",!0);ke(Pe,nt,en,"≤","\\le");ke(Pe,nt,en,"≤","\\leq",!0);ke(Pe,nt,en,"<","\\lt",!0);ke(Pe,nt,en,"→","\\rightarrow",!0);ke(Pe,nt,en,"→","\\to");ke(Pe,jt,en,"≱","\\ngeq",!0);ke(Pe,jt,en,"≰","\\nleq",!0);ke(Pe,nt,gR," ","\\ ");ke(Pe,nt,gR," ","\\space");ke(Pe,nt,gR," ","\\nobreakspace");ke(hi,nt,gR," ","\\ ");ke(hi,nt,gR," "," ");ke(hi,nt,gR," ","\\space");ke(hi,nt,gR," ","\\nobreakspace");ke(Pe,nt,gR,null,"\\nobreak");ke(Pe,nt,gR,null,"\\allowbreak");ke(Pe,nt,W5e,",",",");ke(Pe,nt,W5e,";",";");ke(Pe,jt,Na,"⊼","\\barwedge",!0);ke(Pe,jt,Na,"⊻","\\veebar",!0);ke(Pe,nt,Na,"⊙","\\odot",!0);ke(Pe,nt,Na,"⊕","\\oplus",!0);ke(Pe,nt,Na,"⊗","\\otimes",!0);ke(Pe,nt,Sn,"∂","\\partial",!0);ke(Pe,nt,Na,"⊘","\\oslash",!0);ke(Pe,jt,Na,"⊚","\\circledcirc",!0);ke(Pe,jt,Na,"⊡","\\boxdot",!0);ke(Pe,nt,Na,"△","\\bigtriangleup");ke(Pe,nt,Na,"▽","\\bigtriangledown");ke(Pe,nt,Na,"†","\\dagger");ke(Pe,nt,Na,"⋄","\\diamond");ke(Pe,nt,Na,"⋆","\\star");ke(Pe,nt,Na,"◃","\\triangleleft");ke(Pe,nt,Na,"▹","\\triangleright");ke(Pe,nt,Vw,"{","\\{");ke(hi,nt,Sn,"{","\\{");ke(hi,nt,Sn,"{","\\textbraceleft");ke(Pe,nt,pv,"}","\\}");ke(hi,nt,Sn,"}","\\}");ke(hi,nt,Sn,"}","\\textbraceright");ke(Pe,nt,Vw,"{","\\lbrace");ke(Pe,nt,pv,"}","\\rbrace");ke(Pe,nt,Vw,"[","\\lbrack",!0);ke(hi,nt,Sn,"[","\\lbrack",!0);ke(Pe,nt,pv,"]","\\rbrack",!0);ke(hi,nt,Sn,"]","\\rbrack",!0);ke(Pe,nt,Vw,"(","\\lparen",!0);ke(Pe,nt,pv,")","\\rparen",!0);ke(hi,nt,Sn,"<","\\textless",!0);ke(hi,nt,Sn,">","\\textgreater",!0);ke(Pe,nt,Vw,"⌊","\\lfloor",!0);ke(Pe,nt,pv,"⌋","\\rfloor",!0);ke(Pe,nt,Vw,"⌈","\\lceil",!0);ke(Pe,nt,pv,"⌉","\\rceil",!0);ke(Pe,nt,Sn,"\\","\\backslash");ke(Pe,nt,Sn,"∣","|");ke(Pe,nt,Sn,"∣","\\vert");ke(hi,nt,Sn,"|","\\textbar",!0);ke(Pe,nt,Sn,"∥","\\|");ke(Pe,nt,Sn,"∥","\\Vert");ke(hi,nt,Sn,"∥","\\textbardbl");ke(hi,nt,Sn,"~","\\textasciitilde");ke(hi,nt,Sn,"\\","\\textbackslash");ke(hi,nt,Sn,"^","\\textasciicircum");ke(Pe,nt,en,"↑","\\uparrow",!0);ke(Pe,nt,en,"⇑","\\Uparrow",!0);ke(Pe,nt,en,"↓","\\downarrow",!0);ke(Pe,nt,en,"⇓","\\Downarrow",!0);ke(Pe,nt,en,"↕","\\updownarrow",!0);ke(Pe,nt,en,"⇕","\\Updownarrow",!0);ke(Pe,nt,L1,"∐","\\coprod");ke(Pe,nt,L1,"⋁","\\bigvee");ke(Pe,nt,L1,"⋀","\\bigwedge");ke(Pe,nt,L1,"⨄","\\biguplus");ke(Pe,nt,L1,"⋂","\\bigcap");ke(Pe,nt,L1,"⋃","\\bigcup");ke(Pe,nt,L1,"∫","\\int");ke(Pe,nt,L1,"∫","\\intop");ke(Pe,nt,L1,"∬","\\iint");ke(Pe,nt,L1,"∭","\\iiint");ke(Pe,nt,L1,"∏","\\prod");ke(Pe,nt,L1,"∑","\\sum");ke(Pe,nt,L1,"⨂","\\bigotimes");ke(Pe,nt,L1,"⨁","\\bigoplus");ke(Pe,nt,L1,"⨀","\\bigodot");ke(Pe,nt,L1,"∮","\\oint");ke(Pe,nt,L1,"∯","\\oiint");ke(Pe,nt,L1,"∰","\\oiiint");ke(Pe,nt,L1,"⨆","\\bigsqcup");ke(Pe,nt,L1,"∫","\\smallint");ke(hi,nt,EW,"…","\\textellipsis");ke(Pe,nt,EW,"…","\\mathellipsis");ke(hi,nt,EW,"…","\\ldots",!0);ke(Pe,nt,EW,"…","\\ldots",!0);ke(Pe,nt,EW,"⋯","\\@cdots",!0);ke(Pe,nt,EW,"⋱","\\ddots",!0);ke(Pe,nt,Sn,"⋮","\\varvdots");ke(hi,nt,Sn,"⋮","\\varvdots");ke(Pe,nt,Kd,"ˊ","\\acute");ke(Pe,nt,Kd,"ˋ","\\grave");ke(Pe,nt,Kd,"¨","\\ddot");ke(Pe,nt,Kd,"~","\\tilde");ke(Pe,nt,Kd,"ˉ","\\bar");ke(Pe,nt,Kd,"˘","\\breve");ke(Pe,nt,Kd,"ˇ","\\check");ke(Pe,nt,Kd,"^","\\hat");ke(Pe,nt,Kd,"⃗","\\vec");ke(Pe,nt,Kd,"˙","\\dot");ke(Pe,nt,Kd,"˚","\\mathring");ke(Pe,nt,Xs,"","\\@imath");ke(Pe,nt,Xs,"","\\@jmath");ke(Pe,nt,Sn,"ı","ı");ke(Pe,nt,Sn,"ȷ","ȷ");ke(hi,nt,Sn,"ı","\\i",!0);ke(hi,nt,Sn,"ȷ","\\j",!0);ke(hi,nt,Sn,"ß","\\ss",!0);ke(hi,nt,Sn,"æ","\\ae",!0);ke(hi,nt,Sn,"œ","\\oe",!0);ke(hi,nt,Sn,"ø","\\o",!0);ke(hi,nt,Sn,"Æ","\\AE",!0);ke(hi,nt,Sn,"Œ","\\OE",!0);ke(hi,nt,Sn,"Ø","\\O",!0);ke(hi,nt,Kd,"ˊ","\\'");ke(hi,nt,Kd,"ˋ","\\`");ke(hi,nt,Kd,"ˆ","\\^");ke(hi,nt,Kd,"˜","\\~");ke(hi,nt,Kd,"ˉ","\\=");ke(hi,nt,Kd,"˘","\\u");ke(hi,nt,Kd,"˙","\\.");ke(hi,nt,Kd,"¸","\\c");ke(hi,nt,Kd,"˚","\\r");ke(hi,nt,Kd,"ˇ","\\v");ke(hi,nt,Kd,"¨",'\\"');ke(hi,nt,Kd,"˝","\\H");ke(hi,nt,Kd,"◯","\\textcircled");var y7n={"--":!0,"---":!0,"``":!0,"''":!0};ke(hi,nt,Sn,"–","--",!0);ke(hi,nt,Sn,"–","\\textendash");ke(hi,nt,Sn,"—","---",!0);ke(hi,nt,Sn,"—","\\textemdash");ke(hi,nt,Sn,"‘","`",!0);ke(hi,nt,Sn,"‘","\\textquoteleft");ke(hi,nt,Sn,"’","'",!0);ke(hi,nt,Sn,"’","\\textquoteright");ke(hi,nt,Sn,"“","``",!0);ke(hi,nt,Sn,"“","\\textquotedblleft");ke(hi,nt,Sn,"”","''",!0);ke(hi,nt,Sn,"”","\\textquotedblright");ke(Pe,nt,Sn,"°","\\degree",!0);ke(hi,nt,Sn,"°","\\degree");ke(hi,nt,Sn,"°","\\textdegree",!0);ke(Pe,nt,Sn,"£","\\pounds");ke(Pe,nt,Sn,"£","\\mathsterling",!0);ke(hi,nt,Sn,"£","\\pounds");ke(hi,nt,Sn,"£","\\textsterling",!0);ke(Pe,jt,Sn,"✠","\\maltese");ke(hi,jt,Sn,"✠","\\maltese");var Kfn='0123456789/@."';for(var MXe=0;MXe<Kfn.length;MXe++){var Xfn=Kfn.charAt(MXe);ke(Pe,nt,Sn,Xfn,Xfn)}var Qfn='0123456789!@*()-=+";:?/.,';for(var PXe=0;PXe<Qfn.length;PXe++){var Zfn=Qfn.charAt(PXe);ke(hi,nt,Sn,Zfn,Zfn)}var LSe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var BXe=0;BXe<LSe.length;BXe++){var m_e=LSe.charAt(BXe);ke(Pe,nt,Xs,m_e,m_e),ke(hi,nt,Sn,m_e,m_e)}ke(Pe,jt,Sn,"C","ℂ");ke(hi,jt,Sn,"C","ℂ");ke(Pe,jt,Sn,"H","ℍ");ke(hi,jt,Sn,"H","ℍ");ke(Pe,jt,Sn,"N","ℕ");ke(hi,jt,Sn,"N","ℕ");ke(Pe,jt,Sn,"P","ℙ");ke(hi,jt,Sn,"P","ℙ");ke(Pe,jt,Sn,"Q","ℚ");ke(hi,jt,Sn,"Q","ℚ");ke(Pe,jt,Sn,"R","ℝ");ke(hi,jt,Sn,"R","ℝ");ke(Pe,jt,Sn,"Z","ℤ");ke(hi,jt,Sn,"Z","ℤ");ke(Pe,nt,Xs,"h","ℎ");ke(hi,nt,Xs,"h","ℎ");var Io="";for(var Dy=0;Dy<LSe.length;Dy++){var r0=LSe.charAt(Dy);Io=String.fromCharCode(55349,56320+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56372+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56424+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56580+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56684+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56736+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56788+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56840+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56944+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Dy<26&&(Io=String.fromCharCode(55349,56632+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io),Io=String.fromCharCode(55349,56476+Dy),ke(Pe,nt,Xs,r0,Io),ke(hi,nt,Sn,r0,Io))}Io="𝕜";ke(Pe,nt,Xs,"k",Io);ke(hi,nt,Sn,"k",Io);for(var hB=0;hB<10;hB++){var NN=hB.toString();Io=String.fromCharCode(55349,57294+hB),ke(Pe,nt,Xs,NN,Io),ke(hi,nt,Sn,NN,Io),Io=String.fromCharCode(55349,57314+hB),ke(Pe,nt,Xs,NN,Io),ke(hi,nt,Sn,NN,Io),Io=String.fromCharCode(55349,57324+hB),ke(Pe,nt,Xs,NN,Io),ke(hi,nt,Sn,NN,Io),Io=String.fromCharCode(55349,57334+hB),ke(Pe,nt,Xs,NN,Io),ke(hi,nt,Sn,NN,Io)}var Est="ÐÞþ";for(var FXe=0;FXe<Est.length;FXe++){var b_e=Est.charAt(FXe);ke(Pe,nt,Xs,b_e,b_e),ke(hi,nt,Sn,b_e,b_e)}var y_e=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Jfn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],V$r=function(t,r){var a=t.charCodeAt(0),s=t.charCodeAt(1),o=(a-55296)*1024+(s-56320)+65536,u=r==="math"?0:1;if(119808<=o&&o<120484){var h=Math.floor((o-119808)/26);return[y_e[h][2],y_e[h][u]]}else if(120782<=o&&o<=120831){var f=Math.floor((o-120782)/10);return[Jfn[f][2],Jfn[f][u]]}else{if(o===120485||o===120486)return[y_e[0][2],y_e[0][u]];if(120486<o&&o<120782)return["",""];throw new Bi("Unsupported character: "+t)}},K5e=function(t,r,a){return ed[a][t]&&ed[a][t].replace&&(t=ed[a][t].replace),{value:t,metrics:nft(t,r,a)}},R3=function(t,r,a,s,o){var u=K5e(t,r,a),h=u.metrics;t=u.value;var f;if(h){var p=h.italic;(a==="text"||s&&s.font==="mathit")&&(p=0),f=new mS(t,h.height,h.depth,p,h.skew,h.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+a+"'")),f=new mS(t,0,0,0,0,0,o);if(s){f.maxFontSize=s.sizeMultiplier,s.style.isTight()&&f.classes.push("mtight");var m=s.getColor();m&&(f.style.color=m)}return f},Y$r=function(t,r,a,s){return s===void 0&&(s=[]),a.font==="boldsymbol"&&K5e(t,"Main-Bold",r).metrics?R3(t,"Main-Bold",r,a,s.concat(["mathbf"])):t==="\\"||ed[r][t].font==="main"?R3(t,"Main-Regular",r,a,s):R3(t,"AMS-Regular",r,a,s.concat(["amsrm"]))},j$r=function(t,r,a,s,o){return o!=="textord"&&K5e(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},W$r=function(t,r,a){var s=t.mode,o=t.text,u=["mord"],h=s==="math"||s==="text"&&r.font,f=h?r.font:r.fontFamily,p="",m="";if(o.charCodeAt(0)===55349&&([p,m]=V$r(o,s)),p.length>0)return R3(o,p,s,r,u.concat(m));if(f){var b,_;if(f==="boldsymbol"){var w=j$r(o,s,r,u,a);b=w.fontName,_=[w.fontClass]}else h?(b=w7n[f].fontName,_=[f]):(b=v_e(f,r.fontWeight,r.fontShape),_=[f,r.fontWeight,r.fontShape]);if(K5e(o,b,s).metrics)return R3(o,b,s,r,u.concat(_));if(y7n.hasOwnProperty(o)&&b.slice(0,10)==="Typewriter"){for(var S=[],C=0;C<o.length;C++)S.push(R3(o[C],b,s,r,u.concat(_)));return _7n(S)}}if(a==="mathord")return R3(o,"Math-Italic",s,r,u.concat(["mathnormal"]));if(a==="textord"){var A=ed[s][o]&&ed[s][o].font;if(A==="ams"){var k=v_e("amsrm",r.fontWeight,r.fontShape);return R3(o,k,s,r,u.concat("amsrm",r.fontWeight,r.fontShape))}else if(A==="main"||!A){var I=v_e("textrm",r.fontWeight,r.fontShape);return R3(o,I,s,r,u.concat(r.fontWeight,r.fontShape))}else{var N=v_e(A,r.fontWeight,r.fontShape);return R3(o,N,s,r,u.concat(N,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},K$r=(e,t)=>{if(zO(e.classes)!==zO(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var s in t.style)if(t.style.hasOwnProperty(s)&&e.style[s]!==t.style[s])return!1;return!0},X$r=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],a=e[t+1];r instanceof mS&&a instanceof mS&&K$r(r,a)&&(r.text+=a.text,r.height=Math.max(r.height,a.height),r.depth=Math.max(r.depth,a.depth),r.italic=a.italic,e.splice(t+1,1),t--)}return e},ift=function(t){for(var r=0,a=0,s=0,o=0;o<t.children.length;o++){var u=t.children[o];u.height>r&&(r=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>s&&(s=u.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=s},N2=function(t,r,a,s){var o=new $le(t,r,a,s);return ift(o),o},v7n=(e,t,r,a)=>new $le(e,t,r,a),Q$r=function(t,r,a){var s=N2([t],[],r);return s.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),s.style.borderBottomWidth=Xi(s.height),s.maxFontSize=1,s},Z$r=function(t,r,a,s){var o=new rft(t,r,a,s);return ift(o),o},_7n=function(t){var r=new Fle(t);return ift(r),r},J$r=function(t,r){return t instanceof Fle?N2([],[t],r):t},eUr=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],s=-r[0].shift-r[0].elem.depth,o=s,u=1;u<r.length;u++){var h=-r[u].shift-o-r[u].elem.depth,f=h-(r[u-1].elem.height+r[u-1].elem.depth);o=o+h,a.push({type:"kern",size:f}),a.push(r[u])}return{children:a,depth:s}}var p;if(t.positionType==="top"){for(var m=t.positionData,b=0;b<t.children.length;b++){var _=t.children[b];m-=_.type==="kern"?_.size:_.elem.height+_.elem.depth}p=m}else if(t.positionType==="bottom")p=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")p=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")p=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:p}},tUr=function(t,r){for(var{children:a,depth:s}=eUr(t),o=0,u=0;u<a.length;u++){var h=a[u];if(h.type==="elem"){var f=h.elem;o=Math.max(o,f.maxFontSize,f.height)}}o+=2;var p=N2(["pstrut"],[]);p.style.height=Xi(o);for(var m=[],b=s,_=s,w=s,S=0;S<a.length;S++){var C=a[S];if(C.type==="kern")w+=C.size;else{var A=C.elem,k=C.wrapperClasses||[],I=C.wrapperStyle||{},N=N2(k,[p,A],void 0,I);N.style.top=Xi(-o-w-A.depth),C.marginLeft&&(N.style.marginLeft=C.marginLeft),C.marginRight&&(N.style.marginRight=C.marginRight),m.push(N),w+=A.height+A.depth}b=Math.min(b,w),_=Math.max(_,w)}var L=N2(["vlist"],m);L.style.height=Xi(_);var P;if(b<0){var M=N2([],[]),F=N2(["vlist"],[M]);F.style.height=Xi(-b);var U=N2(["vlist-s"],[new mS("​")]);P=[N2(["vlist-r"],[L,U]),N2(["vlist-r"],[F])]}else P=[N2(["vlist-r"],[L])];var $=N2(["vlist-t"],P);return P.length===2&&$.classes.push("vlist-t2"),$.height=_,$.depth=-b,$},nUr=(e,t)=>{var r=N2(["mspace"],[],t),a=kf(e,t);return r.style.marginRight=Xi(a),r},v_e=function(t,r,a){var s="";switch(t){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=t}var o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",s+"-"+o},w7n={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},E7n={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rUr=function(t,r){var[a,s,o]=E7n[t],u=new GO(a),h=new X7([u],{width:Xi(s),height:Xi(o),style:"width:"+Xi(s),viewBox:"0 0 "+1e3*s+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),f=v7n(["overlay"],[h],r);return f.height=o,f.style.height=Xi(o),f.style.width=Xi(s),f},Jn={fontMap:w7n,makeSymbol:R3,mathsym:Y$r,makeSpan:N2,makeSvgSpan:v7n,makeLineSpan:Q$r,makeAnchor:Z$r,makeFragment:_7n,wrapFragment:J$r,makeVList:tUr,makeOrd:W$r,makeGlue:nUr,staticSvg:rUr,svgData:E7n,tryCombineChars:X$r},Cf={number:3,unit:"mu"},dB={number:4,unit:"mu"},G6={number:5,unit:"mu"},iUr={mord:{mop:Cf,mbin:dB,mrel:G6,minner:Cf},mop:{mord:Cf,mop:Cf,mrel:G6,minner:Cf},mbin:{mord:dB,mop:dB,mopen:dB,minner:dB},mrel:{mord:G6,mop:G6,mopen:G6,minner:G6},mopen:{},mclose:{mop:Cf,mbin:dB,mrel:G6,minner:Cf},mpunct:{mord:Cf,mop:Cf,mrel:G6,mopen:Cf,mclose:Cf,mpunct:Cf,minner:Cf},minner:{mord:Cf,mop:Cf,mbin:dB,mrel:G6,mopen:Cf,mpunct:Cf,minner:Cf}},aUr={mord:{mop:Cf},mop:{mord:Cf,mop:Cf},mbin:{},mrel:{},mopen:{},mclose:{mop:Cf},mpunct:{},minner:{mop:Cf}},x7n={},DSe={},MSe={};function pa(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:s},f=0;f<r.length;++f)x7n[r[f]]=h;t&&(o&&(DSe[t]=o),u&&(MSe[t]=u))}function m$(e){var{type:t,htmlBuilder:r,mathmlBuilder:a}=e;pa({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:a})}var PSe=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},X0=function(t){return t.type==="ordgroup"?t.body:[t]},Q7=Jn.makeSpan,sUr=["leftmost","mbin","mopen","mrel","mop","mpunct"],oUr=["rightmost","mrel","mclose","mpunct"],lUr={display:Zs.DISPLAY,text:Zs.TEXT,script:Zs.SCRIPT,scriptscript:Zs.SCRIPTSCRIPT},cUr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Op=function(t,r,a,s){s===void 0&&(s=[null,null]);for(var o=[],u=0;u<t.length;u++){var h=Yc(t[u],r);if(h instanceof Fle){var f=h.children;o.push(...f)}else o.push(h)}if(Jn.tryCombineChars(o),!a)return o;var p=r;if(t.length===1){var m=t[0];m.type==="sizing"?p=r.havingSize(m.size):m.type==="styling"&&(p=r.havingStyle(lUr[m.style]))}var b=Q7([s[0]||"leftmost"],[],r),_=Q7([s[1]||"rightmost"],[],r),w=a==="root";return e0n(o,(S,C)=>{var A=C.classes[0],k=S.classes[0];A==="mbin"&&oUr.includes(k)?C.classes[0]="mord":k==="mbin"&&sUr.includes(A)&&(S.classes[0]="mord")},{node:b},_,w),e0n(o,(S,C)=>{var A=xst(C),k=xst(S),I=A&&k?S.hasClass("mtight")?aUr[A][k]:iUr[A][k]:null;if(I)return Jn.makeGlue(I,p)},{node:b},_,w),o},e0n=function e(t,r,a,s,o){s&&t.push(s);for(var u=0;u<t.length;u++){var h=t[u],f=S7n(h);if(f){e(f.children,r,a,null,o);continue}var p=!h.hasClass("mspace");if(p){var m=r(h,a.node);m&&(a.insertAfter?a.insertAfter(m):(t.unshift(m),u++))}p?a.node=h:o&&h.hasClass("newline")&&(a.node=Q7(["leftmost"])),a.insertAfter=(b=>_=>{t.splice(b+1,0,_),u++})(u)}s&&t.pop()},S7n=function(t){return t instanceof Fle||t instanceof rft||t instanceof $le&&t.hasClass("enclosing")?t:null},uUr=function e(t,r){var a=S7n(t);if(a){var s=a.children;if(s.length){if(r==="right")return e(s[s.length-1],"right");if(r==="left")return e(s[0],"left")}}return t},xst=function(t,r){return t?(r&&(t=uUr(t,r)),cUr[t.classes[0]]||null):null},Qse=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return Q7(r.concat(a))},Yc=function(t,r,a){if(!t)return Q7();if(DSe[t.type]){var s=DSe[t.type](t,r);if(a&&r.size!==a.size){s=Q7(r.sizingClasses(a),[s],r);var o=r.sizeMultiplier/a.sizeMultiplier;s.height*=o,s.depth*=o}return s}else throw new Bi("Got group of unknown type: '"+t.type+"'")};function __e(e,t){var r=Q7(["base"],e,t),a=Q7(["strut"]);return a.style.height=Xi(r.height+r.depth),r.depth&&(a.style.verticalAlign=Xi(-r.depth)),r.children.unshift(a),r}function Sst(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Op(e,t,"root"),s;a.length===2&&a[1].hasClass("tag")&&(s=a.pop());for(var o=[],u=[],h=0;h<a.length;h++)if(u.push(a[h]),a[h].hasClass("mbin")||a[h].hasClass("mrel")||a[h].hasClass("allowbreak")){for(var f=!1;h<a.length-1&&a[h+1].hasClass("mspace")&&!a[h+1].hasClass("newline");)h++,u.push(a[h]),a[h].hasClass("nobreak")&&(f=!0);f||(o.push(__e(u,t)),u=[])}else a[h].hasClass("newline")&&(u.pop(),u.length>0&&(o.push(__e(u,t)),u=[]),o.push(a[h]));u.length>0&&o.push(__e(u,t));var p;r?(p=__e(Op(r,t,!0)),p.classes=["tag"],o.push(p)):s&&o.push(s);var m=Q7(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),p){var b=p.children[0];b.style.height=Xi(m.height+m.depth),m.depth&&(b.style.verticalAlign=Xi(-m.depth))}return m}function T7n(e){return new Fle(e)}let Iw=class{constructor(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=zO(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof jC&&this.children[a+1]instanceof jC){for(var s=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof jC;)s+=this.children[++a].toText();t.appendChild(new jC(s).toNode())}else t.appendChild(this.children[a].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=uu.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+uu.escape(zO(this.classes))+'"'),t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},jC=class{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return uu.escape(this.toText())}toText(){return this.text}},hUr=class{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Xi(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Xi(this.width)+'"/>'}toText(){return this.character?this.character:" "}};var xi={MathNode:Iw,TextNode:jC,SpaceNode:hUr,newDocumentFragment:T7n},bS=function(t,r,a){return ed[r][t]&&ed[r][t].replace&&t.charCodeAt(0)!==55349&&!(y7n.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=ed[r][t].replace),new xi.TextNode(t)},aft=function(t){return t.length===1?t[0]:new xi.MathNode("mrow",t)},sft=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var a=r.font;if(!a||a==="mathnormal")return null;var s=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(["\\imath","\\jmath"].includes(o))return null;ed[s][o]&&ed[s][o].replace&&(o=ed[s][o].replace);var u=Jn.fontMap[a].fontName;return nft(o,u,s)?Jn.fontMap[a].variant:null};function $Xe(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof jC&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof jC&&r.text===","}else return!1}var o_=function(t,r,a){if(t.length===1){var s=Ph(t[0],r);return a&&s instanceof Iw&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var o=[],u,h=0;h<t.length;h++){var f=Ph(t[h],r);if(f instanceof Iw&&u instanceof Iw){if(f.type==="mtext"&&u.type==="mtext"&&f.getAttribute("mathvariant")===u.getAttribute("mathvariant")){u.children.push(...f.children);continue}else if(f.type==="mn"&&u.type==="mn"){u.children.push(...f.children);continue}else if($Xe(f)&&u.type==="mn"){u.children.push(...f.children);continue}else if(f.type==="mn"&&$Xe(u))f.children=[...u.children,...f.children],o.pop();else if((f.type==="msup"||f.type==="msub")&&f.children.length>=1&&(u.type==="mn"||$Xe(u))){var p=f.children[0];p instanceof Iw&&p.type==="mn"&&(p.children=[...u.children,...p.children],o.pop())}else if(u.type==="mi"&&u.children.length===1){var m=u.children[0];if(m instanceof jC&&m.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var b=f.children[0];b instanceof jC&&b.text.length>0&&(b.text=b.text.slice(0,1)+"̸"+b.text.slice(1),o.pop())}}}o.push(f),u=f}return o},qO=function(t,r,a){return aft(o_(t,r,a))},Ph=function(t,r){if(!t)return new xi.MathNode("mrow");if(MSe[t.type]){var a=MSe[t.type](t,r);return a}else throw new Bi("Got group of unknown type: '"+t.type+"'")};function t0n(e,t,r,a,s){var o=o_(e,r),u;o.length===1&&o[0]instanceof Iw&&["mrow","mtable"].includes(o[0].type)?u=o[0]:u=new xi.MathNode("mrow",o);var h=new xi.MathNode("annotation",[new xi.TextNode(t)]);h.setAttribute("encoding","application/x-tex");var f=new xi.MathNode("semantics",[u,h]),p=new xi.MathNode("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var m=s?"katex":"katex-mathml";return Jn.makeSpan([m],[p])}var C7n=function(t){return new f7n({style:t.displayMode?Zs.DISPLAY:Zs.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A7n=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=Jn.makeSpan(a,[t])}return t},dUr=function(t,r,a){var s=C7n(a),o;if(a.output==="mathml")return t0n(t,r,s,a.displayMode,!0);if(a.output==="html"){var u=Sst(t,s);o=Jn.makeSpan(["katex"],[u])}else{var h=t0n(t,r,s,a.displayMode,!1),f=Sst(t,s);o=Jn.makeSpan(["katex"],[h,f])}return A7n(o,a)},fUr=function(t,r,a){var s=C7n(a),o=Sst(t,s),u=Jn.makeSpan(["katex"],[o]);return A7n(u,a)},pUr={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},gUr=function(t){var r=new xi.MathNode("mo",[new xi.TextNode(pUr[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},mUr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},bUr=function(t){return t.type==="ordgroup"?t.body.length:1},yUr=function(t,r){function a(){var h=4e5,f=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(f)){var p=t,m=bUr(p.base),b,_,w;if(m>5)f==="widehat"||f==="widecheck"?(b=420,h=2364,w=.42,_=f+"4"):(b=312,h=2340,w=.34,_="tilde4");else{var S=[1,1,2,2,3,3][m];f==="widehat"||f==="widecheck"?(h=[0,1062,2364,2364,2364][S],b=[0,239,300,360,420][S],w=[0,.24,.3,.3,.36,.42][S],_=f+S):(h=[0,600,1033,2339,2340][S],b=[0,260,286,306,312][S],w=[0,.26,.286,.3,.306,.34][S],_="tilde"+S)}var C=new GO(_),A=new X7([C],{width:"100%",height:Xi(w),viewBox:"0 0 "+h+" "+b,preserveAspectRatio:"none"});return{span:Jn.makeSvgSpan([],[A],r),minWidth:0,height:w}}else{var k=[],I=mUr[f],[N,L,P]=I,M=P/1e3,F=N.length,U,$;if(F===1){var G=I[3];U=["hide-tail"],$=[G]}else if(F===2)U=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(F===3)U=["brace-left","brace-center","brace-right"],$=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+F+" children.");for(var B=0;B<F;B++){var Z=new GO(N[B]),z=new X7([Z],{width:"400em",height:Xi(M),viewBox:"0 0 "+h+" "+P,preserveAspectRatio:$[B]+" slice"}),Y=Jn.makeSvgSpan([U[B]],[z],r);if(F===1)return{span:Y,minWidth:L,height:M};Y.style.height=Xi(M),k.push(Y)}return{span:Jn.makeSpan(["stretchy"],k,r),minWidth:L,height:M}}}var{span:s,minWidth:o,height:u}=a();return s.height=u,s.style.height=Xi(u),o>0&&(s.style.minWidth=Xi(o)),s},vUr=function(t,r,a,s,o){var u,h=t.height+t.depth+a+s;if(/fbox|color|angl/.test(r)){if(u=Jn.makeSpan(["stretchy",r],[],o),r==="fbox"){var f=o.color&&o.getColor();f&&(u.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new wst({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new wst({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new X7(p,{width:"100%",height:Xi(h)});u=Jn.makeSvgSpan([],[m],o)}return u.height=h,u.style.height=Xi(h),u},Z7={encloseSpan:vUr,mathMLnode:gUr,svgSpan:yUr};function El(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function oft(e){var t=X5e(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function X5e(e){return e&&(e.type==="atom"||H$r.hasOwnProperty(e.type))?e:null}var lft=(e,t)=>{var r,a,s;e&&e.type==="supsub"?(a=El(e.base,"accent"),r=a.base,e.base=r,s=G$r(Yc(e,t)),e.base=a):(a=El(e,"accent"),r=a.base);var o=Yc(r,t.havingCrampedStyle()),u=a.isShifty&&uu.isCharacterBox(r),h=0;if(u){var f=uu.getBaseElem(r),p=Yc(f,t.havingCrampedStyle());h=Wfn(p).skew}var m=a.label==="\\c",b=m?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),_;if(a.isStretchy)_=Z7.svgSpan(a,t),_=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:_,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+Xi(2*h)+")",marginLeft:Xi(2*h)}:void 0}]},t);else{var w,S;a.label==="\\vec"?(w=Jn.staticSvg("vec",t),S=Jn.svgData.vec[1]):(w=Jn.makeOrd({mode:a.mode,text:a.label},t,"textord"),w=Wfn(w),w.italic=0,S=w.width,m&&(b+=w.depth)),_=Jn.makeSpan(["accent-body"],[w]);var C=a.label==="\\textcircled";C&&(_.classes.push("accent-full"),b=o.height);var A=h;C||(A-=S/2),_.style.left=Xi(A),a.label==="\\textcircled"&&(_.style.top=".2em"),_=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-b},{type:"elem",elem:_}]},t)}var k=Jn.makeSpan(["mord","accent"],[_],t);return s?(s.children[0]=k,s.height=Math.max(k.height,s.height),s.classes[0]="mord",s):k},k7n=(e,t)=>{var r=e.isStretchy?Z7.mathMLnode(e.label):new xi.MathNode("mo",[bS(e.label,e.mode)]),a=new xi.MathNode("mover",[Ph(e.base,t),r]);return a.setAttribute("accent","true"),a},_Ur=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));pa({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=PSe(t[0]),a=!_Ur.test(e.funcName),s=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:s,base:r}},htmlBuilder:lft,mathmlBuilder:k7n});pa({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:lft,mathmlBuilder:k7n});pa({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:s}},htmlBuilder:(e,t)=>{var r=Yc(e.base,t),a=Z7.svgSpan(e,t),s=e.label==="\\utilde"?.12:0,o=Jn.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:r}]},t);return Jn.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=Z7.mathMLnode(e.label),a=new xi.MathNode("munder",[Ph(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var w_e=e=>{var t=new xi.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};pa({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:s}=e;return{type:"xArrow",mode:a.mode,label:s,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),s=Jn.wrapFragment(Yc(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(o+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=Jn.wrapFragment(Yc(e.below,a,t),t),u.classes.push(o+"-arrow-pad"));var h=Z7.svgSpan(e,t),f=-t.fontMetrics().axisHeight+.5*h.height,p=-t.fontMetrics().axisHeight-.5*h.height-.111;(s.depth>.25||e.label==="\\xleftequilibrium")&&(p-=s.depth);var m;if(u){var b=-t.fontMetrics().axisHeight+u.height+.5*h.height+.111;m=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f},{type:"elem",elem:u,shift:b}]},t)}else m=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),Jn.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=Z7.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var s=w_e(Ph(e.body,t));if(e.below){var o=w_e(Ph(e.below,t));a=new xi.MathNode("munderover",[r,o,s])}else a=new xi.MathNode("mover",[r,s])}else if(e.below){var u=w_e(Ph(e.below,t));a=new xi.MathNode("munder",[r,u])}else a=w_e(),a=new xi.MathNode("mover",[r,a]);return a}});var wUr=Jn.makeSpan;function R7n(e,t){var r=Op(e.body,t,!0);return wUr([e.mclass],r,t)}function I7n(e,t){var r,a=o_(e.body,t);return e.mclass==="minner"?r=new xi.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new xi.MathNode("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new xi.MathNode("mo",a),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}pa({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:X0(s),isCharacterBox:uu.isCharacterBox(s)}},htmlBuilder:R7n,mathmlBuilder:I7n});var Q5e=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};pa({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Q5e(t[0]),body:X0(t[1]),isCharacterBox:uu.isCharacterBox(t[1])}}});pa({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,s=t[1],o=t[0],u;a!=="\\stackrel"?u=Q5e(s):u="mrel";var h={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:X0(s)},f={type:"supsub",mode:o.mode,base:h,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:u,body:[f],isCharacterBox:uu.isCharacterBox(f)}},htmlBuilder:R7n,mathmlBuilder:I7n});pa({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Q5e(t[0]),body:X0(t[0])}},htmlBuilder(e,t){var r=Op(e.body,t,!0),a=Jn.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=o_(e.body,t),a=new xi.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var EUr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},n0n=()=>({type:"styling",body:[],mode:"math",style:"display"}),r0n=e=>e.type==="textord"&&e.text==="@",xUr=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function SUr(e,t,r){var a=EUr[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var s=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},u=r.callFunction("\\Big",[o],[]),h=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[s,u,h]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function TUr(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Bi("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],s=[a],o=0;o<t.length;o++){for(var u=t[o],h=n0n(),f=0;f<u.length;f++)if(!r0n(u[f]))h.body.push(u[f]);else{a.push(h),f+=1;var p=oft(u[f]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(p)>-1))if("<>AV".indexOf(p)>-1)for(var b=0;b<2;b++){for(var _=!0,w=f+1;w<u.length;w++){if(xUr(u[w],p)){_=!1,f=w;break}if(r0n(u[w]))throw new Bi("Missing a "+p+" character to complete a CD arrow.",u[w]);m[b].body.push(u[w])}if(_)throw new Bi("Missing a "+p+" character to complete a CD arrow.",u[f])}else throw new Bi('Expected one of "<>AV=|." after @',u[f]);var S=SUr(p,m,e),C={type:"styling",body:[S],mode:"math",style:"display"};a.push(C),h=n0n()}o%2===0?a.push(h):a.shift(),a=[],s.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}pa({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=Jn.wrapFragment(Yc(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Xi(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new xi.MathNode("mrow",[Ph(e.label,t)]);return r=new xi.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new xi.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});pa({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Jn.wrapFragment(Yc(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new xi.MathNode("mrow",[Ph(e.fragment,t)])}});pa({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=El(t[0],"ordgroup"),s=a.body,o="",u=0;u<s.length;u++){var h=El(s[u],"textord");o+=h.text}var f=parseInt(o),p;if(isNaN(f))throw new Bi("\\@char has non-numeric argument "+o);if(f<0||f>=1114111)throw new Bi("\\@char with invalid code point "+o);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var N7n=(e,t)=>{var r=Op(e.body,t.withColor(e.color),!1);return Jn.makeFragment(r)},O7n=(e,t)=>{var r=o_(e.body,t.withColor(e.color)),a=new xi.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};pa({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=El(t[0],"color-token").color,s=t[1];return{type:"color",mode:r.mode,color:a,body:X0(s)}},htmlBuilder:N7n,mathmlBuilder:O7n});pa({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,s=El(t[0],"color-token").color;r.gullet.macros.set("\\current@color",s);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:s,body:o}},htmlBuilder:N7n,mathmlBuilder:O7n});pa({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,s=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:s&&El(s,"size").value}},htmlBuilder(e,t){var r=Jn.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Xi(kf(e.size,t)))),r},mathmlBuilder(e,t){var r=new xi.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Xi(kf(e.size,t)))),r}});var Tst={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},L7n=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Bi("Expected a control sequence",e);return t},CUr=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},D7n=(e,t,r,a)=>{var s=e.gullet.macros.get(r.text);s==null&&(r.noexpand=!0,s={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,s,a)};pa({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(Tst[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=Tst[a.text]),El(t.parseFunction(),"internal");throw new Bi("Invalid token after macro prefix",a)}});pa({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),s=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new Bi("Expected a control sequence",a);for(var o=0,u,h=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),h[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Bi('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new Bi('Argument number "'+a.text+'" out of order');o++,h.push([])}else{if(a.text==="EOF")throw new Bi("Expected a macro definition");h[o].push(a.text)}var{tokens:f}=t.gullet.consumeArg();return u&&f.unshift(u),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(s,{tokens:f,numArgs:o,delimiters:h},r===Tst[r]),{type:"internal",mode:t.mode}}});pa({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=L7n(t.gullet.popToken());t.gullet.consumeSpaces();var s=CUr(t);return D7n(t,a,s,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});pa({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=L7n(t.gullet.popToken()),s=t.gullet.popToken(),o=t.gullet.popToken();return D7n(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var Sie=function(t,r,a){var s=ed.math[t]&&ed.math[t].replace,o=nft(s||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},cft=function(t,r,a,s){var o=a.havingBaseStyle(r),u=Jn.makeSpan(s.concat(o.sizingClasses(a)),[t],a),h=o.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=o.sizeMultiplier,u},M7n=function(t,r,a){var s=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/s.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Xi(o),t.height-=o,t.depth+=o},AUr=function(t,r,a,s,o,u){var h=Jn.makeSymbol(t,"Main-Regular",o,s),f=cft(h,r,s,u);return a&&M7n(f,s,r),f},kUr=function(t,r,a,s){return Jn.makeSymbol(t,"Size"+r+"-Regular",a,s)},P7n=function(t,r,a,s,o,u){var h=kUr(t,r,o,s),f=cft(Jn.makeSpan(["delimsizing","size"+r],[h],s),Zs.TEXT,s,u);return a&&M7n(f,s,Zs.TEXT),f},UXe=function(t,r,a){var s;r==="Size1-Regular"?s="delim-size1":s="delim-size4";var o=Jn.makeSpan(["delimsizinginner",s],[Jn.makeSpan([],[Jn.makeSymbol(t,r,a)])]);return{type:"elem",elem:o}},zXe=function(t,r,a){var s=YC["Size4-Regular"][t.charCodeAt(0)]?YC["Size4-Regular"][t.charCodeAt(0)][4]:YC["Size1-Regular"][t.charCodeAt(0)][4],o=new GO("inner",D$r(t,Math.round(1e3*r))),u=new X7([o],{width:Xi(s),height:Xi(r),style:"width:"+Xi(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),h=Jn.makeSvgSpan([],[u],a);return h.height=r,h.style.height=Xi(r),h.style.width=Xi(s),{type:"elem",elem:h}},Cst=.008,E_e={type:"kern",size:-1*Cst},RUr=["|","\\lvert","\\rvert","\\vert"],IUr=["\\|","\\lVert","\\rVert","\\Vert"],B7n=function(t,r,a,s,o,u){var h,f,p,m,b="",_=0;h=p=m=t,f=null;var w="Size1-Regular";t==="\\uparrow"?p=m="⏐":t==="\\Uparrow"?p=m="‖":t==="\\downarrow"?h=p="⏐":t==="\\Downarrow"?h=p="‖":t==="\\updownarrow"?(h="\\uparrow",p="⏐",m="\\downarrow"):t==="\\Updownarrow"?(h="\\Uparrow",p="‖",m="\\Downarrow"):RUr.includes(t)?(p="∣",b="vert",_=333):IUr.includes(t)?(p="∥",b="doublevert",_=556):t==="["||t==="\\lbrack"?(h="⎡",p="⎢",m="⎣",w="Size4-Regular",b="lbrack",_=667):t==="]"||t==="\\rbrack"?(h="⎤",p="⎥",m="⎦",w="Size4-Regular",b="rbrack",_=667):t==="\\lfloor"||t==="⌊"?(p=h="⎢",m="⎣",w="Size4-Regular",b="lfloor",_=667):t==="\\lceil"||t==="⌈"?(h="⎡",p=m="⎢",w="Size4-Regular",b="lceil",_=667):t==="\\rfloor"||t==="⌋"?(p=h="⎥",m="⎦",w="Size4-Regular",b="rfloor",_=667):t==="\\rceil"||t==="⌉"?(h="⎤",p=m="⎥",w="Size4-Regular",b="rceil",_=667):t==="("||t==="\\lparen"?(h="⎛",p="⎜",m="⎝",w="Size4-Regular",b="lparen",_=875):t===")"||t==="\\rparen"?(h="⎞",p="⎟",m="⎠",w="Size4-Regular",b="rparen",_=875):t==="\\{"||t==="\\lbrace"?(h="⎧",f="⎨",m="⎩",p="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(h="⎫",f="⎬",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(h="⎧",m="⎩",p="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(h="⎫",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(h="⎧",m="⎭",p="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(h="⎫",m="⎩",p="⎪",w="Size4-Regular");var S=Sie(h,w,o),C=S.height+S.depth,A=Sie(p,w,o),k=A.height+A.depth,I=Sie(m,w,o),N=I.height+I.depth,L=0,P=1;if(f!==null){var M=Sie(f,w,o);L=M.height+M.depth,P=2}var F=C+N+L,U=Math.max(0,Math.ceil((r-F)/(P*k))),$=F+U*P*k,G=s.fontMetrics().axisHeight;a&&(G*=s.sizeMultiplier);var B=$/2-G,Z=[];if(b.length>0){var z=$-C-N,Y=Math.round($*1e3),W=M$r(b,Math.round(z*1e3)),Q=new GO(b,W),V=(_/1e3).toFixed(3)+"em",j=(Y/1e3).toFixed(3)+"em",ee=new X7([Q],{width:V,height:j,viewBox:"0 0 "+_+" "+Y}),te=Jn.makeSvgSpan([],[ee],s);te.height=Y/1e3,te.style.width=V,te.style.height=j,Z.push({type:"elem",elem:te})}else{if(Z.push(UXe(m,w,o)),Z.push(E_e),f===null){var ne=$-C-N+2*Cst;Z.push(zXe(p,ne,s))}else{var se=($-C-N-L)/2+2*Cst;Z.push(zXe(p,se,s)),Z.push(E_e),Z.push(UXe(f,w,o)),Z.push(E_e),Z.push(zXe(p,se,s))}Z.push(E_e),Z.push(UXe(h,w,o))}var ie=s.havingBaseStyle(Zs.TEXT),ge=Jn.makeVList({positionType:"bottom",positionData:B,children:Z},ie);return cft(Jn.makeSpan(["delimsizing","mult"],[ge],ie),Zs.TEXT,s,u)},GXe=80,qXe=.08,HXe=function(t,r,a,s,o){var u=L$r(t,s,a),h=new GO(t,u),f=new X7([h],{width:"400em",height:Xi(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Jn.makeSvgSpan(["hide-tail"],[f],o)},NUr=function(t,r){var a=r.havingBaseSizing(),s=z7n("\\surd",t*a.sizeMultiplier,U7n,a),o=a.sizeMultiplier,u=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),h,f=0,p=0,m=0,b;return s.type==="small"?(m=1e3+1e3*u+GXe,t<1?o=1:t<1.4&&(o=.7),f=(1+u+qXe)/o,p=(1+u)/o,h=HXe("sqrtMain",f,m,u,r),h.style.minWidth="0.853em",b=.833/o):s.type==="large"?(m=(1e3+GXe)*Qae[s.size],p=(Qae[s.size]+u)/o,f=(Qae[s.size]+u+qXe)/o,h=HXe("sqrtSize"+s.size,f,m,u,r),h.style.minWidth="1.02em",b=1/o):(f=t+u+qXe,p=t+u,m=Math.floor(1e3*t+u)+GXe,h=HXe("sqrtTall",f,m,u,r),h.style.minWidth="0.742em",b=1.056),h.height=p,h.style.height=Xi(f),{span:h,advanceWidth:b,ruleWidth:(r.fontMetrics().sqrtRuleThickness+u)*o}},F7n=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],OUr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],$7n=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Qae=[0,1.2,1.8,2.4,3],LUr=function(t,r,a,s,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),F7n.includes(t)||$7n.includes(t))return P7n(t,r,!1,a,s,o);if(OUr.includes(t))return B7n(t,Qae[r],!1,a,s,o);throw new Bi("Illegal delimiter: '"+t+"'")},DUr=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],MUr=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"stack"}],U7n=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],PUr=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},z7n=function(t,r,a,s){for(var o=Math.min(2,3-s.style.size),u=o;u<a.length&&a[u].type!=="stack";u++){var h=Sie(t,PUr(a[u]),"math"),f=h.height+h.depth;if(a[u].type==="small"){var p=s.havingBaseStyle(a[u].style);f*=p.sizeMultiplier}if(f>r)return a[u]}return a[a.length-1]},G7n=function(t,r,a,s,o,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var h;$7n.includes(t)?h=DUr:F7n.includes(t)?h=U7n:h=MUr;var f=z7n(t,r,h,s);return f.type==="small"?AUr(t,f.style,a,s,o,u):f.type==="large"?P7n(t,f.size,a,s,o,u):B7n(t,r,a,s,o,u)},BUr=function(t,r,a,s,o,u){var h=s.fontMetrics().axisHeight*s.sizeMultiplier,f=901,p=5/s.fontMetrics().ptPerEm,m=Math.max(r-h,a+h),b=Math.max(m/500*f,2*m-p);return G7n(t,b,!0,s,o,u)},F7={sqrtImage:NUr,sizedDelim:LUr,sizeToMaxHeight:Qae,customSizedDelim:G7n,leftRightDelim:BUr},i0n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},FUr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Z5e(e,t){var r=X5e(e);if(r&&FUr.includes(r.text))return r;throw r?new Bi("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Bi("Invalid delimiter type '"+e.type+"'",e)}pa({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Z5e(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:i0n[e.funcName].size,mclass:i0n[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Jn.makeSpan([e.mclass]):F7.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(bS(e.delim,e.mode));var r=new xi.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=Xi(F7.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function a0n(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}pa({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Bi("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Z5e(t[0],e).text,color:r}}});pa({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Z5e(t[0],e),a=e.parser;++a.leftrightDepth;var s=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=El(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:s,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{a0n(e);for(var r=Op(e.body,t,!0,["mopen","mclose"]),a=0,s=0,o=!1,u=0;u<r.length;u++)r[u].isMiddle?o=!0:(a=Math.max(r[u].height,a),s=Math.max(r[u].depth,s));a*=t.sizeMultiplier,s*=t.sizeMultiplier;var h;if(e.left==="."?h=Qse(t,["mopen"]):h=F7.leftRightDelim(e.left,a,s,t,e.mode,["mopen"]),r.unshift(h),o)for(var f=1;f<r.length;f++){var p=r[f],m=p.isMiddle;m&&(r[f]=F7.leftRightDelim(m.delim,a,s,m.options,e.mode,[]))}var b;if(e.right===".")b=Qse(t,["mclose"]);else{var _=e.rightColor?t.withColor(e.rightColor):t;b=F7.leftRightDelim(e.right,a,s,_,e.mode,["mclose"])}return r.push(b),Jn.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{a0n(e);var r=o_(e.body,t);if(e.left!=="."){var a=new xi.MathNode("mo",[bS(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var s=new xi.MathNode("mo",[bS(e.right,e.mode)]);s.setAttribute("fence","true"),e.rightColor&&s.setAttribute("mathcolor",e.rightColor),r.push(s)}return aft(r)}});pa({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Z5e(t[0],e);if(!e.parser.leftrightDepth)throw new Bi("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Qse(t,[]);else{r=F7.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?bS("|","text"):bS(e.delim,e.mode),a=new xi.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var uft=(e,t)=>{var r=Jn.wrapFragment(Yc(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,o,u=0,h=uu.isCharacterBox(e.body);if(a==="sout")o=Jn.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/s,u=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var f=kf({number:.6,unit:"pt"},t),p=kf({number:.35,unit:"ex"},t),m=t.havingBaseSizing();s=s/m.sizeMultiplier;var b=r.height+r.depth+f+p;r.style.paddingLeft=Xi(b/2+f);var _=Math.floor(1e3*b*s),w=N$r(_),S=new X7([new GO("phase",w)],{width:"400em",height:Xi(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});o=Jn.makeSvgSpan(["hide-tail"],[S],t),o.style.height=Xi(b),u=r.depth+f+p}else{/cancel/.test(a)?h||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C=0,A=0,k=0;/box/.test(a)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),C=t.fontMetrics().fboxsep+(a==="colorbox"?0:k),A=C):a==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),C=4*k,A=Math.max(0,.25-r.depth)):(C=h?.2:0,A=C),o=Z7.encloseSpan(r,a,C,A,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=Xi(k)):a==="angl"&&k!==.049&&(o.style.borderTopWidth=Xi(k),o.style.borderRightWidth=Xi(k)),u=r.depth+A,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var I;if(e.backgroundColor)I=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:r,shift:0}]},t);else{var N=/cancel|phase/.test(a)?["svg-align"]:[];I=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:u,wrapperClasses:N}]},t)}return/cancel/.test(a)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(a)&&!h?Jn.makeSpan(["mord","cancel-lap"],[I],t):Jn.makeSpan(["mord"],[I],t)},hft=(e,t)=>{var r=0,a=new xi.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ph(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+s+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};pa({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=El(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:s,backgroundColor:o,body:u}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=El(t[0],"color-token").color,u=El(t[1],"color-token").color,h=t[2];return{type:"enclose",mode:a.mode,label:s,backgroundColor:u,borderColor:o,body:h}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});pa({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"enclose",mode:r.mode,label:a,body:s}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var q7n={};function CA(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f<r.length;++f)q7n[r[f]]=h;o&&(DSe[t]=o),u&&(MSe[t]=u)}var H7n={};function ft(e,t){H7n[e]=t}function s0n(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var J5e=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Bi("{"+e.envName+"} can be used only in display mode.")};function dft(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function x9(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:u,colSeparationType:h,autoTag:f,singleRow:p,emptySingleRow:m,maxNumCols:b,leqno:_}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)u=1;else if(u=parseFloat(w),!u||u<0)throw new Bi("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var S=[],C=[S],A=[],k=[],I=f!=null?[]:void 0;function N(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){I&&(e.gullet.macros.get("\\df@tag")?(I.push(e.subparse([new Y3("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),k.push(s0n(e));;){var P=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),S.push(P);var M=e.fetch().text;if(M==="&"){if(b&&S.length===b){if(p||h)throw new Bi("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(M==="\\end"){L(),S.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(C.length>1||!m)&&C.pop(),k.length<C.length+1&&k.push([]);break}else if(M==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),A.push(F?F.value:null),L(),k.push(s0n(e)),S=[],C.push(S),N()}else throw new Bi("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:s,arraystretch:u,body:C,cols:o,rowGaps:A,hskipBeforeAndAfter:a,hLinesBeforeRow:k,colSeparationType:h,tags:I,leqno:_}}function fft(e){return e.slice(0,1)==="d"?"display":"text"}var AA=function(t,r){var a,s,o=t.body.length,u=t.hLinesBeforeRow,h=0,f=new Array(o),p=[],m=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),b=1/r.fontMetrics().ptPerEm,_=5*b;if(t.colSeparationType&&t.colSeparationType==="small"){var w=r.havingStyle(Zs.SCRIPT).sizeMultiplier;_=.2778*(w/r.sizeMultiplier)}var S=t.colSeparationType==="CD"?kf({number:3,unit:"ex"},r):12*b,C=3*b,A=t.arraystretch*S,k=.7*A,I=.3*A,N=0;function L(Oe){for(var Dt=0;Dt<Oe.length;++Dt)Dt>0&&(N+=.25),p.push({pos:N,isDashed:Oe[Dt]})}for(L(u[0]),a=0;a<t.body.length;++a){var P=t.body[a],M=k,F=I;h<P.length&&(h=P.length);var U=new Array(P.length);for(s=0;s<P.length;++s){var $=Yc(P[s],r);F<$.depth&&(F=$.depth),M<$.height&&(M=$.height),U[s]=$}var G=t.rowGaps[a],B=0;G&&(B=kf(G,r),B>0&&(B+=I,F<B&&(F=B),B=0)),t.addJot&&(F+=C),U.height=M,U.depth=F,N+=M,U.pos=N,N+=F+B,f[a]=U,L(u[a+1])}var Z=N/2+r.fontMetrics().axisHeight,z=t.cols||[],Y=[],W,Q,V=[];if(t.tags&&t.tags.some(Oe=>Oe))for(a=0;a<o;++a){var j=f[a],ee=j.pos-Z,te=t.tags[a],ne=void 0;te===!0?ne=Jn.makeSpan(["eqn-num"],[],r):te===!1?ne=Jn.makeSpan([],[],r):ne=Jn.makeSpan([],Op(te,r,!0),r),ne.depth=j.depth,ne.height=j.height,V.push({type:"elem",elem:ne,shift:ee})}for(s=0,Q=0;s<h||Q<z.length;++s,++Q){for(var se=z[Q]||{},ie=!0;se.type==="separator";){if(ie||(W=Jn.makeSpan(["arraycolsep"],[]),W.style.width=Xi(r.fontMetrics().doubleRuleSep),Y.push(W)),se.separator==="|"||se.separator===":"){var ge=se.separator==="|"?"solid":"dashed",ce=Jn.makeSpan(["vertical-separator"],[],r);ce.style.height=Xi(N),ce.style.borderRightWidth=Xi(m),ce.style.borderRightStyle=ge,ce.style.margin="0 "+Xi(-m/2);var be=N-Z;be&&(ce.style.verticalAlign=Xi(-be)),Y.push(ce)}else throw new Bi("Invalid separator type: "+se.separator);Q++,se=z[Q]||{},ie=!1}if(!(s>=h)){var ve=void 0;(s>0||t.hskipBeforeAndAfter)&&(ve=uu.deflt(se.pregap,_),ve!==0&&(W=Jn.makeSpan(["arraycolsep"],[]),W.style.width=Xi(ve),Y.push(W)));var De=[];for(a=0;a<o;++a){var ye=f[a],Ee=ye[s];if(Ee){var he=ye.pos-Z;Ee.depth=ye.depth,Ee.height=ye.height,De.push({type:"elem",elem:Ee,shift:he})}}De=Jn.makeVList({positionType:"individualShift",children:De},r),De=Jn.makeSpan(["col-align-"+(se.align||"c")],[De]),Y.push(De),(s<h-1||t.hskipBeforeAndAfter)&&(ve=uu.deflt(se.postgap,_),ve!==0&&(W=Jn.makeSpan(["arraycolsep"],[]),W.style.width=Xi(ve),Y.push(W)))}}if(f=Jn.makeSpan(["mtable"],Y),p.length>0){for(var we=Jn.makeLineSpan("hline",r,m),Ce=Jn.makeLineSpan("hdashline",r,m),Ie=[{type:"elem",elem:f,shift:0}];p.length>0;){var Le=p.pop(),Fe=Le.pos-Z;Le.isDashed?Ie.push({type:"elem",elem:Ce,shift:Fe}):Ie.push({type:"elem",elem:we,shift:Fe})}f=Jn.makeVList({positionType:"individualShift",children:Ie},r)}if(V.length===0)return Jn.makeSpan(["mord"],[f],r);var Ve=Jn.makeVList({positionType:"individualShift",children:V},r);return Ve=Jn.makeSpan(["tag"],[Ve],r),Jn.makeFragment([f,Ve])},$Ur={c:"center ",l:"left ",r:"right "},kA=function(t,r){for(var a=[],s=new xi.MathNode("mtd",[],["mtr-glue"]),o=new xi.MathNode("mtd",[],["mml-eqn-num"]),u=0;u<t.body.length;u++){for(var h=t.body[u],f=[],p=0;p<h.length;p++)f.push(new xi.MathNode("mtd",[Ph(h[p],r)]));t.tags&&t.tags[u]&&(f.unshift(s),f.push(s),t.leqno?f.unshift(o):f.push(o)),a.push(new xi.MathNode("mtr",f))}var m=new xi.MathNode("mtable",a),b=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",Xi(b));var _="",w="";if(t.cols&&t.cols.length>0){var S=t.cols,C="",A=!1,k=0,I=S.length;S[0].type==="separator"&&(_+="top ",k=1),S[S.length-1].type==="separator"&&(_+="bottom ",I-=1);for(var N=k;N<I;N++)S[N].type==="align"?(w+=$Ur[S[N].align],A&&(C+="none "),A=!0):S[N].type==="separator"&&A&&(C+=S[N].separator==="|"?"solid ":"dashed ",A=!1);m.setAttribute("columnalign",w.trim()),/[sd]/.test(C)&&m.setAttribute("columnlines",C.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],P="",M=1;M<L.length;M++)P+=M%2?"0em ":"1em ";m.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var F="",U=t.hLinesBeforeRow;_+=U[0].length>0?"left ":"",_+=U[U.length-1].length>0?"right ":"";for(var $=1;$<U.length-1;$++)F+=U[$].length===0?"none ":U[$][0]?"dashed ":"solid ";return/[sd]/.test(F)&&m.setAttribute("rowlines",F.trim()),_!==""&&(m=new xi.MathNode("menclose",[m]),m.setAttribute("notation",_.trim())),t.arraystretch&&t.arraystretch<1&&(m=new xi.MathNode("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},V7n=function(t,r){t.envName.indexOf("ed")===-1&&J5e(t);var a=[],s=t.envName.indexOf("at")>-1?"alignat":"align",o=t.envName==="split",u=x9(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:dft(t.envName),emptySingleRow:!0,colSeparationType:s,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),h,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",b=0;b<r[0].body.length;b++){var _=El(r[0].body[b],"textord");m+=_.text}h=Number(m),f=h*2}var w=!f;u.body.forEach(function(k){for(var I=1;I<k.length;I+=2){var N=El(k[I],"styling"),L=El(N.body[0],"ordgroup");L.body.unshift(p)}if(w)f<k.length&&(f=k.length);else{var P=k.length/2;if(h<P)throw new Bi("Too many math in a row: "+("expected "+h+", but got "+P),k[0])}});for(var S=0;S<f;++S){var C="r",A=0;S%2===1?C="l":S>0&&w&&(A=1),a[S]={type:"align",align:C,pregap:A,postgap:0}}return u.colSeparationType=w?"align":"alignat",u};CA({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=X5e(t[0]),a=r?[t[0]]:El(t[0],"ordgroup").body,s=a.map(function(u){var h=oft(u),f=h.text;if("lcr".indexOf(f)!==-1)return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new Bi("Unknown column alignment: "+f,u)}),o={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return x9(e.parser,o,fft(e.envName))},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var s=e.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),r=s.fetch().text,"lcr".indexOf(r)===-1)throw new Bi("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),a.cols=[{type:"align",align:r}]}}var o=x9(e.parser,a,fft(e.envName)),u=Math.max(0,...o.body.map(h=>h.length));return o.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=x9(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=X5e(t[0]),a=r?[t[0]]:El(t[0],"ordgroup").body,s=a.map(function(u){var h=oft(u),f=h.text;if("lc".indexOf(f)!==-1)return{type:"align",align:f};throw new Bi("Unknown column alignment: "+f,u)});if(s.length>1)throw new Bi("{subarray} can contain only one column");var o={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=x9(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Bi("{subarray} can contain only one column");return o},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=x9(e.parser,t,fft(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:V7n,htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&J5e(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:dft(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return x9(e.parser,t,"display")},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:V7n,htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){J5e(e);var t={autoTag:dft(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return x9(e.parser,t,"display")},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["CD"],props:{numArgs:0},handler(e){return J5e(e),TUr(e.parser)},htmlBuilder:AA,mathmlBuilder:kA});ft("\\nonumber","\\gdef\\@eqnsw{0}");ft("\\notag","\\nonumber");pa({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Bi(e.funcName+" valid only within array environment")}});var o0n=q7n;pa({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];if(s.type!=="ordgroup")throw new Bi("Invalid environment name",s);for(var o="",u=0;u<s.body.length;++u)o+=El(s.body[u],"textord").text;if(a==="\\begin"){if(!o0n.hasOwnProperty(o))throw new Bi("No such environment: "+o,s);var h=o0n[o],{args:f,optArgs:p}=r.parseArguments("\\begin{"+o+"}",h),m={mode:r.mode,envName:o,parser:r},b=h.handler(m,f,p);r.expect("\\end",!1);var _=r.nextToken,w=El(r.parseFunction(),"environment");if(w.name!==o)throw new Bi("Mismatch: \\begin{"+o+"} matched by \\end{"+w.name+"}",_);return b}return{type:"environment",mode:r.mode,name:o,nameGroup:s}}});var Y7n=(e,t)=>{var r=e.font,a=t.withFont(r);return Yc(e.body,a)},j7n=(e,t)=>{var r=e.font,a=t.withFont(r);return Ph(e.body,a)},l0n={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};pa({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=PSe(t[0]),o=a;return o in l0n&&(o=l0n[o]),{type:"font",mode:r.mode,font:o.slice(1),body:s}},htmlBuilder:Y7n,mathmlBuilder:j7n});pa({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],s=uu.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:Q5e(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:s}}});pa({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:s}=e,{mode:o}=r,u=r.parseExpression(!0,s),h="math"+a.slice(1);return{type:"font",mode:o,font:h,body:{type:"ordgroup",mode:r.mode,body:u}}},htmlBuilder:Y7n,mathmlBuilder:j7n});var W7n=(e,t)=>{var r=t;return e==="display"?r=r.id>=Zs.SCRIPT.id?r.text():Zs.DISPLAY:e==="text"&&r.size===Zs.DISPLAY.size?r=Zs.TEXT:e==="script"?r=Zs.SCRIPT:e==="scriptscript"&&(r=Zs.SCRIPTSCRIPT),r},pft=(e,t)=>{var r=W7n(e.size,t.style),a=r.fracNum(),s=r.fracDen(),o;o=t.havingStyle(a);var u=Yc(e.numer,o,t);if(e.continued){var h=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;u.height=u.height<h?h:u.height,u.depth=u.depth<f?f:u.depth}o=t.havingStyle(s);var p=Yc(e.denom,o,t),m,b,_;e.hasBarLine?(e.barSize?(b=kf(e.barSize,t),m=Jn.makeLineSpan("frac-line",t,b)):m=Jn.makeLineSpan("frac-line",t),b=m.height,_=m.height):(m=null,b=0,_=t.fontMetrics().defaultRuleThickness);var w,S,C;r.size===Zs.DISPLAY.size||e.size==="display"?(w=t.fontMetrics().num1,b>0?S=3*_:S=7*_,C=t.fontMetrics().denom1):(b>0?(w=t.fontMetrics().num2,S=_):(w=t.fontMetrics().num3,S=3*_),C=t.fontMetrics().denom2);var A;if(m){var I=t.fontMetrics().axisHeight;w-u.depth-(I+.5*b)<S&&(w+=S-(w-u.depth-(I+.5*b))),I-.5*b-(p.height-C)<S&&(C+=S-(I-.5*b-(p.height-C)));var N=-(I-.5*b);A=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:C},{type:"elem",elem:m,shift:N},{type:"elem",elem:u,shift:-w}]},t)}else{var k=w-u.depth-(p.height-C);k<S&&(w+=.5*(S-k),C+=.5*(S-k)),A=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:C},{type:"elem",elem:u,shift:-w}]},t)}o=t.havingStyle(r),A.height*=o.sizeMultiplier/t.sizeMultiplier,A.depth*=o.sizeMultiplier/t.sizeMultiplier;var L;r.size===Zs.DISPLAY.size?L=t.fontMetrics().delim1:r.size===Zs.SCRIPTSCRIPT.size?L=t.havingStyle(Zs.SCRIPT).fontMetrics().delim2:L=t.fontMetrics().delim2;var P,M;return e.leftDelim==null?P=Qse(t,["mopen"]):P=F7.customSizedDelim(e.leftDelim,L,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?M=Jn.makeSpan([]):e.rightDelim==null?M=Qse(t,["mclose"]):M=F7.customSizedDelim(e.rightDelim,L,!0,t.havingStyle(r),e.mode,["mclose"]),Jn.makeSpan(["mord"].concat(o.sizingClasses(t)),[P,Jn.makeSpan(["mfrac"],[A]),M],t)},gft=(e,t)=>{var r=new xi.MathNode("mfrac",[Ph(e.numer,t),Ph(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=kf(e.barSize,t);r.setAttribute("linethickness",Xi(a))}var s=W7n(e.size,t.style);if(s.size!==t.style.size){r=new xi.MathNode("mstyle",[r]);var o=s.size===Zs.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",o),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var u=[];if(e.leftDelim!=null){var h=new xi.MathNode("mo",[new xi.TextNode(e.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),u.push(h)}if(u.push(r),e.rightDelim!=null){var f=new xi.MathNode("mo",[new xi.TextNode(e.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),u.push(f)}return aft(u)}return r};pa({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1],u,h=null,f=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,h="(",f=")";break;case"\\\\bracefrac":u=!1,h="\\{",f="\\}";break;case"\\\\brackfrac":u=!1,h="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:s,denom:o,hasBarLine:u,leftDelim:h,rightDelim:f,size:p,barSize:null}},htmlBuilder:pft,mathmlBuilder:gft});pa({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:s,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});pa({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,s;switch(r){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:s,token:a}}});var c0n=["display","text","script","scriptscript"],u0n=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};pa({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],s=t[5],o=PSe(t[0]),u=o.type==="atom"&&o.family==="open"?u0n(o.text):null,h=PSe(t[1]),f=h.type==="atom"&&h.family==="close"?u0n(h.text):null,p=El(t[2],"size"),m,b=null;p.isBlank?m=!0:(b=p.value,m=b.number>0);var _="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var S=El(w.body[0],"textord");_=c0n[Number(S.text)]}}else w=El(w,"textord"),_=c0n[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:m,barSize:b,leftDelim:u,rightDelim:f,size:_}},htmlBuilder:pft,mathmlBuilder:gft});pa({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:s}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:El(t[0],"size").value,token:s}}});pa({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=m$r(El(t[1],"infix").size),u=t[2],h=o.number>0;return{type:"genfrac",mode:r.mode,numer:s,denom:u,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:pft,mathmlBuilder:gft});var K7n=(e,t)=>{var r=t.style,a,s;e.type==="supsub"?(a=e.sup?Yc(e.sup,t.havingStyle(r.sup()),t):Yc(e.sub,t.havingStyle(r.sub()),t),s=El(e.base,"horizBrace")):s=El(e,"horizBrace");var o=Yc(s.base,t.havingBaseStyle(Zs.DISPLAY)),u=Z7.svgSpan(s,t),h;if(s.isOver?(h=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:u}]},t),h.children[0].children[0].children[1].classes.push("svg-align")):(h=Jn.makeVList({positionType:"bottom",positionData:o.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:o}]},t),h.children[0].children[0].children[0].classes.push("svg-align")),a){var f=Jn.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t);s.isOver?h=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:a}]},t):h=Jn.makeVList({positionType:"bottom",positionData:f.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return Jn.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t)},UUr=(e,t)=>{var r=Z7.mathMLnode(e.label);return new xi.MathNode(e.isOver?"mover":"munder",[Ph(e.base,t),r])};pa({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:K7n,mathmlBuilder:UUr});pa({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],s=El(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:r.mode,href:s,body:X0(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Op(e.body,t,!1);return Jn.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=qO(e.body,t);return r instanceof Iw||(r=new Iw("mrow",[r])),r.setAttribute("href",e.href),r}});pa({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=El(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var s=[],o=0;o<a.length;o++){var u=a[o];u==="~"&&(u="\\textasciitilde"),s.push({type:"textord",mode:"text",text:u})}var h={type:"text",mode:r.mode,font:"\\texttt",body:s};return{type:"href",mode:r.mode,href:a,body:X0(h)}}});pa({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:X0(t[0])}},htmlBuilder(e,t){var r=Op(e.body,t,!1);return Jn.makeFragment(r)},mathmlBuilder(e,t){return new xi.MathNode("mrow",o_(e.body,t))}});pa({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,token:s}=e,o=El(t[0],"raw").string,u=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,f={};switch(a){case"\\htmlClass":f.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":f.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":f.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var p=o.split(","),m=0;m<p.length;m++){var b=p[m],_=b.indexOf("=");if(_<0)throw new Bi("\\htmlData key/value '"+b+"' missing equals sign");var w=b.slice(0,_),S=b.slice(_+1);f["data-"+w.trim()]=S}h={command:"\\htmlData",attributes:f};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(h)?{type:"html",mode:r.mode,attributes:f,body:X0(u)}:r.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=Op(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var s=Jn.makeSpan(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&s.setAttribute(o,e.attributes[o]);return s},mathmlBuilder:(e,t)=>qO(e.body,t)});pa({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:X0(t[0]),mathml:X0(t[1])}},htmlBuilder:(e,t)=>{var r=Op(e.html,t,!1);return Jn.makeFragment(r)},mathmlBuilder:(e,t)=>qO(e.mathml,t)});var VXe=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Bi("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!p7n(a))throw new Bi("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};pa({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,s={number:0,unit:"em"},o={number:.9,unit:"em"},u={number:0,unit:"em"},h="";if(r[0])for(var f=El(r[0],"raw").string,p=f.split(","),m=0;m<p.length;m++){var b=p[m].split("=");if(b.length===2){var _=b[1].trim();switch(b[0].trim()){case"alt":h=_;break;case"width":s=VXe(_);break;case"height":o=VXe(_);break;case"totalheight":u=VXe(_);break;default:throw new Bi("Invalid key: '"+b[0]+"' in \\includegraphics.")}}}var w=El(t[0],"url").url;return h===""&&(h=w,h=h.replace(/^.*[\\/]/,""),h=h.substring(0,h.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:h,width:s,height:o,totalheight:u,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=kf(e.height,t),a=0;e.totalheight.number>0&&(a=kf(e.totalheight,t)-r);var s=0;e.width.number>0&&(s=kf(e.width,t));var o={height:Xi(r+a)};s>0&&(o.width=Xi(s)),a>0&&(o.verticalAlign=Xi(-a));var u=new U$r(e.src,e.alt,o);return u.height=r,u.depth=a,u},mathmlBuilder:(e,t)=>{var r=new xi.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=kf(e.height,t),s=0;if(e.totalheight.number>0&&(s=kf(e.totalheight,t)-a,r.setAttribute("valign",Xi(-s))),r.setAttribute("height",Xi(a+s)),e.width.number>0){var o=kf(e.width,t);r.setAttribute("width",Xi(o))}return r.setAttribute("src",e.src),r}});pa({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=El(t[0],"size");if(r.settings.strict){var o=a[1]==="m",u=s.value.unit==="mu";o?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+s.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:s.value}},htmlBuilder(e,t){return Jn.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=kf(e.dimension,t);return new xi.SpaceNode(r)}});pa({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:s}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Jn.makeSpan([],[Yc(e.body,t)]),r=Jn.makeSpan(["inner"],[r],t)):r=Jn.makeSpan(["inner"],[Yc(e.body,t)]);var a=Jn.makeSpan(["fix"],[]),s=Jn.makeSpan([e.alignment],[r,a],t),o=Jn.makeSpan(["strut"]);return o.style.height=Xi(s.height+s.depth),s.depth&&(o.style.verticalAlign=Xi(-s.depth)),s.children.unshift(o),s=Jn.makeSpan(["thinbox"],[s],t),Jn.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var r=new xi.MathNode("mpadded",[Ph(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});pa({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,s=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",u=a.parseExpression(!1,o);return a.expect(o),a.switchMode(s),{type:"styling",mode:a.mode,style:"text",body:u}}});pa({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Bi("Mismatched "+e.funcName)}});var h0n=(e,t)=>{switch(t.style.size){case Zs.DISPLAY.size:return e.display;case Zs.TEXT.size:return e.text;case Zs.SCRIPT.size:return e.script;case Zs.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};pa({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:X0(t[0]),text:X0(t[1]),script:X0(t[2]),scriptscript:X0(t[3])}},htmlBuilder:(e,t)=>{var r=h0n(e,t),a=Op(r,t,!1);return Jn.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=h0n(e,t);return qO(r,t)}});var X7n=(e,t,r,a,s,o,u)=>{e=Jn.makeSpan([],[e]);var h=r&&uu.isCharacterBox(r),f,p;if(t){var m=Yc(t,a.havingStyle(s.sup()),a);p={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var b=Yc(r,a.havingStyle(s.sub()),a);f={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var _;if(p&&f){var w=a.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+u;_=Jn.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Xi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Xi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(f){var S=e.height-u;_=Jn.makeVList({positionType:"top",positionData:S,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Xi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e}]},a)}else if(p){var C=e.depth+u;_=Jn.makeVList({positionType:"bottom",positionData:C,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Xi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var A=[_];if(f&&o!==0&&!h){var k=Jn.makeSpan(["mspace"],[],a);k.style.marginRight=Xi(o),A.unshift(k)}return Jn.makeSpan(["mop","op-limits"],A,a)},Q7n=["\\smallint"],xW=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=El(e.base,"op"),s=!0):o=El(e,"op");var u=t.style,h=!1;u.size===Zs.DISPLAY.size&&o.symbol&&!Q7n.includes(o.name)&&(h=!0);var f;if(o.symbol){var p=h?"Size2-Regular":"Size1-Regular",m="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(m=o.name.slice(1),o.name=m==="oiint"?"\\iint":"\\iiint"),f=Jn.makeSymbol(o.name,p,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),m.length>0){var b=f.italic,_=Jn.staticSvg(m+"Size"+(h?"2":"1"),t);f=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:_,shift:h?.08:0}]},t),o.name="\\"+m,f.classes.unshift("mop"),f.italic=b}}else if(o.body){var w=Op(o.body,t,!0);w.length===1&&w[0]instanceof mS?(f=w[0],f.classes[0]="mop"):f=Jn.makeSpan(["mop"],w,t)}else{for(var S=[],C=1;C<o.name.length;C++)S.push(Jn.mathsym(o.name[C],o.mode,t));f=Jn.makeSpan(["mop"],S,t)}var A=0,k=0;return(f instanceof mS||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(A=(f.height-f.depth)/2-t.fontMetrics().axisHeight,k=f.italic),s?X7n(f,r,a,t,u,k,A):(A&&(f.style.position="relative",f.style.top=Xi(A)),f)},Ule=(e,t)=>{var r;if(e.symbol)r=new Iw("mo",[bS(e.name,e.mode)]),Q7n.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Iw("mo",o_(e.body,t));else{r=new Iw("mi",[new jC(e.name.slice(1))]);var a=new Iw("mo",[bS("⁡","text")]);e.parentIsSupSub?r=new Iw("mrow",[r,a]):r=T7n([r,a])}return r},zUr={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};pa({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=a;return s.length===1&&(s=zUr[s]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:X0(a)}},htmlBuilder:xW,mathmlBuilder:Ule});var GUr={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};pa({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return a.length===1&&(a=GUr[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:xW,mathmlBuilder:Ule});var Z7n=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=El(e.base,"operatorname"),s=!0):o=El(e,"operatorname");var u;if(o.body.length>0){for(var h=o.body.map(b=>{var _=b.text;return typeof _=="string"?{type:"textord",mode:b.mode,text:_}:b}),f=Op(h,t.withFont("mathrm"),!0),p=0;p<f.length;p++){var m=f[p];m instanceof mS&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}u=Jn.makeSpan(["mop"],f,t)}else u=Jn.makeSpan(["mop"],[],t);return s?X7n(u,r,a,t,t.style,0,0):u},qUr=(e,t)=>{for(var r=o_(e.body,t.withFont("mathrm")),a=!0,s=0;s<r.length;s++){var o=r[s];if(!(o instanceof xi.SpaceNode))if(o instanceof xi.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var u=o.children[0];o.children.length===1&&u instanceof xi.TextNode?u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var h=r.map(m=>m.toText()).join("");r=[new xi.TextNode(h)]}var f=new xi.MathNode("mi",r);f.setAttribute("mathvariant","normal");var p=new xi.MathNode("mo",[bS("⁡","text")]);return e.parentIsSupSub?new xi.MathNode("mrow",[f,p]):xi.newDocumentFragment([f,p])};pa({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"operatorname",mode:r.mode,body:X0(s),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Z7n,mathmlBuilder:qUr});ft("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");m$({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Jn.makeFragment(Op(e.body,t,!1)):Jn.makeSpan(["mord"],Op(e.body,t,!0),t)},mathmlBuilder(e,t){return qO(e.body,t,!0)}});pa({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=Yc(e.body,t.havingCrampedStyle()),a=Jn.makeLineSpan("overline-line",t),s=t.fontMetrics().defaultRuleThickness,o=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:a},{type:"kern",size:s}]},t);return Jn.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[new xi.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new xi.MathNode("mover",[Ph(e.body,t),r]);return a.setAttribute("accent","true"),a}});pa({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:X0(a)}},htmlBuilder:(e,t)=>{var r=Op(e.body,t.withPhantom(),!1);return Jn.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=o_(e.body,t);return new xi.MathNode("mphantom",r)}});pa({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Jn.makeSpan([],[Yc(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a<r.children.length;a++)r.children[a].height=0,r.children[a].depth=0;return r=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Jn.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=o_(X0(e.body),t),a=new xi.MathNode("mphantom",r),s=new xi.MathNode("mpadded",[a]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}});pa({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Jn.makeSpan(["inner"],[Yc(e.body,t.withPhantom())]),a=Jn.makeSpan(["fix"],[]);return Jn.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=o_(X0(e.body),t),a=new xi.MathNode("mphantom",r),s=new xi.MathNode("mpadded",[a]);return s.setAttribute("width","0px"),s}});pa({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=El(t[0],"size").value,s=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:s}},htmlBuilder(e,t){var r=Yc(e.body,t),a=kf(e.dy,t);return Jn.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new xi.MathNode("mpadded",[Ph(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});pa({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});pa({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,s=r[0],o=El(t[0],"size"),u=El(t[1],"size");return{type:"rule",mode:a.mode,shift:s&&El(s,"size").value,width:o.value,height:u.value}},htmlBuilder(e,t){var r=Jn.makeSpan(["mord","rule"],[],t),a=kf(e.width,t),s=kf(e.height,t),o=e.shift?kf(e.shift,t):0;return r.style.borderRightWidth=Xi(a),r.style.borderTopWidth=Xi(s),r.style.bottom=Xi(o),r.width=a,r.height=s+o,r.depth=-o,r.maxFontSize=s*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=kf(e.width,t),a=kf(e.height,t),s=e.shift?kf(e.shift,t):0,o=t.color&&t.getColor()||"black",u=new xi.MathNode("mspace");u.setAttribute("mathbackground",o),u.setAttribute("width",Xi(r)),u.setAttribute("height",Xi(a));var h=new xi.MathNode("mpadded",[u]);return s>=0?h.setAttribute("height",Xi(s)):(h.setAttribute("height",Xi(s)),h.setAttribute("depth",Xi(-s))),h.setAttribute("voffset",Xi(s)),h}});function J7n(e,t,r){for(var a=Op(e,t,!1),s=t.sizeMultiplier/r.sizeMultiplier,o=0;o<a.length;o++){var u=a[o].classes.indexOf("sizing");u<0?Array.prototype.push.apply(a[o].classes,t.sizingClasses(r)):a[o].classes[u+1]==="reset-size"+t.size&&(a[o].classes[u+1]="reset-size"+r.size),a[o].height*=s,a[o].depth*=s}return Jn.makeFragment(a)}var d0n=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],HUr=(e,t)=>{var r=t.havingSize(e.size);return J7n(e.body,r,t)};pa({type:"sizing",names:d0n,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!1,r);return{type:"sizing",mode:s.mode,size:d0n.indexOf(a)+1,body:o}},htmlBuilder:HUr,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=o_(e.body,r),s=new xi.MathNode("mstyle",a);return s.setAttribute("mathsize",Xi(r.sizeMultiplier)),s}});pa({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,s=!1,o=!1,u=r[0]&&El(r[0],"ordgroup");if(u)for(var h="",f=0;f<u.body.length;++f){var p=u.body[f];if(h=p.text,h==="t")s=!0;else if(h==="b")o=!0;else{s=!1,o=!1;break}}else s=!0,o=!0;var m=t[0];return{type:"smash",mode:a.mode,body:m,smashHeight:s,smashDepth:o}},htmlBuilder:(e,t)=>{var r=Jn.makeSpan([],[Yc(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var s=0;s<r.children.length;s++)r.children[s].depth=0;var o=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return Jn.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var r=new xi.MathNode("mpadded",[Ph(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});pa({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,s=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:s}},htmlBuilder(e,t){var r=Yc(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Jn.wrapFragment(r,t);var a=t.fontMetrics(),s=a.defaultRuleThickness,o=s;t.style.id<Zs.TEXT.id&&(o=t.fontMetrics().xHeight);var u=s+o/4,h=r.height+r.depth+u+s,{span:f,ruleWidth:p,advanceWidth:m}=F7.sqrtImage(h,t),b=f.height-p;b>r.height+r.depth+u&&(u=(u+b-r.height-r.depth)/2);var _=f.height-r.height-u-p;r.style.paddingLeft=Xi(m);var w=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+_)},{type:"elem",elem:f},{type:"kern",size:p}]},t);if(e.index){var S=t.havingStyle(Zs.SCRIPTSCRIPT),C=Yc(e.index,S,t),A=.6*(w.height-w.depth),k=Jn.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:C}]},t),I=Jn.makeSpan(["root"],[k]);return Jn.makeSpan(["mord","sqrt"],[I,w],t)}else return Jn.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new xi.MathNode("mroot",[Ph(r,t),Ph(a,t)]):new xi.MathNode("msqrt",[Ph(r,t)])}});var f0n={display:Zs.DISPLAY,text:Zs.TEXT,script:Zs.SCRIPT,scriptscript:Zs.SCRIPTSCRIPT};pa({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:s.mode,style:u,body:o}},htmlBuilder(e,t){var r=f0n[e.style],a=t.havingStyle(r).withFont("");return J7n(e.body,a,t)},mathmlBuilder(e,t){var r=f0n[e.style],a=t.havingStyle(r),s=o_(e.body,a),o=new xi.MathNode("mstyle",s),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=u[e.style];return o.setAttribute("scriptlevel",h[0]),o.setAttribute("displaystyle",h[1]),o}});var VUr=function(t,r){var a=t.base;if(a)if(a.type==="op"){var s=a.limits&&(r.style.size===Zs.DISPLAY.size||a.alwaysHandleSupSub);return s?xW:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Zs.DISPLAY.size||a.limits);return o?Z7n:null}else{if(a.type==="accent")return uu.isCharacterBox(a.base)?lft:null;if(a.type==="horizBrace"){var u=!t.sub;return u===a.isOver?K7n:null}else return null}else return null};m$({type:"supsub",htmlBuilder(e,t){var r=VUr(e,t);if(r)return r(e,t);var{base:a,sup:s,sub:o}=e,u=Yc(a,t),h,f,p=t.fontMetrics(),m=0,b=0,_=a&&uu.isCharacterBox(a);if(s){var w=t.havingStyle(t.style.sup());h=Yc(s,w,t),_||(m=u.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(o){var S=t.havingStyle(t.style.sub());f=Yc(o,S,t),_||(b=u.depth+S.fontMetrics().subDrop*S.sizeMultiplier/t.sizeMultiplier)}var C;t.style===Zs.DISPLAY?C=p.sup1:t.style.cramped?C=p.sup3:C=p.sup2;var A=t.sizeMultiplier,k=Xi(.5/p.ptPerEm/A),I=null;if(f){var N=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof mS||N)&&(I=Xi(-u.italic))}var L;if(h&&f){m=Math.max(m,C,h.depth+.25*p.xHeight),b=Math.max(b,p.sub2);var P=p.defaultRuleThickness,M=4*P;if(m-h.depth-(f.height-b)<M){b=M-(m-h.depth)+f.height;var F=.8*p.xHeight-(m-h.depth);F>0&&(m+=F,b-=F)}var U=[{type:"elem",elem:f,shift:b,marginRight:k,marginLeft:I},{type:"elem",elem:h,shift:-m,marginRight:k}];L=Jn.makeVList({positionType:"individualShift",children:U},t)}else if(f){b=Math.max(b,p.sub1,f.height-.8*p.xHeight);var $=[{type:"elem",elem:f,marginLeft:I,marginRight:k}];L=Jn.makeVList({positionType:"shift",positionData:b,children:$},t)}else if(h)m=Math.max(m,C,h.depth+.25*p.xHeight),L=Jn.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h,marginRight:k}]},t);else throw new Error("supsub must have either sup or sub.");var G=xst(u,"right")||"mord";return Jn.makeSpan([G],[u,Jn.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var r=!1,a,s;e.base&&e.base.type==="horizBrace"&&(s=!!e.sup,s===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Ph(e.base,t)];e.sub&&o.push(Ph(e.sub,t)),e.sup&&o.push(Ph(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===Zs.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===Zs.DISPLAY||p.limits)?u="munderover":u="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Zs.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Zs.DISPLAY)?u="munder":u="msub"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Zs.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Zs.DISPLAY)?u="mover":u="msup"}return new xi.MathNode(u,o)}});m$({type:"atom",htmlBuilder(e,t){return Jn.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[bS(e.text,e.mode)]);if(e.family==="bin"){var a=sft(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var eRn={mi:"italic",mn:"normal",mtext:"normal"};m$({type:"mathord",htmlBuilder(e,t){return Jn.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new xi.MathNode("mi",[bS(e.text,e.mode,t)]),a=sft(e,t)||"italic";return a!==eRn[r.type]&&r.setAttribute("mathvariant",a),r}});m$({type:"textord",htmlBuilder(e,t){return Jn.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=bS(e.text,e.mode,t),a=sft(e,t)||"normal",s;return e.mode==="text"?s=new xi.MathNode("mtext",[r]):/[0-9]/.test(e.text)?s=new xi.MathNode("mn",[r]):e.text==="\\prime"?s=new xi.MathNode("mo",[r]):s=new xi.MathNode("mi",[r]),a!==eRn[s.type]&&s.setAttribute("mathvariant",a),s}});var YXe={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},jXe={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};m$({type:"spacing",htmlBuilder(e,t){if(jXe.hasOwnProperty(e.text)){var r=jXe[e.text].className||"";if(e.mode==="text"){var a=Jn.makeOrd(e,t,"textord");return a.classes.push(r),a}else return Jn.makeSpan(["mspace",r],[Jn.mathsym(e.text,e.mode,t)],t)}else{if(YXe.hasOwnProperty(e.text))return Jn.makeSpan(["mspace",YXe[e.text]],[],t);throw new Bi('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(jXe.hasOwnProperty(e.text))r=new xi.MathNode("mtext",[new xi.TextNode(" ")]);else{if(YXe.hasOwnProperty(e.text))return new xi.MathNode("mspace");throw new Bi('Unknown type of space "'+e.text+'"')}return r}});var p0n=()=>{var e=new xi.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};m$({type:"tag",mathmlBuilder(e,t){var r=new xi.MathNode("mtable",[new xi.MathNode("mtr",[p0n(),new xi.MathNode("mtd",[qO(e.body,t)]),p0n(),new xi.MathNode("mtd",[qO(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var g0n={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},m0n={"\\textbf":"textbf","\\textmd":"textmd"},YUr={"\\textit":"textit","\\textup":"textup"},b0n=(e,t)=>{var r=e.font;if(r){if(g0n[r])return t.withTextFontFamily(g0n[r]);if(m0n[r])return t.withTextFontWeight(m0n[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(YUr[r])};pa({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"text",mode:r.mode,body:X0(s),font:a}},htmlBuilder(e,t){var r=b0n(e,t),a=Op(e.body,r,!0);return Jn.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=b0n(e,t);return qO(e.body,r)}});pa({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Yc(e.body,t),a=Jn.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,o=Jn.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:s},{type:"elem",elem:a},{type:"kern",size:3*s},{type:"elem",elem:r}]},t);return Jn.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[new xi.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new xi.MathNode("munder",[Ph(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});pa({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Yc(e.body,t),a=t.fontMetrics().axisHeight,s=.5*(r.height-a-(r.depth+a));return Jn.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new xi.MathNode("mpadded",[Ph(e.body,t)],["vcenter"])}});pa({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Bi("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=y0n(e),a=[],s=t.havingStyle(t.style.text()),o=0;o<r.length;o++){var u=r[o];u==="~"&&(u="\\textasciitilde"),a.push(Jn.makeSymbol(u,"Typewriter-Regular",e.mode,s,["mord","texttt"]))}return Jn.makeSpan(["mord","text"].concat(s.sizingClasses(t)),Jn.tryCombineChars(a),s)},mathmlBuilder(e,t){var r=new xi.TextNode(y0n(e)),a=new xi.MathNode("mtext",[r]);return a.setAttribute("mathvariant","monospace"),a}});var y0n=e=>e.body.replace(/ /g,e.star?"␣":" "),cO=x7n,tRn=`[ \r
	]`,jUr="\\\\[a-zA-Z@]+",WUr="\\\\[^\uD800-\uDFFF]",KUr="("+jUr+")"+tRn+"*",XUr=`\\\\(
|[ \r	]+
?)[ \r	]*`,Ast="[̀-ͯ]",QUr=new RegExp(Ast+"+$"),ZUr="("+tRn+"+)|"+(XUr+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(Ast+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ast+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+KUr)+("|"+WUr+")");let v0n=class{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(ZUr,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Y3("EOF",new Kx(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new Bi("Unexpected character: '"+t[r]+"'",new Y3(t[r],new Kx(this,r,r+1)));var s=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=t.indexOf(`
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Y3(s,new Kx(this,r,this.tokenRegex.lastIndex))}},JUr=class{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Bi("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,a){if(a===void 0&&(a=!1),a){for(var s=0;s<this.undefStack.length;s++)delete this.undefStack[s][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}};var ezr=H7n;ft("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ft("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ft("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ft("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ft("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ft("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ft("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var _0n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ft("\\char",function(e){var t=e.popToken(),r,a="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Bi("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=_0n[t.text],a==null||a>=r)throw new Bi("Invalid base-"+r+" digit "+t.text);for(var s;(s=_0n[e.future().text])!=null&&s<r;)a*=r,a+=s,e.popToken()}return"\\@char{"+a+"}"});var mft=(e,t,r,a)=>{var s=e.consumeArg().tokens;if(s.length!==1)throw new Bi("\\newcommand's first argument must be a macro name");var o=s[0].text,u=e.isDefined(o);if(u&&!t)throw new Bi("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!u&&!r)throw new Bi("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var h=0;if(s=e.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new Bi("Invalid number of arguments: "+f);h=parseInt(f),s=e.consumeArg().tokens}return u&&a||e.macros.set(o,{tokens:s,numArgs:h}),""};ft("\\newcommand",e=>mft(e,!1,!0,!1));ft("\\renewcommand",e=>mft(e,!0,!1,!1));ft("\\providecommand",e=>mft(e,!0,!0,!0));ft("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});ft("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});ft("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),cO[r],ed.math[r],ed.text[r]),""});ft("\\bgroup","{");ft("\\egroup","}");ft("~","\\nobreakspace");ft("\\lq","`");ft("\\rq","'");ft("\\aa","\\r a");ft("\\AA","\\r A");ft("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ft("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ft("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ft("ℬ","\\mathscr{B}");ft("ℰ","\\mathscr{E}");ft("ℱ","\\mathscr{F}");ft("ℋ","\\mathscr{H}");ft("ℐ","\\mathscr{I}");ft("ℒ","\\mathscr{L}");ft("ℳ","\\mathscr{M}");ft("ℛ","\\mathscr{R}");ft("ℭ","\\mathfrak{C}");ft("ℌ","\\mathfrak{H}");ft("ℨ","\\mathfrak{Z}");ft("\\Bbbk","\\Bbb{k}");ft("·","\\cdotp");ft("\\llap","\\mathllap{\\textrm{#1}}");ft("\\rlap","\\mathrlap{\\textrm{#1}}");ft("\\clap","\\mathclap{\\textrm{#1}}");ft("\\mathstrut","\\vphantom{(}");ft("\\underbar","\\underline{\\text{#1}}");ft("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ft("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ft("\\ne","\\neq");ft("≠","\\neq");ft("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ft("∉","\\notin");ft("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ft("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ft("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ft("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ft("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ft("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ft("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ft("⟂","\\perp");ft("‼","\\mathclose{!\\mkern-0.8mu!}");ft("∌","\\notni");ft("⌜","\\ulcorner");ft("⌝","\\urcorner");ft("⌞","\\llcorner");ft("⌟","\\lrcorner");ft("©","\\copyright");ft("®","\\textregistered");ft("️","\\textregistered");ft("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ft("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ft("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ft("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ft("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ft("⋮","\\vdots");ft("\\varGamma","\\mathit{\\Gamma}");ft("\\varDelta","\\mathit{\\Delta}");ft("\\varTheta","\\mathit{\\Theta}");ft("\\varLambda","\\mathit{\\Lambda}");ft("\\varXi","\\mathit{\\Xi}");ft("\\varPi","\\mathit{\\Pi}");ft("\\varSigma","\\mathit{\\Sigma}");ft("\\varUpsilon","\\mathit{\\Upsilon}");ft("\\varPhi","\\mathit{\\Phi}");ft("\\varPsi","\\mathit{\\Psi}");ft("\\varOmega","\\mathit{\\Omega}");ft("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ft("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ft("\\boxed","\\fbox{$\\displaystyle{#1}$}");ft("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ft("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ft("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ft("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ft("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var w0n={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ft("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in w0n?t=w0n[r]:(r.slice(0,4)==="\\not"||r in ed.math&&["bin","rel"].includes(ed.math[r].group))&&(t="\\dotsb"),t});var bft={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ft("\\dotso",function(e){var t=e.future().text;return t in bft?"\\ldots\\,":"\\ldots"});ft("\\dotsc",function(e){var t=e.future().text;return t in bft&&t!==","?"\\ldots\\,":"\\ldots"});ft("\\cdots",function(e){var t=e.future().text;return t in bft?"\\@cdots\\,":"\\@cdots"});ft("\\dotsb","\\cdots");ft("\\dotsm","\\cdots");ft("\\dotsi","\\!\\cdots");ft("\\dotsx","\\ldots\\,");ft("\\DOTSI","\\relax");ft("\\DOTSB","\\relax");ft("\\DOTSX","\\relax");ft("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ft("\\,","\\tmspace+{3mu}{.1667em}");ft("\\thinspace","\\,");ft("\\>","\\mskip{4mu}");ft("\\:","\\tmspace+{4mu}{.2222em}");ft("\\medspace","\\:");ft("\\;","\\tmspace+{5mu}{.2777em}");ft("\\thickspace","\\;");ft("\\!","\\tmspace-{3mu}{.1667em}");ft("\\negthinspace","\\!");ft("\\negmedspace","\\tmspace-{4mu}{.2222em}");ft("\\negthickspace","\\tmspace-{5mu}{.277em}");ft("\\enspace","\\kern.5em ");ft("\\enskip","\\hskip.5em\\relax");ft("\\quad","\\hskip1em\\relax");ft("\\qquad","\\hskip2em\\relax");ft("\\tag","\\@ifstar\\tag@literal\\tag@paren");ft("\\tag@paren","\\tag@literal{({#1})}");ft("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Bi("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ft("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ft("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ft("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ft("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ft("\\newline","\\\\\\relax");ft("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nRn=Xi(YC["Main-Regular"][84][1]-.7*YC["Main-Regular"][65][1]);ft("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nRn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ft("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nRn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ft("\\hspace","\\@ifstar\\@hspacer\\@hspace");ft("\\@hspace","\\hskip #1\\relax");ft("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ft("\\ordinarycolon",":");ft("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ft("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ft("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ft("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ft("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ft("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ft("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ft("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ft("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ft("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ft("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ft("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ft("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ft("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ft("∷","\\dblcolon");ft("∹","\\eqcolon");ft("≔","\\coloneqq");ft("≕","\\eqqcolon");ft("⩴","\\Coloneqq");ft("\\ratio","\\vcentcolon");ft("\\coloncolon","\\dblcolon");ft("\\colonequals","\\coloneqq");ft("\\coloncolonequals","\\Coloneqq");ft("\\equalscolon","\\eqqcolon");ft("\\equalscoloncolon","\\Eqqcolon");ft("\\colonminus","\\coloneq");ft("\\coloncolonminus","\\Coloneq");ft("\\minuscolon","\\eqcolon");ft("\\minuscoloncolon","\\Eqcolon");ft("\\coloncolonapprox","\\Colonapprox");ft("\\coloncolonsim","\\Colonsim");ft("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ft("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ft("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ft("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ft("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ft("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ft("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ft("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ft("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ft("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ft("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ft("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ft("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ft("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ft("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ft("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ft("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ft("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ft("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ft("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ft("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ft("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ft("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ft("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ft("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ft("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ft("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ft("\\imath","\\html@mathml{\\@imath}{ı}");ft("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ft("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ft("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ft("⟦","\\llbracket");ft("⟧","\\rrbracket");ft("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ft("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ft("⦃","\\lBrace");ft("⦄","\\rBrace");ft("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ft("⦵","\\minuso");ft("\\darr","\\downarrow");ft("\\dArr","\\Downarrow");ft("\\Darr","\\Downarrow");ft("\\lang","\\langle");ft("\\rang","\\rangle");ft("\\uarr","\\uparrow");ft("\\uArr","\\Uparrow");ft("\\Uarr","\\Uparrow");ft("\\N","\\mathbb{N}");ft("\\R","\\mathbb{R}");ft("\\Z","\\mathbb{Z}");ft("\\alef","\\aleph");ft("\\alefsym","\\aleph");ft("\\Alpha","\\mathrm{A}");ft("\\Beta","\\mathrm{B}");ft("\\bull","\\bullet");ft("\\Chi","\\mathrm{X}");ft("\\clubs","\\clubsuit");ft("\\cnums","\\mathbb{C}");ft("\\Complex","\\mathbb{C}");ft("\\Dagger","\\ddagger");ft("\\diamonds","\\diamondsuit");ft("\\empty","\\emptyset");ft("\\Epsilon","\\mathrm{E}");ft("\\Eta","\\mathrm{H}");ft("\\exist","\\exists");ft("\\harr","\\leftrightarrow");ft("\\hArr","\\Leftrightarrow");ft("\\Harr","\\Leftrightarrow");ft("\\hearts","\\heartsuit");ft("\\image","\\Im");ft("\\infin","\\infty");ft("\\Iota","\\mathrm{I}");ft("\\isin","\\in");ft("\\Kappa","\\mathrm{K}");ft("\\larr","\\leftarrow");ft("\\lArr","\\Leftarrow");ft("\\Larr","\\Leftarrow");ft("\\lrarr","\\leftrightarrow");ft("\\lrArr","\\Leftrightarrow");ft("\\Lrarr","\\Leftrightarrow");ft("\\Mu","\\mathrm{M}");ft("\\natnums","\\mathbb{N}");ft("\\Nu","\\mathrm{N}");ft("\\Omicron","\\mathrm{O}");ft("\\plusmn","\\pm");ft("\\rarr","\\rightarrow");ft("\\rArr","\\Rightarrow");ft("\\Rarr","\\Rightarrow");ft("\\real","\\Re");ft("\\reals","\\mathbb{R}");ft("\\Reals","\\mathbb{R}");ft("\\Rho","\\mathrm{P}");ft("\\sdot","\\cdot");ft("\\sect","\\S");ft("\\spades","\\spadesuit");ft("\\sub","\\subset");ft("\\sube","\\subseteq");ft("\\supe","\\supseteq");ft("\\Tau","\\mathrm{T}");ft("\\thetasym","\\vartheta");ft("\\weierp","\\wp");ft("\\Zeta","\\mathrm{Z}");ft("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ft("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ft("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ft("\\bra","\\mathinner{\\langle{#1}|}");ft("\\ket","\\mathinner{|{#1}\\rangle}");ft("\\braket","\\mathinner{\\langle{#1}\\rangle}");ft("\\Bra","\\left\\langle#1\\right|");ft("\\Ket","\\left|#1\\right\\rangle");var rRn=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.consumeArg().tokens,u=t.macros.get("|"),h=t.macros.get("\\|");t.macros.beginGroup();var f=b=>_=>{e&&(_.macros.set("|",u),s.length&&_.macros.set("\\|",h));var w=b;if(!b&&s.length){var S=_.future();S.text==="|"&&(_.popToken(),w=!0)}return{tokens:w?s:a,numArgs:0}};t.macros.set("|",f(!1)),s.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,m=t.expandTokens([...o,...p,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};ft("\\bra@ket",rRn(!1));ft("\\bra@set",rRn(!0));ft("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ft("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ft("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ft("\\angln","{\\angl n}");ft("\\blue","\\textcolor{##6495ed}{#1}");ft("\\orange","\\textcolor{##ffa500}{#1}");ft("\\pink","\\textcolor{##ff00af}{#1}");ft("\\red","\\textcolor{##df0030}{#1}");ft("\\green","\\textcolor{##28ae7b}{#1}");ft("\\gray","\\textcolor{gray}{#1}");ft("\\purple","\\textcolor{##9d38bd}{#1}");ft("\\blueA","\\textcolor{##ccfaff}{#1}");ft("\\blueB","\\textcolor{##80f6ff}{#1}");ft("\\blueC","\\textcolor{##63d9ea}{#1}");ft("\\blueD","\\textcolor{##11accd}{#1}");ft("\\blueE","\\textcolor{##0c7f99}{#1}");ft("\\tealA","\\textcolor{##94fff5}{#1}");ft("\\tealB","\\textcolor{##26edd5}{#1}");ft("\\tealC","\\textcolor{##01d1c1}{#1}");ft("\\tealD","\\textcolor{##01a995}{#1}");ft("\\tealE","\\textcolor{##208170}{#1}");ft("\\greenA","\\textcolor{##b6ffb0}{#1}");ft("\\greenB","\\textcolor{##8af281}{#1}");ft("\\greenC","\\textcolor{##74cf70}{#1}");ft("\\greenD","\\textcolor{##1fab54}{#1}");ft("\\greenE","\\textcolor{##0d923f}{#1}");ft("\\goldA","\\textcolor{##ffd0a9}{#1}");ft("\\goldB","\\textcolor{##ffbb71}{#1}");ft("\\goldC","\\textcolor{##ff9c39}{#1}");ft("\\goldD","\\textcolor{##e07d10}{#1}");ft("\\goldE","\\textcolor{##a75a05}{#1}");ft("\\redA","\\textcolor{##fca9a9}{#1}");ft("\\redB","\\textcolor{##ff8482}{#1}");ft("\\redC","\\textcolor{##f9685d}{#1}");ft("\\redD","\\textcolor{##e84d39}{#1}");ft("\\redE","\\textcolor{##bc2612}{#1}");ft("\\maroonA","\\textcolor{##ffbde0}{#1}");ft("\\maroonB","\\textcolor{##ff92c6}{#1}");ft("\\maroonC","\\textcolor{##ed5fa6}{#1}");ft("\\maroonD","\\textcolor{##ca337c}{#1}");ft("\\maroonE","\\textcolor{##9e034e}{#1}");ft("\\purpleA","\\textcolor{##ddd7ff}{#1}");ft("\\purpleB","\\textcolor{##c6b9fc}{#1}");ft("\\purpleC","\\textcolor{##aa87ff}{#1}");ft("\\purpleD","\\textcolor{##7854ab}{#1}");ft("\\purpleE","\\textcolor{##543b78}{#1}");ft("\\mintA","\\textcolor{##f5f9e8}{#1}");ft("\\mintB","\\textcolor{##edf2df}{#1}");ft("\\mintC","\\textcolor{##e0e5cc}{#1}");ft("\\grayA","\\textcolor{##f6f7f7}{#1}");ft("\\grayB","\\textcolor{##f0f1f2}{#1}");ft("\\grayC","\\textcolor{##e3e5e6}{#1}");ft("\\grayD","\\textcolor{##d6d8da}{#1}");ft("\\grayE","\\textcolor{##babec2}{#1}");ft("\\grayF","\\textcolor{##888d93}{#1}");ft("\\grayG","\\textcolor{##626569}{#1}");ft("\\grayH","\\textcolor{##3b3e40}{#1}");ft("\\grayI","\\textcolor{##21242c}{#1}");ft("\\kaBlue","\\textcolor{##314453}{#1}");ft("\\kaGreen","\\textcolor{##71B307}{#1}");var iRn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let tzr=class{constructor(t,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new JUr(ezr,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new v0n(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,a,s;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:s,end:a}=this.consumeArg(["]"])}else({tokens:s,start:r,end:a}=this.consumeArg());return this.pushToken(new Y3("EOF",a.loc)),this.pushTokens(s),new Y3("",Kx.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var s=this.future(),o,u=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++u;else if(o.text==="}"){if(--u,u===-1)throw new Bi("Extra }",o)}else if(o.text==="EOF")throw new Bi("Unexpected end of input in a macro argument, expected '"+(t&&a?t[h]:"}")+"'",o);if(t&&a)if((u===0||u===1&&t[h]==="{")&&o.text===t[h]){if(++h,h===t.length){r.splice(-h,h);break}}else h=0}while(u!==0||a);return s.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:s,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Bi("The length of delimiters doesn't match the number of args!");for(var a=r[0],s=0;s<a.length;s++){var o=this.popToken();if(a[s]!==o.text)throw new Bi("Use of the macro doesn't match its definition",o)}}for(var u=[],h=0;h<t;h++)u.push(this.consumeArg(r&&r[h+1]).tokens);return u}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Bi("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,s=r.noexpand?null:this._getExpansion(a);if(s==null||t&&s.unexpandable){if(t&&s==null&&a[0]==="\\"&&!this.isDefined(a))throw new Bi("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=s.tokens,u=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var f=o[h];if(f.text==="#"){if(h===0)throw new Bi("Incomplete placeholder at end of macro body",f);if(f=o[--h],f.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(f.text))o.splice(h,2,...u[+f.text-1]);else throw new Bi("Not a valid argument number",f)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Y3(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),r.push(s)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var s=typeof r=="function"?r(this):r;if(typeof s=="string"){var o=0;if(s.indexOf("#")!==-1)for(var u=s.replace(/##/g,"");u.indexOf("#"+(o+1))!==-1;)++o;for(var h=new v0n(s,this.settings),f=[],p=h.lex();p.text!=="EOF";)f.push(p),p=h.lex();f.reverse();var m={tokens:f,numArgs:o};return m}return s}isDefined(t){return this.macros.has(t)||cO.hasOwnProperty(t)||ed.math.hasOwnProperty(t)||ed.text.hasOwnProperty(t)||iRn.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:cO.hasOwnProperty(t)&&!cO[t].primitive}};var E0n=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,x_e=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),WXe={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},x0n={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let aRn=class sRn{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tzr(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Bi("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Y3("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(sRn.endOfExpression.indexOf(s.text)!==-1||r&&s.text===r||t&&cO[s.text]&&cO[s.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,s=0;s<t.length;s++)if(t[s].type==="infix"){if(r!==-1)throw new Bi("only one infix operator per group",t[s].token);r=s,a=t[s].replaceWith}if(r!==-1&&a){var o,u,h=t.slice(0,r),f=t.slice(r+1);h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h},f.length===1&&f[0].type==="ordgroup"?u=f[0]:u={type:"ordgroup",mode:this.mode,body:f};var p;return a==="\\\\abovefrac"?p=this.callFunction(a,[o,t[r],u],[]):p=this.callFunction(a,[o,u],[]),[p]}else return t}handleSupSubscript(t){var r=this.fetch(),a=r.text;this.consume(),this.consumeSpaces();var s;do{var o;s=this.parseGroup(t)}while(((o=s)==null?void 0:o.type)==="internal");if(!s)throw new Bi("Expected group after '"+a+"'",r);return s}formatUnsupportedCmd(t){for(var r=[],a=0;a<t.length;a++)r.push({type:"textord",mode:"text",text:t[a]});var s={type:"text",mode:this.mode,body:r},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[s]};return o}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var a,s;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(r&&r.type==="op"){var u=o.text==="\\limits";r.limits=u,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=o.text==="\\limits");else throw new Bi("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(a)throw new Bi("Double superscript",o);a=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(s)throw new Bi("Double subscript",o);s=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(a)throw new Bi("Double superscript",o);var h={type:"textord",mode:this.mode,text:"\\prime"},f=[h];for(this.consume();this.fetch().text==="'";)f.push(h),this.consume();this.fetch().text==="^"&&f.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:f}}else if(x_e[o.text]){var p=E0n.test(o.text),m=[];for(m.push(new Y3(x_e[o.text])),this.consume();;){var b=this.fetch().text;if(!x_e[b]||E0n.test(b)!==p)break;m.unshift(new Y3(x_e[b])),this.consume()}var _=this.subparse(m);p?s={type:"ordgroup",mode:"math",body:_}:a={type:"ordgroup",mode:"math",body:_}}else break}return a||s?{type:"supsub",mode:this.mode,base:r,sup:a,sub:s}:r}parseFunction(t,r){var a=this.fetch(),s=a.text,o=cO[s];if(!o)return null;if(this.consume(),r&&r!=="atom"&&!o.allowedInArgument)throw new Bi("Got function '"+s+"' with no arguments"+(r?" as "+r:""),a);if(this.mode==="text"&&!o.allowedInText)throw new Bi("Can't use function '"+s+"' in text mode",a);if(this.mode==="math"&&o.allowedInMath===!1)throw new Bi("Can't use function '"+s+"' in math mode",a);var{args:u,optArgs:h}=this.parseArguments(s,o);return this.callFunction(s,u,h,a,t)}callFunction(t,r,a,s,o){var u={funcName:t,parser:this,token:s,breakOnTokenText:o},h=cO[t];if(h&&h.handler)return h.handler(u,r,a);throw new Bi("No function handler for "+t)}parseArguments(t,r){var a=r.numArgs+r.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var s=[],o=[],u=0;u<a;u++){var h=r.argTypes&&r.argTypes[u],f=u<r.numOptionalArgs;(r.primitive&&h==null||r.type==="sqrt"&&u===1&&o[0]==null)&&(h="primitive");var p=this.parseGroupOfType("argument to '"+t+"'",h,f);if(f)o.push(p);else if(p!=null)s.push(p);else throw new Bi("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(t,r,a){switch(r){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,r);case"hbox":{var s=this.parseArgumentGroup(a,"text");return s!=null?{type:"styling",mode:s.mode,body:[s],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",a);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(a)throw new Bi("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new Bi("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new Bi("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var a=this.gullet.scanArgument(r);if(a==null)return null;for(var s="",o;(o=this.fetch()).text!=="EOF";)s+=o.text,this.consume();return this.consume(),a.text=s,a}parseRegexGroup(t,r){for(var a=this.fetch(),s=a,o="",u;(u=this.fetch()).text!=="EOF"&&t.test(o+u.text);)s=u,o+=s.text,this.consume();if(o==="")throw new Bi("Invalid "+r+": '"+a.text+"'",a);return a.range(s,o)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!a)throw new Bi("Invalid color: '"+r.text+"'",r);var s=a[0];return/^[0-9a-f]{6}$/i.test(s)&&(s="#"+s),{type:"color-token",mode:this.mode,color:s}}parseSizeGroup(t){var r,a=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",a=!0);var s=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!s)throw new Bi("Invalid size: '"+r.text+"'",r);var o={number:+(s[1]+s[2]),unit:s[3]};if(!p7n(o))throw new Bi("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:a}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var a=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(t,r){var a=this.gullet.scanArgument(t);if(a==null)return null;var s=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var u={type:"ordgroup",mode:this.mode,loc:a.loc,body:o};return r&&this.switchMode(s),u}parseGroup(t,r){var a=this.fetch(),s=a.text,o;if(s==="{"||s==="\\begingroup"){this.consume();var u=s==="{"?"}":"\\endgroup";this.gullet.beginGroup();var h=this.parseExpression(!1,u),f=this.fetch();this.expect(u),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:Kx.range(a,f),body:h,semisimple:s==="\\begingroup"||void 0}}else if(o=this.parseFunction(r,t)||this.parseSymbol(),o==null&&s[0]==="\\"&&!iRn.hasOwnProperty(s)){if(this.settings.throwOnError)throw new Bi("Undefined control sequence: "+s,a);o=this.formatUnsupportedCmd(s),this.consume()}return o}formLigatures(t){for(var r=t.length-1,a=0;a<r;++a){var s=t[a],o=s.text;o==="-"&&t[a+1].text==="-"&&(a+1<r&&t[a+2].text==="-"?(t.splice(a,3,{type:"textord",mode:"text",loc:Kx.range(s,t[a+2]),text:"---"}),r-=2):(t.splice(a,2,{type:"textord",mode:"text",loc:Kx.range(s,t[a+1]),text:"--"}),r-=1)),(o==="'"||o==="`")&&t[a+1].text===o&&(t.splice(a,2,{type:"textord",mode:"text",loc:Kx.range(s,t[a+1]),text:o+o}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var a=r.slice(5),s=a.charAt(0)==="*";if(s&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new Bi(`\\verb assertion failed --
                    please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:s}}x0n.hasOwnProperty(r[0])&&!ed[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=x0n[r[0]]+r.slice(1));var o=QUr.exec(r);o&&(r=r.substring(0,o.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var u;if(ed[this.mode][r]){this.settings.strict&&this.mode==="math"&&Est.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var h=ed[this.mode][r].group,f=Kx.range(t),p;if(q$r.hasOwnProperty(h)){var m=h;p={type:"atom",mode:this.mode,family:m,loc:f,text:r}}else p={type:h,mode:this.mode,loc:f,text:r};u=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(h7n(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:Kx.range(t),text:r};else return null;if(this.consume(),o)for(var b=0;b<o[0].length;b++){var _=o[0][b];if(!WXe[_])throw new Bi("Unknown accent ' "+_+"'",t);var w=WXe[_][this.mode]||WXe[_].text;if(!w)throw new Bi("Accent "+_+" unsupported in "+this.mode+" mode",t);u={type:"accent",mode:this.mode,loc:Kx.range(t),label:w,isStretchy:!1,isShifty:!0,base:u}}return u}};aRn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var yft=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new aRn(t,r);delete a.gullet.macros.current["\\df@tag"];var s=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Bi("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:a.subparse([new Y3("\\df@tag")])}]}return s},vft=function(t,r,a){r.textContent="";var s=eCe(t,a).toNode();r.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),vft=function(){throw new Bi("KaTeX doesn't work in quirks mode.")});var oRn=function(t,r){var a=eCe(t,r).toMarkup();return a},lRn=function(t,r){var a=new eft(r);return yft(t,a)},cRn=function(t,r,a){if(a.throwOnError||!(t instanceof Bi))throw t;var s=Jn.makeSpan(["katex-error"],[new mS(r)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+a.errorColor),s},eCe=function(t,r){var a=new eft(r);try{var s=yft(t,a);return dUr(s,t,a)}catch(o){return cRn(o,t,a)}},uRn=function(t,r){var a=new eft(r);try{var s=yft(t,a);return fUr(s,t,a)}catch(o){return cRn(o,t,a)}},hRn="0.16.28",dRn={Span:$le,Anchor:rft,SymbolNode:mS,SvgNode:X7,PathNode:GO,LineNode:wst},nzr={version:hRn,render:vft,renderToString:oRn,ParseError:Bi,SETTINGS_SCHEMA:Xae,__parse:lRn,__renderToDomTree:eCe,__renderToHTMLTree:uRn,__setFontMetrics:d7n,__defineSymbol:ke,__defineFunction:pa,__defineMacro:ft,__domTree:dRn};const rzr=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Bi,SETTINGS_SCHEMA:Xae,__defineFunction:pa,__defineMacro:ft,__defineSymbol:ke,__domTree:dRn,__parse:lRn,__renderToDomTree:eCe,__renderToHTMLTree:uRn,__setFontMetrics:d7n,default:nzr,get render(){return vft},renderToString:oRn,version:hRn},Symbol.toStringTag,{value:"Module"})),S0n=document.createElement("i");function _ft(e){const t="&"+e+";";S0n.innerHTML=t;const r=S0n.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}var wft={},T0n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,izr=/\n/g,azr=/^\s*/,szr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ozr=/^:\s*/,lzr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,czr=/^[;\s]*/,uzr=/^\s+|\s+$/g,hzr=`
`,C0n="/",A0n="*",MB="",dzr="comment",fzr="declaration";function pzr(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,a=1;function s(S){var C=S.match(izr);C&&(r+=C.length);var A=S.lastIndexOf(hzr);a=~A?S.length-A:a+S.length}function o(){var S={line:r,column:a};return function(C){return C.position=new u(S),p(),C}}function u(S){this.start=S,this.end={line:r,column:a},this.source=t.source}u.prototype.content=e;function h(S){var C=new Error(t.source+":"+r+":"+a+": "+S);if(C.reason=S,C.filename=t.source,C.line=r,C.column=a,C.source=e,!t.silent)throw C}function f(S){var C=S.exec(e);if(C){var A=C[0];return s(A),e=e.slice(A.length),C}}function p(){f(azr)}function m(S){var C;for(S=S||[];C=b();)C!==!1&&S.push(C);return S}function b(){var S=o();if(!(C0n!=e.charAt(0)||A0n!=e.charAt(1))){for(var C=2;MB!=e.charAt(C)&&(A0n!=e.charAt(C)||C0n!=e.charAt(C+1));)++C;if(C+=2,MB===e.charAt(C-1))return h("End of comment missing");var A=e.slice(2,C-2);return a+=2,s(A),e=e.slice(C),a+=2,S({type:dzr,comment:A})}}function _(){var S=o(),C=f(szr);if(C){if(b(),!f(ozr))return h("property missing ':'");var A=f(lzr),k=S({type:fzr,property:k0n(C[0].replace(T0n,MB)),value:A?k0n(A[0].replace(T0n,MB)):MB});return f(czr),k}}function w(){var S=[];m(S);for(var C;C=_();)C!==!1&&(S.push(C),m(S));return S}return p(),w()}function k0n(e){return e?e.replace(uzr,MB):MB}var gzr=pzr,mzr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wft,"__esModule",{value:!0});wft.default=yzr;const bzr=mzr(gzr);function yzr(e,t){let r=null;if(!e||typeof e!="string")return r;const a=(0,bzr.default)(e),s=typeof t=="function";return a.forEach(o=>{if(o.type!=="declaration")return;const{property:u,value:h}=o;s?t(u,h,o):h&&(r=r||{},r[u]=h)}),r}var tCe={};Object.defineProperty(tCe,"__esModule",{value:!0});tCe.camelCase=void 0;var vzr=/^--[a-zA-Z0-9_-]+$/,_zr=/-([a-z])/g,wzr=/^[^-]+$/,Ezr=/^-(webkit|moz|ms|o|khtml)-/,xzr=/^-(ms)-/,Szr=function(e){return!e||wzr.test(e)||vzr.test(e)},Tzr=function(e,t){return t.toUpperCase()},R0n=function(e,t){return"".concat(t,"-")},Czr=function(e,t){return t===void 0&&(t={}),Szr(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(xzr,R0n):e=e.replace(Ezr,R0n),e.replace(_zr,Tzr))};tCe.camelCase=Czr;var Azr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},kzr=Azr(wft),Rzr=tCe;function kst(e,t){var r={};return!e||typeof e!="string"||(0,kzr.default)(e,function(a,s){a&&s&&(r[(0,Rzr.camelCase)(a,t)]=s)}),r}kst.default=kst;var Izr=kst;function Eft(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var b$=Eft();function fRn(e){b$=e}var Zae={exec:()=>null};function du(e,t=""){let r=typeof e=="string"?e:e.source,a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Wy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var Nzr=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Wy={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ozr=/^(?:[ \t]*(?:\n|$))+/,Lzr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Dzr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zle=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mzr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xft=/(?:[*+-]|\d{1,9}[.)])/,pRn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gRn=du(pRn).replace(/bull/g,xft).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Pzr=du(pRn).replace(/bull/g,xft).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sft=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Bzr=/^[^\n]+/,Tft=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Fzr=du(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tft).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$zr=du(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xft).getRegex(),nCe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cft=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Uzr=du("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Cft).replace("tag",nCe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mRn=du(Sft).replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex(),zzr=du(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mRn).getRegex(),Aft={blockquote:zzr,code:Lzr,def:Fzr,fences:Dzr,heading:Mzr,hr:zle,html:Uzr,lheading:gRn,list:$zr,newline:Ozr,paragraph:mRn,table:Zae,text:Bzr},I0n=du("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex(),Gzr={...Aft,lheading:Pzr,table:I0n,paragraph:du(Sft).replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I0n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex()},qzr={...Aft,html:du(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cft).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zae,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:du(Sft).replace("hr",zle).replace("heading",` *#{1,6} *[^
]`).replace("lheading",gRn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hzr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Vzr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bRn=/^( {2,}|\\)\n(?!\s*$)/,Yzr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rCe=/[\p{P}\p{S}]/u,kft=/[\s\p{P}\p{S}]/u,yRn=/[^\s\p{P}\p{S}]/u,jzr=du(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kft).getRegex(),vRn=/(?!~)[\p{P}\p{S}]/u,Wzr=/(?!~)[\s\p{P}\p{S}]/u,Kzr=/(?:[^\s\p{P}\p{S}]|~)/u,Xzr=du(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Nzr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_Rn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Qzr=du(_Rn,"u").replace(/punct/g,rCe).getRegex(),Zzr=du(_Rn,"u").replace(/punct/g,vRn).getRegex(),wRn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Jzr=du(wRn,"gu").replace(/notPunctSpace/g,yRn).replace(/punctSpace/g,kft).replace(/punct/g,rCe).getRegex(),eGr=du(wRn,"gu").replace(/notPunctSpace/g,Kzr).replace(/punctSpace/g,Wzr).replace(/punct/g,vRn).getRegex(),tGr=du("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yRn).replace(/punctSpace/g,kft).replace(/punct/g,rCe).getRegex(),nGr=du(/\\(punct)/,"gu").replace(/punct/g,rCe).getRegex(),rGr=du(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),iGr=du(Cft).replace("(?:-->|$)","-->").getRegex(),aGr=du("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",iGr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),BSe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,sGr=du(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",BSe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ERn=du(/^!?\[(label)\]\[(ref)\]/).replace("label",BSe).replace("ref",Tft).getRegex(),xRn=du(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tft).getRegex(),oGr=du("reflink|nolink(?!\\()","g").replace("reflink",ERn).replace("nolink",xRn).getRegex(),N0n=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rft={_backpedal:Zae,anyPunctuation:nGr,autolink:rGr,blockSkip:Xzr,br:bRn,code:Vzr,del:Zae,emStrongLDelim:Qzr,emStrongRDelimAst:Jzr,emStrongRDelimUnd:tGr,escape:Hzr,link:sGr,nolink:xRn,punctuation:jzr,reflink:ERn,reflinkSearch:oGr,tag:aGr,text:Yzr,url:Zae},lGr={...Rft,link:du(/^!?\[(label)\]\((.*?)\)/).replace("label",BSe).getRegex(),reflink:du(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",BSe).getRegex()},Rst={...Rft,emStrongRDelimAst:eGr,emStrongLDelim:Zzr,url:du(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",N0n).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:du(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",N0n).getRegex()},cGr={...Rst,br:du(bRn).replace("{2,}","*").getRegex(),text:du(Rst.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},S_e={normal:Aft,gfm:Gzr,pedantic:qzr},wre={normal:Rft,gfm:Rst,breaks:cGr,pedantic:lGr},uGr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},O0n=e=>uGr[e];function r7(e,t){if(t){if(Wy.escapeTest.test(e))return e.replace(Wy.escapeReplace,O0n)}else if(Wy.escapeTestNoEncode.test(e))return e.replace(Wy.escapeReplaceNoEncode,O0n);return e}function L0n(e){try{e=encodeURI(e).replace(Wy.percentDecode,"%")}catch{return null}return e}function D0n(e,t){var o;let r=e.replace(Wy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Wy.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(Wy.slashPipe,"|");return a}function Ere(e,t,r){let a=e.length;if(a===0)return"";let s=0;for(;s<a&&e.charAt(a-s-1)===t;)s++;return e.slice(0,a-s)}function hGr(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return r>0?-2:-1}function M0n(e,t,r,a,s){let o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function dGr(e,t,r){let a=e.match(r.other.indentCodeCompensation);if(a===null)return t;let s=a[1];return t.split(`
`).map(o=>{let u=o.match(r.other.beginningSpace);if(u===null)return o;let[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(`
`)}var FSe=class{constructor(t){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=t||b$}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let a=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ere(a,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let a=r[0],s=dGr(a,r[3]||"",this.rules);return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(this.rules.other.endingHash.test(a)){let s=Ere(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Ere(r[0],`
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let a=Ere(r[0],`
`).split(`
`),s="",o="",u=[];for(;a.length>0;){let h=!1,f=[],p;for(p=0;p<a.length;p++)if(this.rules.other.blockquoteStart.test(a[p]))f.push(a[p]),h=!0;else if(!h)f.push(a[p]);else break;a=a.slice(p);let m=f.join(`
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
${m}`:m,o=o?`${o}
${b}`:b;let _=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,u,!0),this.lexer.state.top=_,a.length===0)break;let w=u.at(-1);if((w==null?void 0:w.type)==="code")break;if((w==null?void 0:w.type)==="blockquote"){let S=w,C=S.raw+`
`+a.join(`
`),A=this.blockquote(C);u[u.length-1]=A,s=s.substring(0,s.length-S.raw.length)+A.raw,o=o.substring(0,o.length-S.text.length)+A.text;break}else if((w==null?void 0:w.type)==="list"){let S=w,C=S.raw+`
`+a.join(`
`),A=this.list(C);u[u.length-1]=A,s=s.substring(0,s.length-w.raw.length)+A.raw,o=o.substring(0,o.length-S.raw.length)+A.raw,a=C.substring(u.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:o}}}list(t){var a,s;let r=this.rules.block.list.exec(t);if(r){let o=r[1].trim(),u=o.length>1,h={type:"list",raw:"",ordered:u,start:u?+o.slice(0,-1):"",loose:!1,items:[]};o=u?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=u?o:"[*+-]");let f=this.rules.other.listItemRegex(o),p=!1;for(;t;){let b=!1,_="",w="";if(!(r=f.exec(t))||this.rules.block.hr.test(t))break;_=r[0],t=t.substring(_.length);let S=r[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),C=t.split(`
`,1)[0],A=!S.trim(),k=0;if(this.options.pedantic?(k=2,w=S.trimStart()):A?k=r[1].length+1:(k=r[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,w=S.slice(k),k+=r[1].length),A&&this.rules.other.blankLine.test(C)&&(_+=C+`
`,t=t.substring(C.length+1),b=!0),!b){let I=this.rules.other.nextBulletRegex(k),N=this.rules.other.hrRegex(k),L=this.rules.other.fencesBeginRegex(k),P=this.rules.other.headingBeginRegex(k),M=this.rules.other.htmlBeginRegex(k);for(;t;){let F=t.split(`
`,1)[0],U;if(C=F,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting,"  "),U=C):U=C.replace(this.rules.other.tabCharGlobal,"    "),L.test(C)||P.test(C)||M.test(C)||I.test(C)||N.test(C))break;if(U.search(this.rules.other.nonSpaceChar)>=k||!C.trim())w+=`
`+U.slice(k);else{if(A||S.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||L.test(S)||P.test(S)||N.test(S))break;w+=`
`+C}!A&&!C.trim()&&(A=!0),_+=F+`
`,t=t.substring(F.length+1),S=U.slice(k)}}h.loose||(p?h.loose=!0:this.rules.other.doubleBlankLine.test(_)&&(p=!0)),h.items.push({type:"list_item",raw:_,task:!!this.options.gfm&&this.rules.other.listIsTask.test(w),loose:!1,text:w,tokens:[]}),h.raw+=_}let m=h.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let b of h.items){if(this.lexer.state.top=!1,b.tokens=this.lexer.blockTokens(b.text,[]),b.task){if(b.text=b.text.replace(this.rules.other.listReplaceTask,""),((a=b.tokens[0])==null?void 0:a.type)==="text"||((s=b.tokens[0])==null?void 0:s.type)==="paragraph"){b.tokens[0].raw=b.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),b.tokens[0].text=b.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let w=this.lexer.inlineQueue.length-1;w>=0;w--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[w].src)){this.lexer.inlineQueue[w].src=this.lexer.inlineQueue[w].src.replace(this.rules.other.listReplaceTask,"");break}}let _=this.rules.other.listTaskCheckbox.exec(b.raw);if(_){let w={type:"checkbox",raw:_[0]+" ",checked:_[0]!=="[ ]"};b.checked=w.checked,h.loose?b.tokens[0]&&["paragraph","text"].includes(b.tokens[0].type)&&"tokens"in b.tokens[0]&&b.tokens[0].tokens?(b.tokens[0].raw=w.raw+b.tokens[0].raw,b.tokens[0].text=w.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(w)):b.tokens.unshift({type:"paragraph",raw:w.raw,text:w.raw,tokens:[w]}):b.tokens.unshift(w)}}if(!h.loose){let _=b.tokens.filter(S=>S.type==="space"),w=_.length>0&&_.some(S=>this.rules.other.anyLine.test(S.raw));h.loose=w}}if(h.loose)for(let b of h.items){b.loose=!0;for(let _ of b.tokens)_.type==="text"&&(_.type="paragraph")}return h}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let a=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:a,raw:r[0],href:s,title:o}}}table(t){var h;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let a=D0n(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(h=r[3])!=null&&h.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(a.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<a.length;f++)u.header.push({text:a[f],tokens:this.lexer.inline(a[f]),header:!0,align:u.align[f]});for(let f of o)u.rows.push(D0n(f,u.header.length).map((p,m)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let a=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let u=Ere(a.slice(0,-1),"\\");if((a.length-u.length)%2===0)return}else{let u=hGr(r[2],"()");if(u===-2)return;if(u>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],o=u[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),M0n(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let u=a[0].charAt(0);return{type:"text",raw:u,text:u}}return M0n(a,o,a[0],this.lexer,this.rules)}}emStrong(t,r,a=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,u,h,f=o,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+o);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(h=[...u].length,s[3]||s[4]){f+=h;continue}else if((s[5]||s[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);let b=[...s[0]][0].length,_=t.slice(0,o+s.index+b+h);if(Math.min(o,h)%2){let S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}let w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let a=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),o=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&o&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:r[0],text:a}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let a,s;return r[2]==="@"?(a=r[1],s="mailto:"+a):(a=r[1],s=a),{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(t){var a;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let u;do u=r[0],r[0]=((a=this.rules.inline._backpedal.exec(r[0]))==null?void 0:a[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let a=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:a}}}},O3=class Ist{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"inlineQueue");Gi(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||b$,this.options.tokenizer=this.options.tokenizer||new FSe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Wy,block:S_e.normal,inline:wre.normal};this.options.pedantic?(r.block=S_e.pedantic,r.inline=wre.pedantic):this.options.gfm&&(r.block=S_e.gfm,this.options.breaks?r.inline=wre.breaks:r.inline=wre.gfm),this.tokenizer.rules=r}static get rules(){return{block:S_e,inline:wre}}static lex(t,r){return new Ist(r).lex(t)}static lexInline(t,r){return new Ist(r).inlineTokens(t)}lex(t){t=t.replace(Wy.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let a=this.inlineQueue[r];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],a=!1){var s,o,u;for(this.options.pedantic&&(t=t.replace(Wy.tabCharGlobal,"    ").replace(Wy.spaceLine,""));t;){let h;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(p=>(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);let p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=`
`:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},r.push(h));continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){let p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,b,_;let a=t,s=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)w.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)o=s[2]?s[2].length:0,a=a.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},a))??a;let u=!1,h="";for(;t;){u||(h=""),u=!1;let w;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(C=>(w=C.call({lexer:this},t,r))?(t=t.substring(w.raw.length),r.push(w),!0):!1))continue;if(w=this.tokenizer.escape(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.tag(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.link(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(w.raw.length);let C=r.at(-1);w.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(w=this.tokenizer.emStrong(t,a,h)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.codespan(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.br(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.del(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.autolink(t)){t=t.substring(w.raw.length),r.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(t))){t=t.substring(w.raw.length),r.push(w);continue}let S=t;if((_=this.options.extensions)!=null&&_.startInline){let C=1/0,A=t.slice(1),k;this.options.extensions.startInline.forEach(I=>{k=I.call({lexer:this},A),typeof k=="number"&&k>=0&&(C=Math.min(C,k))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(w=this.tokenizer.inlineText(S)){t=t.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(h=w.raw.slice(-1)),u=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},$Se=class{constructor(t){Gi(this,"options");Gi(this,"parser");this.options=t||b$}space(t){return""}code({text:t,lang:r,escaped:a}){var u;let s=(u=(r||"").match(Wy.notSpaceStart))==null?void 0:u[0],o=t.replace(Wy.endingNewline,"")+`
`;return s?'<pre><code class="language-'+r7(s)+'">'+(a?o:r7(o,!0))+`</code></pre>
`:"<pre><code>"+(a?o:r7(o,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
`}hr(t){return`<hr>
`}list(t){let r=t.ordered,a=t.start,s="";for(let h=0;h<t.items.length;h++){let f=t.items[h];s+=this.listitem(f)}let o=r?"ol":"ul",u=r&&a!==1?' start="'+a+'"':"";return"<"+o+u+`>
`+s+"</"+o+`>
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let r="",a="";for(let o=0;o<t.header.length;o++)a+=this.tablecell(t.header[o]);r+=this.tablerow({text:a});let s="";for(let o=0;o<t.rows.length;o++){let u=t.rows[o];a="";for(let h=0;h<u.length;h++)a+=this.tablecell(u[h]);s+=this.tablerow({text:a})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+s+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let r=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+r+`</${a}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${r7(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:a}){let s=this.parser.parseInline(a),o=L0n(t);if(o===null)return s;t=o;let u='<a href="'+t+'"';return r&&(u+=' title="'+r7(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let o=L0n(t);if(o===null)return r7(a);t=o;let u=`<img src="${t}" alt="${a}"`;return r&&(u+=` title="${r7(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:r7(t.text)}},Ift=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},L3=class Nst{constructor(t){Gi(this,"options");Gi(this,"renderer");Gi(this,"textRenderer");this.options=t||b$,this.options.renderer=this.options.renderer||new $Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ift}static parse(t,r){return new Nst(r).parse(t)}static parseInline(t,r){return new Nst(r).parseInline(t)}parse(t){var a,s;let r="";for(let o=0;o<t.length;o++){let u=t[o];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[u.type]){let f=u,p=this.options.extensions.renderers[f.type].call({parser:this},f);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){r+=p||"";continue}}let h=u;switch(h.type){case"space":{r+=this.renderer.space(h);break}case"hr":{r+=this.renderer.hr(h);break}case"heading":{r+=this.renderer.heading(h);break}case"code":{r+=this.renderer.code(h);break}case"table":{r+=this.renderer.table(h);break}case"blockquote":{r+=this.renderer.blockquote(h);break}case"list":{r+=this.renderer.list(h);break}case"checkbox":{r+=this.renderer.checkbox(h);break}case"html":{r+=this.renderer.html(h);break}case"def":{r+=this.renderer.def(h);break}case"paragraph":{r+=this.renderer.paragraph(h);break}case"text":{r+=this.renderer.text(h);break}default:{let f='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return r}parseInline(t,r=this.renderer){var s,o;let a="";for(let u=0;u<t.length;u++){let h=t[u];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[h.type]){let p=this.options.extensions.renderers[h.type].call({parser:this},h);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){a+=p||"";continue}}let f=h;switch(f.type){case"escape":{a+=r.text(f);break}case"html":{a+=r.html(f);break}case"link":{a+=r.link(f);break}case"image":{a+=r.image(f);break}case"checkbox":{a+=r.checkbox(f);break}case"strong":{a+=r.strong(f);break}case"em":{a+=r.em(f);break}case"codespan":{a+=r.codespan(f);break}case"br":{a+=r.br(f);break}case"del":{a+=r.del(f);break}case"text":{a+=r.text(f);break}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}},REe,Tie=(REe=class{constructor(t){Gi(this,"options");Gi(this,"block");this.options=t||b$}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?O3.lex:O3.lexInline}provideParser(){return this.block?L3.parse:L3.parseInline}},Gi(REe,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Gi(REe,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),REe),fGr=class{constructor(...t){Gi(this,"defaults",Eft());Gi(this,"options",this.setOptions);Gi(this,"parse",this.parseMarkdown(!0));Gi(this,"parseInline",this.parseMarkdown(!1));Gi(this,"Parser",L3);Gi(this,"Renderer",$Se);Gi(this,"TextRenderer",Ift);Gi(this,"Lexer",O3);Gi(this,"Tokenizer",FSe);Gi(this,"Hooks",Tie);this.use(...t)}walkTokens(t,r){var s,o;let a=[];for(let u of t)switch(a=a.concat(r.call(this,u)),u.type){case"table":{let h=u;for(let f of h.header)a=a.concat(this.walkTokens(f.tokens,r));for(let f of h.rows)for(let p of f)a=a.concat(this.walkTokens(p.tokens,r));break}case"list":{let h=u;a=a.concat(this.walkTokens(h.items,r));break}default:{let h=u;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[h.type]?this.defaults.extensions.childTokens[h.type].forEach(f=>{let p=h[f].flat(1/0);a=a.concat(this.walkTokens(p,r))}):h.tokens&&(a=a.concat(this.walkTokens(h.tokens,r)))}}return a}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let u=r.renderers[o.name];u?r.renderers[o.name]=function(...h){let f=o.renderer.apply(this,h);return f===!1&&(f=u.apply(this,h)),f}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[o.level];u?u.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),a.renderer){let o=this.defaults.renderer||new $Se(this.defaults);for(let u in a.renderer){if(!(u in o))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let h=u,f=a.renderer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b||""}}s.renderer=o}if(a.tokenizer){let o=this.defaults.tokenizer||new FSe(this.defaults);for(let u in a.tokenizer){if(!(u in o))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let h=u,f=a.tokenizer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.tokenizer=o}if(a.hooks){let o=this.defaults.hooks||new Tie;for(let u in a.hooks){if(!(u in o))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let h=u,f=a.hooks[h],p=o[h];Tie.passThroughHooks.has(u)?o[h]=m=>{if(this.defaults.async&&Tie.passThroughHooksRespectAsync.has(u))return(async()=>{let _=await f.call(o,m);return p.call(o,_)})();let b=f.call(o,m);return p.call(o,b)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let _=await f.apply(o,m);return _===!1&&(_=await p.apply(o,m)),_})();let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.hooks=o}if(a.walkTokens){let o=this.defaults.walkTokens,u=a.walkTokens;s.walkTokens=function(h){let f=[];return f.push(u.call(this,h)),o&&(f=f.concat(o.call(this,h))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return O3.lex(t,r??this.defaults)}parser(t,r){return L3.parse(t,r??this.defaults)}parseMarkdown(t){return(r,a)=>{let s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,f=await(o.hooks?await o.hooks.provideLexer():t?O3.lex:O3.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(f):f;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():t?L3.parse:L3.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():t?O3.lex:O3.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let f=(o.hooks?o.hooks.provideParser():t?L3.parse:L3.parseInline)(h,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(h){return u(h)}}}onError(t,r){return a=>{if(a.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+r7(a.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(a);throw a}}},_F=new fGr;function vh(e,t){return _F.parse(e,t)}vh.options=vh.setOptions=function(e){return _F.setOptions(e),vh.defaults=_F.defaults,fRn(vh.defaults),vh};vh.getDefaults=Eft;vh.defaults=b$;vh.use=function(...e){return _F.use(...e),vh.defaults=_F.defaults,fRn(vh.defaults),vh};vh.walkTokens=function(e,t){return _F.walkTokens(e,t)};vh.parseInline=_F.parseInline;vh.Parser=L3;vh.parser=L3.parse;vh.Renderer=$Se;vh.TextRenderer=Ift;vh.Lexer=O3;vh.lexer=O3.lex;vh.Tokenizer=FSe;vh.Hooks=Tie;vh.parse=vh;vh.options;vh.setOptions;vh.use;vh.walkTokens;vh.parseInline;L3.parse;O3.lex;ue.createContext(null);function P0n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mA(...e){return t=>{let r=!1;const a=e.map(s=>{const o=P0n(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<a.length;s++){const o=a[s];typeof o=="function"?o():P0n(e[s],null)}}}}function Yo(...e){return ue.useCallback(mA(...e),e)}var pGr=Symbol.for("react.lazy"),USe=g$[" use ".trim().toString()];function gGr(e){return typeof e=="object"&&e!==null&&"then"in e}function SRn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===pGr&&"_payload"in e&&gGr(e._payload)}function TRn(e){const t=mGr(e),r=ue.forwardRef((a,s)=>{let{children:o,...u}=a;SRn(o)&&typeof USe=="function"&&(o=USe(o._payload));const h=ue.Children.toArray(o),f=h.find(yGr);if(f){const p=f.props.children,m=h.map(b=>b===f?ue.Children.count(p)>1?ue.Children.only(null):ue.isValidElement(p)?p.props.children:null:b);return ct.jsx(t,{...u,ref:s,children:ue.isValidElement(p)?ue.cloneElement(p,void 0,m):null})}return ct.jsx(t,{...u,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var E3a=TRn("Slot");function mGr(e){const t=ue.forwardRef((r,a)=>{let{children:s,...o}=r;if(SRn(s)&&typeof USe=="function"&&(s=USe(s._payload)),ue.isValidElement(s)){const u=_Gr(s),h=vGr(o,s.props);return s.type!==ue.Fragment&&(h.ref=a?mA(a,u):u),ue.cloneElement(s,h)}return ue.Children.count(s)>1?ue.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bGr=Symbol("radix.slottable");function yGr(e){return ue.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bGr}function vGr(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{const f=o(...h);return s(...h),f}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function _Gr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const wGr=(e,t)=>{const r=new Array(e.length+t.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<t.length;a++)r[e.length+a]=t[a];return r},EGr=(e,t)=>({classGroupId:e,validator:t}),CRn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),zSe="-",B0n=[],xGr="arbitrary..",SGr=e=>{const t=CGr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return TGr(u);const h=u.split(zSe),f=h[0]===""&&h.length>1?1:0;return ARn(h,f,t)},getConflictingClassGroupIds:(u,h)=>{if(h){const f=a[u],p=r[u];return f?p?wGr(p,f):f:p||B0n}return r[u]||B0n}}},ARn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const p=ARn(e,t+1,o);if(p)return p}const u=r.validators;if(u===null)return;const h=t===0?e.join(zSe):e.slice(t).join(zSe),f=u.length;for(let p=0;p<f;p++){const m=u[p];if(m.validator(h))return m.classGroupId}},TGr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?xGr+a:void 0})(),CGr=e=>{const{theme:t,classGroups:r}=e;return AGr(r,t)},AGr=(e,t)=>{const r=CRn();for(const a in e){const s=e[a];Nft(s,r,a,t)}return r},Nft=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const u=e[o];kGr(u,t,r,a)}},kGr=(e,t,r,a)=>{if(typeof e=="string"){RGr(e,t,r);return}if(typeof e=="function"){IGr(e,t,r,a);return}NGr(e,t,r,a)},RGr=(e,t,r)=>{const a=e===""?t:kRn(t,e);a.classGroupId=r},IGr=(e,t,r,a)=>{if(OGr(e)){Nft(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(EGr(r,e))},NGr=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let u=0;u<o;u++){const[h,f]=s[u];Nft(f,kRn(t,h),r,a)}},kRn=(e,t)=>{let r=e;const a=t.split(zSe),s=a.length;for(let o=0;o<s;o++){const u=a[o];let h=r.nextPart.get(u);h||(h=CRn(),r.nextPart.set(u,h)),r=h}return r},OGr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,LGr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const s=(o,u)=>{r[o]=u,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(o){let u=r[o];if(u!==void 0)return u;if((u=a[o])!==void 0)return s(o,u),u},set(o,u){o in r?r[o]=u:s(o,u)}}},Ost="!",F0n=":",DGr=[],$0n=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),MGr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let u=0,h=0,f=0,p;const m=s.length;for(let C=0;C<m;C++){const A=s[C];if(u===0&&h===0){if(A===F0n){o.push(s.slice(f,C)),f=C+1;continue}if(A==="/"){p=C;continue}}A==="["?u++:A==="]"?u--:A==="("?h++:A===")"&&h--}const b=o.length===0?s:s.slice(f);let _=b,w=!1;b.endsWith(Ost)?(_=b.slice(0,-1),w=!0):b.startsWith(Ost)&&(_=b.slice(1),w=!0);const S=p&&p>f?p-f:void 0;return $0n(o,w,_,S)};if(t){const s=t+F0n,o=a;a=u=>u.startsWith(s)?o(u.slice(s.length)):$0n(DGr,!1,u,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},PGr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let o=0;o<r.length;o++){const u=r[o],h=u[0]==="[",f=t.has(u);h||f?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},BGr=e=>({cache:LGr(e.cacheSize),parseClassName:MGr(e),sortModifiers:PGr(e),...SGr(e)}),FGr=/\s+/,$Gr=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o}=t,u=[],h=e.trim().split(FGr);let f="";for(let p=h.length-1;p>=0;p-=1){const m=h[p],{isExternal:b,modifiers:_,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:C}=r(m);if(b){f=m+(f.length>0?" "+f:f);continue}let A=!!C,k=a(A?S.substring(0,C):S);if(!k){if(!A){f=m+(f.length>0?" "+f:f);continue}if(k=a(S),!k){f=m+(f.length>0?" "+f:f);continue}A=!1}const I=_.length===0?"":_.length===1?_[0]:o(_).join(":"),N=w?I+Ost:I,L=N+k;if(u.indexOf(L)>-1)continue;u.push(L);const P=s(k,A);for(let M=0;M<P.length;++M){const F=P[M];u.push(N+F)}f=m+(f.length>0?" "+f:f)}return f},UGr=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=RRn(r))&&(s&&(s+=" "),s+=a);return s},RRn=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=RRn(e[a]))&&(r&&(r+=" "),r+=t);return r},zGr=(e,...t)=>{let r,a,s,o;const u=f=>{const p=t.reduce((m,b)=>b(m),e());return r=BGr(p),a=r.cache.get,s=r.cache.set,o=h,h(f)},h=f=>{const p=a(f);if(p)return p;const m=$Gr(f,r);return s(f,m),m};return o=u,(...f)=>o(UGr(...f))},GGr=[],pp=e=>{const t=r=>r[e]||GGr;return t.isThemeGetter=!0,t},IRn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,NRn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qGr=/^\d+\/\d+$/,HGr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VGr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,YGr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jGr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WGr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,LH=e=>qGr.test(e),Hl=e=>!!e&&!Number.isNaN(Number(e)),ON=e=>!!e&&Number.isInteger(Number(e)),KXe=e=>e.endsWith("%")&&Hl(e.slice(0,-1)),q6=e=>HGr.test(e),KGr=()=>!0,XGr=e=>VGr.test(e)&&!YGr.test(e),ORn=()=>!1,QGr=e=>jGr.test(e),ZGr=e=>WGr.test(e),JGr=e=>!Va(e)&&!Ya(e),eqr=e=>SW(e,MRn,ORn),Va=e=>IRn.test(e),fB=e=>SW(e,PRn,XGr),XXe=e=>SW(e,aqr,Hl),U0n=e=>SW(e,LRn,ORn),tqr=e=>SW(e,DRn,ZGr),T_e=e=>SW(e,BRn,QGr),Ya=e=>NRn.test(e),xre=e=>TW(e,PRn),nqr=e=>TW(e,sqr),z0n=e=>TW(e,LRn),rqr=e=>TW(e,MRn),iqr=e=>TW(e,DRn),C_e=e=>TW(e,BRn,!0),SW=(e,t,r)=>{const a=IRn.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},TW=(e,t,r=!1)=>{const a=NRn.exec(e);return a?a[1]?t(a[1]):r:!1},LRn=e=>e==="position"||e==="percentage",DRn=e=>e==="image"||e==="url",MRn=e=>e==="length"||e==="size"||e==="bg-size",PRn=e=>e==="length",aqr=e=>e==="number",sqr=e=>e==="family-name",BRn=e=>e==="shadow",oqr=()=>{const e=pp("color"),t=pp("font"),r=pp("text"),a=pp("font-weight"),s=pp("tracking"),o=pp("leading"),u=pp("breakpoint"),h=pp("container"),f=pp("spacing"),p=pp("radius"),m=pp("shadow"),b=pp("inset-shadow"),_=pp("text-shadow"),w=pp("drop-shadow"),S=pp("blur"),C=pp("perspective"),A=pp("aspect"),k=pp("ease"),I=pp("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...L(),Ya,Va],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],U=()=>[Ya,Va,f],$=()=>[LH,"full","auto",...U()],G=()=>[ON,"none","subgrid",Ya,Va],B=()=>["auto",{span:["full",ON,Ya,Va]},ON,Ya,Va],Z=()=>[ON,"auto",Ya,Va],z=()=>["auto","min","max","fr",Ya,Va],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...U()],V=()=>[LH,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],j=()=>[e,Ya,Va],ee=()=>[...L(),z0n,U0n,{position:[Ya,Va]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",rqr,eqr,{size:[Ya,Va]}],se=()=>[KXe,xre,fB],ie=()=>["","none","full",p,Ya,Va],ge=()=>["",Hl,xre,fB],ce=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Hl,KXe,z0n,U0n],De=()=>["","none",S,Ya,Va],ye=()=>["none",Hl,Ya,Va],Ee=()=>["none",Hl,Ya,Va],he=()=>[Hl,Ya,Va],we=()=>[LH,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[q6],breakpoint:[q6],color:[KGr],container:[q6],"drop-shadow":[q6],ease:["in","out","in-out"],font:[JGr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[q6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[q6],shadow:[q6],spacing:["px",Hl],text:[q6],"text-shadow":[q6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",LH,Va,Ya,A]}],container:["container"],columns:[{columns:[Hl,Va,Ya,h]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ON,"auto",Ya,Va]}],basis:[{basis:[LH,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Hl,LH,"auto","initial","none",Va]}],grow:[{grow:["",Hl,Ya,Va]}],shrink:[{shrink:["",Hl,Ya,Va]}],order:[{order:[ON,"first","last","none",Ya,Va]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[h,"screen",...V()]}],"min-w":[{"min-w":[h,"screen","none",...V()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[u]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,xre,fB]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Ya,XXe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",KXe,Va]}],"font-family":[{font:[nqr,Va,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ya,Va]}],"line-clamp":[{"line-clamp":[Hl,"none",Ya,XXe]}],leading:[{leading:[o,...U()]}],"list-image":[{"list-image":["none",Ya,Va]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ya,Va]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Hl,"from-font","auto",Ya,fB]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Hl,"auto",Ya,Va]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ya,Va]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ya,Va]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ON,Ya,Va],radial:["",Ya,Va],conic:[ON,Ya,Va]},iqr,tqr]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Hl,Ya,Va]}],"outline-w":[{outline:["",Hl,xre,fB]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",m,C_e,T_e]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",b,C_e,T_e]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Hl,fB]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",_,C_e,T_e]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Hl,Ya,Va]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Hl]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Ya,Va]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Hl]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ya,Va]}],filter:[{filter:["","none",Ya,Va]}],blur:[{blur:De()}],brightness:[{brightness:[Hl,Ya,Va]}],contrast:[{contrast:[Hl,Ya,Va]}],"drop-shadow":[{"drop-shadow":["","none",w,C_e,T_e]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Hl,Ya,Va]}],"hue-rotate":[{"hue-rotate":[Hl,Ya,Va]}],invert:[{invert:["",Hl,Ya,Va]}],saturate:[{saturate:[Hl,Ya,Va]}],sepia:[{sepia:["",Hl,Ya,Va]}],"backdrop-filter":[{"backdrop-filter":["","none",Ya,Va]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[Hl,Ya,Va]}],"backdrop-contrast":[{"backdrop-contrast":[Hl,Ya,Va]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Hl,Ya,Va]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Hl,Ya,Va]}],"backdrop-invert":[{"backdrop-invert":["",Hl,Ya,Va]}],"backdrop-opacity":[{"backdrop-opacity":[Hl,Ya,Va]}],"backdrop-saturate":[{"backdrop-saturate":[Hl,Ya,Va]}],"backdrop-sepia":[{"backdrop-sepia":["",Hl,Ya,Va]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ya,Va]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Hl,"initial",Ya,Va]}],ease:[{ease:["linear","initial",k,Ya,Va]}],delay:[{delay:[Hl,Ya,Va]}],animate:[{animate:["none",I,Ya,Va]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Ya,Va]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[Ya,Va,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ya,Va]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ya,Va]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Hl,xre,fB,XXe]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},x3a=zGr(oqr);function ji(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function lqr(e,t){const r=ue.createContext(t),a=o=>{const{children:u,...h}=o,f=ue.useMemo(()=>h,Object.values(h));return ct.jsx(r.Provider,{value:f,children:u})};a.displayName=e+"Provider";function s(o){const u=ue.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[a,s]}function Ng(e,t=[]){let r=[];function a(o,u){const h=ue.createContext(u),f=r.length;r=[...r,u];const p=b=>{var k;const{scope:_,children:w,...S}=b,C=((k=_==null?void 0:_[e])==null?void 0:k[f])||h,A=ue.useMemo(()=>S,Object.values(S));return ct.jsx(C.Provider,{value:A,children:w})};p.displayName=o+"Provider";function m(b,_){var C;const w=((C=_==null?void 0:_[e])==null?void 0:C[f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,cqr(s,...t)]}function cqr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var Ig=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},uqr=g$[" useInsertionEffect ".trim().toString()]||Ig;function km({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[s,o,u]=hqr({defaultProp:t,onChange:r}),h=e!==void 0,f=h?e:s;{const m=ue.useRef(e!==void 0);ue.useEffect(()=>{const b=m.current;b!==h&&console.warn(`${a} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=h},[h,a])}const p=ue.useCallback(m=>{var b;if(h){const _=dqr(m)?m(e):m;_!==e&&((b=u.current)==null||b.call(u,_))}else o(m)},[h,e,o,u]);return[f,p]}function hqr({defaultProp:e,onChange:t}){const[r,a]=ue.useState(e),s=ue.useRef(r),o=ue.useRef(t);return uqr(()=>{o.current=t},[t]),ue.useEffect(()=>{var u;s.current!==r&&((u=o.current)==null||u.call(o,r),s.current=r)},[r,s]),[r,a,o]}function dqr(e){return typeof e=="function"}function wF(e){const t=fqr(e),r=ue.forwardRef((a,s)=>{const{children:o,...u}=a,h=ue.Children.toArray(o),f=h.find(gqr);if(f){const p=f.props.children,m=h.map(b=>b===f?ue.Children.count(p)>1?ue.Children.only(null):ue.isValidElement(p)?p.props.children:null:b);return ct.jsx(t,{...u,ref:s,children:ue.isValidElement(p)?ue.cloneElement(p,void 0,m):null})}return ct.jsx(t,{...u,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function fqr(e){const t=ue.forwardRef((r,a)=>{const{children:s,...o}=r;if(ue.isValidElement(s)){const u=bqr(s),h=mqr(o,s.props);return s.type!==ue.Fragment&&(h.ref=a?mA(a,u):u),ue.cloneElement(s,h)}return ue.Children.count(s)>1?ue.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FRn=Symbol("radix.slottable");function pqr(e){const t=({children:r})=>ct.jsx(ct.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=FRn,t}function gqr(e){return ue.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FRn}function mqr(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{const f=o(...h);return s(...h),f}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function bqr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yqr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Za=yqr.reduce((e,t)=>{const r=wF(`Primitive.${t}`),a=ue.forwardRef((s,o)=>{const{asChild:u,...h}=s,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(f,{...h,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function $Rn(e,t){e&&w9.flushSync(()=>e.dispatchEvent(t))}function iCe(e){const t=e+"CollectionProvider",[r,a]=Ng(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:A,children:k}=C,I=Er.useRef(null),N=Er.useRef(new Map).current;return ct.jsx(s,{scope:A,itemMap:N,collectionRef:I,children:k})};u.displayName=t;const h=e+"CollectionSlot",f=wF(h),p=Er.forwardRef((C,A)=>{const{scope:k,children:I}=C,N=o(h,k),L=Yo(A,N.collectionRef);return ct.jsx(f,{ref:L,children:I})});p.displayName=h;const m=e+"CollectionItemSlot",b="data-radix-collection-item",_=wF(m),w=Er.forwardRef((C,A)=>{const{scope:k,children:I,...N}=C,L=Er.useRef(null),P=Yo(A,L),M=o(m,k);return Er.useEffect(()=>(M.itemMap.set(L,{ref:L,...N}),()=>void M.itemMap.delete(L))),ct.jsx(_,{[b]:"",ref:P,children:I})});w.displayName=m;function S(C){const A=o(e+"CollectionConsumer",C);return Er.useCallback(()=>{const I=A.collectionRef.current;if(!I)return[];const N=Array.from(I.querySelectorAll(`[${b}]`));return Array.from(A.itemMap.values()).sort((M,F)=>N.indexOf(M.ref.current)-N.indexOf(F.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:u,Slot:p,ItemSlot:w},S,a]}var vqr=ue.createContext(void 0);function S9(e){const t=ue.useContext(vqr);return e||t||"ltr"}function _m(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function _qr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e);ue.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var wqr="DismissableLayer",Lst="dismissableLayer.update",Eqr="dismissableLayer.pointerDownOutside",xqr="dismissableLayer.focusOutside",G0n,URn=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CW=ue.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:u,onDismiss:h,...f}=e,p=ue.useContext(URn),[m,b]=ue.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=ue.useState({}),S=Yo(t,F=>b(F)),C=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=C.indexOf(A),I=m?C.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=I>=k,P=Cqr(F=>{const U=F.target,$=[...p.branches].some(G=>G.contains(U));!L||$||(s==null||s(F),u==null||u(F),F.defaultPrevented||h==null||h())},_),M=Aqr(F=>{const U=F.target;[...p.branches].some(G=>G.contains(U))||(o==null||o(F),u==null||u(F),F.defaultPrevented||h==null||h())},_);return _qr(F=>{I===p.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&h&&(F.preventDefault(),h()))},_),ue.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(G0n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),q0n(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=G0n)}},[m,_,r,p]),ue.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),q0n())},[m,p]),ue.useEffect(()=>{const F=()=>w({});return document.addEventListener(Lst,F),()=>document.removeEventListener(Lst,F)},[]),ct.jsx(Za.div,{...f,ref:S,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:ji(e.onFocusCapture,M.onFocusCapture),onBlurCapture:ji(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ji(e.onPointerDownCapture,P.onPointerDownCapture)})});CW.displayName=wqr;var Sqr="DismissableLayerBranch",Tqr=ue.forwardRef((e,t)=>{const r=ue.useContext(URn),a=ue.useRef(null),s=Yo(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),ct.jsx(Za.div,{...e,ref:s})});Tqr.displayName=Sqr;function Cqr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e),a=ue.useRef(!1),s=ue.useRef(()=>{});return ue.useEffect(()=>{const o=h=>{if(h.target&&!a.current){let f=function(){zRn(Eqr,r,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function Aqr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e),a=ue.useRef(!1);return ue.useEffect(()=>{const s=o=>{o.target&&!a.current&&zRn(xqr,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function q0n(){const e=new CustomEvent(Lst);document.dispatchEvent(e)}function zRn(e,t,r,{discrete:a}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?$Rn(s,o):s.dispatchEvent(o)}var QXe=0;function aCe(){ue.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??H0n()),document.body.insertAdjacentElement("beforeend",e[1]??H0n()),QXe++,()=>{QXe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),QXe--}},[])}function H0n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ZXe="focusScope.autoFocusOnMount",JXe="focusScope.autoFocusOnUnmount",V0n={bubbles:!1,cancelable:!0},kqr="FocusScope",Gle=ue.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...u}=e,[h,f]=ue.useState(null),p=_m(s),m=_m(o),b=ue.useRef(null),_=Yo(t,C=>f(C)),w=ue.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ue.useEffect(()=>{if(a){let C=function(N){if(w.paused||!h)return;const L=N.target;h.contains(L)?b.current=L:HN(b.current,{select:!0})},A=function(N){if(w.paused||!h)return;const L=N.relatedTarget;L!==null&&(h.contains(L)||HN(b.current,{select:!0}))},k=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&HN(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const I=new MutationObserver(k);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),I.disconnect()}}},[a,h,w.paused]),ue.useEffect(()=>{if(h){j0n.add(w);const C=document.activeElement;if(!h.contains(C)){const k=new CustomEvent(ZXe,V0n);h.addEventListener(ZXe,p),h.dispatchEvent(k),k.defaultPrevented||(Rqr(Dqr(GRn(h)),{select:!0}),document.activeElement===C&&HN(h))}return()=>{h.removeEventListener(ZXe,p),setTimeout(()=>{const k=new CustomEvent(JXe,V0n);h.addEventListener(JXe,m),h.dispatchEvent(k),k.defaultPrevented||HN(C??document.body,{select:!0}),h.removeEventListener(JXe,m),j0n.remove(w)},0)}}},[h,p,m,w]);const S=ue.useCallback(C=>{if(!r&&!a||w.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,k=document.activeElement;if(A&&k){const I=C.currentTarget,[N,L]=Iqr(I);N&&L?!C.shiftKey&&k===L?(C.preventDefault(),r&&HN(N,{select:!0})):C.shiftKey&&k===N&&(C.preventDefault(),r&&HN(L,{select:!0})):k===I&&C.preventDefault()}},[r,a,w.paused]);return ct.jsx(Za.div,{tabIndex:-1,...u,ref:_,onKeyDown:S})});Gle.displayName=kqr;function Rqr(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(HN(a,{select:t}),document.activeElement!==r)return}function Iqr(e){const t=GRn(e),r=Y0n(t,e),a=Y0n(t.reverse(),e);return[r,a]}function GRn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Y0n(e,t){for(const r of e)if(!Nqr(r,{upTo:t}))return r}function Nqr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Oqr(e){return e instanceof HTMLInputElement&&"select"in e}function HN(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Oqr(e)&&t&&e.select()}}var j0n=Lqr();function Lqr(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=W0n(e,t),e.unshift(t)},remove(t){var r;e=W0n(e,t),(r=e[0])==null||r.resume()}}}function W0n(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function Dqr(e){return e.filter(t=>t.tagName!=="A")}var Mqr=g$[" useId ".trim().toString()]||(()=>{}),Pqr=0;function I1(e){const[t,r]=ue.useState(Mqr());return Ig(()=>{r(a=>a??String(Pqr++))},[e]),t?`radix-${t}`:""}var Bqr="Arrow",qRn=ue.forwardRef((e,t)=>{const{children:r,width:a=10,height:s=5,...o}=e;return ct.jsx(Za.svg,{...o,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:ct.jsx("polygon",{points:"0,0 30,0 15,10"})})});qRn.displayName=Bqr;var Fqr=qRn;function sCe(e){const[t,r]=ue.useState(void 0);return Ig(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let u,h;if("borderBoxSize"in o){const f=o.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,h=p.blockSize}else u=e.offsetWidth,h=e.offsetHeight;r({width:u,height:h})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Oft="Popper",[HRn,T9]=Ng(Oft),[$qr,VRn]=HRn(Oft),YRn=e=>{const{__scopePopper:t,children:r}=e,[a,s]=ue.useState(null);return ct.jsx($qr,{scope:t,anchor:a,onAnchorChange:s,children:r})};YRn.displayName=Oft;var jRn="PopperAnchor",WRn=ue.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...s}=e,o=VRn(jRn,r),u=ue.useRef(null),h=Yo(t,u),f=ue.useRef(null);return ue.useEffect(()=>{const p=f.current;f.current=(a==null?void 0:a.current)||u.current,p!==f.current&&o.onAnchorChange(f.current)}),a?null:ct.jsx(Za.div,{...s,ref:h})});WRn.displayName=jRn;var Lft="PopperContent",[Uqr,zqr]=HRn(Lft),KRn=ue.forwardRef((e,t)=>{var ve,De,ye,Ee,he,we;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:o="center",alignOffset:u=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:S,...C}=e,A=VRn(Lft,r),[k,I]=ue.useState(null),N=Yo(t,Ce=>I(Ce)),[L,P]=ue.useState(null),M=sCe(L),F=(M==null?void 0:M.width)??0,U=(M==null?void 0:M.height)??0,$=a+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(p)?p:[p],Z=B.length>0,z={padding:G,boundary:B.filter(qqr),altBoundary:Z},{refs:Y,floatingStyles:W,placement:Q,isPositioned:V,middlewareData:j}=Zdt({strategy:"fixed",placement:$,whileElementsMounted:(...Ce)=>U6n(...Ce,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[G6n({mainAxis:s+U,alignmentAxis:u}),f&&q6n({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?H6n():void 0,...z}),f&&V6n({...z}),Y6n({...z,apply:({elements:Ce,rects:Ie,availableWidth:Le,availableHeight:Fe})=>{const{width:Ve,height:Oe}=Ie.reference,Dt=Ce.floating.style;Dt.setProperty("--radix-popper-available-width",`${Le}px`),Dt.setProperty("--radix-popper-available-height",`${Fe}px`),Dt.setProperty("--radix-popper-anchor-width",`${Ve}px`),Dt.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),L&&W6n({element:L,padding:h}),Hqr({arrowWidth:F,arrowHeight:U}),_&&j6n({strategy:"referenceHidden",...z})]}),[ee,te]=ZRn(Q),ne=_m(S);Ig(()=>{V&&(ne==null||ne())},[V,ne]);const se=(ve=j.arrow)==null?void 0:ve.x,ie=(De=j.arrow)==null?void 0:De.y,ge=((ye=j.arrow)==null?void 0:ye.centerOffset)!==0,[ce,be]=ue.useState();return Ig(()=>{k&&be(window.getComputedStyle(k).zIndex)},[k]),ct.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ee=j.transformOrigin)==null?void 0:Ee.x,(he=j.transformOrigin)==null?void 0:he.y].join(" "),...((we=j.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ct.jsx(Uqr,{scope:r,placedSide:ee,onArrowChange:P,arrowX:se,arrowY:ie,shouldHideArrow:ge,children:ct.jsx(Za.div,{"data-side":ee,"data-align":te,...C,ref:N,style:{...C.style,animation:V?void 0:"none"}})})})});KRn.displayName=Lft;var XRn="PopperArrow",Gqr={top:"bottom",right:"left",bottom:"top",left:"right"},QRn=ue.forwardRef(function(t,r){const{__scopePopper:a,...s}=t,o=zqr(XRn,a),u=Gqr[o.placedSide];return ct.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:ct.jsx(Fqr,{...s,ref:r,style:{...s.style,display:"block"}})})});QRn.displayName=XRn;function qqr(e){return e!==null}var Hqr=e=>({name:"transformOrigin",options:e,fn(t){var A,k,I;const{placement:r,rects:a,middlewareData:s}=t,u=((A=s.arrow)==null?void 0:A.centerOffset)!==0,h=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=ZRn(r),b={start:"0%",center:"50%",end:"100%"}[m],_=(((k=s.arrow)==null?void 0:k.x)??0)+h/2,w=(((I=s.arrow)==null?void 0:I.y)??0)+f/2;let S="",C="";return p==="bottom"?(S=u?b:`${_}px`,C=`${-f}px`):p==="top"?(S=u?b:`${_}px`,C=`${a.floating.height+f}px`):p==="right"?(S=`${-f}px`,C=u?b:`${w}px`):p==="left"&&(S=`${a.floating.width+f}px`,C=u?b:`${w}px`),{data:{x:S,y:C}}}});function ZRn(e){const[t,r="center"]=e.split("-");return[t,r]}var oCe=YRn,qle=WRn,lCe=KRn,cCe=QRn,Vqr="Portal",AW=ue.forwardRef((e,t)=>{var h;const{container:r,...a}=e,[s,o]=ue.useState(!1);Ig(()=>o(!0),[]);const u=r||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return u?odt.createPortal(ct.jsx(Za.div,{...a,ref:t}),u):null});AW.displayName=Vqr;function Yqr(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var D1=e=>{const{present:t,children:r}=e,a=jqr(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=Yo(a.ref,Wqr(s));return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};D1.displayName="Presence";function jqr(e){const[t,r]=ue.useState(),a=ue.useRef(null),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=Yqr(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=A_e(a.current);o.current=h==="mounted"?p:"none"},[h]),Ig(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=A_e(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),Ig(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,b=w=>{const C=A_e(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&C&&(f("ANIMATION_END"),!s.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},_=w=>{w.target===t&&(o.current=A_e(a.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{a.current=p?getComputedStyle(p):null,r(p)},[])}}function A_e(e){return(e==null?void 0:e.animationName)||"none"}function Wqr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var eQe="rovingFocusGroup.onEntryFocus",Kqr={bubbles:!1,cancelable:!0},Hle="RovingFocusGroup",[Dst,JRn,Xqr]=iCe(Hle),[Qqr,C9]=Ng(Hle,[Xqr]),[Zqr,Jqr]=Qqr(Hle),e8n=ue.forwardRef((e,t)=>ct.jsx(Dst.Provider,{scope:e.__scopeRovingFocusGroup,children:ct.jsx(Dst.Slot,{scope:e.__scopeRovingFocusGroup,children:ct.jsx(eHr,{...e,ref:t})})}));e8n.displayName=Hle;var eHr=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:s=!1,dir:o,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...b}=e,_=ue.useRef(null),w=Yo(t,_),S=S9(o),[C,A]=km({prop:u,defaultProp:h??null,onChange:f,caller:Hle}),[k,I]=ue.useState(!1),N=_m(p),L=JRn(r),P=ue.useRef(!1),[M,F]=ue.useState(0);return ue.useEffect(()=>{const U=_.current;if(U)return U.addEventListener(eQe,N),()=>U.removeEventListener(eQe,N)},[N]),ct.jsx(Zqr,{scope:r,orientation:a,dir:S,loop:s,currentTabStopId:C,onItemFocus:ue.useCallback(U=>A(U),[A]),onItemShiftTab:ue.useCallback(()=>I(!0),[]),onFocusableItemAdd:ue.useCallback(()=>F(U=>U+1),[]),onFocusableItemRemove:ue.useCallback(()=>F(U=>U-1),[]),children:ct.jsx(Za.div,{tabIndex:k||M===0?-1:0,"data-orientation":a,...b,ref:w,style:{outline:"none",...e.style},onMouseDown:ji(e.onMouseDown,()=>{P.current=!0}),onFocus:ji(e.onFocus,U=>{const $=!P.current;if(U.target===U.currentTarget&&$&&!k){const G=new CustomEvent(eQe,Kqr);if(U.currentTarget.dispatchEvent(G),!G.defaultPrevented){const B=L().filter(Q=>Q.focusable),Z=B.find(Q=>Q.active),z=B.find(Q=>Q.id===C),W=[Z,z,...B].filter(Boolean).map(Q=>Q.ref.current);r8n(W,m)}}P.current=!1}),onBlur:ji(e.onBlur,()=>I(!1))})})}),t8n="RovingFocusGroupItem",n8n=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:o,children:u,...h}=e,f=I1(),p=o||f,m=Jqr(t8n,r),b=m.currentTabStopId===p,_=JRn(r),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:C}=m;return ue.useEffect(()=>{if(a)return w(),()=>S()},[a,w,S]),ct.jsx(Dst.ItemSlot,{scope:r,id:p,focusable:a,active:s,children:ct.jsx(Za.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...h,ref:t,onMouseDown:ji(e.onMouseDown,A=>{a?m.onItemFocus(p):A.preventDefault()}),onFocus:ji(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:ji(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const k=rHr(A,m.orientation,m.dir);if(k!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let N=_().filter(L=>L.focusable).map(L=>L.ref.current);if(k==="last")N.reverse();else if(k==="prev"||k==="next"){k==="prev"&&N.reverse();const L=N.indexOf(A.currentTarget);N=m.loop?iHr(N,L+1):N.slice(L+1)}setTimeout(()=>r8n(N))}}),children:typeof u=="function"?u({isCurrentTabStop:b,hasTabStop:C!=null}):u})})});n8n.displayName=t8n;var tHr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nHr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rHr(e,t,r){const a=nHr(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return tHr[a]}function r8n(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function iHr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var uCe=e8n,hCe=n8n,aHr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},DH=new WeakMap,k_e=new WeakMap,R_e={},tQe=0,i8n=function(e){return e&&(e.host||i8n(e.parentNode))},sHr=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=i8n(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},oHr=function(e,t,r,a){var s=sHr(t,Array.isArray(e)?e:[e]);R_e[r]||(R_e[r]=new WeakMap);var o=R_e[r],u=[],h=new Set,f=new Set(s),p=function(b){!b||h.has(b)||(h.add(b),p(b.parentNode))};s.forEach(p);var m=function(b){!b||f.has(b)||Array.prototype.forEach.call(b.children,function(_){if(h.has(_))m(_);else try{var w=_.getAttribute(a),S=w!==null&&w!=="false",C=(DH.get(_)||0)+1,A=(o.get(_)||0)+1;DH.set(_,C),o.set(_,A),u.push(_),C===1&&S&&k_e.set(_,!0),A===1&&_.setAttribute(r,"true"),S||_.setAttribute(a,"true")}catch(k){console.error("aria-hidden: cannot operate on ",_,k)}})};return m(t),h.clear(),tQe++,function(){u.forEach(function(b){var _=DH.get(b)-1,w=o.get(b)-1;DH.set(b,_),o.set(b,w),_||(k_e.has(b)||b.removeAttribute(a),k_e.delete(b)),w||b.removeAttribute(r)}),tQe--,tQe||(DH=new WeakMap,DH=new WeakMap,k_e=new WeakMap,R_e={})}},Vle=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=aHr(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),oHr(a,s,r,"aria-hidden")):function(){return null}},HEe="right-scroll-bar-position",VEe="width-before-scroll-bar",lHr="with-scroll-bars-hidden",cHr="--removed-body-scroll-bar-size";function nQe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uHr(e,t){var r=ue.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=t,r.facade}var hHr=typeof window<"u"?ue.useLayoutEffect:ue.useEffect,K0n=new WeakMap;function dHr(e,t){var r=uHr(null,function(a){return e.forEach(function(s){return nQe(s,a)})});return hHr(function(){var a=K0n.get(r);if(a){var s=new Set(a),o=new Set(e),u=r.current;s.forEach(function(h){o.has(h)||nQe(h,null)}),o.forEach(function(h){s.has(h)||nQe(h,u)})}K0n.set(r,e)},[e]),r}function fHr(e){return e}function pHr(e,t){t===void 0&&(t=fHr);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var u=t(o,a);return r.push(u),function(){r=r.filter(function(h){return h!==u})}},assignSyncMedium:function(o){for(a=!0;r.length;){var u=r;r=[],u.forEach(o)}r={push:function(h){return o(h)},filter:function(){return r}}},assignMedium:function(o){a=!0;var u=[];if(r.length){var h=r;r=[],h.forEach(o),u=r}var f=function(){var m=u;u=[],m.forEach(o)},p=function(){return Promise.resolve().then(f)};p(),r={push:function(m){u.push(m),p()},filter:function(m){return u=u.filter(m),r}}}};return s}function gHr(e){e===void 0&&(e={});var t=pHr(null);return t.options=BC({async:!0,ssr:!1},e),t}var a8n=function(e){var t=e.sideCar,r=J6n(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return ue.createElement(a,BC({},r))};a8n.isSideCarExport=!0;function mHr(e,t){return e.useMedium(t),a8n}var s8n=gHr(),rQe=function(){},dCe=ue.forwardRef(function(e,t){var r=ue.useRef(null),a=ue.useState({onScrollCapture:rQe,onWheelCapture:rQe,onTouchMoveCapture:rQe}),s=a[0],o=a[1],u=e.forwardProps,h=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,b=e.shards,_=e.sideCar,w=e.noRelative,S=e.noIsolation,C=e.inert,A=e.allowPinchZoom,k=e.as,I=k===void 0?"div":k,N=e.gapMode,L=J6n(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=_,M=dHr([r,t]),F=BC(BC({},L),s);return ue.createElement(ue.Fragment,null,m&&ue.createElement(P,{sideCar:s8n,removeScrollBar:p,shards:b,noRelative:w,noIsolation:S,inert:C,setCallbacks:o,allowPinchZoom:!!A,lockRef:r,gapMode:N}),u?ue.cloneElement(ue.Children.only(h),BC(BC({},F),{ref:M})):ue.createElement(I,BC({},F,{className:f,ref:M}),h))});dCe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dCe.classNames={fullWidth:VEe,zeroRight:HEe};var bHr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yHr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bHr();return t&&e.setAttribute("nonce",t),e}function vHr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _Hr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wHr=function(){var e=0,t=null;return{add:function(r){e==0&&(t=yHr())&&(vHr(t,r),_Hr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},EHr=function(){var e=wHr();return function(t,r){ue.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},o8n=function(){var e=EHr(),t=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return t},xHr={left:0,top:0,right:0,gap:0},iQe=function(e){return parseInt(e||"",10)||0},SHr=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[iQe(r),iQe(a),iQe(s)]},THr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xHr;var t=SHr(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}},CHr=o8n(),HV="data-scroll-locked",AHr=function(e,t,r,a){var s=e.left,o=e.top,u=e.right,h=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(lHr,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(h,"px ").concat(a,`;
  }
  body[`).concat(HV,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(o,`px;
    padding-right: `).concat(u,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(h,"px ").concat(a,`;
    `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(HEe,` {
    right: `).concat(h,"px ").concat(a,`;
  }
  
  .`).concat(VEe,` {
    margin-right: `).concat(h,"px ").concat(a,`;
  }
  
  .`).concat(HEe," .").concat(HEe,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(VEe," .").concat(VEe,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(HV,`] {
    `).concat(cHr,": ").concat(h,`px;
  }
`)},X0n=function(){var e=parseInt(document.body.getAttribute(HV)||"0",10);return isFinite(e)?e:0},kHr=function(){ue.useEffect(function(){return document.body.setAttribute(HV,(X0n()+1).toString()),function(){var e=X0n()-1;e<=0?document.body.removeAttribute(HV):document.body.setAttribute(HV,e.toString())}},[])},RHr=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;kHr();var o=ue.useMemo(function(){return THr(s)},[s]);return ue.createElement(CHr,{styles:AHr(o,!t,s,r?"":"!important")})},Mst=!1;if(typeof window<"u")try{var I_e=Object.defineProperty({},"passive",{get:function(){return Mst=!0,!0}});window.addEventListener("test",I_e,I_e),window.removeEventListener("test",I_e,I_e)}catch{Mst=!1}var MH=Mst?{passive:!1}:!1,IHr=function(e){return e.tagName==="TEXTAREA"},l8n=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!IHr(e)&&r[t]==="visible")},NHr=function(e){return l8n(e,"overflowY")},OHr=function(e){return l8n(e,"overflowX")},Q0n=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=c8n(e,a);if(s){var o=u8n(e,a),u=o[1],h=o[2];if(u>h)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},LHr=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},DHr=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},c8n=function(e,t){return e==="v"?NHr(t):OHr(t)},u8n=function(e,t){return e==="v"?LHr(t):DHr(t)},MHr=function(e,t){return e==="h"&&t==="rtl"?-1:1},PHr=function(e,t,r,a,s){var o=MHr(e,window.getComputedStyle(t).direction),u=o*a,h=r.target,f=t.contains(h),p=!1,m=u>0,b=0,_=0;do{if(!h)break;var w=u8n(e,h),S=w[0],C=w[1],A=w[2],k=C-A-o*S;(S||k)&&c8n(e,h)&&(b+=k,_+=S);var I=h.parentNode;h=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!f&&h!==document.body||f&&(t.contains(h)||t===h));return(m&&Math.abs(b)<1||!m&&Math.abs(_)<1)&&(p=!0),p},N_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z0n=function(e){return[e.deltaX,e.deltaY]},J0n=function(e){return e&&"current"in e?e.current:e},BHr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FHr=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},$Hr=0,PH=[];function UHr(e){var t=ue.useRef([]),r=ue.useRef([0,0]),a=ue.useRef(),s=ue.useState($Hr++)[0],o=ue.useState(o8n)[0],u=ue.useRef(e);ue.useEffect(function(){u.current=e},[e]),ue.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var C=FFr([e.lockRef.current],(e.shards||[]).map(J0n),!0).filter(Boolean);return C.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=ue.useCallback(function(C,A){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!u.current.allowPinchZoom;var k=N_e(C),I=r.current,N="deltaX"in C?C.deltaX:I[0]-k[0],L="deltaY"in C?C.deltaY:I[1]-k[1],P,M=C.target,F=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in C&&F==="h"&&M.type==="range")return!1;var U=window.getSelection(),$=U&&U.anchorNode,G=$?$===M||$.contains(M):!1;if(G)return!1;var B=Q0n(F,M);if(!B)return!0;if(B?P=F:(P=F==="v"?"h":"v",B=Q0n(F,M)),!B)return!1;if(!a.current&&"changedTouches"in C&&(N||L)&&(a.current=P),!P)return!0;var Z=a.current||P;return PHr(Z,A,C,Z==="h"?N:L)},[]),f=ue.useCallback(function(C){var A=C;if(!(!PH.length||PH[PH.length-1]!==o)){var k="deltaY"in A?Z0n(A):N_e(A),I=t.current.filter(function(P){return P.name===A.type&&(P.target===A.target||A.target===P.shadowParent)&&BHr(P.delta,k)})[0];if(I&&I.should){A.cancelable&&A.preventDefault();return}if(!I){var N=(u.current.shards||[]).map(J0n).filter(Boolean).filter(function(P){return P.contains(A.target)}),L=N.length>0?h(A,N[0]):!u.current.noIsolation;L&&A.cancelable&&A.preventDefault()}}},[]),p=ue.useCallback(function(C,A,k,I){var N={name:C,delta:A,target:k,should:I,shadowParent:zHr(k)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),m=ue.useCallback(function(C){r.current=N_e(C),a.current=void 0},[]),b=ue.useCallback(function(C){p(C.type,Z0n(C),C.target,h(C,e.lockRef.current))},[]),_=ue.useCallback(function(C){p(C.type,N_e(C),C.target,h(C,e.lockRef.current))},[]);ue.useEffect(function(){return PH.push(o),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:_}),document.addEventListener("wheel",f,MH),document.addEventListener("touchmove",f,MH),document.addEventListener("touchstart",m,MH),function(){PH=PH.filter(function(C){return C!==o}),document.removeEventListener("wheel",f,MH),document.removeEventListener("touchmove",f,MH),document.removeEventListener("touchstart",m,MH)}},[]);var w=e.removeScrollBar,S=e.inert;return ue.createElement(ue.Fragment,null,S?ue.createElement(o,{styles:FHr(s)}):null,w?ue.createElement(RHr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zHr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GHr=mHr(s8n,UHr);var kW=ue.forwardRef(function(e,t){return ue.createElement(dCe,BC({},e,{ref:t,sideCar:GHr}))});kW.classNames=dCe.classNames;var Pst=["Enter"," "],qHr=["ArrowDown","PageUp","Home"],h8n=["ArrowUp","PageDown","End"],HHr=[...qHr,...h8n],VHr={ltr:[...Pst,"ArrowRight"],rtl:[...Pst,"ArrowLeft"]},YHr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yle="Menu",[Zse,jHr,WHr]=iCe(Yle),[y$,d8n]=Ng(Yle,[WHr,T9,C9]),fCe=T9(),f8n=C9(),[KHr,v$]=y$(Yle),[XHr,jle]=y$(Yle),p8n=e=>{const{__scopeMenu:t,open:r=!1,children:a,dir:s,onOpenChange:o,modal:u=!0}=e,h=fCe(t),[f,p]=ue.useState(null),m=ue.useRef(!1),b=_m(o),_=S9(s);return ue.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),ct.jsx(oCe,{...h,children:ct.jsx(KHr,{scope:t,open:r,onOpenChange:b,content:f,onContentChange:p,children:ct.jsx(XHr,{scope:t,onClose:ue.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:m,dir:_,modal:u,children:a})})})};p8n.displayName=Yle;var QHr="MenuAnchor",Dft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e,s=fCe(r);return ct.jsx(qle,{...s,...a,ref:t})});Dft.displayName=QHr;var Mft="MenuPortal",[ZHr,g8n]=y$(Mft,{forceMount:void 0}),m8n=e=>{const{__scopeMenu:t,forceMount:r,children:a,container:s}=e,o=v$(Mft,t);return ct.jsx(ZHr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};m8n.displayName=Mft;var uS="MenuContent",[JHr,Pft]=y$(uS),b8n=ue.forwardRef((e,t)=>{const r=g8n(uS,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,o=v$(uS,e.__scopeMenu),u=jle(uS,e.__scopeMenu);return ct.jsx(Zse.Provider,{scope:e.__scopeMenu,children:ct.jsx(D1,{present:a||o.open,children:ct.jsx(Zse.Slot,{scope:e.__scopeMenu,children:u.modal?ct.jsx(eVr,{...s,ref:t}):ct.jsx(tVr,{...s,ref:t})})})})}),eVr=ue.forwardRef((e,t)=>{const r=v$(uS,e.__scopeMenu),a=ue.useRef(null),s=Yo(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return Vle(o)},[]),ct.jsx(Bft,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ji(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tVr=ue.forwardRef((e,t)=>{const r=v$(uS,e.__scopeMenu);return ct.jsx(Bft,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),nVr=wF("MenuContent.ScrollLock"),Bft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:h,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:w,disableOutsideScroll:S,...C}=e,A=v$(uS,r),k=jle(uS,r),I=fCe(r),N=f8n(r),L=jHr(r),[P,M]=ue.useState(null),F=ue.useRef(null),U=Yo(t,F,A.onContentChange),$=ue.useRef(0),G=ue.useRef(""),B=ue.useRef(0),Z=ue.useRef(null),z=ue.useRef("right"),Y=ue.useRef(0),W=S?kW:ue.Fragment,Q=S?{as:nVr,allowPinchZoom:!0}:void 0,V=ee=>{var ve,De;const te=G.current+ee,ne=L().filter(ye=>!ye.disabled),se=document.activeElement,ie=(ve=ne.find(ye=>ye.ref.current===se))==null?void 0:ve.textValue,ge=ne.map(ye=>ye.textValue),ce=pVr(ge,te,ie),be=(De=ne.find(ye=>ye.textValue===ce))==null?void 0:De.ref.current;(function ye(Ee){G.current=Ee,window.clearTimeout($.current),Ee!==""&&($.current=window.setTimeout(()=>ye(""),1e3))})(te),be&&setTimeout(()=>be.focus())};ue.useEffect(()=>()=>window.clearTimeout($.current),[]),aCe();const j=ue.useCallback(ee=>{var ne,se;return z.current===((ne=Z.current)==null?void 0:ne.side)&&mVr(ee,(se=Z.current)==null?void 0:se.area)},[]);return ct.jsx(JHr,{scope:r,searchRef:G,onItemEnter:ue.useCallback(ee=>{j(ee)&&ee.preventDefault()},[j]),onItemLeave:ue.useCallback(ee=>{var te;j(ee)||((te=F.current)==null||te.focus(),M(null))},[j]),onTriggerLeave:ue.useCallback(ee=>{j(ee)&&ee.preventDefault()},[j]),pointerGraceTimerRef:B,onPointerGraceIntentChange:ue.useCallback(ee=>{Z.current=ee},[]),children:ct.jsx(W,{...Q,children:ct.jsx(Gle,{asChild:!0,trapped:s,onMountAutoFocus:ji(o,ee=>{var te;ee.preventDefault(),(te=F.current)==null||te.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:w,children:ct.jsx(uCe,{asChild:!0,...N,dir:k.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:M,onEntryFocus:ji(f,ee=>{k.isUsingKeyboardRef.current||ee.preventDefault()}),preventScrollOnEntryFocus:!0,children:ct.jsx(lCe,{role:"menu","aria-orientation":"vertical","data-state":L8n(A.open),"data-radix-menu-content":"",dir:k.dir,...I,...C,ref:U,style:{outline:"none",...C.style},onKeyDown:ji(C.onKeyDown,ee=>{const ne=ee.target.closest("[data-radix-menu-content]")===ee.currentTarget,se=ee.ctrlKey||ee.altKey||ee.metaKey,ie=ee.key.length===1;ne&&(ee.key==="Tab"&&ee.preventDefault(),!se&&ie&&V(ee.key));const ge=F.current;if(ee.target!==ge||!HHr.includes(ee.key))return;ee.preventDefault();const be=L().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);h8n.includes(ee.key)&&be.reverse(),dVr(be)}),onBlur:ji(e.onBlur,ee=>{ee.currentTarget.contains(ee.target)||(window.clearTimeout($.current),G.current="")}),onPointerMove:ji(e.onPointerMove,Jse(ee=>{const te=ee.target,ne=Y.current!==ee.clientX;if(ee.currentTarget.contains(te)&&ne){const se=ee.clientX>Y.current?"right":"left";z.current=se,Y.current=ee.clientX}}))})})})})})})});b8n.displayName=uS;var rVr="MenuGroup",Fft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{role:"group",...a,ref:t})});Fft.displayName=rVr;var iVr="MenuLabel",y8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{...a,ref:t})});y8n.displayName=iVr;var GSe="MenuItem",e1n="menu.itemSelect",pCe=ue.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:a,...s}=e,o=ue.useRef(null),u=jle(GSe,e.__scopeMenu),h=Pft(GSe,e.__scopeMenu),f=Yo(t,o),p=ue.useRef(!1),m=()=>{const b=o.current;if(!r&&b){const _=new CustomEvent(e1n,{bubbles:!0,cancelable:!0});b.addEventListener(e1n,w=>a==null?void 0:a(w),{once:!0}),$Rn(b,_),_.defaultPrevented?p.current=!1:u.onClose()}};return ct.jsx(v8n,{...s,ref:f,disabled:r,onClick:ji(e.onClick,m),onPointerDown:b=>{var _;(_=e.onPointerDown)==null||_.call(e,b),p.current=!0},onPointerUp:ji(e.onPointerUp,b=>{var _;p.current||(_=b.currentTarget)==null||_.click()}),onKeyDown:ji(e.onKeyDown,b=>{const _=h.searchRef.current!=="";r||_&&b.key===" "||Pst.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});pCe.displayName=GSe;var v8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:a=!1,textValue:s,...o}=e,u=Pft(GSe,r),h=f8n(r),f=ue.useRef(null),p=Yo(t,f),[m,b]=ue.useState(!1),[_,w]=ue.useState("");return ue.useEffect(()=>{const S=f.current;S&&w((S.textContent??"").trim())},[o.children]),ct.jsx(Zse.ItemSlot,{scope:r,disabled:a,textValue:s??_,children:ct.jsx(hCe,{asChild:!0,...h,focusable:!a,children:ct.jsx(Za.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:p,onPointerMove:ji(e.onPointerMove,Jse(S=>{a?u.onItemLeave(S):(u.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ji(e.onPointerLeave,Jse(S=>u.onItemLeave(S))),onFocus:ji(e.onFocus,()=>b(!0)),onBlur:ji(e.onBlur,()=>b(!1))})})})}),aVr="MenuCheckboxItem",_8n=ue.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:a,...s}=e;return ct.jsx(T8n,{scope:e.__scopeMenu,checked:r,children:ct.jsx(pCe,{role:"menuitemcheckbox","aria-checked":qSe(r)?"mixed":r,...s,ref:t,"data-state":Uft(r),onSelect:ji(s.onSelect,()=>a==null?void 0:a(qSe(r)?!0:!r),{checkForDefaultPrevented:!1})})})});_8n.displayName=aVr;var w8n="MenuRadioGroup",[sVr,oVr]=y$(w8n,{value:void 0,onValueChange:()=>{}}),E8n=ue.forwardRef((e,t)=>{const{value:r,onValueChange:a,...s}=e,o=_m(a);return ct.jsx(sVr,{scope:e.__scopeMenu,value:r,onValueChange:o,children:ct.jsx(Fft,{...s,ref:t})})});E8n.displayName=w8n;var x8n="MenuRadioItem",S8n=ue.forwardRef((e,t)=>{const{value:r,...a}=e,s=oVr(x8n,e.__scopeMenu),o=r===s.value;return ct.jsx(T8n,{scope:e.__scopeMenu,checked:o,children:ct.jsx(pCe,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":Uft(o),onSelect:ji(a.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,r)},{checkForDefaultPrevented:!1})})})});S8n.displayName=x8n;var $ft="MenuItemIndicator",[T8n,lVr]=y$($ft,{checked:!1}),C8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:a,...s}=e,o=lVr($ft,r);return ct.jsx(D1,{present:a||qSe(o.checked)||o.checked===!0,children:ct.jsx(Za.span,{...s,ref:t,"data-state":Uft(o.checked)})})});C8n.displayName=$ft;var cVr="MenuSeparator",A8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});A8n.displayName=cVr;var uVr="MenuArrow",k8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e,s=fCe(r);return ct.jsx(cCe,{...s,...a,ref:t})});k8n.displayName=uVr;var hVr="MenuSub",[S3a,R8n]=y$(hVr),Cie="MenuSubTrigger",I8n=ue.forwardRef((e,t)=>{const r=v$(Cie,e.__scopeMenu),a=jle(Cie,e.__scopeMenu),s=R8n(Cie,e.__scopeMenu),o=Pft(Cie,e.__scopeMenu),u=ue.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:f}=o,p={__scopeMenu:e.__scopeMenu},m=ue.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return ue.useEffect(()=>m,[m]),ue.useEffect(()=>{const b=h.current;return()=>{window.clearTimeout(b),f(null)}},[h,f]),ct.jsx(Dft,{asChild:!0,...p,children:ct.jsx(v8n,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":L8n(r.open),...e,ref:mA(t,s.onTriggerChange),onClick:b=>{var _;(_=e.onClick)==null||_.call(e,b),!(e.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ji(e.onPointerMove,Jse(b=>{o.onItemEnter(b),!b.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(o.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:ji(e.onPointerLeave,Jse(b=>{var w,S;m();const _=(w=r.content)==null?void 0:w.getBoundingClientRect();if(_){const C=(S=r.content)==null?void 0:S.dataset.side,A=C==="right",k=A?-5:5,I=_[A?"left":"right"],N=_[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:b.clientX+k,y:b.clientY},{x:I,y:_.top},{x:N,y:_.top},{x:N,y:_.bottom},{x:I,y:_.bottom}],side:C}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(b),b.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:ji(e.onKeyDown,b=>{var w;const _=o.searchRef.current!=="";e.disabled||_&&b.key===" "||VHr[a.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});I8n.displayName=Cie;var N8n="MenuSubContent",O8n=ue.forwardRef((e,t)=>{const r=g8n(uS,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,o=v$(uS,e.__scopeMenu),u=jle(uS,e.__scopeMenu),h=R8n(N8n,e.__scopeMenu),f=ue.useRef(null),p=Yo(t,f);return ct.jsx(Zse.Provider,{scope:e.__scopeMenu,children:ct.jsx(D1,{present:a||o.open,children:ct.jsx(Zse.Slot,{scope:e.__scopeMenu,children:ct.jsx(Bft,{id:h.contentId,"aria-labelledby":h.triggerId,...s,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var b;u.isUsingKeyboardRef.current&&((b=f.current)==null||b.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ji(e.onFocusOutside,m=>{m.target!==h.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ji(e.onEscapeKeyDown,m=>{u.onClose(),m.preventDefault()}),onKeyDown:ji(e.onKeyDown,m=>{var w;const b=m.currentTarget.contains(m.target),_=YHr[u.dir].includes(m.key);b&&_&&(o.onOpenChange(!1),(w=h.trigger)==null||w.focus(),m.preventDefault())})})})})})});O8n.displayName=N8n;function L8n(e){return e?"open":"closed"}function qSe(e){return e==="indeterminate"}function Uft(e){return qSe(e)?"indeterminate":e?"checked":"unchecked"}function dVr(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function fVr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}function pVr(e,t,r){const s=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let u=fVr(e,Math.max(o,0));s.length===1&&(u=u.filter(p=>p!==r));const f=u.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return f!==r?f:void 0}function gVr(e,t){const{x:r,y:a}=e;let s=!1;for(let o=0,u=t.length-1;o<t.length;u=o++){const h=t[o],f=t[u],p=h.x,m=h.y,b=f.x,_=f.y;m>a!=_>a&&r<(b-p)*(a-m)/(_-m)+p&&(s=!s)}return s}function mVr(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return gVr(r,t)}function Jse(e){return t=>t.pointerType==="mouse"?e(t):void 0}var bVr=p8n,yVr=Dft,vVr=m8n,_Vr=b8n,wVr=Fft,EVr=y8n,xVr=pCe,SVr=_8n,TVr=E8n,CVr=S8n,AVr=C8n,kVr=A8n,RVr=k8n,IVr=I8n,NVr=O8n,gCe="DropdownMenu",[OVr]=Ng(gCe,[d8n]),gv=d8n(),[LVr,D8n]=OVr(gCe),M8n=e=>{const{__scopeDropdownMenu:t,children:r,dir:a,open:s,defaultOpen:o,onOpenChange:u,modal:h=!0}=e,f=gv(t),p=ue.useRef(null),[m,b]=km({prop:s,defaultProp:o??!1,onChange:u,caller:gCe});return ct.jsx(LVr,{scope:t,triggerId:I1(),triggerRef:p,contentId:I1(),open:m,onOpenChange:b,onOpenToggle:ue.useCallback(()=>b(_=>!_),[b]),modal:h,children:ct.jsx(bVr,{...f,open:m,onOpenChange:b,dir:a,modal:h,children:r})})};M8n.displayName=gCe;var P8n="DropdownMenuTrigger",B8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:a=!1,...s}=e,o=D8n(P8n,r),u=gv(r);return ct.jsx(yVr,{asChild:!0,...u,children:ct.jsx(Za.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...s,ref:mA(t,o.triggerRef),onPointerDown:ji(e.onPointerDown,h=>{!a&&h.button===0&&h.ctrlKey===!1&&(o.onOpenToggle(),o.open||h.preventDefault())}),onKeyDown:ji(e.onKeyDown,h=>{a||(["Enter"," "].includes(h.key)&&o.onOpenToggle(),h.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});B8n.displayName=P8n;var DVr="DropdownMenuPortal",F8n=e=>{const{__scopeDropdownMenu:t,...r}=e,a=gv(t);return ct.jsx(vVr,{...a,...r})};F8n.displayName=DVr;var $8n="DropdownMenuContent",U8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=D8n($8n,r),o=gv(r),u=ue.useRef(!1);return ct.jsx(_Vr,{id:s.contentId,"aria-labelledby":s.triggerId,...o,...a,ref:t,onCloseAutoFocus:ji(e.onCloseAutoFocus,h=>{var f;u.current||(f=s.triggerRef.current)==null||f.focus(),u.current=!1,h.preventDefault()}),onInteractOutside:ji(e.onInteractOutside,h=>{const f=h.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,m=f.button===2||p;(!s.modal||m)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});U8n.displayName=$8n;var MVr="DropdownMenuGroup",PVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(wVr,{...s,...a,ref:t})});PVr.displayName=MVr;var BVr="DropdownMenuLabel",z8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(EVr,{...s,...a,ref:t})});z8n.displayName=BVr;var FVr="DropdownMenuItem",G8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(xVr,{...s,...a,ref:t})});G8n.displayName=FVr;var $Vr="DropdownMenuCheckboxItem",q8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(SVr,{...s,...a,ref:t})});q8n.displayName=$Vr;var UVr="DropdownMenuRadioGroup",zVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(TVr,{...s,...a,ref:t})});zVr.displayName=UVr;var GVr="DropdownMenuRadioItem",H8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(CVr,{...s,...a,ref:t})});H8n.displayName=GVr;var qVr="DropdownMenuItemIndicator",V8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(AVr,{...s,...a,ref:t})});V8n.displayName=qVr;var HVr="DropdownMenuSeparator",Y8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(kVr,{...s,...a,ref:t})});Y8n.displayName=HVr;var VVr="DropdownMenuArrow",YVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(RVr,{...s,...a,ref:t})});YVr.displayName=VVr;var jVr="DropdownMenuSubTrigger",j8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(IVr,{...s,...a,ref:t})});j8n.displayName=jVr;var WVr="DropdownMenuSubContent",W8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(NVr,{...s,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});W8n.displayName=WVr;var T3a=M8n,C3a=B8n,A3a=F8n,k3a=U8n,R3a=z8n,I3a=G8n,N3a=q8n,O3a=H8n,L3a=V8n,D3a=Y8n,M3a=j8n,P3a=W8n,KVr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],RA=KVr.reduce((e,t)=>{const r=TRn(`Primitive.${t}`),a=ue.forwardRef((s,o)=>{const{asChild:u,...h}=s,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(f,{...h,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),XVr="Label",K8n=ue.forwardRef((e,t)=>ct.jsx(RA.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));K8n.displayName=XVr;var B3a=K8n,X8n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),QVr="VisuallyHidden",Q8n=ue.forwardRef((e,t)=>ct.jsx(Za.span,{...e,ref:t,style:{...X8n,...e.style}}));Q8n.displayName=QVr;var ZVr=Q8n,[mCe]=Ng("Tooltip",[T9]),bCe=T9(),Z8n="TooltipProvider",JVr=700,Bst="tooltip.open",[eYr,zft]=mCe(Z8n),J8n=e=>{const{__scopeTooltip:t,delayDuration:r=JVr,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:o}=e,u=ue.useRef(!0),h=ue.useRef(!1),f=ue.useRef(0);return ue.useEffect(()=>{const p=f.current;return()=>window.clearTimeout(p)},[]),ct.jsx(eYr,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:ue.useCallback(()=>{window.clearTimeout(f.current),u.current=!1},[]),onClose:ue.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:h,onPointerInTransitChange:ue.useCallback(p=>{h.current=p},[]),disableHoverableContent:s,children:o})};J8n.displayName=Z8n;var eoe="Tooltip",[tYr,Wle]=mCe(eoe),eIn=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:s,onOpenChange:o,disableHoverableContent:u,delayDuration:h}=e,f=zft(eoe,e.__scopeTooltip),p=bCe(t),[m,b]=ue.useState(null),_=I1(),w=ue.useRef(0),S=u??f.disableHoverableContent,C=h??f.delayDuration,A=ue.useRef(!1),[k,I]=km({prop:a,defaultProp:s??!1,onChange:F=>{F?(f.onOpen(),document.dispatchEvent(new CustomEvent(Bst))):f.onClose(),o==null||o(F)},caller:eoe}),N=ue.useMemo(()=>k?A.current?"delayed-open":"instant-open":"closed",[k]),L=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,I(!0)},[I]),P=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=0,I(!1)},[I]),M=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,I(!0),w.current=0},C)},[C,I]);return ue.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),ct.jsx(oCe,{...p,children:ct.jsx(tYr,{scope:t,contentId:_,open:k,stateAttribute:N,trigger:m,onTriggerChange:b,onTriggerEnter:ue.useCallback(()=>{f.isOpenDelayedRef.current?M():L()},[f.isOpenDelayedRef,M,L]),onTriggerLeave:ue.useCallback(()=>{S?P():(window.clearTimeout(w.current),w.current=0)},[P,S]),onOpen:L,onClose:P,disableHoverableContent:S,children:r})})};eIn.displayName=eoe;var Fst="TooltipTrigger",tIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,s=Wle(Fst,r),o=zft(Fst,r),u=bCe(r),h=ue.useRef(null),f=Yo(t,h,s.onTriggerChange),p=ue.useRef(!1),m=ue.useRef(!1),b=ue.useCallback(()=>p.current=!1,[]);return ue.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),ct.jsx(qle,{asChild:!0,...u,children:ct.jsx(Za.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:f,onPointerMove:ji(e.onPointerMove,_=>{_.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:ji(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:ji(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ji(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:ji(e.onBlur,s.onClose),onClick:ji(e.onClick,s.onClose)})})});tIn.displayName=Fst;var Gft="TooltipPortal",[nYr,rYr]=mCe(Gft,{forceMount:void 0}),nIn=e=>{const{__scopeTooltip:t,forceMount:r,children:a,container:s}=e,o=Wle(Gft,t);return ct.jsx(nYr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};nIn.displayName=Gft;var vj="TooltipContent",rIn=ue.forwardRef((e,t)=>{const r=rYr(vj,e.__scopeTooltip),{forceMount:a=r.forceMount,side:s="top",...o}=e,u=Wle(vj,e.__scopeTooltip);return ct.jsx(D1,{present:a||u.open,children:u.disableHoverableContent?ct.jsx(iIn,{side:s,...o,ref:t}):ct.jsx(iYr,{side:s,...o,ref:t})})}),iYr=ue.forwardRef((e,t)=>{const r=Wle(vj,e.__scopeTooltip),a=zft(vj,e.__scopeTooltip),s=ue.useRef(null),o=Yo(t,s),[u,h]=ue.useState(null),{trigger:f,onClose:p}=r,m=s.current,{onPointerInTransitChange:b}=a,_=ue.useCallback(()=>{h(null),b(!1)},[b]),w=ue.useCallback((S,C)=>{const A=S.currentTarget,k={x:S.clientX,y:S.clientY},I=lYr(k,A.getBoundingClientRect()),N=cYr(k,I),L=uYr(C.getBoundingClientRect()),P=dYr([...N,...L]);h(P),b(!0)},[b]);return ue.useEffect(()=>()=>_(),[_]),ue.useEffect(()=>{if(f&&m){const S=A=>w(A,m),C=A=>w(A,f);return f.addEventListener("pointerleave",S),m.addEventListener("pointerleave",C),()=>{f.removeEventListener("pointerleave",S),m.removeEventListener("pointerleave",C)}}},[f,m,w,_]),ue.useEffect(()=>{if(u){const S=C=>{const A=C.target,k={x:C.clientX,y:C.clientY},I=(f==null?void 0:f.contains(A))||(m==null?void 0:m.contains(A)),N=!hYr(k,u);I?_():N&&(_(),p())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,m,u,p,_]),ct.jsx(iIn,{...e,ref:o})}),[aYr,sYr]=mCe(eoe,{isInside:!1}),oYr=pqr("TooltipContent"),iIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:u,...h}=e,f=Wle(vj,r),p=bCe(r),{onClose:m}=f;return ue.useEffect(()=>(document.addEventListener(Bst,m),()=>document.removeEventListener(Bst,m)),[m]),ue.useEffect(()=>{if(f.trigger){const b=_=>{const w=_.target;w!=null&&w.contains(f.trigger)&&m()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[f.trigger,m]),ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:b=>b.preventDefault(),onDismiss:m,children:ct.jsxs(lCe,{"data-state":f.stateAttribute,...p,...h,ref:t,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[ct.jsx(oYr,{children:a}),ct.jsx(aYr,{scope:r,isInside:!0,children:ct.jsx(ZVr,{id:f.contentId,role:"tooltip",children:s||a})})]})})});rIn.displayName=vj;var aIn="TooltipArrow",sIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,s=bCe(r);return sYr(aIn,r).isInside?null:ct.jsx(cCe,{...s,...a,ref:t})});sIn.displayName=aIn;function lYr(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,a,s,o)){case o:return"left";case s:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function cYr(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function uYr(e){const{top:t,right:r,bottom:a,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:a},{x:s,y:a}]}function hYr(e,t){const{x:r,y:a}=e;let s=!1;for(let o=0,u=t.length-1;o<t.length;u=o++){const h=t[o],f=t[u],p=h.x,m=h.y,b=f.x,_=f.y;m>a!=_>a&&r<(b-p)*(a-m)/(_-m)+p&&(s=!s)}return s}function dYr(e){const t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),fYr(t)}function fYr(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const s=e[a];for(;t.length>=2;){const o=t[t.length-1],u=t[t.length-2];if((o.x-u.x)*(s.y-u.y)>=(o.y-u.y)*(s.x-u.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const s=e[a];for(;r.length>=2;){const o=r[r.length-1],u=r[r.length-2];if((o.x-u.x)*(s.y-u.y)>=(o.y-u.y)*(s.x-u.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var F3a=J8n,$3a=eIn,U3a=tIn,z3a=nIn,G3a=rIn,q3a=sIn,yCe="Popover",[oIn]=Ng(yCe,[T9]),Kle=T9(),[pYr,A9]=oIn(yCe),lIn=e=>{const{__scopePopover:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!1}=e,h=Kle(t),f=ue.useRef(null),[p,m]=ue.useState(!1),[b,_]=km({prop:a,defaultProp:s??!1,onChange:o,caller:yCe});return ct.jsx(oCe,{...h,children:ct.jsx(pYr,{scope:t,contentId:I1(),triggerRef:f,open:b,onOpenChange:_,onOpenToggle:ue.useCallback(()=>_(w=>!w),[_]),hasCustomAnchor:p,onCustomAnchorAdd:ue.useCallback(()=>m(!0),[]),onCustomAnchorRemove:ue.useCallback(()=>m(!1),[]),modal:u,children:r})})};lIn.displayName=yCe;var cIn="PopoverAnchor",gYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(cIn,r),o=Kle(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:h}=s;return ue.useEffect(()=>(u(),()=>h()),[u,h]),ct.jsx(qle,{...o,...a,ref:t})});gYr.displayName=cIn;var uIn="PopoverTrigger",hIn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(uIn,r),o=Kle(r),u=Yo(t,s.triggerRef),h=ct.jsx(Za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mIn(s.open),...a,ref:u,onClick:ji(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:ct.jsx(qle,{asChild:!0,...o,children:h})});hIn.displayName=uIn;var qft="PopoverPortal",[mYr,bYr]=oIn(qft,{forceMount:void 0}),dIn=e=>{const{__scopePopover:t,forceMount:r,children:a,container:s}=e,o=A9(qft,t);return ct.jsx(mYr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};dIn.displayName=qft;var _j="PopoverContent",fIn=ue.forwardRef((e,t)=>{const r=bYr(_j,e.__scopePopover),{forceMount:a=r.forceMount,...s}=e,o=A9(_j,e.__scopePopover);return ct.jsx(D1,{present:a||o.open,children:o.modal?ct.jsx(vYr,{...s,ref:t}):ct.jsx(_Yr,{...s,ref:t})})});fIn.displayName=_j;var yYr=wF("PopoverContent.RemoveScroll"),vYr=ue.forwardRef((e,t)=>{const r=A9(_j,e.__scopePopover),a=ue.useRef(null),s=Yo(t,a),o=ue.useRef(!1);return ue.useEffect(()=>{const u=a.current;if(u)return Vle(u)},[]),ct.jsx(kW,{as:yYr,allowPinchZoom:!0,children:ct.jsx(pIn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ji(e.onCloseAutoFocus,u=>{var h;u.preventDefault(),o.current||(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ji(e.onPointerDownOutside,u=>{const h=u.detail.originalEvent,f=h.button===0&&h.ctrlKey===!0,p=h.button===2||f;o.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:ji(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),_Yr=ue.forwardRef((e,t)=>{const r=A9(_j,e.__scopePopover),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(pIn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),pIn=ue.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...b}=e,_=A9(_j,r),w=Kle(r);return aCe(),ct.jsx(Gle,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>_.onOpenChange(!1),children:ct.jsx(lCe,{"data-state":mIn(_.open),role:"dialog",id:_.contentId,...w,...b,ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),gIn="PopoverClose",wYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(gIn,r);return ct.jsx(Za.button,{type:"button",...a,ref:t,onClick:ji(e.onClick,()=>s.onOpenChange(!1))})});wYr.displayName=gIn;var EYr="PopoverArrow",xYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=Kle(r);return ct.jsx(cCe,{...s,...a,ref:t})});xYr.displayName=EYr;function mIn(e){return e?"open":"closed"}var H3a=lIn,V3a=hIn,Y3a=dIn,j3a=fIn,t1n=1,SYr=.9,TYr=.8,CYr=.17,aQe=.1,sQe=.999,AYr=.9999,kYr=.99,RYr=/[\\\/_+.#"@\[\(\{&]/,IYr=/[\\\/_+.#"@\[\(\{&]/g,NYr=/[\s-]/,bIn=/[\s-]/g;function $st(e,t,r,a,s,o,u){if(o===t.length)return s===e.length?t1n:kYr;var h=`${s},${o}`;if(u[h]!==void 0)return u[h];for(var f=a.charAt(o),p=r.indexOf(f,s),m=0,b,_,w,S;p>=0;)b=$st(e,t,r,a,p+1,o+1,u),b>m&&(p===s?b*=t1n:RYr.test(e.charAt(p-1))?(b*=TYr,w=e.slice(s,p-1).match(IYr),w&&s>0&&(b*=Math.pow(sQe,w.length))):NYr.test(e.charAt(p-1))?(b*=SYr,S=e.slice(s,p-1).match(bIn),S&&s>0&&(b*=Math.pow(sQe,S.length))):(b*=CYr,s>0&&(b*=Math.pow(sQe,p-s))),e.charAt(p)!==t.charAt(o)&&(b*=AYr)),(b<aQe&&r.charAt(p-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&r.charAt(p-1)!==a.charAt(o))&&(_=$st(e,t,r,a,p+1,o+2,u),_*aQe>b&&(b=_*aQe)),b>m&&(m=b),p=r.indexOf(f,p+1);return u[h]=m,m}function n1n(e){return e.toLowerCase().replace(bIn," ")}function OYr(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,$st(e,t,n1n(e),n1n(t),0,0,{})}var vCe="Dialog",[yIn]=Ng(vCe),[LYr,pT]=yIn(vCe),vIn=e=>{const{__scopeDialog:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!0}=e,h=ue.useRef(null),f=ue.useRef(null),[p,m]=km({prop:a,defaultProp:s??!1,onChange:o,caller:vCe});return ct.jsx(LYr,{scope:t,triggerRef:h,contentRef:f,contentId:I1(),titleId:I1(),descriptionId:I1(),open:p,onOpenChange:m,onOpenToggle:ue.useCallback(()=>m(b=>!b),[m]),modal:u,children:r})};vIn.displayName=vCe;var _In="DialogTrigger",DYr=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(_In,r),o=Yo(t,s.triggerRef);return ct.jsx(Za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Yft(s.open),...a,ref:o,onClick:ji(e.onClick,s.onOpenToggle)})});DYr.displayName=_In;var Hft="DialogPortal",[MYr,wIn]=yIn(Hft,{forceMount:void 0}),EIn=e=>{const{__scopeDialog:t,forceMount:r,children:a,container:s}=e,o=pT(Hft,t);return ct.jsx(MYr,{scope:t,forceMount:r,children:ue.Children.map(a,u=>ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:u})}))})};EIn.displayName=Hft;var HSe="DialogOverlay",xIn=ue.forwardRef((e,t)=>{const r=wIn(HSe,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,o=pT(HSe,e.__scopeDialog);return o.modal?ct.jsx(D1,{present:a||o.open,children:ct.jsx(BYr,{...s,ref:t})}):null});xIn.displayName=HSe;var PYr=wF("DialogOverlay.RemoveScroll"),BYr=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(HSe,r);return ct.jsx(kW,{as:PYr,allowPinchZoom:!0,shards:[s.contentRef],children:ct.jsx(Za.div,{"data-state":Yft(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),EF="DialogContent",SIn=ue.forwardRef((e,t)=>{const r=wIn(EF,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,o=pT(EF,e.__scopeDialog);return ct.jsx(D1,{present:a||o.open,children:o.modal?ct.jsx(FYr,{...s,ref:t}):ct.jsx($Yr,{...s,ref:t})})});SIn.displayName=EF;var FYr=ue.forwardRef((e,t)=>{const r=pT(EF,e.__scopeDialog),a=ue.useRef(null),s=Yo(t,r.contentRef,a);return ue.useEffect(()=>{const o=a.current;if(o)return Vle(o)},[]),ct.jsx(TIn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ji(e.onCloseAutoFocus,o=>{var u;o.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:ji(e.onPointerDownOutside,o=>{const u=o.detail.originalEvent,h=u.button===0&&u.ctrlKey===!0;(u.button===2||h)&&o.preventDefault()}),onFocusOutside:ji(e.onFocusOutside,o=>o.preventDefault())})}),$Yr=ue.forwardRef((e,t)=>{const r=pT(EF,e.__scopeDialog),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(TIn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),TIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,...u}=e,h=pT(EF,r),f=ue.useRef(null),p=Yo(t,f);return aCe(),ct.jsxs(ct.Fragment,{children:[ct.jsx(Gle,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(CW,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Yft(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),ct.jsxs(ct.Fragment,{children:[ct.jsx(UYr,{titleId:h.titleId}),ct.jsx(GYr,{contentRef:f,descriptionId:h.descriptionId})]})]})}),Vft="DialogTitle",CIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(Vft,r);return ct.jsx(Za.h2,{id:s.titleId,...a,ref:t})});CIn.displayName=Vft;var AIn="DialogDescription",kIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(AIn,r);return ct.jsx(Za.p,{id:s.descriptionId,...a,ref:t})});kIn.displayName=AIn;var RIn="DialogClose",IIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(RIn,r);return ct.jsx(Za.button,{type:"button",...a,ref:t,onClick:ji(e.onClick,()=>s.onOpenChange(!1))})});IIn.displayName=RIn;function Yft(e){return e?"open":"closed"}var NIn="DialogTitleWarning",[W3a,OIn]=lqr(NIn,{contentName:EF,titleName:Vft,docsSlug:"dialog"}),UYr=({titleId:e})=>{const t=OIn(NIn),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return ue.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},zYr="DialogDescriptionWarning",GYr=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${OIn(zYr).contentName}}.`;return ue.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},qYr=vIn,HYr=EIn,VYr=xIn,YYr=SIn,K3a=CIn,X3a=kIn,Q3a=IIn,Sre='[cmdk-group=""]',oQe='[cmdk-group-items=""]',jYr='[cmdk-group-heading=""]',LIn='[cmdk-item=""]',r1n=`${LIn}:not([aria-disabled="true"])`,Ust="cmdk-item-select",lV="data-value",WYr=(e,t,r)=>OYr(e,t,r),DIn=ue.createContext(void 0),Xle=()=>ue.useContext(DIn),MIn=ue.createContext(void 0),jft=()=>ue.useContext(MIn),PIn=ue.createContext(void 0),BIn=ue.forwardRef((e,t)=>{let r=cV(()=>{var se,ie;return{search:"",value:(ie=(se=e.value)!=null?se:e.defaultValue)!=null?ie:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=cV(()=>new Set),s=cV(()=>new Map),o=cV(()=>new Map),u=cV(()=>new Set),h=FIn(e),{label:f,children:p,value:m,onValueChange:b,filter:_,shouldFilter:w,loop:S,disablePointerSelection:C=!1,vimBindings:A=!0,...k}=e,I=I1(),N=I1(),L=I1(),P=ue.useRef(null),M=ajr();xF(()=>{if(m!==void 0){let se=m.trim();r.current.value=se,F.emit()}},[m]),xF(()=>{M(6,z)},[]);let F=ue.useMemo(()=>({subscribe:se=>(u.current.add(se),()=>u.current.delete(se)),snapshot:()=>r.current,setState:(se,ie,ge)=>{var ce,be,ve,De;if(!Object.is(r.current[se],ie)){if(r.current[se]=ie,se==="search")Z(),G(),M(1,B);else if(se==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ye=document.getElementById(L);ye?ye.focus():(ce=document.getElementById(I))==null||ce.focus()}if(M(7,()=>{var ye;r.current.selectedItemId=(ye=Y())==null?void 0:ye.id,F.emit()}),ge||M(5,z),((be=h.current)==null?void 0:be.value)!==void 0){let ye=ie??"";(De=(ve=h.current).onValueChange)==null||De.call(ve,ye);return}}F.emit()}},emit:()=>{u.current.forEach(se=>se())}}),[]),U=ue.useMemo(()=>({value:(se,ie,ge)=>{var ce;ie!==((ce=o.current.get(se))==null?void 0:ce.value)&&(o.current.set(se,{value:ie,keywords:ge}),r.current.filtered.items.set(se,$(ie,ge)),M(2,()=>{G(),F.emit()}))},item:(se,ie)=>(a.current.add(se),ie&&(s.current.has(ie)?s.current.get(ie).add(se):s.current.set(ie,new Set([se]))),M(3,()=>{Z(),G(),r.current.value||B(),F.emit()}),()=>{o.current.delete(se),a.current.delete(se),r.current.filtered.items.delete(se);let ge=Y();M(4,()=>{Z(),(ge==null?void 0:ge.getAttribute("id"))===se&&B(),F.emit()})}),group:se=>(s.current.has(se)||s.current.set(se,new Set),()=>{o.current.delete(se),s.current.delete(se)}),filter:()=>h.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:I,inputId:L,labelId:N,listInnerRef:P}),[]);function $(se,ie){var ge,ce;let be=(ce=(ge=h.current)==null?void 0:ge.filter)!=null?ce:WYr;return se?be(se,r.current.search,ie):0}function G(){if(!r.current.search||h.current.shouldFilter===!1)return;let se=r.current.filtered.items,ie=[];r.current.filtered.groups.forEach(ce=>{let be=s.current.get(ce),ve=0;be.forEach(De=>{let ye=se.get(De);ve=Math.max(ye,ve)}),ie.push([ce,ve])});let ge=P.current;W().sort((ce,be)=>{var ve,De;let ye=ce.getAttribute("id"),Ee=be.getAttribute("id");return((ve=se.get(Ee))!=null?ve:0)-((De=se.get(ye))!=null?De:0)}).forEach(ce=>{let be=ce.closest(oQe);be?be.appendChild(ce.parentElement===be?ce:ce.closest(`${oQe} > *`)):ge.appendChild(ce.parentElement===ge?ce:ce.closest(`${oQe} > *`))}),ie.sort((ce,be)=>be[1]-ce[1]).forEach(ce=>{var be;let ve=(be=P.current)==null?void 0:be.querySelector(`${Sre}[${lV}="${encodeURIComponent(ce[0])}"]`);ve==null||ve.parentElement.appendChild(ve)})}function B(){let se=W().find(ge=>ge.getAttribute("aria-disabled")!=="true"),ie=se==null?void 0:se.getAttribute(lV);F.setState("value",ie||void 0)}function Z(){var se,ie,ge,ce;if(!r.current.search||h.current.shouldFilter===!1){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let be=0;for(let ve of a.current){let De=(ie=(se=o.current.get(ve))==null?void 0:se.value)!=null?ie:"",ye=(ce=(ge=o.current.get(ve))==null?void 0:ge.keywords)!=null?ce:[],Ee=$(De,ye);r.current.filtered.items.set(ve,Ee),Ee>0&&be++}for(let[ve,De]of s.current)for(let ye of De)if(r.current.filtered.items.get(ye)>0){r.current.filtered.groups.add(ve);break}r.current.filtered.count=be}function z(){var se,ie,ge;let ce=Y();ce&&(((se=ce.parentElement)==null?void 0:se.firstChild)===ce&&((ge=(ie=ce.closest(Sre))==null?void 0:ie.querySelector(jYr))==null||ge.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function Y(){var se;return(se=P.current)==null?void 0:se.querySelector(`${LIn}[aria-selected="true"]`)}function W(){var se;return Array.from(((se=P.current)==null?void 0:se.querySelectorAll(r1n))||[])}function Q(se){let ie=W()[se];ie&&F.setState("value",ie.getAttribute(lV))}function V(se){var ie;let ge=Y(),ce=W(),be=ce.findIndex(De=>De===ge),ve=ce[be+se];(ie=h.current)!=null&&ie.loop&&(ve=be+se<0?ce[ce.length-1]:be+se===ce.length?ce[0]:ce[be+se]),ve&&F.setState("value",ve.getAttribute(lV))}function j(se){let ie=Y(),ge=ie==null?void 0:ie.closest(Sre),ce;for(;ge&&!ce;)ge=se>0?rjr(ge,Sre):ijr(ge,Sre),ce=ge==null?void 0:ge.querySelector(r1n);ce?F.setState("value",ce.getAttribute(lV)):V(se)}let ee=()=>Q(W().length-1),te=se=>{se.preventDefault(),se.metaKey?ee():se.altKey?j(1):V(1)},ne=se=>{se.preventDefault(),se.metaKey?Q(0):se.altKey?j(-1):V(-1)};return ue.createElement(RA.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:se=>{var ie;(ie=k.onKeyDown)==null||ie.call(k,se);let ge=se.nativeEvent.isComposing||se.keyCode===229;if(!(se.defaultPrevented||ge))switch(se.key){case"n":case"j":{A&&se.ctrlKey&&te(se);break}case"ArrowDown":{te(se);break}case"p":case"k":{A&&se.ctrlKey&&ne(se);break}case"ArrowUp":{ne(se);break}case"Home":{se.preventDefault(),Q(0);break}case"End":{se.preventDefault(),ee();break}case"Enter":{se.preventDefault();let ce=Y();if(ce){let be=new Event(Ust);ce.dispatchEvent(be)}}}}},ue.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:ojr},f),_Ce(e,se=>ue.createElement(MIn.Provider,{value:F},ue.createElement(DIn.Provider,{value:U},se))))}),KYr=ue.forwardRef((e,t)=>{var r,a;let s=I1(),o=ue.useRef(null),u=ue.useContext(PIn),h=Xle(),f=FIn(e),p=(a=(r=f.current)==null?void 0:r.forceMount)!=null?a:u==null?void 0:u.forceMount;xF(()=>{if(!p)return h.item(s,u==null?void 0:u.id)},[p]);let m=$In(s,o,[e.value,e.children,o],e.keywords),b=jft(),_=HO(M=>M.value&&M.value===m.current),w=HO(M=>p||h.filter()===!1?!0:M.search?M.filtered.items.get(s)>0:!0);ue.useEffect(()=>{let M=o.current;if(!(!M||e.disabled))return M.addEventListener(Ust,S),()=>M.removeEventListener(Ust,S)},[w,e.onSelect,e.disabled]);function S(){var M,F;C(),(F=(M=f.current).onSelect)==null||F.call(M,m.current)}function C(){b.setState("value",m.current,!0)}if(!w)return null;let{disabled:A,value:k,onSelect:I,forceMount:N,keywords:L,...P}=e;return ue.createElement(RA.div,{ref:mA(o,t),...P,id:s,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!_,"data-disabled":!!A,"data-selected":!!_,onPointerMove:A||h.getDisablePointerSelection()?void 0:C,onClick:A?void 0:S},e.children)}),XYr=ue.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:s,...o}=e,u=I1(),h=ue.useRef(null),f=ue.useRef(null),p=I1(),m=Xle(),b=HO(w=>s||m.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);xF(()=>m.group(u),[]),$In(u,h,[e.value,e.heading,f]);let _=ue.useMemo(()=>({id:u,forceMount:s}),[s]);return ue.createElement(RA.div,{ref:mA(h,t),...o,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},r&&ue.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),_Ce(e,w=>ue.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},ue.createElement(PIn.Provider,{value:_},w))))}),QYr=ue.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,s=ue.useRef(null),o=HO(u=>!u.search);return!r&&!o?null:ue.createElement(RA.div,{ref:mA(s,t),...a,"cmdk-separator":"",role:"separator"})}),ZYr=ue.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,s=e.value!=null,o=jft(),u=HO(p=>p.search),h=HO(p=>p.selectedItemId),f=Xle();return ue.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),ue.createElement(RA.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:s?e.value:u,onChange:p=>{s||o.setState("search",p.target.value),r==null||r(p.target.value)}})}),JYr=ue.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...s}=e,o=ue.useRef(null),u=ue.useRef(null),h=HO(p=>p.selectedItemId),f=Xle();return ue.useEffect(()=>{if(u.current&&o.current){let p=u.current,m=o.current,b,_=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let w=p.offsetHeight;m.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return _.observe(p),()=>{cancelAnimationFrame(b),_.unobserve(p)}}},[]),ue.createElement(RA.div,{ref:mA(o,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":a,id:f.listId},_Ce(e,p=>ue.createElement("div",{ref:mA(u,f.listInnerRef),"cmdk-list-sizer":""},p)))}),ejr=ue.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:s,contentClassName:o,container:u,...h}=e;return ue.createElement(qYr,{open:r,onOpenChange:a},ue.createElement(HYr,{container:u},ue.createElement(VYr,{"cmdk-overlay":"",className:s}),ue.createElement(YYr,{"aria-label":e.label,"cmdk-dialog":"",className:o},ue.createElement(BIn,{ref:t,...h}))))}),tjr=ue.forwardRef((e,t)=>HO(r=>r.filtered.count===0)?ue.createElement(RA.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),njr=ue.forwardRef((e,t)=>{let{progress:r,children:a,label:s="Loading...",...o}=e;return ue.createElement(RA.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},_Ce(e,u=>ue.createElement("div",{"aria-hidden":!0},u)))}),Z3a=Object.assign(BIn,{List:JYr,Item:KYr,Input:ZYr,Group:XYr,Separator:QYr,Dialog:ejr,Empty:tjr,Loading:njr});function rjr(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function ijr(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function FIn(e){let t=ue.useRef(e);return xF(()=>{t.current=e}),t}var xF=typeof window>"u"?ue.useEffect:ue.useLayoutEffect;function cV(e){let t=ue.useRef();return t.current===void 0&&(t.current=e()),t}function HO(e){let t=jft(),r=()=>e(t.snapshot());return ue.useSyncExternalStore(t.subscribe,r,r)}function $In(e,t,r,a=[]){let s=ue.useRef(),o=Xle();return xF(()=>{var u;let h=(()=>{var p;for(let m of r){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():s.current}})(),f=a.map(p=>p.trim());o.value(e,h,f),(u=t.current)==null||u.setAttribute(lV,h),s.current=h}),s}var ajr=()=>{let[e,t]=ue.useState(),r=cV(()=>new Map);return xF(()=>{r.current.forEach(a=>a()),r.current=new Map},[e]),(a,s)=>{r.current.set(a,s),t({})}};function sjr(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function _Ce({asChild:e,children:t},r){return e&&ue.isValidElement(t)?ue.cloneElement(sjr(t),{ref:t.ref},r(t.props.children)):r(t)}var ojr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},wCe="Tabs",[ljr]=Ng(wCe,[C9]),UIn=C9(),[cjr,Wft]=ljr(wCe),zIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,onValueChange:s,defaultValue:o,orientation:u="horizontal",dir:h,activationMode:f="automatic",...p}=e,m=S9(h),[b,_]=km({prop:a,onChange:s,defaultProp:o??"",caller:wCe});return ct.jsx(cjr,{scope:r,baseId:I1(),value:b,onValueChange:_,orientation:u,dir:m,activationMode:f,children:ct.jsx(Za.div,{dir:m,"data-orientation":u,...p,ref:t})})});zIn.displayName=wCe;var GIn="TabsList",qIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,loop:a=!0,...s}=e,o=Wft(GIn,r),u=UIn(r);return ct.jsx(uCe,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:a,children:ct.jsx(Za.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});qIn.displayName=GIn;var HIn="TabsTrigger",VIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,disabled:s=!1,...o}=e,u=Wft(HIn,r),h=UIn(r),f=WIn(u.baseId,a),p=KIn(u.baseId,a),m=a===u.value;return ct.jsx(hCe,{asChild:!0,...h,focusable:!s,active:m,children:ct.jsx(Za.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f,...o,ref:t,onMouseDown:ji(e.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?u.onValueChange(a):b.preventDefault()}),onKeyDown:ji(e.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&u.onValueChange(a)}),onFocus:ji(e.onFocus,()=>{const b=u.activationMode!=="manual";!m&&!s&&b&&u.onValueChange(a)})})})});VIn.displayName=HIn;var YIn="TabsContent",jIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,forceMount:s,children:o,...u}=e,h=Wft(YIn,r),f=WIn(h.baseId,a),p=KIn(h.baseId,a),m=a===h.value,b=ue.useRef(m);return ue.useEffect(()=>{const _=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(_)},[]),ct.jsx(D1,{present:s||m,children:({present:_})=>ct.jsx(Za.div,{"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":f,hidden:!_,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:b.current?"0s":void 0},children:_&&o})})});jIn.displayName=YIn;function WIn(e,t){return`${e}-trigger-${t}`}function KIn(e,t){return`${e}-content-${t}`}var J3a=zIn,eTa=qIn,tTa=VIn,nTa=jIn,XIn="Toggle",QIn=ue.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:s,...o}=e,[u,h]=km({prop:r,onChange:s,defaultProp:a??!1,caller:XIn});return ct.jsx(Za.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:ji(e.onClick,()=>{e.disabled||h(!u)})})});QIn.displayName=XIn;var k9="ToggleGroup",[ZIn]=Ng(k9,[C9]),JIn=C9(),Kft=Er.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const s=a;return ct.jsx(ujr,{...s,ref:t})}if(r==="multiple"){const s=a;return ct.jsx(hjr,{...s,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${k9}\``)});Kft.displayName=k9;var[eNn,tNn]=ZIn(k9),ujr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??"",onChange:s,caller:k9});return ct.jsx(eNn,{scope:e.__scopeToggleGroup,type:"single",value:Er.useMemo(()=>u?[u]:[],[u]),onItemActivate:h,onItemDeactivate:Er.useCallback(()=>h(""),[h]),children:ct.jsx(nNn,{...o,ref:t})})}),hjr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??[],onChange:s,caller:k9}),f=Er.useCallback(m=>h((b=[])=>[...b,m]),[h]),p=Er.useCallback(m=>h((b=[])=>b.filter(_=>_!==m)),[h]);return ct.jsx(eNn,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:f,onItemDeactivate:p,children:ct.jsx(nNn,{...o,ref:t})})});Kft.displayName=k9;var[djr,fjr]=ZIn(k9),nNn=Er.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:s=!0,orientation:o,dir:u,loop:h=!0,...f}=e,p=JIn(r),m=S9(u),b={role:"group",dir:m,...f};return ct.jsx(djr,{scope:r,rovingFocus:s,disabled:a,children:s?ct.jsx(uCe,{asChild:!0,...p,orientation:o,dir:m,loop:h,children:ct.jsx(Za.div,{...b,ref:t})}):ct.jsx(Za.div,{...b,ref:t})})}),VSe="ToggleGroupItem",rNn=Er.forwardRef((e,t)=>{const r=tNn(VSe,e.__scopeToggleGroup),a=fjr(VSe,e.__scopeToggleGroup),s=JIn(e.__scopeToggleGroup),o=r.value.includes(e.value),u=a.disabled||e.disabled,h={...e,pressed:o,disabled:u},f=Er.useRef(null);return a.rovingFocus?ct.jsx(hCe,{asChild:!0,...s,focusable:!u,active:o,ref:f,children:ct.jsx(i1n,{...h,ref:t})}):ct.jsx(i1n,{...h,ref:t})});rNn.displayName=VSe;var i1n=Er.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...s}=e,o=tNn(VSe,r),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},h=o.type==="single"?u:void 0;return ct.jsx(QIn,{...h,...s,ref:t,onPressedChange:f=>{f?o.onItemActivate(a):o.onItemDeactivate(a)}})}),rTa=Kft,iTa=rNn;function ECe(e){const t=ue.useRef({value:e,previous:e});return ue.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Xft="Radio",[pjr,iNn]=Ng(Xft),[gjr,mjr]=pjr(Xft),aNn=ue.forwardRef((e,t)=>{const{__scopeRadio:r,name:a,checked:s=!1,required:o,disabled:u,value:h="on",onCheck:f,form:p,...m}=e,[b,_]=ue.useState(null),w=Yo(t,A=>_(A)),S=ue.useRef(!1),C=b?p||!!b.closest("form"):!0;return ct.jsxs(gjr,{scope:r,checked:s,disabled:u,children:[ct.jsx(Za.button,{type:"button",role:"radio","aria-checked":s,"data-state":cNn(s),"data-disabled":u?"":void 0,disabled:u,value:h,...m,ref:w,onClick:ji(e.onClick,A=>{s||f==null||f(),C&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})}),C&&ct.jsx(lNn,{control:b,bubbles:!S.current,name:a,value:h,checked:s,required:o,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});aNn.displayName=Xft;var sNn="RadioIndicator",oNn=ue.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:a,...s}=e,o=mjr(sNn,r);return ct.jsx(D1,{present:a||o.checked,children:ct.jsx(Za.span,{"data-state":cNn(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t})})});oNn.displayName=sNn;var bjr="RadioBubbleInput",lNn=ue.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:a=!0,...s},o)=>{const u=ue.useRef(null),h=Yo(u,o),f=ECe(r),p=sCe(t);return ue.useEffect(()=>{const m=u.current;if(!m)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(f!==r&&w){const S=new Event("click",{bubbles:a});w.call(m,r),m.dispatchEvent(S)}},[f,r,a]),ct.jsx(Za.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:h,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lNn.displayName=bjr;function cNn(e){return e?"checked":"unchecked"}var yjr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xCe="RadioGroup",[vjr]=Ng(xCe,[C9,iNn]),uNn=C9(),hNn=iNn(),[_jr,wjr]=vjr(xCe),dNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:a,defaultValue:s,value:o,required:u=!1,disabled:h=!1,orientation:f,dir:p,loop:m=!0,onValueChange:b,..._}=e,w=uNn(r),S=S9(p),[C,A]=km({prop:o,defaultProp:s??null,onChange:b,caller:xCe});return ct.jsx(_jr,{scope:r,name:a,required:u,disabled:h,value:C,onValueChange:A,children:ct.jsx(uCe,{asChild:!0,...w,orientation:f,dir:S,loop:m,children:ct.jsx(Za.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":h?"":void 0,dir:S,..._,ref:t})})})});dNn.displayName=xCe;var fNn="RadioGroupItem",pNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:a,...s}=e,o=wjr(fNn,r),u=o.disabled||a,h=uNn(r),f=hNn(r),p=ue.useRef(null),m=Yo(t,p),b=o.value===s.value,_=ue.useRef(!1);return ue.useEffect(()=>{const w=C=>{yjr.includes(C.key)&&(_.current=!0)},S=()=>_.current=!1;return document.addEventListener("keydown",w),document.addEventListener("keyup",S),()=>{document.removeEventListener("keydown",w),document.removeEventListener("keyup",S)}},[]),ct.jsx(hCe,{asChild:!0,...h,focusable:!u,active:b,children:ct.jsx(aNn,{disabled:u,required:o.required,checked:b,...f,...s,name:o.name,ref:m,onCheck:()=>o.onValueChange(s.value),onKeyDown:ji(w=>{w.key==="Enter"&&w.preventDefault()}),onFocus:ji(s.onFocus,()=>{var w;_.current&&((w=p.current)==null||w.click())})})})});pNn.displayName=fNn;var Ejr="RadioGroupIndicator",gNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...a}=e,s=hNn(r);return ct.jsx(oNn,{...s,...a,ref:t})});gNn.displayName=Ejr;var aTa=dNn,sTa=pNn,oTa=gNn;function zst(e,[t,r]){return Math.min(r,Math.max(t,e))}var xjr=[" ","Enter","ArrowUp","ArrowDown"],Sjr=[" ","Enter"],SF="Select",[SCe,TCe,Tjr]=iCe(SF),[RW]=Ng(SF,[Tjr,T9]),CCe=T9(),[Cjr,R9]=RW(SF),[Ajr,kjr]=RW(SF),mNn=e=>{const{__scopeSelect:t,children:r,open:a,defaultOpen:s,onOpenChange:o,value:u,defaultValue:h,onValueChange:f,dir:p,name:m,autoComplete:b,disabled:_,required:w,form:S}=e,C=CCe(t),[A,k]=ue.useState(null),[I,N]=ue.useState(null),[L,P]=ue.useState(!1),M=S9(p),[F,U]=km({prop:a,defaultProp:s??!1,onChange:o,caller:SF}),[$,G]=km({prop:u,defaultProp:h,onChange:f,caller:SF}),B=ue.useRef(null),Z=A?S||!!A.closest("form"):!0,[z,Y]=ue.useState(new Set),W=Array.from(z).map(Q=>Q.props.value).join(";");return ct.jsx(oCe,{...C,children:ct.jsxs(Cjr,{required:w,scope:t,trigger:A,onTriggerChange:k,valueNode:I,onValueNodeChange:N,valueNodeHasChildren:L,onValueNodeHasChildrenChange:P,contentId:I1(),value:$,onValueChange:G,open:F,onOpenChange:U,dir:M,triggerPointerDownPosRef:B,disabled:_,children:[ct.jsx(SCe.Provider,{scope:t,children:ct.jsx(Ajr,{scope:e.__scopeSelect,onNativeOptionAdd:ue.useCallback(Q=>{Y(V=>new Set(V).add(Q))},[]),onNativeOptionRemove:ue.useCallback(Q=>{Y(V=>{const j=new Set(V);return j.delete(Q),j})},[]),children:r})}),Z?ct.jsxs(UNn,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:b,value:$,onChange:Q=>G(Q.target.value),disabled:_,form:S,children:[$===void 0?ct.jsx("option",{value:""}):null,Array.from(z)]},W):null]})})};mNn.displayName=SF;var bNn="SelectTrigger",yNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:a=!1,...s}=e,o=CCe(r),u=R9(bNn,r),h=u.disabled||a,f=Yo(t,u.onTriggerChange),p=TCe(r),m=ue.useRef("touch"),[b,_,w]=GNn(C=>{const A=p().filter(N=>!N.disabled),k=A.find(N=>N.value===u.value),I=qNn(A,C,k);I!==void 0&&u.onValueChange(I.value)}),S=C=>{h||(u.onOpenChange(!0),w()),C&&(u.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return ct.jsx(qle,{asChild:!0,...o,children:ct.jsx(Za.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":zNn(u.value)?"":void 0,...s,ref:f,onClick:ji(s.onClick,C=>{C.currentTarget.focus(),m.current!=="mouse"&&S(C)}),onPointerDown:ji(s.onPointerDown,C=>{m.current=C.pointerType;const A=C.target;A.hasPointerCapture(C.pointerId)&&A.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(S(C),C.preventDefault())}),onKeyDown:ji(s.onKeyDown,C=>{const A=b.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&_(C.key),!(A&&C.key===" ")&&xjr.includes(C.key)&&(S(),C.preventDefault())})})})});yNn.displayName=bNn;var vNn="SelectValue",_Nn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,className:a,style:s,children:o,placeholder:u="",...h}=e,f=R9(vNn,r),{onValueNodeHasChildrenChange:p}=f,m=o!==void 0,b=Yo(t,f.onValueNodeChange);return Ig(()=>{p(m)},[p,m]),ct.jsx(Za.span,{...h,ref:b,style:{pointerEvents:"none"},children:zNn(f.value)?ct.jsx(ct.Fragment,{children:u}):o})});_Nn.displayName=vNn;var Rjr="SelectIcon",wNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,children:a,...s}=e;return ct.jsx(Za.span,{"aria-hidden":!0,...s,ref:t,children:a||"▼"})});wNn.displayName=Rjr;var Ijr="SelectPortal",ENn=e=>ct.jsx(AW,{asChild:!0,...e});ENn.displayName=Ijr;var TF="SelectContent",xNn=ue.forwardRef((e,t)=>{const r=R9(TF,e.__scopeSelect),[a,s]=ue.useState();if(Ig(()=>{s(new DocumentFragment)},[]),!r.open){const o=a;return o?w9.createPortal(ct.jsx(SNn,{scope:e.__scopeSelect,children:ct.jsx(SCe.Slot,{scope:e.__scopeSelect,children:ct.jsx("div",{children:e.children})})}),o):null}return ct.jsx(TNn,{...e,ref:t})});xNn.displayName=TF;var E3=10,[SNn,I9]=RW(TF),Njr="SelectContentImpl",Ojr=wF("SelectContent.RemoveScroll"),TNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:u,side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:b,collisionBoundary:_,collisionPadding:w,sticky:S,hideWhenDetached:C,avoidCollisions:A,...k}=e,I=R9(TF,r),[N,L]=ue.useState(null),[P,M]=ue.useState(null),F=Yo(t,ve=>L(ve)),[U,$]=ue.useState(null),[G,B]=ue.useState(null),Z=TCe(r),[z,Y]=ue.useState(!1),W=ue.useRef(!1);ue.useEffect(()=>{if(N)return Vle(N)},[N]),aCe();const Q=ue.useCallback(ve=>{const[De,...ye]=Z().map(we=>we.ref.current),[Ee]=ye.slice(-1),he=document.activeElement;for(const we of ve)if(we===he||(we==null||we.scrollIntoView({block:"nearest"}),we===De&&P&&(P.scrollTop=0),we===Ee&&P&&(P.scrollTop=P.scrollHeight),we==null||we.focus(),document.activeElement!==he))return},[Z,P]),V=ue.useCallback(()=>Q([U,N]),[Q,U,N]);ue.useEffect(()=>{z&&V()},[z,V]);const{onOpenChange:j,triggerPointerDownPosRef:ee}=I;ue.useEffect(()=>{if(N){let ve={x:0,y:0};const De=Ee=>{var he,we;ve={x:Math.abs(Math.round(Ee.pageX)-(((he=ee.current)==null?void 0:he.x)??0)),y:Math.abs(Math.round(Ee.pageY)-(((we=ee.current)==null?void 0:we.y)??0))}},ye=Ee=>{ve.x<=10&&ve.y<=10?Ee.preventDefault():N.contains(Ee.target)||j(!1),document.removeEventListener("pointermove",De),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",De),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",De),document.removeEventListener("pointerup",ye,{capture:!0})}}},[N,j,ee]),ue.useEffect(()=>{const ve=()=>j(!1);return window.addEventListener("blur",ve),window.addEventListener("resize",ve),()=>{window.removeEventListener("blur",ve),window.removeEventListener("resize",ve)}},[j]);const[te,ne]=GNn(ve=>{const De=Z().filter(he=>!he.disabled),ye=De.find(he=>he.ref.current===document.activeElement),Ee=qNn(De,ve,ye);Ee&&setTimeout(()=>Ee.ref.current.focus())}),se=ue.useCallback((ve,De,ye)=>{const Ee=!W.current&&!ye;(I.value!==void 0&&I.value===De||Ee)&&($(ve),Ee&&(W.current=!0))},[I.value]),ie=ue.useCallback(()=>N==null?void 0:N.focus(),[N]),ge=ue.useCallback((ve,De,ye)=>{const Ee=!W.current&&!ye;(I.value!==void 0&&I.value===De||Ee)&&B(ve)},[I.value]),ce=a==="popper"?Gst:CNn,be=ce===Gst?{side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:b,collisionBoundary:_,collisionPadding:w,sticky:S,hideWhenDetached:C,avoidCollisions:A}:{};return ct.jsx(SNn,{scope:r,content:N,viewport:P,onViewportChange:M,itemRefCallback:se,selectedItem:U,onItemLeave:ie,itemTextRefCallback:ge,focusSelectedItem:V,selectedItemText:G,position:a,isPositioned:z,searchRef:te,children:ct.jsx(kW,{as:Ojr,allowPinchZoom:!0,children:ct.jsx(Gle,{asChild:!0,trapped:I.open,onMountAutoFocus:ve=>{ve.preventDefault()},onUnmountAutoFocus:ji(s,ve=>{var De;(De=I.trigger)==null||De.focus({preventScroll:!0}),ve.preventDefault()}),children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:ve=>ve.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:ct.jsx(ce,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:ve=>ve.preventDefault(),...k,...be,onPlaced:()=>Y(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:ji(k.onKeyDown,ve=>{const De=ve.ctrlKey||ve.altKey||ve.metaKey;if(ve.key==="Tab"&&ve.preventDefault(),!De&&ve.key.length===1&&ne(ve.key),["ArrowUp","ArrowDown","Home","End"].includes(ve.key)){let Ee=Z().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(ve.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(ve.key)){const he=ve.target,we=Ee.indexOf(he);Ee=Ee.slice(we+1)}setTimeout(()=>Q(Ee)),ve.preventDefault()}})})})})})})});TNn.displayName=Njr;var Ljr="SelectItemAlignedPosition",CNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:a,...s}=e,o=R9(TF,r),u=I9(TF,r),[h,f]=ue.useState(null),[p,m]=ue.useState(null),b=Yo(t,F=>m(F)),_=TCe(r),w=ue.useRef(!1),S=ue.useRef(!0),{viewport:C,selectedItem:A,selectedItemText:k,focusSelectedItem:I}=u,N=ue.useCallback(()=>{if(o.trigger&&o.valueNode&&h&&p&&C&&A&&k){const F=o.trigger.getBoundingClientRect(),U=p.getBoundingClientRect(),$=o.valueNode.getBoundingClientRect(),G=k.getBoundingClientRect();if(o.dir!=="rtl"){const he=G.left-U.left,we=$.left-he,Ce=F.left-we,Ie=F.width+Ce,Le=Math.max(Ie,U.width),Fe=window.innerWidth-E3,Ve=zst(we,[E3,Math.max(E3,Fe-Le)]);h.style.minWidth=Ie+"px",h.style.left=Ve+"px"}else{const he=U.right-G.right,we=window.innerWidth-$.right-he,Ce=window.innerWidth-F.right-we,Ie=F.width+Ce,Le=Math.max(Ie,U.width),Fe=window.innerWidth-E3,Ve=zst(we,[E3,Math.max(E3,Fe-Le)]);h.style.minWidth=Ie+"px",h.style.right=Ve+"px"}const B=_(),Z=window.innerHeight-E3*2,z=C.scrollHeight,Y=window.getComputedStyle(p),W=parseInt(Y.borderTopWidth,10),Q=parseInt(Y.paddingTop,10),V=parseInt(Y.borderBottomWidth,10),j=parseInt(Y.paddingBottom,10),ee=W+Q+z+j+V,te=Math.min(A.offsetHeight*5,ee),ne=window.getComputedStyle(C),se=parseInt(ne.paddingTop,10),ie=parseInt(ne.paddingBottom,10),ge=F.top+F.height/2-E3,ce=Z-ge,be=A.offsetHeight/2,ve=A.offsetTop+be,De=W+Q+ve,ye=ee-De;if(De<=ge){const he=B.length>0&&A===B[B.length-1].ref.current;h.style.bottom="0px";const we=p.clientHeight-C.offsetTop-C.offsetHeight,Ce=Math.max(ce,be+(he?ie:0)+we+V),Ie=De+Ce;h.style.height=Ie+"px"}else{const he=B.length>0&&A===B[0].ref.current;h.style.top="0px";const Ce=Math.max(ge,W+C.offsetTop+(he?se:0)+be)+ye;h.style.height=Ce+"px",C.scrollTop=De-ge+C.offsetTop}h.style.margin=`${E3}px 0`,h.style.minHeight=te+"px",h.style.maxHeight=Z+"px",a==null||a(),requestAnimationFrame(()=>w.current=!0)}},[_,o.trigger,o.valueNode,h,p,C,A,k,o.dir,a]);Ig(()=>N(),[N]);const[L,P]=ue.useState();Ig(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);const M=ue.useCallback(F=>{F&&S.current===!0&&(N(),I==null||I(),S.current=!1)},[N,I]);return ct.jsx(Mjr,{scope:r,contentWrapper:h,shouldExpandOnScrollRef:w,onScrollButtonChange:M,children:ct.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ct.jsx(Za.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});CNn.displayName=Ljr;var Djr="SelectPopperPosition",Gst=ue.forwardRef((e,t)=>{const{__scopeSelect:r,align:a="start",collisionPadding:s=E3,...o}=e,u=CCe(r);return ct.jsx(lCe,{...u,...o,ref:t,align:a,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gst.displayName=Djr;var[Mjr,Qft]=RW(TF,{}),qst="SelectViewport",ANn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:a,...s}=e,o=I9(qst,r),u=Qft(qst,r),h=Yo(t,o.onViewportChange),f=ue.useRef(0);return ct.jsxs(ct.Fragment,{children:[ct.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),ct.jsx(SCe.Slot,{scope:r,children:ct.jsx(Za.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ji(s.onScroll,p=>{const m=p.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:_}=u;if(_!=null&&_.current&&b){const w=Math.abs(f.current-m.scrollTop);if(w>0){const S=window.innerHeight-E3*2,C=parseFloat(b.style.minHeight),A=parseFloat(b.style.height),k=Math.max(C,A);if(k<S){const I=k+w,N=Math.min(S,I),L=I-N;b.style.height=N+"px",b.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,b.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});ANn.displayName=qst;var kNn="SelectGroup",[Pjr,Bjr]=RW(kNn),Fjr=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=I1();return ct.jsx(Pjr,{scope:r,id:s,children:ct.jsx(Za.div,{role:"group","aria-labelledby":s,...a,ref:t})})});Fjr.displayName=kNn;var RNn="SelectLabel",INn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=Bjr(RNn,r);return ct.jsx(Za.div,{id:s.id,...a,ref:t})});INn.displayName=RNn;var YSe="SelectItem",[$jr,NNn]=RW(YSe),ONn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,value:a,disabled:s=!1,textValue:o,...u}=e,h=R9(YSe,r),f=I9(YSe,r),p=h.value===a,[m,b]=ue.useState(o??""),[_,w]=ue.useState(!1),S=Yo(t,I=>{var N;return(N=f.itemRefCallback)==null?void 0:N.call(f,I,a,s)}),C=I1(),A=ue.useRef("touch"),k=()=>{s||(h.onValueChange(a),h.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ct.jsx($jr,{scope:r,value:a,disabled:s,textId:C,isSelected:p,onItemTextChange:ue.useCallback(I=>{b(N=>N||((I==null?void 0:I.textContent)??"").trim())},[]),children:ct.jsx(SCe.ItemSlot,{scope:r,value:a,disabled:s,textValue:m,children:ct.jsx(Za.div,{role:"option","aria-labelledby":C,"data-highlighted":_?"":void 0,"aria-selected":p&&_,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:S,onFocus:ji(u.onFocus,()=>w(!0)),onBlur:ji(u.onBlur,()=>w(!1)),onClick:ji(u.onClick,()=>{A.current!=="mouse"&&k()}),onPointerUp:ji(u.onPointerUp,()=>{A.current==="mouse"&&k()}),onPointerDown:ji(u.onPointerDown,I=>{A.current=I.pointerType}),onPointerMove:ji(u.onPointerMove,I=>{var N;A.current=I.pointerType,s?(N=f.onItemLeave)==null||N.call(f):A.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ji(u.onPointerLeave,I=>{var N;I.currentTarget===document.activeElement&&((N=f.onItemLeave)==null||N.call(f))}),onKeyDown:ji(u.onKeyDown,I=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&I.key===" "||(Sjr.includes(I.key)&&k(),I.key===" "&&I.preventDefault())})})})})});ONn.displayName=YSe;var Aie="SelectItemText",LNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,className:a,style:s,...o}=e,u=R9(Aie,r),h=I9(Aie,r),f=NNn(Aie,r),p=kjr(Aie,r),[m,b]=ue.useState(null),_=Yo(t,k=>b(k),f.onItemTextChange,k=>{var I;return(I=h.itemTextRefCallback)==null?void 0:I.call(h,k,f.value,f.disabled)}),w=m==null?void 0:m.textContent,S=ue.useMemo(()=>ct.jsx("option",{value:f.value,disabled:f.disabled,children:w},f.value),[f.disabled,f.value,w]),{onNativeOptionAdd:C,onNativeOptionRemove:A}=p;return Ig(()=>(C(S),()=>A(S)),[C,A,S]),ct.jsxs(ct.Fragment,{children:[ct.jsx(Za.span,{id:f.textId,...o,ref:_}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?w9.createPortal(o.children,u.valueNode):null]})});LNn.displayName=Aie;var DNn="SelectItemIndicator",MNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e;return NNn(DNn,r).isSelected?ct.jsx(Za.span,{"aria-hidden":!0,...a,ref:t}):null});MNn.displayName=DNn;var Hst="SelectScrollUpButton",PNn=ue.forwardRef((e,t)=>{const r=I9(Hst,e.__scopeSelect),a=Qft(Hst,e.__scopeSelect),[s,o]=ue.useState(!1),u=Yo(t,a.onScrollButtonChange);return Ig(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=f.scrollTop>0;o(p)};const f=r.viewport;return h(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),s?ct.jsx(FNn,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:f}=r;h&&f&&(h.scrollTop=h.scrollTop-f.offsetHeight)}}):null});PNn.displayName=Hst;var Vst="SelectScrollDownButton",BNn=ue.forwardRef((e,t)=>{const r=I9(Vst,e.__scopeSelect),a=Qft(Vst,e.__scopeSelect),[s,o]=ue.useState(!1),u=Yo(t,a.onScrollButtonChange);return Ig(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<p;o(m)};const f=r.viewport;return h(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),s?ct.jsx(FNn,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:f}=r;h&&f&&(h.scrollTop=h.scrollTop+f.offsetHeight)}}):null});BNn.displayName=Vst;var FNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:a,...s}=e,o=I9("SelectScrollButton",r),u=ue.useRef(null),h=TCe(r),f=ue.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return ue.useEffect(()=>()=>f(),[f]),Ig(()=>{var m;const p=h().find(b=>b.ref.current===document.activeElement);(m=p==null?void 0:p.ref.current)==null||m.scrollIntoView({block:"nearest"})},[h]),ct.jsx(Za.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ji(s.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(a,50))}),onPointerMove:ji(s.onPointerMove,()=>{var p;(p=o.onItemLeave)==null||p.call(o),u.current===null&&(u.current=window.setInterval(a,50))}),onPointerLeave:ji(s.onPointerLeave,()=>{f()})})}),Ujr="SelectSeparator",$Nn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e;return ct.jsx(Za.div,{"aria-hidden":!0,...a,ref:t})});$Nn.displayName=Ujr;var Yst="SelectArrow",zjr=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=CCe(r),o=R9(Yst,r),u=I9(Yst,r);return o.open&&u.position==="popper"?ct.jsx(cCe,{...s,...a,ref:t}):null});zjr.displayName=Yst;var Gjr="SelectBubbleInput",UNn=ue.forwardRef(({__scopeSelect:e,value:t,...r},a)=>{const s=ue.useRef(null),o=Yo(a,s),u=ECe(t);return ue.useEffect(()=>{const h=s.current;if(!h)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&m){const b=new Event("change",{bubbles:!0});m.call(h,t),h.dispatchEvent(b)}},[u,t]),ct.jsx(Za.select,{...r,style:{...X8n,...r.style},ref:o,defaultValue:t})});UNn.displayName=Gjr;function zNn(e){return e===""||e===void 0}function GNn(e){const t=_m(e),r=ue.useRef(""),a=ue.useRef(0),s=ue.useCallback(u=>{const h=r.current+u;t(h),function f(p){r.current=p,window.clearTimeout(a.current),p!==""&&(a.current=window.setTimeout(()=>f(""),1e3))}(h)},[t]),o=ue.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return ue.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,s,o]}function qNn(e,t,r){const s=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let u=qjr(e,Math.max(o,0));s.length===1&&(u=u.filter(p=>p!==r));const f=u.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return f!==r?f:void 0}function qjr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var lTa=mNn,cTa=yNn,uTa=_Nn,hTa=wNn,dTa=ENn,fTa=xNn,pTa=ANn,gTa=INn,mTa=ONn,bTa=LNn,yTa=MNn,vTa=PNn,_Ta=BNn,wTa=$Nn,ACe="Switch",[Hjr]=Ng(ACe),[Vjr,Yjr]=Hjr(ACe),HNn=ue.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:s,defaultChecked:o,required:u,disabled:h,value:f="on",onCheckedChange:p,form:m,...b}=e,[_,w]=ue.useState(null),S=Yo(t,N=>w(N)),C=ue.useRef(!1),A=_?m||!!_.closest("form"):!0,[k,I]=km({prop:s,defaultProp:o??!1,onChange:p,caller:ACe});return ct.jsxs(Vjr,{scope:r,checked:k,disabled:h,children:[ct.jsx(Za.button,{type:"button",role:"switch","aria-checked":k,"aria-required":u,"data-state":WNn(k),"data-disabled":h?"":void 0,disabled:h,value:f,...b,ref:S,onClick:ji(e.onClick,N=>{I(L=>!L),A&&(C.current=N.isPropagationStopped(),C.current||N.stopPropagation())})}),A&&ct.jsx(jNn,{control:_,bubbles:!C.current,name:a,value:f,checked:k,required:u,disabled:h,form:m,style:{transform:"translateX(-100%)"}})]})});HNn.displayName=ACe;var VNn="SwitchThumb",YNn=ue.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,s=Yjr(VNn,r);return ct.jsx(Za.span,{"data-state":WNn(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});YNn.displayName=VNn;var jjr="SwitchBubbleInput",jNn=ue.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...s},o)=>{const u=ue.useRef(null),h=Yo(u,o),f=ECe(r),p=sCe(t);return ue.useEffect(()=>{const m=u.current;if(!m)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(f!==r&&w){const S=new Event("click",{bubbles:a});w.call(m,r),m.dispatchEvent(S)}},[f,r,a]),ct.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:h,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});jNn.displayName=jjr;function WNn(e){return e?"checked":"unchecked"}var ETa=HNn,xTa=YNn,kCe="Collapsible",[Wjr,KNn]=Ng(kCe),[Kjr,Zft]=Wjr(kCe),XNn=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:a,defaultOpen:s,disabled:o,onOpenChange:u,...h}=e,[f,p]=km({prop:a,defaultProp:s??!1,onChange:u,caller:kCe});return ct.jsx(Kjr,{scope:r,disabled:o,contentId:I1(),open:f,onOpenToggle:ue.useCallback(()=>p(m=>!m),[p]),children:ct.jsx(Za.div,{"data-state":e0t(f),"data-disabled":o?"":void 0,...h,ref:t})})});XNn.displayName=kCe;var QNn="CollapsibleTrigger",ZNn=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,...a}=e,s=Zft(QNn,r);return ct.jsx(Za.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":e0t(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...a,ref:t,onClick:ji(e.onClick,s.onOpenToggle)})});ZNn.displayName=QNn;var Jft="CollapsibleContent",JNn=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=Zft(Jft,e.__scopeCollapsible);return ct.jsx(D1,{present:r||s.open,children:({present:o})=>ct.jsx(Xjr,{...a,ref:t,present:o})})});JNn.displayName=Jft;var Xjr=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:a,children:s,...o}=e,u=Zft(Jft,r),[h,f]=ue.useState(a),p=ue.useRef(null),m=Yo(t,p),b=ue.useRef(0),_=b.current,w=ue.useRef(0),S=w.current,C=u.open||h,A=ue.useRef(C),k=ue.useRef(void 0);return ue.useEffect(()=>{const I=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(I)},[]),Ig(()=>{const I=p.current;if(I){k.current=k.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const N=I.getBoundingClientRect();b.current=N.height,w.current=N.width,A.current||(I.style.transitionDuration=k.current.transitionDuration,I.style.animationName=k.current.animationName),f(a)}},[u.open,a]),ct.jsx(Za.div,{"data-state":e0t(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...o,ref:m,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:C&&s})});function e0t(e){return e?"open":"closed"}var Qjr=XNn,Zjr=ZNn,Jjr=JNn,gT="Accordion",eWr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[t0t,tWr,nWr]=iCe(gT),[RCe]=Ng(gT,[nWr,KNn]),n0t=KNn(),eOn=Er.forwardRef((e,t)=>{const{type:r,...a}=e,s=a,o=a;return ct.jsx(t0t.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?ct.jsx(sWr,{...o,ref:t}):ct.jsx(aWr,{...s,ref:t})})});eOn.displayName=gT;var[tOn,rWr]=RCe(gT),[nOn,iWr]=RCe(gT,{collapsible:!1}),aWr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},collapsible:o=!1,...u}=e,[h,f]=km({prop:r,defaultProp:a??"",onChange:s,caller:gT});return ct.jsx(tOn,{scope:e.__scopeAccordion,value:Er.useMemo(()=>h?[h]:[],[h]),onItemOpen:f,onItemClose:Er.useCallback(()=>o&&f(""),[o,f]),children:ct.jsx(nOn,{scope:e.__scopeAccordion,collapsible:o,children:ct.jsx(rOn,{...u,ref:t})})})}),sWr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??[],onChange:s,caller:gT}),f=Er.useCallback(m=>h((b=[])=>[...b,m]),[h]),p=Er.useCallback(m=>h((b=[])=>b.filter(_=>_!==m)),[h]);return ct.jsx(tOn,{scope:e.__scopeAccordion,value:u,onItemOpen:f,onItemClose:p,children:ct.jsx(nOn,{scope:e.__scopeAccordion,collapsible:!0,children:ct.jsx(rOn,{...o,ref:t})})})}),[oWr,ICe]=RCe(gT),rOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:a,dir:s,orientation:o="vertical",...u}=e,h=Er.useRef(null),f=Yo(h,t),p=tWr(r),b=S9(s)==="ltr",_=ji(e.onKeyDown,w=>{var U;if(!eWr.includes(w.key))return;const S=w.target,C=p().filter($=>{var G;return!((G=$.ref.current)!=null&&G.disabled)}),A=C.findIndex($=>$.ref.current===S),k=C.length;if(A===-1)return;w.preventDefault();let I=A;const N=0,L=k-1,P=()=>{I=A+1,I>L&&(I=N)},M=()=>{I=A-1,I<N&&(I=L)};switch(w.key){case"Home":I=N;break;case"End":I=L;break;case"ArrowRight":o==="horizontal"&&(b?P():M());break;case"ArrowDown":o==="vertical"&&P();break;case"ArrowLeft":o==="horizontal"&&(b?M():P());break;case"ArrowUp":o==="vertical"&&M();break}const F=I%k;(U=C[F].ref.current)==null||U.focus()});return ct.jsx(oWr,{scope:r,disabled:a,direction:s,orientation:o,children:ct.jsx(t0t.Slot,{scope:r,children:ct.jsx(Za.div,{...u,"data-orientation":o,ref:f,onKeyDown:a?void 0:_})})})}),jSe="AccordionItem",[lWr,r0t]=RCe(jSe),iOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,value:a,...s}=e,o=ICe(jSe,r),u=rWr(jSe,r),h=n0t(r),f=I1(),p=a&&u.value.includes(a)||!1,m=o.disabled||e.disabled;return ct.jsx(lWr,{scope:r,open:p,disabled:m,triggerId:f,children:ct.jsx(Qjr,{"data-orientation":o.orientation,"data-state":uOn(p),...h,...s,ref:t,disabled:m,open:p,onOpenChange:b=>{b?u.onItemOpen(a):u.onItemClose(a)}})})});iOn.displayName=jSe;var aOn="AccordionHeader",sOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(aOn,r);return ct.jsx(Za.h3,{"data-orientation":s.orientation,"data-state":uOn(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:t})});sOn.displayName=aOn;var jst="AccordionTrigger",oOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(jst,r),u=iWr(jst,r),h=n0t(r);return ct.jsx(t0t.ItemSlot,{scope:r,children:ct.jsx(Zjr,{"aria-disabled":o.open&&!u.collapsible||void 0,"data-orientation":s.orientation,id:o.triggerId,...h,...a,ref:t})})});oOn.displayName=jst;var lOn="AccordionContent",cOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(lOn,r),u=n0t(r);return ct.jsx(Jjr,{role:"region","aria-labelledby":o.triggerId,"data-orientation":s.orientation,...u,...a,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});cOn.displayName=lOn;function uOn(e){return e?"open":"closed"}var STa=eOn,TTa=iOn,CTa=sOn,ATa=oOn,kTa=cOn,NCe="Checkbox",[cWr]=Ng(NCe),[uWr,i0t]=cWr(NCe);function hWr(e){const{__scopeCheckbox:t,checked:r,children:a,defaultChecked:s,disabled:o,form:u,name:h,onCheckedChange:f,required:p,value:m="on",internal_do_not_use_render:b}=e,[_,w]=km({prop:r,defaultProp:s??!1,onChange:f,caller:NCe}),[S,C]=ue.useState(null),[A,k]=ue.useState(null),I=ue.useRef(!1),N=S?!!u||!!S.closest("form"):!0,L={checked:_,disabled:o,setChecked:w,control:S,setControl:C,name:h,form:u,value:m,hasConsumerStoppedPropagationRef:I,required:p,defaultChecked:xO(s)?!1:s,isFormControl:N,bubbleInput:A,setBubbleInput:k};return ct.jsx(uWr,{scope:t,...L,children:pWr(b)?b(L):a})}var hOn="CheckboxTrigger",dOn=ue.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...a},s)=>{const{control:o,value:u,disabled:h,checked:f,required:p,setControl:m,setChecked:b,hasConsumerStoppedPropagationRef:_,isFormControl:w,bubbleInput:S}=i0t(hOn,e),C=Yo(s,m),A=ue.useRef(f);return ue.useEffect(()=>{const k=o==null?void 0:o.form;if(k){const I=()=>b(A.current);return k.addEventListener("reset",I),()=>k.removeEventListener("reset",I)}},[o,b]),ct.jsx(Za.button,{type:"button",role:"checkbox","aria-checked":xO(f)?"mixed":f,"aria-required":p,"data-state":mOn(f),"data-disabled":h?"":void 0,disabled:h,value:u,...a,ref:C,onKeyDown:ji(t,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:ji(r,k=>{b(I=>xO(I)?!0:!I),S&&w&&(_.current=k.isPropagationStopped(),_.current||k.stopPropagation())})})});dOn.displayName=hOn;var dWr=ue.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:s,defaultChecked:o,required:u,disabled:h,value:f,onCheckedChange:p,form:m,...b}=e;return ct.jsx(hWr,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:h,required:u,onCheckedChange:p,name:a,form:m,value:f,internal_do_not_use_render:({isFormControl:_})=>ct.jsxs(ct.Fragment,{children:[ct.jsx(dOn,{...b,ref:t,__scopeCheckbox:r}),_&&ct.jsx(gOn,{__scopeCheckbox:r})]})})});dWr.displayName=NCe;var fOn="CheckboxIndicator",fWr=ue.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...s}=e,o=i0t(fOn,r);return ct.jsx(D1,{present:a||xO(o.checked)||o.checked===!0,children:ct.jsx(Za.span,{"data-state":mOn(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});fWr.displayName=fOn;var pOn="CheckboxBubbleInput",gOn=ue.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:a,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:u,required:h,disabled:f,name:p,value:m,form:b,bubbleInput:_,setBubbleInput:w}=i0t(pOn,e),S=Yo(r,w),C=ECe(o),A=sCe(a);ue.useEffect(()=>{const I=_;if(!I)return;const N=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(N,"checked").set,M=!s.current;if(C!==o&&P){const F=new Event("click",{bubbles:M});I.indeterminate=xO(o),P.call(I,xO(o)?!1:o),I.dispatchEvent(F)}},[_,C,o,s]);const k=ue.useRef(xO(o)?!1:o);return ct.jsx(Za.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??k.current,required:h,disabled:f,name:p,value:m,form:b,...t,tabIndex:-1,ref:S,style:{...t.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gOn.displayName=pOn;function pWr(e){return typeof e=="function"}function xO(e){return e==="indeterminate"}function mOn(e){return xO(e)?"indeterminate":e?"checked":"unchecked"}var gWr="Separator",a1n="horizontal",mWr=["horizontal","vertical"],bOn=ue.forwardRef((e,t)=>{const{decorative:r,orientation:a=a1n,...s}=e,o=bWr(a)?a:a1n,h=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return ct.jsx(RA.div,{"data-orientation":o,...h,...s,ref:t})});bOn.displayName=gWr;function bWr(e){return mWr.includes(e)}var RTa=bOn;function yWr(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var a0t="ScrollArea",[yOn]=Ng(a0t),[vWr,DS]=yOn(a0t),vOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:a="hover",dir:s,scrollHideDelay:o=600,...u}=e,[h,f]=ue.useState(null),[p,m]=ue.useState(null),[b,_]=ue.useState(null),[w,S]=ue.useState(null),[C,A]=ue.useState(null),[k,I]=ue.useState(0),[N,L]=ue.useState(0),[P,M]=ue.useState(!1),[F,U]=ue.useState(!1),$=Yo(t,B=>f(B)),G=S9(s);return ct.jsx(vWr,{scope:r,type:a,dir:G,scrollHideDelay:o,scrollArea:h,viewport:p,onViewportChange:m,content:b,onContentChange:_,scrollbarX:w,onScrollbarXChange:S,scrollbarXEnabled:P,onScrollbarXEnabledChange:M,scrollbarY:C,onScrollbarYChange:A,scrollbarYEnabled:F,onScrollbarYEnabledChange:U,onCornerWidthChange:I,onCornerHeightChange:L,children:ct.jsx(Za.div,{dir:G,...u,ref:$,style:{position:"relative","--radix-scroll-area-corner-width":k+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});vOn.displayName=a0t;var _On="ScrollAreaViewport",wOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:a,nonce:s,...o}=e,u=DS(_On,r),h=ue.useRef(null),f=Yo(t,h,u.onViewportChange);return ct.jsxs(ct.Fragment,{children:[ct.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),ct.jsx(Za.div,{"data-radix-scroll-area-viewport":"",...o,ref:f,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:ct.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});wOn.displayName=_On;var IA="ScrollAreaScrollbar",_Wr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:u}=s,h=e.orientation==="horizontal";return ue.useEffect(()=>(h?o(!0):u(!0),()=>{h?o(!1):u(!1)}),[h,o,u]),s.type==="hover"?ct.jsx(wWr,{...a,ref:t,forceMount:r}):s.type==="scroll"?ct.jsx(EWr,{...a,ref:t,forceMount:r}):s.type==="auto"?ct.jsx(EOn,{...a,ref:t,forceMount:r}):s.type==="always"?ct.jsx(s0t,{...a,ref:t}):null});_Wr.displayName=IA;var wWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),[o,u]=ue.useState(!1);return ue.useEffect(()=>{const h=s.scrollArea;let f=0;if(h){const p=()=>{window.clearTimeout(f),u(!0)},m=()=>{f=window.setTimeout(()=>u(!1),s.scrollHideDelay)};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),ct.jsx(D1,{present:r||o,children:ct.jsx(EOn,{"data-state":o?"visible":"hidden",...a,ref:t})})}),EWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),o=e.orientation==="horizontal",u=LCe(()=>f("SCROLL_END"),100),[h,f]=yWr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return ue.useEffect(()=>{if(h==="idle"){const p=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(p)}},[h,s.scrollHideDelay,f]),ue.useEffect(()=>{const p=s.viewport,m=o?"scrollLeft":"scrollTop";if(p){let b=p[m];const _=()=>{const w=p[m];b!==w&&(f("SCROLL"),u()),b=w};return p.addEventListener("scroll",_),()=>p.removeEventListener("scroll",_)}},[s.viewport,o,f,u]),ct.jsx(D1,{present:r||h!=="hidden",children:ct.jsx(s0t,{"data-state":h==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:ji(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:ji(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),EOn=ue.forwardRef((e,t)=>{const r=DS(IA,e.__scopeScrollArea),{forceMount:a,...s}=e,[o,u]=ue.useState(!1),h=e.orientation==="horizontal",f=LCe(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;u(h?p:m)}},10);return wj(r.viewport,f),wj(r.content,f),ct.jsx(D1,{present:a||o,children:ct.jsx(s0t,{"data-state":o?"visible":"hidden",...s,ref:t})})}),s0t=ue.forwardRef((e,t)=>{const{orientation:r="vertical",...a}=e,s=DS(IA,e.__scopeScrollArea),o=ue.useRef(null),u=ue.useRef(0),[h,f]=ue.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=COn(h.viewport,h.content),m={...a,sizes:h,onSizesChange:f,hasThumb:p>0&&p<1,onThumbChange:_=>o.current=_,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:_=>u.current=_};function b(_,w){return RWr(_,u.current,h,w)}return r==="horizontal"?ct.jsx(xWr,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const _=s.viewport.scrollLeft,w=s1n(_,h,s.dir);o.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollLeft=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollLeft=b(_,s.dir))}}):r==="vertical"?ct.jsx(SWr,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const _=s.viewport.scrollTop,w=s1n(_,h);o.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollTop=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollTop=b(_))}}):null}),xWr=ue.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...s}=e,o=DS(IA,e.__scopeScrollArea),[u,h]=ue.useState(),f=ue.useRef(null),p=Yo(t,f,o.onScrollbarXChange);return ue.useEffect(()=>{f.current&&h(getComputedStyle(f.current))},[f]),ct.jsx(SOn,{"data-orientation":"horizontal",...s,ref:p,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":OCe(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,b)=>{if(o.viewport){const _=o.viewport.scrollLeft+m.deltaX;e.onWheelScroll(_),kOn(_,b)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&u&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:KSe(u.paddingLeft),paddingEnd:KSe(u.paddingRight)}})}})}),SWr=ue.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...s}=e,o=DS(IA,e.__scopeScrollArea),[u,h]=ue.useState(),f=ue.useRef(null),p=Yo(t,f,o.onScrollbarYChange);return ue.useEffect(()=>{f.current&&h(getComputedStyle(f.current))},[f]),ct.jsx(SOn,{"data-orientation":"vertical",...s,ref:p,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":OCe(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,b)=>{if(o.viewport){const _=o.viewport.scrollTop+m.deltaY;e.onWheelScroll(_),kOn(_,b)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&u&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:KSe(u.paddingTop),paddingEnd:KSe(u.paddingBottom)}})}})}),[TWr,xOn]=yOn(IA),SOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:a,hasThumb:s,onThumbChange:o,onThumbPointerUp:u,onThumbPointerDown:h,onThumbPositionChange:f,onDragScroll:p,onWheelScroll:m,onResize:b,..._}=e,w=DS(IA,r),[S,C]=ue.useState(null),A=Yo(t,$=>C($)),k=ue.useRef(null),I=ue.useRef(""),N=w.viewport,L=a.content-a.viewport,P=_m(m),M=_m(f),F=LCe(b,10);function U($){if(k.current){const G=$.clientX-k.current.left,B=$.clientY-k.current.top;p({x:G,y:B})}}return ue.useEffect(()=>{const $=G=>{const B=G.target;(S==null?void 0:S.contains(B))&&P(G,L)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[N,S,L,P]),ue.useEffect(M,[a,M]),wj(S,F),wj(w.content,F),ct.jsx(TWr,{scope:r,scrollbar:S,hasThumb:s,onThumbChange:_m(o),onThumbPointerUp:_m(u),onThumbPositionChange:M,onThumbPointerDown:_m(h),children:ct.jsx(Za.div,{..._,ref:A,style:{position:"absolute",..._.style},onPointerDown:ji(e.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),k.current=S.getBoundingClientRect(),I.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),U($))}),onPointerMove:ji(e.onPointerMove,U),onPointerUp:ji(e.onPointerUp,$=>{const G=$.target;G.hasPointerCapture($.pointerId)&&G.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=I.current,w.viewport&&(w.viewport.style.scrollBehavior=""),k.current=null})})})}),WSe="ScrollAreaThumb",CWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=xOn(WSe,e.__scopeScrollArea);return ct.jsx(D1,{present:r||s.hasThumb,children:ct.jsx(AWr,{ref:t,...a})})}),AWr=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:a,...s}=e,o=DS(WSe,r),u=xOn(WSe,r),{onThumbPositionChange:h}=u,f=Yo(t,b=>u.onThumbChange(b)),p=ue.useRef(void 0),m=LCe(()=>{p.current&&(p.current(),p.current=void 0)},100);return ue.useEffect(()=>{const b=o.viewport;if(b){const _=()=>{if(m(),!p.current){const w=IWr(b,h);p.current=w,h()}};return h(),b.addEventListener("scroll",_),()=>b.removeEventListener("scroll",_)}},[o.viewport,m,h]),ct.jsx(Za.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ji(e.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),S=b.clientX-w.left,C=b.clientY-w.top;u.onThumbPointerDown({x:S,y:C})}),onPointerUp:ji(e.onPointerUp,u.onThumbPointerUp)})});CWr.displayName=WSe;var o0t="ScrollAreaCorner",TOn=ue.forwardRef((e,t)=>{const r=DS(o0t,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?ct.jsx(kWr,{...e,ref:t}):null});TOn.displayName=o0t;var kWr=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,...a}=e,s=DS(o0t,r),[o,u]=ue.useState(0),[h,f]=ue.useState(0),p=!!(o&&h);return wj(s.scrollbarX,()=>{var b;const m=((b=s.scrollbarX)==null?void 0:b.offsetHeight)||0;s.onCornerHeightChange(m),f(m)}),wj(s.scrollbarY,()=>{var b;const m=((b=s.scrollbarY)==null?void 0:b.offsetWidth)||0;s.onCornerWidthChange(m),u(m)}),p?ct.jsx(Za.div,{...a,ref:t,style:{width:o,height:h,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function KSe(e){return e?parseInt(e,10):0}function COn(e,t){const r=e/t;return isNaN(r)?0:r}function OCe(e){const t=COn(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function RWr(e,t,r,a="ltr"){const s=OCe(r),o=s/2,u=t||o,h=s-u,f=r.scrollbar.paddingStart+u,p=r.scrollbar.size-r.scrollbar.paddingEnd-h,m=r.content-r.viewport,b=a==="ltr"?[0,m]:[m*-1,0];return AOn([f,p],b)(e)}function s1n(e,t,r="ltr"){const a=OCe(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-s,u=t.content-t.viewport,h=o-a,f=r==="ltr"?[0,u]:[u*-1,0],p=zst(e,f);return AOn([0,u],[0,h])(p)}function AOn(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function kOn(e,t){return e>0&&e<t}var IWr=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return function s(){const o={left:e.scrollLeft,top:e.scrollTop},u=r.left!==o.left,h=r.top!==o.top;(u||h)&&t(),r=o,a=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(a)};function LCe(e,t){const r=_m(e),a=ue.useRef(0);return ue.useEffect(()=>()=>window.clearTimeout(a.current),[]),ue.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function wj(e,t){const r=_m(t);Ig(()=>{let a=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(a),s.unobserve(e)}}},[e,r])}var ITa=vOn,NTa=wOn,OTa=TOn,Wst=new Int32Array(1),o1n=new Float32Array(Wst.buffer),NWr=class{constructor(e){if(e&&!(e instanceof Uint8Array))throw new Error("Must initialize a ByteBuffer with a Uint8Array");this._data=e||new Uint8Array(256),this._index=0,this.length=e?e.length:0}toUint8Array(){return this._data.subarray(0,this.length)}readByte(){if(this._index+1>this._data.length)throw new Error("Index out of bounds");return this._data[this._index++]}readByteArray(){let e=this.readVarUint(),t=this._index,r=t+e;if(r>this._data.length)throw new Error("Read array out of bounds");this._index=r;let a=new Uint8Array(e);return a.set(this._data.subarray(t,r)),a}readVarFloat(){let e=this._index,t=this._data,r=t.length;if(e+1>r)throw new Error("Index out of bounds");let a=t[e];if(a===0)return this._index=e+1,0;if(e+4>r)throw new Error("Index out of bounds");let s=a|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24;return this._index=e+4,s=s<<23|s>>>9,Wst[0]=s,o1n[0]}readVarUint(){let e=0,t=0;do{var r=this.readByte();e|=(r&127)<<t,t+=7}while(r&128&&t<35);return e>>>0}readVarInt(){let e=this.readVarUint()|0;return e&1?~(e>>>1):e>>>1}readVarUint64(){let e=BigInt(0),t=BigInt(0),r=BigInt(7),a;for(;(a=this.readByte())&128&&t<56;)e|=BigInt(a&127)<<t,t+=r;return e|=BigInt(a)<<t,e}readVarInt64(){let e=this.readVarUint64(),t=BigInt(1),r=e&t;return e>>=t,r?~e:e}readString(){let e="";for(;;){let t,r=this.readByte();if(r<192)t=r;else{let a=this.readByte();if(r<224)t=(r&31)<<6|a&63;else{let s=this.readByte();if(r<240)t=(r&15)<<12|(a&63)<<6|s&63;else{let o=this.readByte();t=(r&7)<<18|(a&63)<<12|(s&63)<<6|o&63}}}if(t===0)break;t<65536?e+=String.fromCharCode(t):(t-=65536,e+=String.fromCharCode((t>>10)+55296,(t&1023)+56320))}return e}_growBy(e){if(this.length+e>this._data.length){let t=new Uint8Array(this.length+e<<1);t.set(this._data),this._data=t}this.length+=e}writeByte(e){let t=this.length;this._growBy(1),this._data[t]=e}writeByteArray(e){this.writeVarUint(e.length);let t=this.length;this._growBy(e.length),this._data.set(e,t)}writeVarFloat(e){let t=this.length;o1n[0]=e;let r=Wst[0];if(r=r>>>23|r<<9,!(r&255)){this.writeByte(0);return}this._growBy(4);let a=this._data;a[t]=r,a[t+1]=r>>8,a[t+2]=r>>16,a[t+3]=r>>24}writeVarUint(e){if(e<0||e>4294967295)throw new Error("Outside uint range: "+e);do{let t=e&127;e>>>=7,this.writeByte(e?t|128:t)}while(e)}writeVarInt(e){if(e<-2147483648||e>2147483647)throw new Error("Outside int range: "+e);this.writeVarUint((e<<1^e>>31)>>>0)}writeVarUint64(e){if(typeof e=="string")e=BigInt(e);else if(typeof e!="bigint")throw new Error("Expected bigint but got "+typeof e+": "+e);if(e<0||e>BigInt("0xFFFFFFFFFFFFFFFF"))throw new Error("Outside uint64 range: "+e);let t=BigInt(127),r=BigInt(7);for(let a=0;e>t&&a<8;a++)this.writeByte(Number(e&t)|128),e>>=r;this.writeByte(Number(e))}writeVarInt64(e){if(typeof e=="string")e=BigInt(e);else if(typeof e!="bigint")throw new Error("Expected bigint but got "+typeof e+": "+e);if(e<-BigInt("0x8000000000000000")||e>BigInt("0x7FFFFFFFFFFFFFFF"))throw new Error("Outside int64 range: "+e);let t=BigInt(1);this.writeVarUint64(e<0?~(e<<t):e<<t)}writeString(e){let t;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);if(r+1===e.length||a<55296||a>=56320)t=a;else{let s=e.charCodeAt(++r);t=(a<<10)+s+-56613888}if(t===0)throw new Error("Cannot encode a string containing the null character");t<128?this.writeByte(t):(t<2048?this.writeByte(t>>6&31|192):(t<65536?this.writeByte(t>>12&15|224):(this.writeByte(t>>18&7|240),this.writeByte(t>>12&63|128)),this.writeByte(t>>6&63|128)),this.writeByte(t&63|128))}this.writeByte(0)}},OWr=["bool","byte","int","uint","float","string","int64","uint64"],LWr=["ENUM","STRUCT","MESSAGE"];function LTa(e){let t=new NWr,r=e.definitions,a={};t.writeVarUint(r.length);for(let s=0;s<r.length;s++)a[r[s].name]=s;for(let s=0;s<r.length;s++){let o=r[s];t.writeString(o.name),t.writeByte(LWr.indexOf(o.kind)),t.writeVarUint(o.fields.length);for(let u=0;u<o.fields.length;u++){let h=o.fields[u],f=OWr.indexOf(h.type);t.writeString(h.name),t.writeVarInt(f===-1?a[h.type]:~f),t.writeByte(h.isArray?1:0),t.writeVarUint(h.value)}}return t.toUint8Array()}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const DWr=4,l1n=0,c1n=1,MWr=2;function IW(e){let t=e.length;for(;--t>=0;)e[t]=0}const PWr=0,ROn=1,BWr=2,FWr=3,$Wr=258,l0t=29,Qle=256,toe=Qle+1+l0t,VV=30,c0t=19,IOn=2*toe+1,WB=15,lQe=16,UWr=7,u0t=256,NOn=16,OOn=17,LOn=18,Kst=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),YEe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),zWr=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),DOn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GWr=512,u7=new Array((toe+2)*2);IW(u7);const Jae=new Array(VV*2);IW(Jae);const noe=new Array(GWr);IW(noe);const roe=new Array($Wr-FWr+1);IW(roe);const h0t=new Array(l0t);IW(h0t);const XSe=new Array(VV);IW(XSe);function cQe(e,t,r,a,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=s,this.has_stree=e&&e.length}let MOn,POn,BOn;function uQe(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const FOn=e=>e<256?noe[e]:noe[256+(e>>>7)],ioe=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Y2=(e,t,r)=>{e.bi_valid>lQe-r?(e.bi_buf|=t<<e.bi_valid&65535,ioe(e,e.bi_buf),e.bi_buf=t>>lQe-e.bi_valid,e.bi_valid+=r-lQe):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},FC=(e,t,r)=>{Y2(e,r[t*2],r[t*2+1])},$On=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},qWr=e=>{e.bi_valid===16?(ioe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},HWr=(e,t)=>{const r=t.dyn_tree,a=t.max_code,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length;let p,m,b,_,w,S,C=0;for(_=0;_<=WB;_++)e.bl_count[_]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<IOn;p++)m=e.heap[p],_=r[r[m*2+1]*2+1]+1,_>f&&(_=f,C++),r[m*2+1]=_,!(m>a)&&(e.bl_count[_]++,w=0,m>=h&&(w=u[m-h]),S=r[m*2],e.opt_len+=S*(_+w),o&&(e.static_len+=S*(s[m*2+1]+w)));if(C!==0){do{for(_=f-1;e.bl_count[_]===0;)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[f]--,C-=2}while(C>0);for(_=f;_!==0;_--)for(m=e.bl_count[_];m!==0;)b=e.heap[--p],!(b>a)&&(r[b*2+1]!==_&&(e.opt_len+=(_-r[b*2+1])*r[b*2],r[b*2+1]=_),m--)}},UOn=(e,t,r)=>{const a=new Array(WB+1);let s=0,o,u;for(o=1;o<=WB;o++)s=s+r[o-1]<<1,a[o]=s;for(u=0;u<=t;u++){let h=e[u*2+1];h!==0&&(e[u*2]=$On(a[h]++,h))}},VWr=()=>{let e,t,r,a,s;const o=new Array(WB+1);for(r=0,a=0;a<l0t-1;a++)for(h0t[a]=r,e=0;e<1<<Kst[a];e++)roe[r++]=a;for(roe[r-1]=a,s=0,a=0;a<16;a++)for(XSe[a]=s,e=0;e<1<<YEe[a];e++)noe[s++]=a;for(s>>=7;a<VV;a++)for(XSe[a]=s<<7,e=0;e<1<<YEe[a]-7;e++)noe[256+s++]=a;for(t=0;t<=WB;t++)o[t]=0;for(e=0;e<=143;)u7[e*2+1]=8,e++,o[8]++;for(;e<=255;)u7[e*2+1]=9,e++,o[9]++;for(;e<=279;)u7[e*2+1]=7,e++,o[7]++;for(;e<=287;)u7[e*2+1]=8,e++,o[8]++;for(UOn(u7,toe+1,o),e=0;e<VV;e++)Jae[e*2+1]=5,Jae[e*2]=$On(e,5);MOn=new cQe(u7,Kst,Qle+1,toe,WB),POn=new cQe(Jae,YEe,0,VV,WB),BOn=new cQe(new Array(0),zWr,0,c0t,UWr)},zOn=e=>{let t;for(t=0;t<toe;t++)e.dyn_ltree[t*2]=0;for(t=0;t<VV;t++)e.dyn_dtree[t*2]=0;for(t=0;t<c0t;t++)e.bl_tree[t*2]=0;e.dyn_ltree[u0t*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},GOn=e=>{e.bi_valid>8?ioe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},u1n=(e,t,r,a)=>{const s=t*2,o=r*2;return e[s]<e[o]||e[s]===e[o]&&a[t]<=a[r]},hQe=(e,t,r)=>{const a=e.heap[r];let s=r<<1;for(;s<=e.heap_len&&(s<e.heap_len&&u1n(t,e.heap[s+1],e.heap[s],e.depth)&&s++,!u1n(t,a,e.heap[s],e.depth));)e.heap[r]=e.heap[s],r=s,s<<=1;e.heap[r]=a},h1n=(e,t,r)=>{let a,s,o=0,u,h;if(e.sym_next!==0)do a=e.pending_buf[e.sym_buf+o++]&255,a+=(e.pending_buf[e.sym_buf+o++]&255)<<8,s=e.pending_buf[e.sym_buf+o++],a===0?FC(e,s,t):(u=roe[s],FC(e,u+Qle+1,t),h=Kst[u],h!==0&&(s-=h0t[u],Y2(e,s,h)),a--,u=FOn(a),FC(e,u,r),h=YEe[u],h!==0&&(a-=XSe[u],Y2(e,a,h)));while(o<e.sym_next);FC(e,u0t,t)},Xst=(e,t)=>{const r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.elems;let u,h,f=-1,p;for(e.heap_len=0,e.heap_max=IOn,u=0;u<o;u++)r[u*2]!==0?(e.heap[++e.heap_len]=f=u,e.depth[u]=0):r[u*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=f<2?++f:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,s&&(e.static_len-=a[p*2+1]);for(t.max_code=f,u=e.heap_len>>1;u>=1;u--)hQe(e,r,u);p=o;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],hQe(e,r,1),h=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=h,r[p*2]=r[u*2]+r[h*2],e.depth[p]=(e.depth[u]>=e.depth[h]?e.depth[u]:e.depth[h])+1,r[u*2+1]=r[h*2+1]=p,e.heap[1]=p++,hQe(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],HWr(e,t),UOn(r,f,e.bl_count)},d1n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),t[(r+1)*2+1]=65535,a=0;a<=r;a++)o=u,u=t[(a+1)*2+1],!(++h<f&&o===u)&&(h<p?e.bl_tree[o*2]+=h:o!==0?(o!==s&&e.bl_tree[o*2]++,e.bl_tree[NOn*2]++):h<=10?e.bl_tree[OOn*2]++:e.bl_tree[LOn*2]++,h=0,s=o,u===0?(f=138,p=3):o===u?(f=6,p=3):(f=7,p=4))},f1n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),a=0;a<=r;a++)if(o=u,u=t[(a+1)*2+1],!(++h<f&&o===u)){if(h<p)do FC(e,o,e.bl_tree);while(--h!==0);else o!==0?(o!==s&&(FC(e,o,e.bl_tree),h--),FC(e,NOn,e.bl_tree),Y2(e,h-3,2)):h<=10?(FC(e,OOn,e.bl_tree),Y2(e,h-3,3)):(FC(e,LOn,e.bl_tree),Y2(e,h-11,7));h=0,s=o,u===0?(f=138,p=3):o===u?(f=6,p=3):(f=7,p=4)}},YWr=e=>{let t;for(d1n(e,e.dyn_ltree,e.l_desc.max_code),d1n(e,e.dyn_dtree,e.d_desc.max_code),Xst(e,e.bl_desc),t=c0t-1;t>=3&&e.bl_tree[DOn[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},jWr=(e,t,r,a)=>{let s;for(Y2(e,t-257,5),Y2(e,r-1,5),Y2(e,a-4,4),s=0;s<a;s++)Y2(e,e.bl_tree[DOn[s]*2+1],3);f1n(e,e.dyn_ltree,t-1),f1n(e,e.dyn_dtree,r-1)},WWr=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return l1n;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return c1n;for(r=32;r<Qle;r++)if(e.dyn_ltree[r*2]!==0)return c1n;return l1n};let p1n=!1;const KWr=e=>{p1n||(VWr(),p1n=!0),e.l_desc=new uQe(e.dyn_ltree,MOn),e.d_desc=new uQe(e.dyn_dtree,POn),e.bl_desc=new uQe(e.bl_tree,BOn),e.bi_buf=0,e.bi_valid=0,zOn(e)},qOn=(e,t,r,a)=>{Y2(e,(PWr<<1)+(a?1:0),3),GOn(e),ioe(e,r),ioe(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},XWr=e=>{Y2(e,ROn<<1,3),FC(e,u0t,u7),qWr(e)},QWr=(e,t,r,a)=>{let s,o,u=0;e.level>0?(e.strm.data_type===MWr&&(e.strm.data_type=WWr(e)),Xst(e,e.l_desc),Xst(e,e.d_desc),u=YWr(e),s=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=s&&(s=o)):s=o=r+5,r+4<=s&&t!==-1?qOn(e,t,r,a):e.strategy===DWr||o===s?(Y2(e,(ROn<<1)+(a?1:0),3),h1n(e,u7,Jae)):(Y2(e,(BWr<<1)+(a?1:0),3),jWr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),h1n(e,e.dyn_ltree,e.dyn_dtree)),zOn(e),a&&GOn(e)},ZWr=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(roe[r]+Qle+1)*2]++,e.dyn_dtree[FOn(t)*2]++),e.sym_next===e.sym_end);var JWr=KWr,eKr=qOn,tKr=QWr,nKr=ZWr,rKr=XWr,iKr={_tr_init:JWr,_tr_stored_block:eKr,_tr_flush_block:tKr,_tr_tally:nKr,_tr_align:rKr};const aKr=(e,t,r,a)=>{let s=e&65535|0,o=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do s=s+t[a++]|0,o=o+s|0;while(--u);s%=65521,o%=65521}return s|o<<16|0};var aoe=aKr;const sKr=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},oKr=new Uint32Array(sKr()),lKr=(e,t,r,a)=>{const s=oKr,o=a+r;e^=-1;for(let u=a;u<o;u++)e=e>>>8^s[(e^t[u])&255];return e^-1};var wg=lKr,CF={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},DCe={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:cKr,_tr_stored_block:Qst,_tr_flush_block:uKr,_tr_tally:SO,_tr_align:hKr}=iKr,{Z_NO_FLUSH:TO,Z_PARTIAL_FLUSH:dKr,Z_FULL_FLUSH:fKr,Z_FINISH:tS,Z_BLOCK:g1n,Z_OK:pm,Z_STREAM_END:m1n,Z_STREAM_ERROR:aA,Z_DATA_ERROR:pKr,Z_BUF_ERROR:dQe,Z_DEFAULT_COMPRESSION:gKr,Z_FILTERED:mKr,Z_HUFFMAN_ONLY:O_e,Z_RLE:bKr,Z_FIXED:yKr,Z_DEFAULT_STRATEGY:vKr,Z_UNKNOWN:_Kr,Z_DEFLATED:MCe}=DCe,wKr=9,EKr=15,xKr=8,SKr=29,TKr=256,Zst=TKr+1+SKr,CKr=30,AKr=19,kKr=2*Zst+1,RKr=15,Ac=3,uO=258,sA=uO+Ac+1,IKr=32,Ej=42,d0t=57,Jst=69,eot=73,tot=91,not=103,KB=113,kie=666,Ky=1,NW=2,AF=3,OW=4,NKr=3,XB=(e,t)=>(e.msg=CF[t],t),b1n=e=>e*2-(e>4?9:0),JN=e=>{let t=e.length;for(;--t>=0;)e[t]=0},OKr=e=>{let t,r,a,s=e.w_size;t=e.hash_size,a=t;do r=e.head[--a],e.head[a]=r>=s?r-s:0;while(--t);t=s,a=t;do r=e.prev[--a],e.prev[a]=r>=s?r-s:0;while(--t)};let LKr=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,CO=LKr;const Tw=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},Lw=(e,t)=>{uKr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Tw(e.strm)},wu=(e,t)=>{e.pending_buf[e.pending++]=t},Tre=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},rot=(e,t,r,a)=>{let s=e.avail_in;return s>a&&(s=a),s===0?0:(e.avail_in-=s,t.set(e.input.subarray(e.next_in,e.next_in+s),r),e.state.wrap===1?e.adler=aoe(e.adler,t,s,r):e.state.wrap===2&&(e.adler=wg(e.adler,t,s,r)),e.next_in+=s,e.total_in+=s,s)},HOn=(e,t)=>{let r=e.max_chain_length,a=e.strstart,s,o,u=e.prev_length,h=e.nice_match;const f=e.strstart>e.w_size-sA?e.strstart-(e.w_size-sA):0,p=e.window,m=e.w_mask,b=e.prev,_=e.strstart+uO;let w=p[a+u-1],S=p[a+u];e.prev_length>=e.good_match&&(r>>=2),h>e.lookahead&&(h=e.lookahead);do if(s=t,!(p[s+u]!==S||p[s+u-1]!==w||p[s]!==p[a]||p[++s]!==p[a+1])){a+=2,s++;do;while(p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&a<_);if(o=uO-(_-a),a=_-uO,o>u){if(e.match_start=t,u=o,o>=h)break;w=p[a+u-1],S=p[a+u]}}while((t=b[t&m])>f&&--r!==0);return u<=e.lookahead?u:e.lookahead},xj=e=>{const t=e.w_size;let r,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-sA)&&(e.window.set(e.window.subarray(t,t+t-a),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),OKr(e),a+=t),e.strm.avail_in===0)break;if(r=rot(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=Ac)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=CO(e,e.ins_h,e.window[s+1]);e.insert&&(e.ins_h=CO(e,e.ins_h,e.window[s+Ac-1]),e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<Ac)););}while(e.lookahead<sA&&e.strm.avail_in!==0)},VOn=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a,s,o,u=0,h=e.strm.avail_in;do{if(a=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,s=e.strstart-e.block_start,a>s+e.strm.avail_in&&(a=s+e.strm.avail_in),a>o&&(a=o),a<r&&(a===0&&t!==tS||t===TO||a!==s+e.strm.avail_in)))break;u=t===tS&&a===s+e.strm.avail_in?1:0,Qst(e,0,0,u),e.pending_buf[e.pending-4]=a,e.pending_buf[e.pending-3]=a>>8,e.pending_buf[e.pending-2]=~a,e.pending_buf[e.pending-1]=~a>>8,Tw(e.strm),s&&(s>a&&(s=a),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+s),e.strm.next_out),e.strm.next_out+=s,e.strm.avail_out-=s,e.strm.total_out+=s,e.block_start+=s,a-=s),a&&(rot(e.strm,e.strm.output,e.strm.next_out,a),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a)}while(u===0);return h-=e.strm.avail_in,h&&(h>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=h&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-h,e.strm.next_in),e.strstart),e.strstart+=h,e.insert+=h>e.w_size-e.insert?e.w_size-e.insert:h),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),u?OW:t!==TO&&t!==tS&&e.strm.avail_in===0&&e.strstart===e.block_start?NW:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(rot(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,s=e.strstart-e.block_start,(s>=r||(s||t===tS)&&t!==TO&&e.strm.avail_in===0&&s<=o)&&(a=s>o?o:s,u=t===tS&&e.strm.avail_in===0&&a===s?1:0,Qst(e,e.block_start,a,u),e.block_start+=a,Tw(e.strm)),u?AF:Ky)},fQe=(e,t)=>{let r,a;for(;;){if(e.lookahead<sA){if(xj(e),e.lookahead<sA&&t===TO)return Ky;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ac&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-sA&&(e.match_length=HOn(e,r)),e.match_length>=Ac)if(a=SO(e,e.strstart-e.match_start,e.match_length-Ac),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ac){e.match_length--;do e.strstart++,e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=CO(e,e.ins_h,e.window[e.strstart+1]);else a=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=e.strstart<Ac-1?e.strstart:Ac-1,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW},BH=(e,t)=>{let r,a,s;for(;;){if(e.lookahead<sA){if(xj(e),e.lookahead<sA&&t===TO)return Ky;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ac&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ac-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-sA&&(e.match_length=HOn(e,r),e.match_length<=5&&(e.strategy===mKr||e.match_length===Ac&&e.strstart-e.match_start>4096)&&(e.match_length=Ac-1)),e.prev_length>=Ac&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-Ac,a=SO(e,e.strstart-1-e.prev_match,e.prev_length-Ac),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=s&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ac-1,e.strstart++,a&&(Lw(e,!1),e.strm.avail_out===0))return Ky}else if(e.match_available){if(a=SO(e,0,e.window[e.strstart-1]),a&&Lw(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ky}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=SO(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ac-1?e.strstart:Ac-1,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW},DKr=(e,t)=>{let r,a,s,o;const u=e.window;for(;;){if(e.lookahead<=uO){if(xj(e),e.lookahead<=uO&&t===TO)return Ky;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ac&&e.strstart>0&&(s=e.strstart-1,a=u[s],a===u[++s]&&a===u[++s]&&a===u[++s])){o=e.strstart+uO;do;while(a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&s<o);e.match_length=uO-(o-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ac?(r=SO(e,1,e.match_length-Ac),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=0,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW},MKr=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(xj(e),e.lookahead===0)){if(t===TO)return Ky;break}if(e.match_length=0,r=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=0,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW};function dC(e,t,r,a,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=s}const Rie=[new dC(0,0,0,0,VOn),new dC(4,4,8,4,fQe),new dC(4,5,16,8,fQe),new dC(4,6,32,32,fQe),new dC(4,4,16,16,BH),new dC(8,16,32,32,BH),new dC(8,16,128,128,BH),new dC(8,32,128,256,BH),new dC(32,128,258,1024,BH),new dC(32,258,258,4096,BH)],PKr=e=>{e.window_size=2*e.w_size,JN(e.head),e.max_lazy_match=Rie[e.level].max_lazy,e.good_match=Rie[e.level].good_length,e.nice_match=Rie[e.level].nice_length,e.max_chain_length=Rie[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ac-1,e.match_available=0,e.ins_h=0};function BKr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=MCe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(kKr*2),this.dyn_dtree=new Uint16Array((2*CKr+1)*2),this.bl_tree=new Uint16Array((2*AKr+1)*2),JN(this.dyn_ltree),JN(this.dyn_dtree),JN(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(RKr+1),this.heap=new Uint16Array(2*Zst+1),JN(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Zst+1),JN(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zle=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ej&&t.status!==d0t&&t.status!==Jst&&t.status!==eot&&t.status!==tot&&t.status!==not&&t.status!==KB&&t.status!==kie?1:0},YOn=e=>{if(Zle(e))return XB(e,aA);e.total_in=e.total_out=0,e.data_type=_Kr;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?d0t:t.wrap?Ej:KB,e.adler=t.wrap===2?0:1,t.last_flush=-2,cKr(t),pm},jOn=e=>{const t=YOn(e);return t===pm&&PKr(e.state),t},FKr=(e,t)=>Zle(e)||e.state.wrap!==2?aA:(e.state.gzhead=t,pm),WOn=(e,t,r,a,s,o)=>{if(!e)return aA;let u=1;if(t===gKr&&(t=6),a<0?(u=0,a=-a):a>15&&(u=2,a-=16),s<1||s>wKr||r!==MCe||a<8||a>15||t<0||t>9||o<0||o>yKr||a===8&&u!==1)return XB(e,aA);a===8&&(a=9);const h=new BKr;return e.state=h,h.strm=e,h.status=Ej,h.wrap=u,h.gzhead=null,h.w_bits=a,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=s+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+Ac-1)/Ac),h.window=new Uint8Array(h.w_size*2),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<s+6,h.pending_buf_size=h.lit_bufsize*4,h.pending_buf=new Uint8Array(h.pending_buf_size),h.sym_buf=h.lit_bufsize,h.sym_end=(h.lit_bufsize-1)*3,h.level=t,h.strategy=o,h.method=r,jOn(e)},$Kr=(e,t)=>WOn(e,t,MCe,EKr,xKr,vKr),UKr=(e,t)=>{if(Zle(e)||t>g1n||t<0)return e?XB(e,aA):aA;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===kie&&t!==tS)return XB(e,e.avail_out===0?dQe:aA);const a=r.last_flush;if(r.last_flush=t,r.pending!==0){if(Tw(e),e.avail_out===0)return r.last_flush=-1,pm}else if(e.avail_in===0&&b1n(t)<=b1n(a)&&t!==tS)return XB(e,dQe);if(r.status===kie&&e.avail_in!==0)return XB(e,dQe);if(r.status===Ej&&r.wrap===0&&(r.status=KB),r.status===Ej){let s=MCe+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=O_e||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,s|=o<<6,r.strstart!==0&&(s|=IKr),s+=31-s%31,Tre(r,s),r.strstart!==0&&(Tre(r,e.adler>>>16),Tre(r,e.adler&65535)),e.adler=1,r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(r.status===d0t){if(e.adler=0,wu(r,31),wu(r,139),wu(r,8),r.gzhead)wu(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),wu(r,r.gzhead.time&255),wu(r,r.gzhead.time>>8&255),wu(r,r.gzhead.time>>16&255),wu(r,r.gzhead.time>>24&255),wu(r,r.level===9?2:r.strategy>=O_e||r.level<2?4:0),wu(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(wu(r,r.gzhead.extra.length&255),wu(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=wg(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Jst;else if(wu(r,0),wu(r,0),wu(r,0),wu(r,0),wu(r,0),wu(r,r.level===9?2:r.strategy>=O_e||r.level<2?4:0),wu(r,NKr),r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(r.status===Jst){if(r.gzhead.extra){let s=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let h=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+h),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex+=h,Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0,o-=h}let u=new Uint8Array(r.gzhead.extra);r.pending_buf.set(u.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex=0}r.status=eot}if(r.status===eot){if(r.gzhead.name){let s=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,wu(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex=0}r.status=tot}if(r.status===tot){if(r.gzhead.comment){let s=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,wu(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s))}r.status=not}if(r.status===not){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Tw(e),r.pending!==0))return r.last_flush=-1,pm;wu(r,e.adler&255),wu(r,e.adler>>8&255),e.adler=0}if(r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(e.avail_in!==0||r.lookahead!==0||t!==TO&&r.status!==kie){let s=r.level===0?VOn(r,t):r.strategy===O_e?MKr(r,t):r.strategy===bKr?DKr(r,t):Rie[r.level].func(r,t);if((s===AF||s===OW)&&(r.status=kie),s===Ky||s===AF)return e.avail_out===0&&(r.last_flush=-1),pm;if(s===NW&&(t===dKr?hKr(r):t!==g1n&&(Qst(r,0,0,!1),t===fKr&&(JN(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Tw(e),e.avail_out===0))return r.last_flush=-1,pm}return t!==tS?pm:r.wrap<=0?m1n:(r.wrap===2?(wu(r,e.adler&255),wu(r,e.adler>>8&255),wu(r,e.adler>>16&255),wu(r,e.adler>>24&255),wu(r,e.total_in&255),wu(r,e.total_in>>8&255),wu(r,e.total_in>>16&255),wu(r,e.total_in>>24&255)):(Tre(r,e.adler>>>16),Tre(r,e.adler&65535)),Tw(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?pm:m1n)},zKr=e=>{if(Zle(e))return aA;const t=e.state.status;return e.state=null,t===KB?XB(e,pKr):pm},GKr=(e,t)=>{let r=t.length;if(Zle(e))return aA;const a=e.state,s=a.wrap;if(s===2||s===1&&a.status!==Ej||a.lookahead)return aA;if(s===1&&(e.adler=aoe(e.adler,t,r,0)),a.wrap=0,r>=a.w_size){s===0&&(JN(a.head),a.strstart=0,a.block_start=0,a.insert=0);let f=new Uint8Array(a.w_size);f.set(t.subarray(r-a.w_size,r),0),t=f,r=a.w_size}const o=e.avail_in,u=e.next_in,h=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,xj(a);a.lookahead>=Ac;){let f=a.strstart,p=a.lookahead-(Ac-1);do a.ins_h=CO(a,a.ins_h,a.window[f+Ac-1]),a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++;while(--p);a.strstart=f,a.lookahead=Ac-1,xj(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=Ac-1,a.match_available=0,e.next_in=u,e.input=h,e.avail_in=o,a.wrap=s,pm};var qKr=$Kr,HKr=WOn,VKr=jOn,YKr=YOn,jKr=FKr,WKr=UKr,KKr=zKr,XKr=GKr,QKr="pako deflate (from Nodeca project)",ese={deflateInit:qKr,deflateInit2:HKr,deflateReset:VKr,deflateResetKeep:YKr,deflateSetHeader:jKr,deflate:WKr,deflateEnd:KKr,deflateSetDictionary:XKr,deflateInfo:QKr};const ZKr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var JKr=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const a in r)ZKr(r,a)&&(e[a]=r[a])}}return e},eXr=e=>{let t=0;for(let a=0,s=e.length;a<s;a++)t+=e[a].length;const r=new Uint8Array(t);for(let a=0,s=0,o=e.length;a<o;a++){let u=e[a];r.set(u,s),s+=u.length}return r},PCe={assign:JKr,flattenChunks:eXr};let KOn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{KOn=!1}const soe=new Uint8Array(256);for(let e=0;e<256;e++)soe[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;soe[254]=soe[254]=1;var tXr=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,a,s,o,u=e.length,h=0;for(s=0;s<u;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<u&&(a=e.charCodeAt(s+1),(a&64512)===56320&&(r=65536+(r-55296<<10)+(a-56320),s++)),h+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(h),o=0,s=0;o<h;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<u&&(a=e.charCodeAt(s+1),(a&64512)===56320&&(r=65536+(r-55296<<10)+(a-56320),s++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const nXr=(e,t)=>{if(t<65534&&e.subarray&&KOn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r};var rXr=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a,s;const o=new Array(r*2);for(s=0,a=0;a<r;){let u=e[a++];if(u<128){o[s++]=u;continue}let h=soe[u];if(h>4){o[s++]=65533,a+=h-1;continue}for(u&=h===2?31:h===3?15:7;h>1&&a<r;)u=u<<6|e[a++]&63,h--;if(h>1){o[s++]=65533;continue}u<65536?o[s++]=u:(u-=65536,o[s++]=55296|u>>10&1023,o[s++]=56320|u&1023)}return nXr(o,s)},iXr=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+soe[e[r]]>t?r:t},ooe={string2buf:tXr,buf2string:rXr,utf8border:iXr};function aXr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var XOn=aXr;const QOn=Object.prototype.toString,{Z_NO_FLUSH:sXr,Z_SYNC_FLUSH:oXr,Z_FULL_FLUSH:lXr,Z_FINISH:cXr,Z_OK:QSe,Z_STREAM_END:uXr,Z_DEFAULT_COMPRESSION:hXr,Z_DEFAULT_STRATEGY:dXr,Z_DEFLATED:fXr}=DCe;function BCe(e){this.options=PCe.assign({level:hXr,method:fXr,chunkSize:16384,windowBits:15,memLevel:8,strategy:dXr},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XOn,this.strm.avail_out=0;let r=ese.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==QSe)throw new Error(CF[r]);if(t.header&&ese.deflateSetHeader(this.strm,t.header),t.dictionary){let a;if(typeof t.dictionary=="string"?a=ooe.string2buf(t.dictionary):QOn.call(t.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(t.dictionary):a=t.dictionary,r=ese.deflateSetDictionary(this.strm,a),r!==QSe)throw new Error(CF[r]);this._dict_set=!0}}BCe.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize;let s,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?cXr:sXr,typeof e=="string"?r.input=ooe.string2buf(e):QOn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(o===oXr||o===lXr)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(s=ese.deflate(r,o),s===uXr)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),s=ese.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===QSe;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};BCe.prototype.onData=function(e){this.chunks.push(e)};BCe.prototype.onEnd=function(e){e===QSe&&(this.result=PCe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pXr(e,t){const r=new BCe(t);if(r.push(e,!0),r.err)throw r.msg||CF[r.err];return r.result}function gXr(e,t){return t=t||{},t.raw=!0,pXr(e,t)}var mXr=gXr,bXr={deflateRaw:mXr};const L_e=16209,yXr=16191;var vXr=function(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M,F,U,$,G;const B=t.state;a=t.next_in,$=t.input,s=a+(t.avail_in-5),o=t.next_out,G=t.output,u=o-(r-t.avail_out),h=o+(t.avail_out-257),f=B.dmax,p=B.wsize,m=B.whave,b=B.wnext,_=B.window,w=B.hold,S=B.bits,C=B.lencode,A=B.distcode,k=(1<<B.lenbits)-1,I=(1<<B.distbits)-1;e:do{S<15&&(w+=$[a++]<<S,S+=8,w+=$[a++]<<S,S+=8),N=C[w&k];t:for(;;){if(L=N>>>24,w>>>=L,S-=L,L=N>>>16&255,L===0)G[o++]=N&65535;else if(L&16){P=N&65535,L&=15,L&&(S<L&&(w+=$[a++]<<S,S+=8),P+=w&(1<<L)-1,w>>>=L,S-=L),S<15&&(w+=$[a++]<<S,S+=8,w+=$[a++]<<S,S+=8),N=A[w&I];n:for(;;){if(L=N>>>24,w>>>=L,S-=L,L=N>>>16&255,L&16){if(M=N&65535,L&=15,S<L&&(w+=$[a++]<<S,S+=8,S<L&&(w+=$[a++]<<S,S+=8)),M+=w&(1<<L)-1,M>f){t.msg="invalid distance too far back",B.mode=L_e;break e}if(w>>>=L,S-=L,L=o-u,M>L){if(L=M-L,L>m&&B.sane){t.msg="invalid distance too far back",B.mode=L_e;break e}if(F=0,U=_,b===0){if(F+=p-L,L<P){P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}}else if(b<L){if(F+=p+b-L,L-=b,L<P){P-=L;do G[o++]=_[F++];while(--L);if(F=0,b<P){L=b,P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}}}else if(F+=b-L,L<P){P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}for(;P>2;)G[o++]=U[F++],G[o++]=U[F++],G[o++]=U[F++],P-=3;P&&(G[o++]=U[F++],P>1&&(G[o++]=U[F++]))}else{F=o-M;do G[o++]=G[F++],G[o++]=G[F++],G[o++]=G[F++],P-=3;while(P>2);P&&(G[o++]=G[F++],P>1&&(G[o++]=G[F++]))}}else if(L&64){t.msg="invalid distance code",B.mode=L_e;break e}else{N=A[(N&65535)+(w&(1<<L)-1)];continue n}break}}else if(L&64)if(L&32){B.mode=yXr;break e}else{t.msg="invalid literal/length code",B.mode=L_e;break e}else{N=C[(N&65535)+(w&(1<<L)-1)];continue t}break}}while(a<s&&o<h);P=S>>3,a-=P,S-=P<<3,w&=(1<<S)-1,t.next_in=a,t.next_out=o,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=o<h?257+(h-o):257-(o-h),B.hold=w,B.bits=S};const FH=15,y1n=852,v1n=592,_1n=0,pQe=1,w1n=2,_Xr=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),wXr=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),EXr=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),xXr=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),SXr=(e,t,r,a,s,o,u,h)=>{const f=h.bits;let p=0,m=0,b=0,_=0,w=0,S=0,C=0,A=0,k=0,I=0,N,L,P,M,F,U=null,$;const G=new Uint16Array(FH+1),B=new Uint16Array(FH+1);let Z=null,z,Y,W;for(p=0;p<=FH;p++)G[p]=0;for(m=0;m<a;m++)G[t[r+m]]++;for(w=f,_=FH;_>=1&&G[_]===0;_--);if(w>_&&(w=_),_===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,h.bits=1,0;for(b=1;b<_&&G[b]===0;b++);for(w<b&&(w=b),A=1,p=1;p<=FH;p++)if(A<<=1,A-=G[p],A<0)return-1;if(A>0&&(e===_1n||_!==1))return-1;for(B[1]=0,p=1;p<FH;p++)B[p+1]=B[p]+G[p];for(m=0;m<a;m++)t[r+m]!==0&&(u[B[t[r+m]]++]=m);if(e===_1n?(U=Z=u,$=20):e===pQe?(U=_Xr,Z=wXr,$=257):(U=EXr,Z=xXr,$=0),I=0,m=0,p=b,F=o,S=w,C=0,P=-1,k=1<<w,M=k-1,e===pQe&&k>y1n||e===w1n&&k>v1n)return 1;for(;;){z=p-C,u[m]+1<$?(Y=0,W=u[m]):u[m]>=$?(Y=Z[u[m]-$],W=U[u[m]-$]):(Y=96,W=0),N=1<<p-C,L=1<<S,b=L;do L-=N,s[F+(I>>C)+L]=z<<24|Y<<16|W|0;while(L!==0);for(N=1<<p-1;I&N;)N>>=1;if(N!==0?(I&=N-1,I+=N):I=0,m++,--G[p]===0){if(p===_)break;p=t[r+u[m]]}if(p>w&&(I&M)!==P){for(C===0&&(C=w),F+=b,S=p-C,A=1<<S;S+C<_&&(A-=G[S+C],!(A<=0));)S++,A<<=1;if(k+=1<<S,e===pQe&&k>y1n||e===w1n&&k>v1n)return 1;P=I&M,s[P]=w<<24|S<<16|F-o|0}}return I!==0&&(s[F+I]=p-C<<24|64<<16|0),h.bits=w,0};var tse=SXr;const TXr=0,ZOn=1,JOn=2,{Z_FINISH:E1n,Z_BLOCK:CXr,Z_TREES:D_e,Z_OK:kF,Z_STREAM_END:AXr,Z_NEED_DICT:kXr,Z_STREAM_ERROR:yS,Z_DATA_ERROR:e9n,Z_MEM_ERROR:t9n,Z_BUF_ERROR:RXr,Z_DEFLATED:x1n}=DCe,FCe=16180,S1n=16181,T1n=16182,C1n=16183,A1n=16184,k1n=16185,R1n=16186,I1n=16187,N1n=16188,O1n=16189,ZSe=16190,H6=16191,gQe=16192,L1n=16193,mQe=16194,D1n=16195,M1n=16196,P1n=16197,B1n=16198,M_e=16199,P_e=16200,F1n=16201,$1n=16202,U1n=16203,z1n=16204,G1n=16205,bQe=16206,q1n=16207,H1n=16208,Gd=16209,n9n=16210,r9n=16211,IXr=852,NXr=592,OXr=15,LXr=OXr,V1n=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function DXr(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const _$=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<FCe||t.mode>r9n?1:0},i9n=e=>{if(_$(e))return yS;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=FCe,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(IXr),t.distcode=t.distdyn=new Int32Array(NXr),t.sane=1,t.back=-1,kF},a9n=e=>{if(_$(e))return yS;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,i9n(e)},s9n=(e,t)=>{let r;if(_$(e))return yS;const a=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?yS:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,a9n(e))},o9n=(e,t)=>{if(!e)return yS;const r=new DXr;e.state=r,r.strm=e,r.window=null,r.mode=FCe;const a=s9n(e,t);return a!==kF&&(e.state=null),a},MXr=e=>o9n(e,LXr);let Y1n=!0,yQe,vQe;const PXr=e=>{if(Y1n){yQe=new Int32Array(512),vQe=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(tse(ZOn,e.lens,0,288,yQe,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;tse(JOn,e.lens,0,32,vQe,0,e.work,{bits:5}),Y1n=!1}e.lencode=yQe,e.lenbits=9,e.distcode=vQe,e.distbits=5},l9n=(e,t,r,a)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),a>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>a&&(s=a),o.window.set(t.subarray(r-a,r-a+s),o.wnext),a-=s,a?(o.window.set(t.subarray(r-a,r),0),o.wnext=a,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0},BXr=(e,t)=>{let r,a,s,o,u,h,f,p,m,b,_,w,S,C,A=0,k,I,N,L,P,M,F,U;const $=new Uint8Array(4);let G,B;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_$(e)||!e.output||!e.input&&e.avail_in!==0)return yS;r=e.state,r.mode===H6&&(r.mode=gQe),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,b=h,_=f,U=kF;e:for(;;)switch(r.mode){case FCe:if(r.wrap===0){r.mode=gQe;break}for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.wrap&2&&p===35615){r.wbits===0&&(r.wbits=15),r.check=0,$[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0),p=0,m=0,r.mode=S1n;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=Gd;break}if((p&15)!==x1n){e.msg="unknown compression method",r.mode=Gd;break}if(p>>>=4,m-=4,F=(p&15)+8,r.wbits===0&&(r.wbits=F),F>15||F>r.wbits){e.msg="invalid window size",r.mode=Gd;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=p&512?O1n:H6,p=0,m=0;break;case S1n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.flags=p,(r.flags&255)!==x1n){e.msg="unknown compression method",r.mode=Gd;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Gd;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0,r.mode=T1n;case T1n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.head&&(r.head.time=p),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,$[2]=p>>>16&255,$[3]=p>>>24&255,r.check=wg(r.check,$,4,0)),p=0,m=0,r.mode=C1n;case C1n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0,r.mode=A1n;case A1n:if(r.flags&1024){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0}else r.head&&(r.head.extra=null);r.mode=k1n;case k1n:if(r.flags&1024&&(w=r.length,w>h&&(w=h),w&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(a.subarray(o,o+w),F)),r.flags&512&&r.wrap&4&&(r.check=wg(r.check,a,w,o)),h-=w,o+=w,r.length-=w),r.length))break e;r.length=0,r.mode=R1n;case R1n:if(r.flags&2048){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&w<h);if(r.flags&512&&r.wrap&4&&(r.check=wg(r.check,a,w,o)),h-=w,o+=w,F)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=I1n;case I1n:if(r.flags&4096){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F));while(F&&w<h);if(r.flags&512&&r.wrap&4&&(r.check=wg(r.check,a,w,o)),h-=w,o+=w,F)break e}else r.head&&(r.head.comment=null);r.mode=N1n;case N1n:if(r.flags&512){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.wrap&4&&p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Gd;break}p=0,m=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=H6;break;case O1n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}e.adler=r.check=V1n(p),p=0,m=0,r.mode=ZSe;case ZSe:if(r.havedict===0)return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,kXr;e.adler=r.check=1,r.mode=H6;case H6:if(t===CXr||t===D_e)break e;case gQe:if(r.last){p>>>=m&7,m-=m&7,r.mode=bQe;break}for(;m<3;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}switch(r.last=p&1,p>>>=1,m-=1,p&3){case 0:r.mode=L1n;break;case 1:if(PXr(r),r.mode=M_e,t===D_e){p>>>=2,m-=2;break e}break;case 2:r.mode=M1n;break;case 3:e.msg="invalid block type",r.mode=Gd}p>>>=2,m-=2;break;case L1n:for(p>>>=m&7,m-=m&7;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Gd;break}if(r.length=p&65535,p=0,m=0,r.mode=mQe,t===D_e)break e;case mQe:r.mode=D1n;case D1n:if(w=r.length,w){if(w>h&&(w=h),w>f&&(w=f),w===0)break e;s.set(a.subarray(o,o+w),u),h-=w,o+=w,f-=w,u+=w,r.length-=w;break}r.mode=H6;break;case M1n:for(;m<14;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.nlen=(p&31)+257,p>>>=5,m-=5,r.ndist=(p&31)+1,p>>>=5,m-=5,r.ncode=(p&15)+4,p>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Gd;break}r.have=0,r.mode=P1n;case P1n:for(;r.have<r.ncode;){for(;m<3;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.lens[Z[r.have++]]=p&7,p>>>=3,m-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,G={bits:r.lenbits},U=tse(TXr,r.lens,0,19,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid code lengths set",r.mode=Gd;break}r.have=0,r.mode=B1n;case B1n:for(;r.have<r.nlen+r.ndist;){for(;A=r.lencode[p&(1<<r.lenbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(N<16)p>>>=k,m-=k,r.lens[r.have++]=N;else{if(N===16){for(B=k+2;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(p>>>=k,m-=k,r.have===0){e.msg="invalid bit length repeat",r.mode=Gd;break}F=r.lens[r.have-1],w=3+(p&3),p>>>=2,m-=2}else if(N===17){for(B=k+3;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=k,m-=k,F=0,w=3+(p&7),p>>>=3,m-=3}else{for(B=k+7;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=k,m-=k,F=0,w=11+(p&127),p>>>=7,m-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Gd;break}for(;w--;)r.lens[r.have++]=F}}if(r.mode===Gd)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Gd;break}if(r.lenbits=9,G={bits:r.lenbits},U=tse(ZOn,r.lens,0,r.nlen,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid literal/lengths set",r.mode=Gd;break}if(r.distbits=6,r.distcode=r.distdyn,G={bits:r.distbits},U=tse(JOn,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,G),r.distbits=G.bits,U){e.msg="invalid distances set",r.mode=Gd;break}if(r.mode=M_e,t===D_e)break e;case M_e:r.mode=P_e;case P_e:if(h>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,vXr(e,_),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,r.mode===H6&&(r.back=-1);break}for(r.back=0;A=r.lencode[p&(1<<r.lenbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(I&&!(I&240)){for(L=k,P=I,M=N;A=r.lencode[M+((p&(1<<L+P)-1)>>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,r.length=N,I===0){r.mode=G1n;break}if(I&32){r.back=-1,r.mode=H6;break}if(I&64){e.msg="invalid literal/length code",r.mode=Gd;break}r.extra=I&15,r.mode=F1n;case F1n:if(r.extra){for(B=r.extra;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=$1n;case $1n:for(;A=r.distcode[p&(1<<r.distbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(!(I&240)){for(L=k,P=I,M=N;A=r.distcode[M+((p&(1<<L+P)-1)>>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,I&64){e.msg="invalid distance code",r.mode=Gd;break}r.offset=N,r.extra=I&15,r.mode=U1n;case U1n:if(r.extra){for(B=r.extra;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Gd;break}r.mode=z1n;case z1n:if(f===0)break e;if(w=_-f,r.offset>w){if(w=r.offset-w,w>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Gd;break}w>r.wnext?(w-=r.wnext,S=r.wsize-w):S=r.wnext-w,w>r.length&&(w=r.length),C=r.window}else C=s,S=u-r.offset,w=r.length;w>f&&(w=f),f-=w,r.length-=w;do s[u++]=C[S++];while(--w);r.length===0&&(r.mode=P_e);break;case G1n:if(f===0)break e;s[u++]=r.length,f--,r.mode=P_e;break;case bQe:if(r.wrap){for(;m<32;){if(h===0)break e;h--,p|=a[o++]<<m,m+=8}if(_-=f,e.total_out+=_,r.total+=_,r.wrap&4&&_&&(e.adler=r.check=r.flags?wg(r.check,s,_,u-_):aoe(r.check,s,_,u-_)),_=f,r.wrap&4&&(r.flags?p:V1n(p))!==r.check){e.msg="incorrect data check",r.mode=Gd;break}p=0,m=0}r.mode=q1n;case q1n:if(r.wrap&&r.flags){for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.wrap&4&&p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Gd;break}p=0,m=0}r.mode=H1n;case H1n:U=AXr;break e;case Gd:U=e9n;break e;case n9n:return t9n;case r9n:default:return yS}return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,(r.wsize||_!==e.avail_out&&r.mode<Gd&&(r.mode<bQe||t!==E1n))&&l9n(e,e.output,e.next_out,_-e.avail_out),b-=e.avail_in,_-=e.avail_out,e.total_in+=b,e.total_out+=_,r.total+=_,r.wrap&4&&_&&(e.adler=r.check=r.flags?wg(r.check,s,_,e.next_out-_):aoe(r.check,s,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(r.mode===H6?128:0)+(r.mode===M_e||r.mode===mQe?256:0),(b===0&&_===0||t===E1n)&&U===kF&&(U=RXr),U},FXr=e=>{if(_$(e))return yS;let t=e.state;return t.window&&(t.window=null),e.state=null,kF},$Xr=(e,t)=>{if(_$(e))return yS;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,kF):yS},UXr=(e,t)=>{const r=t.length;let a,s,o;return _$(e)||(a=e.state,a.wrap!==0&&a.mode!==ZSe)?yS:a.mode===ZSe&&(s=1,s=aoe(s,t,r,0),s!==a.check)?e9n:(o=l9n(e,t,r,r),o?(a.mode=n9n,t9n):(a.havedict=1,kF))};var zXr=a9n,GXr=s9n,qXr=i9n,HXr=MXr,VXr=o9n,YXr=BXr,jXr=FXr,WXr=$Xr,KXr=UXr,XXr="pako inflate (from Nodeca project)",h7={inflateReset:zXr,inflateReset2:GXr,inflateResetKeep:qXr,inflateInit:HXr,inflateInit2:VXr,inflate:YXr,inflateEnd:jXr,inflateGetHeader:WXr,inflateSetDictionary:KXr,inflateInfo:XXr};function QXr(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ZXr=QXr;const c9n=Object.prototype.toString,{Z_NO_FLUSH:JXr,Z_FINISH:eQr,Z_OK:loe,Z_STREAM_END:_Qe,Z_NEED_DICT:wQe,Z_STREAM_ERROR:tQr,Z_DATA_ERROR:j1n,Z_MEM_ERROR:nQr}=DCe;function $Ce(e){this.options=PCe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XOn,this.strm.avail_out=0;let r=h7.inflateInit2(this.strm,t.windowBits);if(r!==loe)throw new Error(CF[r]);if(this.header=new ZXr,h7.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ooe.string2buf(t.dictionary):c9n.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=h7.inflateSetDictionary(this.strm,t.dictionary),r!==loe)))throw new Error(CF[r])}$Ce.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize,s=this.options.dictionary;let o,u,h;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?eQr:JXr,c9n.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),o=h7.inflate(r,u),o===wQe&&s&&(o=h7.inflateSetDictionary(r,s),o===loe?o=h7.inflate(r,u):o===j1n&&(o=wQe));r.avail_in>0&&o===_Qe&&r.state.wrap>0&&e[r.next_in]!==0;)h7.inflateReset(r),o=h7.inflate(r,u);switch(o){case tQr:case j1n:case wQe:case nQr:return this.onEnd(o),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||o===_Qe))if(this.options.to==="string"){let f=ooe.utf8border(r.output,r.next_out),p=r.next_out-f,m=ooe.buf2string(r.output,f);r.next_out=p,r.avail_out=a-p,p&&r.output.set(r.output.subarray(f,f+p),0),this.onData(m)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===loe&&h===0)){if(o===_Qe)return o=h7.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};$Ce.prototype.onData=function(e){this.chunks.push(e)};$Ce.prototype.onEnd=function(e){e===loe&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=PCe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rQr(e,t){const r=new $Ce(t);if(r.push(e),r.err)throw r.msg||CF[r.err];return r.result}function iQr(e,t){return t=t||{},t.raw=!0,rQr(e,t)}var aQr=iQr,sQr={inflateRaw:aQr};const{deflateRaw:oQr}=bXr,{inflateRaw:lQr}=sQr;var DTa=oQr,MTa=lQr;function f0t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var w$=f0t();function u9n(e){w$=e}var nse={exec:()=>null};function zu(e,t=""){let r=typeof e=="string"?e:e.source;const a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Xy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var Xy={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},cQr=/^(?:[ \t]*(?:\n|$))+/,uQr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hQr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Jle=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dQr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,p0t=/(?:[*+-]|\d{1,9}[.)])/,h9n=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,d9n=zu(h9n).replace(/bull/g,p0t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),fQr=zu(h9n).replace(/bull/g,p0t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g0t=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pQr=/^[^\n]+/,m0t=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gQr=zu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m0t).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mQr=zu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p0t).getRegex(),UCe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b0t=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bQr=zu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",b0t).replace("tag",UCe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),f9n=zu(g0t).replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex(),yQr=zu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",f9n).getRegex(),y0t={blockquote:yQr,code:uQr,def:gQr,fences:hQr,heading:dQr,hr:Jle,html:bQr,lheading:d9n,list:mQr,newline:cQr,paragraph:f9n,table:nse,text:pQr},W1n=zu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex(),vQr={...y0t,lheading:fQr,table:W1n,paragraph:zu(g0t).replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",W1n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex()},_Qr={...y0t,html:zu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b0t).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nse,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zu(g0t).replace("hr",Jle).replace("heading",` *#{1,6} *[^
]`).replace("lheading",d9n).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wQr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,EQr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,p9n=/^( {2,}|\\)\n(?!\s*$)/,xQr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,zCe=/[\p{P}\p{S}]/u,v0t=/[\s\p{P}\p{S}]/u,g9n=/[^\s\p{P}\p{S}]/u,SQr=zu(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,v0t).getRegex(),m9n=/(?!~)[\p{P}\p{S}]/u,TQr=/(?!~)[\s\p{P}\p{S}]/u,CQr=/(?:[^\s\p{P}\p{S}]|~)/u,AQr=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,b9n=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,kQr=zu(b9n,"u").replace(/punct/g,zCe).getRegex(),RQr=zu(b9n,"u").replace(/punct/g,m9n).getRegex(),y9n="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",IQr=zu(y9n,"gu").replace(/notPunctSpace/g,g9n).replace(/punctSpace/g,v0t).replace(/punct/g,zCe).getRegex(),NQr=zu(y9n,"gu").replace(/notPunctSpace/g,CQr).replace(/punctSpace/g,TQr).replace(/punct/g,m9n).getRegex(),OQr=zu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,g9n).replace(/punctSpace/g,v0t).replace(/punct/g,zCe).getRegex(),LQr=zu(/\\(punct)/,"gu").replace(/punct/g,zCe).getRegex(),DQr=zu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),MQr=zu(b0t).replace("(?:-->|$)","-->").getRegex(),PQr=zu("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",MQr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),JSe=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,BQr=zu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",JSe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),v9n=zu(/^!?\[(label)\]\[(ref)\]/).replace("label",JSe).replace("ref",m0t).getRegex(),_9n=zu(/^!?\[(ref)\](?:\[\])?/).replace("ref",m0t).getRegex(),FQr=zu("reflink|nolink(?!\\()","g").replace("reflink",v9n).replace("nolink",_9n).getRegex(),_0t={_backpedal:nse,anyPunctuation:LQr,autolink:DQr,blockSkip:AQr,br:p9n,code:EQr,del:nse,emStrongLDelim:kQr,emStrongRDelimAst:IQr,emStrongRDelimUnd:OQr,escape:wQr,link:BQr,nolink:_9n,punctuation:SQr,reflink:v9n,reflinkSearch:FQr,tag:PQr,text:xQr,url:nse},$Qr={..._0t,link:zu(/^!?\[(label)\]\((.*?)\)/).replace("label",JSe).getRegex(),reflink:zu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",JSe).getRegex()},iot={..._0t,emStrongRDelimAst:NQr,emStrongLDelim:RQr,url:zu(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},UQr={...iot,br:zu(p9n).replace("{2,}","*").getRegex(),text:zu(iot.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B_e={normal:y0t,gfm:vQr,pedantic:_Qr},Cre={normal:_0t,gfm:iot,breaks:UQr,pedantic:$Qr},zQr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},K1n=e=>zQr[e];function vC(e,t){if(t){if(Xy.escapeTest.test(e))return e.replace(Xy.escapeReplace,K1n)}else if(Xy.escapeTestNoEncode.test(e))return e.replace(Xy.escapeReplaceNoEncode,K1n);return e}function X1n(e){try{e=encodeURI(e).replace(Xy.percentDecode,"%")}catch{return null}return e}function Q1n(e,t){var o;const r=e.replace(Xy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Xy.splitPipe);let s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(Xy.slashPipe,"|");return a}function Are(e,t,r){const a=e.length;if(a===0)return"";let s=0;for(;s<a&&e.charAt(a-s-1)===t;)s++;return e.slice(0,a-s)}function GQr(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return r>0?-2:-1}function Z1n(e,t,r,a,s){const o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;const f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function qQr(e,t,r){const a=e.match(r.other.indentCodeCompensation);if(a===null)return t;const s=a[1];return t.split(`
`).map(o=>{const u=o.match(r.other.beginningSpace);if(u===null)return o;const[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(`
`)}var e4e=class{constructor(e){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=e||w$}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Are(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],a=qQr(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const a=Are(r,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(r=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Are(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=Are(t[0],`
`).split(`
`),a="",s="";const o=[];for(;r.length>0;){let u=!1;const h=[];let f;for(f=0;f<r.length;f++)if(this.rules.other.blockquoteStart.test(r[f]))h.push(r[f]),u=!0;else if(!u)h.push(r[f]);else break;r=r.slice(f);const p=h.join(`
`),m=p.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
${p}`:p,s=s?`${s}
${m}`:m;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,o,!0),this.lexer.state.top=b,r.length===0)break;const _=o.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){const w=_,S=w.raw+`
`+r.join(`
`),C=this.blockquote(S);o[o.length-1]=C,a=a.substring(0,a.length-w.raw.length)+C.raw,s=s.substring(0,s.length-w.text.length)+C.text;break}else if((_==null?void 0:_.type)==="list"){const w=_,S=w.raw+`
`+r.join(`
`),C=this.list(S);o[o.length-1]=C,a=a.substring(0,a.length-_.raw.length)+C.raw,s=s.substring(0,s.length-w.raw.length)+C.raw,r=S.substring(o.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:a,tokens:o,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const a=r.length>1,s={type:"list",raw:"",ordered:a,start:a?+r.slice(0,-1):"",loose:!1,items:[]};r=a?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=a?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let u=!1;for(;e;){let f=!1,p="",m="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let b=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),_=e.split(`
`,1)[0],w=!b.trim(),S=0;if(this.options.pedantic?(S=2,m=b.trimStart()):w?S=t[1].length+1:(S=t[2].search(this.rules.other.nonSpaceChar),S=S>4?1:S,m=b.slice(S),S+=t[1].length),w&&this.rules.other.blankLine.test(_)&&(p+=_+`
`,e=e.substring(_.length+1),f=!0),!f){const k=this.rules.other.nextBulletRegex(S),I=this.rules.other.hrRegex(S),N=this.rules.other.fencesBeginRegex(S),L=this.rules.other.headingBeginRegex(S),P=this.rules.other.htmlBeginRegex(S);for(;e;){const M=e.split(`
`,1)[0];let F;if(_=M,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting,"  "),F=_):F=_.replace(this.rules.other.tabCharGlobal,"    "),N.test(_)||L.test(_)||P.test(_)||k.test(_)||I.test(_))break;if(F.search(this.rules.other.nonSpaceChar)>=S||!_.trim())m+=`
`+F.slice(S);else{if(w||b.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||N.test(b)||L.test(b)||I.test(b))break;m+=`
`+_}!w&&!_.trim()&&(w=!0),p+=M+`
`,e=e.substring(M.length+1),b=F.slice(S)}}s.loose||(u?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(u=!0));let C=null,A;this.options.gfm&&(C=this.rules.other.listIsTask.exec(m),C&&(A=C[0]!=="[ ] ",m=m.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!C,checked:A,loose:!1,text:m,tokens:[]}),s.raw+=p}const h=s.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){const p=s.items[f].tokens.filter(b=>b.type==="space"),m=p.length>0&&p.some(b=>this.rules.other.anyLine.test(b.raw));s.loose=m}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:a,title:s}}}table(e){var u;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=Q1n(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(u=t[3])!=null&&u.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===a.length){for(const h of a)this.rules.other.tableAlignRight.test(h)?o.align.push("right"):this.rules.other.tableAlignCenter.test(h)?o.align.push("center"):this.rules.other.tableAlignLeft.test(h)?o.align.push("left"):o.align.push(null);for(let h=0;h<r.length;h++)o.header.push({text:r[h],tokens:this.lexer.inline(r[h]),header:!0,align:o.align[h]});for(const h of s)o.rows.push(Q1n(h,o.header.length).map((f,p)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:o.align[p]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=Are(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=GQr(t[2],"()");if(o===-2)return;if(o>-1){const h=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,h).trim(),t[3]=""}}let a=t[2],s="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),Z1n(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const a=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[a.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return Z1n(r,s,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...a[0]].length-1;let u,h,f=o,p=0;const m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(a=m.exec(t))!=null;){if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!u)continue;if(h=[...u].length,a[3]||a[4]){f+=h;continue}else if((a[5]||a[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);const b=[...a[0]][0].length,_=e.slice(0,o+a.index+b+h);if(Math.min(o,h)%2){const S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}const w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const a=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return a&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,a;return t[2]==="@"?(r=t[1],a="mailto:"+r):(r=t[1],a=r),{type:"link",raw:t[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let a,s;if(t[2]==="@")a=t[0],s="mailto:"+a;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);a=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},x7=class aot{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"tokenizer");Gi(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||w$,this.options.tokenizer=this.options.tokenizer||new e4e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Xy,block:B_e.normal,inline:Cre.normal};this.options.pedantic?(r.block=B_e.pedantic,r.inline=Cre.pedantic):this.options.gfm&&(r.block=B_e.gfm,this.options.breaks?r.inline=Cre.breaks:r.inline=Cre.gfm),this.tokenizer.rules=r}static get rules(){return{block:B_e,inline:Cre}}static lex(t,r){return new aot(r).lex(t)}static lexInline(t,r){return new aot(r).inlineTokens(t)}lex(t){t=t.replace(Xy.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const a=this.inlineQueue[r];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],a=!1){var s,o,u;for(this.options.pedantic&&(t=t.replace(Xy.tabCharGlobal,"    ").replace(Xy.spaceLine,""));t;){let h;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(p=>(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);const p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=`
`:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=`
`+h.raw,p.text+=`
`+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=`
`+h.raw,p.text+=`
`+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0;const m=t.slice(1);let b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){const p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=`
`+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=`
`+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var h,f,p;let a=t,s=null;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)m.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,u="";for(;t;){o||(u=""),o=!1;let m;if((f=(h=this.options.extensions)==null?void 0:h.inline)!=null&&f.some(_=>(m=_.call({lexer:this},t,r))?(t=t.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);const _=r.at(-1);m.type==="text"&&(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):r.push(m);continue}if(m=this.tokenizer.emStrong(t,a,u)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.del(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),r.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),r.push(m);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let _=1/0;const w=t.slice(1);let S;this.options.extensions.startInline.forEach(C=>{S=C.call({lexer:this},w),typeof S=="number"&&S>=0&&(_=Math.min(_,S))}),_<1/0&&_>=0&&(b=t.substring(0,_+1))}if(m=this.tokenizer.inlineText(b)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(u=m.raw.slice(-1)),o=!0;const _=r.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):r.push(m);continue}if(t){const _="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return r}},t4e=class{constructor(e){Gi(this,"options");Gi(this,"parser");this.options=e||w$}space(e){return""}code({text:e,lang:t,escaped:r}){var o;const a=(o=(t||"").match(Xy.notSpaceStart))==null?void 0:o[0],s=e.replace(Xy.endingNewline,"")+`
`;return a?'<pre><code class="language-'+vC(a)+'">'+(r?s:vC(s,!0))+`</code></pre>
`:"<pre><code>"+(r?s:vC(s,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,r=e.start;let a="";for(let u=0;u<e.items.length;u++){const h=e.items[u];a+=this.listitem(h)}const s=t?"ol":"ul",o=t&&r!==1?' start="'+r+'"':"";return"<"+s+o+`>
`+a+"</"+s+`>
`}listitem(e){var r;let t="";if(e.task){const a=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=a+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=a+" "+vC(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):t+=a+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",r="";for(let s=0;s<e.header.length;s++)r+=this.tablecell(e.header[s]);t+=this.tablerow({text:r});let a="";for(let s=0;s<e.rows.length;s++){const o=e.rows[s];r="";for(let u=0;u<o.length;u++)r+=this.tablecell(o[u]);a+=this.tablerow({text:r})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+a+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${vC(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const a=this.parser.parseInline(r),s=X1n(e);if(s===null)return a;e=s;let o='<a href="'+e+'"';return t&&(o+=' title="'+vC(t)+'"'),o+=">"+a+"</a>",o}image({href:e,title:t,text:r,tokens:a}){a&&(r=this.parser.parseInline(a,this.parser.textRenderer));const s=X1n(e);if(s===null)return vC(r);e=s;let o=`<img src="${e}" alt="${r}"`;return t&&(o+=` title="${vC(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vC(e.text)}},w0t=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},S7=class sot{constructor(t){Gi(this,"options");Gi(this,"renderer");Gi(this,"textRenderer");this.options=t||w$,this.options.renderer=this.options.renderer||new t4e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new w0t}static parse(t,r){return new sot(r).parse(t)}static parseInline(t,r){return new sot(r).parseInline(t)}parse(t,r=!0){var s,o;let a="";for(let u=0;u<t.length;u++){const h=t[u];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[h.type]){const p=h,m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)){a+=m||"";continue}}const f=h;switch(f.type){case"space":{a+=this.renderer.space(f);continue}case"hr":{a+=this.renderer.hr(f);continue}case"heading":{a+=this.renderer.heading(f);continue}case"code":{a+=this.renderer.code(f);continue}case"table":{a+=this.renderer.table(f);continue}case"blockquote":{a+=this.renderer.blockquote(f);continue}case"list":{a+=this.renderer.list(f);continue}case"html":{a+=this.renderer.html(f);continue}case"paragraph":{a+=this.renderer.paragraph(f);continue}case"text":{let p=f,m=this.renderer.text(p);for(;u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
`+this.renderer.text(p);r?a+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):a+=m;continue}default:{const p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}parseInline(t,r=this.renderer){var s,o;let a="";for(let u=0;u<t.length;u++){const h=t[u];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[h.type]){const p=this.options.extensions.renderers[h.type].call({parser:this},h);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){a+=p||"";continue}}const f=h;switch(f.type){case"escape":{a+=r.text(f);break}case"html":{a+=r.html(f);break}case"link":{a+=r.link(f);break}case"image":{a+=r.image(f);break}case"strong":{a+=r.strong(f);break}case"em":{a+=r.em(f);break}case"codespan":{a+=r.codespan(f);break}case"br":{a+=r.br(f);break}case"del":{a+=r.del(f);break}case"text":{a+=r.text(f);break}default:{const p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}},Dat,jEe=(Dat=class{constructor(e){Gi(this,"options");Gi(this,"block");this.options=e||w$}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?x7.lex:x7.lexInline}provideParser(){return this.block?S7.parse:S7.parseInline}},Gi(Dat,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Dat),HQr=class{constructor(...e){Gi(this,"defaults",f0t());Gi(this,"options",this.setOptions);Gi(this,"parse",this.parseMarkdown(!0));Gi(this,"parseInline",this.parseMarkdown(!1));Gi(this,"Parser",S7);Gi(this,"Renderer",t4e);Gi(this,"TextRenderer",w0t);Gi(this,"Lexer",x7);Gi(this,"Tokenizer",e4e);Gi(this,"Hooks",jEe);this.use(...e)}walkTokens(e,t){var a,s;let r=[];for(const o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{const u=o;for(const h of u.header)r=r.concat(this.walkTokens(h.tokens,t));for(const h of u.rows)for(const f of h)r=r.concat(this.walkTokens(f.tokens,t));break}case"list":{const u=o;r=r.concat(this.walkTokens(u.items,t));break}default:{const u=o;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[u.type]?this.defaults.extensions.childTokens[u.type].forEach(h=>{const f=u[h].flat(1/0);r=r.concat(this.walkTokens(f,t))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const a={...r};if(a.async=this.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...u){let h=s.renderer.apply(this,u);return h===!1&&(h=o.apply(this,u)),h}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),a.extensions=t),r.renderer){const s=this.defaults.renderer||new t4e(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const u=o,h=r.renderer[u],f=s[u];s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m||""}}a.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new e4e(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const u=o,h=r.tokenizer[u],f=s[u];s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m}}a.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new jEe;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const u=o,h=r.hooks[u],f=s[u];jEe.passThroughHooks.has(o)?s[u]=p=>{if(this.defaults.async)return Promise.resolve(h.call(s,p)).then(b=>f.call(s,b));const m=h.call(s,p);return f.call(s,m)}:s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m}}a.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;a.walkTokens=function(u){let h=[];return h.push(o.call(this,u)),s&&(h=h.concat(s.call(this,u))),h}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x7.lex(e,t??this.defaults)}parser(e,t){return S7.parse(e,t??this.defaults)}parseMarkdown(e){return(r,a)=>{const s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const h=o.hooks?o.hooks.provideLexer():e?x7.lex:x7.lexInline,f=o.hooks?o.hooks.provideParser():e?S7.parse:S7.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(p=>h(p,o)).then(p=>o.hooks?o.hooks.processAllTokens(p):p).then(p=>o.walkTokens?Promise.all(this.walkTokens(p,o.walkTokens)).then(()=>p):p).then(p=>f(p,o)).then(p=>o.hooks?o.hooks.postprocess(p):p).catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let p=h(r,o);o.hooks&&(p=o.hooks.processAllTokens(p)),o.walkTokens&&this.walkTokens(p,o.walkTokens);let m=f(p,o);return o.hooks&&(m=o.hooks.postprocess(m)),m}catch(p){return u(p)}}}onError(e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const a="<p>An error occurred:</p><pre>"+vC(r.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(r);throw r}}},RF=new HQr;function _h(e,t){return RF.parse(e,t)}_h.options=_h.setOptions=function(e){return RF.setOptions(e),_h.defaults=RF.defaults,u9n(_h.defaults),_h};_h.getDefaults=f0t;_h.defaults=w$;_h.use=function(...e){return RF.use(...e),_h.defaults=RF.defaults,u9n(_h.defaults),_h};_h.walkTokens=function(e,t){return RF.walkTokens(e,t)};_h.parseInline=RF.parseInline;_h.Parser=S7;_h.parser=S7.parse;_h.Renderer=t4e;_h.TextRenderer=w0t;_h.Lexer=x7;_h.lexer=x7.lex;_h.Tokenizer=e4e;_h.Hooks=jEe;_h.parse=_h;_h.options;_h.setOptions;_h.use;_h.walkTokens;_h.parseInline;S7.parse;x7.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:w9n,setPrototypeOf:J1n,isFrozen:VQr,getPrototypeOf:YQr,getOwnPropertyDescriptor:jQr}=Object;let{freeze:sv,seal:vS,create:oot}=Object,{apply:lot,construct:cot}=typeof Reflect<"u"&&Reflect;sv||(sv=function(t){return t});vS||(vS=function(t){return t});lot||(lot=function(t,r){for(var a=arguments.length,s=new Array(a>2?a-2:0),o=2;o<a;o++)s[o-2]=arguments[o];return t.apply(r,s)});cot||(cot=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return new t(...a)});const F_e=ov(Array.prototype.forEach),WQr=ov(Array.prototype.lastIndexOf),epn=ov(Array.prototype.pop),kre=ov(Array.prototype.push),KQr=ov(Array.prototype.splice),WEe=ov(String.prototype.toLowerCase),EQe=ov(String.prototype.toString),xQe=ov(String.prototype.match),Rre=ov(String.prototype.replace),XQr=ov(String.prototype.indexOf),QQr=ov(String.prototype.trim),x3=ov(Object.prototype.hasOwnProperty),My=ov(RegExp.prototype.test),Ire=ZQr(TypeError);function ov(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return lot(e,t,a)}}function ZQr(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return cot(e,r)}}function Jl(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:WEe;J1n&&J1n(e,null);let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const o=r(s);o!==s&&(VQr(t)||(t[a]=o),s=o)}e[s]=!0}return e}function JQr(e){for(let t=0;t<e.length;t++)x3(e,t)||(e[t]=null);return e}function _C(e){const t=oot(null);for(const[r,a]of w9n(e))x3(e,r)&&(Array.isArray(a)?t[r]=JQr(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=_C(a):t[r]=a);return t}function Nre(e,t){for(;e!==null;){const a=jQr(e,t);if(a){if(a.get)return ov(a.get);if(typeof a.value=="function")return ov(a.value)}e=YQr(e)}function r(){return null}return r}const tpn=sv(["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","search","section","select","shadow","slot","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"]),SQe=sv(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),TQe=sv(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),eZr=sv(["animate","color-profile","cursor","discard","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"]),CQe=sv(["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","mprescripts"]),tZr=sv(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),npn=sv(["#text"]),rpn=sv(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),AQe=sv(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),ipn=sv(["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"]),$_e=sv(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nZr=vS(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rZr=vS(/<%[\w\W]*|[\w\W]*%>/gm),iZr=vS(/\$\{[\w\W]*/gm),aZr=vS(/^data-[\-\w.\u00B7-\uFFFF]+$/),sZr=vS(/^aria-[\-\w]+$/),E9n=vS(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oZr=vS(/^(?:\w+script|data):/i),lZr=vS(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x9n=vS(/^html$/i),cZr=vS(/^[a-z][.\w]*(-[.\w]+)+$/i);var apn=Object.freeze({__proto__:null,ARIA_ATTR:sZr,ATTR_WHITESPACE:lZr,CUSTOM_ELEMENT:cZr,DATA_ATTR:aZr,DOCTYPE_NAME:x9n,ERB_EXPR:rZr,IS_ALLOWED_URI:E9n,IS_SCRIPT_OR_DATA:oZr,MUSTACHE_EXPR:nZr,TMPLIT_EXPR:iZr});const Ore={element:1,text:3,progressingInstruction:7,comment:8,document:9},uZr=function(){return typeof window>"u"?null:window},hZr=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(a=r.getAttribute(s));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},spn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function S9n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uZr();const t=Pt=>S9n(Pt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Ore.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const a=r,s=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:h,Element:f,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:_,trustedTypes:w}=e,S=f.prototype,C=Nre(S,"cloneNode"),A=Nre(S,"remove"),k=Nre(S,"nextSibling"),I=Nre(S,"childNodes"),N=Nre(S,"parentNode");if(typeof u=="function"){const Pt=r.createElement("template");Pt.content&&Pt.content.ownerDocument&&(r=Pt.content.ownerDocument)}let L,P="";const{implementation:M,createNodeIterator:F,createDocumentFragment:U,getElementsByTagName:$}=r,{importNode:G}=a;let B=spn();t.isSupported=typeof w9n=="function"&&typeof N=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:z,TMPLIT_EXPR:Y,DATA_ATTR:W,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ee}=apn;let{IS_ALLOWED_URI:te}=apn,ne=null;const se=Jl({},[...tpn,...SQe,...TQe,...CQe,...npn]);let ie=null;const ge=Jl({},[...rpn,...AQe,...ipn,...$_e]);let ce=Object.seal(oot(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}})),be=null,ve=null;const De=Object.seal(oot(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,Ee=!0,he=!1,we=!0,Ce=!1,Ie=!0,Le=!1,Fe=!1,Ve=!1,Oe=!1,Dt=!1,ot=!1,sn=!0,Kt=!1;const Ft="user-content-";let Je=!0,ht=!1,et={},qe=null;const He=Jl({},["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"]);let Ge=null;const Ye=Jl({},["audio","video","img","source","image","track"]);let Ae=null;const Xe=Jl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let mt=Ke,lt=!1,$t=null;const Ut=Jl({},[fe,Qe,Ke],EQe);let Jt=Jl({},["mi","mo","mn","ms","mtext"]),wn=Jl({},["annotation-xml"]);const Vn=Jl({},["title","style","font","a","script"]);let Wn=null;const Dn=["application/xhtml+xml","text/html"],zn="text/html";let vn=null,Cn=null;const Ar=r.createElement("form"),ur=function(St){return St instanceof RegExp||St instanceof Function},On=function(){let St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Cn&&Cn===St)){if((!St||typeof St!="object")&&(St={}),St=_C(St),Wn=Dn.indexOf(St.PARSER_MEDIA_TYPE)===-1?zn:St.PARSER_MEDIA_TYPE,vn=Wn==="application/xhtml+xml"?EQe:WEe,ne=x3(St,"ALLOWED_TAGS")?Jl({},St.ALLOWED_TAGS,vn):se,ie=x3(St,"ALLOWED_ATTR")?Jl({},St.ALLOWED_ATTR,vn):ge,$t=x3(St,"ALLOWED_NAMESPACES")?Jl({},St.ALLOWED_NAMESPACES,EQe):Ut,Ae=x3(St,"ADD_URI_SAFE_ATTR")?Jl(_C(Xe),St.ADD_URI_SAFE_ATTR,vn):Xe,Ge=x3(St,"ADD_DATA_URI_TAGS")?Jl(_C(Ye),St.ADD_DATA_URI_TAGS,vn):Ye,qe=x3(St,"FORBID_CONTENTS")?Jl({},St.FORBID_CONTENTS,vn):He,be=x3(St,"FORBID_TAGS")?Jl({},St.FORBID_TAGS,vn):_C({}),ve=x3(St,"FORBID_ATTR")?Jl({},St.FORBID_ATTR,vn):_C({}),et=x3(St,"USE_PROFILES")?St.USE_PROFILES:!1,ye=St.ALLOW_ARIA_ATTR!==!1,Ee=St.ALLOW_DATA_ATTR!==!1,he=St.ALLOW_UNKNOWN_PROTOCOLS||!1,we=St.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=St.SAFE_FOR_TEMPLATES||!1,Ie=St.SAFE_FOR_XML!==!1,Le=St.WHOLE_DOCUMENT||!1,Oe=St.RETURN_DOM||!1,Dt=St.RETURN_DOM_FRAGMENT||!1,ot=St.RETURN_TRUSTED_TYPE||!1,Ve=St.FORCE_BODY||!1,sn=St.SANITIZE_DOM!==!1,Kt=St.SANITIZE_NAMED_PROPS||!1,Je=St.KEEP_CONTENT!==!1,ht=St.IN_PLACE||!1,te=St.ALLOWED_URI_REGEXP||E9n,mt=St.NAMESPACE||Ke,Jt=St.MATHML_TEXT_INTEGRATION_POINTS||Jt,wn=St.HTML_INTEGRATION_POINTS||wn,ce=St.CUSTOM_ELEMENT_HANDLING||{},St.CUSTOM_ELEMENT_HANDLING&&ur(St.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=St.CUSTOM_ELEMENT_HANDLING.tagNameCheck),St.CUSTOM_ELEMENT_HANDLING&&ur(St.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=St.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),St.CUSTOM_ELEMENT_HANDLING&&typeof St.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=St.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Ee=!1),Dt&&(Oe=!0),et&&(ne=Jl({},npn),ie=[],et.html===!0&&(Jl(ne,tpn),Jl(ie,rpn)),et.svg===!0&&(Jl(ne,SQe),Jl(ie,AQe),Jl(ie,$_e)),et.svgFilters===!0&&(Jl(ne,TQe),Jl(ie,AQe),Jl(ie,$_e)),et.mathMl===!0&&(Jl(ne,CQe),Jl(ie,ipn),Jl(ie,$_e))),St.ADD_TAGS&&(typeof St.ADD_TAGS=="function"?De.tagCheck=St.ADD_TAGS:(ne===se&&(ne=_C(ne)),Jl(ne,St.ADD_TAGS,vn))),St.ADD_ATTR&&(typeof St.ADD_ATTR=="function"?De.attributeCheck=St.ADD_ATTR:(ie===ge&&(ie=_C(ie)),Jl(ie,St.ADD_ATTR,vn))),St.ADD_URI_SAFE_ATTR&&Jl(Ae,St.ADD_URI_SAFE_ATTR,vn),St.FORBID_CONTENTS&&(qe===He&&(qe=_C(qe)),Jl(qe,St.FORBID_CONTENTS,vn)),St.ADD_FORBID_CONTENTS&&(qe===He&&(qe=_C(qe)),Jl(qe,St.ADD_FORBID_CONTENTS,vn)),Je&&(ne["#text"]=!0),Le&&Jl(ne,["html","head","body"]),ne.table&&(Jl(ne,["tbody"]),delete be.tbody),St.TRUSTED_TYPES_POLICY){if(typeof St.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ire('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof St.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ire('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=St.TRUSTED_TYPES_POLICY,P=L.createHTML("")}else L===void 0&&(L=hZr(w,s)),L!==null&&typeof P=="string"&&(P=L.createHTML(""));sv&&sv(St),Cn=St}},Ir=Jl({},[...SQe,...TQe,...eZr]),Ln=Jl({},[...CQe,...tZr]),pr=function(St){let Un=N(St);(!Un||!Un.tagName)&&(Un={namespaceURI:mt,tagName:"template"});const Hr=WEe(St.tagName),za=WEe(Un.tagName);return $t[St.namespaceURI]?St.namespaceURI===Qe?Un.namespaceURI===Ke?Hr==="svg":Un.namespaceURI===fe?Hr==="svg"&&(za==="annotation-xml"||Jt[za]):!!Ir[Hr]:St.namespaceURI===fe?Un.namespaceURI===Ke?Hr==="math":Un.namespaceURI===Qe?Hr==="math"&&wn[za]:!!Ln[Hr]:St.namespaceURI===Ke?Un.namespaceURI===Qe&&!wn[za]||Un.namespaceURI===fe&&!Jt[za]?!1:!Ln[Hr]&&(Vn[Hr]||!Ir[Hr]):!!(Wn==="application/xhtml+xml"&&$t[St.namespaceURI]):!1},Cr=function(St){kre(t.removed,{element:St});try{N(St).removeChild(St)}catch{A(St)}},Zr=function(St,Un){try{kre(t.removed,{attribute:Un.getAttributeNode(St),from:Un})}catch{kre(t.removed,{attribute:null,from:Un})}if(Un.removeAttribute(St),St==="is")if(Oe||Dt)try{Cr(Un)}catch{}else try{Un.setAttribute(St,"")}catch{}},Pr=function(St){let Un=null,Hr=null;if(Ve)St="<remove></remove>"+St;else{const Vr=xQe(St,/^[\r\n\t ]+/);Hr=Vr&&Vr[0]}Wn==="application/xhtml+xml"&&mt===Ke&&(St='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+St+"</body></html>");const za=L?L.createHTML(St):St;if(mt===Ke)try{Un=new _().parseFromString(za,Wn)}catch{}if(!Un||!Un.documentElement){Un=M.createDocument(mt,"template",null);try{Un.documentElement.innerHTML=lt?P:za}catch{}}const Rs=Un.body||Un.documentElement;return St&&Hr&&Rs.insertBefore(r.createTextNode(Hr),Rs.childNodes[0]||null),mt===Ke?$.call(Un,Le?"html":"body")[0]:Le?Un.documentElement:Rs},Ci=function(St){return F.call(St.ownerDocument||St,St,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},ds=function(St){return St instanceof b&&(typeof St.nodeName!="string"||typeof St.textContent!="string"||typeof St.removeChild!="function"||!(St.attributes instanceof m)||typeof St.removeAttribute!="function"||typeof St.setAttribute!="function"||typeof St.namespaceURI!="string"||typeof St.insertBefore!="function"||typeof St.hasChildNodes!="function")},ta=function(St){return typeof h=="function"&&St instanceof h};function Os(Pt,St,Un){F_e(Pt,Hr=>{Hr.call(t,St,Un,Cn)})}const uo=function(St){let Un=null;if(Os(B.beforeSanitizeElements,St,null),ds(St))return Cr(St),!0;const Hr=vn(St.nodeName);if(Os(B.uponSanitizeElement,St,{tagName:Hr,allowedTags:ne}),Ie&&St.hasChildNodes()&&!ta(St.firstElementChild)&&My(/<[/\w!]/g,St.innerHTML)&&My(/<[/\w!]/g,St.textContent)||St.nodeType===Ore.progressingInstruction||Ie&&St.nodeType===Ore.comment&&My(/<[/\w]/g,St.data))return Cr(St),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(Hr))&&(!ne[Hr]||be[Hr])){if(!be[Hr]&&La(Hr)&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,Hr)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Hr)))return!1;if(Je&&!qe[Hr]){const za=N(St)||St.parentNode,Rs=I(St)||St.childNodes;if(Rs&&za){const Vr=Rs.length;for(let Ii=Vr-1;Ii>=0;--Ii){const Pa=C(Rs[Ii],!0);Pa.__removalCount=(St.__removalCount||0)+1,za.insertBefore(Pa,k(St))}}}return Cr(St),!0}return St instanceof f&&!pr(St)||(Hr==="noscript"||Hr==="noembed"||Hr==="noframes")&&My(/<\/no(script|embed|frames)/i,St.innerHTML)?(Cr(St),!0):(Ce&&St.nodeType===Ore.text&&(Un=St.textContent,F_e([Z,z,Y],za=>{Un=Rre(Un,za," ")}),St.textContent!==Un&&(kre(t.removed,{element:St.cloneNode()}),St.textContent=Un)),Os(B.afterSanitizeElements,St,null),!1)},Ls=function(St,Un,Hr){if(sn&&(Un==="id"||Un==="name")&&(Hr in r||Hr in Ar))return!1;if(!(Ee&&!ve[Un]&&My(W,Un))){if(!(ye&&My(Q,Un))){if(!(De.attributeCheck instanceof Function&&De.attributeCheck(Un,St))){if(!ie[Un]||ve[Un]){if(!(La(St)&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,St)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(St))&&(ce.attributeNameCheck instanceof RegExp&&My(ce.attributeNameCheck,Un)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(Un,St))||Un==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,Hr)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Hr))))return!1}else if(!Ae[Un]){if(!My(te,Rre(Hr,j,""))){if(!((Un==="src"||Un==="xlink:href"||Un==="href")&&St!=="script"&&XQr(Hr,"data:")===0&&Ge[St])){if(!(he&&!My(V,Rre(Hr,j,"")))){if(Hr)return!1}}}}}}}return!0},La=function(St){return St!=="annotation-xml"&&xQe(St,ee)},to=function(St){Os(B.beforeSanitizeAttributes,St,null);const{attributes:Un}=St;if(!Un||ds(St))return;const Hr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let za=Un.length;for(;za--;){const Rs=Un[za],{name:Vr,namespaceURI:Ii,value:Pa}=Rs,Or=vn(Vr),no=Pa;let dt=Vr==="value"?no:QQr(no);if(Hr.attrName=Or,Hr.attrValue=dt,Hr.keepAttr=!0,Hr.forceKeepAttr=void 0,Os(B.uponSanitizeAttribute,St,Hr),dt=Hr.attrValue,Kt&&(Or==="id"||Or==="name")&&(Zr(Vr,St),dt=Ft+dt),Ie&&My(/((--!?|])>)|<\/(style|title|textarea)/i,dt)){Zr(Vr,St);continue}if(Or==="attributename"&&xQe(dt,"href")){Zr(Vr,St);continue}if(Hr.forceKeepAttr)continue;if(!Hr.keepAttr){Zr(Vr,St);continue}if(!we&&My(/\/>/i,dt)){Zr(Vr,St);continue}Ce&&F_e([Z,z,Y],Tt=>{dt=Rre(dt,Tt," ")});const Wi=vn(St.nodeName);if(!Ls(Wi,Or,dt)){Zr(Vr,St);continue}if(L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Ii)switch(w.getAttributeType(Wi,Or)){case"TrustedHTML":{dt=L.createHTML(dt);break}case"TrustedScriptURL":{dt=L.createScriptURL(dt);break}}if(dt!==no)try{Ii?St.setAttributeNS(Ii,Vr,dt):St.setAttribute(Vr,dt),ds(St)?Cr(St):epn(t.removed)}catch{Zr(Vr,St)}}Os(B.afterSanitizeAttributes,St,null)},Fi=function Pt(St){let Un=null;const Hr=Ci(St);for(Os(B.beforeSanitizeShadowDOM,St,null);Un=Hr.nextNode();)Os(B.uponSanitizeShadowNode,Un,null),uo(Un),to(Un),Un.content instanceof o&&Pt(Un.content);Os(B.afterSanitizeShadowDOM,St,null)};return t.sanitize=function(Pt){let St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Un=null,Hr=null,za=null,Rs=null;if(lt=!Pt,lt&&(Pt="<!-->"),typeof Pt!="string"&&!ta(Pt))if(typeof Pt.toString=="function"){if(Pt=Pt.toString(),typeof Pt!="string")throw Ire("dirty is not a string, aborting")}else throw Ire("toString is not a function");if(!t.isSupported)return Pt;if(Fe||On(St),t.removed=[],typeof Pt=="string"&&(ht=!1),ht){if(Pt.nodeName){const Pa=vn(Pt.nodeName);if(!ne[Pa]||be[Pa])throw Ire("root node is forbidden and cannot be sanitized in-place")}}else if(Pt instanceof h)Un=Pr("<!---->"),Hr=Un.ownerDocument.importNode(Pt,!0),Hr.nodeType===Ore.element&&Hr.nodeName==="BODY"||Hr.nodeName==="HTML"?Un=Hr:Un.appendChild(Hr);else{if(!Oe&&!Ce&&!Le&&Pt.indexOf("<")===-1)return L&&ot?L.createHTML(Pt):Pt;if(Un=Pr(Pt),!Un)return Oe?null:ot?P:""}Un&&Ve&&Cr(Un.firstChild);const Vr=Ci(ht?Pt:Un);for(;za=Vr.nextNode();)uo(za),to(za),za.content instanceof o&&Fi(za.content);if(ht)return Pt;if(Oe){if(Dt)for(Rs=U.call(Un.ownerDocument);Un.firstChild;)Rs.appendChild(Un.firstChild);else Rs=Un;return(ie.shadowroot||ie.shadowrootmode)&&(Rs=G.call(a,Rs,!0)),Rs}let Ii=Le?Un.outerHTML:Un.innerHTML;return Le&&ne["!doctype"]&&Un.ownerDocument&&Un.ownerDocument.doctype&&Un.ownerDocument.doctype.name&&My(x9n,Un.ownerDocument.doctype.name)&&(Ii="<!DOCTYPE "+Un.ownerDocument.doctype.name+`>
`+Ii),Ce&&F_e([Z,z,Y],Pa=>{Ii=Rre(Ii,Pa," ")}),L&&ot?L.createHTML(Ii):Ii},t.setConfig=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};On(Pt),Fe=!0},t.clearConfig=function(){Cn=null,Fe=!1},t.isValidAttribute=function(Pt,St,Un){Cn||On({});const Hr=vn(Pt),za=vn(St);return Ls(Hr,za,Un)},t.addHook=function(Pt,St){typeof St=="function"&&kre(B[Pt],St)},t.removeHook=function(Pt,St){if(St!==void 0){const Un=WQr(B[Pt],St);return Un===-1?void 0:KQr(B[Pt],Un,1)[0]}return epn(B[Pt])},t.removeHooks=function(Pt){B[Pt]=[]},t.removeAllHooks=function(){B=spn()},t}var Sj=S9n(),T9n={},E0t={},x0t={},E$={},S0t={},T0t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(a){a.Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(a){return a.type===t.Tag||a.type===t.Script||a.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(T0t);var uc={},N9=ml&&ml.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),rse=ml&&ml.__assign||function(){return rse=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},rse.apply(this,arguments)};Object.defineProperty(uc,"__esModule",{value:!0});uc.cloneNode=uc.hasChildren=uc.isDocument=uc.isDirective=uc.isComment=uc.isText=uc.isCDATA=uc.isTag=uc.Element=uc.Document=uc.CDATA=uc.NodeWithChildren=uc.ProcessingInstruction=uc.Comment=uc.Text=uc.DataNode=uc.Node=void 0;var Q2=T0t,C0t=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),A0t(this,t)},e}();uc.Node=C0t;var GCe=function(e){N9(t,e);function t(r){var a=e.call(this)||this;return a.data=r,a}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(C0t);uc.DataNode=GCe;var C9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(GCe);uc.Text=C9n;var A9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(GCe);uc.Comment=A9n;var k9n=function(e){N9(t,e);function t(r,a){var s=e.call(this,a)||this;return s.name=r,s.type=Q2.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(GCe);uc.ProcessingInstruction=k9n;var qCe=function(e){N9(t,e);function t(r){var a=e.call(this)||this;return a.children=r,a}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(C0t);uc.NodeWithChildren=qCe;var R9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(qCe);uc.CDATA=R9n;var I9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(qCe);uc.Document=I9n;var N9n=function(e){N9(t,e);function t(r,a,s,o){s===void 0&&(s=[]),o===void 0&&(o=r==="script"?Q2.ElementType.Script:r==="style"?Q2.ElementType.Style:Q2.ElementType.Tag);var u=e.call(this,s)||this;return u.name=r,u.attribs=a,u.type=o,u}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var s,o;return{name:a,value:r.attribs[a],namespace:(s=r["x-attribsNamespace"])===null||s===void 0?void 0:s[a],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[a]}})},enumerable:!1,configurable:!0}),t}(qCe);uc.Element=N9n;function O9n(e){return(0,Q2.isTag)(e)}uc.isTag=O9n;function L9n(e){return e.type===Q2.ElementType.CDATA}uc.isCDATA=L9n;function D9n(e){return e.type===Q2.ElementType.Text}uc.isText=D9n;function M9n(e){return e.type===Q2.ElementType.Comment}uc.isComment=M9n;function P9n(e){return e.type===Q2.ElementType.Directive}uc.isDirective=P9n;function B9n(e){return e.type===Q2.ElementType.Root}uc.isDocument=B9n;function dZr(e){return Object.prototype.hasOwnProperty.call(e,"children")}uc.hasChildren=dZr;function A0t(e,t){t===void 0&&(t=!1);var r;if(D9n(e))r=new C9n(e.data);else if(M9n(e))r=new A9n(e.data);else if(O9n(e)){var a=t?kQe(e.children):[],s=new N9n(e.name,rse({},e.attribs),a);a.forEach(function(f){return f.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=rse({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=rse({},e["x-attribsPrefix"])),r=s}else if(L9n(e)){var a=t?kQe(e.children):[],o=new R9n(a);a.forEach(function(p){return p.parent=o}),r=o}else if(B9n(e)){var a=t?kQe(e.children):[],u=new I9n(a);a.forEach(function(p){return p.parent=u}),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),r=u}else if(P9n(e)){var h=new k9n(e.name,e.data);e["x-name"]!=null&&(h["x-name"]=e["x-name"],h["x-publicId"]=e["x-publicId"],h["x-systemId"]=e["x-systemId"]),r=h}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}uc.cloneNode=A0t;function kQe(e){for(var t=e.map(function(a){return A0t(a,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=ml&&ml.__createBinding||(Object.create?function(h,f,p,m){m===void 0&&(m=p);var b=Object.getOwnPropertyDescriptor(f,p);(!b||("get"in b?!f.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return f[p]}}),Object.defineProperty(h,m,b)}:function(h,f,p,m){m===void 0&&(m=p),h[m]=f[p]}),r=ml&&ml.__exportStar||function(h,f){for(var p in h)p!=="default"&&!Object.prototype.hasOwnProperty.call(f,p)&&t(f,h,p)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var a=T0t,s=uc;r(uc,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function h(f,p,m){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof p=="function"&&(m=p,p=o),typeof f=="object"&&(p=f,f=void 0),this.callback=f??null,this.options=p??o,this.elementCB=m??null}return h.prototype.onparserinit=function(f){this.parser=f},h.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},h.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},h.prototype.onerror=function(f){this.handleCallback(f)},h.prototype.onclosetag=function(){this.lastNode=null;var f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)},h.prototype.onopentag=function(f,p){var m=this.options.xmlMode?a.ElementType.Tag:void 0,b=new s.Element(f,p,void 0,m);this.addNode(b),this.tagStack.push(b)},h.prototype.ontext=function(f){var p=this.lastNode;if(p&&p.type===a.ElementType.Text)p.data+=f,this.options.withEndIndices&&(p.endIndex=this.parser.endIndex);else{var m=new s.Text(f);this.addNode(m),this.lastNode=m}},h.prototype.oncomment=function(f){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=f;return}var p=new s.Comment(f);this.addNode(p),this.lastNode=p},h.prototype.oncommentend=function(){this.lastNode=null},h.prototype.oncdatastart=function(){var f=new s.Text(""),p=new s.CDATA([f]);this.addNode(p),f.parent=p,this.lastNode=f},h.prototype.oncdataend=function(){this.lastNode=null},h.prototype.onprocessinginstruction=function(f,p){var m=new s.ProcessingInstruction(f,p);this.addNode(m)},h.prototype.handleCallback=function(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f},h.prototype.addNode=function(f){var p=this.tagStack[this.tagStack.length-1],m=p.children[p.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),p.children.push(f),m&&(f.prev=m,m.next=f),f.parent=p,this.lastNode=null},h}();e.DomHandler=u,e.default=u})(S0t);var F9n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(F9n);Object.defineProperty(E$,"__esModule",{value:!0});E$.formatAttributes=$9n;E$.escapeSpecialCharacters=gZr;E$.revertEscapedCharacters=U9n;E$.formatDOM=z9n;var U_e=S0t,coe=F9n;function fZr(e){return coe.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function $9n(e){for(var t={},r=0,a=e.length;r<a;r++){var s=e[r];t[s.name]=s.value}return t}function pZr(e){e=e.toLowerCase();var t=fZr(e);return t||e}function gZr(e){return e.replace(coe.CARRIAGE_RETURN_REGEX,coe.CARRIAGE_RETURN_PLACEHOLDER)}function U9n(e){return e.replace(coe.CARRIAGE_RETURN_PLACEHOLDER_REGEX,coe.CARRIAGE_RETURN)}function z9n(e,t,r){t===void 0&&(t=null);for(var a=[],s,o=0,u=e.length;o<u;o++){var h=e[o];switch(h.nodeType){case 1:{var f=pZr(h.nodeName);s=new U_e.Element(f,$9n(h.attributes)),s.children=z9n(f==="template"?h.content.childNodes:h.childNodes,s);break}case 3:s=new U_e.Text(U9n(h.nodeValue));break;case 8:s=new U_e.Comment(h.nodeValue);break;default:continue}var p=a[o-1]||null;p&&(p.next=s),s.parent=t,s.prev=p,s.next=null,a.push(s)}return r&&(s=new U_e.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),s.next=a[0]||null,s.parent=t,a.unshift(s),a[1]&&(a[1].prev=a[0])),a}Object.defineProperty(x0t,"__esModule",{value:!0});x0t.default=_Zr;var mZr=E$,opn="html",lpn="head",z_e="body",bZr=/<([a-zA-Z]+[0-9]?)/,cpn=/<head[^]*>/i,upn=/<body[^]*>/i,n4e=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},uot=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},hpn=typeof window=="object"&&window.DOMParser;if(typeof hpn=="function"){var yZr=new hpn,vZr="text/html";uot=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),yZr.parseFromString(e,vZr)},n4e=uot}if(typeof document=="object"&&document.implementation){var G_e=document.implementation.createHTMLDocument();n4e=function(e,t){if(t){var r=G_e.documentElement.querySelector(t);return r&&(r.innerHTML=e),G_e}return G_e.documentElement.innerHTML=e,G_e}}var q_e=typeof document=="object"&&document.createElement("template"),hot;q_e&&q_e.content&&(hot=function(e){return q_e.innerHTML=e,q_e.content.childNodes});function _Zr(e){var t,r;e=(0,mZr.escapeSpecialCharacters)(e);var a=e.match(bZr),s=a&&a[1]?a[1].toLowerCase():"";switch(s){case opn:{var o=uot(e);if(!cpn.test(e)){var u=o.querySelector(lpn);(t=u==null?void 0:u.parentNode)===null||t===void 0||t.removeChild(u)}if(!upn.test(e)){var u=o.querySelector(z_e);(r=u==null?void 0:u.parentNode)===null||r===void 0||r.removeChild(u)}return o.querySelectorAll(opn)}case lpn:case z_e:{var h=n4e(e).querySelectorAll(s);return upn.test(e)&&cpn.test(e)?h[0].parentNode.childNodes:h}default:{if(hot)return hot(e);var u=n4e(e,z_e).querySelector(z_e);return u.childNodes}}}var wZr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E0t,"__esModule",{value:!0});E0t.default=TZr;var EZr=wZr(x0t),xZr=E$,SZr=/<(![a-zA-Z\s]+)>/;function TZr(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(SZr),r=t?t[1]:void 0;return(0,xZr.formatDOM)((0,EZr.default)(e),null,r)}var HCe={},mT={},VCe={},CZr=0;VCe.SAME=CZr;var AZr=1;VCe.CAMELCASE=AZr;VCe.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const G9n=0,O9=1,YCe=2,jCe=3,k0t=4,q9n=5,H9n=6;function kZr(e){return Rm.hasOwnProperty(e)?Rm[e]:null}function mv(e,t,r,a,s,o,u){this.acceptsBooleans=t===YCe||t===jCe||t===k0t,this.attributeName=a,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}const Rm={},RZr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];RZr.forEach(e=>{Rm[e]=new mv(e,G9n,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Rm[e]=new mv(e,O9,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Rm[e]=new mv(e,YCe,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Rm[e]=new mv(e,YCe,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Rm[e]=new mv(e,jCe,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Rm[e]=new mv(e,jCe,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Rm[e]=new mv(e,k0t,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Rm[e]=new mv(e,H9n,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Rm[e]=new mv(e,q9n,!1,e.toLowerCase(),null,!1,!1)});const R0t=/[\-\:]([a-z])/g,I0t=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Rm[e]=new mv(e,O9,!1,e.toLowerCase(),null,!1,!1)});const IZr="xlinkHref";Rm[IZr]=new mv("xlinkHref",O9,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Rm[e]=new mv(e,O9,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:NZr,SAME:OZr,possibleStandardNames:dpn}=VCe,LZr=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",DZr=LZr+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",MZr=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+DZr+"]*$")),PZr=Object.keys(dpn).reduce((e,t)=>{const r=dpn[t];return r===OZr?e[t]=t:r===NZr?e[t.toLowerCase()]=t:e[t]=r,e},{});mT.BOOLEAN=jCe;mT.BOOLEANISH_STRING=YCe;mT.NUMERIC=q9n;mT.OVERLOADED_BOOLEAN=k0t;mT.POSITIVE_NUMERIC=H9n;mT.RESERVED=G9n;mT.STRING=O9;mT.getPropertyInfo=kZr;mT.isCustomAttribute=MZr;mT.possibleStandardNames=PZr;var N0t={};(function(e){var t=ml&&ml.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=h;var r=ue,a=t(Izr),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(m,b){return m.includes("-")?!s.has(m):!!(b&&typeof b.is=="string")}var u={reactCompat:!0};function h(m,b){if(typeof m=="string"){if(!m.trim()){b.style={};return}try{b.style=(0,a.default)(m,u)}catch{b.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(m){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(m.name)};e.canTextBeChildOfNode=f;var p=function(m){return m};e.returnFirstArg=p})(N0t);Object.defineProperty(HCe,"__esModule",{value:!0});HCe.default=UZr;var Iie=mT,fpn=N0t,BZr=["checked","value"],FZr=["input","select","textarea"],$Zr={reset:!0,submit:!0};function UZr(e,t){e===void 0&&(e={});var r={},a=!!(e.type&&$Zr[e.type]);for(var s in e){var o=e[s];if((0,Iie.isCustomAttribute)(s)){r[s]=o;continue}var u=s.toLowerCase(),h=ppn(u);if(h){var f=(0,Iie.getPropertyInfo)(h);switch(BZr.includes(h)&&FZr.includes(t)&&!a&&(h=ppn("default"+u)),r[h]=o,f&&f.type){case Iie.BOOLEAN:r[h]=!0;break;case Iie.OVERLOADED_BOOLEAN:o===""&&(r[h]=!0);break}continue}fpn.PRESERVE_CUSTOM_ATTRIBUTES&&(r[s]=o)}return(0,fpn.setStyleProp)(e.style,r),r}function ppn(e){return Iie.possibleStandardNames[e]}var O0t={},zZr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O0t,"__esModule",{value:!0});O0t.default=V9n;var RQe=ue,GZr=zZr(HCe),ise=N0t,qZr={cloneElement:RQe.cloneElement,createElement:RQe.createElement,isValidElement:RQe.isValidElement};function V9n(e,t){t===void 0&&(t={});for(var r=[],a=typeof t.replace=="function",s=t.transform||ise.returnFirstArg,o=t.library||qZr,u=o.cloneElement,h=o.createElement,f=o.isValidElement,p=e.length,m=0;m<p;m++){var b=e[m];if(a){var _=t.replace(b,m);if(f(_)){p>1&&(_=u(_,{key:_.key||m})),r.push(s(_,b,m));continue}}if(b.type==="text"){var w=!b.data.trim().length;if(w&&b.parent&&!(0,ise.canTextBeChildOfNode)(b.parent)||t.trim&&w)continue;r.push(s(b.data,b,m));continue}var S=b,C={};HZr(S)?((0,ise.setStyleProp)(S.attribs.style,S.attribs),C=S.attribs):S.attribs&&(C=(0,GZr.default)(S.attribs,S.name));var A=void 0;switch(b.type){case"script":case"style":b.children[0]&&(C.dangerouslySetInnerHTML={__html:b.children[0].data});break;case"tag":b.name==="textarea"&&b.children[0]?C.defaultValue=b.children[0].data:b.children&&b.children.length&&(A=V9n(b.children,t));break;default:continue}p>1&&(C.key=m),r.push(s(h(b.name,C,A),b,m))}return r.length===1?r[0]:r}function HZr(e){return ise.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,ise.isCustomComponent)(e.name,e.attribs)}(function(e){var t=ml&&ml.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=h;var r=t(E0t);e.htmlToDOM=r.default;var a=t(HCe);e.attributesToProps=a.default;var s=t(O0t);e.domToReact=s.default;var o=S0t;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var u={lowerCaseAttributeNames:!1};function h(f,p){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,s.default)((0,r.default)(f,(p==null?void 0:p.htmlparser2)||u),p):[]}})(T9n);const gpn=O1(T9n),PTa=gpn.default||gpn;var Y9n={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Y9n);var BTa=Y9n.exports;function FTa(e){var t=LAn();return function(){var r,a=mSe(e);if(t){var s=mSe(this).constructor;r=Reflect.construct(a,arguments,s)}else r=a.apply(this,arguments);return MOr(this,r)}}function mpn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function AV(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mpn(Object(r),!0).forEach(function(a){ldt(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mpn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function VZr(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var IQe={};function YZr(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return IQe[t]||(IQe[t]=VZr(e)),IQe[t]}function jZr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=e.filter(function(o){return o!=="token"}),s=YZr(a);return s.reduce(function(o,u){return AV(AV({},o),r[u])},t)}function bpn(e){return e.join(" ")}function WZr(e,t){var r=0;return function(a){return r+=1,a.map(function(s,o){return j9n({node:s,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function j9n(e){var t=e.node,r=e.stylesheet,a=e.style,s=a===void 0?{}:a,o=e.useInlineStyles,u=e.key,h=t.properties,f=t.type,p=t.tagName,m=t.value;if(f==="text")return m;if(p){var b=WZr(r,o),_;if(!o)_=AV(AV({},h),{},{className:bpn(h.className)});else{var w=Object.keys(r).reduce(function(k,I){return I.split(".").forEach(function(N){k.includes(N)||k.push(N)}),k},[]),S=h.className&&h.className.includes("token")?["token"]:[],C=h.className&&S.concat(h.className.filter(function(k){return!w.includes(k)}));_=AV(AV({},h),{},{className:bpn(C)||void 0,style:jZr(h.className,Object.assign({},h.style,s),r)})}var A=b(t.children);return Er.createElement(p,Pat({key:u},_),A)}}const KZr=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var XZr=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ypn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function hO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ypn(Object(r),!0).forEach(function(a){ldt(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ypn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var QZr=/\n/g;function ZZr(e){return e.match(QZr)}function JZr(e){var t=e.lines,r=e.startingLineNumber,a=e.style;return t.map(function(s,o){var u=o+r;return Er.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof a=="function"?a(u):a},"".concat(u,`
`))})}function eJr(e){var t=e.codeString,r=e.codeStyle,a=e.containerStyle,s=a===void 0?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,u=o===void 0?{}:o,h=e.startingLineNumber;return Er.createElement("code",{style:Object.assign({},r,s)},JZr({lines:t.replace(/\n$/,"").split(`
`),style:u,startingLineNumber:h}))}function tJr(e){return"".concat(e.toString().length,".25em")}function W9n(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function K9n(e,t,r){var a={display:"inline-block",minWidth:tJr(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof e=="function"?e(t):e,o=hO(hO({},a),s);return o}function KEe(e){var t=e.children,r=e.lineNumber,a=e.lineNumberStyle,s=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,h=u===void 0?{}:u,f=e.className,p=f===void 0?[]:f,m=e.showLineNumbers,b=e.wrapLongLines,_=e.wrapLines,w=_===void 0?!1:_,S=w?hO({},typeof h=="function"?h(r):h):{};if(S.className=S.className?[].concat(Fat(S.className.trim().split(/\s+/)),Fat(p)):p,r&&o){var C=K9n(a,r,s);t.unshift(W9n(r,C))}return b&m&&(S.style=hO({display:"flex"},S.style)),{type:"element",tagName:"span",properties:S,children:t}}function X9n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var s=e[a];if(s.type==="text")r.push(KEe({children:[s],className:Fat(new Set(t))}));else if(s.children){var o,u=t.concat(((o=s.properties)===null||o===void 0?void 0:o.className)||[]);X9n(s.children,u).forEach(function(h){return r.push(h)})}}return r}function nJr(e,t,r,a,s,o,u,h,f){var p,m=X9n(e.value),b=[],_=-1,w=0;function S(P,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return KEe({children:P,lineNumber:M,lineNumberStyle:h,largestLineNumber:u,showInlineLineNumbers:s,lineProps:r,className:F,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function C(P,M){if(a&&M&&s){var F=K9n(h,M,u);P.unshift(W9n(M,F))}return P}function A(P,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||F.length>0?S(P,M,F):C(P,M)}for(var k=function(){var M=m[w],F=M.children[0].value,U=ZZr(F);if(U){var $=F.split(`
`);$.forEach(function(G,B){var Z=a&&b.length+o,z={type:"text",value:"".concat(G,`
`)};if(B===0){var Y=m.slice(_+1,w).concat(KEe({children:[z],className:M.properties.className})),W=A(Y,Z);b.push(W)}else if(B===$.length-1){var Q=m[w+1]&&m[w+1].children&&m[w+1].children[0],V={type:"text",value:"".concat(G)};if(Q){var j=KEe({children:[V],className:M.properties.className});m.splice(w+1,0,j)}else{var ee=[V],te=A(ee,Z,M.properties.className);b.push(te)}}else{var ne=[z],se=A(ne,Z,M.properties.className);b.push(se)}}),_=w}w++};w<m.length;)k();if(_!==m.length-1){var I=m.slice(_+1,m.length);if(I&&I.length){var N=a&&b.length+o,L=A(I,N);b.push(L)}}return t?b:(p=[]).concat.apply(p,b)}function rJr(e){var t=e.rows,r=e.stylesheet,a=e.useInlineStyles;return t.map(function(s,o){return j9n({node:s,stylesheet:r,useInlineStyles:a,key:"code-segment-".concat(o)})})}function Q9n(e){return e&&typeof e.highlightAuto<"u"}function iJr(e){var t=e.astGenerator,r=e.language,a=e.code,s=e.defaultCodeValue;if(Q9n(t)){var o=KZr(t,r);return r==="text"?{value:s,language:"text"}:o?t.highlight(r,a):t.highlightAuto(a)}try{return r&&r!=="text"?{value:t.highlight(a,r)}:{value:s}}catch{return{value:s}}}function aJr(e,t){return function(a){var s,o,u=a.language,h=a.children,f=a.style,p=f===void 0?t:f,m=a.customStyle,b=m===void 0?{}:m,_=a.codeTagProps,w=_===void 0?{className:u?"language-".concat(u):void 0,style:hO(hO({},p['code[class*="language-"]']),p['code[class*="language-'.concat(u,'"]')])}:_,S=a.useInlineStyles,C=S===void 0?!0:S,A=a.showLineNumbers,k=A===void 0?!1:A,I=a.showInlineLineNumbers,N=I===void 0?!0:I,L=a.startingLineNumber,P=L===void 0?1:L,M=a.lineNumberContainerStyle,F=a.lineNumberStyle,U=F===void 0?{}:F,$=a.wrapLines,G=a.wrapLongLines,B=G===void 0?!1:G,Z=a.lineProps,z=Z===void 0?{}:Z,Y=a.renderer,W=a.PreTag,Q=W===void 0?"pre":W,V=a.CodeTag,j=V===void 0?"code":V,ee=a.code,te=ee===void 0?(Array.isArray(h)?h[0]:h)||"":ee,ne=a.astGenerator,se=XOr(a,XZr);ne=ne||e;var ie=k?Er.createElement(eJr,{containerStyle:M,codeStyle:w.style||{},numberStyle:U,startingLineNumber:P,codeString:te}):null,ge=p.hljs||p['pre[class*="language-"]']||{backgroundColor:"#fff"},ce=Q9n(ne)?"hljs":"prismjs",be=C?Object.assign({},se,{style:Object.assign({},ge,b)}):Object.assign({},se,{className:se.className?"".concat(ce," ").concat(se.className):ce,style:Object.assign({},b)});if(B?w.style=hO({whiteSpace:"pre-wrap"},w.style):w.style=hO({whiteSpace:"pre"},w.style),!ne)return Er.createElement(Q,be,ie,Er.createElement(j,w,te));($===void 0&&Y||B)&&($=!0),Y=Y||rJr;var ve=[{type:"text",value:te}],De=iJr({astGenerator:ne,language:u,code:te,defaultCodeValue:ve});De.language===null&&(De.value=ve);var ye=(s=(o=te.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0,Ee=P+ye,he=nJr(De,$,z,k,N,P,Ee,U,B);return Er.createElement(Q,be,Er.createElement(j,w,!N&&ie,Y({rows:he,stylesheet:p,useInlineStyles:C})))}}const sJr={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#F0F0F0",color:"#444"},"hljs-subst":{color:"#444"},"hljs-comment":{color:"#888888"},"hljs-keyword":{fontWeight:"bold"},"hljs-attribute":{fontWeight:"bold"},"hljs-selector-tag":{fontWeight:"bold"},"hljs-meta-keyword":{fontWeight:"bold"},"hljs-doctag":{fontWeight:"bold"},"hljs-name":{fontWeight:"bold"},"hljs-type":{color:"#880000"},"hljs-string":{color:"#880000"},"hljs-number":{color:"#880000"},"hljs-selector-id":{color:"#880000"},"hljs-selector-class":{color:"#880000"},"hljs-quote":{color:"#880000"},"hljs-template-tag":{color:"#880000"},"hljs-deletion":{color:"#880000"},"hljs-title":{color:"#880000",fontWeight:"bold"},"hljs-section":{color:"#880000",fontWeight:"bold"},"hljs-regexp":{color:"#BC6060"},"hljs-symbol":{color:"#BC6060"},"hljs-variable":{color:"#BC6060"},"hljs-template-variable":{color:"#BC6060"},"hljs-link":{color:"#BC6060"},"hljs-selector-attr":{color:"#BC6060"},"hljs-selector-pseudo":{color:"#BC6060"},"hljs-literal":{color:"#78A960"},"hljs-built_in":{color:"#397300"},"hljs-bullet":{color:"#397300"},"hljs-code":{color:"#397300"},"hljs-addition":{color:"#397300"},"hljs-meta":{color:"#1f7199"},"hljs-meta-string":{color:"#4d99bf"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var LW={};function L0t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r=="object"&&!Object.isFrozen(r)&&L0t(r)}),e}var Z9n=L0t,oJr=L0t;Z9n.default=oJr;let vpn=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function YV(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function dO(e,...t){const r=Object.create(null);for(const a in e)r[a]=e[a];return t.forEach(function(a){for(const s in a)r[s]=a[s]}),r}const lJr="</span>",_pn=e=>!!e.kind;class cJr{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=YV(t)}openNode(t){if(!_pn(t))return;let r=t.kind;t.sublanguage||(r=`${this.classPrefix}${r}`),this.span(r)}closeNode(t){_pn(t)&&(this.buffer+=lJr)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class D0t{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r={kind:t,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(a=>this._walk(t,a)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{D0t._collapse(r)}))}}class uJr extends D0t{constructor(t){super(),this.options=t}addKeyword(t,r){t!==""&&(this.openNode(r),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,r){const a=t.root;a.kind=r,a.sublanguage=!0,this.add(a)}toHTML(){return new cJr(this,this.options).value()}finalize(){return!0}}function hJr(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function uoe(e){return e?typeof e=="string"?e:e.source:null}function dJr(...e){return e.map(r=>uoe(r)).join("")}function fJr(...e){return"("+e.map(r=>uoe(r)).join("|")+")"}function pJr(e){return new RegExp(e.toString()+"|").exec("").length-1}function gJr(e,t){const r=e&&e.exec(t);return r&&r.index===0}const mJr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bJr(e,t="|"){let r=0;return e.map(a=>{r+=1;const s=r;let o=uoe(a),u="";for(;o.length>0;){const h=mJr.exec(o);if(!h){u+=o;break}u+=o.substring(0,h.index),o=o.substring(h.index+h[0].length),h[0][0]==="\\"&&h[1]?u+="\\"+String(Number(h[1])+s):(u+=h[0],h[0]==="("&&r++)}return u}).map(a=>`(${a})`).join(t)}const yJr=/\b\B/,J9n="[a-zA-Z]\\w*",M0t="[a-zA-Z_]\\w*",P0t="\\b\\d+(\\.\\d+)?",eLn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",tLn="\\b(0b[01]+)",vJr="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_Jr=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=dJr(t,/.*\b/,e.binary,/\b.*/)),dO({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,a)=>{r.index!==0&&a.ignoreMatch()}},e)},hoe={begin:"\\\\[\\s\\S]",relevance:0},wJr={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[hoe]},EJr={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[hoe]},nLn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},WCe=function(e,t,r={}){const a=dO({className:"comment",begin:e,end:t,contains:[]},r);return a.contains.push(nLn),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},xJr=WCe("//","$"),SJr=WCe("/\\*","\\*/"),TJr=WCe("#","$"),CJr={className:"number",begin:P0t,relevance:0},AJr={className:"number",begin:eLn,relevance:0},kJr={className:"number",begin:tLn,relevance:0},RJr={className:"number",begin:P0t+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},IJr={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[hoe,{begin:/\[/,end:/\]/,relevance:0,contains:[hoe]}]}]},NJr={className:"title",begin:J9n,relevance:0},OJr={className:"title",begin:M0t,relevance:0},LJr={begin:"\\.\\s*"+M0t,relevance:0},DJr=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var H_e=Object.freeze({__proto__:null,MATCH_NOTHING_RE:yJr,IDENT_RE:J9n,UNDERSCORE_IDENT_RE:M0t,NUMBER_RE:P0t,C_NUMBER_RE:eLn,BINARY_NUMBER_RE:tLn,RE_STARTERS_RE:vJr,SHEBANG:_Jr,BACKSLASH_ESCAPE:hoe,APOS_STRING_MODE:wJr,QUOTE_STRING_MODE:EJr,PHRASAL_WORDS_MODE:nLn,COMMENT:WCe,C_LINE_COMMENT_MODE:xJr,C_BLOCK_COMMENT_MODE:SJr,HASH_COMMENT_MODE:TJr,NUMBER_MODE:CJr,C_NUMBER_MODE:AJr,BINARY_NUMBER_MODE:kJr,CSS_NUMBER_MODE:RJr,REGEXP_MODE:IJr,TITLE_MODE:NJr,UNDERSCORE_TITLE_MODE:OJr,METHOD_GUARD:LJr,END_SAME_AS_BEGIN:DJr});function MJr(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function PJr(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=MJr,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function BJr(e,t){Array.isArray(e.illegal)&&(e.illegal=fJr(...e.illegal))}function FJr(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function $Jr(e,t){e.relevance===void 0&&(e.relevance=1)}const UJr=["of","and","for","in","not","or","if","then","parent","list","value"],zJr="keyword";function rLn(e,t,r=zJr){const a={};return typeof e=="string"?s(r,e.split(" ")):Array.isArray(e)?s(r,e):Object.keys(e).forEach(function(o){Object.assign(a,rLn(e[o],t,o))}),a;function s(o,u){t&&(u=u.map(h=>h.toLowerCase())),u.forEach(function(h){const f=h.split("|");a[f[0]]=[o,GJr(f[0],f[1])]})}}function GJr(e,t){return t?Number(t):qJr(e)?0:1}function qJr(e){return UJr.includes(e.toLowerCase())}function HJr(e,{plugins:t}){function r(h,f){return new RegExp(uoe(h),"m"+(e.case_insensitive?"i":"")+(f?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(f,p){p.position=this.position++,this.matchIndexes[this.matchAt]=p,this.regexes.push([p,f]),this.matchAt+=pJr(f)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const f=this.regexes.map(p=>p[1]);this.matcherRe=r(bJr(f),!0),this.lastIndex=0}exec(f){this.matcherRe.lastIndex=this.lastIndex;const p=this.matcherRe.exec(f);if(!p)return null;const m=p.findIndex((_,w)=>w>0&&_!==void 0),b=this.matchIndexes[m];return p.splice(0,m),Object.assign(p,b)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(f){if(this.multiRegexes[f])return this.multiRegexes[f];const p=new a;return this.rules.slice(f).forEach(([m,b])=>p.addRule(m,b)),p.compile(),this.multiRegexes[f]=p,p}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(f,p){this.rules.push([f,p]),p.type==="begin"&&this.count++}exec(f){const p=this.getMatcher(this.regexIndex);p.lastIndex=this.lastIndex;let m=p.exec(f);if(this.resumingScanAtSamePosition()&&!(m&&m.index===this.lastIndex)){const b=this.getMatcher(0);b.lastIndex=this.lastIndex+1,m=b.exec(f)}return m&&(this.regexIndex+=m.position+1,this.regexIndex===this.count&&this.considerAll()),m}}function o(h){const f=new s;return h.contains.forEach(p=>f.addRule(p.begin,{rule:p,type:"begin"})),h.terminatorEnd&&f.addRule(h.terminatorEnd,{type:"end"}),h.illegal&&f.addRule(h.illegal,{type:"illegal"}),f}function u(h,f){const p=h;if(h.isCompiled)return p;[FJr].forEach(b=>b(h,f)),e.compilerExtensions.forEach(b=>b(h,f)),h.__beforeBegin=null,[PJr,BJr,$Jr].forEach(b=>b(h,f)),h.isCompiled=!0;let m=null;if(typeof h.keywords=="object"&&(m=h.keywords.$pattern,delete h.keywords.$pattern),h.keywords&&(h.keywords=rLn(h.keywords,e.case_insensitive)),h.lexemes&&m)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return m=m||h.lexemes||/\w+/,p.keywordPatternRe=r(m,!0),f&&(h.begin||(h.begin=/\B|\b/),p.beginRe=r(h.begin),h.endSameAsBegin&&(h.end=h.begin),!h.end&&!h.endsWithParent&&(h.end=/\B|\b/),h.end&&(p.endRe=r(h.end)),p.terminatorEnd=uoe(h.end)||"",h.endsWithParent&&f.terminatorEnd&&(p.terminatorEnd+=(h.end?"|":"")+f.terminatorEnd)),h.illegal&&(p.illegalRe=r(h.illegal)),h.contains||(h.contains=[]),h.contains=[].concat(...h.contains.map(function(b){return VJr(b==="self"?h:b)})),h.contains.forEach(function(b){u(b,p)}),h.starts&&u(h.starts,f),p.matcher=o(p),p}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=dO(e.classNameAliases||{}),u(e)}function iLn(e){return e?e.endsWithParent||iLn(e.starts):!1}function VJr(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return dO(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:iLn(e)?dO(e,{starts:e.starts?dO(e.starts):null}):Object.isFrozen(e)?dO(e):e}var YJr="10.7.3";function jJr(e){return!!(e||e==="")}function WJr(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,YV(this.code);let a={};return this.autoDetect?(a=e.highlightAuto(this.code),this.detectedLanguage=a.language):(a=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),a.value},autoDetect(){return!this.language||jJr(this.autodetect)},ignoreIllegals(){return!0}},render(a){return a("pre",{},[a("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(a){a.component("highlightjs",t)}}}}const KJr={"after:highlightElement":({el:e,result:t,text:r})=>{const a=wpn(e);if(!a.length)return;const s=document.createElement("div");s.innerHTML=t.value,t.value=XJr(a,wpn(s),r)}};function dot(e){return e.nodeName.toLowerCase()}function wpn(e){const t=[];return function r(a,s){for(let o=a.firstChild;o;o=o.nextSibling)o.nodeType===3?s+=o.nodeValue.length:o.nodeType===1&&(t.push({event:"start",offset:s,node:o}),s=r(o,s),dot(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:s,node:o}));return s}(e,0),t}function XJr(e,t,r){let a=0,s="";const o=[];function u(){return!e.length||!t.length?e.length?e:t:e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:t[0].event==="start"?e:t}function h(m){function b(_){return" "+_.nodeName+'="'+YV(_.value)+'"'}s+="<"+dot(m)+[].map.call(m.attributes,b).join("")+">"}function f(m){s+="</"+dot(m)+">"}function p(m){(m.event==="start"?h:f)(m.node)}for(;e.length||t.length;){let m=u();if(s+=YV(r.substring(a,m[0].offset)),a=m[0].offset,m===e){o.reverse().forEach(f);do p(m.splice(0,1)[0]),m=u();while(m===e&&m.length&&m[0].offset===a);o.reverse().forEach(h)}else m[0].event==="start"?o.push(m[0].node):o.pop(),p(m.splice(0,1)[0])}return s+YV(r.substr(a))}const Epn={},NQe=e=>{console.error(e)},xpn=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Mx=(e,t)=>{Epn[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Epn[`${e}/${t}`]=!0)},OQe=YV,Spn=dO,Tpn=Symbol("nomatch"),QJr=function(e){const t=Object.create(null),r=Object.create(null),a=[];let s=!0;const o=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let f={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:uJr};function p(ie){return f.noHighlightRe.test(ie)}function m(ie){let ge=ie.className+" ";ge+=ie.parentNode?ie.parentNode.className:"";const ce=f.languageDetectRe.exec(ge);if(ce){const be=W(ce[1]);return be||(xpn(u.replace("{}",ce[1])),xpn("Falling back to no-highlight mode for this block.",ie)),be?ce[1]:"no-highlight"}return ge.split(/\s+/).find(be=>p(be)||W(be))}function b(ie,ge,ce,be){let ve="",De="";typeof ge=="object"?(ve=ie,ce=ge.ignoreIllegals,De=ge.language,be=void 0):(Mx("10.7.0","highlight(lang, code, ...args) has been deprecated."),Mx("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),De=ie,ve=ge);const ye={code:ve,language:De};te("before:highlight",ye);const Ee=ye.result?ye.result:_(ye.language,ye.code,ce,be);return Ee.code=ye.code,te("after:highlight",Ee),Ee}function _(ie,ge,ce,be){function ve(Ye,Ae){const Xe=Dt.case_insensitive?Ae[0].toLowerCase():Ae[0];return Object.prototype.hasOwnProperty.call(Ye.keywords,Xe)&&Ye.keywords[Xe]}function De(){if(!Kt.keywords){Je.addText(ht);return}let Ye=0;Kt.keywordPatternRe.lastIndex=0;let Ae=Kt.keywordPatternRe.exec(ht),Xe="";for(;Ae;){Xe+=ht.substring(Ye,Ae.index);const fe=ve(Kt,Ae);if(fe){const[Qe,Ke]=fe;if(Je.addText(Xe),Xe="",et+=Ke,Qe.startsWith("_"))Xe+=Ae[0];else{const mt=Dt.classNameAliases[Qe]||Qe;Je.addKeyword(Ae[0],mt)}}else Xe+=Ae[0];Ye=Kt.keywordPatternRe.lastIndex,Ae=Kt.keywordPatternRe.exec(ht)}Xe+=ht.substr(Ye),Je.addText(Xe)}function ye(){if(ht==="")return;let Ye=null;if(typeof Kt.subLanguage=="string"){if(!t[Kt.subLanguage]){Je.addText(ht);return}Ye=_(Kt.subLanguage,ht,!0,Ft[Kt.subLanguage]),Ft[Kt.subLanguage]=Ye.top}else Ye=S(ht,Kt.subLanguage.length?Kt.subLanguage:null);Kt.relevance>0&&(et+=Ye.relevance),Je.addSublanguage(Ye.emitter,Ye.language)}function Ee(){Kt.subLanguage!=null?ye():De(),ht=""}function he(Ye){return Ye.className&&Je.openNode(Dt.classNameAliases[Ye.className]||Ye.className),Kt=Object.create(Ye,{parent:{value:Kt}}),Kt}function we(Ye,Ae,Xe){let fe=gJr(Ye.endRe,Xe);if(fe){if(Ye["on:end"]){const Qe=new vpn(Ye);Ye["on:end"](Ae,Qe),Qe.isMatchIgnored&&(fe=!1)}if(fe){for(;Ye.endsParent&&Ye.parent;)Ye=Ye.parent;return Ye}}if(Ye.endsWithParent)return we(Ye.parent,Ae,Xe)}function Ce(Ye){return Kt.matcher.regexIndex===0?(ht+=Ye[0],1):(Ge=!0,0)}function Ie(Ye){const Ae=Ye[0],Xe=Ye.rule,fe=new vpn(Xe),Qe=[Xe.__beforeBegin,Xe["on:begin"]];for(const Ke of Qe)if(Ke&&(Ke(Ye,fe),fe.isMatchIgnored))return Ce(Ae);return Xe&&Xe.endSameAsBegin&&(Xe.endRe=hJr(Ae)),Xe.skip?ht+=Ae:(Xe.excludeBegin&&(ht+=Ae),Ee(),!Xe.returnBegin&&!Xe.excludeBegin&&(ht=Ae)),he(Xe),Xe.returnBegin?0:Ae.length}function Le(Ye){const Ae=Ye[0],Xe=ge.substr(Ye.index),fe=we(Kt,Ye,Xe);if(!fe)return Tpn;const Qe=Kt;Qe.skip?ht+=Ae:(Qe.returnEnd||Qe.excludeEnd||(ht+=Ae),Ee(),Qe.excludeEnd&&(ht=Ae));do Kt.className&&Je.closeNode(),!Kt.skip&&!Kt.subLanguage&&(et+=Kt.relevance),Kt=Kt.parent;while(Kt!==fe.parent);return fe.starts&&(fe.endSameAsBegin&&(fe.starts.endRe=fe.endRe),he(fe.starts)),Qe.returnEnd?0:Ae.length}function Fe(){const Ye=[];for(let Ae=Kt;Ae!==Dt;Ae=Ae.parent)Ae.className&&Ye.unshift(Ae.className);Ye.forEach(Ae=>Je.openNode(Ae))}let Ve={};function Oe(Ye,Ae){const Xe=Ae&&Ae[0];if(ht+=Ye,Xe==null)return Ee(),0;if(Ve.type==="begin"&&Ae.type==="end"&&Ve.index===Ae.index&&Xe===""){if(ht+=ge.slice(Ae.index,Ae.index+1),!s){const fe=new Error("0 width match regex");throw fe.languageName=ie,fe.badRule=Ve.rule,fe}return 1}if(Ve=Ae,Ae.type==="begin")return Ie(Ae);if(Ae.type==="illegal"&&!ce){const fe=new Error('Illegal lexeme "'+Xe+'" for mode "'+(Kt.className||"<unnamed>")+'"');throw fe.mode=Kt,fe}else if(Ae.type==="end"){const fe=Le(Ae);if(fe!==Tpn)return fe}if(Ae.type==="illegal"&&Xe==="")return 1;if(He>1e5&&He>Ae.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ht+=Xe,Xe.length}const Dt=W(ie);if(!Dt)throw NQe(u.replace("{}",ie)),new Error('Unknown language: "'+ie+'"');const ot=HJr(Dt,{plugins:a});let sn="",Kt=be||ot;const Ft={},Je=new f.__emitter(f);Fe();let ht="",et=0,qe=0,He=0,Ge=!1;try{for(Kt.matcher.considerAll();;){He++,Ge?Ge=!1:Kt.matcher.considerAll(),Kt.matcher.lastIndex=qe;const Ye=Kt.matcher.exec(ge);if(!Ye)break;const Ae=ge.substring(qe,Ye.index),Xe=Oe(Ae,Ye);qe=Ye.index+Xe}return Oe(ge.substr(qe)),Je.closeAllNodes(),Je.finalize(),sn=Je.toHTML(),{relevance:Math.floor(et),value:sn,language:ie,illegal:!1,emitter:Je,top:Kt}}catch(Ye){if(Ye.message&&Ye.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Ye.message,context:ge.slice(qe-100,qe+100),mode:Ye.mode},sofar:sn,relevance:0,value:OQe(ge),emitter:Je};if(s)return{illegal:!1,relevance:0,value:OQe(ge),emitter:Je,language:ie,top:Kt,errorRaised:Ye};throw Ye}}function w(ie){const ge={relevance:0,emitter:new f.__emitter(f),value:OQe(ie),illegal:!1,top:h};return ge.emitter.addText(ie),ge}function S(ie,ge){ge=ge||f.languages||Object.keys(t);const ce=w(ie),be=ge.filter(W).filter(V).map(he=>_(he,ie,!1));be.unshift(ce);const ve=be.sort((he,we)=>{if(he.relevance!==we.relevance)return we.relevance-he.relevance;if(he.language&&we.language){if(W(he.language).supersetOf===we.language)return 1;if(W(we.language).supersetOf===he.language)return-1}return 0}),[De,ye]=ve,Ee=De;return Ee.second_best=ye,Ee}function C(ie){return f.tabReplace||f.useBR?ie.replace(o,ge=>ge===`
`?f.useBR?"<br>":ge:f.tabReplace?ge.replace(/\t/g,f.tabReplace):ge):ie}function A(ie,ge,ce){const be=ge?r[ge]:ce;ie.classList.add("hljs"),be&&ie.classList.add(be)}const k={"before:highlightElement":({el:ie})=>{f.useBR&&(ie.innerHTML=ie.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
`))},"after:highlightElement":({result:ie})=>{f.useBR&&(ie.value=ie.value.replace(/\n/g,"<br>"))}},I=/^(<[^>]+>|\t)+/gm,N={"after:highlightElement":({result:ie})=>{f.tabReplace&&(ie.value=ie.value.replace(I,ge=>ge.replace(/\t/g,f.tabReplace)))}};function L(ie){let ge=null;const ce=m(ie);if(p(ce))return;te("before:highlightElement",{el:ie,language:ce}),ge=ie;const be=ge.textContent,ve=ce?b(be,{language:ce,ignoreIllegals:!0}):S(be);te("after:highlightElement",{el:ie,result:ve,text:be}),ie.innerHTML=ve.value,A(ie,ce,ve.language),ie.result={language:ve.language,re:ve.relevance,relavance:ve.relevance},ve.second_best&&(ie.second_best={language:ve.second_best.language,re:ve.second_best.relevance,relavance:ve.second_best.relevance})}function P(ie){ie.useBR&&(Mx("10.3.0","'useBR' will be removed entirely in v11.0"),Mx("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),f=Spn(f,ie)}const M=()=>{if(M.called)return;M.called=!0,Mx("10.6.0","initHighlighting() is deprecated.  Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(L)};function F(){Mx("10.6.0","initHighlightingOnLoad() is deprecated.  Use highlightAll() instead."),U=!0}let U=!1;function $(){if(document.readyState==="loading"){U=!0;return}document.querySelectorAll("pre code").forEach(L)}function G(){U&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",G,!1);function B(ie,ge){let ce=null;try{ce=ge(e)}catch(be){if(NQe("Language definition for '{}' could not be registered.".replace("{}",ie)),s)NQe(be);else throw be;ce=h}ce.name||(ce.name=ie),t[ie]=ce,ce.rawDefinition=ge.bind(null,e),ce.aliases&&Q(ce.aliases,{languageName:ie})}function Z(ie){delete t[ie];for(const ge of Object.keys(r))r[ge]===ie&&delete r[ge]}function z(){return Object.keys(t)}function Y(ie){Mx("10.4.0","requireLanguage will be removed entirely in v11."),Mx("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ge=W(ie);if(ge)return ge;throw new Error("The '{}' language is required, but not loaded.".replace("{}",ie))}function W(ie){return ie=(ie||"").toLowerCase(),t[ie]||t[r[ie]]}function Q(ie,{languageName:ge}){typeof ie=="string"&&(ie=[ie]),ie.forEach(ce=>{r[ce.toLowerCase()]=ge})}function V(ie){const ge=W(ie);return ge&&!ge.disableAutodetect}function j(ie){ie["before:highlightBlock"]&&!ie["before:highlightElement"]&&(ie["before:highlightElement"]=ge=>{ie["before:highlightBlock"](Object.assign({block:ge.el},ge))}),ie["after:highlightBlock"]&&!ie["after:highlightElement"]&&(ie["after:highlightElement"]=ge=>{ie["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ee(ie){j(ie),a.push(ie)}function te(ie,ge){const ce=ie;a.forEach(function(be){be[ce]&&be[ce](ge)})}function ne(ie){return Mx("10.2.0","fixMarkup will be removed entirely in v11.0"),Mx("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),C(ie)}function se(ie){return Mx("10.7.0","highlightBlock will be removed entirely in v12.0"),Mx("10.7.0","Please use highlightElement now."),L(ie)}Object.assign(e,{highlight:b,highlightAuto:S,highlightAll:$,fixMarkup:ne,highlightElement:L,highlightBlock:se,configure:P,initHighlighting:M,initHighlightingOnLoad:F,registerLanguage:B,unregisterLanguage:Z,listLanguages:z,getLanguage:W,registerAliases:Q,requireLanguage:Y,autoDetection:V,inherit:Spn,addPlugin:ee,vuePlugin:WJr(e).VuePlugin}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=YJr;for(const ie in H_e)typeof H_e[ie]=="object"&&Z9n(H_e[ie]);return Object.assign(e,H_e),e.addPlugin(k),e.addPlugin(KJr),e.addPlugin(N),e};var ZJr=QJr({}),JJr=ZJr,aLn={exports:{}};(function(e){(function(){var t;t=e.exports=s,t.format=s,t.vsprintf=a,typeof console<"u"&&typeof console.log=="function"&&(t.printf=r);function r(){console.log(s.apply(null,arguments))}function a(o,u){return s.apply(null,[o].concat(u))}function s(o){for(var u=1,h=[].slice.call(arguments),f=0,p=o.length,m="",b,_=!1,w,S,C=!1,A,k=function(){return h[u++]},I=function(){for(var N="";/\d/.test(o[f]);)N+=o[f++],b=o[f];return N.length>0?parseInt(N):null};f<p;++f)if(b=o[f],_)switch(_=!1,b=="."?(C=!1,b=o[++f]):b=="0"&&o[f+1]=="."?(C=!0,f+=2,b=o[f]):C=!0,A=I(),b){case"b":m+=parseInt(k(),10).toString(2);break;case"c":w=k(),typeof w=="string"||w instanceof String?m+=w:m+=String.fromCharCode(parseInt(w,10));break;case"d":m+=parseInt(k(),10);break;case"f":S=String(parseFloat(k()).toFixed(A||6)),m+=C?S:S.replace(/^0/,"");break;case"j":m+=JSON.stringify(k());break;case"o":m+="0"+parseInt(k(),10).toString(8);break;case"s":m+=k();break;case"x":m+="0x"+parseInt(k(),10).toString(16);break;case"X":m+="0x"+parseInt(k(),10).toString(16).toUpperCase();break;default:m+=b;break}else b==="%"?_=!0:m+=b;return m}})()})(aLn);var eei=aLn.exports,tei=eei,L9=D9(Error),nei=L9;L9.eval=D9(EvalError);L9.range=D9(RangeError);L9.reference=D9(ReferenceError);L9.syntax=D9(SyntaxError);L9.type=D9(TypeError);L9.uri=D9(URIError);L9.create=D9;function D9(e){return t.displayName=e.displayName||e.name,t;function t(r){return r&&(r=tei.apply(null,arguments)),new e(r)}}var $C=JJr,XEe=nei;LW.highlight=sLn;LW.highlightAuto=iei;LW.registerLanguage=aei;LW.listLanguages=sei;LW.registerAlias=oei;mR.prototype.addText=uei;mR.prototype.addKeyword=lei;mR.prototype.addSublanguage=cei;mR.prototype.openNode=hei;mR.prototype.closeNode=dei;mR.prototype.closeAllNodes=oLn;mR.prototype.finalize=oLn;mR.prototype.toHTML=fei;var rei="hljs-";function sLn(e,t,r){var a=$C.configure({}),s=r||{},o=s.prefix,u;if(typeof e!="string")throw XEe("Expected `string` for name, got `%s`",e);if(!$C.getLanguage(e))throw XEe("Unknown language: `%s` is not registered",e);if(typeof t!="string")throw XEe("Expected `string` for value, got `%s`",t);if(o==null&&(o=rei),$C.configure({__emitter:mR,classPrefix:o}),u=$C.highlight(t,{language:e,ignoreIllegals:!0}),$C.configure(a||{}),u.errorRaised)throw u.errorRaised;return{relevance:u.relevance,language:u.language,value:u.emitter.rootNode.children}}function iei(e,t){var r=t||{},a=r.subset||$C.listLanguages();r.prefix;var s=a.length,o=-1,u,h,f,p;if(typeof e!="string")throw XEe("Expected `string` for value, got `%s`",e);for(h={relevance:0,language:null,value:[]},u={relevance:0,language:null,value:[]};++o<s;)p=a[o],$C.getLanguage(p)&&(f=sLn(p,e,t),f.language=p,f.relevance>h.relevance&&(h=f),f.relevance>u.relevance&&(h=u,u=f));return h.language&&(u.secondBest=h),u}function aei(e,t){$C.registerLanguage(e,t)}function sei(){return $C.listLanguages()}function oei(e,t){var r=e,a;t&&(r={},r[e]=t);for(a in r)$C.registerAliases(r[a],{languageName:a})}function mR(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function lei(e,t){this.openNode(t),this.addText(e),this.closeNode()}function cei(e,t){var r=this.stack,a=r[r.length-1],s=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:s}:s;a.children=a.children.concat(o)}function uei(e){var t=this.stack,r,a;e!==""&&(r=t[t.length-1],a=r.children[r.children.length-1],a&&a.type==="text"?a.value+=e:r.children.push({type:"text",value:e}))}function hei(e){var t=this.stack,r=this.options.classPrefix+e,a=t[t.length-1],s={type:"element",tagName:"span",properties:{className:[r]},children:[]};a.children.push(s),t.push(s)}function dei(){this.stack.pop()}function fei(){return""}function oLn(){}var LQe,Cpn;function pei(){if(Cpn)return LQe;Cpn=1;function e(t){var r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее ",s="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o=a+s,u="загрузитьизфайла ",h="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",f=u+h,p="разделительстраниц разделительстрок символтабуляции ",m="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",b="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",_="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",w=p+m+b+_,S="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",C="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",A="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",k="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",I="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",N="отображениевремениэлементовпланировщика ",L="типфайлаформатированногодокумента ",P="обходрезультатазапроса типзаписизапроса ",M="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",F="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",U="типизмеренияпостроителязапроса ",$="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",G="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",B="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",Z="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",z="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",Y="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",W="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",Q="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",V="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",j="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",ee="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",te=S+C+A+k+I+N+L+P+M+F+U+$+G+B+Z+z+Y+W+Q+V+j+ee,ne="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",se="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ie=ne+se,ge="null истина ложь неопределено",ce=t.inherit(t.NUMBER_MODE),be={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ve={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},De=t.inherit(t.C_LINE_COMMENT_MODE),ye={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,"meta-keyword":o+f},contains:[De]},Ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},he={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:ge},contains:[ce,be,ve]},De]},t.inherit(t.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:o,built_in:w,class:te,type:ie,literal:ge},contains:[ye,he,De,Ee,ce,be,ve]}}return LQe=e,LQe}var DQe,Apn;function gei(){if(Apn)return DQe;Apn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},o=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],u=a.COMMENT(/;/,/$/),h={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},f={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},p={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},m={className:"symbol",begin:/%[si]/},b={className:"attribute",begin:t(s.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:s.unexpectedChars,keywords:o,contains:[b,u,h,f,p,m,a.QUOTE_STRING_MODE,a.NUMBER_MODE]}}return DQe=r,DQe}var MQe,kpn;function mei(){if(kpn)return MQe;kpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t(/"/,r(...o)),end:/"/,keywords:o,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return MQe=a,MQe}var PQe,Rpn;function bei(){if(Rpn)return PQe;Rpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s=/[a-zA-Z_$][a-zA-Z0-9_$]*/,o=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,u={className:"rest_arg",begin:/[.]{3}/,end:s,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[a.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,u]},{begin:t(/:\s*/,o)}]},a.METHOD_GUARD],illegal:/#/}}return PQe=r,PQe}var BQe,Ipn;function yei(){if(Ipn)return BQe;Ipn=1;function e(t){const r="\\d(_|\\d)*",a="[eE][-+]?"+r,s=r+"(\\."+r+")?("+a+")?",o="\\w+",h="\\b("+(r+"#"+o+"(\\."+o+")?#("+a+")?")+"|"+s+")",f="[A-Za-z](_?[A-Za-z0-9.])*",p=`[]\\{\\}%#'"`,m=t.COMMENT("--","$"),b={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:p,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:f,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[m,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:h,relevance:0},{className:"symbol",begin:"'"+f},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:p},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[m,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:p},b,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:p}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:p},b]}}return BQe=e,BQe}var FQe,Npn;function vei(){if(Npn)return FQe;Npn=1;function e(t){var r={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},s={className:"keyword",begin:"<",end:">",contains:[r,a]};return r.contains=[s],a.contains=[s],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return FQe=e,FQe}var $Qe,Opn;function _ei(){if(Opn)return $Qe;Opn=1;function e(t){const r={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\d+/},s={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},o={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[s,o,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},s,a,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}return $Qe=e,$Qe}var UQe,Lpn;function wei(){if(Lpn)return UQe;Lpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=s.inherit(s.QUOTE_STRING_MODE,{illegal:null}),u={className:"params",begin:/\(/,end:/\)/,contains:["self",s.C_NUMBER_MODE,o]},h=s.COMMENT(/--/,/$/),f=s.COMMENT(/\(\*/,/\*\)/,{contains:["self",h]}),p=[h,f,s.HASH_COMMENT_MODE],m=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],b=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[o,s.C_NUMBER_MODE,{className:"built_in",begin:t(/\b/,r(...b),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t(/\b/,r(...m),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[s.UNDERSCORE_TITLE_MODE,u]},...p],illegal:/\/\/|->|=>|\[\[/}}return UQe=a,UQe}var zQe,Dpn;function Eei(){if(Dpn)return zQe;Dpn=1;function e(t){const r="[A-Za-z_][0-9A-Za-z_]*",a={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},s={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,u]};u.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,o,t.REGEXP_MODE];const f=u.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:a,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:f}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:f}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return zQe=e,zQe}var GQe,Mpn;function xei(){if(Mpn)return GQe;Mpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(u){const h=u.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),f="decltype\\(auto\\)",p="[a-zA-Z_]\\w*::",b="("+f+"|"+r(p)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",_={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},S={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[u.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},u.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},C={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},A={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},u.inherit(S,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},h,u.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:r(p)+u.IDENT_RE,relevance:0},I=r(p)+u.IDENT_RE+"\\s*\\(",L={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},P={className:"function.dispatch",relevance:0,keywords:L,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,u.IDENT_RE,t(/\s*\(/))},M=[P,A,_,h,u.C_BLOCK_COMMENT_MODE,C,S],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:L,contains:M.concat([{begin:/\(/,end:/\)/,keywords:L,contains:M.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+b+"[\\*&\\s]+)+"+I,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:L,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:f,keywords:L,relevance:0},{begin:I,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[S,C]},{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[h,u.C_BLOCK_COMMENT_MODE,S,C,_,{begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:["self",h,u.C_BLOCK_COMMENT_MODE,S,C,_]}]},_,h,u.C_BLOCK_COMMENT_MODE,A]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:L,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(F,U,P,M,[A,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:L,contains:["self",_]},{begin:u.IDENT_RE+"::",keywords:L},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},u.TITLE_MODE]}]),exports:{preprocessor:A,strings:S,keywords:L}}}function o(u){const h={keyword:"boolean byte word String",built_in:"KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ",_:"setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},f=s(u),p=f.keywords;return p.keyword+=" "+h.keyword,p.literal+=" "+h.literal,p.built_in+=" "+h.built_in,p._+=" "+h._,f.name="Arduino",f.aliases=["ino"],f.supersetOf="cpp",f}return GQe=o,GQe}var qQe,Ppn;function Sei(){if(Ppn)return qQe;Ppn=1;function e(t){const r={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return qQe=e,qQe}var HQe,Bpn;function Tei(){if(Bpn)return HQe;Bpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(...u){return"("+u.map(f=>e(f)).join("|")+")"}function o(u){const h=a(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),f=/[A-Za-z0-9._:-]+/,p={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},m={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},b=u.inherit(m,{begin:/\(/,end:/\)/}),_=u.inherit(u.APOS_STRING_MODE,{className:"meta-string"}),w=u.inherit(u.QUOTE_STRING_MODE,{className:"meta-string"}),S={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:f,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[p]},{begin:/'/,end:/'/,contains:[p]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[m,w,_,b,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[m,b,w,_]}]}]},u.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},p,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[S],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[S],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a(/</,t(a(h,s(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:h,relevance:0,starts:S}]},{className:"tag",begin:a(/<\//,t(a(h,/>/))),contains:[{className:"name",begin:h,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return HQe=o,HQe}var VQe,Fpn;function Cei(){if(Fpn)return VQe;Fpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={begin:"^'{3,}[ \\t]*$",relevance:10},o=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],u=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],h=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],f={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},p={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[a.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),a.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ 	].+?([ 	]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},p,f,...o,...u,...h,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},s,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return VQe=r,VQe}var YQe,$pn;function Aei(){if($pn)return YQe;$pn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",o="get set args call";return{name:"AspectJ",keywords:s,illegal:/<\/|#/,contains:[a.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},a.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:s+" "+o,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[a.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:s,illegal:/["\[\]]/,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:s+" "+o,relevance:0},a.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:s,excludeEnd:!0,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:s,contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},a.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return YQe=r,YQe}var jQe,Upn;function kei(){if(Upn)return jQe;Upn=1;function e(t){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,t.inherit(t.QUOTE_STRING_MODE,{contains:[r]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return jQe=e,jQe}var WQe,zpn;function Rei(){if(zpn)return WQe;zpn=1;function e(t){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],s="True False And Null Not Or Default",o="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",u={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},h={begin:"\\$[A-z0-9_]+"},f={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},p={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},m={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[f,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},f,u]},b={className:"symbol",begin:"@[A-z0-9_]+"},_={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[h,f,p]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:o,literal:s},contains:[u,h,f,p,m,b,_]}}return WQe=e,WQe}var KQe,Gpn;function Iei(){if(Gpn)return KQe;Gpn=1;function e(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return KQe=e,KQe}var XQe,qpn;function Nei(){if(qpn)return XQe;qpn=1;function e(t){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",s={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[r,s,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}return XQe=e,XQe}var QQe,Hpn;function Oei(){if(Hpn)return QQe;Hpn=1;function e(t){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]}]}}return QQe=e,QQe}var ZQe,Vpn;function Lei(){if(Vpn)return ZQe;Vpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const u={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},h={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,u]};u.contains.push(f);const p={className:"",begin:/\\"/},m={className:"string",begin:/'/,end:/'/},b={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],w=a.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[w,a.SHEBANG(),S,b,a.HASH_COMMENT_MODE,h,f,p,m,s]}}return ZQe=r,ZQe}var JQe,Ypn;function Dei(){if(Ypn)return JQe;Ypn=1;function e(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return JQe=e,JQe}var eZe,jpn;function Mei(){if(jpn)return eZe;jpn=1;function e(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}return eZe=e,eZe}var tZe,Wpn;function Pei(){if(Wpn)return tZe;Wpn=1;function e(t){const r={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r
]`,`[\\[\\]\\.,\\+\\-<> \r
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[r]},r]}}return tZe=e,tZe}var nZe,Kpn;function Bei(){if(Kpn)return nZe;Kpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(u){const h=u.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),f="decltype\\(auto\\)",p="[a-zA-Z_]\\w*::",b="("+f+"|"+r(p)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",_={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},S={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[u.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},u.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},C={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},A={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},u.inherit(S,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},h,u.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:r(p)+u.IDENT_RE,relevance:0},I=r(p)+u.IDENT_RE+"\\s*\\(",L={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},P={className:"function.dispatch",relevance:0,keywords:L,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,u.IDENT_RE,t(/\s*\(/))},M=[P,A,_,h,u.C_BLOCK_COMMENT_MODE,C,S],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:L,contains:M.concat([{begin:/\(/,end:/\)/,keywords:L,contains:M.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+b+"[\\*&\\s]+)+"+I,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:L,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:f,keywords:L,relevance:0},{begin:I,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[S,C]},{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[h,u.C_BLOCK_COMMENT_MODE,S,C,_,{begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:["self",h,u.C_BLOCK_COMMENT_MODE,S,C,_]}]},_,h,u.C_BLOCK_COMMENT_MODE,A]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:L,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(F,U,P,M,[A,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:L,contains:["self",_]},{begin:u.IDENT_RE+"::",keywords:L},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},u.TITLE_MODE]}]),exports:{preprocessor:A,strings:S,keywords:L}}}function o(u){const h=s(u),f=["c","h"],p=["cc","c++","h++","hpp","hh","hxx","cxx"];return h.disableAutodetect=!0,h.aliases=[],u.getLanguage("c")||h.aliases.push(...f),u.getLanguage("cpp")||h.aliases.push(...p),h}return nZe=o,nZe}var rZe,Xpn;function Fei(){if(Xpn)return rZe;Xpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")?")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",p="("+u+"|"+t(h)+"[a-zA-Z_]\\w*"+t("<[^<>]+>")+")",m={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},_={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},w={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},S={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},s.inherit(_,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},o,s.C_BLOCK_COMMENT_MODE]},C={className:"title",begin:t(h)+s.IDENT_RE,relevance:0},A=t(h)+s.IDENT_RE+"\\s*\\(",k={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},I=[S,m,o,s.C_BLOCK_COMMENT_MODE,w,_],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:I.concat([{begin:/\(/,end:/\)/,keywords:k,contains:I.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+p+"[\\*&\\s]+)+"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[o,s.C_BLOCK_COMMENT_MODE,_,w,m,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",o,s.C_BLOCK_COMMENT_MODE,_,w,m]}]},m,o,s.C_BLOCK_COMMENT_MODE,S]};return{name:"C",aliases:["h"],keywords:k,disableAutodetect:!0,illegal:"</",contains:[].concat(N,L,I,[S,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:k,contains:["self",m]},{begin:s.IDENT_RE+"::",keywords:k},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:S,strings:_,keywords:k}}}return rZe=a,rZe}var iZe,Qpn;function $ei(){if(Qpn)return iZe;Qpn=1;function e(t){const r="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",a="false true",s=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},u={className:"string",begin:/(#\d+)+/},h={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},f={className:"string",begin:'"',end:'"'},p={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[o,u]}].concat(s)},m={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[t.TITLE_MODE,p]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:a},illegal:/\/\*/,contains:[o,u,h,f,t.NUMBER_MODE,m,p]}}return iZe=e,iZe}var aZe,Zpn;function Uei(){if(Zpn)return aZe;Zpn=1;function e(t){return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}return aZe=e,aZe}var sZe,Jpn;function zei(){if(Jpn)return sZe;Jpn=1;function e(t){const r="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",a="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",s="doc by license see throws tagged",o={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},u=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[o]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return o.contains=u,{name:"Ceylon",keywords:{keyword:r+" "+a,meta:s},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(u)}}return sZe=e,sZe}var oZe,egn;function Gei(){if(egn)return oZe;egn=1;function e(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return oZe=e,oZe}var lZe,tgn;function qei(){if(tgn)return lZe;tgn=1;function e(t){const r="a-zA-Z_\\-!.?+*=<>&#'",a="["+r+"]["+r+"0-9/;:]*",s="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:a,"builtin-name":s+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},u="[-+]?\\d+(\\.\\d+)?",h={begin:a,relevance:0},f={className:"number",begin:u,relevance:0},p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),m=t.COMMENT(";","$",{relevance:0}),b={className:"literal",begin:/\b(true|false|nil)\b/},_={begin:"[\\[\\{]",end:"[\\]\\}]"},w={className:"comment",begin:"\\^"+a},S=t.COMMENT("\\^\\{","\\}"),C={className:"symbol",begin:"[:]{1,2}"+a},A={begin:"\\(",end:"\\)"},k={endsWithParent:!0,relevance:0},I={keywords:o,className:"name",begin:a,relevance:0,starts:k},N=[A,p,w,S,m,C,_,f,b,h],L={beginKeywords:s,lexemes:a,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(N)};return A.contains=[t.COMMENT("comment",""),L,I,k],k.contains=N,_.contains=N,S.contains=[_],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[A,p,w,S,m,C,_,f,b]}}return lZe=e,lZe}var cZe,ngn;function Hei(){if(ngn)return cZe;ngn=1;function e(t){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return cZe=e,cZe}var uZe,rgn;function Vei(){if(rgn)return uZe;rgn=1;function e(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}return uZe=e,uZe}var hZe,ign;function Yei(){if(ign)return hZe;ign=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],a=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],u=[].concat(s,o,r,a);function h(f){const p=["npm","print"],m=["yes","no","on","off"],b=["then","unless","until","loop","by","when","and","or","is","isnt","not"],_=["var","const","let","function","static"],w=P=>M=>!P.includes(M),S={keyword:e.concat(b).filter(w(_)),literal:t.concat(m),built_in:u.concat(p)},C="[A-Za-z$_][0-9A-Za-z$_]*",A={className:"subst",begin:/#\{/,end:/\}/,keywords:S},k=[f.BINARY_NUMBER_MODE,f.inherit(f.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[f.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[f.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[f.BACKSLASH_ESCAPE,A]},{begin:/"/,end:/"/,contains:[f.BACKSLASH_ESCAPE,A]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[A,f.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+C},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];A.contains=k;const I=f.inherit(f.TITLE_MODE,{begin:C}),N="(\\(.*\\)\\s*)?\\B[-=]>",L={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:S,contains:["self"].concat(k)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:S,illegal:/\/\*/,contains:k.concat([f.COMMENT("###","###"),f.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+C+"\\s*=\\s*"+N,end:"[-=]>",returnBegin:!0,contains:[I,L]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:N,end:"[-=]>",returnBegin:!0,contains:[L]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[I]},I]},{begin:C+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return hZe=h,hZe}var dZe,agn;function jei(){if(agn)return dZe;agn=1;function e(t){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dZe=e,dZe}var fZe,sgn;function Wei(){if(sgn)return fZe;sgn=1;function e(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return fZe=e,fZe}var pZe,ogn;function Kei(){if(ogn)return pZe;ogn=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function r(o){return a("(",o,")?")}function a(...o){return o.map(h=>e(h)).join("")}function s(o){const u=o.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),h="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",m="("+h+"|"+r(f)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",b={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},w={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},o.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},S={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},C={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},o.inherit(w,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},u,o.C_BLOCK_COMMENT_MODE]},A={className:"title",begin:r(f)+o.IDENT_RE,relevance:0},k=r(f)+o.IDENT_RE+"\\s*\\(",N={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},L={className:"function.dispatch",relevance:0,keywords:N,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,o.IDENT_RE,t(/\s*\(/))},P=[L,C,b,u,o.C_BLOCK_COMMENT_MODE,S,w],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:P.concat([{begin:/\(/,end:/\)/,keywords:N,contains:P.concat(["self"]),relevance:0}]),relevance:0},F={className:"function",begin:"("+m+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:h,keywords:N,relevance:0},{begin:k,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[w,S]},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[u,o.C_BLOCK_COMMENT_MODE,w,S,b,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",u,o.C_BLOCK_COMMENT_MODE,w,S,b]}]},b,u,o.C_BLOCK_COMMENT_MODE,C]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,F,L,P,[C,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:N,contains:["self",b]},{begin:o.IDENT_RE+"::",keywords:N},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},o.TITLE_MODE]}]),exports:{preprocessor:C,strings:w,keywords:N}}}return pZe=s,pZe}var gZe,lgn;function Xei(){if(lgn)return gZe;lgn=1;function e(t){const r="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return gZe=e,gZe}var mZe,cgn;function Qei(){if(cgn)return mZe;cgn=1;function e(t){const r="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",s="[a-zA-Z_]\\w*[!?=]?",o="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",u="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",h={$pattern:s,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},f={className:"subst",begin:/#\{/,end:/\}/,keywords:h},p={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:h};function m(k,I){const N=[{begin:k,end:I}];return N[0].contains=N,N}const b={className:"string",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:m("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},_={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%q<",end:">",contains:m("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},w={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:"%r\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%r<",end:">",contains:m("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},C={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"})]},A=[p,b,_,S,w,C,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[b,{begin:o}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return f.contains=A,p.contains=A.slice(1),{name:"Crystal",aliases:["cr"],keywords:h,contains:A}}return mZe=e,mZe}var bZe,ugn;function Zei(){if(ugn)return bZe;ugn=1;function e(t){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],o=["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],u=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],h={keyword:o.concat(u),built_in:r,literal:s},f=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=t.inherit(m,{illegal:/\n/}),_={className:"subst",begin:/\{/,end:/\}/,keywords:h},w=t.inherit(_,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,w]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]},A=t.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},w]});_.contains=[C,S,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,t.C_BLOCK_COMMENT_MODE],w.contains=[A,S,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[C,S,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},I={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},N=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",L={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:h,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},k,p,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,I,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,I,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+N+"\\s+)+"+t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:h,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,I],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,relevance:0,contains:[k,p,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},L]}}return bZe=e,bZe}var yZe,hgn;function Jei(){if(hgn)return yZe;hgn=1;function e(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return yZe=e,yZe}var vZe,dgn;function eti(){if(dgn)return vZe;dgn=1;const e=m=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(m){return m?typeof m=="string"?m:m.source:null}function h(m){return f("(?=",m,")")}function f(...m){return m.map(_=>u(_)).join("")}function p(m){const b=e(m),_={className:"built_in",begin:/[\w-]+(?=\()/},w={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},S="and or not only",C=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",k=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.C_BLOCK_COMMENT_MODE,w,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+A,relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:"::("+s.join("|")+")"}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[b.HEXCOLOR,b.IMPORTANT,m.CSS_NUMBER_MODE,...k,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_]},{begin:h(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:C},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:S,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...k,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b"}]}}return vZe=p,vZe}var _Ze,fgn;function tti(){if(fgn)return _Ze;fgn=1;function e(t){const r={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",s="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",o="0[bB][01_]+",u="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",h="0[xX]"+u,f="([eE][+-]?"+s+")",p="("+s+"(\\.\\d*|"+f+")|\\d+\\."+s+"|\\."+a+f+"?)",m="(0[xX]("+u+"\\."+u+"|\\.?"+u+")[pP][+-]?"+s+")",b="("+a+"|"+o+"|"+h+")",_="("+m+"|"+p+")",w=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,S={className:"number",begin:"\\b"+b+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},C={className:"number",begin:"\\b("+_+"([fF]|L|i|[fF]i|Li)?|"+b+"(i|[fF]i|Li))",relevance:0},A={className:"string",begin:"'("+w+"|.)",end:"'",illegal:"."},I={className:"string",begin:'"',contains:[{begin:w,relevance:0}],end:'"[cwd]?'},N={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},L={className:"string",begin:"`",end:"`[cwd]?"},P={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},M={className:"string",begin:'q"\\{',end:'\\}"'},F={className:"meta",begin:"^#!",end:"$",relevance:5},U={className:"meta",begin:"#(line)",end:"$",relevance:5},$={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},G=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,G,P,I,N,L,M,C,S,A,F,U,$]}}return _Ze=e,_Ze}var wZe,pgn;function nti(){if(pgn)return wZe;pgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},u={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},h={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},f={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};b.contains.push(_),_.contains.push(b);let w=[s,m];return b.contains=b.contains.concat(w),_.contains=_.contains.concat(w),w=w.concat(b,_),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:w},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:w}]}]},s,h,b,_,{className:"quote",begin:"^>\\s+",contains:w,end:"$"},u,o,m,f]}}return wZe=r,wZe}var EZe,ggn;function rti(){if(ggn)return EZe;ggn=1;function e(t){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},s={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,r,a]}]};a.contains=[t.C_NUMBER_MODE,s];const o=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],u=o.map(f=>`${f}?`);return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:o.concat(u).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return EZe=e,EZe}var xZe,mgn;function iti(){if(mgn)return xZe;mgn=1;function e(t){const r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",a=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},u={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},h={className:"string",begin:/(#\d+)+/},f={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},p={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[o,h,s].concat(a)},s].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[o,h,t.NUMBER_MODE,u,f,p,s].concat(a)}}return xZe=e,xZe}var SZe,bgn;function ati(){if(bgn)return SZe;bgn=1;function e(t){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return SZe=e,SZe}var TZe,ygn;function sti(){if(ygn)return TZe;ygn=1;function e(t){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return TZe=e,TZe}var CZe,vgn;function oti(){if(vgn)return CZe;vgn=1;function e(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return CZe=e,CZe}var AZe,_gn;function lti(){if(_gn)return AZe;_gn=1;function e(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return AZe=e,AZe}var kZe,wgn;function cti(){if(wgn)return kZe;wgn=1;function e(t){const r=t.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{className:"number",begin:"\\b\\d+",relevance:0},r]}}return kZe=e,kZe}var RZe,Egn;function uti(){if(Egn)return RZe;Egn=1;function e(t){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},t.HASH_COMMENT_MODE]}}return RZe=e,RZe}var IZe,xgn;function hti(){if(xgn)return IZe;xgn=1;function e(t){const r={className:"string",variants:[t.inherit(t.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},a={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:t.C_NUMBER_RE}],relevance:0},s={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[t.inherit(r,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},r,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},o={className:"variable",begin:/&[a-z\d_]*\b/},u={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},h={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},f={className:"params",begin:"<",end:">",contains:[a,o]},p={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[o,u,h,p,f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,r]},o,u,h,p,f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,r,s,{begin:t.IDENT_RE+"::",keywords:""}]}}return IZe=e,IZe}var NZe,Sgn;function dti(){if(Sgn)return NZe;Sgn=1;function e(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return NZe=e,NZe}var OZe,Tgn;function fti(){if(Tgn)return OZe;Tgn=1;function e(t){const r=t.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},o={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,a,o]}}return OZe=e,OZe}var LZe,Cgn;function pti(){if(Cgn)return LZe;Cgn=1;function e(t){const r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",s={$pattern:r,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:s},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h=`[/|([{<"']`,f={className:"string",begin:"~[a-z](?="+h+")",contains:[{endsParent:!0,contains:[{contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},p={className:"string",begin:"~[A-Z](?="+h+")",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},m={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},b={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:r,endsParent:!0})]},_=t.inherit(b,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),w=[m,p,f,t.HASH_COMMENT_MODE,_,b,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[m,{begin:a}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+t.RE_STARTERS_RE+")\\s*",contains:[t.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[u]},{className:"regexp",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return o.contains=w,{name:"Elixir",keywords:s,contains:w}}return LZe=e,LZe}var DZe,Agn;function gti(){if(Agn)return DZe;Agn=1;function e(t){const r={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},o={begin:/\{/,end:/\}/,contains:s.contains},u={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[s,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[s,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,s,o,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},u,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,a,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return DZe=e,DZe}var MZe,kgn;function mti(){if(kgn)return MZe;kgn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[s.COMMENT("#","$",{contains:[h]}),s.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),s.COMMENT("^__END__","\\n$")],m={className:"subst",begin:/#\{/,end:/\}/,keywords:u},b={className:"string",contains:[s.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},s.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[s.BACKSLASH_ESCAPE,m]})]}]},_="[1-9](_?[0-9])*|0",w="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${w}))?([eE][+-]?(${w})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},C={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:u},A=[b,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[s.inherit(s.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+s.IDENT_RE+"::)?"+s.IDENT_RE,relevance:0}]}].concat(p)},{className:"function",begin:r(/def\s+/,t(o+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[s.inherit(s.TITLE_MODE,{begin:o}),C].concat(p)},{begin:s.IDENT_RE+"::"},{className:"symbol",begin:s.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[b,{begin:o}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:u},{begin:"("+s.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[s.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,p),relevance:0}].concat(f,p);m.contains=A,C.contains=A;const L=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",contains:A}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[s.SHEBANG({binary:"ruby"})].concat(L).concat(p).concat(A)}}return MZe=a,MZe}var PZe,Rgn;function bti(){if(Rgn)return PZe;Rgn=1;function e(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return PZe=e,PZe}var BZe,Ign;function yti(){if(Ign)return BZe;Ign=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},a.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{begin:t(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return BZe=r,BZe}var FZe,Ngn;function vti(){if(Ngn)return FZe;Ngn=1;function e(t){const r="[a-z'][a-zA-Z0-9_']*",a="("+r+":"+r+"|"+r+")",s={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},o=t.COMMENT("%","$"),u={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},h={begin:"fun\\s+"+r+"/\\d+"},f={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},p={begin:/\{/,end:/\}/,relevance:0},m={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},b={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},_={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},w={beginKeywords:"fun receive if try case",end:"end",keywords:s};w.contains=[o,h,t.inherit(t.APOS_STRING_MODE,{className:""}),w,f,t.QUOTE_STRING_MODE,u,p,m,b,_];const S=[o,h,w,f,t.QUOTE_STRING_MODE,u,p,m,b,_];f.contains[1].contains=S,p.contains=S,_.contains[1].contains=S;const C=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],A={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:s,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+r+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[A,t.inherit(t.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:s,contains:S}},o,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:C.map(k=>`${k}|1.5`).join(" ")},contains:[A]},u,t.QUOTE_STRING_MODE,_,m,b,p,{begin:/\.$/}]}}return FZe=e,FZe}var $Ze,Ogn;function _ti(){if(Ogn)return $Ze;Ogn=1;function e(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return $Ze=e,$Ze}var UZe,Lgn;function wti(){if(Lgn)return UZe;Lgn=1;function e(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return UZe=e,UZe}var zZe,Dgn;function Eti(){if(Dgn)return zZe;Dgn=1;function e(t){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},o={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,a,o,t.C_NUMBER_MODE]}}return zZe=e,zZe}var GZe,Mgn;function xti(){if(Mgn)return GZe;Mgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={className:"params",begin:"\\(",end:"\\)"},o={variants:[a.COMMENT("!","$",{relevance:0}),a.COMMENT("^C[ ]","$",{relevance:0}),a.COMMENT("^C$","$",{relevance:0})]},u=/(_[a-z_\d]+)?/,h=/([de][+-]?\d+)?/,f={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,h,u)},{begin:t(/\b\d+/,h,u)},{begin:t(/\.\d+/,h,u)}],relevance:0},p={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[a.UNDERSCORE_TITLE_MODE,s]},m={className:"string",relevance:0,variants:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[m,p,{begin:/^C\s*=(?!=)/,relevance:0},o,f]}}return GZe=r,GZe}var qZe,Pgn;function Sti(){if(Pgn)return qZe;Pgn=1;function e(t){const r={begin:"<",end:">",contains:[t.inherit(t.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},t.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[t.UNDERSCORE_TITLE_MODE,r]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[t.BACKSLASH_ESCAPE]},t.C_LINE_COMMENT_MODE,t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),t.C_NUMBER_MODE]}}return qZe=e,qZe}var HZe,Bgn;function Tti(){if(Bgn)return HZe;Bgn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")*")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},u={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},h={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},f={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},p={begin:"/",end:"/",keywords:o,contains:[f,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_NUMBER_MODE]},m=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,b={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[f,p,{className:"comment",begin:r(m,t(r(/[ ]+/,m))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:o,contains:[s.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,p,b]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[b]},s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},u,h]},s.C_NUMBER_MODE,h]}}return HZe=a,HZe}var VZe,Fgn;function Cti(){if(Fgn)return VZe;Fgn=1;function e(t){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=t.COMMENT("@","@"),s={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a]},o={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},u=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,o]}],h={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},f=function(w,S,C){const A=t.inherit({className:"function",beginKeywords:w,end:S,excludeEnd:!0,contains:[].concat(u)},{});return A.contains.push(h),A.contains.push(t.C_NUMBER_MODE),A.contains.push(t.C_BLOCK_COMMENT_MODE),A.contains.push(a),A},p={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},m={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},b={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},p,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},_={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,p,b,m,"self"]};return b.contains.push(_),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,m,s,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},f("proc keyword",";"),f("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,a,_]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},b,o]}}return VZe=e,VZe}var YZe,$gn;function Ati(){if($gn)return YZe;$gn=1;function e(t){const r="[A-Z_][A-Z0-9_.]*",a="%",s={$pattern:r,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},o={className:"meta",begin:"([O])([0-9]+)"},u=t.inherit(t.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+t.C_NUMBER_RE}),h=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\(/,/\)/),u,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[u],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:a},o].concat(h)}}return YZe=e,YZe}var jZe,Ugn;function kti(){if(Ugn)return jZe;Ugn=1;function e(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}return jZe=e,jZe}var WZe,zgn;function Rti(){if(zgn)return WZe;zgn=1;function e(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return WZe=e,WZe}var KZe,Ggn;function Iti(){if(Ggn)return KZe;Ggn=1;function e(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum function constructor delete #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool is_method is_struct is_infinity is_nan is_numeric typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names variable_struct_exists variable_struct_get variable_struct_get_names variable_struct_names_count variable_struct_remove variable_struct_set array_delete array_insert array_length array_length_1d array_length_2d array_height_2d array_equals array_create array_copy array_pop array_push array_resize array_sort random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version  timezone_local timezone_utc gamespeed_fps gamespeed_microseconds  ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt  mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive  ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds  os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile  device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari  phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes  phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category  achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded  achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype  text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET  gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings  vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x|0 y|0 xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour  background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return KZe=e,KZe}var XZe,qgn;function Nti(){if(qgn)return XZe;qgn=1;function e(t){const r={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:r,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:t.C_NUMBER_RE+"[i]",relevance:1},t.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,illegal:/["']/}]}]}}return XZe=e,XZe}var QZe,Hgn;function Oti(){if(Hgn)return QZe;Hgn=1;function e(t){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return QZe=e,QZe}var ZZe,Vgn;function Lti(){if(Vgn)return ZZe;Vgn=1;function e(t){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}return ZZe=e,ZZe}var JZe,Ygn;function Dti(){if(Ygn)return JZe;Ygn=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return r("(?=",o,")")}function r(...o){return o.map(h=>e(h)).join("")}function a(o,u={}){return u.variants=o,u}function s(o){const u="[A-Za-z0-9_$]+",h=a([o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),f={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[o.BACKSLASH_ESCAPE]},p=a([o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]),m=a([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[o.SHEBANG({binary:"groovy",relevance:10}),h,m,f,p,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:u+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[h,m,f,p,"self"]},{className:"symbol",begin:"^[ 	]*"+t(u+":"),excludeBegin:!0,end:u+":",relevance:0}],illegal:/#|<\//}}return JZe=s,JZe}var eJe,jgn;function Mti(){if(jgn)return eJe;jgn=1;function e(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}return eJe=e,eJe}var tJe,Wgn;function Pti(){if(Wgn)return tJe;Wgn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(",u,")*")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(...u){return"("+u.map(f=>e(f)).join("|")+")"}function o(u){const h={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},f={literal:["true","false","undefined","null"]},p=/""|"[^"]+"/,m=/''|'[^']+'/,b=/\[\]|\[[^\]]+\]/,_=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,w=/(\.|\/)/,S=s(p,m,b,_),C=a(r(/\.|\.\/|\//),S,t(a(w,S))),A=a("(",b,"|",_,")(?==)"),k={begin:C,lexemes:/[\w.\/]+/},I=u.inherit(k,{keywords:f}),N={begin:/\(/,end:/\)/},L={className:"attr",begin:A,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[u.NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,I,N]}}},P={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},M={contains:[u.NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,P,L,I,N],returnEnd:!0},F=u.inherit(k,{className:"name",keywords:h,starts:u.inherit(M,{end:/\)/})});N.contains=[F];const U=u.inherit(k,{keywords:h,className:"name",starts:u.inherit(M,{end:/\}\}/})}),$=u.inherit(k,{keywords:h,className:"name"}),G=u.inherit(k,{className:"name",keywords:h,starts:u.inherit(M,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},u.COMMENT(/\{\{!--/,/--\}\}/),u.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[U],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[$]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[U]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[$]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[G]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[G]}]}}return tJe=o,tJe}var nJe,Kgn;function Bti(){if(Kgn)return nJe;Kgn=1;function e(t){const r={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"meta",begin:/\{-#/,end:/#-\}/},s={className:"meta",begin:"^#",end:"$"},o={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},u={begin:"\\(",end:"\\)",illegal:'"',contains:[a,s,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),r]},h={begin:/\{/,end:/\}/,contains:u.contains};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[u,r],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[u,r],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[o,u,r]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[a,o,u,h,r]},{beginKeywords:"default",end:"$",contains:[o,u,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,r]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[o,t.QUOTE_STRING_MODE,r]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},a,s,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,o,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}]}}return nJe=e,nJe}var rJe,Xgn;function Fti(){if(Xgn)return rJe;Xgn=1;function e(t){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ 	]*",end:"[^A-Za-z0-9_ 	\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ 	]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[t.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[t.TITLE_MODE]}],illegal:/<\//}}return rJe=e,rJe}var iJe,Qgn;function $ti(){if(Qgn)return iJe;Qgn=1;function e(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}return iJe=e,iJe}var aJe,Zgn;function Uti(){if(Zgn)return aJe;Zgn=1;function e(h){return h?typeof h=="string"?h:h.source:null}function t(h){return a("(",h,")*")}function r(h){return a("(",h,")?")}function a(...h){return h.map(p=>e(p)).join("")}function s(...h){return"("+h.map(p=>e(p)).join("|")+")"}function o(h){const f={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},p={literal:["true","false","undefined","null"]},m=/""|"[^"]+"/,b=/''|'[^']+'/,_=/\[\]|\[[^\]]+\]/,w=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,S=/(\.|\/)/,C=s(m,b,_,w),A=a(r(/\.|\.\/|\//),C,t(a(S,C))),k=a("(",_,"|",w,")(?==)"),I={begin:A,lexemes:/[\w.\/]+/},N=h.inherit(I,{keywords:p}),L={begin:/\(/,end:/\)/},P={className:"attr",begin:k,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[h.NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,N,L]}}},M={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},F={contains:[h.NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,M,P,N,L],returnEnd:!0},U=h.inherit(I,{className:"name",keywords:f,starts:h.inherit(F,{end:/\)/})});L.contains=[U];const $=h.inherit(I,{keywords:f,className:"name",starts:h.inherit(F,{end:/\}\}/})}),G=h.inherit(I,{keywords:f,className:"name"}),B=h.inherit(I,{className:"name",keywords:f,starts:h.inherit(F,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},h.COMMENT(/\{\{!--/,/--\}\}/),h.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[$],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[G]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[$]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[G]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[B]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[B]}]}}function u(h){const f=o(h);return f.name="HTMLbars",h.getLanguage("handlebars")&&(f.disableAutodetect=!0),f}return aJe=u,aJe}var sJe,Jgn;function zti(){if(Jgn)return sJe;Jgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s="HTTP/(2|1\\.[01])",u={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},h=[u,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+s+" \\d{3})",end:/$/,contains:[{className:"meta",begin:s},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:h}},{begin:"(?=^[A-Z]+ (.*?) "+s+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:s},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:h}},a.inherit(u,{relevance:0})]}}return sJe=r,sJe}var oJe,emn;function Gti(){if(emn)return oJe;emn=1;function e(t){var r="a-zA-Z_\\-!.?+*=<>&#'",a="["+r+"]["+r+"0-9/;:]*",s={$pattern:a,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},o="[-+]?\\d+(\\.\\d+)?",u={begin:a,relevance:0},h={className:"number",begin:o,relevance:0},f=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),p=t.COMMENT(";","$",{relevance:0}),m={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},b={begin:"[\\[\\{]",end:"[\\]\\}]"},_={className:"comment",begin:"\\^"+a},w=t.COMMENT("\\^\\{","\\}"),S={className:"symbol",begin:"[:]{1,2}"+a},C={begin:"\\(",end:"\\)"},A={endsWithParent:!0,relevance:0},k={className:"name",relevance:0,keywords:s,begin:a,starts:A},I=[C,f,_,w,p,S,b,h,m,u];return C.contains=[t.COMMENT("comment",""),k,A],A.contains=I,b.contains=I,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),C,f,_,w,p,S,b,h,m]}}return oJe=e,oJe}var lJe,tmn;function qti(){if(tmn)return lJe;tmn=1;function e(t){const r="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:r,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:r,end:a,contains:["self"]}]}}return lJe=e,lJe}var cJe,nmn;function Hti(){if(nmn)return cJe;nmn=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return r("(?=",o,")")}function r(...o){return o.map(h=>e(h)).join("")}function a(...o){return"("+o.map(h=>e(h)).join("|")+")"}function s(o){const u={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:o.NUMBER_RE}]},h=o.COMMENT();h.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},m={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},b={begin:/\[/,end:/\]/,contains:[h,p,f,m,u,"self"],relevance:0},C=a(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),A=r(C,"(\\s*\\.\\s*",C,")*",t(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[h,{className:"section",begin:/\[+/,end:/\]+/},{begin:A,className:"attr",starts:{end:/$/,contains:[h,b,p,f,m,u]}}]}}return cJe=s,cJe}var uJe,rmn;function Vti(){if(rmn)return uJe;rmn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={className:"params",begin:"\\(",end:"\\)"},o=/(_[a-z_\d]+)?/,u=/([de][+-]?\d+)?/,h={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,u,o)},{begin:t(/\b\d+/,u,o)},{begin:t(/\.\d+/,u,o)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[a.inherit(a.APOS_STRING_MODE,{className:"string",relevance:0}),a.inherit(a.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[a.UNDERSCORE_TITLE_MODE,s]},a.COMMENT("!","$",{relevance:0}),a.COMMENT("begin_doc","end_doc",{relevance:10}),h]}}return uJe=r,uJe}var hJe,imn;function Yti(){if(imn)return hJe;imn=1;function e(t){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",s="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",ce="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",wT="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",d_="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",tE="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",qu="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",$b=ce+wT,Mf=tE,nE="null true false nil ",Pf={className:"number",begin:t.NUMBER_RE,relevance:0},ET={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Ub={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},jA={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ub]},WA={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ub]},KA={variants:[jA,WA]},f0={$pattern:r,keyword:s,built_in:$b,class:Mf,literal:nE},rU={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:f0,relevance:0},lK={className:"type",begin:":[ \\t]*("+qu.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},cK={className:"variable",keywords:f0,begin:r,relevance:0,contains:[lK,rU]},uK=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:f0,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:uK,end:"\\)$",returnBegin:!0,keywords:f0,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:r,built_in:d_},begin:uK,end:"\\(",returnBegin:!0,excludeEnd:!0},rU,cK,ET,Pf,KA]},lK,rU,cK,ET,Pf,KA]}}return hJe=e,hJe}var dJe,amn;function jti(){if(amn)return dJe;amn=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){var u="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",h=u+"(<"+u+"(\\s*,\\s*"+u+")*>)?",f="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",p={className:"meta",begin:"@"+u,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const m=a;return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:f,contains:[{beginKeywords:"record"},{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+h+"\\s+)+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[p,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,m,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},m,p]}}return dJe=s,dJe}var fJe,smn;function Wti(){if(smn)return fJe;smn=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],s=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],u=["arguments","this","super","console","window","document","localStorage","module","global"],h=[].concat(o,u,a,s);function f(_){return _?typeof _=="string"?_:_.source:null}function p(_){return m("(?=",_,")")}function m(..._){return _.map(S=>f(S)).join("")}function b(_){const w=(Q,{after:V})=>{const j="</"+Q[0].slice(1);return Q.input.indexOf(j,V)!==-1},S=e,C={begin:"<>",end:"</>"},A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,V)=>{const j=Q[0].length+Q.index,ee=Q.input[j];if(ee==="<"){V.ignoreMatch();return}ee===">"&&(w(Q,{after:j})||V.ignoreMatch())}},k={$pattern:e,keyword:t,literal:r,built_in:h},I="[0-9](_?[0-9])*",N=`\\.(${I})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",P={className:"number",variants:[{begin:`(\\b(${L})((${N})|\\.)?|(${N}))[eE][+-]?(${I})\\b`},{begin:`\\b(${L})\\b((${N})\\b|\\.)?|(${N})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},M={className:"subst",begin:"\\$\\{",end:"\\}",keywords:k,contains:[]},F={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,M],subLanguage:"xml"}},U={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,M],subLanguage:"css"}},$={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,M]},B={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:S+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},Z=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,F,U,$,P,_.REGEXP_MODE];M.contains=Z.concat({begin:/\{/,end:/\}/,keywords:k,contains:["self"].concat(Z)});const z=[].concat(B,M.contains),Y=z.concat([{begin:/\(/,end:/\)/,keywords:k,contains:["self"].concat(z)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:Y};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:k,exports:{PARAMS_CONTAINS:Y},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,F,U,$,B,P,{begin:m(/[{,\n]\s*/,p(m(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,S+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:S+p("\\s*:"),relevance:0}]},{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[B,_.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:Y}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:C.begin,end:C.end},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:k,contains:["self",_.inherit(_.TITLE_MODE,{begin:S}),W],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[W,_.inherit(_.TITLE_MODE,{begin:S})]},{variants:[{begin:"\\."+S},{begin:"\\$"+S}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},_.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[_.inherit(_.TITLE_MODE,{begin:S}),"self",W]},{begin:"(get|set)\\s+(?="+S+"\\()",end:/\{/,keywords:"get set",contains:[_.inherit(_.TITLE_MODE,{begin:S}),{begin:/\(\)/},W]},{begin:/\$[(.]/}]}}return fJe=b,fJe}var pJe,omn;function Kti(){if(omn)return pJe;omn=1;function e(t){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},s={className:"function",begin:/:[\w\-.]+/,relevance:0},o={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},u={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,u,s,o,a]}}return pJe=e,pJe}var gJe,lmn;function Xti(){if(lmn)return gJe;lmn=1;function e(t){const r={literal:"true false null"},a=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],s=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],o={end:",",endsWithParent:!0,excludeEnd:!0,contains:s,keywords:r},u={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(o,{begin:/:/})].concat(a),illegal:"\\S"},h={begin:"\\[",end:"\\]",contains:[t.inherit(o)],illegal:"\\S"};return s.push(u,h),a.forEach(function(f){s.push(f)}),{name:"JSON",contains:s,keywords:r,illegal:"\\S"}}return gJe=e,gJe}var mJe,cmn;function Qti(){if(cmn)return mJe;cmn=1;function e(t){var r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",a=["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],s=["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],o=["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"],u={$pattern:r,keyword:a,literal:s,built_in:o},h={keywords:u,illegal:/<\//},f={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},p={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},m={className:"subst",begin:/\$\(/,end:/\)/,keywords:u},b={className:"variable",begin:"\\$"+r},_={className:"string",contains:[t.BACKSLASH_ESCAPE,m,b],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},w={className:"string",contains:[t.BACKSLASH_ESCAPE,m,b],begin:"`",end:"`"},S={className:"meta",begin:"@"+r},C={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return h.name="Julia",h.contains=[f,p,_,w,S,C,t.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],m.contains=h.contains,h}return mJe=e,mJe}var bJe,umn;function Zti(){if(umn)return bJe;umn=1;function e(t){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}return bJe=e,bJe}var yJe,hmn;function Jti(){if(hmn)return yJe;hmn=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){const u={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},h={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},f={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},b={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,p]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,m,p]}]};p.contains.push(b);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(b,{className:"meta-string"})]}]},S=a,C=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=A;return k.variants[1].contains=[A],A.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts"],keywords:u,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,C,h,f,_,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:u,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:u,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,o.C_LINE_COMMENT_MODE,C],relevance:0},o.C_LINE_COMMENT_MODE,C,_,w,b,o.C_NUMBER_MODE]},C]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},_,w]},b,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},S]}}return yJe=s,yJe}var vJe,dmn;function eni(){if(dmn)return vJe;dmn=1;function e(t){const r="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",s="\\]|\\?>",o={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},u=t.COMMENT("<!--","-->",{relevance:0}),h={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[u]}},f={className:"meta",begin:"\\[/noprocess|"+a},p={className:"symbol",begin:"'"+r+"'"},m=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[u]}},h,f,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:o,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[u]}},h,f].concat(m)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(m)}}return vJe=e,vJe}var _Je,fmn;function tni(){if(fmn)return _Je;fmn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return"("+a.map(o=>e(o)).join("|")+")"}function r(a){const s=t(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(Z=>Z+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(Z=>Z+"(?![a-zA-Z:_])").join("|")),u=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],h=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],f={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:s},{endsParent:!0,begin:o},{endsParent:!0,variants:h},{endsParent:!0,relevance:0,variants:u}]},p={className:"params",relevance:0,begin:/#+\d?/},m={variants:h},b={className:"built_in",relevance:0,begin:/[$&^_]/},_={className:"meta",begin:"% !TeX",end:"$",relevance:10},w=a.COMMENT("%","$",{relevance:0}),S=[f,p,m,b,_,w],C={begin:/\{/,end:/\}/,relevance:0,contains:["self",...S]},A=a.inherit(C,{relevance:0,endsParent:!0,contains:[C,...S]}),k={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[C,...S]},I={begin:/\s+/,relevance:0},N=[A],L=[k],P=function(Z,z){return{contains:[I],starts:{relevance:0,contains:Z,starts:z}}},M=function(Z,z){return{begin:"\\\\"+Z+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+Z},relevance:0,contains:[I],starts:z}},F=function(Z,z){return a.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+Z+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},P(N,z))},U=(Z="string")=>a.END_SAME_AS_BEGIN({className:Z,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),$=function(Z){return{className:"string",end:"(?=\\\\end\\{"+Z+"\\})"}},G=(Z="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:Z,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),B=[...["verb","lstinline"].map(Z=>M(Z,{contains:[U()]})),M("mint",P(N,{contains:[U()]})),M("mintinline",P(N,{contains:[G(),U()]})),M("url",{contains:[G("link"),G("link")]}),M("hyperref",{contains:[G("link")]}),M("href",P(L,{contains:[G("link")]})),...[].concat(...["","\\*"].map(Z=>[F("verbatim"+Z,$("verbatim"+Z)),F("filecontents"+Z,P(N,$("filecontents"+Z))),...["","B","L"].map(z=>F(z+"Verbatim"+Z,P(L,$(z+"Verbatim"+Z))))])),F("minted",P(L,P(N,$("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...B,...S]}}return _Je=r,_Je}var wJe,pmn;function nni(){if(pmn)return wJe;pmn=1;function e(t){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},t.HASH_COMMENT_MODE]}}return wJe=e,wJe}var EJe,gmn;function rni(){if(gmn)return EJe;gmn=1;function e(t){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}return EJe=e,EJe}var xJe,mmn;function ini(){if(mmn)return xJe;mmn=1;const e=f=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),u=a.concat(s);function h(f){const p=e(f),m=u,b="and or not only",_="[\\w-]+",w="("+_+"|@\\{"+_+"\\})",S=[],C=[],A=function(B){return{className:"string",begin:"~?"+B+".*?"+B}},k=function(B,Z,z){return{className:B,begin:Z,relevance:z}},I={$pattern:/[a-z-]+/,keyword:b,attribute:r.join(" ")},N={begin:"\\(",end:"\\)",contains:C,keywords:I,relevance:0};C.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,A("'"),A('"'),f.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,N,k("variable","@@?"+_,10),k("variable","@\\{"+_+"\\}"),k("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT);const L=C.concat({begin:/\{/,end:/\}/,contains:S}),P={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},M={begin:w+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:C}}]},F={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:I,returnEnd:!0,contains:C,relevance:0}},U={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:L}},$={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:w,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,P,k("keyword","all\\b"),k("variable","@\\{"+_+"\\}"),{begin:"\\b("+t.join("|")+")\\b",className:"selector-tag"},k("selector-tag",w+"%?",0),k("selector-id","#"+w),k("selector-class","\\."+w,0),k("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:"::("+s.join("|")+")"},{begin:"\\(",end:"\\)",contains:L},{begin:"!important"}]},G={begin:_+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[$]};return S.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,F,U,G,M,$),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return xJe=h,xJe}var SJe,bmn;function ani(){if(bmn)return SJe;bmn=1;function e(t){var r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",s="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},u={className:"number",variants:[{begin:s,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+s+" +"+s,end:"\\)"}]},h=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),f=t.COMMENT(";","$",{relevance:0}),p={begin:"\\*",end:"\\*"},m={className:"symbol",begin:"[:&]"+r},b={begin:r,relevance:0},_={begin:a},w={begin:"\\(",end:"\\)",contains:["self",o,h,u,b]},S={contains:[u,h,p,m,w,b],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},C={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},A={begin:"\\(\\s*",end:"\\)"},k={endsWithParent:!0,relevance:0};return A.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:a}]},k],k.contains=[S,C,A,o,u,h,f,p,m,_,b],{name:"Lisp",illegal:/\S/,contains:[u,t.SHEBANG(),o,h,f,S,C,A,b]}}return SJe=e,SJe}var TJe,ymn;function sni(){if(ymn)return TJe;ymn=1;function e(t){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],s=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),o=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[o,s],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return TJe=e,TJe}var CJe,vmn;function oni(){if(vmn)return CJe;vmn=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],a=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],u=[].concat(s,o,r,a);function h(f){const p=["npm","print"],m=["yes","no","on","off","it","that","void"],b=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],_={keyword:e.concat(b),literal:t.concat(m),built_in:u.concat(p)},w="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",S=f.inherit(f.TITLE_MODE,{begin:w}),C={className:"subst",begin:/#\{/,end:/\}/,keywords:_},A={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:_},k=[f.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[f.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[f.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[f.BACKSLASH_ESCAPE,C,A]},{begin:/"/,end:/"/,contains:[f.BACKSLASH_ESCAPE,C,A]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[C,f.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+w},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];C.contains=k;const I={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(k)}]},N={begin:"(#=>|=>|\\|>>|-?->|!->)"};return{name:"LiveScript",aliases:["ls"],keywords:_,illegal:/\/\*/,contains:k.concat([f.COMMENT("\\/\\*","\\*\\/"),f.HASH_COMMENT_MODE,N,{className:"function",contains:[S,I],returnBegin:!0,variants:[{begin:"("+w+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+w+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+w+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[S]},S]},{begin:w+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return CJe=h,CJe}var AJe,_mn;function lni(){if(_mn)return AJe;_mn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s=/([-a-zA-Z$._][\w$.-]*)/,o={className:"type",begin:/\bi\d+(?=\s|\b)/},u={className:"operator",relevance:0,begin:/=/},h={className:"punctuation",relevance:0,begin:/,/},f={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},p={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},m={className:"variable",variants:[{begin:t(/%/,s)},{begin:/%\d+/},{begin:/#\d+/}]},b={className:"title",variants:[{begin:t(/@/,s)},{begin:/@\d+/},{begin:t(/!/,s)},{begin:t(/!\d+/,s)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[o,a.COMMENT(/;\s*$/,null,{relevance:0}),a.COMMENT(/;/,/$/),a.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},b,h,u,m,p,f]}}return AJe=r,AJe}var kJe,wmn;function cni(){if(wmn)return kJe;wmn=1;function e(t){var r={className:"subst",begin:/\\[tn"\\]/},a={className:"string",begin:'"',end:'"',contains:[r]},s={className:"number",relevance:0,begin:t.C_NUMBER_RE},o={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},u={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},s,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},u,o,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return kJe=e,kJe}var RJe,Emn;function uni(){if(Emn)return RJe;Emn=1;function e(t){const r="\\[=*\\[",a="\\]=*\\]",s={begin:r,end:a,contains:["self"]},o=[t.COMMENT("--(?!"+r+")","$"),t.COMMENT("--"+r,a,{contains:[s],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:r,end:a,contains:[s],relevance:5}])}}return RJe=e,RJe}var IJe,xmn;function hni(){if(xmn)return IJe;xmn=1;function e(t){const r={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},u={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},h={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,r,a,s,o,u,h]}}return IJe=e,IJe}var NJe,Smn;function dni(){if(Smn)return NJe;Smn=1;const e=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function t(u){return u?typeof u=="string"?u:u.source:null}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>t(f)).join("")}function s(...u){return"("+u.map(f=>t(f)).join("|")+")"}function o(u){const h=/([2-9]|[1-2]\d|[3][0-5])\^\^/,f=/(\w*\.\w+|\w+\.\w*|\w+)/,p=/(\d*\.\d+|\d+\.\d*|\d+)/,m=s(a(h,f),p),w=s(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),S=/\*\^[+-]?\d+/,A={className:"number",relevance:0,begin:a(m,r(w),r(S))},k=/[a-zA-Z$][a-zA-Z0-9$]*/,I=new Set(e),N={variants:[{className:"builtin-symbol",begin:k,"on:begin":(G,B)=>{I.has(G[0])||B.ignoreMatch()}},{className:"symbol",relevance:0,begin:k}]},L={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},P={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},M={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},F={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},U={className:"brace",relevance:0,begin:/[[\](){}]/},$={className:"message-name",relevance:0,begin:a("::",k)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[u.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),M,F,$,N,L,u.QUOTE_STRING_MODE,A,P,U]}}return NJe=o,NJe}var OJe,Tmn;function fni(){if(Tmn)return OJe;Tmn=1;function e(t){var r="('|\\.')+",a={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE,{begin:'""'}],starts:a},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}return OJe=e,OJe}var LJe,Cmn;function pni(){if(Cmn)return LJe;Cmn=1;function e(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return LJe=e,LJe}var DJe,Amn;function gni(){if(Amn)return DJe;Amn=1;function e(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return DJe=e,DJe}var MJe,kmn;function mni(){if(kmn)return MJe;kmn=1;function e(t){const r={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},a=t.COMMENT("%","$"),s={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},o=t.inherit(t.APOS_STRING_MODE,{relevance:0}),u=t.inherit(t.QUOTE_STRING_MODE,{relevance:0}),h={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return u.contains=u.contains.slice(),u.contains.push(h),{name:"Mercury",aliases:["m","moo"],keywords:r,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,t.C_BLOCK_COMMENT_MODE,s,t.NUMBER_MODE,o,u,{begin:/:-/},{begin:/\.$/}]}}return MJe=e,MJe}var PJe,Rmn;function bni(){if(Rmn)return PJe;Rmn=1;function e(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return PJe=e,PJe}var BJe,Imn;function yni(){if(Imn)return BJe;Imn=1;function e(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}return BJe=e,BJe}var FJe,Nmn;function vni(){if(Nmn)return FJe;Nmn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,h={$pattern:/[\w.]+/,keyword:o.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:h},p={begin:/->\{/,end:/\}/},m={variants:[{begin:/\$\d/},{begin:t(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},b=[s.BACKSLASH_ESCAPE,f,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(A,k,I="\\1")=>{const N=I==="\\1"?I:t(I,k);return t(t("(?:",A,")"),k,/(?:\\.|[^\\\/])*?/,N,/(?:\\.|[^\\\/])*?/,I,u)},S=(A,k,I)=>t(t("(?:",A,")"),k,/(?:\\.|[^\\\/])*?/,I,u),C=[m,s.HASH_COMMENT_MODE,s.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),p,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[s.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+s.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[s.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:w("s|tr|y",r(..._))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",r(..._),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[s.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=C,p.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:h,contains:C}}return FJe=a,FJe}var $Je,Omn;function _ni(){if(Omn)return $Je;Omn=1;function e(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return $Je=e,$Je}var UJe,Lmn;function wni(){if(Lmn)return UJe;Lmn=1;function e(t){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,r]}}return UJe=e,UJe}var zJe,Dmn;function Eni(){if(Dmn)return zJe;Dmn=1;function e(t){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:r},o=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];s.contains=o;const u=t.inherit(t.TITLE_MODE,{begin:a}),h="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(o)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:o.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+h,end:"[-=]>",returnBegin:!0,contains:[u,f]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:h,end:"[-=]>",returnBegin:!0,contains:[f]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[u]},u]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return zJe=e,zJe}var GJe,Mmn;function xni(){if(Mmn)return GJe;Mmn=1;function e(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE],relevance:2},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}return GJe=e,GJe}var qJe,Pmn;function Sni(){if(Pmn)return qJe;Pmn=1;function e(t){const r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+t.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{begin:t.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:t.UNDERSCORE_IDENT_RE}],relevance:0},{begin:t.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}]"}}return qJe=e,qJe}var HJe,Bmn;function Tni(){if(Bmn)return HJe;Bmn=1;function e(t){return{name:"Nim",keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}return HJe=e,HJe}var VJe,Fmn;function Cni(){if(Fmn)return VJe;Fmn=1;function e(t){const r={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},a={className:"subst",begin:/\$\{/,end:/\}/,keywords:r},s={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},o={className:"string",contains:[a],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},u=[t.NUMBER_MODE,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o,s];return a.contains=u,{name:"Nix",aliases:["nixos"],keywords:r,contains:u}}return VJe=e,VJe}var YJe,$mn;function Ani(){if($mn)return YJe;$mn=1;function e(t){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return YJe=e,YJe}var jJe,Umn;function kni(){if(Umn)return jJe;Umn=1;function e(t){const r={className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},a={className:"variable",begin:/\$+\{[\w.:-]+\}/},s={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},o={className:"variable",begin:/\$+\([\w^.:-]+\)/},u={className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},h={className:"keyword",begin:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},f={className:"meta",begin:/\$(\\[nrt]|\$)/},p={className:"class",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,r,a,s,o]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},m,h,a,s,o,u,p,t.NUMBER_MODE]}}return jJe=e,jJe}var WJe,zmn;function Rni(){if(zmn)return WJe;zmn=1;function e(t){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,s={$pattern:a,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o={$pattern:a,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[r,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+o.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:o,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return WJe=e,WJe}var KJe,Gmn;function Ini(){if(Gmn)return KJe;Gmn=1;function e(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return KJe=e,KJe}var XJe,qmn;function Nni(){if(qmn)return XJe;qmn=1;function e(t){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),u={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},h={className:"params",begin:"\\(",end:"\\)",contains:["self",s,o,r,a]},f={begin:"[*!#%]",relevance:0},p={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[h,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,u,o,r,f,p]}}return XJe=e,XJe}var QJe,Hmn;function Oni(){if(Hmn)return QJe;Hmn=1;function e(t){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=t.COMMENT(/\{/,/\}/,{relevance:0}),s=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),o={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},u={className:"string",begin:"(#\\d+)+"},h={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[o,u]},a,s]};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[a,s,t.C_LINE_COMMENT_MODE,o,u,t.NUMBER_MODE,h,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:r,contains:[o,u,a,s,t.C_LINE_COMMENT_MODE,h]}]}}return QJe=e,QJe}var ZJe,Vmn;function Lni(){if(Vmn)return ZJe;Vmn=1;function e(t){const r=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}return ZJe=e,ZJe}var JJe,Ymn;function Dni(){if(Ymn)return JJe;Ymn=1;function e(t){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,r,a]}}return JJe=e,JJe}var eet,jmn;function Mni(){if(jmn)return eet;jmn=1;function e(t){const r=t.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",s="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",o="<<\\s*"+a+"\\s*>>",u="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",h="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",f="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",p="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",m=p.trim().split(" ").map(function(A){return A.split("|")[0]}).join("|"),b="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",_="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",w="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",C="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(A){return A.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:u+f+h,built_in:b+_+w},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+C+")\\s*\\("},{begin:"\\.("+m+")\\b"},{begin:"\\b("+m+")\\s+PATH\\b",keywords:{keyword:"PATH",type:p.replace("PATH ","")}},{className:"type",begin:"\\b("+m+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:s,end:s,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:o,relevance:10}]}}return eet=e,eet}var tet,Wmn;function Pni(){if(Wmn)return tet;Wmn=1;function e(t){const r={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},a={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},s={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},o=t.inherit(t.APOS_STRING_MODE,{illegal:null}),u=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),h=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),f={className:"string",contains:[t.BACKSLASH_ESCAPE,a],variants:[t.inherit(o,{begin:"b'",end:"'"}),t.inherit(u,{begin:'b"',end:'"'}),u,o,h]},p={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},m={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:m,contains:[t.HASH_COMMENT_MODE,t.COMMENT("//","$",{contains:[a]}),t.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),a,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",r,t.C_BLOCK_COMMENT_MODE,f,p]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[t.UNDERSCORE_TITLE_MODE]},f,p]}}return tet=e,tet}var net,Kmn;function Bni(){if(Kmn)return net;Kmn=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return net=e,net}var ret,Xmn;function Fni(){if(Xmn)return ret;Xmn=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ret=e,ret}var iet,Qmn;function $ni(){if(Qmn)return iet;Qmn=1;function e(t){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},a={className:"string",begin:'"""',end:'"""',relevance:10},s={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},o={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},u={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},h={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[u,a,s,o,h,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return iet=e,iet}var aet,Zmn;function Uni(){if(Zmn)return aet;Zmn=1;function e(t){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],a="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",s="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",o={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},u=/\w[\w\d]*((-)[\w\d]+)*/,h={begin:"`[\\s\\S]",relevance:0},f={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},p={className:"literal",begin:/\$(null|true|false)\b/},m={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[h,f,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},b={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},_={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},w=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[_]}),S={className:"built_in",variants:[{begin:"(".concat(a,")+(-)[\\w\\d]+")}]},C={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},A={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:u,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[f]}]},k={begin:/using\s/,end:/$/,returnBegin:!0,contains:[m,b,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},I={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},N={className:"selector-tag",begin:/@\B/,relevance:0},L={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(o.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},P=[L,w,h,t.NUMBER_MODE,m,b,S,f,p,N],M={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",P,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return L.contains.unshift(M),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:o,contains:P.concat(C,A,k,I,M)}}return aet=e,aet}var set,Jmn;function zni(){if(Jmn)return set;Jmn=1;function e(t){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return set=e,set}var oet,ebn;function Gni(){if(ebn)return oet;ebn=1;function e(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return oet=e,oet}var cet,tbn;function qni(){if(tbn)return cet;tbn=1;function e(t){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},a={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},s={begin:/\(/,end:/\)/,relevance:0},o={begin:/\[/,end:/\]/},u={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},h={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},f={className:"string",begin:/0'(\\'|.)/},p={className:"string",begin:/0'\\s/},b=[r,a,s,{begin:/:-/},o,u,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,h,f,p,t.C_NUMBER_MODE];return s.contains=b,o.contains=b,{name:"Prolog",contains:b.concat([{begin:/\.$/}])}}return cet=e,cet}var uet,nbn;function Hni(){if(nbn)return uet;nbn=1;function e(t){var r="[ \\t\\f]*",a="[ \\t\\f]+",s=r+"[:=]"+r,o=a,u="("+s+"|"+o+")",h="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",f="([^\\\\:= \\t\\f\\n]|\\\\.)+",p={end:u,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:h+s,relevance:1},{begin:h+o,relevance:0}],contains:[{className:"attr",begin:h,endsParent:!0,relevance:0}],starts:p},{begin:f+u,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:f,endsParent:!0,relevance:0}],starts:p},{className:"attr",relevance:0,begin:f+r+"$"}]}}return uet=e,uet}var het,rbn;function Vni(){if(rbn)return het;rbn=1;function e(t){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return het=e,het}var det,ibn;function Yni(){if(ibn)return det;ibn=1;function e(t){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},a=t.COMMENT("#","$"),s="([A-Za-z_]|::)(\\w|::)*",o=t.inherit(t.TITLE_MODE,{begin:s}),u={className:"variable",begin:"\\$"+s},h={className:"string",contains:[t.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[a,u,h,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[o,a]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[h,a,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},u]}],relevance:0}]}}return det=e,det}var fet,abn;function jni(){if(abn)return fet;abn=1;function e(t){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},a={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},r,a]}}return fet=e,fet}var pet,sbn;function Wni(){if(sbn)return pet;sbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const p={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:p,illegal:/#/},_={begin:/\{\{/,relevance:0},w={className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE,m,_,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,m,_,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[s.BACKSLASH_ESCAPE,_,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[s.BACKSLASH_ESCAPE,_,b]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},S="[0-9](_?[0-9])*",C=`(\\b(${S}))?\\.(${S})|\\b(${S})\\.`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${S})|(${C}))[eE][+-]?(${S})[jJ]?\\b`},{begin:`(${C})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${S})[jJ]\\b`}]},k={className:"comment",begin:t(/# type:/),end:/$/,keywords:p,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:["self",m,A,w,s.HASH_COMMENT_MODE]}]};return b.contains=[w,A,m],{name:"Python",aliases:["py","gyp","ipython"],keywords:p,illegal:/(<\/|->|\?)|=>/,contains:[m,A,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},w,k,s.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[s.UNDERSCORE_TITLE_MODE,I,{begin:/->/,endsWithParent:!0,keywords:p}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,I,w]}]}}return pet=a,pet}var get,obn;function Kni(){if(obn)return get;obn=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return get=e,get}var met,lbn;function Xni(){if(lbn)return met;lbn=1;function e(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return met=e,met}var bet,cbn;function Qni(){if(cbn)return bet;cbn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},o="[a-zA-Z_][a-zA-Z0-9\\._]*",u={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},h={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},f={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:o,returnEnd:!1}},p={begin:o+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:o,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},m={begin:t(o,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[a.inherit(a.TITLE_MODE,{begin:o})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:s,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:a.C_NUMBER_RE}],relevance:0},{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},h,u,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+a.IDENT_RE,relevance:0},f,p,m],illegal:/#/}}return bet=r,bet}var yet,ubn;function Zni(){if(ubn)return yet;ubn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=/[a-zA-Z][a-zA-Z_0-9]*/;return{name:"R",illegal:/->/,keywords:{$pattern:o,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[(h,f)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const p=Object.assign({},h);Object.keys(h).forEach(m=>{delete h[m]}),h.begin=r(p.beforeMatch,t(p.begin)),h.starts={relevance:0,contains:[Object.assign(p,{endsParent:!0})]},h.relevance=0,delete p.beforeMatch}],contains:[s.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:o},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),s.HASH_COMMENT_MODE,{className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:r(u,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return yet=a,yet}var vet,hbn;function Jni(){if(hbn)return vet;hbn=1;function e(t){function r(M){return M.map(function(F){return F.split("").map(function(U){return"\\"+U}).join("")}).join("|")}const a="~?[a-z$_][0-9a-zA-Z$_]*",s="`?[A-Z$_][0-9a-zA-Z$_]*",o="'?[a-z$_][0-9a-z$_]*",u="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+o+"\\s*(,"+o+"\\s*)*)?\\))?",h=a+"("+u+"){0,2}",f="("+r(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",p="\\s+"+f+"\\s+",m={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},b="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",_={className:"number",relevance:0,variants:[{begin:b},{begin:"\\(-"+b+"\\)"}]},w={className:"operator",relevance:0,begin:f},S=[{className:"identifier",relevance:0,begin:a},w,_],C=[t.QUOTE_STRING_MODE,w,{className:"module",begin:"\\b"+s,returnBegin:!0,end:".",contains:[{className:"identifier",begin:s,relevance:0}]}],A=[{className:"module",begin:"\\b"+s,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:s,relevance:0}]}],k={begin:a,end:"(,|\\n|\\))",relevance:0,contains:[w,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:A}]},I={className:"function",relevance:0,keywords:m,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+a+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:a},{begin:h},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[k]}]},{begin:"\\(\\.\\s"+a+"\\)\\s*=>"}]};C.push(I);const N={className:"constructor",begin:s+"\\(",end:"\\)",illegal:"\\n",keywords:m,contains:[t.QUOTE_STRING_MODE,w,{className:"params",begin:"\\b"+a}]},L={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:m,end:"=>",relevance:0,contains:[N,w,{relevance:0,className:"constructor",begin:s}]},P={className:"module-access",keywords:m,returnBegin:!0,variants:[{begin:"\\b("+s+"\\.)+"+a},{begin:"\\b("+s+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[I,{begin:"\\(",end:"\\)",skip:!0}].concat(C)},{begin:"\\b("+s+"\\.)+\\{",end:/\}/}],contains:C};return A.push(P),{name:"ReasonML",aliases:["re"],keywords:m,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[t.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},t.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:S},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:S},N,{className:"operator",begin:p,illegal:"-->",relevance:0},_,t.C_LINE_COMMENT_MODE,L,I,{className:"module-def",begin:"\\bmodule\\s+"+a+"\\s+"+s+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:m,relevance:0,contains:[{className:"module",relevance:0,begin:s},{begin:/\{/,end:/\}/,skip:!0}].concat(C)},P]}}return vet=e,vet}var _et,dbn;function eri(){if(dbn)return _et;dbn=1;function e(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[t.HASH_COMMENT_MODE,t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}}return _et=e,_et}var wet,fbn;function tri(){if(fbn)return wet;fbn=1;function e(t){const r="[a-zA-Z-_][^\\n{]+\\{",a={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+r,end:/\}/,keywords:"facet",contains:[a,t.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+r,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",a,t.HASH_COMMENT_MODE]},{begin:"^"+r,end:/\}/,contains:[a,t.HASH_COMMENT_MODE]},t.HASH_COMMENT_MODE]}}return wet=e,wet}var Eet,pbn;function nri(){if(pbn)return Eet;pbn=1;function e(t){const r="foreach do while for if from to step else on-error and or not in",a="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",s="add remove enable disable set get print export edit find run debug error info warning",o="true false yes no nothing nil null",u="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",h={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},f={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,h,{className:"variable",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]}]},p={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:o,keyword:r+" :"+r.split(" ").join(" :")+" :"+a.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},t.COMMENT("^#","$"),f,p,h,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[f,p,h,{className:"literal",begin:"\\b("+o.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+s.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+u.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return Eet=e,Eet}var xet,gbn;function rri(){if(gbn)return xet;gbn=1;function e(t){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return xet=e,xet}var Tet,mbn;function iri(){if(mbn)return Tet;mbn=1;function e(t){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return Tet=e,Tet}var Cet,bbn;function ari(){if(bbn)return Cet;bbn=1;function e(t){const r="([ui](8|16|32|64|128|size)|f(32|64))?",a="abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",s="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",keyword:a,literal:"true false Some None Ok Err",built_in:s},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:t.IDENT_RE+"::",keywords:{built_in:s}},{begin:"->"}]}}return Cet=e,Cet}var Aet,ybn;function sri(){if(ybn)return Aet;ybn=1;function e(t){return{name:"SAS",case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+"bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window"+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+"abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate"+")[(]"},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},t.COMMENT("\\*",";"),t.C_BLOCK_COMMENT_MODE]}}return Aet=e,Aet}var ket,vbn;function ori(){if(vbn)return ket;vbn=1;function e(t){const r={className:"meta",begin:"@[A-Za-z]+"},a={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},s={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,a]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[a],relevance:10}]},o={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},u={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},h={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},f={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[u]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[u]},h]},p={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[h]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,u,p,f,t.C_NUMBER_MODE,r]}}return ket=e,ket}var Ret,_bn;function lri(){if(_bn)return Ret;_bn=1;function e(t){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",a="(-|\\+)?\\d+([./]\\d+)?",s=a+"[+\\-]"+a+"i",o={$pattern:r,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},u={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},h={className:"number",variants:[{begin:a,relevance:0},{begin:s,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},f=t.QUOTE_STRING_MODE,p=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],m={begin:r,relevance:0},b={className:"symbol",begin:"'"+r},_={endsWithParent:!0,relevance:0},w={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",u,f,h,m,b]}]},S={className:"name",relevance:0,begin:r,keywords:o},A={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[S,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[m]}]},S,_]};return _.contains=[u,h,f,m,b,w,A].concat(p),{name:"Scheme",illegal:/\S/,contains:[t.SHEBANG(),h,f,b,w,A].concat(p)}}return Ret=e,Ret}var Iet,wbn;function cri(){if(wbn)return Iet;wbn=1;function e(t){const r=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},t.COMMENT("//","$")].concat(r)}}return Iet=e,Iet}var Net,Ebn;function uri(){if(Ebn)return Net;Ebn=1;const e=h=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(h){const f=e(h),p=s,m=a,b="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:"::("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[h.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[S,f.HEXCOLOR,h.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,f.IMPORTANT]},{begin:"@(page|font-face)",lexemes:b,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:r.join(" ")},contains:[{begin:b,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,f.HEXCOLOR,h.CSS_NUMBER_MODE]}]}}return Net=u,Net}var Oet,xbn;function hri(){if(xbn)return Oet;xbn=1;function e(t){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Oet=e,Oet}var Let,Sbn;function dri(){if(Sbn)return Let;Sbn=1;function e(t){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],a=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+s.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+a.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Let=e,Let}var Det,Tbn;function fri(){if(Tbn)return Det;Tbn=1;function e(t){const r="[a-z][a-zA-Z0-9_]*",a={className:"string",begin:"\\$.{1}"},s={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},t.C_NUMBER_MODE,s,a,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,a,t.C_NUMBER_MODE,s]}]}}return Det=e,Det}var Met,Cbn;function pri(){if(Cbn)return Met;Cbn=1;function e(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Met=e,Met}var Pet,Abn;function gri(){if(Abn)return Pet;Abn=1;function e(t){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},a={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},s={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,r,a,s,o],illegal:/#|^\$ /}}return Pet=e,Pet}var Bet,kbn;function mri(){if(kbn)return Bet;kbn=1;function e(t){var r=t.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,t.HASH_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE,r,t.HASH_COMMENT_MODE]}}return Bet=e,Bet}var Fet,Rbn;function bri(){if(Rbn)return Fet;Rbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=s.COMMENT("--","$"),u={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},h={begin:/"/,end:/"/,contains:[{begin:/""/}]},f=["true","false","unknown"],p=["double precision","large object","with timezone","without timezone"],m=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],b=["add","asc","collation","desc","final","first","last","view"],_=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update   ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],w=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],C=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],A=w,k=[..._,...b].filter(M=>!w.includes(M)),I={className:"variable",begin:/@[a-z0-9]+/},N={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},L={begin:t(/\b/,r(...A),/\s*\(/),keywords:{built_in:A}};function P(M,{exceptions:F,when:U}={}){const $=U;return F=F||[],M.map(G=>G.match(/\|\d+$/)||F.includes(G)?G:$(G)?`${G}|0`:G)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:P(k,{when:M=>M.length<3}),literal:f,type:m,built_in:S},contains:[{begin:r(...C),keywords:{$pattern:/[\w\.]+/,keyword:k.concat(C),literal:f,type:m}},{className:"type",begin:r(...p)},L,I,u,h,s.C_NUMBER_MODE,s.C_BLOCK_COMMENT_MODE,o,N]}}return Fet=a,Fet}var $et,Ibn;function yri(){if(Ibn)return $et;Ibn=1;function e(t){const r=["functions","model","data","parameters","quantities","transformed","generated"],a=["for","in","if","else","while","break","continue","return"],s=["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"],o=["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],u=["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"],h=["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:r,keyword:a.concat(o).concat(s),built_in:u},contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+t.IDENT_RE+")\\s*\\(",keywords:h},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}return $et=e,$et}var Uet,Nbn;function vri(){if(Nbn)return Uet;Nbn=1;function e(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ 	]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return Uet=e,Uet}var zet,Obn;function _ri(){if(Obn)return zet;Obn=1;function e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return zet=e,zet}var Get,Lbn;function wri(){if(Lbn)return Get;Lbn=1;const e=h=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(h){const f=e(h),p="and or not only",m={className:"variable",begin:"\\$"+h.IDENT_RE},b=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],_="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,f.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+_,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+_,className:"selector-id"},{begin:"\\b("+t.join("|")+")"+_,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+_},{className:"selector-pseudo",begin:"&?::("+s.join("|")+")"+_},f.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:r.join(" ")},contains:[h.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+b.join("|")+"))\\b"},m,h.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[f.HEXCOLOR,m,h.APOS_STRING_MODE,h.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[f.HEXCOLOR,m,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,h.CSS_NUMBER_MODE,h.C_BLOCK_COMMENT_MODE,f.IMPORTANT],illegal:/\./,relevance:0}}]}}return Get=u,Get}var qet,Dbn;function Eri(){if(Dbn)return qet;Dbn=1;function e(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return qet=e,qet}var Het,Mbn;function xri(){if(Mbn)return Het;Mbn=1;function e(F){return F?typeof F=="string"?F:F.source:null}function t(F){return r("(?=",F,")")}function r(...F){return F.map($=>e($)).join("")}function a(...F){return"("+F.map($=>e($)).join("|")+")"}const s=F=>r(/\b/,F,/\w$/.test(F)?/\b/:/\B/),o=["Protocol","Type"].map(s),u=["init","self"].map(s),h=["Any","Self"],f=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],b=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],_=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],w=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),S=a(w,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),C=r(w,S,"*"),A=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=a(A,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),I=r(A,k,"*"),N=r(/[A-Z]/,k,"*"),L=["autoclosure",r(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,I,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],P=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function M(F){const U={match:/\s+/,relevance:0},$=F.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[F.C_LINE_COMMENT_MODE,$],B={className:"keyword",begin:r(/\./,t(a(...o,...u))),end:a(...o,...u),excludeBegin:!0},Z={match:r(/\./,a(...f)),relevance:0},z=f.filter(fe=>typeof fe=="string").concat(["_|0"]),Y=f.filter(fe=>typeof fe!="string").concat(h).map(s),W={variants:[{className:"keyword",match:a(...Y,...u)}]},Q={$pattern:a(/\b\w+/,/#\w+/),keyword:z.concat(b),literal:p},V=[B,Z,W],j={match:r(/\./,a(..._)),relevance:0},ee={className:"built_in",match:r(/\b/,a(..._),/(?=\()/)},te=[j,ee],ne={match:/->/,relevance:0},se={className:"operator",relevance:0,variants:[{match:C},{match:`\\.(\\.|${S})+`}]},ie=[ne,se],ge="([0-9]_*)+",ce="([0-9a-fA-F]_*)+",be={className:"number",relevance:0,variants:[{match:`\\b(${ge})(\\.(${ge}))?([eE][+-]?(${ge}))?\\b`},{match:`\\b0x(${ce})(\\.(${ce}))?([pP][+-]?(${ge}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ve=(fe="")=>({className:"subst",variants:[{match:r(/\\/,fe,/[0\\tnr"']/)},{match:r(/\\/,fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),De=(fe="")=>({className:"subst",match:r(/\\/,fe,/[\t ]*(?:[\r\n]|\r\n)/)}),ye=(fe="")=>({className:"subst",label:"interpol",begin:r(/\\/,fe,/\(/),end:/\)/}),Ee=(fe="")=>({begin:r(fe,/"""/),end:r(/"""/,fe),contains:[ve(fe),De(fe),ye(fe)]}),he=(fe="")=>({begin:r(fe,/"/),end:r(/"/,fe),contains:[ve(fe),ye(fe)]}),we={className:"string",variants:[Ee(),Ee("#"),Ee("##"),Ee("###"),he(),he("#"),he("##"),he("###")]},Ce={match:r(/`/,I,/`/)},Ie={className:"variable",match:/\$\d+/},Le={className:"variable",match:`\\$${k}+`},Fe=[Ce,Ie,Le],Ve={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ie,be,we]}]}},Oe={className:"keyword",match:r(/@/,a(...L))},Dt={className:"meta",match:r(/@/,I)},ot=[Ve,Oe,Dt],sn={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:N,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,t(N)),relevance:0}]},Kt={begin:/</,end:/>/,keywords:Q,contains:[...G,...V,...ot,ne,sn]};sn.contains.push(Kt);const Ft={match:r(I,/\s*:/),keywords:"_|0",relevance:0},Je={begin:/\(/,end:/\)/,relevance:0,keywords:Q,contains:["self",Ft,...G,...V,...te,...ie,be,we,...Fe,...ot,sn]},ht={beginKeywords:"func",contains:[{className:"title",match:a(Ce.match,I,C),endsParent:!0,relevance:0},U]},et={begin:/</,end:/>/,contains:[...G,sn]},qe={begin:a(t(r(I,/\s*:/)),t(r(I,/\s+/,I,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:I}]},He={begin:/\(/,end:/\)/,keywords:Q,contains:[qe,...G,...V,...ie,be,we,...ot,sn,Je],endsParent:!0,illegal:/["']/},Ge={className:"function",match:t(/\bfunc\b/),contains:[ht,et,He,U],illegal:[/\[/,/%/]},Ye={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[et,He,U],illegal:/\[|%/},Ae={beginKeywords:"operator",end:F.MATCH_NOTHING_RE,contains:[{className:"title",match:C,endsParent:!0,relevance:0}]},Xe={beginKeywords:"precedencegroup",end:F.MATCH_NOTHING_RE,contains:[{className:"title",match:N,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...m,...p],contains:[sn]}]};for(const fe of we.variants){const Qe=fe.contains.find(mt=>mt.label==="interpol");Qe.keywords=Q;const Ke=[...V,...te,...ie,be,we,...Fe];Qe.contains=[...Ke,{begin:/\(/,end:/\)/,contains:["self",...Ke]}]}return{name:"Swift",keywords:Q,contains:[...G,Ge,Ye,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:Q,contains:[F.inherit(F.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...V]},Ae,Xe,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},...V,...te,...ie,be,we,...Fe,...ot,sn,Je]}}return Het=M,Het}var Vet,Pbn;function Sri(){if(Pbn)return Vet;Pbn=1;function e(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}return Vet=e,Vet}var Yet,Bbn;function Tri(){if(Bbn)return Yet;Bbn=1;function e(t){var r="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ 	]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ 	]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ 	]|$)"}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},u={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},h=t.inherit(u,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f="[0-9]{4}(-[0-9][0-9]){0,2}",p="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",m="(\\.[0-9]*)?",b="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",_={className:"number",begin:"\\b"+f+p+m+b+"\\b"},w={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},S={begin:/\{/,end:/\}/,contains:[w],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[w],illegal:"\\n",relevance:0},A=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},_,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},S,C,u],k=[...A];return k.pop(),k.push(h),w.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}return Yet=e,Yet}var jet,Fbn;function Cri(){if(Fbn)return jet;Fbn=1;function e(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return jet=e,jet}var Wet,$bn;function Ari(){if($bn)return Wet;$bn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")?")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=/[a-zA-Z_][a-zA-Z0-9_]*/,u={className:"number",variants:[s.BINARY_NUMBER_MODE,s.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[s.COMMENT(";[ \\t]*#","$"),s.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r(/\$/,t(/::/),o,"(::",o,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[u]}]},{className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[s.inherit(s.QUOTE_STRING_MODE,{illegal:null})]},u]}}return Wet=a,Wet}var Ket,Ubn;function kri(){if(Ubn)return Ket;Ubn=1;function e(t){const r="bool byte i16 i32 i64 double string binary";return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:r,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:r,contains:["self"]}]}}return Ket=e,Ket}var Xet,zbn;function Rri(){if(zbn)return Xet;zbn=1;function e(t){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},a={className:"symbol",begin:":[^\\]]+"},s={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,a]},o={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,t.QUOTE_STRING_MODE,a]};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[s,o,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.COMMENT("//","[;$]"),t.COMMENT("!","[;$]"),t.COMMENT("--eg:","$"),t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},t.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return Xet=e,Xet}var Qet,Gbn;function Iri(){if(Gbn)return Qet;Gbn=1;function e(t){var r={className:"params",begin:"\\(",end:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",s={beginKeywords:a,keywords:{name:a},relevance:0,contains:[r]},o={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[s]},u="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return u=u+" "+u.split(" ").map(function(h){return"end"+h}).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:u,starts:{endsWithParent:!0,contains:[o,s],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",o,s]}]}}return Qet=e,Qet}var Zet,qbn;function Nri(){if(qbn)return Zet;qbn=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],s=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],u=["arguments","this","super","console","window","document","localStorage","module","global"],h=[].concat(o,u,a,s);function f(w){return w?typeof w=="string"?w:w.source:null}function p(w){return m("(?=",w,")")}function m(...w){return w.map(C=>f(C)).join("")}function b(w){const S=(V,{after:j})=>{const ee="</"+V[0].slice(1);return V.input.indexOf(ee,j)!==-1},C=e,A={begin:"<>",end:"</>"},k={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,j)=>{const ee=V[0].length+V.index,te=V.input[ee];if(te==="<"){j.ignoreMatch();return}te===">"&&(S(V,{after:ee})||j.ignoreMatch())}},I={$pattern:e,keyword:t,literal:r,built_in:h},N="[0-9](_?[0-9])*",L=`\\.(${N})`,P="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",M={className:"number",variants:[{begin:`(\\b(${P})((${L})|\\.)?|(${L}))[eE][+-]?(${N})\\b`},{begin:`\\b(${P})\\b((${L})\\b|\\.)?|(${L})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},F={className:"subst",begin:"\\$\\{",end:"\\}",keywords:I,contains:[]},U={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[w.BACKSLASH_ESCAPE,F],subLanguage:"xml"}},$={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[w.BACKSLASH_ESCAPE,F],subLanguage:"css"}},G={className:"string",begin:"`",end:"`",contains:[w.BACKSLASH_ESCAPE,F]},Z={className:"comment",variants:[w.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:C+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),w.C_BLOCK_COMMENT_MODE,w.C_LINE_COMMENT_MODE]},z=[w.APOS_STRING_MODE,w.QUOTE_STRING_MODE,U,$,G,M,w.REGEXP_MODE];F.contains=z.concat({begin:/\{/,end:/\}/,keywords:I,contains:["self"].concat(z)});const Y=[].concat(Z,F.contains),W=Y.concat([{begin:/\(/,end:/\)/,keywords:I,contains:["self"].concat(Y)}]),Q={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:I,contains:W};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:I,exports:{PARAMS_CONTAINS:W},illegal:/#(?![$_A-z])/,contains:[w.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w.APOS_STRING_MODE,w.QUOTE_STRING_MODE,U,$,G,Z,M,{begin:m(/[{,\n]\s*/,p(m(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,C+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:C+p("\\s*:"),relevance:0}]},{begin:"("+w.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[Z,w.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+w.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:w.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:I,contains:W}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:A.begin,end:A.end},{begin:k.begin,"on:begin":k.isTrulyOpeningTag,end:k.end}],subLanguage:"xml",contains:[{begin:k.begin,end:k.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:I,contains:["self",w.inherit(w.TITLE_MODE,{begin:C}),Q],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:w.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[Q,w.inherit(w.TITLE_MODE,{begin:C})]},{variants:[{begin:"\\."+C},{begin:"\\$"+C}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},w.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[w.inherit(w.TITLE_MODE,{begin:C}),"self",Q]},{begin:"(get|set)\\s+(?="+C+"\\()",end:/\{/,keywords:"get set",contains:[w.inherit(w.TITLE_MODE,{begin:C}),{begin:/\(\)/},Q]},{begin:/\$[(.]/}]}}function _(w){const S=e,C={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},k={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["any","void","number","boolean","string","object","never","enum"],N=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],L={$pattern:e,keyword:t.concat(N),literal:r,built_in:h.concat(I)},P={className:"meta",begin:"@"+S},M=($,G,B)=>{const Z=$.contains.findIndex(z=>z.label===G);if(Z===-1)throw new Error("can not find mode to replace");$.contains.splice(Z,1,B)},F=b(w);Object.assign(F.keywords,L),F.exports.PARAMS_CONTAINS.push(P),F.contains=F.contains.concat([P,C,A]),M(F,"shebang",w.SHEBANG()),M(F,"use_strict",k);const U=F.contains.find($=>$.className==="function");return U.relevance=0,Object.assign(F,{name:"TypeScript",aliases:["ts","tsx"]}),F}return Zet=_,Zet}var Jet,Hbn;function Ori(){if(Hbn)return Jet;Hbn=1;function e(t){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[t.UNDERSCORE_TITLE_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}return Jet=e,Jet}var ett,Vbn;function Lri(){if(Vbn)return ett;Vbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},h=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,p=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,m=/\d{1,2}(:\d{1,2}){1,2}/,b={className:"literal",variants:[{begin:t(/# */,r(f,h),/ *#/)},{begin:t(/# */,m,/ *#/)},{begin:t(/# */,p,/ *#/)},{begin:t(/# */,r(f,h),/ +/,r(p,m),/ *#/)}]},_={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},w={className:"label",begin:/^\w+:/},S=s.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),C=s.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[o,u,b,_,w,S,C,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[C]}]}}return ett=a,ett}var ttt,Ybn;function Dri(){if(Ybn)return ttt;Ybn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split  cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),u=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],h={begin:t(r(...o),"\\s*\\("),relevance:0,keywords:{built_in:o}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:u,literal:"true false null nothing empty"},illegal:"//",contains:[h,s.inherit(s.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),s.COMMENT(/'/,/$/,{relevance:0}),s.C_NUMBER_MODE]}}return ttt=a,ttt}var ntt,jbn;function Mri(){if(jbn)return ntt;jbn=1;function e(t){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return ntt=e,ntt}var rtt,Wbn;function Pri(){if(Wbn)return rtt;Wbn=1;function e(t){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"number",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}return rtt=e,rtt}var itt,Kbn;function Bri(){if(Kbn)return itt;Kbn=1;function e(t){const r="\\d(_|\\d)*",a="[eE][-+]?"+r,s=r+"(\\."+r+")?("+a+")?",o="\\w+",h="\\b("+(r+"#"+o+"(\\."+o+")?#("+a+")?")+"|"+s+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT("--","$"),t.QUOTE_STRING_MODE,{className:"number",begin:h,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[t.BACKSLASH_ESCAPE]}]}}return itt=e,itt}var att,Xbn;function Fri(){if(Xbn)return att;Xbn=1;function e(t){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[t.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},t.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return att=e,att}var stt,Qbn;function $ri(){if(Qbn)return stt;Qbn=1;function e(t){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+t.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},t.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return stt=e,stt}var ott,Zbn;function Uri(){if(Zbn)return ott;Zbn=1;function e(t){const a={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+"ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},s={className:"string",begin:'"',end:'"',illegal:"\\n"},o={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},h={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},f={beginKeywords:"import",end:"$",keywords:a,contains:[s]},p={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,keywords:a}})]};return{name:"XL",aliases:["tao"],keywords:a,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,u,p,f,h,t.NUMBER_MODE]}}return ott=e,ott}var ltt,Jbn;function zri(){if(Jbn)return ltt;Jbn=1;function e(t){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return ltt=e,ltt}var ctt,eyn;function Gri(){if(eyn)return ctt;eyn=1;function e(t){const r={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},a=t.UNDERSCORE_TITLE_MODE,s={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},o="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[t.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[a,{className:"params",begin:/\(/,end:/\)/,keywords:o,contains:["self",t.C_BLOCK_COMMENT_MODE,r,s]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},a]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[a]},{beginKeywords:"use",end:/;/,contains:[a]},{begin:/=>/},r,s]}}return ctt=e,ctt}var In=LW,qri=In;In.registerLanguage("1c",pei());In.registerLanguage("abnf",gei());In.registerLanguage("accesslog",mei());In.registerLanguage("actionscript",bei());In.registerLanguage("ada",yei());In.registerLanguage("angelscript",vei());In.registerLanguage("apache",_ei());In.registerLanguage("applescript",wei());In.registerLanguage("arcade",Eei());In.registerLanguage("arduino",xei());In.registerLanguage("armasm",Sei());In.registerLanguage("xml",Tei());In.registerLanguage("asciidoc",Cei());In.registerLanguage("aspectj",Aei());In.registerLanguage("autohotkey",kei());In.registerLanguage("autoit",Rei());In.registerLanguage("avrasm",Iei());In.registerLanguage("awk",Nei());In.registerLanguage("axapta",Oei());In.registerLanguage("bash",Lei());In.registerLanguage("basic",Dei());In.registerLanguage("bnf",Mei());In.registerLanguage("brainfuck",Pei());In.registerLanguage("c-like",Bei());In.registerLanguage("c",Fei());In.registerLanguage("cal",$ei());In.registerLanguage("capnproto",Uei());In.registerLanguage("ceylon",zei());In.registerLanguage("clean",Gei());In.registerLanguage("clojure",qei());In.registerLanguage("clojure-repl",Hei());In.registerLanguage("cmake",Vei());In.registerLanguage("coffeescript",Yei());In.registerLanguage("coq",jei());In.registerLanguage("cos",Wei());In.registerLanguage("cpp",Kei());In.registerLanguage("crmsh",Xei());In.registerLanguage("crystal",Qei());In.registerLanguage("csharp",Zei());In.registerLanguage("csp",Jei());In.registerLanguage("css",eti());In.registerLanguage("d",tti());In.registerLanguage("markdown",nti());In.registerLanguage("dart",rti());In.registerLanguage("delphi",iti());In.registerLanguage("diff",ati());In.registerLanguage("django",sti());In.registerLanguage("dns",oti());In.registerLanguage("dockerfile",lti());In.registerLanguage("dos",cti());In.registerLanguage("dsconfig",uti());In.registerLanguage("dts",hti());In.registerLanguage("dust",dti());In.registerLanguage("ebnf",fti());In.registerLanguage("elixir",pti());In.registerLanguage("elm",gti());In.registerLanguage("ruby",mti());In.registerLanguage("erb",bti());In.registerLanguage("erlang-repl",yti());In.registerLanguage("erlang",vti());In.registerLanguage("excel",_ti());In.registerLanguage("fix",wti());In.registerLanguage("flix",Eti());In.registerLanguage("fortran",xti());In.registerLanguage("fsharp",Sti());In.registerLanguage("gams",Tti());In.registerLanguage("gauss",Cti());In.registerLanguage("gcode",Ati());In.registerLanguage("gherkin",kti());In.registerLanguage("glsl",Rti());In.registerLanguage("gml",Iti());In.registerLanguage("go",Nti());In.registerLanguage("golo",Oti());In.registerLanguage("gradle",Lti());In.registerLanguage("groovy",Dti());In.registerLanguage("haml",Mti());In.registerLanguage("handlebars",Pti());In.registerLanguage("haskell",Bti());In.registerLanguage("haxe",Fti());In.registerLanguage("hsp",$ti());In.registerLanguage("htmlbars",Uti());In.registerLanguage("http",zti());In.registerLanguage("hy",Gti());In.registerLanguage("inform7",qti());In.registerLanguage("ini",Hti());In.registerLanguage("irpf90",Vti());In.registerLanguage("isbl",Yti());In.registerLanguage("java",jti());In.registerLanguage("javascript",Wti());In.registerLanguage("jboss-cli",Kti());In.registerLanguage("json",Xti());In.registerLanguage("julia",Qti());In.registerLanguage("julia-repl",Zti());In.registerLanguage("kotlin",Jti());In.registerLanguage("lasso",eni());In.registerLanguage("latex",tni());In.registerLanguage("ldif",nni());In.registerLanguage("leaf",rni());In.registerLanguage("less",ini());In.registerLanguage("lisp",ani());In.registerLanguage("livecodeserver",sni());In.registerLanguage("livescript",oni());In.registerLanguage("llvm",lni());In.registerLanguage("lsl",cni());In.registerLanguage("lua",uni());In.registerLanguage("makefile",hni());In.registerLanguage("mathematica",dni());In.registerLanguage("matlab",fni());In.registerLanguage("maxima",pni());In.registerLanguage("mel",gni());In.registerLanguage("mercury",mni());In.registerLanguage("mipsasm",bni());In.registerLanguage("mizar",yni());In.registerLanguage("perl",vni());In.registerLanguage("mojolicious",_ni());In.registerLanguage("monkey",wni());In.registerLanguage("moonscript",Eni());In.registerLanguage("n1ql",xni());In.registerLanguage("nginx",Sni());In.registerLanguage("nim",Tni());In.registerLanguage("nix",Cni());In.registerLanguage("node-repl",Ani());In.registerLanguage("nsis",kni());In.registerLanguage("objectivec",Rni());In.registerLanguage("ocaml",Ini());In.registerLanguage("openscad",Nni());In.registerLanguage("oxygene",Oni());In.registerLanguage("parser3",Lni());In.registerLanguage("pf",Dni());In.registerLanguage("pgsql",Mni());In.registerLanguage("php",Pni());In.registerLanguage("php-template",Bni());In.registerLanguage("plaintext",Fni());In.registerLanguage("pony",$ni());In.registerLanguage("powershell",Uni());In.registerLanguage("processing",zni());In.registerLanguage("profile",Gni());In.registerLanguage("prolog",qni());In.registerLanguage("properties",Hni());In.registerLanguage("protobuf",Vni());In.registerLanguage("puppet",Yni());In.registerLanguage("purebasic",jni());In.registerLanguage("python",Wni());In.registerLanguage("python-repl",Kni());In.registerLanguage("q",Xni());In.registerLanguage("qml",Qni());In.registerLanguage("r",Zni());In.registerLanguage("reasonml",Jni());In.registerLanguage("rib",eri());In.registerLanguage("roboconf",tri());In.registerLanguage("routeros",nri());In.registerLanguage("rsl",rri());In.registerLanguage("ruleslanguage",iri());In.registerLanguage("rust",ari());In.registerLanguage("sas",sri());In.registerLanguage("scala",ori());In.registerLanguage("scheme",lri());In.registerLanguage("scilab",cri());In.registerLanguage("scss",uri());In.registerLanguage("shell",hri());In.registerLanguage("smali",dri());In.registerLanguage("smalltalk",fri());In.registerLanguage("sml",pri());In.registerLanguage("sqf",gri());In.registerLanguage("sql_more",mri());In.registerLanguage("sql",bri());In.registerLanguage("stan",yri());In.registerLanguage("stata",vri());In.registerLanguage("step21",_ri());In.registerLanguage("stylus",wri());In.registerLanguage("subunit",Eri());In.registerLanguage("swift",xri());In.registerLanguage("taggerscript",Sri());In.registerLanguage("yaml",Tri());In.registerLanguage("tap",Cri());In.registerLanguage("tcl",Ari());In.registerLanguage("thrift",kri());In.registerLanguage("tp",Rri());In.registerLanguage("twig",Iri());In.registerLanguage("typescript",Nri());In.registerLanguage("vala",Ori());In.registerLanguage("vbnet",Lri());In.registerLanguage("vbscript",Dri());In.registerLanguage("vbscript-html",Mri());In.registerLanguage("verilog",Pri());In.registerLanguage("vhdl",Bri());In.registerLanguage("vim",Fri());In.registerLanguage("x86asm",$ri());In.registerLanguage("xl",Uri());In.registerLanguage("xquery",zri());In.registerLanguage("zephir",Gri());const Hri=O1(qri),Vri=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure-repl","clojure","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia-repl","julia","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php-template","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python-repl","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","sql_more","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript-html","vbscript","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"];var Yri=aJr(Hri,sJr);Yri.supportedLanguages=Vri;var lLn="Expected a function",tyn=NaN,jri="[object Symbol]",Wri=/^\s+|\s+$/g,Kri=/^[-+]0x[0-9a-f]+$/i,Xri=/^0b[01]+$/i,Qri=/^0o[0-7]+$/i,Zri=parseInt,Jri=typeof ml=="object"&&ml&&ml.Object===Object&&ml,eii=typeof self=="object"&&self&&self.Object===Object&&self,tii=Jri||eii||Function("return this")(),nii=Object.prototype,rii=nii.toString,iii=Math.max,aii=Math.min,utt=function(){return tii.Date.now()};function sii(e,t,r){var a,s,o,u,h,f,p=0,m=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(lLn);t=nyn(t)||0,r4e(r)&&(m=!!r.leading,b="maxWait"in r,o=b?iii(nyn(r.maxWait)||0,t):o,_="trailing"in r?!!r.trailing:_);function w(M){var F=a,U=s;return a=s=void 0,p=M,u=e.apply(U,F),u}function S(M){return p=M,h=setTimeout(k,t),m?w(M):u}function C(M){var F=M-f,U=M-p,$=t-F;return b?aii($,o-U):$}function A(M){var F=M-f,U=M-p;return f===void 0||F>=t||F<0||b&&U>=o}function k(){var M=utt();if(A(M))return I(M);h=setTimeout(k,C(M))}function I(M){return h=void 0,_&&a?w(M):(a=s=void 0,u)}function N(){h!==void 0&&clearTimeout(h),p=0,a=f=s=h=void 0}function L(){return h===void 0?u:I(utt())}function P(){var M=utt(),F=A(M);if(a=arguments,s=this,f=M,F){if(h===void 0)return S(f);if(b)return h=setTimeout(k,t),w(f)}return h===void 0&&(h=setTimeout(k,t)),u}return P.cancel=N,P.flush=L,P}function oii(e,t,r){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(lLn);return r4e(r)&&(a="leading"in r?!!r.leading:a,s="trailing"in r?!!r.trailing:s),sii(e,t,{leading:a,maxWait:t,trailing:s})}function r4e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function lii(e){return!!e&&typeof e=="object"}function cii(e){return typeof e=="symbol"||lii(e)&&rii.call(e)==jri}function nyn(e){if(typeof e=="number")return e;if(cii(e))return tyn;if(r4e(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=r4e(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Wri,"");var r=Xri.test(e);return r||Qri.test(e)?Zri(e.slice(2),r?2:8):Kri.test(e)?tyn:+e}var uii=oii;const UTa=O1(uii);var fot={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},cLn=Object.defineProperty,X=(e,t)=>cLn(e,"name",{value:t,configurable:!0}),KCe=(e,t)=>{for(var r in t)cLn(e,r,{get:t[r],enumerable:!0})},V6={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},it={trace:X((...e)=>{},"trace"),debug:X((...e)=>{},"debug"),info:X((...e)=>{},"info"),warn:X((...e)=>{},"warn"),error:X((...e)=>{},"error"),fatal:X((...e)=>{},"fatal")},B0t=X(function(e="fatal"){let t=V6.fatal;typeof e=="string"?e.toLowerCase()in V6&&(t=V6[e]):typeof e=="number"&&(t=e),it.trace=()=>{},it.debug=()=>{},it.info=()=>{},it.warn=()=>{},it.error=()=>{},it.fatal=()=>{},t<=V6.fatal&&(it.fatal=console.error?console.error.bind(console,Px("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Px("FATAL"))),t<=V6.error&&(it.error=console.error?console.error.bind(console,Px("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Px("ERROR"))),t<=V6.warn&&(it.warn=console.warn?console.warn.bind(console,Px("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Px("WARN"))),t<=V6.info&&(it.info=console.info?console.info.bind(console,Px("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Px("INFO"))),t<=V6.debug&&(it.debug=console.debug?console.debug.bind(console,Px("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Px("DEBUG"))),t<=V6.trace&&(it.trace=console.debug?console.debug.bind(console,Px("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Px("TRACE")))},"setLogLevel"),Px=X(e=>`%c${Fc().format("ss.SSS")} : ${e} : `,"format");const QEe={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},a)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(a){case"r":return QEe.hue2rgb(o,s,e+1/3)*255;case"g":return QEe.hue2rgb(o,s,e)*255;case"b":return QEe.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},a)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),u=(s+o)/2;if(a==="l")return u*100;if(s===o)return 0;const h=s-o,f=u>.5?h/(2-s-o):h/(s+o);if(a==="s")return f*100;switch(s){case e:return((t-r)/h+(t<r?6:0))*60;case t:return((r-e)/h+2)*60;case r:return((e-t)/h+4)*60;default:return-1}}},hii={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},dii={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Lo={channel:QEe,lang:hii,unit:dii},VN={};for(let e=0;e<=255;e++)VN[e]=Lo.unit.dec2hex(e);const pb={ALL:0,RGB:1,HSL:2};let fii=class{constructor(){this.type=pb.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=pb.ALL}is(t){return this.type===t}};class pii{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new fii}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=pb.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:a,l:s}=t;r===void 0&&(t.h=Lo.channel.rgb2hsl(t,"h")),a===void 0&&(t.s=Lo.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=Lo.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:a,b:s}=t;r===void 0&&(t.r=Lo.channel.hsl2rgb(t,"r")),a===void 0&&(t.g=Lo.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=Lo.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(pb.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(pb.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(pb.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(pb.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(pb.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(pb.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const XCe=new pii({r:0,g:0,b:0,a:0},"transparent"),jV={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(jV.re);if(!t)return;const r=t[1],a=parseInt(r,16),s=r.length,o=s%4===0,u=s>4,h=u?1:17,f=u?8:4,p=o?0:-1,m=u?255:15;return XCe.set({r:(a>>f*(p+3)&m)*h,g:(a>>f*(p+2)&m)*h,b:(a>>f*(p+1)&m)*h,a:o?(a&m)*h/255:1},e)},stringify:e=>{const{r:t,g:r,b:a,a:s}=e;return s<1?`#${VN[Math.round(t)]}${VN[Math.round(r)]}${VN[Math.round(a)]}${VN[Math.round(s*255)]}`:`#${VN[Math.round(t)]}${VN[Math.round(r)]}${VN[Math.round(a)]}`}},QB={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:e=>{const t=e.match(QB.hueRe);if(t){const[,r,a]=t;switch(a){case"grad":return Lo.channel.clamp.h(parseFloat(r)*.9);case"rad":return Lo.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Lo.channel.clamp.h(parseFloat(r)*360)}}return Lo.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(QB.re);if(!r)return;const[,a,s,o,u,h]=r;return XCe.set({h:QB._hue2deg(a),s:Lo.channel.clamp.s(parseFloat(s)),l:Lo.channel.clamp.l(parseFloat(o)),a:u?Lo.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{h:t,s:r,l:a,a:s}=e;return s<1?`hsla(${Lo.lang.round(t)}, ${Lo.lang.round(r)}%, ${Lo.lang.round(a)}%, ${s})`:`hsl(${Lo.lang.round(t)}, ${Lo.lang.round(r)}%, ${Lo.lang.round(a)}%)`}},ase={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:e=>{e=e.toLowerCase();const t=ase.colors[e];if(t)return jV.parse(t)},stringify:e=>{const t=jV.stringify(e);for(const r in ase.colors)if(ase.colors[r]===t)return r}},Nie={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Nie.re);if(!r)return;const[,a,s,o,u,h,f,p,m]=r;return XCe.set({r:Lo.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:Lo.channel.clamp.g(u?parseFloat(o)*2.55:parseFloat(o)),b:Lo.channel.clamp.b(f?parseFloat(h)*2.55:parseFloat(h)),a:p?Lo.channel.clamp.a(m?parseFloat(p)/100:parseFloat(p)):1},e)},stringify:e=>{const{r:t,g:r,b:a,a:s}=e;return s<1?`rgba(${Lo.lang.round(t)}, ${Lo.lang.round(r)}, ${Lo.lang.round(a)}, ${Lo.lang.round(s)})`:`rgb(${Lo.lang.round(t)}, ${Lo.lang.round(r)}, ${Lo.lang.round(a)})`}},aT={format:{keyword:ase,hex:jV,rgb:Nie,rgba:Nie,hsl:QB,hsla:QB},parse:e=>{if(typeof e!="string")return e;const t=jV.parse(e)||Nie.parse(e)||QB.parse(e)||ase.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(pb.HSL)||e.data.r===void 0?QB.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Nie.stringify(e):jV.stringify(e)},uLn=(e,t)=>{const r=aT.parse(e);for(const a in t)r[a]=Lo.channel.clamp[a](t[a]);return aT.stringify(r)},Z2=(e,t,r=0,a=1)=>{if(typeof e!="number")return uLn(e,{a:t});const s=XCe.set({r:Lo.channel.clamp.r(e),g:Lo.channel.clamp.g(t),b:Lo.channel.clamp.b(r),a:Lo.channel.clamp.a(a)});return aT.stringify(s)},ece=(e,t)=>Lo.lang.round(aT.parse(e)[t]),gii=e=>{const{r:t,g:r,b:a}=aT.parse(e),s=.2126*Lo.channel.toLinear(t)+.7152*Lo.channel.toLinear(r)+.0722*Lo.channel.toLinear(a);return Lo.lang.round(s)},mii=e=>gii(e)>=.5,bv=e=>!mii(e),hLn=(e,t,r)=>{const a=aT.parse(e),s=a[t],o=Lo.channel.clamp[t](s+r);return s!==o&&(a[t]=o),aT.stringify(a)},Nr=(e,t)=>hLn(e,"l",t),qr=(e,t)=>hLn(e,"l",-t),gt=(e,t)=>{const r=aT.parse(e),a={};for(const s in t)t[s]&&(a[s]=r[s]+t[s]);return uLn(e,a)},bii=(e,t,r=50)=>{const{r:a,g:s,b:o,a:u}=aT.parse(e),{r:h,g:f,b:p,a:m}=aT.parse(t),b=r/100,_=b*2-1,w=u-m,C=((_*w===-1?_:(_+w)/(1+_*w))+1)/2,A=1-C,k=a*C+h*A,I=s*C+f*A,N=o*C+p*A,L=u*b+m*(1-b);return Z2(k,I,N,L)},ir=(e,t=100)=>{const r=aT.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,bii(r,e,t)};var dLn=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,sse=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yii=/\s*%%.*\n/gm,pY,fLn=(pY=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},X(pY,"UnknownDiagramError"),pY),IF={},F0t=X(function(e,t){e=e.replace(dLn,"").replace(sse,"").replace(yii,`
`);for(const[r,{detector:a}]of Object.entries(IF))if(a(e,t))return r;throw new fLn(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),pot=X((...e)=>{for(const{id:t,detector:r,loader:a}of e)pLn(t,r,a)},"registerLazyLoadedDiagrams"),pLn=X((e,t,r)=>{IF[e]&&it.warn(`Detector with key ${e} already exists. Overwriting.`),IF[e]={detector:t,loader:r},it.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),vii=X(e=>IF[e].loader,"getDiagramLoader"),got=X((e,t,{depth:r=2,clobber:a=!1}={})=>{const s={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>got(e,o,s)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=got(e[o],t[o],{depth:r-1,clobber:a})):(a||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),W0=got,QCe="#ffffff",ZCe="#f2f2f2",Qy=X((e,t)=>t?gt(e,{s:-40,l:10}):gt(e,{s:-40,l:-10}),"mkBorder"),gY,_ii=(gY=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(){var r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||gt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||gt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qy(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qy(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ir(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ir(this.tertiaryColor),this.lineColor=this.lineColor||ir(this.background),this.arrowheadColor=this.arrowheadColor||ir(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,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?qr(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||this.actorBorder,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||qr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ir(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||Nr(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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||qr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qr(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Nr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Nr(this.mainBkg,5)),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||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.darkMode)for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=qr(this["cScale"+F],75);else for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=qr(this["cScale"+F],25);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||ir(this["cScale"+F]);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this.darkMode?this["cScalePeer"+F]=this["cScalePeer"+F]||Nr(this["cScale"+F],10):this["cScalePeer"+F]=this["cScalePeer"+F]||qr(this["cScale"+F],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||gt(this.mainBkg,{h:180,s:-15,l:t*(5+F*3)}),this["surfacePeer"+F]=this["surfacePeer"+F]||gt(this.mainBkg,{h:180,s:-15,l:t*(8+F*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||gt(this.primaryColor,{h:64}),this.fillType3=this.fillType3||gt(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||gt(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||gt(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||gt(this.primaryColor,{h:128}),this.fillType7=this.fillType7||gt(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||gt(this.primaryColor,{l:-10}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-10}),this.pie6=this.pie6||gt(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||gt(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((a=this.radar)==null?void 0:a.axisStrokeWidth)||2,axisLabelFontSize:((s=this.radar)==null?void 0:s.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((u=this.radar)==null?void 0:u.curveStrokeWidth)||2,graticuleColor:((h=this.radar)==null?void 0:h.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((f=this.radar)==null?void 0:f.graticuleStrokeWidth)||1,graticuleOpacity:((p=this.radar)==null?void 0:p.graticuleOpacity)||.3,legendBoxSize:((m=this.radar)==null?void 0:m.legendBoxSize)||12,legendFontSize:((b=this.radar)==null?void 0:b.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((_=this.xyChart)==null?void 0:_.backgroundColor)||this.background,titleColor:((w=this.xyChart)==null?void 0:w.titleColor)||this.primaryTextColor,xAxisTitleColor:((S=this.xyChart)==null?void 0:S.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((A=this.xyChart)==null?void 0:A.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((k=this.xyChart)==null?void 0:k.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((I=this.xyChart)==null?void 0:I.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((N=this.xyChart)==null?void 0:N.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((L=this.xyChart)==null?void 0:L.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qr(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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(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||QCe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZCe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(gY,"Theme"),gY),wii=X(e=>{const t=new _ii;return t.calculate(e),t},"getThemeVariables"),mY,Eii=(mY=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Nr(this.primaryColor,16),this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=ir(this.background),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Nr(ir("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Z2(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=qr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qr(this.sectionBkgColor,10),this.taskBorderColor=Z2(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Z2(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Nr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qr(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.secondBkg=Nr(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=Nr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=Nr(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(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||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330});for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||ir(this["cScale"+M]);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScalePeer"+M]=this["cScalePeer"+M]||Nr(this["cScale"+M],10);for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||gt(this.mainBkg,{h:30,s:-30,l:-(-10+M*4)}),this["surfacePeer"+M]=this["surfacePeer"+M]||gt(this.mainBkg,{h:30,s:-30,l:-(-7+M*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["pie"+M]=this["cScale"+M];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((_=this.radar)==null?void 0:_.axisColor)||this.lineColor,axisStrokeWidth:((w=this.radar)==null?void 0:w.axisStrokeWidth)||2,axisLabelFontSize:((S=this.radar)==null?void 0:S.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((A=this.radar)==null?void 0:A.curveStrokeWidth)||2,graticuleColor:((k=this.radar)==null?void 0:k.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((I=this.radar)==null?void 0:I.graticuleStrokeWidth)||1,graticuleOpacity:((N=this.radar)==null?void 0:N.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((P=this.radar)==null?void 0:P.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Nr(this.secondaryColor,20),this.git1=Nr(this.pie2||this.secondaryColor,20),this.git2=Nr(this.pie3||this.tertiaryColor,20),this.git3=Nr(this.pie4||gt(this.primaryColor,{h:-30}),20),this.git4=Nr(this.pie5||gt(this.primaryColor,{h:-60}),20),this.git5=Nr(this.pie6||gt(this.primaryColor,{h:-90}),10),this.git6=Nr(this.pie7||gt(this.primaryColor,{h:60}),10),this.git7=Nr(this.pie8||gt(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||Nr(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nr(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(mY,"Theme"),mY),xii=X(e=>{const t=new Eii;return t.calculate(e),t},"getThemeVariables"),bY,Sii=(bY=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=gt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(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="rgba(232,232,232, 0.8)",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="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="#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.vertLineColor="calculated",this.sectionBkgColor=Z2(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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=qr(this["cScale"+M],10),this["cScalePeer"+M]=this["cScalePeer"+M]||qr(this["cScale"+M],25);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||gt(this["cScale"+M],{h:180});for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||gt(this.mainBkg,{h:30,l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||gt(this.mainBkg,{h:30,l:-(7+M*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ir(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ir(this.labelTextColor);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||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=Nr(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Nr(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Nr(this.primaryColor,1),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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||gt(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||gt(this.primaryColor,{l:-10}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||gt(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||gt(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((u=this.radar)==null?void 0:u.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((h=this.radar)==null?void 0:h.graticuleStrokeWidth)||1,graticuleOpacity:((f=this.radar)==null?void 0:f.graticuleOpacity)||.3,legendBoxSize:((p=this.radar)==null?void 0:p.legendBoxSize)||12,legendFontSize:((m=this.radar)==null?void 0:m.legendFontSize)||12},this.xyChart={backgroundColor:((b=this.xyChart)==null?void 0:b.backgroundColor)||this.background,titleColor:((_=this.xyChart)==null?void 0:_.titleColor)||this.primaryTextColor,xAxisTitleColor:((w=this.xyChart)==null?void 0:w.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((S=this.xyChart)==null?void 0:S.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((A=this.xyChart)==null?void 0:A.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((k=this.xyChart)==null?void 0:k.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((I=this.xyChart)==null?void 0:I.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((L=this.xyChart)==null?void 0:L.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((P=this.xyChart)==null?void 0:P.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||qr(ir(this.git0),25),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||QCe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZCe}calculate(t){if(Object.keys(this).forEach(a=>{this[a]==="calculated"&&(this[a]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(bY,"Theme"),bY),JCe=X(e=>{const t=new Sii;return t.calculate(e),t},"getThemeVariables"),yY,Tii=(yY=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=Nr("#cde498",10),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.primaryColor),this.lineColor=ir(this.background),this.textColor=ir(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="calculated",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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.actorBorder=qr(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=qr(this["cScale"+M],10),this["cScalePeer"+M]=this["cScalePeer"+M]||qr(this["cScale"+M],25);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||gt(this["cScale"+M],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||gt(this.mainBkg,{h:30,s:-30,l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||gt(this.mainBkg,{h:30,s:-30,l:-(8+M*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Nr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Nr(this.mainBkg,20),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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(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||gt(this.primaryColor,{l:-30}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||gt(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||gt(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((u=this.radar)==null?void 0:u.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((h=this.radar)==null?void 0:h.graticuleStrokeWidth)||1,graticuleOpacity:((f=this.radar)==null?void 0:f.graticuleOpacity)||.3,legendBoxSize:((p=this.radar)==null?void 0:p.legendBoxSize)||12,legendFontSize:((m=this.radar)==null?void 0:m.legendFontSize)||12},this.xyChart={backgroundColor:((b=this.xyChart)==null?void 0:b.backgroundColor)||this.background,titleColor:((_=this.xyChart)==null?void 0:_.titleColor)||this.primaryTextColor,xAxisTitleColor:((w=this.xyChart)==null?void 0:w.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((S=this.xyChart)==null?void 0:S.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((A=this.xyChart)==null?void 0:A.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((k=this.xyChart)==null?void 0:k.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((I=this.xyChart)==null?void 0:I.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((L=this.xyChart)==null?void 0:L.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((P=this.xyChart)==null?void 0:P.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||QCe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZCe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(yY,"Theme"),yY),Cii=X(e=>{const t=new Tii;return t.calculate(e),t},"getThemeVariables"),vY,Aii=(vY=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Nr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(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=this.actorBorder,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Nr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.secondBkg=Nr(this.contrast,55),this.border2=this.contrast,this.actorBorder=Nr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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.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 M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||ir(this["cScale"+M]);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this.darkMode?this["cScalePeer"+M]=this["cScalePeer"+M]||Nr(this["cScale"+M],10):this["cScalePeer"+M]=this["cScalePeer"+M]||qr(this["cScale"+M],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||gt(this.mainBkg,{l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||gt(this.mainBkg,{l:-(8+M*5)});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.sectionBkgColor=Nr(this.contrast,30),this.sectionBkgColor2=Nr(this.contrast,30),this.taskBorderColor=qr(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=Nr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=qr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128});for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["pie"+M]=this["cScale"+M];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((_=this.radar)==null?void 0:_.axisColor)||this.lineColor,axisStrokeWidth:((w=this.radar)==null?void 0:w.axisStrokeWidth)||2,axisLabelFontSize:((S=this.radar)==null?void 0:S.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((A=this.radar)==null?void 0:A.curveStrokeWidth)||2,graticuleColor:((k=this.radar)==null?void 0:k.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((I=this.radar)==null?void 0:I.graticuleStrokeWidth)||1,graticuleOpacity:((N=this.radar)==null?void 0:N.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((P=this.radar)==null?void 0:P.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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=qr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||gt(this.primaryColor,{h:-30}),this.git4=this.pie5||gt(this.primaryColor,{h:-60}),this.git5=this.pie6||gt(this.primaryColor,{h:-90}),this.git6=this.pie7||gt(this.primaryColor,{h:60}),this.git7=this.pie8||gt(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(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||QCe,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ZCe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(vY,"Theme"),vY),kii=X(e=>{const t=new Aii;return t.calculate(e),t},"getThemeVariables"),$7={base:{getThemeVariables:wii},dark:{getThemeVariables:xii},default:{getThemeVariables:JCe},forest:{getThemeVariables:Cii},neutral:{getThemeVariables:kii}},fC={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,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,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},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{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},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,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,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"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},gLn={...fC,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:$7.default.getThemeVariables(),sequence:{...fC.sequence,messageFont:X(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:X(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:X(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fC.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fC.c4,useWidth:void 0,personFont:X(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...fC.flowchart,inheritDir:!1},external_personFont:X(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:X(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:X(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:X(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:X(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:X(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:X(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:X(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:X(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:X(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:X(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:X(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:X(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:X(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:X(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:X(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:X(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:X(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:X(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:X(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:X(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fC.pie,useWidth:984},xyChart:{...fC.xyChart,useWidth:void 0},requirement:{...fC.requirement,useWidth:void 0},packet:{...fC.packet},radar:{...fC.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},mLn=X((e,t="")=>Object.keys(e).reduce((r,a)=>Array.isArray(e[a])?r:typeof e[a]=="object"&&e[a]!==null?[...r,t+a,...mLn(e[a],"")]:[...r,t+a],[]),"keyify"),Rii=new Set(mLn(gLn,"")),Cc=gLn,i4e=X(e=>{if(it.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>i4e(t));return}for(const t of Object.keys(e)){if(it.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Rii.has(t)||e[t]==null){it.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){it.debug("sanitizing object",t),i4e(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(it.debug("sanitizing css option",t),e[t]=Iii(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}it.debug("After sanitization",e)}},"sanitizeDirective"),Iii=X(e=>{let t=0,r=0;for(const a of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?t++:a==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Tj=Object.freeze(Cc),P2=W0({},Tj),a4e,NF=[],ose=W0({},Tj),eAe=X((e,t)=>{let r=W0({},e),a={};for(const s of t)vLn(s),a=W0(a,s);if(r=W0(r,a),a.theme&&a.theme in $7){const s=W0({},a4e),o=W0(s.themeVariables||{},a.themeVariables);r.theme&&r.theme in $7&&(r.themeVariables=$7[r.theme].getThemeVariables(o))}return ose=r,_Ln(ose),ose},"updateCurrentConfig"),Nii=X(e=>(P2=W0({},Tj),P2=W0(P2,e),e.theme&&$7[e.theme]&&(P2.themeVariables=$7[e.theme].getThemeVariables(e.themeVariables)),eAe(P2,NF),P2),"setSiteConfig"),Oii=X(e=>{a4e=W0({},e)},"saveConfigFromInitialize"),Lii=X(e=>(P2=W0(P2,e),eAe(P2,NF),P2),"updateSiteConfig"),bLn=X(()=>W0({},P2),"getSiteConfig"),yLn=X(e=>(_Ln(e),W0(ose,e),$c()),"setConfig"),$c=X(()=>W0({},ose),"getConfig"),vLn=X(e=>{e&&(["secure",...P2.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(it.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&vLn(e[t])}))},"sanitize"),Dii=X(e=>{var t;i4e(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),NF.push(e),eAe(P2,NF)},"addDirective"),s4e=X((e=P2)=>{NF=[],eAe(e,NF)},"reset"),Mii={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ryn={},Pii=X(e=>{ryn[e]||(it.warn(Mii[e]),ryn[e]=!0)},"issueWarning"),_Ln=X(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Pii("LAZY_LOAD_DEPRECATED")},"checkConfig"),Bii=X(()=>{let e={};a4e&&(e=W0(e,a4e));for(const t of NF)e=W0(e,t);return e},"getUserDefinedConfig"),DW=/<br\s*\/?>/gi,Fii=X(e=>e?xLn(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),$ii=(()=>{let e=!1;return()=>{e||(wLn(),e=!0)}})();function wLn(){const e="data-temp-href-target";Sj.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Sj.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}X(wLn,"setupDompurifyHooks");var ELn=X(e=>($ii(),Sj.sanitize(e)),"removeScript"),iyn=X((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const a=t.securityLevel;a==="antiscript"||a==="strict"?e=ELn(e):a!=="loose"&&(e=xLn(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=qii(e))}return e},"sanitizeMore"),Ic=X((e,t)=>e&&(t.dompurifyConfig?e=Sj.sanitize(iyn(e,t),t.dompurifyConfig).toString():e=Sj.sanitize(iyn(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Uii=X((e,t)=>typeof e=="string"?Ic(e,t):e.flat().map(r=>Ic(r,t)),"sanitizeTextOrArray"),zii=X(e=>DW.test(e),"hasBreaks"),Gii=X(e=>e.split(DW),"splitBreaks"),qii=X(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xLn=X(e=>e.replace(DW,"#br#"),"breakToPlaceholder"),tAe=X(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),nh=X(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Hii=X(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Vii=X(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),WN=X(function(e){const t=e.split(/(,)/),r=[];for(let a=0;a<t.length;a++){let s=t[a];if(s===","&&a>0&&a+1<t.length){const o=t[a-1],u=t[a+1];Yii(o,u)&&(s=o+","+u,a++,r.pop())}r.push(jii(s))}return r.join("")},"parseGenericTypes"),mot=X((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Yii=X((e,t)=>{const r=mot(e,"~"),a=mot(t,"~");return r===1&&a===1},"shouldCombineSets"),jii=X(e=>{const t=mot(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const a=[...e];let s=a.indexOf("~"),o=a.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)a[s]="<",a[o]=">",s=a.indexOf("~"),o=a.lastIndexOf("~");return r&&a.unshift("~"),a.join("")},"processSet"),ayn=X(()=>window.MathMLElement!==void 0,"isMathMLSupported"),bot=/\$\$(.*)\$\$/g,u0=X(e=>{var t;return(((t=e.match(bot))==null?void 0:t.length)??0)>0},"hasKatex"),tce=X(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await nce(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const a=document.querySelector("body");a==null||a.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),Wii=X(async(e,t)=>{if(!u0(e))return e;if(!(ayn()||t.legacyMathML||t.forceLegacyMathML))return e.replace(bot,"MathML is unsupported in this environment.");{const{default:r}=await ea(async()=>{const{default:s}=await Promise.resolve().then(()=>CTi);return{default:s}},void 0),a=t.forceLegacyMathML||!ayn()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(DW).map(s=>u0(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(bot,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),nce=X(async(e,t)=>Ic(await Wii(e,t),t),"renderKatexSanitized"),Ti={getRows:Fii,sanitizeText:Ic,sanitizeTextOrArray:Uii,hasBreaks:zii,splitBreaks:Gii,lineBreakRegex:DW,removeScript:ELn,getUrl:tAe,evaluate:nh,getMax:Hii,getMin:Vii},Kii=X(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Xii=X(function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},"calculateSvgSizeAttrs"),yv=X(function(e,t,r,a){const s=Xii(t,r,a);Kii(e,s)},"configureSvgSize"),rce=X(function(e,t,r,a){const s=t.node().getBBox(),o=s.width,u=s.height;it.info(`SVG bounds: ${o}x${u}`,s);let h=0,f=0;it.info(`Graph bounds: ${h}x${f}`,e),h=o+r*2,f=u+r*2,it.info(`Calculated bounds: ${h}x${f}`),yv(t,f,h,a);const p=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",p)},"setupGraphViewbox"),ZEe={},Qii=X((e,t,r)=>{let a="";return e in ZEe&&ZEe[e]?a=ZEe[e](r):it.warn(`No theme found for ${e}`),` & {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
    fill: ${r.textColor}
  }
  @keyframes edge-animation-frame {
    from {
      stroke-dashoffset: 0;
    }
  }
  @keyframes dash {
    to {
      stroke-dashoffset: 0;
    }
  }
  & .edge-animation-slow {
    stroke-dasharray: 9,5 !important;
    stroke-dashoffset: 900;
    animation: dash 50s linear infinite;
    stroke-linecap: round;
  }
  & .edge-animation-fast {
    stroke-dasharray: 9,5 !important;
    stroke-dashoffset: 900;
    animation: dash 20s linear infinite;
    stroke-linecap: round;
  }
  /* Classes common for multiple diagrams */

  & .error-icon {
    fill: ${r.errorBkgColor};
  }
  & .error-text {
    fill: ${r.errorTextColor};
    stroke: ${r.errorTextColor};
  }

  & .edge-thickness-normal {
    stroke-width: 1px;
  }
  & .edge-thickness-thick {
    stroke-width: 3.5px
  }
  & .edge-pattern-solid {
    stroke-dasharray: 0;
  }
  & .edge-thickness-invisible {
    stroke-width: 0;
    fill: none;
  }
  & .edge-pattern-dashed{
    stroke-dasharray: 3;
  }
  .edge-pattern-dotted {
    stroke-dasharray: 2;
  }

  & .marker {
    fill: ${r.lineColor};
    stroke: ${r.lineColor};
  }
  & .marker.cross {
    stroke: ${r.lineColor};
  }

  & svg {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
  }
   & p {
    margin: 0
   }

  ${a}

  ${t}
`},"getStyles"),Zii=X((e,t)=>{t!==void 0&&(ZEe[e]=t)},"addStylesForDiagram"),Jii=Qii,$0t={};KCe($0t,{clear:()=>M1,getAccDescription:()=>Bp,getAccTitle:()=>Mp,getDiagramTitle:()=>P1,setAccDescription:()=>Pp,setAccTitle:()=>N1,setDiagramTitle:()=>Og});var U0t="",z0t="",G0t="",q0t=X(e=>Ic(e,$c()),"sanitizeText"),M1=X(()=>{U0t="",G0t="",z0t=""},"clear"),N1=X(e=>{U0t=q0t(e).replace(/^\s+/g,"")},"setAccTitle"),Mp=X(()=>U0t,"getAccTitle"),Pp=X(e=>{G0t=q0t(e).replace(/\n\s+/g,`
`)},"setAccDescription"),Bp=X(()=>G0t,"getAccDescription"),Og=X(e=>{z0t=q0t(e)},"setDiagramTitle"),P1=X(()=>z0t,"getDiagramTitle"),syn=it,eai=B0t,nn=$c,yot=yLn,SLn=Tj,H0t=X(e=>Ic(e,nn()),"sanitizeText"),TLn=rce,tai=X(()=>$0t,"getCommonDb"),o4e={},l4e=X((e,t,r)=>{var a;o4e[e]&&syn.warn(`Diagram with id ${e} already registered. Overwriting.`),o4e[e]=t,r&&pLn(e,r),Zii(e,t.styles),(a=t.injectUtils)==null||a.call(t,syn,eai,nn,H0t,TLn,tai(),()=>{})},"registerDiagram"),vot=X(e=>{if(e in o4e)return o4e[e];throw new nai(e)},"getDiagram"),_Y,nai=(_Y=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},X(_Y,"DiagramNotFoundError"),_Y);function JEe(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rai(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function V0t(e){let t,r,a;e.length!==2?(t=JEe,r=(h,f)=>JEe(e(h),f),a=(h,f)=>e(h)-f):(t=e===JEe||e===rai?e:iai,r=e,a=e);function s(h,f,p=0,m=h.length){if(p<m){if(t(f,f)!==0)return m;do{const b=p+m>>>1;r(h[b],f)<0?p=b+1:m=b}while(p<m)}return p}function o(h,f,p=0,m=h.length){if(p<m){if(t(f,f)!==0)return m;do{const b=p+m>>>1;r(h[b],f)<=0?p=b+1:m=b}while(p<m)}return p}function u(h,f,p=0,m=h.length){const b=s(h,f,p,m-1);return b>p&&a(h[b-1],f)>-a(h[b],f)?b-1:b}return{left:s,center:u,right:o}}function iai(){return 0}function aai(e){return e===null?NaN:+e}const sai=V0t(JEe),oai=sai.right;V0t(aai).center;class oyn extends Map{constructor(t,r=uai){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,s]of t)this.set(a,s)}get(t){return super.get(lyn(this,t))}has(t){return super.has(lyn(this,t))}set(t,r){return super.set(lai(this,t),r)}delete(t){return super.delete(cai(this,t))}}function lyn({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function lai({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function cai({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function uai(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hai=Math.sqrt(50),dai=Math.sqrt(10),fai=Math.sqrt(2);function c4e(e,t,r){const a=(t-e)/Math.max(0,r),s=Math.floor(Math.log10(a)),o=a/Math.pow(10,s),u=o>=hai?10:o>=dai?5:o>=fai?2:1;let h,f,p;return s<0?(p=Math.pow(10,-s)/u,h=Math.round(e*p),f=Math.round(t*p),h/p<e&&++h,f/p>t&&--f,p=-p):(p=Math.pow(10,s)*u,h=Math.round(e/p),f=Math.round(t/p),h*p<e&&++h,f*p>t&&--f),f<h&&.5<=r&&r<2?c4e(e,t,r*2):[h,f,p]}function pai(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const a=t<e,[s,o,u]=a?c4e(t,e,r):c4e(e,t,r);if(!(o>=s))return[];const h=o-s+1,f=new Array(h);if(a)if(u<0)for(let p=0;p<h;++p)f[p]=(o-p)/-u;else for(let p=0;p<h;++p)f[p]=(o-p)*u;else if(u<0)for(let p=0;p<h;++p)f[p]=(s+p)/-u;else for(let p=0;p<h;++p)f[p]=(s+p)*u;return f}function _ot(e,t,r){return t=+t,e=+e,r=+r,c4e(e,t,r)[2]}function wot(e,t,r){t=+t,e=+e,r=+r;const a=t<e,s=a?_ot(t,e,r):_ot(e,t,r);return(a?-1:1)*(s<0?1/-s:s)}function CLn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}return r}function ALn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}return r}function gai(e,t,r){e=+e,t=+t,r=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+r;for(var a=-1,s=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(s);++a<s;)o[a]=e+a*r;return o}function mai(e){return e}var exe=1,htt=2,Eot=3,V_e=4,cyn=1e-6;function bai(e){return"translate("+e+",0)"}function yai(e){return"translate(0,"+e+")"}function vai(e){return t=>+e(t)}function _ai(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function wai(){return!this.__axis}function kLn(e,t){var r=[],a=null,s=null,o=6,u=6,h=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===exe||e===V_e?-1:1,m=e===V_e||e===htt?"x":"y",b=e===exe||e===Eot?bai:yai;function _(w){var S=a??(t.ticks?t.ticks.apply(t,r):t.domain()),C=s??(t.tickFormat?t.tickFormat.apply(t,r):mai),A=Math.max(o,0)+h,k=t.range(),I=+k[0]+f,N=+k[k.length-1]+f,L=(t.bandwidth?_ai:vai)(t.copy(),f),P=w.selection?w.selection():w,M=P.selectAll(".domain").data([null]),F=P.selectAll(".tick").data(S,t).order(),U=F.exit(),$=F.enter().append("g").attr("class","tick"),G=F.select("line"),B=F.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge($),G=G.merge($.append("line").attr("stroke","currentColor").attr(m+"2",p*o)),B=B.merge($.append("text").attr("fill","currentColor").attr(m,p*A).attr("dy",e===exe?"0em":e===Eot?"0.71em":"0.32em")),w!==P&&(M=M.transition(w),F=F.transition(w),G=G.transition(w),B=B.transition(w),U=U.transition(w).attr("opacity",cyn).attr("transform",function(Z){return isFinite(Z=L(Z))?b(Z+f):this.getAttribute("transform")}),$.attr("opacity",cyn).attr("transform",function(Z){var z=this.parentNode.__axis;return b((z&&isFinite(z=z(Z))?z:L(Z))+f)})),U.remove(),M.attr("d",e===V_e||e===htt?u?"M"+p*u+","+I+"H"+f+"V"+N+"H"+p*u:"M"+f+","+I+"V"+N:u?"M"+I+","+p*u+"V"+f+"H"+N+"V"+p*u:"M"+I+","+f+"H"+N),F.attr("opacity",1).attr("transform",function(Z){return b(L(Z)+f)}),G.attr(m+"2",p*o),B.attr(m,p*A).text(C),P.filter(wai).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===htt?"start":e===V_e?"end":"middle"),P.each(function(){this.__axis=L})}return _.scale=function(w){return arguments.length?(t=w,_):t},_.ticks=function(){return r=Array.from(arguments),_},_.tickArguments=function(w){return arguments.length?(r=w==null?[]:Array.from(w),_):r.slice()},_.tickValues=function(w){return arguments.length?(a=w==null?null:Array.from(w),_):a&&a.slice()},_.tickFormat=function(w){return arguments.length?(s=w,_):s},_.tickSize=function(w){return arguments.length?(o=u=+w,_):o},_.tickSizeInner=function(w){return arguments.length?(o=+w,_):o},_.tickSizeOuter=function(w){return arguments.length?(u=+w,_):u},_.tickPadding=function(w){return arguments.length?(h=+w,_):h},_.offset=function(w){return arguments.length?(f=+w,_):f},_}function RLn(e){return kLn(exe,e)}function ILn(e){return kLn(Eot,e)}var Eai={value:()=>{}};function NLn(){for(var e=0,t=arguments.length,r={},a;e<t;++e){if(!(a=arguments[e]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new txe(r)}function txe(e){this._=e}function xai(e,t){return e.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}txe.prototype=NLn.prototype={constructor:txe,on:function(e,t){var r=this._,a=xai(e+"",r),s,o=-1,u=a.length;if(arguments.length<2){for(;++o<u;)if((s=(e=a[o]).type)&&(s=Sai(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<u;)if(s=(e=a[o]).type)r[s]=uyn(r[s],e.name,t);else if(t==null)for(s in r)r[s]=uyn(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new txe(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),a=0,s,o;a<s;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],a=0,s=o.length;a<s;++a)o[a].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],s=0,o=a.length;s<o;++s)a[s].value.apply(t,r)}};function Sai(e,t){for(var r=0,a=e.length,s;r<a;++r)if((s=e[r]).name===t)return s.value}function uyn(e,t,r){for(var a=0,s=e.length;a<s;++a)if(e[a].name===t){e[a]=Eai,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:t,value:r}),e}var xot="http://www.w3.org/1999/xhtml";const hyn={svg:"http://www.w3.org/2000/svg",xhtml:xot,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nAe(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hyn.hasOwnProperty(t)?{space:hyn[t],local:e}:e}function Tai(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===xot&&t.documentElement.namespaceURI===xot?t.createElement(e):t.createElementNS(r,e)}}function Cai(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function OLn(e){var t=nAe(e);return(t.local?Cai:Tai)(t)}function Aai(){}function Y0t(e){return e==null?Aai:function(){return this.querySelector(e)}}function kai(e){typeof e!="function"&&(e=Y0t(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],u=o.length,h=a[s]=new Array(u),f,p,m=0;m<u;++m)(f=o[m])&&(p=e.call(f,f.__data__,m,o))&&("__data__"in f&&(p.__data__=f.__data__),h[m]=p);return new lv(a,this._parents)}function LLn(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Rai(){return[]}function DLn(e){return e==null?Rai:function(){return this.querySelectorAll(e)}}function Iai(e){return function(){return LLn(e.apply(this,arguments))}}function Nai(e){typeof e=="function"?e=Iai(e):e=DLn(e);for(var t=this._groups,r=t.length,a=[],s=[],o=0;o<r;++o)for(var u=t[o],h=u.length,f,p=0;p<h;++p)(f=u[p])&&(a.push(e.call(f,f.__data__,p,u)),s.push(f));return new lv(a,s)}function MLn(e){return function(){return this.matches(e)}}function PLn(e){return function(t){return t.matches(e)}}var Oai=Array.prototype.find;function Lai(e){return function(){return Oai.call(this.children,e)}}function Dai(){return this.firstElementChild}function Mai(e){return this.select(e==null?Dai:Lai(typeof e=="function"?e:PLn(e)))}var Pai=Array.prototype.filter;function Bai(){return Array.from(this.children)}function Fai(e){return function(){return Pai.call(this.children,e)}}function $ai(e){return this.selectAll(e==null?Bai:Fai(typeof e=="function"?e:PLn(e)))}function Uai(e){typeof e!="function"&&(e=MLn(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],u=o.length,h=a[s]=[],f,p=0;p<u;++p)(f=o[p])&&e.call(f,f.__data__,p,o)&&h.push(f);return new lv(a,this._parents)}function BLn(e){return new Array(e.length)}function zai(){return new lv(this._enter||this._groups.map(BLn),this._parents)}function u4e(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}u4e.prototype={constructor:u4e,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Gai(e){return function(){return e}}function qai(e,t,r,a,s,o){for(var u=0,h,f=t.length,p=o.length;u<p;++u)(h=t[u])?(h.__data__=o[u],a[u]=h):r[u]=new u4e(e,o[u]);for(;u<f;++u)(h=t[u])&&(s[u]=h)}function Hai(e,t,r,a,s,o,u){var h,f,p=new Map,m=t.length,b=o.length,_=new Array(m),w;for(h=0;h<m;++h)(f=t[h])&&(_[h]=w=u.call(f,f.__data__,h,t)+"",p.has(w)?s[h]=f:p.set(w,f));for(h=0;h<b;++h)w=u.call(e,o[h],h,o)+"",(f=p.get(w))?(a[h]=f,f.__data__=o[h],p.delete(w)):r[h]=new u4e(e,o[h]);for(h=0;h<m;++h)(f=t[h])&&p.get(_[h])===f&&(s[h]=f)}function Vai(e){return e.__data__}function Yai(e,t){if(!arguments.length)return Array.from(this,Vai);var r=t?Hai:qai,a=this._parents,s=this._groups;typeof e!="function"&&(e=Gai(e));for(var o=s.length,u=new Array(o),h=new Array(o),f=new Array(o),p=0;p<o;++p){var m=a[p],b=s[p],_=b.length,w=jai(e.call(m,m&&m.__data__,p,a)),S=w.length,C=h[p]=new Array(S),A=u[p]=new Array(S),k=f[p]=new Array(_);r(m,b,C,A,k,w,t);for(var I=0,N=0,L,P;I<S;++I)if(L=C[I]){for(I>=N&&(N=I+1);!(P=A[N])&&++N<S;);L._next=P||null}}return u=new lv(u,a),u._enter=h,u._exit=f,u}function jai(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wai(){return new lv(this._exit||this._groups.map(BLn),this._parents)}function Kai(e,t,r){var a=this.enter(),s=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),a&&s?a.merge(s).order():s}function Xai(e){for(var t=e.selection?e.selection():e,r=this._groups,a=t._groups,s=r.length,o=a.length,u=Math.min(s,o),h=new Array(s),f=0;f<u;++f)for(var p=r[f],m=a[f],b=p.length,_=h[f]=new Array(b),w,S=0;S<b;++S)(w=p[S]||m[S])&&(_[S]=w);for(;f<s;++f)h[f]=r[f];return new lv(h,this._parents)}function Qai(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var a=e[t],s=a.length-1,o=a[s],u;--s>=0;)(u=a[s])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function Zai(e){e||(e=Jai);function t(b,_){return b&&_?e(b.__data__,_.__data__):!b-!_}for(var r=this._groups,a=r.length,s=new Array(a),o=0;o<a;++o){for(var u=r[o],h=u.length,f=s[o]=new Array(h),p,m=0;m<h;++m)(p=u[m])&&(f[m]=p);f.sort(t)}return new lv(s,this._parents).order()}function Jai(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function esi(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tsi(){return Array.from(this)}function nsi(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],s=0,o=a.length;s<o;++s){var u=a[s];if(u)return u}return null}function rsi(){let e=0;for(const t of this)++e;return e}function isi(){return!this.node()}function asi(e){for(var t=this._groups,r=0,a=t.length;r<a;++r)for(var s=t[r],o=0,u=s.length,h;o<u;++o)(h=s[o])&&e.call(h,h.__data__,o,s);return this}function ssi(e){return function(){this.removeAttribute(e)}}function osi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lsi(e,t){return function(){this.setAttribute(e,t)}}function csi(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function usi(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function hsi(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function dsi(e,t){var r=nAe(e);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((t==null?r.local?osi:ssi:typeof t=="function"?r.local?hsi:usi:r.local?csi:lsi)(r,t))}function FLn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fsi(e){return function(){this.style.removeProperty(e)}}function psi(e,t,r){return function(){this.style.setProperty(e,t,r)}}function gsi(e,t,r){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function msi(e,t,r){return arguments.length>1?this.each((t==null?fsi:typeof t=="function"?gsi:psi)(e,t,r??"")):Cj(this.node(),e)}function Cj(e,t){return e.style.getPropertyValue(t)||FLn(e).getComputedStyle(e,null).getPropertyValue(t)}function bsi(e){return function(){delete this[e]}}function ysi(e,t){return function(){this[e]=t}}function vsi(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _si(e,t){return arguments.length>1?this.each((t==null?bsi:typeof t=="function"?vsi:ysi)(e,t)):this.node()[e]}function $Ln(e){return e.trim().split(/^|\s+/)}function j0t(e){return e.classList||new ULn(e)}function ULn(e){this._node=e,this._names=$Ln(e.getAttribute("class")||"")}ULn.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function zLn(e,t){for(var r=j0t(e),a=-1,s=t.length;++a<s;)r.add(t[a])}function GLn(e,t){for(var r=j0t(e),a=-1,s=t.length;++a<s;)r.remove(t[a])}function wsi(e){return function(){zLn(this,e)}}function Esi(e){return function(){GLn(this,e)}}function xsi(e,t){return function(){(t.apply(this,arguments)?zLn:GLn)(this,e)}}function Ssi(e,t){var r=$Ln(e+"");if(arguments.length<2){for(var a=j0t(this.node()),s=-1,o=r.length;++s<o;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?xsi:t?wsi:Esi)(r,t))}function Tsi(){this.textContent=""}function Csi(e){return function(){this.textContent=e}}function Asi(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ksi(e){return arguments.length?this.each(e==null?Tsi:(typeof e=="function"?Asi:Csi)(e)):this.node().textContent}function Rsi(){this.innerHTML=""}function Isi(e){return function(){this.innerHTML=e}}function Nsi(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Osi(e){return arguments.length?this.each(e==null?Rsi:(typeof e=="function"?Nsi:Isi)(e)):this.node().innerHTML}function Lsi(){this.nextSibling&&this.parentNode.appendChild(this)}function Dsi(){return this.each(Lsi)}function Msi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Psi(){return this.each(Msi)}function Bsi(e){var t=typeof e=="function"?e:OLn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fsi(){return null}function $si(e,t){var r=typeof e=="function"?e:OLn(e),a=t==null?Fsi:typeof t=="function"?t:Y0t(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function Usi(){var e=this.parentNode;e&&e.removeChild(this)}function zsi(){return this.each(Usi)}function Gsi(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qsi(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hsi(e){return this.select(e?qsi:Gsi)}function Vsi(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ysi(e){return function(t){e.call(this,t,this.__data__)}}function jsi(e){return e.trim().split(/^|\s+/).map(function(t){var r="",a=t.indexOf(".");return a>=0&&(r=t.slice(a+1),t=t.slice(0,a)),{type:t,name:r}})}function Wsi(e){return function(){var t=this.__on;if(t){for(var r=0,a=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++a]=o;++a?t.length=a:delete this.__on}}}function Ksi(e,t,r){return function(){var a=this.__on,s,o=Ysi(t);if(a){for(var u=0,h=a.length;u<h;++u)if((s=a[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},a?a.push(s):this.__on=[s]}}function Xsi(e,t,r){var a=jsi(e+""),s,o=a.length,u;if(arguments.length<2){var h=this.node().__on;if(h){for(var f=0,p=h.length,m;f<p;++f)for(s=0,m=h[f];s<o;++s)if((u=a[s]).type===m.type&&u.name===m.name)return m.value}return}for(h=t?Ksi:Wsi,s=0;s<o;++s)this.each(h(a[s],t,r));return this}function qLn(e,t,r){var a=FLn(e),s=a.CustomEvent;typeof s=="function"?s=new s(t,r):(s=a.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Qsi(e,t){return function(){return qLn(this,e,t)}}function Zsi(e,t){return function(){return qLn(this,e,t.apply(this,arguments))}}function Jsi(e,t){return this.each((typeof t=="function"?Zsi:Qsi)(e,t))}function*eoi(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],s=0,o=a.length,u;s<o;++s)(u=a[s])&&(yield u)}var W0t=[null];function lv(e,t){this._groups=e,this._parents=t}function ice(){return new lv([[document.documentElement]],W0t)}function toi(){return this}lv.prototype=ice.prototype={constructor:lv,select:kai,selectAll:Nai,selectChild:Mai,selectChildren:$ai,filter:Uai,data:Yai,enter:zai,exit:Wai,join:Kai,merge:Xai,selection:toi,order:Qai,sort:Zai,call:esi,nodes:tsi,node:nsi,size:rsi,empty:isi,each:asi,attr:dsi,style:msi,property:_si,classed:Ssi,text:ksi,html:Osi,raise:Dsi,lower:Psi,append:Bsi,insert:$si,remove:zsi,clone:Hsi,datum:Vsi,on:Xsi,dispatch:Jsi,[Symbol.iterator]:eoi};function gn(e){return typeof e=="string"?new lv([[document.querySelector(e)]],[document.documentElement]):new lv([[e]],W0t)}function HLn(e){return typeof e=="string"?new lv([document.querySelectorAll(e)],[document.documentElement]):new lv([LLn(e)],W0t)}function ace(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function rAe(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function x$(){}var doe=.7,h4e=1/doe,WV="\\s*([+-]?\\d+)\\s*",foe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oA="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",noi=/^#([0-9a-f]{3,8})$/,roi=new RegExp(`^rgb\\(${WV},${WV},${WV}\\)$`),ioi=new RegExp(`^rgb\\(${oA},${oA},${oA}\\)$`),aoi=new RegExp(`^rgba\\(${WV},${WV},${WV},${foe}\\)$`),soi=new RegExp(`^rgba\\(${oA},${oA},${oA},${foe}\\)$`),ooi=new RegExp(`^hsl\\(${foe},${oA},${oA}\\)$`),loi=new RegExp(`^hsla\\(${foe},${oA},${oA},${foe}\\)$`),dyn={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};ace(x$,OF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fyn,formatHex:fyn,formatHex8:coi,formatHsl:uoi,formatRgb:pyn,toString:pyn});function fyn(){return this.rgb().formatHex()}function coi(){return this.rgb().formatHex8()}function uoi(){return YLn(this).formatHsl()}function pyn(){return this.rgb().formatRgb()}function OF(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=noi.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?gyn(t):r===3?new wb(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Y_e(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Y_e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=roi.exec(e))?new wb(t[1],t[2],t[3],1):(t=ioi.exec(e))?new wb(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aoi.exec(e))?Y_e(t[1],t[2],t[3],t[4]):(t=soi.exec(e))?Y_e(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ooi.exec(e))?yyn(t[1],t[2]/100,t[3]/100,1):(t=loi.exec(e))?yyn(t[1],t[2]/100,t[3]/100,t[4]):dyn.hasOwnProperty(e)?gyn(dyn[e]):e==="transparent"?new wb(NaN,NaN,NaN,0):null}function gyn(e){return new wb(e>>16&255,e>>8&255,e&255,1)}function Y_e(e,t,r,a){return a<=0&&(e=t=r=NaN),new wb(e,t,r,a)}function VLn(e){return e instanceof x$||(e=OF(e)),e?(e=e.rgb(),new wb(e.r,e.g,e.b,e.opacity)):new wb}function Sot(e,t,r,a){return arguments.length===1?VLn(e):new wb(e,t,r,a??1)}function wb(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}ace(wb,Sot,rAe(x$,{brighter(e){return e=e==null?h4e:Math.pow(h4e,e),new wb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?doe:Math.pow(doe,e),new wb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wb(fF(this.r),fF(this.g),fF(this.b),d4e(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:myn,formatHex:myn,formatHex8:hoi,formatRgb:byn,toString:byn}));function myn(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}`}function hoi(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}${ZB((isNaN(this.opacity)?1:this.opacity)*255)}`}function byn(){const e=d4e(this.opacity);return`${e===1?"rgb(":"rgba("}${fF(this.r)}, ${fF(this.g)}, ${fF(this.b)}${e===1?")":`, ${e})`}`}function d4e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ZB(e){return e=fF(e),(e<16?"0":"")+e.toString(16)}function yyn(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new B3(e,t,r,a)}function YLn(e){if(e instanceof B3)return new B3(e.h,e.s,e.l,e.opacity);if(e instanceof x$||(e=OF(e)),!e)return new B3;if(e instanceof B3)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,s=Math.min(t,r,a),o=Math.max(t,r,a),u=NaN,h=o-s,f=(o+s)/2;return h?(t===o?u=(r-a)/h+(r<a)*6:r===o?u=(a-t)/h+2:u=(t-r)/h+4,h/=f<.5?o+s:2-o-s,u*=60):h=f>0&&f<1?0:u,new B3(u,h,f,e.opacity)}function doi(e,t,r,a){return arguments.length===1?YLn(e):new B3(e,t,r,a??1)}function B3(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}ace(B3,doi,rAe(x$,{brighter(e){return e=e==null?h4e:Math.pow(h4e,e),new B3(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?doe:Math.pow(doe,e),new B3(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,s=2*r-a;return new wb(dtt(e>=240?e-240:e+120,s,a),dtt(e,s,a),dtt(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new B3(vyn(this.h),j_e(this.s),j_e(this.l),d4e(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 e=d4e(this.opacity);return`${e===1?"hsl(":"hsla("}${vyn(this.h)}, ${j_e(this.s)*100}%, ${j_e(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vyn(e){return e=(e||0)%360,e<0?e+360:e}function j_e(e){return Math.max(0,Math.min(1,e||0))}function dtt(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const foi=Math.PI/180,poi=180/Math.PI,f4e=18,jLn=.96422,WLn=1,KLn=.82521,XLn=4/29,KV=6/29,QLn=3*KV*KV,goi=KV*KV*KV;function ZLn(e){if(e instanceof lA)return new lA(e.l,e.a,e.b,e.opacity);if(e instanceof T7)return JLn(e);e instanceof wb||(e=VLn(e));var t=mtt(e.r),r=mtt(e.g),a=mtt(e.b),s=ftt((.2225045*t+.7168786*r+.0606169*a)/WLn),o,u;return t===r&&r===a?o=u=s:(o=ftt((.4360747*t+.3850649*r+.1430804*a)/jLn),u=ftt((.0139322*t+.0971045*r+.7141733*a)/KLn)),new lA(116*s-16,500*(o-s),200*(s-u),e.opacity)}function moi(e,t,r,a){return arguments.length===1?ZLn(e):new lA(e,t,r,a??1)}function lA(e,t,r,a){this.l=+e,this.a=+t,this.b=+r,this.opacity=+a}ace(lA,moi,rAe(x$,{brighter(e){return new lA(this.l+f4e*(e??1),this.a,this.b,this.opacity)},darker(e){return new lA(this.l-f4e*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=jLn*ptt(t),e=WLn*ptt(e),r=KLn*ptt(r),new wb(gtt(3.1338561*t-1.6168667*e-.4906146*r),gtt(-.9787684*t+1.9161415*e+.033454*r),gtt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function ftt(e){return e>goi?Math.pow(e,1/3):e/QLn+XLn}function ptt(e){return e>KV?e*e*e:QLn*(e-XLn)}function gtt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mtt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function boi(e){if(e instanceof T7)return new T7(e.h,e.c,e.l,e.opacity);if(e instanceof lA||(e=ZLn(e)),e.a===0&&e.b===0)return new T7(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*poi;return new T7(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Tot(e,t,r,a){return arguments.length===1?boi(e):new T7(e,t,r,a??1)}function T7(e,t,r,a){this.h=+e,this.c=+t,this.l=+r,this.opacity=+a}function JLn(e){if(isNaN(e.h))return new lA(e.l,0,0,e.opacity);var t=e.h*foi;return new lA(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ace(T7,Tot,rAe(x$,{brighter(e){return new T7(this.h,this.c,this.l+f4e*(e??1),this.opacity)},darker(e){return new T7(this.h,this.c,this.l-f4e*(e??1),this.opacity)},rgb(){return JLn(this).rgb()}}));const iAe=e=>()=>e;function eDn(e,t){return function(r){return e+r*t}}function yoi(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function voi(e,t){var r=t-e;return r?eDn(e,r>180||r<-180?r-360*Math.round(r/360):r):iAe(isNaN(e)?t:e)}function _oi(e){return(e=+e)==1?lse:function(t,r){return r-t?yoi(t,r,e):iAe(isNaN(t)?r:t)}}function lse(e,t){var r=t-e;return r?eDn(e,r):iAe(isNaN(e)?t:e)}const p4e=function e(t){var r=_oi(t);function a(s,o){var u=r((s=Sot(s)).r,(o=Sot(o)).r),h=r(s.g,o.g),f=r(s.b,o.b),p=lse(s.opacity,o.opacity);return function(m){return s.r=u(m),s.g=h(m),s.b=f(m),s.opacity=p(m),s+""}}return a.gamma=e,a}(1);function woi(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;s<r;++s)a[s]=e[s]*(1-o)+t[s]*o;return a}}function Eoi(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xoi(e,t){var r=t?t.length:0,a=e?Math.min(r,e.length):0,s=new Array(a),o=new Array(r),u;for(u=0;u<a;++u)s[u]=K0t(e[u],t[u]);for(;u<r;++u)o[u]=t[u];return function(h){for(u=0;u<a;++u)o[u]=s[u](h);return o}}function Soi(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function D3(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Toi(e,t){var r={},a={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?r[s]=K0t(e[s],t[s]):a[s]=t[s];return function(o){for(s in r)a[s]=r[s](o);return a}}var Cot=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,btt=new RegExp(Cot.source,"g");function Coi(e){return function(){return e}}function Aoi(e){return function(t){return e(t)+""}}function tDn(e,t){var r=Cot.lastIndex=btt.lastIndex=0,a,s,o,u=-1,h=[],f=[];for(e=e+"",t=t+"";(a=Cot.exec(e))&&(s=btt.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),h[u]?h[u]+=o:h[++u]=o),(a=a[0])===(s=s[0])?h[u]?h[u]+=s:h[++u]=s:(h[++u]=null,f.push({i:u,x:D3(a,s)})),r=btt.lastIndex;return r<t.length&&(o=t.slice(r),h[u]?h[u]+=o:h[++u]=o),h.length<2?f[0]?Aoi(f[0].x):Coi(t):(t=f.length,function(p){for(var m=0,b;m<t;++m)h[(b=f[m]).i]=b.x(p);return h.join("")})}function K0t(e,t){var r=typeof t,a;return t==null||r==="boolean"?iAe(t):(r==="number"?D3:r==="string"?(a=OF(t))?(t=a,p4e):tDn:t instanceof OF?p4e:t instanceof Date?Soi:Eoi(t)?woi:Array.isArray(t)?xoi:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Toi:D3)(e,t)}function koi(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var _yn=180/Math.PI,Aot={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nDn(e,t,r,a,s,o){var u,h,f;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(f=e*r+t*a)&&(r-=e*f,a-=t*f),(h=Math.sqrt(r*r+a*a))&&(r/=h,a/=h,f/=h),e*a<t*r&&(e=-e,t=-t,f=-f,u=-u),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*_yn,skewX:Math.atan(f)*_yn,scaleX:u,scaleY:h}}var W_e;function Roi(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Aot:nDn(t.a,t.b,t.c,t.d,t.e,t.f)}function Ioi(e){return e==null||(W_e||(W_e=document.createElementNS("http://www.w3.org/2000/svg","g")),W_e.setAttribute("transform",e),!(e=W_e.transform.baseVal.consolidate()))?Aot:(e=e.matrix,nDn(e.a,e.b,e.c,e.d,e.e,e.f))}function rDn(e,t,r,a){function s(p){return p.length?p.pop()+" ":""}function o(p,m,b,_,w,S){if(p!==b||m!==_){var C=w.push("translate(",null,t,null,r);S.push({i:C-4,x:D3(p,b)},{i:C-2,x:D3(m,_)})}else(b||_)&&w.push("translate("+b+t+_+r)}function u(p,m,b,_){p!==m?(p-m>180?m+=360:m-p>180&&(p+=360),_.push({i:b.push(s(b)+"rotate(",null,a)-2,x:D3(p,m)})):m&&b.push(s(b)+"rotate("+m+a)}function h(p,m,b,_){p!==m?_.push({i:b.push(s(b)+"skewX(",null,a)-2,x:D3(p,m)}):m&&b.push(s(b)+"skewX("+m+a)}function f(p,m,b,_,w,S){if(p!==b||m!==_){var C=w.push(s(w)+"scale(",null,",",null,")");S.push({i:C-4,x:D3(p,b)},{i:C-2,x:D3(m,_)})}else(b!==1||_!==1)&&w.push(s(w)+"scale("+b+","+_+")")}return function(p,m){var b=[],_=[];return p=e(p),m=e(m),o(p.translateX,p.translateY,m.translateX,m.translateY,b,_),u(p.rotate,m.rotate,b,_),h(p.skewX,m.skewX,b,_),f(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,_),p=m=null,function(w){for(var S=-1,C=_.length,A;++S<C;)b[(A=_[S]).i]=A.x(w);return b.join("")}}}var Noi=rDn(Roi,"px, ","px)","deg)"),Ooi=rDn(Ioi,", ",")",")");function Loi(e){return function(t,r){var a=e((t=Tot(t)).h,(r=Tot(r)).h),s=lse(t.c,r.c),o=lse(t.l,r.l),u=lse(t.opacity,r.opacity);return function(h){return t.h=a(h),t.c=s(h),t.l=o(h),t.opacity=u(h),t+""}}}const iDn=Loi(voi);var Aj=0,Oie=0,Lre=0,aDn=1e3,g4e,Lie,m4e=0,LF=0,aAe=0,poe=typeof performance=="object"&&performance.now?performance:Date,sDn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function X0t(){return LF||(sDn(Doi),LF=poe.now()+aAe)}function Doi(){LF=0}function b4e(){this._call=this._time=this._next=null}b4e.prototype=oDn.prototype={constructor:b4e,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?X0t():+r)+(t==null?0:+t),!this._next&&Lie!==this&&(Lie?Lie._next=this:g4e=this,Lie=this),this._call=e,this._time=r,kot()},stop:function(){this._call&&(this._call=null,this._time=1/0,kot())}};function oDn(e,t,r){var a=new b4e;return a.restart(e,t,r),a}function Moi(){X0t(),++Aj;for(var e=g4e,t;e;)(t=LF-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Aj}function wyn(){LF=(m4e=poe.now())+aAe,Aj=Oie=0;try{Moi()}finally{Aj=0,Boi(),LF=0}}function Poi(){var e=poe.now(),t=e-m4e;t>aDn&&(aAe-=t,m4e=e)}function Boi(){for(var e,t=g4e,r,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:g4e=r);Lie=e,kot(a)}function kot(e){if(!Aj){Oie&&(Oie=clearTimeout(Oie));var t=e-LF;t>24?(e<1/0&&(Oie=setTimeout(wyn,e-poe.now()-aAe)),Lre&&(Lre=clearInterval(Lre))):(Lre||(m4e=poe.now(),Lre=setInterval(Poi,aDn)),Aj=1,sDn(wyn))}}function Eyn(e,t,r){var a=new b4e;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,r),a}var Foi=NLn("start","end","cancel","interrupt"),$oi=[],lDn=0,xyn=1,Rot=2,nxe=3,Syn=4,Iot=5,rxe=6;function sAe(e,t,r,a,s,o){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;Uoi(e,r,{name:t,index:a,group:s,on:Foi,tween:$oi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:lDn})}function Q0t(e,t){var r=bT(e,t);if(r.state>lDn)throw new Error("too late; already scheduled");return r}function NA(e,t){var r=bT(e,t);if(r.state>nxe)throw new Error("too late; already running");return r}function bT(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Uoi(e,t,r){var a=e.__transition,s;a[t]=r,r.timer=oDn(o,0,r.time);function o(p){r.state=xyn,r.timer.restart(u,r.delay,r.time),r.delay<=p&&u(p-r.delay)}function u(p){var m,b,_,w;if(r.state!==xyn)return f();for(m in a)if(w=a[m],w.name===r.name){if(w.state===nxe)return Eyn(u);w.state===Syn?(w.state=rxe,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete a[m]):+m<t&&(w.state=rxe,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete a[m])}if(Eyn(function(){r.state===nxe&&(r.state=Syn,r.timer.restart(h,r.delay,r.time),h(p))}),r.state=Rot,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Rot){for(r.state=nxe,s=new Array(_=r.tween.length),m=0,b=-1;m<_;++m)(w=r.tween[m].value.call(e,e.__data__,r.index,r.group))&&(s[++b]=w);s.length=b+1}}function h(p){for(var m=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(f),r.state=Iot,1),b=-1,_=s.length;++b<_;)s[b].call(e,m);r.state===Iot&&(r.on.call("end",e,e.__data__,r.index,r.group),f())}function f(){r.state=rxe,r.timer.stop(),delete a[t];for(var p in a)return;delete e.__transition}}function zoi(e,t){var r=e.__transition,a,s,o=!0,u;if(r){t=t==null?null:t+"";for(u in r){if((a=r[u]).name!==t){o=!1;continue}s=a.state>Rot&&a.state<Iot,a.state=rxe,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[u]}o&&delete e.__transition}}function Goi(e){return this.each(function(){zoi(this,e)})}function qoi(e,t){var r,a;return function(){var s=NA(this,e),o=s.tween;if(o!==r){a=r=o;for(var u=0,h=a.length;u<h;++u)if(a[u].name===t){a=a.slice(),a.splice(u,1);break}}s.tween=a}}function Hoi(e,t,r){var a,s;if(typeof r!="function")throw new Error;return function(){var o=NA(this,e),u=o.tween;if(u!==a){s=(a=u).slice();for(var h={name:t,value:r},f=0,p=s.length;f<p;++f)if(s[f].name===t){s[f]=h;break}f===p&&s.push(h)}o.tween=s}}function Voi(e,t){var r=this._id;if(e+="",arguments.length<2){for(var a=bT(this.node(),r).tween,s=0,o=a.length,u;s<o;++s)if((u=a[s]).name===e)return u.value;return null}return this.each((t==null?qoi:Hoi)(r,e,t))}function Z0t(e,t,r){var a=e._id;return e.each(function(){var s=NA(this,a);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return bT(s,a).value[t]}}function cDn(e,t){var r;return(typeof t=="number"?D3:t instanceof OF?p4e:(r=OF(t))?(t=r,p4e):tDn)(e,t)}function Yoi(e){return function(){this.removeAttribute(e)}}function joi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Woi(e,t,r){var a,s=r+"",o;return function(){var u=this.getAttribute(e);return u===s?null:u===a?o:o=t(a=u,r)}}function Koi(e,t,r){var a,s=r+"",o;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===a?o:o=t(a=u,r)}}function Xoi(e,t,r){var a,s,o;return function(){var u,h=r(this),f;return h==null?void this.removeAttribute(e):(u=this.getAttribute(e),f=h+"",u===f?null:u===a&&f===s?o:(s=f,o=t(a=u,h)))}}function Qoi(e,t,r){var a,s,o;return function(){var u,h=r(this),f;return h==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),f=h+"",u===f?null:u===a&&f===s?o:(s=f,o=t(a=u,h)))}}function Zoi(e,t){var r=nAe(e),a=r==="transform"?Ooi:cDn;return this.attrTween(e,typeof t=="function"?(r.local?Qoi:Xoi)(r,a,Z0t(this,"attr."+e,t)):t==null?(r.local?joi:Yoi)(r):(r.local?Koi:Woi)(r,a,t))}function Joi(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function eli(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function tli(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&eli(e,o)),r}return s._value=t,s}function nli(e,t){var r,a;function s(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&Joi(e,o)),r}return s._value=t,s}function rli(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var a=nAe(e);return this.tween(r,(a.local?tli:nli)(a,t))}function ili(e,t){return function(){Q0t(this,e).delay=+t.apply(this,arguments)}}function ali(e,t){return t=+t,function(){Q0t(this,e).delay=t}}function sli(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ili:ali)(t,e)):bT(this.node(),t).delay}function oli(e,t){return function(){NA(this,e).duration=+t.apply(this,arguments)}}function lli(e,t){return t=+t,function(){NA(this,e).duration=t}}function cli(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oli:lli)(t,e)):bT(this.node(),t).duration}function uli(e,t){if(typeof t!="function")throw new Error;return function(){NA(this,e).ease=t}}function hli(e){var t=this._id;return arguments.length?this.each(uli(t,e)):bT(this.node(),t).ease}function dli(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;NA(this,e).ease=r}}function fli(e){if(typeof e!="function")throw new Error;return this.each(dli(this._id,e))}function pli(e){typeof e!="function"&&(e=MLn(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s)for(var o=t[s],u=o.length,h=a[s]=[],f,p=0;p<u;++p)(f=o[p])&&e.call(f,f.__data__,p,o)&&h.push(f);return new J7(a,this._parents,this._name,this._id)}function gli(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,a=t.length,s=r.length,o=Math.min(a,s),u=new Array(a),h=0;h<o;++h)for(var f=t[h],p=r[h],m=f.length,b=u[h]=new Array(m),_,w=0;w<m;++w)(_=f[w]||p[w])&&(b[w]=_);for(;h<a;++h)u[h]=t[h];return new J7(u,this._parents,this._name,this._id)}function mli(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function bli(e,t,r){var a,s,o=mli(t)?Q0t:NA;return function(){var u=o(this,e),h=u.on;h!==a&&(s=(a=h).copy()).on(t,r),u.on=s}}function yli(e,t){var r=this._id;return arguments.length<2?bT(this.node(),r).on.on(e):this.each(bli(r,e,t))}function vli(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function _li(){return this.on("end.remove",vli(this._id))}function wli(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Y0t(e));for(var a=this._groups,s=a.length,o=new Array(s),u=0;u<s;++u)for(var h=a[u],f=h.length,p=o[u]=new Array(f),m,b,_=0;_<f;++_)(m=h[_])&&(b=e.call(m,m.__data__,_,h))&&("__data__"in m&&(b.__data__=m.__data__),p[_]=b,sAe(p[_],t,r,_,p,bT(m,r)));return new J7(o,this._parents,t,r)}function Eli(e){var t=this._name,r=this._id;typeof e!="function"&&(e=DLn(e));for(var a=this._groups,s=a.length,o=[],u=[],h=0;h<s;++h)for(var f=a[h],p=f.length,m,b=0;b<p;++b)if(m=f[b]){for(var _=e.call(m,m.__data__,b,f),w,S=bT(m,r),C=0,A=_.length;C<A;++C)(w=_[C])&&sAe(w,t,r,C,_,S);o.push(_),u.push(m)}return new J7(o,u,t,r)}var xli=ice.prototype.constructor;function Sli(){return new xli(this._groups,this._parents)}function Tli(e,t){var r,a,s;return function(){var o=Cj(this,e),u=(this.style.removeProperty(e),Cj(this,e));return o===u?null:o===r&&u===a?s:s=t(r=o,a=u)}}function uDn(e){return function(){this.style.removeProperty(e)}}function Cli(e,t,r){var a,s=r+"",o;return function(){var u=Cj(this,e);return u===s?null:u===a?o:o=t(a=u,r)}}function Ali(e,t,r){var a,s,o;return function(){var u=Cj(this,e),h=r(this),f=h+"";return h==null&&(f=h=(this.style.removeProperty(e),Cj(this,e))),u===f?null:u===a&&f===s?o:(s=f,o=t(a=u,h))}}function kli(e,t){var r,a,s,o="style."+t,u="end."+o,h;return function(){var f=NA(this,e),p=f.on,m=f.value[o]==null?h||(h=uDn(t)):void 0;(p!==r||s!==m)&&(a=(r=p).copy()).on(u,s=m),f.on=a}}function Rli(e,t,r){var a=(e+="")=="transform"?Noi:cDn;return t==null?this.styleTween(e,Tli(e,a)).on("end.style."+e,uDn(e)):typeof t=="function"?this.styleTween(e,Ali(e,a,Z0t(this,"style."+e,t))).each(kli(this._id,e)):this.styleTween(e,Cli(e,a,t),r).on("end.style."+e,null)}function Ili(e,t,r){return function(a){this.style.setProperty(e,t.call(this,a),r)}}function Nli(e,t,r){var a,s;function o(){var u=t.apply(this,arguments);return u!==s&&(a=(s=u)&&Ili(e,u,r)),a}return o._value=t,o}function Oli(e,t,r){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,Nli(e,t,r??""))}function Lli(e){return function(){this.textContent=e}}function Dli(e){return function(){var t=e(this);this.textContent=t??""}}function Mli(e){return this.tween("text",typeof e=="function"?Dli(Z0t(this,"text",e)):Lli(e==null?"":e+""))}function Pli(e){return function(t){this.textContent=e.call(this,t)}}function Bli(e){var t,r;function a(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Pli(s)),t}return a._value=e,a}function Fli(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Bli(e))}function $li(){for(var e=this._name,t=this._id,r=hDn(),a=this._groups,s=a.length,o=0;o<s;++o)for(var u=a[o],h=u.length,f,p=0;p<h;++p)if(f=u[p]){var m=bT(f,t);sAe(f,e,r,p,u,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new J7(a,this._parents,e,r)}function Uli(){var e,t,r=this,a=r._id,s=r.size();return new Promise(function(o,u){var h={value:u},f={value:function(){--s===0&&o()}};r.each(function(){var p=NA(this,a),m=p.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(h),t._.interrupt.push(h),t._.end.push(f)),p.on=t}),s===0&&o()})}var zli=0;function J7(e,t,r,a){this._groups=e,this._parents=t,this._name=r,this._id=a}function hDn(){return++zli}var Y6=ice.prototype;J7.prototype={constructor:J7,select:wli,selectAll:Eli,selectChild:Y6.selectChild,selectChildren:Y6.selectChildren,filter:pli,merge:gli,selection:Sli,transition:$li,call:Y6.call,nodes:Y6.nodes,node:Y6.node,size:Y6.size,empty:Y6.empty,each:Y6.each,on:yli,attr:Zoi,attrTween:rli,style:Rli,styleTween:Oli,text:Mli,textTween:Fli,remove:_li,tween:Voi,delay:sli,duration:cli,ease:hli,easeVarying:fli,end:Uli,[Symbol.iterator]:Y6[Symbol.iterator]};function Gli(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qli={time:null,delay:0,duration:250,ease:Gli};function Hli(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Vli(e){var t,r;e instanceof J7?(t=e._id,e=e._name):(t=hDn(),(r=qli).time=X0t(),e=e==null?null:e+"");for(var a=this._groups,s=a.length,o=0;o<s;++o)for(var u=a[o],h=u.length,f,p=0;p<h;++p)(f=u[p])&&sAe(f,e,t,p,u,r||Hli(f,t));return new J7(a,this._parents,e,t)}ice.prototype.interrupt=Goi;ice.prototype.transition=Vli;const Not=Math.PI,Oot=2*Not,AB=1e-6,Yli=Oot-AB;function dDn(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function jli(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dDn;const r=10**t;return function(a){this._+=a[0];for(let s=1,o=a.length;s<o;++s)this._+=Math.round(arguments[s]*r)/r+a[s]}}let Wli=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?dDn:jli(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,a,s){this._append`Q${+t},${+r},${this._x1=+a},${this._y1=+s}`}bezierCurveTo(t,r,a,s,o,u){this._append`C${+t},${+r},${+a},${+s},${this._x1=+o},${this._y1=+u}`}arcTo(t,r,a,s,o){if(t=+t,r=+r,a=+a,s=+s,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,h=this._y1,f=a-t,p=s-r,m=u-t,b=h-r,_=m*m+b*b;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(_>AB)if(!(Math.abs(b*f-p*m)>AB)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let w=a-u,S=s-h,C=f*f+p*p,A=w*w+S*S,k=Math.sqrt(C),I=Math.sqrt(_),N=o*Math.tan((Not-Math.acos((C+_-A)/(2*k*I)))/2),L=N/I,P=N/k;Math.abs(L-1)>AB&&this._append`L${t+L*m},${r+L*b}`,this._append`A${o},${o},0,0,${+(b*w>m*S)},${this._x1=t+P*f},${this._y1=r+P*p}`}}arc(t,r,a,s,o,u){if(t=+t,r=+r,a=+a,u=!!u,a<0)throw new Error(`negative radius: ${a}`);let h=a*Math.cos(s),f=a*Math.sin(s),p=t+h,m=r+f,b=1^u,_=u?s-o:o-s;this._x1===null?this._append`M${p},${m}`:(Math.abs(this._x1-p)>AB||Math.abs(this._y1-m)>AB)&&this._append`L${p},${m}`,a&&(_<0&&(_=_%Oot+Oot),_>Yli?this._append`A${a},${a},0,1,${b},${t-h},${r-f}A${a},${a},0,1,${b},${this._x1=p},${this._y1=m}`:_>AB&&this._append`A${a},${a},0,${+(_>=Not)},${b},${this._x1=t+a*Math.cos(o)},${this._y1=r+a*Math.sin(o)}`)}rect(t,r,a,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+s}h${-a}Z`}toString(){return this._}};function Kli(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Xli(e,t){return fetch(e,t).then(Kli)}function Qli(e){return(t,r)=>Xli(t,r).then(a=>new DOMParser().parseFromString(a,e))}var Zli=Qli("image/svg+xml");function Jli(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function y4e(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function kj(e){return e=y4e(Math.abs(e)),e?e[1]:NaN}function eci(e,t){return function(r,a){for(var s=r.length,o=[],u=0,h=e[0],f=0;s>0&&h>0&&(f+h+1>a&&(h=Math.max(1,a-f)),o.push(r.substring(s-=h,s+h)),!((f+=h+1)>a));)h=e[u=(u+1)%e.length];return o.reverse().join(t)}}function tci(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var nci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function v4e(e){if(!(t=nci.exec(e)))throw new Error("invalid format: "+e);var t;return new J0t({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}v4e.prototype=J0t.prototype;function J0t(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}J0t.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rci(e){e:for(var t=e.length,r=1,a=-1,s;r<t;++r)switch(e[r]){case".":a=s=r;break;case"0":a===0&&(a=r),s=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(s+1):e}var fDn;function ici(e,t){var r=y4e(e,t);if(!r)return e+"";var a=r[0],s=r[1],o=s-(fDn=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,u=a.length;return o===u?a:o>u?a+new Array(o-u+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+y4e(e,Math.max(0,t+o-1))[0]}function Tyn(e,t){var r=y4e(e,t);if(!r)return e+"";var a=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}const Cyn={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Jli,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tyn(e*100,t),r:Tyn,s:ici,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ayn(e){return e}var kyn=Array.prototype.map,Ryn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aci(e){var t=e.grouping===void 0||e.thousands===void 0?Ayn:eci(kyn.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Ayn:tci(kyn.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",h=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function p(b){b=v4e(b);var _=b.fill,w=b.align,S=b.sign,C=b.symbol,A=b.zero,k=b.width,I=b.comma,N=b.precision,L=b.trim,P=b.type;P==="n"?(I=!0,P="g"):Cyn[P]||(N===void 0&&(N=12),L=!0,P="g"),(A||_==="0"&&w==="=")&&(A=!0,_="0",w="=");var M=C==="$"?r:C==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",F=C==="$"?a:/[%p]/.test(P)?u:"",U=Cyn[P],$=/[defgprs%]/.test(P);N=N===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function G(B){var Z=M,z=F,Y,W,Q;if(P==="c")z=U(B)+z,B="";else{B=+B;var V=B<0||1/B<0;if(B=isNaN(B)?f:U(Math.abs(B),N),L&&(B=rci(B)),V&&+B==0&&S!=="+"&&(V=!1),Z=(V?S==="("?S:h:S==="-"||S==="("?"":S)+Z,z=(P==="s"?Ryn[8+fDn/3]:"")+z+(V&&S==="("?")":""),$){for(Y=-1,W=B.length;++Y<W;)if(Q=B.charCodeAt(Y),48>Q||Q>57){z=(Q===46?s+B.slice(Y+1):B.slice(Y))+z,B=B.slice(0,Y);break}}}I&&!A&&(B=t(B,1/0));var j=Z.length+B.length+z.length,ee=j<k?new Array(k-j+1).join(_):"";switch(I&&A&&(B=t(ee+B,ee.length?k-z.length:1/0),ee=""),w){case"<":B=Z+B+z+ee;break;case"=":B=Z+ee+B+z;break;case"^":B=ee.slice(0,j=ee.length>>1)+Z+B+z+ee.slice(j);break;default:B=ee+Z+B+z;break}return o(B)}return G.toString=function(){return b+""},G}function m(b,_){var w=p((b=v4e(b),b.type="f",b)),S=Math.max(-8,Math.min(8,Math.floor(kj(_)/3)))*3,C=Math.pow(10,-S),A=Ryn[8+S/3];return function(k){return w(C*k)+A}}return{format:p,formatPrefix:m}}var K_e,PB,pDn;sci({thousands:",",grouping:[3],currency:["$",""]});function sci(e){return K_e=aci(e),PB=K_e.format,pDn=K_e.formatPrefix,K_e}function oci(e){return Math.max(0,-kj(Math.abs(e)))}function lci(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kj(t)/3)))*3-kj(Math.abs(e)))}function cci(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,kj(t)-kj(e))+1}function uci(e){var t=0,r=e.children,a=r&&r.length;if(!a)t=1;else for(;--a>=0;)t+=r[a].value;e.value=t}function hci(){return this.eachAfter(uci)}function dci(e,t){let r=-1;for(const a of this)e.call(t,a,++r,this);return this}function fci(e,t){for(var r=this,a=[r],s,o,u=-1;r=a.pop();)if(e.call(t,r,++u,this),s=r.children)for(o=s.length-1;o>=0;--o)a.push(s[o]);return this}function pci(e,t){for(var r=this,a=[r],s=[],o,u,h,f=-1;r=a.pop();)if(s.push(r),o=r.children)for(u=0,h=o.length;u<h;++u)a.push(o[u]);for(;r=s.pop();)e.call(t,r,++f,this);return this}function gci(e,t){let r=-1;for(const a of this)if(e.call(t,a,++r,this))return a}function mci(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,a=t.children,s=a&&a.length;--s>=0;)r+=a[s].value;t.value=r})}function bci(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function yci(e){for(var t=this,r=vci(t,e),a=[t];t!==r;)t=t.parent,a.push(t);for(var s=a.length;e!==r;)a.splice(s,0,e),e=e.parent;return a}function vci(e,t){if(e===t)return e;var r=e.ancestors(),a=t.ancestors(),s=null;for(e=r.pop(),t=a.pop();e===t;)s=e,e=r.pop(),t=a.pop();return s}function _ci(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function wci(){return Array.from(this)}function Eci(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function xci(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Sci(){var e=this,t,r=[e],a,s,o;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,a=e.children)for(s=0,o=a.length;s<o;++s)r.push(a[s]);while(r.length)}function e1t(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Aci)):t===void 0&&(t=Cci);for(var r=new _4e(e),a,s=[r],o,u,h,f;a=s.pop();)if((u=t(a.data))&&(f=(u=Array.from(u)).length))for(a.children=u,h=f-1;h>=0;--h)s.push(o=u[h]=new _4e(u[h])),o.parent=a,o.depth=a.depth+1;return r.eachBefore(Rci)}function Tci(){return e1t(this).eachBefore(kci)}function Cci(e){return e.children}function Aci(e){return Array.isArray(e)?e[1]:null}function kci(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Rci(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function _4e(e){this.data=e,this.depth=this.height=0,this.parent=null}_4e.prototype=e1t.prototype={constructor:_4e,count:hci,each:dci,eachAfter:pci,eachBefore:fci,find:gci,sum:mci,sort:bci,path:yci,ancestors:_ci,descendants:wci,leaves:Eci,links:xci,copy:Tci,[Symbol.iterator]:Sci};function Ici(e){if(typeof e!="function")throw new Error;return e}function Dre(){return 0}function Mre(e){return function(){return e}}function Nci(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Oci(e,t,r,a,s){for(var o=e.children,u,h=-1,f=o.length,p=e.value&&(a-t)/e.value;++h<f;)u=o[h],u.y0=r,u.y1=s,u.x0=t,u.x1=t+=u.value*p}function Lci(e,t,r,a,s){for(var o=e.children,u,h=-1,f=o.length,p=e.value&&(s-r)/e.value;++h<f;)u=o[h],u.x0=t,u.x1=a,u.y0=r,u.y1=r+=u.value*p}var Dci=(1+Math.sqrt(5))/2;function Mci(e,t,r,a,s,o){for(var u=[],h=t.children,f,p,m=0,b=0,_=h.length,w,S,C=t.value,A,k,I,N,L,P,M;m<_;){w=s-r,S=o-a;do A=h[b++].value;while(!A&&b<_);for(k=I=A,P=Math.max(S/w,w/S)/(C*e),M=A*A*P,L=Math.max(I/M,M/k);b<_;++b){if(A+=p=h[b].value,p<k&&(k=p),p>I&&(I=p),M=A*A*P,N=Math.max(I/M,M/k),N>L){A-=p;break}L=N}u.push(f={value:A,dice:w<S,children:h.slice(m,b)}),f.dice?Oci(f,r,a,s,C?a+=S*A/C:o):Lci(f,r,a,C?r+=w*A/C:s,o),C-=A,m=b}return u}const Pci=function e(t){function r(a,s,o,u,h){Mci(t,a,s,o,u,h)}return r.ratio=function(a){return e((a=+a)>1?a:1)},r}(Dci);function Bci(){var e=Pci,t=!1,r=1,a=1,s=[0],o=Dre,u=Dre,h=Dre,f=Dre,p=Dre;function m(_){return _.x0=_.y0=0,_.x1=r,_.y1=a,_.eachBefore(b),s=[0],t&&_.eachBefore(Nci),_}function b(_){var w=s[_.depth],S=_.x0+w,C=_.y0+w,A=_.x1-w,k=_.y1-w;A<S&&(S=A=(S+A)/2),k<C&&(C=k=(C+k)/2),_.x0=S,_.y0=C,_.x1=A,_.y1=k,_.children&&(w=s[_.depth+1]=o(_)/2,S+=p(_)-w,C+=u(_)-w,A-=h(_)-w,k-=f(_)-w,A<S&&(S=A=(S+A)/2),k<C&&(C=k=(C+k)/2),e(_,S,C,A,k))}return m.round=function(_){return arguments.length?(t=!!_,m):t},m.size=function(_){return arguments.length?(r=+_[0],a=+_[1],m):[r,a]},m.tile=function(_){return arguments.length?(e=Ici(_),m):e},m.padding=function(_){return arguments.length?m.paddingInner(_).paddingOuter(_):m.paddingInner()},m.paddingInner=function(_){return arguments.length?(o=typeof _=="function"?_:Mre(+_),m):o},m.paddingOuter=function(_){return arguments.length?m.paddingTop(_).paddingRight(_).paddingBottom(_).paddingLeft(_):m.paddingTop()},m.paddingTop=function(_){return arguments.length?(u=typeof _=="function"?_:Mre(+_),m):u},m.paddingRight=function(_){return arguments.length?(h=typeof _=="function"?_:Mre(+_),m):h},m.paddingBottom=function(_){return arguments.length?(f=typeof _=="function"?_:Mre(+_),m):f},m.paddingLeft=function(_){return arguments.length?(p=typeof _=="function"?_:Mre(+_),m):p},m}function oAe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Iyn=Symbol("implicit");function cA(){var e=new oyn,t=[],r=[],a=Iyn;function s(o){let u=e.get(o);if(u===void 0){if(a!==Iyn)return a;e.set(o,u=t.push(o)-1)}return r[u%r.length]}return s.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new oyn;for(const u of o)e.has(u)||e.set(u,t.push(u)-1);return s},s.range=function(o){return arguments.length?(r=Array.from(o),s):r.slice()},s.unknown=function(o){return arguments.length?(a=o,s):a},s.copy=function(){return cA(t,r).unknown(a)},oAe.apply(s,arguments),s}function goe(){var e=cA().unknown(void 0),t=e.domain,r=e.range,a=0,s=1,o,u,h=!1,f=0,p=0,m=.5;delete e.unknown;function b(){var _=t().length,w=s<a,S=w?s:a,C=w?a:s;o=(C-S)/Math.max(1,_-f+p*2),h&&(o=Math.floor(o)),S+=(C-S-o*(_-f))*m,u=o*(1-f),h&&(S=Math.round(S),u=Math.round(u));var A=gai(_).map(function(k){return S+o*k});return r(w?A.reverse():A)}return e.domain=function(_){return arguments.length?(t(_),b()):t()},e.range=function(_){return arguments.length?([a,s]=_,a=+a,s=+s,b()):[a,s]},e.rangeRound=function(_){return[a,s]=_,a=+a,s=+s,h=!0,b()},e.bandwidth=function(){return u},e.step=function(){return o},e.round=function(_){return arguments.length?(h=!!_,b()):h},e.padding=function(_){return arguments.length?(f=Math.min(1,p=+_),b()):f},e.paddingInner=function(_){return arguments.length?(f=Math.min(1,_),b()):f},e.paddingOuter=function(_){return arguments.length?(p=+_,b()):p},e.align=function(_){return arguments.length?(m=Math.max(0,Math.min(1,_)),b()):m},e.copy=function(){return goe(t(),[a,s]).round(h).paddingInner(f).paddingOuter(p).align(m)},oAe.apply(b(),arguments)}function Fci(e){return function(){return e}}function $ci(e){return+e}var Nyn=[0,1];function kV(e){return e}function Lot(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Fci(isNaN(t)?NaN:.5)}function Uci(e,t){var r;return e>t&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function zci(e,t,r){var a=e[0],s=e[1],o=t[0],u=t[1];return s<a?(a=Lot(s,a),o=r(u,o)):(a=Lot(a,s),o=r(o,u)),function(h){return o(a(h))}}function Gci(e,t,r){var a=Math.min(e.length,t.length)-1,s=new Array(a),o=new Array(a),u=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<a;)s[u]=Lot(e[u],e[u+1]),o[u]=r(t[u],t[u+1]);return function(h){var f=oai(e,h,1,a)-1;return o[f](s[f](h))}}function gDn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qci(){var e=Nyn,t=Nyn,r=K0t,a,s,o,u=kV,h,f,p;function m(){var _=Math.min(e.length,t.length);return u!==kV&&(u=Uci(e[0],e[_-1])),h=_>2?Gci:zci,f=p=null,b}function b(_){return _==null||isNaN(_=+_)?o:(f||(f=h(e.map(a),t,r)))(a(u(_)))}return b.invert=function(_){return u(s((p||(p=h(t,e.map(a),D3)))(_)))},b.domain=function(_){return arguments.length?(e=Array.from(_,$ci),m()):e.slice()},b.range=function(_){return arguments.length?(t=Array.from(_),m()):t.slice()},b.rangeRound=function(_){return t=Array.from(_),r=koi,m()},b.clamp=function(_){return arguments.length?(u=_?!0:kV,m()):u!==kV},b.interpolate=function(_){return arguments.length?(r=_,m()):r},b.unknown=function(_){return arguments.length?(o=_,b):o},function(_,w){return a=_,s=w,m()}}function mDn(){return qci()(kV,kV)}function Hci(e,t,r,a){var s=wot(e,t,r),o;switch(a=v4e(a??",f"),a.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(o=lci(s,u))&&(a.precision=o),pDn(a,u)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=cci(s,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=oci(s))&&(a.precision=o-(a.type==="%")*2);break}}return PB(a)}function Vci(e){var t=e.domain;return e.ticks=function(r){var a=t();return pai(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var s=t();return Hci(s[0],s[s.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),s=0,o=a.length-1,u=a[s],h=a[o],f,p,m=10;for(h<u&&(p=u,u=h,h=p,p=s,s=o,o=p);m-- >0;){if(p=_ot(u,h,r),p===f)return a[s]=u,a[o]=h,t(a);if(p>0)u=Math.floor(u/p)*p,h=Math.ceil(h/p)*p;else if(p<0)u=Math.ceil(u*p)/p,h=Math.floor(h*p)/p;else break;f=p}return e},e}function sT(){var e=mDn();return e.copy=function(){return gDn(e,sT())},oAe.apply(e,arguments),Vci(e)}function Yci(e,t){e=e.slice();var r=0,a=e.length-1,s=e[r],o=e[a],u;return o<s&&(u=r,r=a,a=u,u=s,s=o,o=u),e[r]=t.floor(s),e[a]=t.ceil(o),e}const ytt=new Date,vtt=new Date;function Fp(e,t,r,a){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=o=>(e(o=new Date(+o)),o),s.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),s.round=o=>{const u=s(o),h=s.ceil(o);return o-u<h-o?u:h},s.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,h)=>{const f=[];if(o=s.ceil(o),h=h==null?1:Math.floor(h),!(o<u)||!(h>0))return f;let p;do f.push(p=new Date(+o)),t(o,h),e(o);while(p<o&&o<u);return f},s.filter=o=>Fp(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,h)=>{if(u>=u)if(h<0)for(;++h<=0;)for(;t(u,-1),!o(u););else for(;--h>=0;)for(;t(u,1),!o(u););}),r&&(s.count=(o,u)=>(ytt.setTime(+o),vtt.setTime(+u),e(ytt),e(vtt),Math.floor(r(ytt,vtt))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(a?u=>a(u)%o===0:u=>s.count(0,u)%o===0):s)),s}const VO=Fp(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);VO.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fp(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):VO);VO.range;const C7=1e3,aS=C7*60,A7=aS*60,eR=A7*24,t1t=eR*7,Oyn=eR*30,_tt=eR*365,WC=Fp(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*C7)},(e,t)=>(t-e)/C7,e=>e.getUTCSeconds());WC.range;const DF=Fp(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*C7)},(e,t)=>{e.setTime(+e+t*aS)},(e,t)=>(t-e)/aS,e=>e.getMinutes());DF.range;const jci=Fp(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*aS)},(e,t)=>(t-e)/aS,e=>e.getUTCMinutes());jci.range;const MF=Fp(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*C7-e.getMinutes()*aS)},(e,t)=>{e.setTime(+e+t*A7)},(e,t)=>(t-e)/A7,e=>e.getHours());MF.range;const Wci=Fp(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*A7)},(e,t)=>(t-e)/A7,e=>e.getUTCHours());Wci.range;const tR=Fp(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aS)/eR,e=>e.getDate()-1);tR.range;const n1t=Fp(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/eR,e=>e.getUTCDate()-1);n1t.range;const Kci=Fp(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/eR,e=>Math.floor(e/eR));Kci.range;function S$(e){return Fp(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*aS)/t1t)}const MW=S$(0),Rj=S$(1),r1t=S$(2),i1t=S$(3),YO=S$(4),a1t=S$(5),s1t=S$(6);MW.range;Rj.range;r1t.range;i1t.range;YO.range;a1t.range;s1t.range;function T$(e){return Fp(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/t1t)}const bDn=T$(0),w4e=T$(1),Xci=T$(2),Qci=T$(3),Ij=T$(4),Zci=T$(5),Jci=T$(6);bDn.range;w4e.range;Xci.range;Qci.range;Ij.range;Zci.range;Jci.range;const PF=Fp(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());PF.range;const eui=Fp(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eui.range;const nR=Fp(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());nR.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fp(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});nR.range;const BF=Fp(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());BF.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fp(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});BF.range;function tui(e,t,r,a,s,o){const u=[[WC,1,C7],[WC,5,5*C7],[WC,15,15*C7],[WC,30,30*C7],[o,1,aS],[o,5,5*aS],[o,15,15*aS],[o,30,30*aS],[s,1,A7],[s,3,3*A7],[s,6,6*A7],[s,12,12*A7],[a,1,eR],[a,2,2*eR],[r,1,t1t],[t,1,Oyn],[t,3,3*Oyn],[e,1,_tt]];function h(p,m,b){const _=m<p;_&&([p,m]=[m,p]);const w=b&&typeof b.range=="function"?b:f(p,m,b),S=w?w.range(p,+m+1):[];return _?S.reverse():S}function f(p,m,b){const _=Math.abs(m-p)/b,w=V0t(([,,A])=>A).right(u,_);if(w===u.length)return e.every(wot(p/_tt,m/_tt,b));if(w===0)return VO.every(Math.max(wot(p,m,b),1));const[S,C]=u[_/u[w-1][2]<u[w][2]/_?w-1:w];return S.every(C)}return[h,f]}const[nui,rui]=tui(nR,PF,MW,tR,MF,DF);function wtt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ett(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Pre(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function iui(e){var t=e.dateTime,r=e.date,a=e.time,s=e.periods,o=e.days,u=e.shortDays,h=e.months,f=e.shortMonths,p=Bre(s),m=Fre(s),b=Bre(o),_=Fre(o),w=Bre(u),S=Fre(u),C=Bre(h),A=Fre(h),k=Bre(f),I=Fre(f),N={a:V,A:j,b:ee,B:te,c:null,d:Fyn,e:Fyn,f:Aui,g:Bui,G:$ui,H:Sui,I:Tui,j:Cui,L:yDn,m:kui,M:Rui,p:ne,q:se,Q:zyn,s:Gyn,S:Iui,u:Nui,U:Oui,V:Lui,w:Dui,W:Mui,x:null,X:null,y:Pui,Y:Fui,Z:Uui,"%":Uyn},L={a:ie,A:ge,b:ce,B:be,c:null,d:$yn,e:$yn,f:Hui,g:ehi,G:nhi,H:zui,I:Gui,j:qui,L:_Dn,m:Vui,M:Yui,p:ve,q:De,Q:zyn,s:Gyn,S:jui,u:Wui,U:Kui,V:Xui,w:Qui,W:Zui,x:null,X:null,y:Jui,Y:thi,Z:rhi,"%":Uyn},P={a:G,A:B,b:Z,B:z,c:Y,d:Pyn,e:Pyn,f:_ui,g:Myn,G:Dyn,H:Byn,I:Byn,j:mui,L:vui,m:gui,M:bui,p:$,q:pui,Q:Eui,s:xui,S:yui,u:cui,U:uui,V:hui,w:lui,W:dui,x:W,X:Q,y:Myn,Y:Dyn,Z:fui,"%":wui};N.x=M(r,N),N.X=M(a,N),N.c=M(t,N),L.x=M(r,L),L.X=M(a,L),L.c=M(t,L);function M(ye,Ee){return function(he){var we=[],Ce=-1,Ie=0,Le=ye.length,Fe,Ve,Oe;for(he instanceof Date||(he=new Date(+he));++Ce<Le;)ye.charCodeAt(Ce)===37&&(we.push(ye.slice(Ie,Ce)),(Ve=Lyn[Fe=ye.charAt(++Ce)])!=null?Fe=ye.charAt(++Ce):Ve=Fe==="e"?" ":"0",(Oe=Ee[Fe])&&(Fe=Oe(he,Ve)),we.push(Fe),Ie=Ce+1);return we.push(ye.slice(Ie,Ce)),we.join("")}}function F(ye,Ee){return function(he){var we=Pre(1900,void 0,1),Ce=U(we,ye,he+="",0),Ie,Le;if(Ce!=he.length)return null;if("Q"in we)return new Date(we.Q);if("s"in we)return new Date(we.s*1e3+("L"in we?we.L:0));if(Ee&&!("Z"in we)&&(we.Z=0),"p"in we&&(we.H=we.H%12+we.p*12),we.m===void 0&&(we.m="q"in we?we.q:0),"V"in we){if(we.V<1||we.V>53)return null;"w"in we||(we.w=1),"Z"in we?(Ie=Ett(Pre(we.y,0,1)),Le=Ie.getUTCDay(),Ie=Le>4||Le===0?w4e.ceil(Ie):w4e(Ie),Ie=n1t.offset(Ie,(we.V-1)*7),we.y=Ie.getUTCFullYear(),we.m=Ie.getUTCMonth(),we.d=Ie.getUTCDate()+(we.w+6)%7):(Ie=wtt(Pre(we.y,0,1)),Le=Ie.getDay(),Ie=Le>4||Le===0?Rj.ceil(Ie):Rj(Ie),Ie=tR.offset(Ie,(we.V-1)*7),we.y=Ie.getFullYear(),we.m=Ie.getMonth(),we.d=Ie.getDate()+(we.w+6)%7)}else("W"in we||"U"in we)&&("w"in we||(we.w="u"in we?we.u%7:"W"in we?1:0),Le="Z"in we?Ett(Pre(we.y,0,1)).getUTCDay():wtt(Pre(we.y,0,1)).getDay(),we.m=0,we.d="W"in we?(we.w+6)%7+we.W*7-(Le+5)%7:we.w+we.U*7-(Le+6)%7);return"Z"in we?(we.H+=we.Z/100|0,we.M+=we.Z%100,Ett(we)):wtt(we)}}function U(ye,Ee,he,we){for(var Ce=0,Ie=Ee.length,Le=he.length,Fe,Ve;Ce<Ie;){if(we>=Le)return-1;if(Fe=Ee.charCodeAt(Ce++),Fe===37){if(Fe=Ee.charAt(Ce++),Ve=P[Fe in Lyn?Ee.charAt(Ce++):Fe],!Ve||(we=Ve(ye,he,we))<0)return-1}else if(Fe!=he.charCodeAt(we++))return-1}return we}function $(ye,Ee,he){var we=p.exec(Ee.slice(he));return we?(ye.p=m.get(we[0].toLowerCase()),he+we[0].length):-1}function G(ye,Ee,he){var we=w.exec(Ee.slice(he));return we?(ye.w=S.get(we[0].toLowerCase()),he+we[0].length):-1}function B(ye,Ee,he){var we=b.exec(Ee.slice(he));return we?(ye.w=_.get(we[0].toLowerCase()),he+we[0].length):-1}function Z(ye,Ee,he){var we=k.exec(Ee.slice(he));return we?(ye.m=I.get(we[0].toLowerCase()),he+we[0].length):-1}function z(ye,Ee,he){var we=C.exec(Ee.slice(he));return we?(ye.m=A.get(we[0].toLowerCase()),he+we[0].length):-1}function Y(ye,Ee,he){return U(ye,t,Ee,he)}function W(ye,Ee,he){return U(ye,r,Ee,he)}function Q(ye,Ee,he){return U(ye,a,Ee,he)}function V(ye){return u[ye.getDay()]}function j(ye){return o[ye.getDay()]}function ee(ye){return f[ye.getMonth()]}function te(ye){return h[ye.getMonth()]}function ne(ye){return s[+(ye.getHours()>=12)]}function se(ye){return 1+~~(ye.getMonth()/3)}function ie(ye){return u[ye.getUTCDay()]}function ge(ye){return o[ye.getUTCDay()]}function ce(ye){return f[ye.getUTCMonth()]}function be(ye){return h[ye.getUTCMonth()]}function ve(ye){return s[+(ye.getUTCHours()>=12)]}function De(ye){return 1+~~(ye.getUTCMonth()/3)}return{format:function(ye){var Ee=M(ye+="",N);return Ee.toString=function(){return ye},Ee},parse:function(ye){var Ee=F(ye+="",!1);return Ee.toString=function(){return ye},Ee},utcFormat:function(ye){var Ee=M(ye+="",L);return Ee.toString=function(){return ye},Ee},utcParse:function(ye){var Ee=F(ye+="",!0);return Ee.toString=function(){return ye},Ee}}}var Lyn={"-":"",_:" ",0:"0"},Lg=/^\s*\d+/,aui=/^%/,sui=/[\\^$*+?|[\]().{}]/g;function fu(e,t,r){var a=e<0?"-":"",s=(a?-e:e)+"",o=s.length;return a+(o<r?new Array(r-o+1).join(t)+s:s)}function oui(e){return e.replace(sui,"\\$&")}function Bre(e){return new RegExp("^(?:"+e.map(oui).join("|")+")","i")}function Fre(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function lui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function cui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function uui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function hui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function dui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function Dyn(e,t,r){var a=Lg.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function Myn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function fui(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function pui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function gui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Pyn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function mui(e,t,r){var a=Lg.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function Byn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function bui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function yui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function vui(e,t,r){var a=Lg.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function _ui(e,t,r){var a=Lg.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function wui(e,t,r){var a=aui.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function Eui(e,t,r){var a=Lg.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function xui(e,t,r){var a=Lg.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Fyn(e,t){return fu(e.getDate(),t,2)}function Sui(e,t){return fu(e.getHours(),t,2)}function Tui(e,t){return fu(e.getHours()%12||12,t,2)}function Cui(e,t){return fu(1+tR.count(nR(e),e),t,3)}function yDn(e,t){return fu(e.getMilliseconds(),t,3)}function Aui(e,t){return yDn(e,t)+"000"}function kui(e,t){return fu(e.getMonth()+1,t,2)}function Rui(e,t){return fu(e.getMinutes(),t,2)}function Iui(e,t){return fu(e.getSeconds(),t,2)}function Nui(e){var t=e.getDay();return t===0?7:t}function Oui(e,t){return fu(MW.count(nR(e)-1,e),t,2)}function vDn(e){var t=e.getDay();return t>=4||t===0?YO(e):YO.ceil(e)}function Lui(e,t){return e=vDn(e),fu(YO.count(nR(e),e)+(nR(e).getDay()===4),t,2)}function Dui(e){return e.getDay()}function Mui(e,t){return fu(Rj.count(nR(e)-1,e),t,2)}function Pui(e,t){return fu(e.getFullYear()%100,t,2)}function Bui(e,t){return e=vDn(e),fu(e.getFullYear()%100,t,2)}function Fui(e,t){return fu(e.getFullYear()%1e4,t,4)}function $ui(e,t){var r=e.getDay();return e=r>=4||r===0?YO(e):YO.ceil(e),fu(e.getFullYear()%1e4,t,4)}function Uui(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fu(t/60|0,"0",2)+fu(t%60,"0",2)}function $yn(e,t){return fu(e.getUTCDate(),t,2)}function zui(e,t){return fu(e.getUTCHours(),t,2)}function Gui(e,t){return fu(e.getUTCHours()%12||12,t,2)}function qui(e,t){return fu(1+n1t.count(BF(e),e),t,3)}function _Dn(e,t){return fu(e.getUTCMilliseconds(),t,3)}function Hui(e,t){return _Dn(e,t)+"000"}function Vui(e,t){return fu(e.getUTCMonth()+1,t,2)}function Yui(e,t){return fu(e.getUTCMinutes(),t,2)}function jui(e,t){return fu(e.getUTCSeconds(),t,2)}function Wui(e){var t=e.getUTCDay();return t===0?7:t}function Kui(e,t){return fu(bDn.count(BF(e)-1,e),t,2)}function wDn(e){var t=e.getUTCDay();return t>=4||t===0?Ij(e):Ij.ceil(e)}function Xui(e,t){return e=wDn(e),fu(Ij.count(BF(e),e)+(BF(e).getUTCDay()===4),t,2)}function Qui(e){return e.getUTCDay()}function Zui(e,t){return fu(w4e.count(BF(e)-1,e),t,2)}function Jui(e,t){return fu(e.getUTCFullYear()%100,t,2)}function ehi(e,t){return e=wDn(e),fu(e.getUTCFullYear()%100,t,2)}function thi(e,t){return fu(e.getUTCFullYear()%1e4,t,4)}function nhi(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ij(e):Ij.ceil(e),fu(e.getUTCFullYear()%1e4,t,4)}function rhi(){return"+0000"}function Uyn(){return"%"}function zyn(e){return+e}function Gyn(e){return Math.floor(+e/1e3)}var $H,Nj;ihi({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"]});function ihi(e){return $H=iui(e),Nj=$H.format,$H.parse,$H.utcFormat,$H.utcParse,$H}function ahi(e){return new Date(e)}function shi(e){return e instanceof Date?+e:+new Date(+e)}function EDn(e,t,r,a,s,o,u,h,f,p){var m=mDn(),b=m.invert,_=m.domain,w=p(".%L"),S=p(":%S"),C=p("%I:%M"),A=p("%I %p"),k=p("%a %d"),I=p("%b %d"),N=p("%B"),L=p("%Y");function P(M){return(f(M)<M?w:h(M)<M?S:u(M)<M?C:o(M)<M?A:a(M)<M?s(M)<M?k:I:r(M)<M?N:L)(M)}return m.invert=function(M){return new Date(b(M))},m.domain=function(M){return arguments.length?_(Array.from(M,shi)):_().map(ahi)},m.ticks=function(M){var F=_();return e(F[0],F[F.length-1],M??10)},m.tickFormat=function(M,F){return F==null?P:p(F)},m.nice=function(M){var F=_();return(!M||typeof M.range!="function")&&(M=t(F[0],F[F.length-1],M??10)),M?_(Yci(F,M)):m},m.copy=function(){return gDn(m,EDn(e,t,r,a,s,o,u,h,f,p))},m}function xDn(){return oAe.apply(EDn(nui,rui,nR,PF,MW,tR,MF,DF,WC,Nj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ohi(e){for(var t=e.length/6|0,r=new Array(t),a=0;a<t;)r[a]="#"+e.slice(a*6,++a*6);return r}const o1t=ohi("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function j0(e){return function(){return e}}const qyn=Math.abs,fb=Math.atan2,pB=Math.cos,lhi=Math.max,xtt=Math.min,pC=Math.sin,RV=Math.sqrt,gb=1e-12,moe=Math.PI,E4e=moe/2,ixe=2*moe;function chi(e){return e>1?0:e<-1?moe:Math.acos(e)}function Hyn(e){return e>=1?E4e:e<=-1?-E4e:Math.asin(e)}function SDn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new Wli(t)}function uhi(e){return e.innerRadius}function hhi(e){return e.outerRadius}function dhi(e){return e.startAngle}function fhi(e){return e.endAngle}function phi(e){return e&&e.padAngle}function ghi(e,t,r,a,s,o,u,h){var f=r-e,p=a-t,m=u-s,b=h-o,_=b*f-m*p;if(!(_*_<gb))return _=(m*(t-o)-b*(e-s))/_,[e+_*f,t+_*p]}function X_e(e,t,r,a,s,o,u){var h=e-r,f=t-a,p=(u?o:-o)/RV(h*h+f*f),m=p*f,b=-p*h,_=e+m,w=t+b,S=r+m,C=a+b,A=(_+S)/2,k=(w+C)/2,I=S-_,N=C-w,L=I*I+N*N,P=s-o,M=_*C-S*w,F=(N<0?-1:1)*RV(lhi(0,P*P*L-M*M)),U=(M*N-I*F)/L,$=(-M*I-N*F)/L,G=(M*N+I*F)/L,B=(-M*I+N*F)/L,Z=U-A,z=$-k,Y=G-A,W=B-k;return Z*Z+z*z>Y*Y+W*W&&(U=G,$=B),{cx:U,cy:$,x01:-m,y01:-b,x11:U*(s/P-1),y11:$*(s/P-1)}}function _S(){var e=uhi,t=hhi,r=j0(0),a=null,s=dhi,o=fhi,u=phi,h=null,f=SDn(p);function p(){var m,b,_=+e.apply(this,arguments),w=+t.apply(this,arguments),S=s.apply(this,arguments)-E4e,C=o.apply(this,arguments)-E4e,A=qyn(C-S),k=C>S;if(h||(h=m=f()),w<_&&(b=w,w=_,_=b),!(w>gb))h.moveTo(0,0);else if(A>ixe-gb)h.moveTo(w*pB(S),w*pC(S)),h.arc(0,0,w,S,C,!k),_>gb&&(h.moveTo(_*pB(C),_*pC(C)),h.arc(0,0,_,C,S,k));else{var I=S,N=C,L=S,P=C,M=A,F=A,U=u.apply(this,arguments)/2,$=U>gb&&(a?+a.apply(this,arguments):RV(_*_+w*w)),G=xtt(qyn(w-_)/2,+r.apply(this,arguments)),B=G,Z=G,z,Y;if($>gb){var W=Hyn($/_*pC(U)),Q=Hyn($/w*pC(U));(M-=W*2)>gb?(W*=k?1:-1,L+=W,P-=W):(M=0,L=P=(S+C)/2),(F-=Q*2)>gb?(Q*=k?1:-1,I+=Q,N-=Q):(F=0,I=N=(S+C)/2)}var V=w*pB(I),j=w*pC(I),ee=_*pB(P),te=_*pC(P);if(G>gb){var ne=w*pB(N),se=w*pC(N),ie=_*pB(L),ge=_*pC(L),ce;if(A<moe)if(ce=ghi(V,j,ie,ge,ne,se,ee,te)){var be=V-ce[0],ve=j-ce[1],De=ne-ce[0],ye=se-ce[1],Ee=1/pC(chi((be*De+ve*ye)/(RV(be*be+ve*ve)*RV(De*De+ye*ye)))/2),he=RV(ce[0]*ce[0]+ce[1]*ce[1]);B=xtt(G,(_-he)/(Ee-1)),Z=xtt(G,(w-he)/(Ee+1))}else B=Z=0}F>gb?Z>gb?(z=X_e(ie,ge,V,j,w,Z,k),Y=X_e(ne,se,ee,te,w,Z,k),h.moveTo(z.cx+z.x01,z.cy+z.y01),Z<G?h.arc(z.cx,z.cy,Z,fb(z.y01,z.x01),fb(Y.y01,Y.x01),!k):(h.arc(z.cx,z.cy,Z,fb(z.y01,z.x01),fb(z.y11,z.x11),!k),h.arc(0,0,w,fb(z.cy+z.y11,z.cx+z.x11),fb(Y.cy+Y.y11,Y.cx+Y.x11),!k),h.arc(Y.cx,Y.cy,Z,fb(Y.y11,Y.x11),fb(Y.y01,Y.x01),!k))):(h.moveTo(V,j),h.arc(0,0,w,I,N,!k)):h.moveTo(V,j),!(_>gb)||!(M>gb)?h.lineTo(ee,te):B>gb?(z=X_e(ee,te,ne,se,_,-B,k),Y=X_e(V,j,ie,ge,_,-B,k),h.lineTo(z.cx+z.x01,z.cy+z.y01),B<G?h.arc(z.cx,z.cy,B,fb(z.y01,z.x01),fb(Y.y01,Y.x01),!k):(h.arc(z.cx,z.cy,B,fb(z.y01,z.x01),fb(z.y11,z.x11),!k),h.arc(0,0,_,fb(z.cy+z.y11,z.cx+z.x11),fb(Y.cy+Y.y11,Y.cx+Y.x11),k),h.arc(Y.cx,Y.cy,B,fb(Y.y11,Y.x11),fb(Y.y01,Y.x01),!k))):h.arc(0,0,_,P,L,k)}if(h.closePath(),m)return h=null,m+""||null}return p.centroid=function(){var m=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,b=(+s.apply(this,arguments)+ +o.apply(this,arguments))/2-moe/2;return[pB(b)*m,pC(b)*m]},p.innerRadius=function(m){return arguments.length?(e=typeof m=="function"?m:j0(+m),p):e},p.outerRadius=function(m){return arguments.length?(t=typeof m=="function"?m:j0(+m),p):t},p.cornerRadius=function(m){return arguments.length?(r=typeof m=="function"?m:j0(+m),p):r},p.padRadius=function(m){return arguments.length?(a=m==null?null:typeof m=="function"?m:j0(+m),p):a},p.startAngle=function(m){return arguments.length?(s=typeof m=="function"?m:j0(+m),p):s},p.endAngle=function(m){return arguments.length?(o=typeof m=="function"?m:j0(+m),p):o},p.padAngle=function(m){return arguments.length?(u=typeof m=="function"?m:j0(+m),p):u},p.context=function(m){return arguments.length?(h=m??null,p):h},p}function TDn(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function CDn(e){this._context=e}CDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Cg(e){return new CDn(e)}function mhi(e){return e[0]}function bhi(e){return e[1]}function r_(e,t){var r=j0(!0),a=null,s=Cg,o=null,u=SDn(h);e=typeof e=="function"?e:e===void 0?mhi:j0(e),t=typeof t=="function"?t:t===void 0?bhi:j0(t);function h(f){var p,m=(f=TDn(f)).length,b,_=!1,w;for(a==null&&(o=s(w=u())),p=0;p<=m;++p)!(p<m&&r(b=f[p],p,f))===_&&((_=!_)?o.lineStart():o.lineEnd()),_&&o.point(+e(b,p,f),+t(b,p,f));if(w)return o=null,w+""||null}return h.x=function(f){return arguments.length?(e=typeof f=="function"?f:j0(+f),h):e},h.y=function(f){return arguments.length?(t=typeof f=="function"?f:j0(+f),h):t},h.defined=function(f){return arguments.length?(r=typeof f=="function"?f:j0(!!f),h):r},h.curve=function(f){return arguments.length?(s=f,a!=null&&(o=s(a)),h):s},h.context=function(f){return arguments.length?(f==null?a=o=null:o=s(a=f),h):a},h}function yhi(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function vhi(e){return e}function ADn(){var e=vhi,t=yhi,r=null,a=j0(0),s=j0(ixe),o=j0(0);function u(h){var f,p=(h=TDn(h)).length,m,b,_=0,w=new Array(p),S=new Array(p),C=+a.apply(this,arguments),A=Math.min(ixe,Math.max(-ixe,s.apply(this,arguments)-C)),k,I=Math.min(Math.abs(A)/p,o.apply(this,arguments)),N=I*(A<0?-1:1),L;for(f=0;f<p;++f)(L=S[w[f]=f]=+e(h[f],f,h))>0&&(_+=L);for(t!=null?w.sort(function(P,M){return t(S[P],S[M])}):r!=null&&w.sort(function(P,M){return r(h[P],h[M])}),f=0,b=_?(A-p*N)/_:0;f<p;++f,C=k)m=w[f],L=S[m],k=C+(L>0?L*b:0)+N,S[m]={data:h[m],index:f,value:L,startAngle:C,endAngle:k,padAngle:I};return S}return u.value=function(h){return arguments.length?(e=typeof h=="function"?h:j0(+h),u):e},u.sortValues=function(h){return arguments.length?(t=h,r=null,u):t},u.sort=function(h){return arguments.length?(r=h,t=null,u):r},u.startAngle=function(h){return arguments.length?(a=typeof h=="function"?h:j0(+h),u):a},u.endAngle=function(h){return arguments.length?(s=typeof h=="function"?h:j0(+h),u):s},u.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:j0(+h),u):o},u}class kDn{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function l1t(e){return new kDn(e,!0)}function c1t(e){return new kDn(e,!1)}function jO(){}function x4e(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function lAe(e){this._context=e}lAe.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:x4e(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j3(e){return new lAe(e)}function RDn(e){this._context=e}RDn.prototype={areaStart:jO,areaEnd:jO,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IDn(e){return new RDn(e)}function NDn(e){this._context=e}NDn.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ODn(e){return new NDn(e)}function LDn(e,t){this._basis=new lAe(e),this._beta=t}LDn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var a=e[0],s=t[0],o=e[r]-a,u=t[r]-s,h=-1,f;++h<=r;)f=h/r,this._basis.point(this._beta*e[h]+(1-this._beta)*(a+f*o),this._beta*t[h]+(1-this._beta)*(s+f*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const DDn=function e(t){function r(a){return t===1?new lAe(a):new LDn(a,t)}return r.beta=function(a){return e(+a)},r}(.85);function S4e(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function u1t(e,t){this._context=e,this._k=(1-t)/6}u1t.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:S4e(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const h1t=function e(t){function r(a){return new u1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function d1t(e,t){this._context=e,this._k=(1-t)/6}d1t.prototype={areaStart:jO,areaEnd:jO,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MDn=function e(t){function r(a){return new d1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function f1t(e,t){this._context=e,this._k=(1-t)/6}f1t.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const PDn=function e(t){function r(a){return new f1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function p1t(e,t,r){var a=e._x1,s=e._y1,o=e._x2,u=e._y2;if(e._l01_a>gb){var h=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,f=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*h-e._x0*e._l12_2a+e._x2*e._l01_2a)/f,s=(s*h-e._y0*e._l12_2a+e._y2*e._l01_2a)/f}if(e._l23_a>gb){var p=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,m=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*p+e._x1*e._l23_2a-t*e._l12_2a)/m,u=(u*p+e._y1*e._l23_2a-r*e._l12_2a)/m}e._context.bezierCurveTo(a,s,o,u,e._x2,e._y2)}function BDn(e,t){this._context=e,this._alpha=t}BDn.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:p1t(this,e,t);break}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const g1t=function e(t){function r(a){return t?new BDn(a,t):new u1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function FDn(e,t){this._context=e,this._alpha=t}FDn.prototype={areaStart:jO,areaEnd:jO,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);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:p1t(this,e,t);break}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $Dn=function e(t){function r(a){return t?new FDn(a,t):new d1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function UDn(e,t){this._context=e,this._alpha=t}UDn.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,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:p1t(this,e,t);break}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zDn=function e(t){function r(a){return t?new UDn(a,t):new f1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function GDn(e){this._context=e}GDn.prototype={areaStart:jO,areaEnd:jO,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qDn(e){return new GDn(e)}function Vyn(e){return e<0?-1:1}function Yyn(e,t,r){var a=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(a||s<0&&-0),u=(r-e._y1)/(s||a<0&&-0),h=(o*s+u*a)/(a+s);return(Vyn(o)+Vyn(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(h))||0}function jyn(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Stt(e,t,r){var a=e._x0,s=e._y0,o=e._x1,u=e._y1,h=(o-a)/3;e._context.bezierCurveTo(a+h,s+h*t,o-h,u-h*r,o,u)}function T4e(e){this._context=e}T4e.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:Stt(this,this._t0,jyn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Stt(this,jyn(this,r=Yyn(this,e,t)),r);break;default:Stt(this,this._t0,r=Yyn(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function HDn(e){this._context=new VDn(e)}(HDn.prototype=Object.create(T4e.prototype)).point=function(e,t){T4e.prototype.point.call(this,t,e)};function VDn(e){this._context=e}VDn.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,s,o){this._context.bezierCurveTo(t,e,a,r,o,s)}};function m1t(e){return new T4e(e)}function b1t(e){return new HDn(e)}function YDn(e){this._context=e}YDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=Wyn(e),s=Wyn(t),o=0,u=1;u<r;++o,++u)this._context.bezierCurveTo(a[0][o],s[0][o],a[1][o],s[1][o],e[u],t[u]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Wyn(e){var t,r=e.length-1,a,s=new Array(r),o=new Array(r),u=new Array(r);for(s[0]=0,o[0]=2,u[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,o[t]=4,u[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,o[r-1]=7,u[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a=s[t]/o[t-1],o[t]-=a,u[t]-=a*u[t-1];for(s[r-1]=u[r-1]/o[r-1],t=r-2;t>=0;--t)s[t]=(u[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-s[t+1];return[s,o]}function y1t(e){return new YDn(e)}function cAe(e,t){this._context=e,this._t=t}cAe.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function v1t(e){return new cAe(e,.5)}function _1t(e){return new cAe(e,0)}function w1t(e){return new cAe(e,1)}function Die(e,t,r){this.k=e,this.x=t,this.y=r}Die.prototype={constructor:Die,scale:function(e){return e===1?this:new Die(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Die(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Die.prototype;var bR=X(e=>{var s;const{securityLevel:t}=nn();let r=gn("body");if(t==="sandbox"){const u=((s=gn(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=gn(u.body)}return r.select(`#${e}`)},"selectSvgElement");function E1t(e){return typeof e>"u"||e===null}X(E1t,"isNothing");function jDn(e){return typeof e=="object"&&e!==null}X(jDn,"isObject");function WDn(e){return Array.isArray(e)?e:E1t(e)?[]:[e]}X(WDn,"toArray");function KDn(e,t){var r,a,s,o;if(t)for(o=Object.keys(t),r=0,a=o.length;r<a;r+=1)s=o[r],e[s]=t[s];return e}X(KDn,"extend");function XDn(e,t){var r="",a;for(a=0;a<t;a+=1)r+=e;return r}X(XDn,"repeat");function QDn(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}X(QDn,"isNegativeZero");var _hi=E1t,whi=jDn,Ehi=WDn,xhi=XDn,Shi=QDn,Thi=KDn,Cp={isNothing:_hi,isObject:whi,toArray:Ehi,repeat:xhi,isNegativeZero:Shi,extend:Thi};function x1t(e,t){var r="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`

`+e.mark.snippet),a+" "+r):a}X(x1t,"formatError");function Oj(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=x1t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}X(Oj,"YAMLException$1");Oj.prototype=Object.create(Error.prototype);Oj.prototype.constructor=Oj;Oj.prototype.toString=X(function(t){return this.name+": "+x1t(this,t)},"toString");var z2=Oj;function axe(e,t,r,a,s){var o="",u="",h=Math.floor(s/2)-1;return a-t>h&&(o=" ... ",t=a-h+o.length),r-a>h&&(u=" ...",r=a+h-u.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+u,pos:a-t+o.length}}X(axe,"getLine");function sxe(e,t){return Cp.repeat(" ",t-e.length)+e}X(sxe,"padStart");function ZDn(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,a=[0],s=[],o,u=-1;o=r.exec(e.buffer);)s.push(o.index),a.push(o.index+o[0].length),e.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);var h="",f,p,m=Math.min(e.line+t.linesAfter,s.length).toString().length,b=t.maxLength-(t.indent+m+3);for(f=1;f<=t.linesBefore&&!(u-f<0);f++)p=axe(e.buffer,a[u-f],s[u-f],e.position-(a[u]-a[u-f]),b),h=Cp.repeat(" ",t.indent)+sxe((e.line-f+1).toString(),m)+" | "+p.str+`
`+h;for(p=axe(e.buffer,a[u],s[u],e.position,b),h+=Cp.repeat(" ",t.indent)+sxe((e.line+1).toString(),m)+" | "+p.str+`
`,h+=Cp.repeat("-",t.indent+m+3+p.pos)+`^
`,f=1;f<=t.linesAfter&&!(u+f>=s.length);f++)p=axe(e.buffer,a[u+f],s[u+f],e.position-(a[u]-a[u+f]),b),h+=Cp.repeat(" ",t.indent)+sxe((e.line+f+1).toString(),m)+" | "+p.str+`
`;return h.replace(/\n$/,"")}X(ZDn,"makeSnippet");var Chi=ZDn,Ahi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],khi=["scalar","sequence","mapping"];function JDn(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){t[String(a)]=r})}),t}X(JDn,"compileStyleAliases");function eMn(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Ahi.indexOf(r)===-1)throw new z2('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=JDn(t.styleAliases||null),khi.indexOf(this.kind)===-1)throw new z2('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}X(eMn,"Type$1");var Sb=eMn;function Dot(e,t){var r=[];return e[t].forEach(function(a){var s=r.length;r.forEach(function(o,u){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(s=u)}),r[s]=a}),r}X(Dot,"compileList");function tMn(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(X(a,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(a);return e}X(tMn,"compileMap");function C4e(e){return this.extend(e)}X(C4e,"Schema$1");C4e.prototype.extend=X(function(t){var r=[],a=[];if(t instanceof Sb)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new z2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Sb))throw new z2("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new z2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new z2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(o){if(!(o instanceof Sb))throw new z2("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(C4e.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=Dot(s,"implicit"),s.compiledExplicit=Dot(s,"explicit"),s.compiledTypeMap=tMn(s.compiledImplicit,s.compiledExplicit),s},"extend");var Rhi=C4e,Ihi=new Sb("tag:yaml.org,2002:str",{kind:"scalar",construct:X(function(e){return e!==null?e:""},"construct")}),Nhi=new Sb("tag:yaml.org,2002:seq",{kind:"sequence",construct:X(function(e){return e!==null?e:[]},"construct")}),Ohi=new Sb("tag:yaml.org,2002:map",{kind:"mapping",construct:X(function(e){return e!==null?e:{}},"construct")}),Lhi=new Rhi({explicit:[Ihi,Nhi,Ohi]});function nMn(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}X(nMn,"resolveYamlNull");function rMn(){return null}X(rMn,"constructYamlNull");function iMn(e){return e===null}X(iMn,"isNull");var Dhi=new Sb("tag:yaml.org,2002:null",{kind:"scalar",resolve:nMn,construct:rMn,predicate:iMn,represent:{canonical:X(function(){return"~"},"canonical"),lowercase:X(function(){return"null"},"lowercase"),uppercase:X(function(){return"NULL"},"uppercase"),camelcase:X(function(){return"Null"},"camelcase"),empty:X(function(){return""},"empty")},defaultStyle:"lowercase"});function aMn(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}X(aMn,"resolveYamlBoolean");function sMn(e){return e==="true"||e==="True"||e==="TRUE"}X(sMn,"constructYamlBoolean");function oMn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}X(oMn,"isBoolean");var Mhi=new Sb("tag:yaml.org,2002:bool",{kind:"scalar",resolve:aMn,construct:sMn,predicate:oMn,represent:{lowercase:X(function(e){return e?"true":"false"},"lowercase"),uppercase:X(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:X(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function lMn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}X(lMn,"isHexCode");function cMn(e){return 48<=e&&e<=55}X(cMn,"isOctCode");function uMn(e){return 48<=e&&e<=57}X(uMn,"isDecCode");function hMn(e){if(e===null)return!1;var t=e.length,r=0,a=!1,s;if(!t)return!1;if(s=e[r],(s==="-"||s==="+")&&(s=e[++r]),s==="0"){if(r+1===t)return!0;if(s=e[++r],s==="b"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!lMn(e.charCodeAt(r)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!cMn(e.charCodeAt(r)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;r<t;r++)if(s=e[r],s!=="_"){if(!uMn(e.charCodeAt(r)))return!1;a=!0}return!(!a||s==="_")}X(hMn,"resolveYamlInteger");function dMn(e){var t=e,r=1,a;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),a=t[0],(a==="-"||a==="+")&&(a==="-"&&(r=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}X(dMn,"constructYamlInteger");function fMn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Cp.isNegativeZero(e)}X(fMn,"isInteger");var Phi=new Sb("tag:yaml.org,2002:int",{kind:"scalar",resolve:hMn,construct:dMn,predicate:fMn,represent:{binary:X(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:X(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:X(function(e){return e.toString(10)},"decimal"),hexadecimal:X(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Bhi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pMn(e){return!(e===null||!Bhi.test(e)||e[e.length-1]==="_")}X(pMn,"resolveYamlFloat");function gMn(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}X(gMn,"constructYamlFloat");var Fhi=/^[-+]?[0-9]+e/;function mMn(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Cp.isNegativeZero(e))return"-0.0";return r=e.toString(10),Fhi.test(r)?r.replace("e",".e"):r}X(mMn,"representYamlFloat");function bMn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Cp.isNegativeZero(e))}X(bMn,"isFloat");var $hi=new Sb("tag:yaml.org,2002:float",{kind:"scalar",resolve:pMn,construct:gMn,predicate:bMn,represent:mMn,defaultStyle:"lowercase"}),yMn=Lhi.extend({implicit:[Dhi,Mhi,Phi,$hi]}),Uhi=yMn,vMn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_Mn=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 wMn(e){return e===null?!1:vMn.exec(e)!==null||_Mn.exec(e)!==null}X(wMn,"resolveYamlTimestamp");function EMn(e){var t,r,a,s,o,u,h,f=0,p=null,m,b,_;if(t=vMn.exec(e),t===null&&(t=_Mn.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],a=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,a,s));if(o=+t[4],u=+t[5],h=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(m=+t[10],b=+(t[11]||0),p=(m*60+b)*6e4,t[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,s,o,u,h,f)),p&&_.setTime(_.getTime()-p),_}X(EMn,"constructYamlTimestamp");function xMn(e){return e.toISOString()}X(xMn,"representYamlTimestamp");var zhi=new Sb("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wMn,construct:EMn,instanceOf:Date,represent:xMn});function SMn(e){return e==="<<"||e===null}X(SMn,"resolveYamlMerge");var Ghi=new Sb("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SMn}),S1t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function TMn(e){if(e===null)return!1;var t,r,a=0,s=e.length,o=S1t;for(r=0;r<s;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;a+=6}return a%8===0}X(TMn,"resolveYamlBinary");function CMn(e){var t,r,a=e.replace(/[\r\n=]/g,""),s=a.length,o=S1t,u=0,h=[];for(t=0;t<s;t++)t%4===0&&t&&(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)),u=u<<6|o.indexOf(a.charAt(t));return r=s%4*6,r===0?(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)):r===18?(h.push(u>>10&255),h.push(u>>2&255)):r===12&&h.push(u>>4&255),new Uint8Array(h)}X(CMn,"constructYamlBinary");function AMn(e){var t="",r=0,a,s,o=e.length,u=S1t;for(a=0;a<o;a++)a%3===0&&a&&(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]),r=(r<<8)+e[a];return s=o%3,s===0?(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]):s===2?(t+=u[r>>10&63],t+=u[r>>4&63],t+=u[r<<2&63],t+=u[64]):s===1&&(t+=u[r>>2&63],t+=u[r<<4&63],t+=u[64],t+=u[64]),t}X(AMn,"representYamlBinary");function kMn(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}X(kMn,"isBinary");var qhi=new Sb("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TMn,construct:CMn,predicate:kMn,represent:AMn}),Hhi=Object.prototype.hasOwnProperty,Vhi=Object.prototype.toString;function RMn(e){if(e===null)return!0;var t=[],r,a,s,o,u,h=e;for(r=0,a=h.length;r<a;r+=1){if(s=h[r],u=!1,Vhi.call(s)!=="[object Object]")return!1;for(o in s)if(Hhi.call(s,o))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}X(RMn,"resolveYamlOmap");function IMn(e){return e!==null?e:[]}X(IMn,"constructYamlOmap");var Yhi=new Sb("tag:yaml.org,2002:omap",{kind:"sequence",resolve:RMn,construct:IMn}),jhi=Object.prototype.toString;function NMn(e){if(e===null)return!0;var t,r,a,s,o,u=e;for(o=new Array(u.length),t=0,r=u.length;t<r;t+=1){if(a=u[t],jhi.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;o[t]=[s[0],a[s[0]]]}return!0}X(NMn,"resolveYamlPairs");function OMn(e){if(e===null)return[];var t,r,a,s,o,u=e;for(o=new Array(u.length),t=0,r=u.length;t<r;t+=1)a=u[t],s=Object.keys(a),o[t]=[s[0],a[s[0]]];return o}X(OMn,"constructYamlPairs");var Whi=new Sb("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:NMn,construct:OMn}),Khi=Object.prototype.hasOwnProperty;function LMn(e){if(e===null)return!0;var t,r=e;for(t in r)if(Khi.call(r,t)&&r[t]!==null)return!1;return!0}X(LMn,"resolveYamlSet");function DMn(e){return e!==null?e:{}}X(DMn,"constructYamlSet");var Xhi=new Sb("tag:yaml.org,2002:set",{kind:"mapping",resolve:LMn,construct:DMn}),MMn=Uhi.extend({implicit:[zhi,Ghi],explicit:[qhi,Yhi,Whi,Xhi]}),WO=Object.prototype.hasOwnProperty,A4e=1,PMn=2,BMn=3,k4e=4,Ttt=1,Qhi=2,Kyn=3,Zhi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Jhi=/[\x85\u2028\u2029]/,edi=/[,\[\]\{\}]/,FMn=/^(?:!|!!|![a-z\-]+!)$/i,$Mn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Mot(e){return Object.prototype.toString.call(e)}X(Mot,"_class");function W3(e){return e===10||e===13}X(W3,"is_EOL");function AO(e){return e===9||e===32}X(AO,"is_WHITE_SPACE");function Zy(e){return e===9||e===32||e===10||e===13}X(Zy,"is_WS_OR_EOL");function JB(e){return e===44||e===91||e===93||e===123||e===125}X(JB,"is_FLOW_INDICATOR");function UMn(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}X(UMn,"fromHexCode");function zMn(e){return e===120?2:e===117?4:e===85?8:0}X(zMn,"escapedHexLen");function GMn(e){return 48<=e&&e<=57?e-48:-1}X(GMn,"fromDecimalCode");function Pot(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}X(Pot,"simpleEscapeSequence");function qMn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}X(qMn,"charFromCodepoint");var HMn=new Array(256),VMn=new Array(256);for(gB=0;gB<256;gB++)HMn[gB]=Pot(gB)?1:0,VMn[gB]=Pot(gB);var gB;function YMn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||MMn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}X(YMn,"State$1");function T1t(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Chi(r),new z2(t,r)}X(T1t,"generateError");function ks(e,t){throw T1t(e,t)}X(ks,"throwError");function boe(e,t){e.onWarning&&e.onWarning.call(null,T1t(e,t))}X(boe,"throwWarning");var Xyn={YAML:X(function(t,r,a){var s,o,u;t.version!==null&&ks(t,"duplication of %YAML directive"),a.length!==1&&ks(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&ks(t,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),u=parseInt(s[2],10),o!==1&&ks(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&boe(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:X(function(t,r,a){var s,o;a.length!==2&&ks(t,"TAG directive accepts exactly two arguments"),s=a[0],o=a[1],FMn.test(s)||ks(t,"ill-formed tag handle (first argument) of the TAG directive"),WO.call(t.tagMap,s)&&ks(t,'there is a previously declared suffix for "'+s+'" tag handle'),$Mn.test(o)||ks(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ks(t,"tag prefix is malformed: "+o)}t.tagMap[s]=o},"handleTagDirective")};function U7(e,t,r,a){var s,o,u,h;if(t<r){if(h=e.input.slice(t,r),a)for(s=0,o=h.length;s<o;s+=1)u=h.charCodeAt(s),u===9||32<=u&&u<=1114111||ks(e,"expected valid JSON character");else Zhi.test(h)&&ks(e,"the stream contains non-printable characters");e.result+=h}}X(U7,"captureSegment");function Bot(e,t,r,a){var s,o,u,h;for(Cp.isObject(r)||ks(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),u=0,h=s.length;u<h;u+=1)o=s[u],WO.call(t,o)||(t[o]=r[o],a[o]=!0)}X(Bot,"mergeMappings");function eF(e,t,r,a,s,o,u,h,f){var p,m;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),p=0,m=s.length;p<m;p+=1)Array.isArray(s[p])&&ks(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Mot(s[p])==="[object Object]"&&(s[p]="[object Object]");if(typeof s=="object"&&Mot(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(p=0,m=o.length;p<m;p+=1)Bot(e,t,o[p],r);else Bot(e,t,o,r);else!e.json&&!WO.call(r,s)&&WO.call(t,s)&&(e.line=u||e.line,e.lineStart=h||e.lineStart,e.position=f||e.position,ks(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[s]=o,delete r[s];return t}X(eF,"storeMappingPair");function uAe(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ks(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}X(uAe,"readLineBreak");function K0(e,t,r){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;AO(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(W3(s))for(uAe(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return r!==-1&&a!==0&&e.lineIndent<r&&boe(e,"deficient indentation"),a}X(K0,"skipSeparationSpace");function sce(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Zy(r)))}X(sce,"testDocumentSeparator");function hAe(e,t){t===1?e.result+=" ":t>1&&(e.result+=Cp.repeat(`
`,t-1))}X(hAe,"writeFoldedLines");function jMn(e,t,r){var a,s,o,u,h,f,p,m,b=e.kind,_=e.result,w;if(w=e.input.charCodeAt(e.position),Zy(w)||JB(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(s=e.input.charCodeAt(e.position+1),Zy(s)||r&&JB(s)))return!1;for(e.kind="scalar",e.result="",o=u=e.position,h=!1;w!==0;){if(w===58){if(s=e.input.charCodeAt(e.position+1),Zy(s)||r&&JB(s))break}else if(w===35){if(a=e.input.charCodeAt(e.position-1),Zy(a))break}else{if(e.position===e.lineStart&&sce(e)||r&&JB(w))break;if(W3(w))if(f=e.line,p=e.lineStart,m=e.lineIndent,K0(e,!1,-1),e.lineIndent>=t){h=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=p,e.lineIndent=m;break}}h&&(U7(e,o,u,!1),hAe(e,e.line-f),o=u=e.position,h=!1),AO(w)||(u=e.position+1),w=e.input.charCodeAt(++e.position)}return U7(e,o,u,!1),e.result?!0:(e.kind=b,e.result=_,!1)}X(jMn,"readPlainScalar");function WMn(e,t){var r,a,s;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(U7(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,s=e.position;else return!0;else W3(r)?(U7(e,a,s,!0),hAe(e,K0(e,!1,t)),a=s=e.position):e.position===e.lineStart&&sce(e)?ks(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);ks(e,"unexpected end of the stream within a single quoted scalar")}X(WMn,"readSingleQuotedScalar");function KMn(e,t){var r,a,s,o,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return U7(e,r,e.position,!0),e.position++,!0;if(h===92){if(U7(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),W3(h))K0(e,!1,t);else if(h<256&&HMn[h])e.result+=VMn[h],e.position++;else if((u=zMn(h))>0){for(s=u,o=0;s>0;s--)h=e.input.charCodeAt(++e.position),(u=UMn(h))>=0?o=(o<<4)+u:ks(e,"expected hexadecimal character");e.result+=qMn(o),e.position++}else ks(e,"unknown escape sequence");r=a=e.position}else W3(h)?(U7(e,r,a,!0),hAe(e,K0(e,!1,t)),r=a=e.position):e.position===e.lineStart&&sce(e)?ks(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}ks(e,"unexpected end of the stream within a double quoted scalar")}X(KMn,"readDoubleQuotedScalar");function XMn(e,t){var r=!0,a,s,o,u=e.tag,h,f=e.anchor,p,m,b,_,w,S=Object.create(null),C,A,k,I;if(I=e.input.charCodeAt(e.position),I===91)m=93,w=!1,h=[];else if(I===123)m=125,w=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),I=e.input.charCodeAt(++e.position);I!==0;){if(K0(e,!0,t),I=e.input.charCodeAt(e.position),I===m)return e.position++,e.tag=u,e.anchor=f,e.kind=w?"mapping":"sequence",e.result=h,!0;r?I===44&&ks(e,"expected the node content, but found ','"):ks(e,"missed comma between flow collection entries"),A=C=k=null,b=_=!1,I===63&&(p=e.input.charCodeAt(e.position+1),Zy(p)&&(b=_=!0,e.position++,K0(e,!0,t))),a=e.line,s=e.lineStart,o=e.position,FF(e,t,A4e,!1,!0),A=e.tag,C=e.result,K0(e,!0,t),I=e.input.charCodeAt(e.position),(_||e.line===a)&&I===58&&(b=!0,I=e.input.charCodeAt(++e.position),K0(e,!0,t),FF(e,t,A4e,!1,!0),k=e.result),w?eF(e,h,S,A,C,k,a,s,o):b?h.push(eF(e,null,S,A,C,k,a,s,o)):h.push(C),K0(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(r=!0,I=e.input.charCodeAt(++e.position)):r=!1}ks(e,"unexpected end of the stream within a flow collection")}X(XMn,"readFlowCollection");function QMn(e,t){var r,a,s=Ttt,o=!1,u=!1,h=t,f=0,p=!1,m,b;if(b=e.input.charCodeAt(e.position),b===124)a=!1;else if(b===62)a=!0;else return!1;for(e.kind="scalar",e.result="";b!==0;)if(b=e.input.charCodeAt(++e.position),b===43||b===45)Ttt===s?s=b===43?Kyn:Qhi:ks(e,"repeat of a chomping mode identifier");else if((m=GMn(b))>=0)m===0?ks(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ks(e,"repeat of an indentation width identifier"):(h=t+m-1,u=!0);else break;if(AO(b)){do b=e.input.charCodeAt(++e.position);while(AO(b));if(b===35)do b=e.input.charCodeAt(++e.position);while(!W3(b)&&b!==0)}for(;b!==0;){for(uAe(e),e.lineIndent=0,b=e.input.charCodeAt(e.position);(!u||e.lineIndent<h)&&b===32;)e.lineIndent++,b=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>h&&(h=e.lineIndent),W3(b)){f++;continue}if(e.lineIndent<h){s===Kyn?e.result+=Cp.repeat(`
`,o?1+f:f):s===Ttt&&o&&(e.result+=`
`);break}for(a?AO(b)?(p=!0,e.result+=Cp.repeat(`
`,o?1+f:f)):p?(p=!1,e.result+=Cp.repeat(`
`,f+1)):f===0?o&&(e.result+=" "):e.result+=Cp.repeat(`
`,f):e.result+=Cp.repeat(`
`,o?1+f:f),o=!0,u=!0,f=0,r=e.position;!W3(b)&&b!==0;)b=e.input.charCodeAt(++e.position);U7(e,r,e.position,!1)}return!0}X(QMn,"readBlockScalar");function Fot(e,t){var r,a=e.tag,s=e.anchor,o=[],u,h=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ks(e,"tab characters must not be used in indentation")),!(f!==45||(u=e.input.charCodeAt(e.position+1),!Zy(u))));){if(h=!0,e.position++,K0(e,!0,-1)&&e.lineIndent<=t){o.push(null),f=e.input.charCodeAt(e.position);continue}if(r=e.line,FF(e,t,BMn,!1,!0),o.push(e.result),K0(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&f!==0)ks(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return h?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=o,!0):!1}X(Fot,"readBlockSequence");function ZMn(e,t,r){var a,s,o,u,h,f,p=e.tag,m=e.anchor,b={},_=Object.create(null),w=null,S=null,C=null,A=!1,k=!1,I;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=b),I=e.input.charCodeAt(e.position);I!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ks(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),o=e.line,(I===63||I===58)&&Zy(a))I===63?(A&&(eF(e,b,_,w,S,null,u,h,f),w=S=C=null),k=!0,A=!0,s=!0):A?(A=!1,s=!0):ks(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,I=a;else{if(u=e.line,h=e.lineStart,f=e.position,!FF(e,r,PMn,!1,!0))break;if(e.line===o){for(I=e.input.charCodeAt(e.position);AO(I);)I=e.input.charCodeAt(++e.position);if(I===58)I=e.input.charCodeAt(++e.position),Zy(I)||ks(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(eF(e,b,_,w,S,null,u,h,f),w=S=C=null),k=!0,A=!1,s=!1,w=e.tag,S=e.result;else if(k)ks(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=p,e.anchor=m,!0}else if(k)ks(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=p,e.anchor=m,!0}if((e.line===o||e.lineIndent>t)&&(A&&(u=e.line,h=e.lineStart,f=e.position),FF(e,t,k4e,!0,s)&&(A?S=e.result:C=e.result),A||(eF(e,b,_,w,S,C,u,h,f),w=S=C=null),K0(e,!0,-1),I=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&I!==0)ks(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&eF(e,b,_,w,S,null,u,h,f),k&&(e.tag=p,e.anchor=m,e.kind="mapping",e.result=b),k}X(ZMn,"readBlockMapping");function JMn(e){var t,r=!1,a=!1,s,o,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&ks(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(r=!0,u=e.input.charCodeAt(++e.position)):u===33?(a=!0,s="!!",u=e.input.charCodeAt(++e.position)):s="!",t=e.position,r){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(o=e.input.slice(t,e.position),u=e.input.charCodeAt(++e.position)):ks(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!Zy(u);)u===33&&(a?ks(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),FMn.test(s)||ks(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),u=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),edi.test(o)&&ks(e,"tag suffix cannot contain flow indicator characters")}o&&!$Mn.test(o)&&ks(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ks(e,"tag name is malformed: "+o)}return r?e.tag=o:WO.call(e.tagMap,s)?e.tag=e.tagMap[s]+o:s==="!"?e.tag="!"+o:s==="!!"?e.tag="tag:yaml.org,2002:"+o:ks(e,'undeclared tag handle "'+s+'"'),!0}X(JMn,"readTagProperty");function ePn(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ks(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Zy(r)&&!JB(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ks(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}X(ePn,"readAnchorProperty");function tPn(e){var t,r,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!Zy(a)&&!JB(a);)a=e.input.charCodeAt(++e.position);return e.position===t&&ks(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),WO.call(e.anchorMap,r)||ks(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],K0(e,!0,-1),!0}X(tPn,"readAlias");function FF(e,t,r,a,s){var o,u,h,f=1,p=!1,m=!1,b,_,w,S,C,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=u=h=k4e===r||BMn===r,a&&K0(e,!0,-1)&&(p=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),f===1)for(;JMn(e)||ePn(e);)K0(e,!0,-1)?(p=!0,h=o,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):h=!1;if(h&&(h=p||s),(f===1||k4e===r)&&(A4e===r||PMn===r?C=t:C=t+1,A=e.position-e.lineStart,f===1?h&&(Fot(e,A)||ZMn(e,A,C))||XMn(e,C)?m=!0:(u&&QMn(e,C)||WMn(e,C)||KMn(e,C)?m=!0:tPn(e)?(m=!0,(e.tag!==null||e.anchor!==null)&&ks(e,"alias node should not have any properties")):jMn(e,C,A4e===r)&&(m=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(m=h&&Fot(e,A))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ks(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),b=0,_=e.implicitTypes.length;b<_;b+=1)if(S=e.implicitTypes[b],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(WO.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,w=e.typeMap.multi[e.kind||"fallback"],b=0,_=w.length;b<_;b+=1)if(e.tag.slice(0,w[b].tag.length)===w[b].tag){S=w[b];break}S||ks(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&ks(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ks(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||m}X(FF,"composeNode");function nPn(e){var t=e.position,r,a,s,o=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(K0(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(o=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!Zy(u);)u=e.input.charCodeAt(++e.position);for(a=e.input.slice(r,e.position),s=[],a.length<1&&ks(e,"directive name must not be less than one character in length");u!==0;){for(;AO(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!W3(u));break}if(W3(u))break;for(r=e.position;u!==0&&!Zy(u);)u=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}u!==0&&uAe(e),WO.call(Xyn,a)?Xyn[a](e,a,s):boe(e,'unknown document directive "'+a+'"')}if(K0(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,K0(e,!0,-1)):o&&ks(e,"directives end mark is expected"),FF(e,e.lineIndent-1,k4e,!1,!0),K0(e,!0,-1),e.checkLineBreaks&&Jhi.test(e.input.slice(t,e.position))&&boe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sce(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,K0(e,!0,-1));return}if(e.position<e.length-1)ks(e,"end of the stream or a document separator is expected");else return}X(nPn,"readDocument");function C1t(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new YMn(e,t),a=e.indexOf("\0");for(a!==-1&&(r.position=a,ks(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)nPn(r);return r.documents}X(C1t,"loadDocuments");function tdi(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var a=C1t(e,r);if(typeof t!="function")return a;for(var s=0,o=a.length;s<o;s+=1)t(a[s])}X(tdi,"loadAll$1");function rPn(e,t){var r=C1t(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new z2("expected a single document in the stream, but found more")}}X(rPn,"load$1");var ndi=rPn,rdi={load:ndi},iPn=Object.prototype.toString,aPn=Object.prototype.hasOwnProperty,A1t=65279,idi=9,yoe=10,adi=13,sdi=32,odi=33,ldi=34,$ot=35,cdi=37,udi=38,hdi=39,ddi=42,sPn=44,fdi=45,R4e=58,pdi=61,gdi=62,mdi=63,bdi=64,oPn=91,lPn=93,ydi=96,cPn=123,vdi=124,uPn=125,Ob={};Ob[0]="\\0";Ob[7]="\\a";Ob[8]="\\b";Ob[9]="\\t";Ob[10]="\\n";Ob[11]="\\v";Ob[12]="\\f";Ob[13]="\\r";Ob[27]="\\e";Ob[34]='\\"';Ob[92]="\\\\";Ob[133]="\\N";Ob[160]="\\_";Ob[8232]="\\L";Ob[8233]="\\P";var _di=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],wdi=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hPn(e,t){var r,a,s,o,u,h,f;if(t===null)return{};for(r={},a=Object.keys(t),s=0,o=a.length;s<o;s+=1)u=a[s],h=String(t[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),f=e.compiledTypeMap.fallback[u],f&&aPn.call(f.styleAliases,h)&&(h=f.styleAliases[h]),r[u]=h;return r}X(hPn,"compileStyleMap");function dPn(e){var t,r,a;if(t=e.toString(16).toUpperCase(),e<=255)r="x",a=2;else if(e<=65535)r="u",a=4;else if(e<=4294967295)r="U",a=8;else throw new z2("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Cp.repeat("0",a-t.length)+t}X(dPn,"encodeHex");var Edi=1,voe=2;function fPn(e){this.schema=e.schema||MMn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Cp.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=hPn(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?voe:Edi,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}X(fPn,"State");function Uot(e,t){for(var r=Cp.repeat(" ",t),a=0,s=-1,o="",u,h=e.length;a<h;)s=e.indexOf(`
`,a),s===-1?(u=e.slice(a),a=h):(u=e.slice(a,s+1),a=s+1),u.length&&u!==`
`&&(o+=r),o+=u;return o}X(Uot,"indentString");function I4e(e,t){return`
`+Cp.repeat(" ",e.indent*t)}X(I4e,"generateNextLine");function pPn(e,t){var r,a,s;for(r=0,a=e.implicitTypes.length;r<a;r+=1)if(s=e.implicitTypes[r],s.resolve(t))return!0;return!1}X(pPn,"testImplicitResolving");function _oe(e){return e===sdi||e===idi}X(_oe,"isWhitespace");function Lj(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==A1t||65536<=e&&e<=1114111}X(Lj,"isPrintable");function zot(e){return Lj(e)&&e!==A1t&&e!==adi&&e!==yoe}X(zot,"isNsCharOrWhitespace");function Got(e,t,r){var a=zot(e),s=a&&!_oe(e);return(r?a:a&&e!==sPn&&e!==oPn&&e!==lPn&&e!==cPn&&e!==uPn)&&e!==$ot&&!(t===R4e&&!s)||zot(t)&&!_oe(t)&&e===$ot||t===R4e&&s}X(Got,"isPlainSafe");function gPn(e){return Lj(e)&&e!==A1t&&!_oe(e)&&e!==fdi&&e!==mdi&&e!==R4e&&e!==sPn&&e!==oPn&&e!==lPn&&e!==cPn&&e!==uPn&&e!==$ot&&e!==udi&&e!==ddi&&e!==odi&&e!==vdi&&e!==pdi&&e!==gdi&&e!==hdi&&e!==ldi&&e!==cdi&&e!==bdi&&e!==ydi}X(gPn,"isPlainSafeFirst");function mPn(e){return!_oe(e)&&e!==R4e}X(mPn,"isPlainSafeLast");function IV(e,t){var r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}X(IV,"codePointAt");function k1t(e){var t=/^\n* /;return t.test(e)}X(k1t,"needIndentIndicator");var bPn=1,qot=2,yPn=3,vPn=4,uV=5;function _Pn(e,t,r,a,s,o,u,h){var f,p=0,m=null,b=!1,_=!1,w=a!==-1,S=-1,C=gPn(IV(e,0))&&mPn(IV(e,e.length-1));if(t||u)for(f=0;f<e.length;p>=65536?f+=2:f++){if(p=IV(e,f),!Lj(p))return uV;C=C&&Got(p,m,h),m=p}else{for(f=0;f<e.length;p>=65536?f+=2:f++){if(p=IV(e,f),p===yoe)b=!0,w&&(_=_||f-S-1>a&&e[S+1]!==" ",S=f);else if(!Lj(p))return uV;C=C&&Got(p,m,h),m=p}_=_||w&&f-S-1>a&&e[S+1]!==" "}return!b&&!_?C&&!u&&!s(e)?bPn:o===voe?uV:qot:r>9&&k1t(e)?uV:u?o===voe?uV:qot:_?vPn:yPn}X(_Pn,"chooseScalarStyle");function wPn(e,t,r,a,s){e.dump=function(){if(t.length===0)return e.quotingType===voe?'""':"''";if(!e.noCompatMode&&(_di.indexOf(t)!==-1||wdi.test(t)))return e.quotingType===voe?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),h=a||e.flowLevel>-1&&r>=e.flowLevel;function f(p){return pPn(e,p)}switch(X(f,"testAmbiguity"),_Pn(t,h,e.indent,u,f,e.quotingType,e.forceQuotes&&!a,s)){case bPn:return t;case qot:return"'"+t.replace(/'/g,"''")+"'";case yPn:return"|"+Hot(t,e.indent)+Vot(Uot(t,o));case vPn:return">"+Hot(t,e.indent)+Vot(Uot(EPn(t,u),o));case uV:return'"'+xPn(t)+'"';default:throw new z2("impossible error: invalid scalar style")}}()}X(wPn,"writeScalar");function Hot(e,t){var r=k1t(e)?String(t):"",a=e[e.length-1]===`
`,s=a&&(e[e.length-2]===`
`||e===`
`),o=s?"+":a?"":"-";return r+o+`
`}X(Hot,"blockHeader");function Vot(e){return e[e.length-1]===`
`?e.slice(0,-1):e}X(Vot,"dropEndingNewline");function EPn(e,t){for(var r=/(\n+)([^\n]*)/g,a=function(){var p=e.indexOf(`
`);return p=p!==-1?p:e.length,r.lastIndex=p,Yot(e.slice(0,p),t)}(),s=e[0]===`
`||e[0]===" ",o,u;u=r.exec(e);){var h=u[1],f=u[2];o=f[0]===" ",a+=h+(!s&&!o&&f!==""?`
`:"")+Yot(f,t),s=o}return a}X(EPn,"foldString");function Yot(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,a,s=0,o,u=0,h=0,f="";a=r.exec(e);)h=a.index,h-s>t&&(o=u>s?u:h,f+=`
`+e.slice(s,o),s=o+1),u=h;return f+=`
`,e.length-s>t&&u>s?f+=e.slice(s,u)+`
`+e.slice(u+1):f+=e.slice(s),f.slice(1)}X(Yot,"foldLine");function xPn(e){for(var t="",r=0,a,s=0;s<e.length;r>=65536?s+=2:s++)r=IV(e,s),a=Ob[r],!a&&Lj(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=a||dPn(r);return t}X(xPn,"escapeString");function SPn(e,t,r){var a="",s=e.tag,o,u,h;for(o=0,u=r.length;o<u;o+=1)h=r[o],e.replacer&&(h=e.replacer.call(r,String(o),h)),(bA(e,t,h,!1,!1)||typeof h>"u"&&bA(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}X(SPn,"writeFlowSequence");function jot(e,t,r,a){var s="",o=e.tag,u,h,f;for(u=0,h=r.length;u<h;u+=1)f=r[u],e.replacer&&(f=e.replacer.call(r,String(u),f)),(bA(e,t+1,f,!0,!0,!1,!0)||typeof f>"u"&&bA(e,t+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=I4e(e,t)),e.dump&&yoe===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=o,e.dump=s||"[]"}X(jot,"writeBlockSequence");function TPn(e,t,r){var a="",s=e.tag,o=Object.keys(r),u,h,f,p,m;for(u=0,h=o.length;u<h;u+=1)m="",a!==""&&(m+=", "),e.condenseFlow&&(m+='"'),f=o[u],p=r[f],e.replacer&&(p=e.replacer.call(r,f,p)),bA(e,t,f,!1,!1)&&(e.dump.length>1024&&(m+="? "),m+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bA(e,t,p,!1,!1)&&(m+=e.dump,a+=m));e.tag=s,e.dump="{"+a+"}"}X(TPn,"writeFlowMapping");function CPn(e,t,r,a){var s="",o=e.tag,u=Object.keys(r),h,f,p,m,b,_;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new z2("sortKeys must be a boolean or a function");for(h=0,f=u.length;h<f;h+=1)_="",(!a||s!=="")&&(_+=I4e(e,t)),p=u[h],m=r[p],e.replacer&&(m=e.replacer.call(r,p,m)),bA(e,t+1,p,!0,!0,!0)&&(b=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,b&&(e.dump&&yoe===e.dump.charCodeAt(0)?_+="?":_+="? "),_+=e.dump,b&&(_+=I4e(e,t)),bA(e,t+1,m,!0,b)&&(e.dump&&yoe===e.dump.charCodeAt(0)?_+=":":_+=": ",_+=e.dump,s+=_));e.tag=o,e.dump=s||"{}"}X(CPn,"writeBlockMapping");function Wot(e,t,r){var a,s,o,u,h,f;for(s=r?e.explicitTypes:e.implicitTypes,o=0,u=s.length;o<u;o+=1)if(h=s[o],(h.instanceOf||h.predicate)&&(!h.instanceOf||typeof t=="object"&&t instanceof h.instanceOf)&&(!h.predicate||h.predicate(t))){if(r?h.multi&&h.representName?e.tag=h.representName(t):e.tag=h.tag:e.tag="?",h.represent){if(f=e.styleMap[h.tag]||h.defaultStyle,iPn.call(h.represent)==="[object Function]")a=h.represent(t,f);else if(aPn.call(h.represent,f))a=h.represent[f](t,f);else throw new z2("!<"+h.tag+'> tag resolver accepts not "'+f+'" style');e.dump=a}return!0}return!1}X(Wot,"detectType");function bA(e,t,r,a,s,o,u){e.tag=null,e.dump=r,Wot(e,r,!1)||Wot(e,r,!0);var h=iPn.call(e.dump),f=a,p;a&&(a=e.flowLevel<0||e.flowLevel>t);var m=h==="[object Object]"||h==="[object Array]",b,_;if(m&&(b=e.duplicates.indexOf(r),_=b!==-1),(e.tag!==null&&e.tag!=="?"||_||e.indent!==2&&t>0)&&(s=!1),_&&e.usedDuplicates[b])e.dump="*ref_"+b;else{if(m&&_&&!e.usedDuplicates[b]&&(e.usedDuplicates[b]=!0),h==="[object Object]")a&&Object.keys(e.dump).length!==0?(CPn(e,t,e.dump,s),_&&(e.dump="&ref_"+b+e.dump)):(TPn(e,t,e.dump),_&&(e.dump="&ref_"+b+" "+e.dump));else if(h==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!u&&t>0?jot(e,t-1,e.dump,s):jot(e,t,e.dump,s),_&&(e.dump="&ref_"+b+e.dump)):(SPn(e,t,e.dump),_&&(e.dump="&ref_"+b+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&wPn(e,e.dump,t,o,f);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new z2("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?p="!"+p:p.slice(0,18)==="tag:yaml.org,2002:"?p="!!"+p.slice(18):p="!<"+p+">",e.dump=p+" "+e.dump)}return!0}X(bA,"writeNode");function APn(e,t){var r=[],a=[],s,o;for(N4e(e,r,a),s=0,o=a.length;s<o;s+=1)t.duplicates.push(r[a[s]]);t.usedDuplicates=new Array(o)}X(APn,"getDuplicateReferences");function N4e(e,t,r){var a,s,o;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,o=e.length;s<o;s+=1)N4e(e[s],t,r);else for(a=Object.keys(e),s=0,o=a.length;s<o;s+=1)N4e(e[a[s]],t,r)}X(N4e,"inspectNode");function xdi(e,t){t=t||{};var r=new fPn(t);r.noRefs||APn(e,r);var a=e;return r.replacer&&(a=r.replacer.call({"":a},"",a)),bA(r,0,a,!0,!0)?r.dump+`
`:""}X(xdi,"dump$1");function Sdi(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}X(Sdi,"renamed");var dAe=yMn,fAe=rdi.load;/*! Bundled license information:

js-yaml/dist/js-yaml.mjs:
  (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/var bb={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},Qyn={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Mie(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Hd(e),t=Hd(t);const[r,a]=[e.x,e.y],[s,o]=[t.x,t.y],u=s-r,h=o-a;return{angle:Math.atan(h/u),deltaX:u,deltaY:h}}X(Mie,"calculateDeltaAndAngle");var Hd=X(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),kPn=X(e=>({x:X(function(t,r,a){let s=0;const o=Hd(a[0]).x<Hd(a[a.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(bb,e.arrowTypeStart)){const{angle:w,deltaX:S}=Mie(a[0],a[1]);s=bb[e.arrowTypeStart]*Math.cos(w)*(S>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(bb,e.arrowTypeEnd)){const{angle:w,deltaX:S}=Mie(a[a.length-1],a[a.length-2]);s=bb[e.arrowTypeEnd]*Math.cos(w)*(S>=0?1:-1)}const u=Math.abs(Hd(t).x-Hd(a[a.length-1]).x),h=Math.abs(Hd(t).y-Hd(a[a.length-1]).y),f=Math.abs(Hd(t).x-Hd(a[0]).x),p=Math.abs(Hd(t).y-Hd(a[0]).y),m=bb[e.arrowTypeStart],b=bb[e.arrowTypeEnd],_=1;if(u<b&&u>0&&h<b){let w=b+_-u;w*=o==="right"?-1:1,s-=w}if(f<m&&f>0&&p<m){let w=m+_-f;w*=o==="right"?-1:1,s+=w}return Hd(t).x+s},"x"),y:X(function(t,r,a){let s=0;const o=Hd(a[0]).y<Hd(a[a.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(bb,e.arrowTypeStart)){const{angle:w,deltaY:S}=Mie(a[0],a[1]);s=bb[e.arrowTypeStart]*Math.abs(Math.sin(w))*(S>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(bb,e.arrowTypeEnd)){const{angle:w,deltaY:S}=Mie(a[a.length-1],a[a.length-2]);s=bb[e.arrowTypeEnd]*Math.abs(Math.sin(w))*(S>=0?1:-1)}const u=Math.abs(Hd(t).y-Hd(a[a.length-1]).y),h=Math.abs(Hd(t).x-Hd(a[a.length-1]).x),f=Math.abs(Hd(t).y-Hd(a[0]).y),p=Math.abs(Hd(t).x-Hd(a[0]).x),m=bb[e.arrowTypeStart],b=bb[e.arrowTypeEnd],_=1;if(u<b&&u>0&&h<b){let w=b+_-u;w*=o==="up"?-1:1,s-=w}if(f<m&&f>0&&p<m){let w=m+_-f;w*=o==="up"?-1:1,s+=w}return Hd(t).y+s},"y")}),"getLineFunctionsWithOffset"),oce=X(({flowchart:e})=>{var s,o;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,a=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),Tdi=X(e=>{const{handDrawnSeed:t}=nn();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),PW=X(e=>{const t=Cdi([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Cdi=X(e=>{const t=new Map;return e.forEach(r=>{const[a,s]=r.split(":");t.set(a.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),R1t=X(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),Ia=X(e=>{const{stylesArray:t}=PW(e),r=[],a=[],s=[],o=[];return t.forEach(u=>{const h=u[0];R1t(h)?r.push(u.join(":")+" !important"):(a.push(u.join(":")+" !important"),h.includes("stroke")&&s.push(u.join(":")+" !important"),h==="fill"&&o.push(u.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:a.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),Ja=X((e,t)=>{var f;const{themeVariables:r,handDrawnSeed:a}=nn(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:u}=PW(e);return Object.assign({roughness:.7,fill:u.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:u.get("stroke")||s,seed:a,strokeWidth:((f=u.get("stroke-width"))==null?void 0:f.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:Adi(u.get("stroke-dasharray"))},t)},"userNodeOverrides"),Adi=X(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],a=isNaN(t[1])?0:t[1];return[r,a]},"getStrokeDashArray"),I1t={},xg={};Object.defineProperty(xg,"__esModule",{value:!0});xg.BLANK_URL=xg.relativeFirstCharacters=xg.whitespaceEscapeCharsRegex=xg.urlSchemeRegex=xg.ctrlCharactersRegex=xg.htmlCtrlEntityRegex=xg.htmlEntitiesRegex=xg.invalidProtocolRegex=void 0;xg.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;xg.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;xg.htmlCtrlEntityRegex=/&(newline|tab);/gi;xg.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;xg.urlSchemeRegex=/^.+(:|&colon;)/gim;xg.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;xg.relativeFirstCharacters=[".","/"];xg.BLANK_URL="about:blank";Object.defineProperty(I1t,"__esModule",{value:!0});var M9=I1t.sanitizeUrl=void 0,mb=xg;function kdi(e){return mb.relativeFirstCharacters.indexOf(e[0])>-1}function Rdi(e){var t=e.replace(mb.ctrlCharactersRegex,"");return t.replace(mb.htmlEntitiesRegex,function(r,a){return String.fromCharCode(a)})}function Idi(e){return URL.canParse(e)}function Zyn(e){try{return decodeURIComponent(e)}catch{return e}}function Ndi(e){if(!e)return mb.BLANK_URL;var t,r=Zyn(e.trim());do r=Rdi(r).replace(mb.htmlCtrlEntityRegex,"").replace(mb.ctrlCharactersRegex,"").replace(mb.whitespaceEscapeCharsRegex,"").trim(),r=Zyn(r),t=r.match(mb.ctrlCharactersRegex)||r.match(mb.htmlEntitiesRegex)||r.match(mb.htmlCtrlEntityRegex)||r.match(mb.whitespaceEscapeCharsRegex);while(t&&t.length>0);var a=r;if(!a)return mb.BLANK_URL;if(kdi(a))return a;var s=a.trimStart(),o=s.match(mb.urlSchemeRegex);if(!o)return a;var u=o[0].toLowerCase().trim();if(mb.invalidProtocolRegex.test(u))return mb.BLANK_URL;var h=s.replace(/\\/g,"/");if(u==="mailto:"||u.includes("://"))return h;if(u==="http:"||u==="https:"){if(!Idi(h))return mb.BLANK_URL;var f=new URL(h);return f.protocol=f.protocol.toLowerCase(),f.hostname=f.hostname.toLowerCase(),f.toString()}return h}M9=I1t.sanitizeUrl=Ndi;var RPn=typeof global=="object"&&global&&global.Object===Object&&global,Odi=typeof self=="object"&&self&&self.Object===Object&&self,OA=RPn||Odi||Function("return this")(),wS=OA.Symbol,IPn=Object.prototype,Ldi=IPn.hasOwnProperty,Ddi=IPn.toString,$re=wS?wS.toStringTag:void 0;function Mdi(e){var t=Ldi.call(e,$re),r=e[$re];try{e[$re]=void 0;var a=!0}catch{}var s=Ddi.call(e);return a&&(t?e[$re]=r:delete e[$re]),s}var Pdi=Object.prototype,Bdi=Pdi.toString;function Fdi(e){return Bdi.call(e)}var $di="[object Null]",Udi="[object Undefined]",Jyn=wS?wS.toStringTag:void 0;function C$(e){return e==null?e===void 0?Udi:$di:Jyn&&Jyn in Object(e)?Mdi(e):Fdi(e)}function $w(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zdi="[object AsyncFunction]",Gdi="[object Function]",qdi="[object GeneratorFunction]",Hdi="[object Proxy]";function KO(e){if(!$w(e))return!1;var t=C$(e);return t==Gdi||t==qdi||t==zdi||t==Hdi}var Ctt=OA["__core-js_shared__"],evn=function(){var e=/[^.]+$/.exec(Ctt&&Ctt.keys&&Ctt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vdi(e){return!!evn&&evn in e}var Ydi=Function.prototype,jdi=Ydi.toString;function A$(e){if(e!=null){try{return jdi.call(e)}catch{}try{return e+""}catch{}}return""}var Wdi=/[\\^$.*+?()[\]{}|]/g,Kdi=/^\[object .+?Constructor\]$/,Xdi=Function.prototype,Qdi=Object.prototype,Zdi=Xdi.toString,Jdi=Qdi.hasOwnProperty,efi=RegExp("^"+Zdi.call(Jdi).replace(Wdi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tfi(e){if(!$w(e)||Vdi(e))return!1;var t=KO(e)?efi:Kdi;return t.test(A$(e))}function nfi(e,t){return e==null?void 0:e[t]}function k$(e,t){var r=nfi(e,t);return tfi(r)?r:void 0}var woe=k$(Object,"create");function rfi(){this.__data__=woe?woe(null):{},this.size=0}function ifi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var afi="__lodash_hash_undefined__",sfi=Object.prototype,ofi=sfi.hasOwnProperty;function lfi(e){var t=this.__data__;if(woe){var r=t[e];return r===afi?void 0:r}return ofi.call(t,e)?t[e]:void 0}var cfi=Object.prototype,ufi=cfi.hasOwnProperty;function hfi(e){var t=this.__data__;return woe?t[e]!==void 0:ufi.call(t,e)}var dfi="__lodash_hash_undefined__";function ffi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=woe&&t===void 0?dfi:t,this}function $F(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}$F.prototype.clear=rfi;$F.prototype.delete=ifi;$F.prototype.get=lfi;$F.prototype.has=hfi;$F.prototype.set=ffi;function pfi(){this.__data__=[],this.size=0}function BW(e,t){return e===t||e!==e&&t!==t}function pAe(e,t){for(var r=e.length;r--;)if(BW(e[r][0],t))return r;return-1}var gfi=Array.prototype,mfi=gfi.splice;function bfi(e){var t=this.__data__,r=pAe(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():mfi.call(t,r,1),--this.size,!0}function yfi(e){var t=this.__data__,r=pAe(t,e);return r<0?void 0:t[r][1]}function vfi(e){return pAe(this.__data__,e)>-1}function _fi(e,t){var r=this.__data__,a=pAe(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function yR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}yR.prototype.clear=pfi;yR.prototype.delete=bfi;yR.prototype.get=yfi;yR.prototype.has=vfi;yR.prototype.set=_fi;var Eoe=k$(OA,"Map");function wfi(){this.size=0,this.__data__={hash:new $F,map:new(Eoe||yR),string:new $F}}function Efi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gAe(e,t){var r=e.__data__;return Efi(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xfi(e){var t=gAe(this,e).delete(e);return this.size-=t?1:0,t}function Sfi(e){return gAe(this,e).get(e)}function Tfi(e){return gAe(this,e).has(e)}function Cfi(e,t){var r=gAe(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function vR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}vR.prototype.clear=wfi;vR.prototype.delete=xfi;vR.prototype.get=Sfi;vR.prototype.has=Tfi;vR.prototype.set=Cfi;var Afi="Expected a function";function _R(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Afi);var r=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=r.cache;if(o.has(s))return o.get(s);var u=e.apply(this,a);return r.cache=o.set(s,u)||o,u};return r.cache=new(_R.Cache||vR),r}_R.Cache=vR;function kfi(){this.__data__=new yR,this.size=0}function Rfi(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ifi(e){return this.__data__.get(e)}function Nfi(e){return this.__data__.has(e)}var Ofi=200;function Lfi(e,t){var r=this.__data__;if(r instanceof yR){var a=r.__data__;if(!Eoe||a.length<Ofi-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new vR(a)}return r.set(e,t),this.size=r.size,this}function K3(e){var t=this.__data__=new yR(e);this.size=t.size}K3.prototype.clear=kfi;K3.prototype.delete=Rfi;K3.prototype.get=Ifi;K3.prototype.has=Nfi;K3.prototype.set=Lfi;var O4e=function(){try{var e=k$(Object,"defineProperty");return e({},"",{}),e}catch{}}();function mAe(e,t,r){t=="__proto__"&&O4e?O4e(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Kot(e,t,r){(r!==void 0&&!BW(e[t],r)||r===void 0&&!(t in e))&&mAe(e,t,r)}function Dfi(e){return function(t,r,a){for(var s=-1,o=Object(t),u=a(t),h=u.length;h--;){var f=u[++s];if(r(o[f],f,o)===!1)break}return t}}var N1t=Dfi(),NPn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tvn=NPn&&typeof module=="object"&&module&&!module.nodeType&&module,Mfi=tvn&&tvn.exports===NPn,nvn=Mfi?OA.Buffer:void 0,rvn=nvn?nvn.allocUnsafe:void 0;function OPn(e,t){if(t)return e.slice();var r=e.length,a=rvn?rvn(r):new e.constructor(r);return e.copy(a),a}var L4e=OA.Uint8Array;function O1t(e){var t=new e.constructor(e.byteLength);return new L4e(t).set(new L4e(e)),t}function LPn(e,t){var r=t?O1t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function DPn(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var ivn=Object.create,Pfi=function(){function e(){}return function(t){if(!$w(t))return{};if(ivn)return ivn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function MPn(e,t){return function(r){return e(t(r))}}var L1t=MPn(Object.getPrototypeOf,Object),Bfi=Object.prototype;function bAe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bfi;return e===r}function PPn(e){return typeof e.constructor=="function"&&!bAe(e)?Pfi(L1t(e)):{}}function yA(e){return e!=null&&typeof e=="object"}var Ffi="[object Arguments]";function avn(e){return yA(e)&&C$(e)==Ffi}var BPn=Object.prototype,$fi=BPn.hasOwnProperty,Ufi=BPn.propertyIsEnumerable,Dj=avn(function(){return arguments}())?avn:function(e){return yA(e)&&$fi.call(e,"callee")&&!Ufi.call(e,"callee")},Z0=Array.isArray,zfi=9007199254740991;function D1t(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zfi}function P9(e){return e!=null&&D1t(e.length)&&!KO(e)}function FPn(e){return yA(e)&&P9(e)}function Gfi(){return!1}var $Pn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,svn=$Pn&&typeof module=="object"&&module&&!module.nodeType&&module,qfi=svn&&svn.exports===$Pn,ovn=qfi?OA.Buffer:void 0,Hfi=ovn?ovn.isBuffer:void 0,Mj=Hfi||Gfi,Vfi="[object Object]",Yfi=Function.prototype,jfi=Object.prototype,UPn=Yfi.toString,Wfi=jfi.hasOwnProperty,Kfi=UPn.call(Object);function zPn(e){if(!yA(e)||C$(e)!=Vfi)return!1;var t=L1t(e);if(t===null)return!0;var r=Wfi.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&UPn.call(r)==Kfi}var Xfi="[object Arguments]",Qfi="[object Array]",Zfi="[object Boolean]",Jfi="[object Date]",e0i="[object Error]",t0i="[object Function]",n0i="[object Map]",r0i="[object Number]",i0i="[object Object]",a0i="[object RegExp]",s0i="[object Set]",o0i="[object String]",l0i="[object WeakMap]",c0i="[object ArrayBuffer]",u0i="[object DataView]",h0i="[object Float32Array]",d0i="[object Float64Array]",f0i="[object Int8Array]",p0i="[object Int16Array]",g0i="[object Int32Array]",m0i="[object Uint8Array]",b0i="[object Uint8ClampedArray]",y0i="[object Uint16Array]",v0i="[object Uint32Array]",pd={};pd[h0i]=pd[d0i]=pd[f0i]=pd[p0i]=pd[g0i]=pd[m0i]=pd[b0i]=pd[y0i]=pd[v0i]=!0;pd[Xfi]=pd[Qfi]=pd[c0i]=pd[Zfi]=pd[u0i]=pd[Jfi]=pd[e0i]=pd[t0i]=pd[n0i]=pd[r0i]=pd[i0i]=pd[a0i]=pd[s0i]=pd[o0i]=pd[l0i]=!1;function _0i(e){return yA(e)&&D1t(e.length)&&!!pd[C$(e)]}function yAe(e){return function(t){return e(t)}}var GPn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cse=GPn&&typeof module=="object"&&module&&!module.nodeType&&module,w0i=cse&&cse.exports===GPn,Att=w0i&&RPn.process,Pj=function(){try{var e=cse&&cse.require&&cse.require("util").types;return e||Att&&Att.binding&&Att.binding("util")}catch{}}(),lvn=Pj&&Pj.isTypedArray,vAe=lvn?yAe(lvn):_0i;function Xot(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var E0i=Object.prototype,x0i=E0i.hasOwnProperty;function _Ae(e,t,r){var a=e[t];(!(x0i.call(e,t)&&BW(a,r))||r===void 0&&!(t in e))&&mAe(e,t,r)}function lce(e,t,r,a){var s=!r;r||(r={});for(var o=-1,u=t.length;++o<u;){var h=t[o],f=void 0;f===void 0&&(f=e[h]),s?mAe(r,h,f):_Ae(r,h,f)}return r}function S0i(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var T0i=9007199254740991,C0i=/^(?:0|[1-9]\d*)$/;function wAe(e,t){var r=typeof e;return t=t??T0i,!!t&&(r=="number"||r!="symbol"&&C0i.test(e))&&e>-1&&e%1==0&&e<t}var A0i=Object.prototype,k0i=A0i.hasOwnProperty;function qPn(e,t){var r=Z0(e),a=!r&&Dj(e),s=!r&&!a&&Mj(e),o=!r&&!a&&!s&&vAe(e),u=r||a||s||o,h=u?S0i(e.length,String):[],f=h.length;for(var p in e)(t||k0i.call(e,p))&&!(u&&(p=="length"||s&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||wAe(p,f)))&&h.push(p);return h}function R0i(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var I0i=Object.prototype,N0i=I0i.hasOwnProperty;function O0i(e){if(!$w(e))return R0i(e);var t=bAe(e),r=[];for(var a in e)a=="constructor"&&(t||!N0i.call(e,a))||r.push(a);return r}function R$(e){return P9(e)?qPn(e,!0):O0i(e)}function L0i(e){return lce(e,R$(e))}function D0i(e,t,r,a,s,o,u){var h=Xot(e,r),f=Xot(t,r),p=u.get(f);if(p){Kot(e,r,p);return}var m=o?o(h,f,r+"",e,t,u):void 0,b=m===void 0;if(b){var _=Z0(f),w=!_&&Mj(f),S=!_&&!w&&vAe(f);m=f,_||w||S?Z0(h)?m=h:FPn(h)?m=DPn(h):w?(b=!1,m=OPn(f,!0)):S?(b=!1,m=LPn(f,!0)):m=[]:zPn(f)||Dj(f)?(m=h,Dj(h)?m=L0i(h):(!$w(h)||KO(h))&&(m=PPn(f))):b=!1}b&&(u.set(f,m),s(m,f,a,o,u),u.delete(f)),Kot(e,r,m)}function HPn(e,t,r,a,s){e!==t&&N1t(t,function(o,u){if(s||(s=new K3),$w(o))D0i(e,t,u,r,HPn,a,s);else{var h=a?a(Xot(e,u),o,u+"",e,t,s):void 0;h===void 0&&(h=o),Kot(e,u,h)}},R$)}function I$(e){return e}function M0i(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var cvn=Math.max;function VPn(e,t,r){return t=cvn(t===void 0?e.length-1:t,0),function(){for(var a=arguments,s=-1,o=cvn(a.length-t,0),u=Array(o);++s<o;)u[s]=a[t+s];s=-1;for(var h=Array(t+1);++s<t;)h[s]=a[s];return h[t]=r(u),M0i(e,this,h)}}function $3(e){return function(){return e}}var P0i=O4e?function(e,t){return O4e(e,"toString",{configurable:!0,enumerable:!1,value:$3(t),writable:!0})}:I$,B0i=800,F0i=16,$0i=Date.now;function U0i(e){var t=0,r=0;return function(){var a=$0i(),s=F0i-(a-r);if(r=a,s>0){if(++t>=B0i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YPn=U0i(P0i);function EAe(e,t){return YPn(VPn(e,t,I$),e+"")}function xoe(e,t,r){if(!$w(r))return!1;var a=typeof t;return(a=="number"?P9(r)&&wAe(t,r.length):a=="string"&&t in r)?BW(r[t],e):!1}function z0i(e){return EAe(function(t,r){var a=-1,s=r.length,o=s>1?r[s-1]:void 0,u=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,u&&xoe(r[0],r[1],u)&&(o=s<3?void 0:o,s=1),t=Object(t);++a<s;){var h=r[a];h&&e(t,h,a,o)}return t})}var XO=z0i(function(e,t,r){HPn(e,t,r)}),jPn="​",G0i={curveBasis:j3,curveBasisClosed:IDn,curveBasisOpen:ODn,curveBumpX:l1t,curveBumpY:c1t,curveBundle:DDn,curveCardinalClosed:MDn,curveCardinalOpen:PDn,curveCardinal:h1t,curveCatmullRomClosed:$Dn,curveCatmullRomOpen:zDn,curveCatmullRom:g1t,curveLinear:Cg,curveLinearClosed:qDn,curveMonotoneX:m1t,curveMonotoneY:b1t,curveNatural:y1t,curveStep:v1t,curveStepAfter:w1t,curveStepBefore:_1t},q0i=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,H0i=X(function(e,t){const r=WPn(e,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const u=r.map(h=>h.args);i4e(u),a=W0(a,[...u])}else a=r.args;if(!a)return;let s=F0t(e,t);const o="config";return a[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),a[s]=a[o],delete a[o]),a},"detectInit"),WPn=X(function(e,t=null){var r,a;try{const s=new RegExp(`[%]{2}(?![{]${q0i.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),it.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const u=[];for(;(o=sse.exec(e))!==null;)if(o.index===sse.lastIndex&&sse.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((a=o[2])!=null&&a.match(t))){const h=o[1]?o[1]:o[2],f=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;u.push({type:h,args:f})}return u.length===0?{type:e,args:null}:u.length===1?u[0]:u}catch(s){return it.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),V0i=X(function(e){return e.replace(sse,"")},"removeDirectives"),Y0i=X(function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1},"isSubstringInArray");function M1t(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return G0i[r]??t}X(M1t,"interpolateToCurve");function KPn(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?M9(r):r}X(KPn,"formatUrl");var j0i=X((e,...t)=>{const r=e.split("."),a=r.length-1,s=r[a];let o=window;for(let u=0;u<a;u++)if(o=o[r[u]],!o){it.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function P1t(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}X(P1t,"distance");function XPn(e){let t,r=0;e.forEach(s=>{r+=P1t(s,t),t=s});const a=r/2;return B1t(e,a)}X(XPn,"traverseEdge");function QPn(e){return e.length===1?e[0]:XPn(e)}X(QPn,"calcLabelPosition");var uvn=X((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),B1t=X((e,t)=>{let r,a=t;for(const s of e){if(r){const o=P1t(s,r);if(o===0)return r;if(o<a)a-=o;else{const u=a/o;if(u<=0)return r;if(u>=1)return{x:s.x,y:s.y};if(u>0&&u<1)return{x:uvn((1-u)*r.x+u*s.x,5),y:uvn((1-u)*r.y+u*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),W0i=X((e,t,r)=>{it.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=B1t(t,25),o=e?10:5,u=Math.atan2(t[0].y-s.y,t[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(u)*o+(t[0].x+s.x)/2,h.y=-Math.cos(u)*o+(t[0].y+s.y)/2,h},"calcCardinalityPosition");function ZPn(e,t,r){const a=structuredClone(r);it.info("our points",a),t!=="start_left"&&t!=="start_right"&&a.reverse();const s=25+e,o=B1t(a,s),u=10+e*.5,h=Math.atan2(a[0].y-o.y,a[0].x-o.x),f={x:0,y:0};return t==="start_left"?(f.x=Math.sin(h+Math.PI)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h+Math.PI)*u+(a[0].y+o.y)/2):t==="end_right"?(f.x=Math.sin(h-Math.PI)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h-Math.PI)*u+(a[0].y+o.y)/2-5):t==="end_left"?(f.x=Math.sin(h)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2-5):(f.x=Math.sin(h)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2),f}X(ZPn,"calcTerminalLabelPosition");function F1t(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}X(F1t,"getStylesFromArray");var hvn=0,JPn=X(()=>(hvn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+hvn),"generateId");function eBn(e){let t="";const r="0123456789abcdef",a=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*a));return t}X(eBn,"makeRandomHex");var tBn=X(e=>eBn(e.length),"random"),K0i=X(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,text:""}},"getTextObj"),X0i=X(function(e,t){const r=t.text.replace(Ti.lineBreakRegex," "),[,a]=N$(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",a),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),nBn=_R((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ti.lineBreakRegex.test(e)))return e;const a=e.split(" ").filter(Boolean),s=[];let o="";return a.forEach((u,h)=>{const f=nv(`${u} `,r),p=nv(o,r);if(f>t){const{hyphenatedStrings:_,remainingWord:w}=Q0i(u,t,"-",r);s.push(o,..._),o=w}else p+f>=t?(s.push(o),o=u):o=[o,u].filter(Boolean).join(" ");h+1===a.length&&s.push(o)}),s.filter(u=>u!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Q0i=_R((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const s=[...e],o=[];let u="";return s.forEach((h,f)=>{const p=`${u}${h}`;if(nv(p,a)>=t){const b=f+1,_=s.length===b,w=`${p}${r}`;o.push(_?p:w),u=""}else u=p}),{hyphenatedStrings:o,remainingWord:u}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function D4e(e,t){return $1t(e,t).height}X(D4e,"calculateTextHeight");function nv(e,t){return $1t(e,t).width}X(nv,"calculateTextWidth");var $1t=_R((e,t)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=N$(r),u=["sans-serif",a],h=e.split(Ti.lineBreakRegex),f=[],p=gn("body");if(!p.remove)return{width:0,height:0,lineHeight:0};const m=p.append("svg");for(const _ of u){let w=0;const S={width:0,height:0,lineHeight:0};for(const C of h){const A=K0i();A.text=C||jPn;const k=X0i(m,A).style("font-size",o).style("font-weight",s).style("font-family",_),I=(k._groups||k)[0][0].getBBox();if(I.width===0&&I.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,I.width)),w=Math.round(I.height),S.height+=w,S.lineHeight=Math.round(Math.max(S.lineHeight,w))}f.push(S)}m.remove();const b=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),wY,Z0i=(wY=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},X(wY,"InitIDGenerator"),wY),Q_e,J0i=X(function(e){return Q_e=Q_e||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Q_e.innerHTML=e,unescape(Q_e.textContent)},"entityDecode");function U1t(e){return"str"in e}X(U1t,"isDetailedError");var e1i=X((e,t,r,a)=>{var o;if(!a)return;const s=(o=e.node())==null?void 0:o.getBBox();s&&e.append("text").text(a).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),N$=X(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function cv(e,t){return XO({},e,t)}X(cv,"cleanAndMerge");var Vo={assignWithDepth:W0,wrapLabel:nBn,calculateTextHeight:D4e,calculateTextWidth:nv,calculateTextDimensions:$1t,cleanAndMerge:cv,detectInit:H0i,detectDirective:WPn,isSubstringInArray:Y0i,interpolateToCurve:M1t,calcLabelPosition:QPn,calcCardinalityPosition:W0i,calcTerminalLabelPosition:ZPn,formatUrl:KPn,getStylesFromArray:F1t,generateId:JPn,random:tBn,runFunc:j0i,entityDecode:J0i,insertTitle:e1i,isLabelCoordinateInPath:rBn,parseFontSize:N$,InitIDGenerator:Z0i},t1i=X(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"ﬂ°°"+a+"¶ß":"ﬂ°"+a+"¶ß"}),t},"encodeEntities"),vA=X(function(e){return e.replace(/ﬂ°°/g,"&#").replace(/ﬂ°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),XV=X((e,t,{counter:r=0,prefix:a,suffix:s},o)=>o||`${a?`${a}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function Tb(e){return e??null}X(Tb,"handleUndefinedAttr");function rBn(e,t){const r=Math.round(e.x),a=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(a.toString())}X(rBn,"isLabelCoordinateInPath");const n1i=Object.freeze({left:0,top:0,width:16,height:16}),M4e=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),iBn=Object.freeze({...n1i,...M4e}),r1i=Object.freeze({...iBn,body:"",hidden:!1}),i1i=Object.freeze({width:null,height:null}),a1i=Object.freeze({...i1i,...M4e}),s1i=(e,t,r,a="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;a=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const h=s.pop(),f=s.pop(),p={provider:s.length>0?s[0]:a,prefix:f,name:h};return ktt(p)?p:null}const o=s[0],u=o.split("-");if(u.length>1){const h={provider:a,prefix:u.shift(),name:u.join("-")};return ktt(h)?h:null}if(r&&a===""){const h={provider:a,prefix:"",name:o};return ktt(h,r)?h:null}return null},ktt=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function o1i(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const a=((e.rotate||0)+(t.rotate||0))%4;return a&&(r.rotate=a),r}function dvn(e,t){const r=o1i(e,t);for(const a in r1i)a in M4e?a in e&&!(a in r)&&(r[a]=M4e[a]):a in t?r[a]=t[a]:a in e&&(r[a]=e[a]);return r}function l1i(e,t){const r=e.icons,a=e.aliases||Object.create(null),s=Object.create(null);function o(u){if(r[u])return s[u]=[];if(!(u in s)){s[u]=null;const h=a[u]&&a[u].parent,f=h&&o(h);f&&(s[u]=[h].concat(f))}return s[u]}return(t||Object.keys(r).concat(Object.keys(a))).forEach(o),s}function fvn(e,t,r){const a=e.icons,s=e.aliases||Object.create(null);let o={};function u(h){o=dvn(a[h]||s[h],o)}return u(t),r.forEach(u),dvn(e,o)}function c1i(e,t){if(e.icons[t])return fvn(e,t,[]);const r=l1i(e,[t])[t];return r?fvn(e,t,r):null}const u1i=/(-?[0-9.]*[0-9]+[0-9.]*)/g,h1i=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pvn(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const a=e.split(u1i);if(a===null||!a.length)return e;const s=[];let o=a.shift(),u=h1i.test(o);for(;;){if(u){const h=parseFloat(o);isNaN(h)?s.push(o):s.push(Math.ceil(h*t*r)/r)}else s.push(o);if(o=a.shift(),o===void 0)return s.join("");u=!u}}function d1i(e,t="defs"){let r="";const a=e.indexOf("<"+t);for(;a>=0;){const s=e.indexOf(">",a),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const u=e.indexOf(">",o);if(u===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,a).trim()+e.slice(u+1)}return{defs:r,content:e}}function f1i(e,t){return e?"<defs>"+e+"</defs>"+t:t}function p1i(e,t,r){const a=d1i(e);return f1i(a.defs,t+a.content+r)}const g1i=e=>e==="unset"||e==="undefined"||e==="none";function m1i(e,t){const r={...iBn,...e},a={...a1i,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,a].forEach(C=>{const A=[],k=C.hFlip,I=C.vFlip;let N=C.rotate;k?I?N+=2:(A.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),A.push("scale(-1 1)"),s.top=s.left=0):I&&(A.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),A.push("scale(1 -1)"),s.top=s.left=0);let L;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:L=s.height/2+s.top,A.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:A.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:L=s.width/2+s.left,A.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}N%2===1&&(s.left!==s.top&&(L=s.left,s.left=s.top,s.top=L),s.width!==s.height&&(L=s.width,s.width=s.height,s.height=L)),A.length&&(o=p1i(o,'<g transform="'+A.join(" ")+'">',"</g>"))});const u=a.width,h=a.height,f=s.width,p=s.height;let m,b;u===null?(b=h===null?"1em":h==="auto"?p:h,m=pvn(b,f/p)):(m=u==="auto"?f:u,b=h===null?pvn(m,p/f):h==="auto"?p:h);const _={},w=(C,A)=>{g1i(A)||(_[C]=A.toString())};w("width",m),w("height",b);const S=[s.left,s.top,f,p];return _.viewBox=S.join(" "),{attributes:_,viewBox:S,body:o}}const b1i=/\sid="(\S+)"/g,gvn=new Map;function y1i(e){e=e.replace(/[0-9]+$/,"")||"a";const t=gvn.get(e)||0;return gvn.set(e,t+1),t?`${e}${t}`:e}function v1i(e){const t=[];let r;for(;r=b1i.exec(e);)t.push(r[1]);if(!t.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=y1i(s),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+o+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}function _1i(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in t)r+=" "+a+'="'+t[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function z1t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O$=z1t();function aBn(e){O$=e}var use={exec:()=>null};function pu(e,t=""){let r=typeof e=="string"?e:e.source,a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Jy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var w1i=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Jy={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},E1i=/^(?:[ \t]*(?:\n|$))+/,x1i=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,S1i=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cce=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T1i=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,G1t=/(?:[*+-]|\d{1,9}[.)])/,sBn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oBn=pu(sBn).replace(/bull/g,G1t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),C1i=pu(sBn).replace(/bull/g,G1t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),q1t=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,A1i=/^[^\n]+/,H1t=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k1i=pu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",H1t).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R1i=pu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,G1t).getRegex(),xAe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V1t=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I1i=pu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",V1t).replace("tag",xAe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lBn=pu(q1t).replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex(),N1i=pu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lBn).getRegex(),Y1t={blockquote:N1i,code:x1i,def:k1i,fences:S1i,heading:T1i,hr:cce,html:I1i,lheading:oBn,list:R1i,newline:E1i,paragraph:lBn,table:use,text:A1i},mvn=pu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex(),O1i={...Y1t,lheading:C1i,table:mvn,paragraph:pu(q1t).replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mvn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex()},L1i={...Y1t,html:pu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",V1t).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:use,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pu(q1t).replace("hr",cce).replace("heading",` *#{1,6} *[^
]`).replace("lheading",oBn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},D1i=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,M1i=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cBn=/^( {2,}|\\)\n(?!\s*$)/,P1i=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,SAe=/[\p{P}\p{S}]/u,j1t=/[\s\p{P}\p{S}]/u,uBn=/[^\s\p{P}\p{S}]/u,B1i=pu(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,j1t).getRegex(),hBn=/(?!~)[\p{P}\p{S}]/u,F1i=/(?!~)[\s\p{P}\p{S}]/u,$1i=/(?:[^\s\p{P}\p{S}]|~)/u,U1i=pu(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",w1i?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dBn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z1i=pu(dBn,"u").replace(/punct/g,SAe).getRegex(),G1i=pu(dBn,"u").replace(/punct/g,hBn).getRegex(),fBn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",q1i=pu(fBn,"gu").replace(/notPunctSpace/g,uBn).replace(/punctSpace/g,j1t).replace(/punct/g,SAe).getRegex(),H1i=pu(fBn,"gu").replace(/notPunctSpace/g,$1i).replace(/punctSpace/g,F1i).replace(/punct/g,hBn).getRegex(),V1i=pu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,uBn).replace(/punctSpace/g,j1t).replace(/punct/g,SAe).getRegex(),Y1i=pu(/\\(punct)/,"gu").replace(/punct/g,SAe).getRegex(),j1i=pu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W1i=pu(V1t).replace("(?:-->|$)","-->").getRegex(),K1i=pu("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W1i).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),P4e=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,X1i=pu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",P4e).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pBn=pu(/^!?\[(label)\]\[(ref)\]/).replace("label",P4e).replace("ref",H1t).getRegex(),gBn=pu(/^!?\[(ref)\](?:\[\])?/).replace("ref",H1t).getRegex(),Q1i=pu("reflink|nolink(?!\\()","g").replace("reflink",pBn).replace("nolink",gBn).getRegex(),bvn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,W1t={_backpedal:use,anyPunctuation:Y1i,autolink:j1i,blockSkip:U1i,br:cBn,code:M1i,del:use,emStrongLDelim:z1i,emStrongRDelimAst:q1i,emStrongRDelimUnd:V1i,escape:D1i,link:X1i,nolink:gBn,punctuation:B1i,reflink:pBn,reflinkSearch:Q1i,tag:K1i,text:P1i,url:use},Z1i={...W1t,link:pu(/^!?\[(label)\]\((.*?)\)/).replace("label",P4e).getRegex(),reflink:pu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P4e).getRegex()},Qot={...W1t,emStrongRDelimAst:H1i,emStrongLDelim:G1i,url:pu(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",bvn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pu(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",bvn).getRegex()},J1i={...Qot,br:pu(cBn).replace("{2,}","*").getRegex(),text:pu(Qot.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z_e={normal:Y1t,gfm:O1i,pedantic:L1i},Ure={normal:W1t,gfm:Qot,breaks:J1i,pedantic:Z1i},epi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yvn=e=>epi[e];function wC(e,t){if(t){if(Jy.escapeTest.test(e))return e.replace(Jy.escapeReplace,yvn)}else if(Jy.escapeTestNoEncode.test(e))return e.replace(Jy.escapeReplaceNoEncode,yvn);return e}function vvn(e){try{e=encodeURI(e).replace(Jy.percentDecode,"%")}catch{return null}return e}function _vn(e,t){var o;let r=e.replace(Jy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Jy.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;s<a.length;s++)a[s]=a[s].trim().replace(Jy.slashPipe,"|");return a}function zre(e,t,r){let a=e.length;if(a===0)return"";let s=0;for(;s<a&&e.charAt(a-s-1)===t;)s++;return e.slice(0,a-s)}function tpi(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return r>0?-2:-1}function wvn(e,t,r,a,s){let o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function npi(e,t,r){let a=e.match(r.other.indentCodeCompensation);if(a===null)return t;let s=a[1];return t.split(`
`).map(o=>{let u=o.match(r.other.beginningSpace);if(u===null)return o;let[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(`
`)}var B4e=class{constructor(t){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=t||O$}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let a=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:zre(a,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let a=r[0],s=npi(a,r[3]||"",this.rules);return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(this.rules.other.endingHash.test(a)){let s=zre(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:zre(r[0],`
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let a=zre(r[0],`
`).split(`
`),s="",o="",u=[];for(;a.length>0;){let h=!1,f=[],p;for(p=0;p<a.length;p++)if(this.rules.other.blockquoteStart.test(a[p]))f.push(a[p]),h=!0;else if(!h)f.push(a[p]);else break;a=a.slice(p);let m=f.join(`
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
${m}`:m,o=o?`${o}
${b}`:b;let _=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,u,!0),this.lexer.state.top=_,a.length===0)break;let w=u.at(-1);if((w==null?void 0:w.type)==="code")break;if((w==null?void 0:w.type)==="blockquote"){let S=w,C=S.raw+`
`+a.join(`
`),A=this.blockquote(C);u[u.length-1]=A,s=s.substring(0,s.length-S.raw.length)+A.raw,o=o.substring(0,o.length-S.text.length)+A.text;break}else if((w==null?void 0:w.type)==="list"){let S=w,C=S.raw+`
`+a.join(`
`),A=this.list(C);u[u.length-1]=A,s=s.substring(0,s.length-w.raw.length)+A.raw,o=o.substring(0,o.length-S.raw.length)+A.raw,a=C.substring(u.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let a=r[1].trim(),s=a.length>1,o={type:"list",raw:"",ordered:s,start:s?+a.slice(0,-1):"",loose:!1,items:[]};a=s?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=s?a:"[*+-]");let u=this.rules.other.listItemRegex(a),h=!1;for(;t;){let p=!1,m="",b="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let _=r[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),w=t.split(`
`,1)[0],S=!_.trim(),C=0;if(this.options.pedantic?(C=2,b=_.trimStart()):S?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,b=_.slice(C),C+=r[1].length),S&&this.rules.other.blankLine.test(w)&&(m+=w+`
`,t=t.substring(w.length+1),p=!0),!p){let I=this.rules.other.nextBulletRegex(C),N=this.rules.other.hrRegex(C),L=this.rules.other.fencesBeginRegex(C),P=this.rules.other.headingBeginRegex(C),M=this.rules.other.htmlBeginRegex(C);for(;t;){let F=t.split(`
`,1)[0],U;if(w=F,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting,"  "),U=w):U=w.replace(this.rules.other.tabCharGlobal,"    "),L.test(w)||P.test(w)||M.test(w)||I.test(w)||N.test(w))break;if(U.search(this.rules.other.nonSpaceChar)>=C||!w.trim())b+=`
`+U.slice(C);else{if(S||_.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||L.test(_)||P.test(_)||N.test(_))break;b+=`
`+w}!S&&!w.trim()&&(S=!0),m+=F+`
`,t=t.substring(F.length+1),_=U.slice(C)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0));let A=null,k;this.options.gfm&&(A=this.rules.other.listIsTask.exec(b),A&&(k=A[0]!=="[ ] ",b=b.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:m,task:!!A,checked:k,loose:!1,text:b,tokens:[]}),o.raw+=m}let f=o.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p=0;p<o.items.length;p++)if(this.lexer.state.top=!1,o.items[p].tokens=this.lexer.blockTokens(o.items[p].text,[]),!o.loose){let m=o.items[p].tokens.filter(_=>_.type==="space"),b=m.length>0&&m.some(_=>this.rules.other.anyLine.test(_.raw));o.loose=b}if(o.loose)for(let p=0;p<o.items.length;p++)o.items[p].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let a=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:a,raw:r[0],href:s,title:o}}}table(t){var h;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let a=_vn(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(h=r[3])!=null&&h.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(a.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<a.length;f++)u.header.push({text:a[f],tokens:this.lexer.inline(a[f]),header:!0,align:u.align[f]});for(let f of o)u.rows.push(_vn(f,u.header.length).map((p,m)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let a=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let u=zre(a.slice(0,-1),"\\");if((a.length-u.length)%2===0)return}else{let u=tpi(r[2],"()");if(u===-2)return;if(u>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],o=u[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),wvn(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let u=a[0].charAt(0);return{type:"text",raw:u,text:u}}return wvn(a,o,a[0],this.lexer,this.rules)}}emStrong(t,r,a=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,u,h,f=o,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+o);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(h=[...u].length,s[3]||s[4]){f+=h;continue}else if((s[5]||s[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);let b=[...s[0]][0].length,_=t.slice(0,o+s.index+b+h);if(Math.min(o,h)%2){let S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}let w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let a=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),o=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&o&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:r[0],text:a}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let a,s;return r[2]==="@"?(a=r[1],s="mailto:"+a):(a=r[1],s=a),{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(t){var a;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let u;do u=r[0],r[0]=((a=this.rules.inline._backpedal.exec(r[0]))==null?void 0:a[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let a=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:a}}}},M3=class Zot{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"tokenizer");Gi(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||O$,this.options.tokenizer=this.options.tokenizer||new B4e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Jy,block:Z_e.normal,inline:Ure.normal};this.options.pedantic?(r.block=Z_e.pedantic,r.inline=Ure.pedantic):this.options.gfm&&(r.block=Z_e.gfm,this.options.breaks?r.inline=Ure.breaks:r.inline=Ure.gfm),this.tokenizer.rules=r}static get rules(){return{block:Z_e,inline:Ure}}static lex(t,r){return new Zot(r).lex(t)}static lexInline(t,r){return new Zot(r).inlineTokens(t)}lex(t){t=t.replace(Jy.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let a=this.inlineQueue[r];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],a=!1){var s,o,u;for(this.options.pedantic&&(t=t.replace(Jy.tabCharGlobal,"    ").replace(Jy.spaceLine,""));t;){let h;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(p=>(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);let p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=`
`:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},r.push(h));continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){let p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
`)?"":`
`)+h.raw,p.text+=`
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,b,_;let a=t,s=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)w.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)o=s[2]?s[2].length:0,a=a.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},a))??a;let u=!1,h="";for(;t;){u||(h=""),u=!1;let w;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(C=>(w=C.call({lexer:this},t,r))?(t=t.substring(w.raw.length),r.push(w),!0):!1))continue;if(w=this.tokenizer.escape(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.tag(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.link(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(w.raw.length);let C=r.at(-1);w.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(w=this.tokenizer.emStrong(t,a,h)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.codespan(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.br(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.del(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.autolink(t)){t=t.substring(w.raw.length),r.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(t))){t=t.substring(w.raw.length),r.push(w);continue}let S=t;if((_=this.options.extensions)!=null&&_.startInline){let C=1/0,A=t.slice(1),k;this.options.extensions.startInline.forEach(I=>{k=I.call({lexer:this},A),typeof k=="number"&&k>=0&&(C=Math.min(C,k))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(w=this.tokenizer.inlineText(S)){t=t.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(h=w.raw.slice(-1)),u=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},F4e=class{constructor(t){Gi(this,"options");Gi(this,"parser");this.options=t||O$}space(t){return""}code({text:t,lang:r,escaped:a}){var u;let s=(u=(r||"").match(Jy.notSpaceStart))==null?void 0:u[0],o=t.replace(Jy.endingNewline,"")+`
`;return s?'<pre><code class="language-'+wC(s)+'">'+(a?o:wC(o,!0))+`</code></pre>
`:"<pre><code>"+(a?o:wC(o,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
`}hr(t){return`<hr>
`}list(t){let r=t.ordered,a=t.start,s="";for(let h=0;h<t.items.length;h++){let f=t.items[h];s+=this.listitem(f)}let o=r?"ol":"ul",u=r&&a!==1?' start="'+a+'"':"";return"<"+o+u+`>
`+s+"</"+o+`>
`}listitem(t){var a;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((a=t.tokens[0])==null?void 0:a.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+wC(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let r="",a="";for(let o=0;o<t.header.length;o++)a+=this.tablecell(t.header[o]);r+=this.tablerow({text:a});let s="";for(let o=0;o<t.rows.length;o++){let u=t.rows[o];a="";for(let h=0;h<u.length;h++)a+=this.tablecell(u[h]);s+=this.tablerow({text:a})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+s+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let r=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+r+`</${a}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${wC(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:a}){let s=this.parser.parseInline(a),o=vvn(t);if(o===null)return s;t=o;let u='<a href="'+t+'"';return r&&(u+=' title="'+wC(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let o=vvn(t);if(o===null)return wC(a);t=o;let u=`<img src="${t}" alt="${a}"`;return r&&(u+=` title="${wC(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:wC(t.text)}},K1t=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},P3=class Jot{constructor(t){Gi(this,"options");Gi(this,"renderer");Gi(this,"textRenderer");this.options=t||O$,this.options.renderer=this.options.renderer||new F4e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K1t}static parse(t,r){return new Jot(r).parse(t)}static parseInline(t,r){return new Jot(r).parseInline(t)}parse(t,r=!0){var s,o;let a="";for(let u=0;u<t.length;u++){let h=t[u];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[h.type]){let p=h,m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){a+=m||"";continue}}let f=h;switch(f.type){case"space":{a+=this.renderer.space(f);continue}case"hr":{a+=this.renderer.hr(f);continue}case"heading":{a+=this.renderer.heading(f);continue}case"code":{a+=this.renderer.code(f);continue}case"table":{a+=this.renderer.table(f);continue}case"blockquote":{a+=this.renderer.blockquote(f);continue}case"list":{a+=this.renderer.list(f);continue}case"html":{a+=this.renderer.html(f);continue}case"def":{a+=this.renderer.def(f);continue}case"paragraph":{a+=this.renderer.paragraph(f);continue}case"text":{let p=f,m=this.renderer.text(p);for(;u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
`+this.renderer.text(p);r?a+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):a+=m;continue}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}parseInline(t,r=this.renderer){var s,o;let a="";for(let u=0;u<t.length;u++){let h=t[u];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[h.type]){let p=this.options.extensions.renderers[h.type].call({parser:this},h);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){a+=p||"";continue}}let f=h;switch(f.type){case"escape":{a+=r.text(f);break}case"html":{a+=r.html(f);break}case"link":{a+=r.link(f);break}case"image":{a+=r.image(f);break}case"strong":{a+=r.strong(f);break}case"em":{a+=r.em(f);break}case"codespan":{a+=r.codespan(f);break}case"br":{a+=r.br(f);break}case"del":{a+=r.del(f);break}case"text":{a+=r.text(f);break}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return a}},IEe,Pie=(IEe=class{constructor(t){Gi(this,"options");Gi(this,"block");this.options=t||O$}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?M3.lex:M3.lexInline}provideParser(){return this.block?P3.parse:P3.parseInline}},Gi(IEe,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Gi(IEe,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),IEe),rpi=class{constructor(...t){Gi(this,"defaults",z1t());Gi(this,"options",this.setOptions);Gi(this,"parse",this.parseMarkdown(!0));Gi(this,"parseInline",this.parseMarkdown(!1));Gi(this,"Parser",P3);Gi(this,"Renderer",F4e);Gi(this,"TextRenderer",K1t);Gi(this,"Lexer",M3);Gi(this,"Tokenizer",B4e);Gi(this,"Hooks",Pie);this.use(...t)}walkTokens(t,r){var s,o;let a=[];for(let u of t)switch(a=a.concat(r.call(this,u)),u.type){case"table":{let h=u;for(let f of h.header)a=a.concat(this.walkTokens(f.tokens,r));for(let f of h.rows)for(let p of f)a=a.concat(this.walkTokens(p.tokens,r));break}case"list":{let h=u;a=a.concat(this.walkTokens(h.items,r));break}default:{let h=u;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[h.type]?this.defaults.extensions.childTokens[h.type].forEach(f=>{let p=h[f].flat(1/0);a=a.concat(this.walkTokens(p,r))}):h.tokens&&(a=a.concat(this.walkTokens(h.tokens,r)))}}return a}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let u=r.renderers[o.name];u?r.renderers[o.name]=function(...h){let f=o.renderer.apply(this,h);return f===!1&&(f=u.apply(this,h)),f}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[o.level];u?u.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),a.renderer){let o=this.defaults.renderer||new F4e(this.defaults);for(let u in a.renderer){if(!(u in o))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let h=u,f=a.renderer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b||""}}s.renderer=o}if(a.tokenizer){let o=this.defaults.tokenizer||new B4e(this.defaults);for(let u in a.tokenizer){if(!(u in o))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let h=u,f=a.tokenizer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.tokenizer=o}if(a.hooks){let o=this.defaults.hooks||new Pie;for(let u in a.hooks){if(!(u in o))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let h=u,f=a.hooks[h],p=o[h];Pie.passThroughHooks.has(u)?o[h]=m=>{if(this.defaults.async&&Pie.passThroughHooksRespectAsync.has(u))return(async()=>{let _=await f.call(o,m);return p.call(o,_)})();let b=f.call(o,m);return p.call(o,b)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let _=await f.apply(o,m);return _===!1&&(_=await p.apply(o,m)),_})();let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.hooks=o}if(a.walkTokens){let o=this.defaults.walkTokens,u=a.walkTokens;s.walkTokens=function(h){let f=[];return f.push(u.call(this,h)),o&&(f=f.concat(o.call(this,h))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return M3.lex(t,r??this.defaults)}parser(t,r){return P3.parse(t,r??this.defaults)}parseMarkdown(t){return(r,a)=>{let s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,f=await(o.hooks?await o.hooks.provideLexer():t?M3.lex:M3.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(f):f;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():t?P3.parse:P3.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():t?M3.lex:M3.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let f=(o.hooks?o.hooks.provideParser():t?P3.parse:P3.parseInline)(h,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(h){return u(h)}}}onError(t,r){return a=>{if(a.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+wC(a.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(a);throw a}}},UF=new rpi;function $u(e,t){return UF.parse(e,t)}$u.options=$u.setOptions=function(e){return UF.setOptions(e),$u.defaults=UF.defaults,aBn($u.defaults),$u};$u.getDefaults=z1t;$u.defaults=O$;$u.use=function(...e){return UF.use(...e),$u.defaults=UF.defaults,aBn($u.defaults),$u};$u.walkTokens=function(e,t){return UF.walkTokens(e,t)};$u.parseInline=UF.parseInline;$u.Parser=P3;$u.parser=P3.parse;$u.Renderer=F4e;$u.TextRenderer=K1t;$u.Lexer=M3;$u.lexer=M3.lex;$u.Tokenizer=B4e;$u.Hooks=Pie;$u.parse=$u;$u.options;$u.setOptions;$u.use;$u.walkTokens;$u.parseInline;P3.parse;M3.lex;function TAe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=Array.from(typeof e=="string"?[e]:e);a[a.length-1]=a[a.length-1].replace(/\r?\n([\t ]*)$/,"");var s=a.reduce(function(h,f){var p=f.match(/\n([\t ]+|(?!\s).)/g);return p?h.concat(p.map(function(m){var b,_;return(_=(b=m.match(/[\t ]/g))===null||b===void 0?void 0:b.length)!==null&&_!==void 0?_:0})):h},[]);if(s.length){var o=new RegExp(`
[	 ]{`+Math.min.apply(Math,s)+"}","g");a=a.map(function(h){return h.replace(o,`
`)})}a[0]=a[0].replace(/^\r?\n/,"");var u=a[0];return t.forEach(function(h,f){var p=u.match(/(?:^|\n)( *)$/),m=p?p[1]:"",b=h;typeof h=="string"&&h.includes(`
`)&&(b=String(h).split(`
`).map(function(_,w){return w===0?_:""+m+_}).join(`
`)),u+=b+a[f+1]}),u}var mBn={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},elt=new Map,bBn=new Map,yBn=X(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(it.debug("Registering icon pack:",t.name),"loader"in t)bBn.set(t.name,t.loader);else if("icons"in t)elt.set(t.name,t.icons);else throw it.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),vBn=X(async(e,t)=>{const r=s1i(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const a=r.prefix||t;if(!a)throw new Error(`Icon name must contain a prefix: ${e}`);let s=elt.get(a);if(!s){const u=bBn.get(a);if(!u)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await u(),prefix:a},elt.set(a,s)}catch(h){throw it.error(h),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=c1i(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),ipi=X(async e=>{try{return await vBn(e),!0}catch{return!1}},"isIconAvailable"),QO=X(async(e,t,r)=>{let a;try{a=await vBn(e,t==null?void 0:t.fallbackPrefix)}catch(u){it.error(u),a=mBn}const s=m1i(a,t),o=_1i(v1i(s.body),{...s.attributes,...r});return Ic(o,$c())},"getIconSVG");function _Bn(e,{markdownAutoWrap:t}){const a=e.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),s=TAe(a);return t===!1?s.replace(/ /g,"&nbsp;"):s}X(_Bn,"preprocessMarkdown");function wBn(e,t={}){const r=_Bn(e,t),a=$u.lexer(r),s=[[]];let o=0;function u(h,f="normal"){h.type==="text"?h.text.split(`
`).forEach((m,b)=>{b!==0&&(o++,s.push([])),m.split(" ").forEach(_=>{_=_.replace(/&#39;/g,"'"),_&&s[o].push({content:_,type:f})})}):h.type==="strong"||h.type==="em"?h.tokens.forEach(p=>{u(p,h.type)}):h.type==="html"&&s[o].push({content:h.text,type:"normal"})}return X(u,"processNode"),a.forEach(h=>{var f;h.type==="paragraph"?(f=h.tokens)==null||f.forEach(p=>{u(p)}):h.type==="html"?s[o].push({content:h.text,type:"normal"}):s[o].push({content:h.raw,type:"normal"})}),s}X(wBn,"markdownToLines");function EBn(e,{markdownAutoWrap:t}={}){const r=$u.lexer(e);function a(s){var o,u,h;return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${(o=s.tokens)==null?void 0:o.map(a).join("")}</strong>`:s.type==="em"?`<em>${(u=s.tokens)==null?void 0:u.map(a).join("")}</em>`:s.type==="paragraph"?`<p>${(h=s.tokens)==null?void 0:h.map(a).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(it.warn(`Unsupported markdown: ${s.type}`),s.raw)}return X(a,"output"),r.map(a).join("")}X(EBn,"markdownToHTML");function xBn(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}X(xBn,"splitTextToChars");function SBn(e,t){const r=xBn(t.content);return X1t(e,[],r,t.type)}X(SBn,"splitWordToFitWidth");function X1t(e,t,r,a){if(r.length===0)return[{content:t.join(""),type:a},{content:"",type:a}];const[s,...o]=r,u=[...t,s];return e([{content:u.join(""),type:a}])?X1t(e,u,o,a):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:a},{content:r.join(""),type:a}])}X(X1t,"splitWordToFitWidthRecursion");function TBn(e,t){if(e.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return $4e(e,t)}X(TBn,"splitLineToFitWidth");function $4e(e,t,r=[],a=[]){if(e.length===0)return a.length>0&&r.push(a),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},u=[...a];if(s!==""&&u.push({content:s,type:"normal"}),u.push(o),t(u))return $4e(e,t,r,u);if(a.length>0)r.push(a),e.unshift(o);else if(o.content){const[h,f]=SBn(t,o);r.push([h]),f.content&&e.unshift(f)}return $4e(e,t,r)}X($4e,"splitLineToFitWidthRecursion");function tlt(e,t){t&&e.attr("style",t)}X(tlt,"applyStyle");async function CBn(e,t,r,a,s=!1,o=$c()){const u=e.append("foreignObject");u.attr("width",`${10*r}px`),u.attr("height",`${10*r}px`);const h=u.append("xhtml:div"),f=u0(t.label)?await nce(t.label.replace(Ti.lineBreakRegex,`
`),o):Ic(t.label,o),p=t.isNode?"nodeLabel":"edgeLabel",m=h.append("span");m.html(f),tlt(m,t.labelStyle),m.attr("class",`${p} ${a}`),tlt(h,t.labelStyle),h.style("display","table-cell"),h.style("white-space","nowrap"),h.style("line-height","1.5"),h.style("max-width",r+"px"),h.style("text-align","center"),h.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&h.attr("class","labelBkg");let b=h.node().getBoundingClientRect();return b.width===r&&(h.style("display","table"),h.style("white-space","break-spaces"),h.style("width",r+"px"),b=h.node().getBoundingClientRect()),u.node()}X(CBn,"addHtmlSpan");function CAe(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}X(CAe,"createTspan");function ABn(e,t,r){const a=e.append("text"),s=CAe(a,1,t);AAe(s,r);const o=s.node().getComputedTextLength();return a.remove(),o}X(ABn,"computeWidthOfText");function kBn(e,t,r){var u;const a=e.append("text"),s=CAe(a,1,t);AAe(s,[{content:r,type:"normal"}]);const o=(u=s.node())==null?void 0:u.getBoundingClientRect();return o&&a.remove(),o}X(kBn,"computeDimensionOfText");function RBn(e,t,r,a=!1){const o=t.append("g"),u=o.insert("rect").attr("class","background").attr("style","stroke: none"),h=o.append("text").attr("y","-10.1");let f=0;for(const p of r){const m=X(_=>ABn(o,1.1,_)<=e,"checkWidth"),b=m(p)?[p]:TBn(p,m);for(const _ of b){const w=CAe(h,f,1.1);AAe(w,_),f++}}if(a){const p=h.node().getBBox(),m=2;return u.attr("x",p.x-m).attr("y",p.y-m).attr("width",p.width+2*m).attr("height",p.height+2*m),o.node()}else return h.node()}X(RBn,"createFormattedText");function AAe(e,t){e.text(""),t.forEach((r,a)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");a===0?s.text(r.content):s.text(" "+r.content)})}X(AAe,"updateTextContentAndStyles");async function Q1t(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,u)=>(r.push((async()=>{const h=`${o}:${u}`;return await ipi(h)?await QO(h,void 0,{class:"label-icon"}):`<i class='${Ic(s,t).replace(":"," ")}'></i>`})()),s));const a=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}X(Q1t,"replaceIconSubstring");var Yw=X(async(e,t="",{style:r="",isTitle:a=!1,classes:s="",useHtmlLabels:o=!0,isNode:u=!0,width:h=200,addSvgBackground:f=!1}={},p)=>{if(it.debug("XYZ createText",t,r,a,s,o,u,"addSvgBackground: ",f),o){const m=EBn(t,p),b=await Q1t(vA(m),p),_=t.replace(/\\\\/g,"\\"),w={isNode:u,label:u0(t)?_:b,labelStyle:r.replace("fill:","color:")};return await CBn(e,w,h,s,f,p)}else{const m=t.replace(/<br\s*\/?>/g,"<br/>"),b=wBn(m.replace("<br>","<br/>"),p),_=RBn(h,e,b,t?f:!1);if(u){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const w=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");gn(_).attr("style",w)}else{const w=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");gn(_).select("rect").attr("style",w.replace(/background:/g,"fill:"));const S=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");gn(_).select("text").attr("style",S)}return _}},"createText");function Rtt(e,t,r){if(e&&e.length){const[a,s]=t,o=Math.PI/180*r,u=Math.cos(o),h=Math.sin(o);for(const f of e){const[p,m]=f;f[0]=(p-a)*u-(m-s)*h+a,f[1]=(p-a)*h+(m-s)*u+s}}}function api(e,t){return e[0]===t[0]&&e[1]===t[1]}function spi(e,t,r,a=1){const s=r,o=Math.max(t,.1),u=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,h=[0,0];if(s)for(const p of u)Rtt(p,h,s);const f=function(p,m,b){const _=[];for(const I of p){const N=[...I];api(N[0],N[N.length-1])||N.push([N[0][0],N[0][1]]),N.length>2&&_.push(N)}const w=[];m=Math.max(m,.1);const S=[];for(const I of _)for(let N=0;N<I.length-1;N++){const L=I[N],P=I[N+1];if(L[1]!==P[1]){const M=Math.min(L[1],P[1]);S.push({ymin:M,ymax:Math.max(L[1],P[1]),x:M===L[1]?L[0]:P[0],islope:(P[0]-L[0])/(P[1]-L[1])})}}if(S.sort((I,N)=>I.ymin<N.ymin?-1:I.ymin>N.ymin?1:I.x<N.x?-1:I.x>N.x?1:I.ymax===N.ymax?0:(I.ymax-N.ymax)/Math.abs(I.ymax-N.ymax)),!S.length)return w;let C=[],A=S[0].ymin,k=0;for(;C.length||S.length;){if(S.length){let I=-1;for(let N=0;N<S.length&&!(S[N].ymin>A);N++)I=N;S.splice(0,I+1).forEach(N=>{C.push({s:A,edge:N})})}if(C=C.filter(I=>!(I.edge.ymax<=A)),C.sort((I,N)=>I.edge.x===N.edge.x?0:(I.edge.x-N.edge.x)/Math.abs(I.edge.x-N.edge.x)),(b!==1||k%m==0)&&C.length>1)for(let I=0;I<C.length;I+=2){const N=I+1;if(N>=C.length)break;const L=C[I].edge,P=C[N].edge;w.push([[Math.round(L.x),A],[Math.round(P.x),A]])}A+=b,C.forEach(I=>{I.edge.x=I.edge.x+b*I.edge.islope}),k++}return w}(u,o,a);if(s){for(const p of u)Rtt(p,h,-s);(function(p,m,b){const _=[];p.forEach(w=>_.push(...w)),Rtt(_,m,b)})(f,h,-s)}return f}function uce(e,t){var r;const a=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),spi(e,s,a,o||1)}let Z1t=class{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const a=uce(t,r);return{type:"fillSketch",ops:this.renderLines(a,r)}}renderLines(t,r){const a=[];for(const s of t)a.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return a}};function kAe(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class opi extends Z1t{fillPolygons(t,r){let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);const s=uce(t,Object.assign({},r,{hachureGap:a})),o=Math.PI/180*r.hachureAngle,u=[],h=.5*a*Math.cos(o),f=.5*a*Math.sin(o);for(const[p,m]of s)kAe([p,m])&&u.push([[p[0]-h,p[1]+f],[...m]],[[p[0]+h,p[1]-f],[...m]]);return{type:"fillSketch",ops:this.renderLines(u,r)}}}let lpi=class extends Z1t{fillPolygons(t,r){const a=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return a.ops=a.ops.concat(o.ops),a}},cpi=class{constructor(t){this.helper=t}fillPolygons(t,r){const a=uce(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(a,r)}dotsOnLines(t,r){const a=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const u=s/4;for(const h of t){const f=kAe(h),p=f/s,m=Math.ceil(p)-1,b=f-m*s,_=(h[0][0]+h[1][0])/2-s/4,w=Math.min(h[0][1],h[1][1]);for(let S=0;S<m;S++){const C=w+b+S*s,A=_-u+2*Math.random()*u,k=C-u+2*Math.random()*u,I=this.helper.ellipse(A,k,o,o,r);a.push(...I.ops)}}return{type:"fillSketch",ops:a}}},upi=class{constructor(t){this.helper=t}fillPolygons(t,r){const a=uce(t,r);return{type:"fillSketch",ops:this.dashedLine(a,r)}}dashedLine(t,r){const a=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach(u=>{const h=kAe(u),f=Math.floor(h/(a+s)),p=(h+s-f*(a+s))/2;let m=u[0],b=u[1];m[0]>b[0]&&(m=u[1],b=u[0]);const _=Math.atan((b[1]-m[1])/(b[0]-m[0]));for(let w=0;w<f;w++){const S=w*(a+s),C=S+a,A=[m[0]+S*Math.cos(_)+p*Math.cos(_),m[1]+S*Math.sin(_)+p*Math.sin(_)],k=[m[0]+C*Math.cos(_)+p*Math.cos(_),m[1]+C*Math.sin(_)+p*Math.sin(_)];o.push(...this.helper.doubleLineOps(A[0],A[1],k[0],k[1],r))}}),o}},hpi=class{constructor(t){this.helper=t}fillPolygons(t,r){const a=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?a:r.zigzagOffset,o=uce(t,r=Object.assign({},r,{hachureGap:a+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,a){const s=[];return t.forEach(o=>{const u=kAe(o),h=Math.round(u/(2*r));let f=o[0],p=o[1];f[0]>p[0]&&(f=o[1],p=o[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let b=0;b<h;b++){const _=2*b*r,w=2*(b+1)*r,S=Math.sqrt(2*Math.pow(r,2)),C=[f[0]+_*Math.cos(m),f[1]+_*Math.sin(m)],A=[f[0]+w*Math.cos(m),f[1]+w*Math.sin(m)],k=[C[0]+S*Math.cos(m+Math.PI/4),C[1]+S*Math.sin(m+Math.PI/4)];s.push(...this.helper.doubleLineOps(C[0],C[1],k[0],k[1],a),...this.helper.doubleLineOps(k[0],k[1],A[0],A[1],a))}}),s}};const k2={};let dpi=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const fpi=0,Itt=1,Evn=2,J_e={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Ntt(e,t){return e.type===t}function J1t(e){const t=[],r=function(u){const h=new Array;for(;u!=="";)if(u.match(/^([ \t\r\n,]+)/))u=u.substr(RegExp.$1.length);else if(u.match(/^([aAcChHlLmMqQsStTvVzZ])/))h[h.length]={type:fpi,text:RegExp.$1},u=u.substr(RegExp.$1.length);else{if(!u.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];h[h.length]={type:Itt,text:`${parseFloat(RegExp.$1)}`},u=u.substr(RegExp.$1.length)}return h[h.length]={type:Evn,text:""},h}(e);let a="BOD",s=0,o=r[s];for(;!Ntt(o,Evn);){let u=0;const h=[];if(a==="BOD"){if(o.text!=="M"&&o.text!=="m")return J1t("M0,0"+e);s++,u=J_e[o.text],a=o.text}else Ntt(o,Itt)?u=J_e[a]:(s++,u=J_e[o.text],a=o.text);if(!(s+u<r.length))throw new Error("Path data ended short");for(let f=s;f<s+u;f++){const p=r[f];if(!Ntt(p,Itt))throw new Error("Param not a number: "+a+","+p.text);h[h.length]=+p.text}if(typeof J_e[a]!="number")throw new Error("Bad segment: "+a);{const f={key:a,data:h};t.push(f),s+=u,o=r[s],a==="M"&&(a="L"),a==="m"&&(a="l")}}return t}function IBn(e){let t=0,r=0,a=0,s=0;const o=[];for(const{key:u,data:h}of e)switch(u){case"M":o.push({key:"M",data:[...h]}),[t,r]=h,[a,s]=h;break;case"m":t+=h[0],r+=h[1],o.push({key:"M",data:[t,r]}),a=t,s=r;break;case"L":o.push({key:"L",data:[...h]}),[t,r]=h;break;case"l":t+=h[0],r+=h[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...h]}),t=h[4],r=h[5];break;case"c":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"C",data:f}),t=f[4],r=f[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],r=h[3];break;case"q":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"Q",data:f}),t=f[2],r=f[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],r=h[6];break;case"a":t+=h[5],r+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,r]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),r=h[0];break;case"v":r+=h[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],r=h[3];break;case"s":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"S",data:f}),t=f[2],r=f[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],r=h[1];break;case"t":t+=h[0],r+=h[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=a,r=s}return o}function NBn(e){const t=[];let r="",a=0,s=0,o=0,u=0,h=0,f=0;for(const{key:p,data:m}of e){switch(p){case"M":t.push({key:"M",data:[...m]}),[a,s]=m,[o,u]=m;break;case"C":t.push({key:"C",data:[...m]}),a=m[4],s=m[5],h=m[2],f=m[3];break;case"L":t.push({key:"L",data:[...m]}),[a,s]=m;break;case"H":a=m[0],t.push({key:"L",data:[a,s]});break;case"V":s=m[0],t.push({key:"L",data:[a,s]});break;case"S":{let b=0,_=0;r==="C"||r==="S"?(b=a+(a-h),_=s+(s-f)):(b=a,_=s),t.push({key:"C",data:[b,_,...m]}),h=m[0],f=m[1],a=m[2],s=m[3];break}case"T":{const[b,_]=m;let w=0,S=0;r==="Q"||r==="T"?(w=a+(a-h),S=s+(s-f)):(w=a,S=s);const C=a+2*(w-a)/3,A=s+2*(S-s)/3,k=b+2*(w-b)/3,I=_+2*(S-_)/3;t.push({key:"C",data:[C,A,k,I,b,_]}),h=w,f=S,a=b,s=_;break}case"Q":{const[b,_,w,S]=m,C=a+2*(b-a)/3,A=s+2*(_-s)/3,k=w+2*(b-w)/3,I=S+2*(_-S)/3;t.push({key:"C",data:[C,A,k,I,w,S]}),h=b,f=_,a=w,s=S;break}case"A":{const b=Math.abs(m[0]),_=Math.abs(m[1]),w=m[2],S=m[3],C=m[4],A=m[5],k=m[6];b===0||_===0?(t.push({key:"C",data:[a,s,A,k,A,k]}),a=A,s=k):(a!==A||s!==k)&&(OBn(a,s,A,k,b,_,w,S,C).forEach(function(I){t.push({key:"C",data:I})}),a=A,s=k);break}case"Z":t.push({key:"Z",data:[]}),a=o,s=u}r=p}return t}function Gre(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function OBn(e,t,r,a,s,o,u,h,f,p){const m=(b=u,Math.PI*b/180);var b;let _=[],w=0,S=0,C=0,A=0;if(p)[w,S,C,A]=p;else{[e,t]=Gre(e,t,-m),[r,a]=Gre(r,a,-m);const z=(e-r)/2,Y=(t-a)/2;let W=z*z/(s*s)+Y*Y/(o*o);W>1&&(W=Math.sqrt(W),s*=W,o*=W);const Q=s*s,V=o*o,j=Q*V-Q*Y*Y-V*z*z,ee=Q*Y*Y+V*z*z,te=(h===f?-1:1)*Math.sqrt(Math.abs(j/ee));C=te*s*Y/o+(e+r)/2,A=te*-o*z/s+(t+a)/2,w=Math.asin(parseFloat(((t-A)/o).toFixed(9))),S=Math.asin(parseFloat(((a-A)/o).toFixed(9))),e<C&&(w=Math.PI-w),r<C&&(S=Math.PI-S),w<0&&(w=2*Math.PI+w),S<0&&(S=2*Math.PI+S),f&&w>S&&(w-=2*Math.PI),!f&&S>w&&(S-=2*Math.PI)}let k=S-w;if(Math.abs(k)>120*Math.PI/180){const z=S,Y=r,W=a;S=f&&S>w?w+120*Math.PI/180*1:w+120*Math.PI/180*-1,_=OBn(r=C+s*Math.cos(S),a=A+o*Math.sin(S),Y,W,s,o,u,0,f,[S,z,C,A])}k=S-w;const I=Math.cos(w),N=Math.sin(w),L=Math.cos(S),P=Math.sin(S),M=Math.tan(k/4),F=4/3*s*M,U=4/3*o*M,$=[e,t],G=[e+F*N,t-U*I],B=[r+F*P,a-U*L],Z=[r,a];if(G[0]=2*$[0]-G[0],G[1]=2*$[1]-G[1],p)return[G,B,Z].concat(_);{_=[G,B,Z].concat(_);const z=[];for(let Y=0;Y<_.length;Y+=3){const W=Gre(_[Y][0],_[Y][1],m),Q=Gre(_[Y+1][0],_[Y+1][1],m),V=Gre(_[Y+2][0],_[Y+2][1],m);z.push([W[0],W[1],Q[0],Q[1],V[0],V[1]])}return z}}const ppi={randOffset:function(e,t){return yo(e,t)},randOffsetWithRange:function(e,t,r){return U4e(e,t,r)},ellipse:function(e,t,r,a,s){const o=DBn(r,a,s);return nlt(e,t,s,o).opset},doubleLineOps:function(e,t,r,a,s){return ZO(e,t,r,a,s,!0)}};function LBn(e,t,r,a,s){return{type:"path",ops:ZO(e,t,r,a,s)}}function oxe(e,t,r){const a=(e||[]).length;if(a>2){const s=[];for(let o=0;o<a-1;o++)s.push(...ZO(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...ZO(e[a-1][0],e[a-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return a===2?LBn(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function gpi(e,t,r,a,s){return function(o,u){return oxe(o,!0,u)}([[e,t],[e+r,t],[e+r,t+a],[e,t+a]],s)}function xvn(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,a=ewe(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:ewe(r[0],1.5*(1+.22*t.roughness),Cvn(t));for(let o=1;o<r.length;o++){const u=r[o];if(u.length){const h=ewe(u,1*(1+.2*t.roughness),t),f=t.disableMultiStroke?[]:ewe(u,1.5*(1+.22*t.roughness),Cvn(t));for(const p of h)p.op!=="move"&&a.push(p);for(const p of f)p.op!=="move"&&s.push(p)}}return{type:"path",ops:a.concat(s)}}return{type:"path",ops:[]}}function DBn(e,t,r){const a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*a)),o=2*Math.PI/s;let u=Math.abs(e/2),h=Math.abs(t/2);const f=1-r.curveFitting;return u+=yo(u*f,r),h+=yo(h*f,r),{increment:o,rx:u,ry:h}}function nlt(e,t,r,a){const[s,o]=Avn(a.increment,e,t,a.rx,a.ry,1,a.increment*U4e(.1,U4e(.4,1,r),r),r);let u=z4e(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[h]=Avn(a.increment,e,t,a.rx,a.ry,1.5,0,r),f=z4e(h,null,r);u=u.concat(f)}return{estimatedPoints:o,opset:{type:"path",ops:u}}}function Svn(e,t,r,a,s,o,u,h,f){const p=e,m=t;let b=Math.abs(r/2),_=Math.abs(a/2);b+=yo(.01*b,f),_+=yo(.01*_,f);let w=s,S=o;for(;w<0;)w+=2*Math.PI,S+=2*Math.PI;S-w>2*Math.PI&&(w=0,S=2*Math.PI);const C=2*Math.PI/f.curveStepCount,A=Math.min(C/2,(S-w)/2),k=kvn(A,p,m,b,_,w,S,1,f);if(!f.disableMultiStroke){const I=kvn(A,p,m,b,_,w,S,1.5,f);k.push(...I)}return u&&(h?k.push(...ZO(p,m,p+b*Math.cos(w),m+_*Math.sin(w),f),...ZO(p,m,p+b*Math.cos(S),m+_*Math.sin(S),f)):k.push({op:"lineTo",data:[p,m]},{op:"lineTo",data:[p+b*Math.cos(w),m+_*Math.sin(w)]})),{type:"path",ops:k}}function Tvn(e,t){const r=NBn(IBn(J1t(e))),a=[];let s=[0,0],o=[0,0];for(const{key:u,data:h}of r)switch(u){case"M":o=[h[0],h[1]],s=[h[0],h[1]];break;case"L":a.push(...ZO(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{const[f,p,m,b,_,w]=h;a.push(...mpi(f,p,m,b,_,w,o,t)),o=[_,w];break}case"Z":a.push(...ZO(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:a}}function Ott(e,t){const r=[];for(const a of e)if(a.length){const s=t.maxRandomnessOffset||0,o=a.length;if(o>2){r.push({op:"move",data:[a[0][0]+yo(s,t),a[0][1]+yo(s,t)]});for(let u=1;u<o;u++)r.push({op:"lineTo",data:[a[u][0]+yo(s,t),a[u][1]+yo(s,t)]})}}return{type:"fillPath",ops:r}}function UH(e,t){return function(r,a){let s=r.fillStyle||"hachure";if(!k2[s])switch(s){case"zigzag":k2[s]||(k2[s]=new opi(a));break;case"cross-hatch":k2[s]||(k2[s]=new lpi(a));break;case"dots":k2[s]||(k2[s]=new cpi(a));break;case"dashed":k2[s]||(k2[s]=new upi(a));break;case"zigzag-line":k2[s]||(k2[s]=new hpi(a));break;default:s="hachure",k2[s]||(k2[s]=new Z1t(a))}return k2[s]}(t,ppi).fillPolygons(e,t)}function Cvn(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function MBn(e){return e.randomizer||(e.randomizer=new dpi(e.seed||0)),e.randomizer.next()}function U4e(e,t,r,a=1){return r.roughness*a*(MBn(r)*(t-e)+e)}function yo(e,t,r=1){return U4e(-e,e,t,r)}function ZO(e,t,r,a,s,o=!1){const u=o?s.disableMultiStrokeFill:s.disableMultiStroke,h=rlt(e,t,r,a,s,!0,!1);if(u)return h;const f=rlt(e,t,r,a,s,!0,!0);return h.concat(f)}function rlt(e,t,r,a,s,o,u){const h=Math.pow(e-r,2)+Math.pow(t-a,2),f=Math.sqrt(h);let p=1;p=f<200?1:f>500?.4:-.0016668*f+1.233334;let m=s.maxRandomnessOffset||0;m*m*100>h&&(m=f/10);const b=m/2,_=.2+.2*MBn(s);let w=s.bowing*s.maxRandomnessOffset*(a-t)/200,S=s.bowing*s.maxRandomnessOffset*(e-r)/200;w=yo(w,s,p),S=yo(S,s,p);const C=[],A=()=>yo(b,s,p),k=()=>yo(m,s,p),I=s.preserveVertices;return u?C.push({op:"move",data:[e+(I?0:A()),t+(I?0:A())]}):C.push({op:"move",data:[e+(I?0:yo(m,s,p)),t+(I?0:yo(m,s,p))]}),u?C.push({op:"bcurveTo",data:[w+e+(r-e)*_+A(),S+t+(a-t)*_+A(),w+e+2*(r-e)*_+A(),S+t+2*(a-t)*_+A(),r+(I?0:A()),a+(I?0:A())]}):C.push({op:"bcurveTo",data:[w+e+(r-e)*_+k(),S+t+(a-t)*_+k(),w+e+2*(r-e)*_+k(),S+t+2*(a-t)*_+k(),r+(I?0:k()),a+(I?0:k())]}),C}function ewe(e,t,r){if(!e.length)return[];const a=[];a.push([e[0][0]+yo(t,r),e[0][1]+yo(t,r)]),a.push([e[0][0]+yo(t,r),e[0][1]+yo(t,r)]);for(let s=1;s<e.length;s++)a.push([e[s][0]+yo(t,r),e[s][1]+yo(t,r)]),s===e.length-1&&a.push([e[s][0]+yo(t,r),e[s][1]+yo(t,r)]);return z4e(a,null,r)}function z4e(e,t,r){const a=e.length,s=[];if(a>3){const o=[],u=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let h=1;h+2<a;h++){const f=e[h];o[0]=[f[0],f[1]],o[1]=[f[0]+(u*e[h+1][0]-u*e[h-1][0])/6,f[1]+(u*e[h+1][1]-u*e[h-1][1])/6],o[2]=[e[h+1][0]+(u*e[h][0]-u*e[h+2][0])/6,e[h+1][1]+(u*e[h][1]-u*e[h+2][1])/6],o[3]=[e[h+1][0],e[h+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else a===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):a===2&&s.push(...rlt(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Avn(e,t,r,a,s,o,u,h){const f=[],p=[];if(h.roughness===0){e/=4,p.push([t+a*Math.cos(-e),r+s*Math.sin(-e)]);for(let m=0;m<=2*Math.PI;m+=e){const b=[t+a*Math.cos(m),r+s*Math.sin(m)];f.push(b),p.push(b)}p.push([t+a*Math.cos(0),r+s*Math.sin(0)]),p.push([t+a*Math.cos(e),r+s*Math.sin(e)])}else{const m=yo(.5,h)-Math.PI/2;p.push([yo(o,h)+t+.9*a*Math.cos(m-e),yo(o,h)+r+.9*s*Math.sin(m-e)]);const b=2*Math.PI+m-.01;for(let _=m;_<b;_+=e){const w=[yo(o,h)+t+a*Math.cos(_),yo(o,h)+r+s*Math.sin(_)];f.push(w),p.push(w)}p.push([yo(o,h)+t+a*Math.cos(m+2*Math.PI+.5*u),yo(o,h)+r+s*Math.sin(m+2*Math.PI+.5*u)]),p.push([yo(o,h)+t+.98*a*Math.cos(m+u),yo(o,h)+r+.98*s*Math.sin(m+u)]),p.push([yo(o,h)+t+.9*a*Math.cos(m+.5*u),yo(o,h)+r+.9*s*Math.sin(m+.5*u)])}return[p,f]}function kvn(e,t,r,a,s,o,u,h,f){const p=o+yo(.1,f),m=[];m.push([yo(h,f)+t+.9*a*Math.cos(p-e),yo(h,f)+r+.9*s*Math.sin(p-e)]);for(let b=p;b<=u;b+=e)m.push([yo(h,f)+t+a*Math.cos(b),yo(h,f)+r+s*Math.sin(b)]);return m.push([t+a*Math.cos(u),r+s*Math.sin(u)]),m.push([t+a*Math.cos(u),r+s*Math.sin(u)]),z4e(m,null,f)}function mpi(e,t,r,a,s,o,u,h){const f=[],p=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3];let m=[0,0];const b=h.disableMultiStroke?1:2,_=h.preserveVertices;for(let w=0;w<b;w++)w===0?f.push({op:"move",data:[u[0],u[1]]}):f.push({op:"move",data:[u[0]+(_?0:yo(p[0],h)),u[1]+(_?0:yo(p[0],h))]}),m=_?[s,o]:[s+yo(p[w],h),o+yo(p[w],h)],f.push({op:"bcurveTo",data:[e+yo(p[w],h),t+yo(p[w],h),r+yo(p[w],h),a+yo(p[w],h),m[0],m[1]]});return f}function qre(e){return[...e]}function Rvn(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const a=[];if(r===3)a.push(qre(e[0]),qre(e[1]),qre(e[2]),qre(e[2]));else{const s=[];s.push(e[0],e[0]);for(let h=1;h<e.length;h++)s.push(e[h]),h===e.length-1&&s.push(e[h]);const o=[],u=1-t;a.push(qre(s[0]));for(let h=1;h+2<s.length;h++){const f=s[h];o[0]=[f[0],f[1]],o[1]=[f[0]+(u*s[h+1][0]-u*s[h-1][0])/6,f[1]+(u*s[h+1][1]-u*s[h-1][1])/6],o[2]=[s[h+1][0]+(u*s[h][0]-u*s[h+2][0])/6,s[h+1][1]+(u*s[h][1]-u*s[h+2][1])/6],o[3]=[s[h+1][0],s[h+1][1]],a.push(o[1],o[2],o[3])}}return a}function lxe(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function bpi(e,t,r){const a=lxe(t,r);if(a===0)return lxe(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/a;return s=Math.max(0,Math.min(1,s)),lxe(e,kB(t,r,s))}function kB(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function ilt(e,t,r,a){const s=a||[];if(function(h,f){const p=h[f+0],m=h[f+1],b=h[f+2],_=h[f+3];let w=3*m[0]-2*p[0]-_[0];w*=w;let S=3*m[1]-2*p[1]-_[1];S*=S;let C=3*b[0]-2*_[0]-p[0];C*=C;let A=3*b[1]-2*_[1]-p[1];return A*=A,w<C&&(w=C),S<A&&(S=A),w+S}(e,t)<r){const h=e[t+0];s.length?(o=s[s.length-1],u=h,Math.sqrt(lxe(o,u))>1&&s.push(h)):s.push(h),s.push(e[t+3])}else{const f=e[t+0],p=e[t+1],m=e[t+2],b=e[t+3],_=kB(f,p,.5),w=kB(p,m,.5),S=kB(m,b,.5),C=kB(_,w,.5),A=kB(w,S,.5),k=kB(C,A,.5);ilt([f,_,C,k],0,r,s),ilt([k,A,S,b],0,r,s)}var o,u;return s}function ypi(e,t){return G4e(e,0,e.length,t)}function G4e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;m<r-1;++m){const b=bpi(e[m],u,h);b>f&&(f=b,p=m)}return Math.sqrt(f)>a?(G4e(e,t,p+1,a,o),G4e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function Ltt(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o<s;o++)ilt(e,3*o,t,a);return r&&r>0?G4e(a,0,a.length,r):a}const xw="none";let q4e=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,a){return{shape:t,sets:r||[],options:a||this.defaultOptions}}line(t,r,a,s,o){const u=this._o(o);return this._d("line",[LBn(t,r,a,s,u)],u)}rectangle(t,r,a,s,o){const u=this._o(o),h=[],f=gpi(t,r,a,s,u);if(u.fill){const p=[[t,r],[t+a,r],[t+a,r+s],[t,r+s]];u.fillStyle==="solid"?h.push(Ott([p],u)):h.push(UH([p],u))}return u.stroke!==xw&&h.push(f),this._d("rectangle",h,u)}ellipse(t,r,a,s,o){const u=this._o(o),h=[],f=DBn(a,s,u),p=nlt(t,r,u,f);if(u.fill)if(u.fillStyle==="solid"){const m=nlt(t,r,u,f).opset;m.type="fillPath",h.push(m)}else h.push(UH([p.estimatedPoints],u));return u.stroke!==xw&&h.push(p.opset),this._d("ellipse",h,u)}circle(t,r,a,s){const o=this.ellipse(t,r,a,a,s);return o.shape="circle",o}linearPath(t,r){const a=this._o(r);return this._d("linearPath",[oxe(t,!1,a)],a)}arc(t,r,a,s,o,u,h=!1,f){const p=this._o(f),m=[],b=Svn(t,r,a,s,o,u,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){const _=Object.assign({},p);_.disableMultiStroke=!0;const w=Svn(t,r,a,s,o,u,!0,!1,_);w.type="fillPath",m.push(w)}else m.push(function(_,w,S,C,A,k,I){const N=_,L=w;let P=Math.abs(S/2),M=Math.abs(C/2);P+=yo(.01*P,I),M+=yo(.01*M,I);let F=A,U=k;for(;F<0;)F+=2*Math.PI,U+=2*Math.PI;U-F>2*Math.PI&&(F=0,U=2*Math.PI);const $=(U-F)/I.curveStepCount,G=[];for(let B=F;B<=U;B+=$)G.push([N+P*Math.cos(B),L+M*Math.sin(B)]);return G.push([N+P*Math.cos(U),L+M*Math.sin(U)]),G.push([N,L]),UH([G],I)}(t,r,a,s,o,u,p));return p.stroke!==xw&&m.push(b),this._d("arc",m,p)}curve(t,r){const a=this._o(r),s=[],o=xvn(t,a);if(a.fill&&a.fill!==xw)if(a.fillStyle==="solid"){const u=xvn(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else{const u=[],h=t;if(h.length){const f=typeof h[0][0]=="number"?[h]:h;for(const p of f)p.length<3?u.push(...p):p.length===3?u.push(...Ltt(Rvn([p[0],p[0],p[1],p[2]]),10,(1+a.roughness)/2)):u.push(...Ltt(Rvn(p),10,(1+a.roughness)/2))}u.length&&s.push(UH([u],a))}return a.stroke!==xw&&s.push(o),this._d("curve",s,a)}polygon(t,r){const a=this._o(r),s=[],o=oxe(t,!0,a);return a.fill&&(a.fillStyle==="solid"?s.push(Ott([t],a)):s.push(UH([t],a))),a.stroke!==xw&&s.push(o),this._d("polygon",s,a)}path(t,r){const a=this._o(r),s=[];if(!t)return this._d("path",s,a);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=a.fill&&a.fill!=="transparent"&&a.fill!==xw,u=a.stroke!==xw,h=!!(a.simplification&&a.simplification<1),f=function(m,b,_){const w=NBn(IBn(J1t(m))),S=[];let C=[],A=[0,0],k=[];const I=()=>{k.length>=4&&C.push(...Ltt(k,b)),k=[]},N=()=>{I(),C.length&&(S.push(C),C=[])};for(const{key:P,data:M}of w)switch(P){case"M":N(),A=[M[0],M[1]],C.push(A);break;case"L":I(),C.push([M[0],M[1]]);break;case"C":if(!k.length){const F=C.length?C[C.length-1]:A;k.push([F[0],F[1]])}k.push([M[0],M[1]]),k.push([M[2],M[3]]),k.push([M[4],M[5]]);break;case"Z":I(),C.push([A[0],A[1]])}if(N(),!_)return S;const L=[];for(const P of S){const M=ypi(P,_);M.length&&L.push(M)}return L}(t,1,h?4-4*(a.simplification||1):(1+a.roughness)/2),p=Tvn(t,a);if(o)if(a.fillStyle==="solid")if(f.length===1){const m=Tvn(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(m.ops)})}else s.push(Ott(f,a));else s.push(UH(f,a));return u&&(h?f.forEach(m=>{s.push(oxe(m,!1,a))}):s.push(p)),this._d("path",s,a)}opsToPath(t,r){let a="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(u=>+u.toFixed(r)):s.data;switch(s.op){case"move":a+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":a+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":a+=`L${o[0]} ${o[1]} `}}return a.trim()}toPaths(t){const r=t.sets||[],a=t.options||this.defaultOptions,s=[];for(const o of r){let u=null;switch(o.type){case"path":u={d:this.opsToPath(o),stroke:a.stroke,strokeWidth:a.strokeWidth,fill:xw};break;case"fillPath":u={d:this.opsToPath(o),stroke:xw,strokeWidth:0,fill:a.fill||xw};break;case"fillSketch":u=this.fillSketch(o,a)}u&&s.push(u)}return s}fillSketch(t,r){let a=r.fillWeight;return a<0&&(a=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||xw,strokeWidth:a,fill:xw}}_mergedShape(t){return t.filter((r,a)=>a===0||r.op!=="move")}},vpi=class{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new q4e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const u of r)switch(u.type){case"path":s.save(),s.strokeStyle=a.stroke==="none"?"transparent":a.stroke,s.lineWidth=a.strokeWidth,a.strokeLineDash&&s.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(s.lineDashOffset=a.strokeLineDashOffset),this._drawToContext(s,u,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=a.fill||"";const h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,u,o,h),s.restore();break}case"fillSketch":this.fillSketch(s,u,a)}}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2),t.save(),a.fillLineDash&&t.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(t.lineDashOffset=a.fillLineDashOffset),t.strokeStyle=a.fill||"",t.lineWidth=s,this._drawToContext(t,r,a.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,a,s="nonzero"){t.beginPath();for(const o of r.ops){const u=typeof a=="number"&&a>=0?o.data.map(h=>+h.toFixed(a)):o.data;switch(o.op){case"move":t.moveTo(u[0],u[1]);break;case"bcurveTo":t.bezierCurveTo(u[0],u[1],u[2],u[3],u[4],u[5]);break;case"lineTo":t.lineTo(u[0],u[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u),u}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u),u}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u),u}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o),o}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a),a}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a),a}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p),p}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a),a}path(t,r){const a=this.gen.path(t,r);return this.draw(a),a}};const twe="http://www.w3.org/2000/svg";let _pi=class{constructor(t,r){this.svg=t,this.gen=new q4e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(twe,"g"),u=t.options.fixedDecimalPlaceDigits;for(const h of r){let f=null;switch(h.type){case"path":f=s.createElementNS(twe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke",a.stroke),f.setAttribute("stroke-width",a.strokeWidth+""),f.setAttribute("fill","none"),a.strokeLineDash&&f.setAttribute("stroke-dasharray",a.strokeLineDash.join(" ").trim()),a.strokeLineDashOffset&&f.setAttribute("stroke-dashoffset",`${a.strokeLineDashOffset}`);break;case"fillPath":f=s.createElementNS(twe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke","none"),f.setAttribute("stroke-width","0"),f.setAttribute("fill",a.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||f.setAttribute("fill-rule","evenodd");break;case"fillSketch":f=this.fillSketch(s,h,a)}f&&o.appendChild(f)}return o}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2);const o=t.createElementNS(twe,"path");return o.setAttribute("d",this.opsToPath(r,a.fixedDecimalPlaceDigits)),o.setAttribute("stroke",a.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),a.fillLineDash&&o.setAttribute("stroke-dasharray",a.fillLineDash.join(" ").trim()),a.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${a.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u)}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u)}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u)}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o)}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a)}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a)}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p)}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a)}path(t,r){const a=this.gen.path(t,r);return this.draw(a)}};var Wa={canvas:(e,t)=>new vpi(e,t),svg:(e,t)=>new _pi(e,t),generator:e=>new q4e(e),newSeed:()=>q4e.newSeed()},oo=X(async(e,t,r)=>{var b,_;let a;const s=t.useHtmlLabels||nh((b=nn())==null?void 0:b.htmlLabels);r?a=r:a="node default";const o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),u=o.insert("g").attr("class","label").attr("style",Tb(t.labelStyle));let h;t.label===void 0?h="":h=typeof t.label=="string"?t.label:t.label[0];const f=await Yw(u,Ic(vA(h),nn()),{useHtmlLabels:s,width:t.width||((_=nn().flowchart)==null?void 0:_.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let p=f.getBBox();const m=((t==null?void 0:t.padding)??0)/2;if(s){const w=f.children[0],S=gn(f),C=w.getElementsByTagName("img");if(C){const A=h.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...C].map(k=>new Promise(I=>{function N(){if(k.style.display="flex",k.style.flexDirection="column",A){const L=nn().fontSize?nn().fontSize:window.getComputedStyle(document.body).fontSize,P=5,[M=Cc.fontSize]=N$(L),F=M*P+"px";k.style.minWidth=F,k.style.maxWidth=F}else k.style.width="100%";I(k)}X(N,"setupImage"),setTimeout(()=>{k.complete&&N()}),k.addEventListener("error",N),k.addEventListener("load",N)})))}p=w.getBoundingClientRect(),S.attr("width",p.width),S.attr("height",p.height)}return s?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:o,bbox:p,halfPadding:m,label:u}},"labelHelper"),Dtt=X(async(e,t,r)=>{var f,p,m,b,_,w;const a=r.useHtmlLabels||nh((p=(f=nn())==null?void 0:f.flowchart)==null?void 0:p.htmlLabels),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Yw(s,Ic(vA(t),nn()),{useHtmlLabels:a,width:r.width||((b=(m=nn())==null?void 0:m.flowchart)==null?void 0:b.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let u=o.getBBox();const h=r.padding/2;if(nh((w=(_=nn())==null?void 0:_.flowchart)==null?void 0:w.htmlLabels)){const S=o.children[0],C=gn(o);u=S.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height)}return a?s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):s.attr("transform","translate(0, "+-u.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:u,halfPadding:h,label:s}},"insertLabel"),es=X((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Ys=X((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function hc(e){const t=e.map((r,a)=>`${a===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}X(hc,"createPathFromPoints");function JO(e,t,r,a,s,o){const u=[],f=r-e,p=a-t,m=f/o,b=2*Math.PI/m,_=t+p/2;for(let w=0;w<=50;w++){const S=w/50,C=e+S*f,A=_+s*Math.sin(b*(C-e));u.push({x:C,y:A})}return u}X(JO,"generateFullSineWavePoints");function Soe(e,t,r,a,s,o){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;b<a;b++){const _=h+b*m,w=e+r*Math.cos(_),S=t+r*Math.sin(_);u.push({x:-w,y:-S})}return u}X(Soe,"generateCirclePoints");var wpi=X((e,t)=>{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},"intersectRect"),FW=wpi;function PBn(e,t){t&&e.attr("style",t)}X(PBn,"applyStyle");async function BBn(e){const t=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),a=nn();let s=e.label;e.label&&u0(e.label)&&(s=await nce(e.label.replace(Ti.lineBreakRegex,`
`),a));const u='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+s+"</span>";return r.html(Ic(u,a)),PBn(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}X(BBn,"addHtmlLabel");var Epi=X(async(e,t,r,a)=>{let s=e||"";if(typeof s=="object"&&(s=s[0]),nh(nn().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"<br />"),it.info("vertexText"+s);const o={isNode:a,label:vA(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await BBn(o)}else{const o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",t.replace("color:","fill:"));let u=[];typeof s=="string"?u=s.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(s)?u=s:u=[];for(const h of u){const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f.setAttribute("dy","1em"),f.setAttribute("x","0"),r?f.setAttribute("class","title-row"):f.setAttribute("class","row"),f.textContent=h.trim(),o.appendChild(f)}return o}},"createLabel"),tF=Epi,B9=X((e,t,r,a,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+a-s,"A",s,s,0,0,1,e+r-s,t+a,"H",e+s,"A",s,s,0,0,1,e,t+a-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),FBn=X(async(e,t)=>{it.info("Creating subgraph rect for ",t.id,t);const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:u}=a,{labelStyles:h,nodeStyles:f,borderStyles:p,backgroundStyles:m}=Ia(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),_=nh(r.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),S=await Yw(w,t.label,{style:t.labelStyle,useHtmlLabels:_,isNode:!0});let C=S.getBBox();if(nh(r.flowchart.htmlLabels)){const F=S.children[0],U=gn(S);C=F.getBoundingClientRect(),U.attr("width",C.width),U.attr("height",C.height)}const A=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(A-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height,I=t.x-A/2,N=t.y-k/2;it.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){const F=Wa.svg(b),U=Ja(t,{roughness:.7,fill:o,stroke:u,fillWeight:3,seed:s}),$=F.path(B9(I,N,A,k,0),U);L=b.insert(()=>(it.debug("Rough node insert CXC",$),$),":first-child"),L.select("path:nth-child(2)").attr("style",p.join(";")),L.select("path").attr("style",m.join(";").replace("fill","stroke"))}else L=b.insert("rect",":first-child"),L.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",I).attr("y",N).attr("width",A).attr("height",k);const{subGraphTitleTopMargin:P}=oce(r);if(w.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),h){const F=w.select("span");F&&F.attr("style",h)}const M=L.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return FW(t,F)},{cluster:b,labelBBox:C}},"rect"),xpi=X((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(h){return FW(t,h)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Spi=X(async(e,t)=>{const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:u,compositeTitleBackground:h,nodeBorder:f}=a,p=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),m=p.insert("g",":first-child"),b=p.insert("g").attr("class","cluster-label");let _=p.append("rect");const w=b.node().appendChild(await tF(t.label,t.labelStyle,void 0,!0));let S=w.getBBox();if(nh(r.flowchart.htmlLabels)){const $=w.children[0],G=gn(w);S=$.getBoundingClientRect(),G.attr("width",S.width),G.attr("height",S.height)}const C=0*t.padding,A=C/2,k=(t.width<=S.width+t.padding?S.width+t.padding:t.width)+C;t.width<=S.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const I=t.height+C,N=t.height+C-S.height-6,L=t.x-k/2,P=t.y-I/2;t.width=k;const M=t.y-t.height/2-A+S.height+2;let F;if(t.look==="handDrawn"){const $=t.cssClasses.includes("statediagram-cluster-alt"),G=Wa.svg(p),B=t.rx||t.ry?G.path(B9(L,P,k,I,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:f,seed:s}):G.rectangle(L,P,k,I,{seed:s});F=p.insert(()=>B,":first-child");const Z=G.rectangle(L,M,k,N,{fill:$?o:u,fillStyle:$?"hachure":"solid",stroke:f,seed:s});F=p.insert(()=>B,":first-child"),_=p.insert(()=>Z)}else F=m.insert("rect",":first-child"),F.attr("class","outer").attr("x",L).attr("y",P).attr("width",k).attr("height",I).attr("data-look",t.look),_.attr("class","inner").attr("x",L).attr("y",M).attr("width",k).attr("height",N);b.attr("transform",`translate(${t.x-S.width/2}, ${P+1-(nh(r.flowchart.htmlLabels)?0:3)})`);const U=F.node().getBBox();return t.height=U.height,t.offsetX=0,t.offsetY=S.height-t.padding/2,t.labelBBox=S,t.intersect=function($){return FW(t,$)},{cluster:p,labelBBox:S}},"roundedWithTitle"),Tpi=X(async(e,t)=>{it.info("Creating subgraph rect for ",t.id,t);const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:u}=a,{labelStyles:h,nodeStyles:f,borderStyles:p,backgroundStyles:m}=Ia(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),_=nh(r.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),S=await Yw(w,t.label,{style:t.labelStyle,useHtmlLabels:_,isNode:!0,width:t.width});let C=S.getBBox();if(nh(r.flowchart.htmlLabels)){const F=S.children[0],U=gn(S);C=F.getBoundingClientRect(),U.attr("width",C.width),U.attr("height",C.height)}const A=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(A-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height,I=t.x-A/2,N=t.y-k/2;it.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){const F=Wa.svg(b),U=Ja(t,{roughness:.7,fill:o,stroke:u,fillWeight:4,seed:s}),$=F.path(B9(I,N,A,k,t.rx),U);L=b.insert(()=>(it.debug("Rough node insert CXC",$),$),":first-child"),L.select("path:nth-child(2)").attr("style",p.join(";")),L.select("path").attr("style",m.join(";").replace("fill","stroke"))}else L=b.insert("rect",":first-child"),L.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",I).attr("y",N).attr("width",A).attr("height",k);const{subGraphTitleTopMargin:P}=oce(r);if(w.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),h){const F=w.select("span");F&&F.attr("style",h)}const M=L.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return FW(t,F)},{cluster:b,labelBBox:C}},"kanbanSection"),Cpi=X((e,t)=>{const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{nodeBorder:o}=a,u=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=u.insert("g",":first-child"),f=0*t.padding,p=t.width+f;t.diff=-t.padding;const m=t.height+f,b=t.x-p/2,_=t.y-m/2;t.width=p;let w;if(t.look==="handDrawn"){const A=Wa.svg(u).rectangle(b,_,p,m,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});w=u.insert(()=>A,":first-child")}else w=h.insert("rect",":first-child"),w.attr("class","divider").attr("x",b).attr("y",_).attr("width",p).attr("height",m).attr("data-look",t.look);const S=w.node().getBBox();return t.height=S.height,t.offsetX=0,t.offsetY=0,t.intersect=function(C){return FW(t,C)},{cluster:u,labelBBox:{}}},"divider"),Api=FBn,kpi={rect:FBn,squareRect:Api,roundedWithTitle:Spi,noteGroup:xpi,divider:Cpi,kanbanSection:Tpi},$Bn=new Map,ept=X(async(e,t)=>{const r=t.shape||"rect",a=await kpi[r](e,t);return $Bn.set(t.id,a),a},"insertCluster"),Rpi=X(()=>{$Bn=new Map},"clear");function UBn(e,t){return e.intersect(t)}X(UBn,"intersectNode");var Ipi=UBn;function zBn(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x<s&&(p=-p);var m=Math.abs(t*r*h/f);return a.y<o&&(m=-m),{x:s+p,y:o+m}}X(zBn,"intersectEllipse");var GBn=zBn;function qBn(e,t,r){return GBn(e,t,t,r)}X(qBn,"intersectCircle");var Npi=qBn;function HBn(e,t,r,a){{const s=t.y-e.y,o=e.x-t.x,u=t.x*e.y-e.x*t.y,h=s*r.x+o*r.y+u,f=s*a.x+o*a.y+u,p=1e-6;if(h!==0&&f!==0&&alt(h,f))return;const m=a.y-r.y,b=r.x-a.x,_=a.x*r.y-r.x*a.y,w=m*e.x+b*e.y+_,S=m*t.x+b*t.y+_;if(Math.abs(w)<p&&Math.abs(S)<p&&alt(w,S))return;const C=s*b-m*o;if(C===0)return;const A=Math.abs(C/2);let k=o*_-b*u;const I=k<0?(k-A)/C:(k+A)/C;k=m*u-s*_;const N=k<0?(k-A)/C:(k+A)/C;return{x:I,y:N}}}X(HBn,"intersectLine");function alt(e,t){return e*t>0}X(alt,"sameSign");var Opi=HBn;function VBn(e,t,r){let a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(m){u=Math.min(u,m.x),h=Math.min(h,m.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));let f=a-e.width/2-u,p=s-e.height/2-h;for(let m=0;m<t.length;m++){let b=t[m],_=t[m<t.length-1?m+1:0],w=Opi(e,r,{x:f+b.x,y:p+b.y},{x:f+_.x,y:p+_.y});w&&o.push(w)}return o.length?(o.length>1&&o.sort(function(m,b){let _=m.x-r.x,w=m.y-r.y,S=Math.sqrt(_*_+w*w),C=b.x-r.x,A=b.y-r.y,k=Math.sqrt(C*C+A*A);return S<k?-1:S===k?0:1}),o[0]):e}X(VBn,"intersectPolygon");var Lpi=VBn,Sa={node:Ipi,circle:Npi,ellipse:GBn,polygon:Lpi,rect:FW};function YBn(e,t){const{labelStyles:r}=Ia(t);t.labelStyle=r;const a=Ys(t);let s=a;a||(s="anchor");const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),u=1,{cssStyles:h}=t,f=Wa.svg(o),p=Ja(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(p.roughness=0);const m=f.circle(0,0,u*2,p),b=o.insert(()=>m,":first-child");return b.attr("class","anchor").attr("style",Tb(h)),es(t,b),t.intersect=function(_){return it.info("Circle intersect",t,u,_),Sa.circle(t,u,_)},o}X(YBn,"anchor");function slt(e,t,r,a,s,o,u){const f=(e+r)/2,p=(t+a)/2,m=Math.atan2(a-t,r-e),b=(r-e)/2,_=(a-t)/2,w=b/s,S=_/o,C=Math.sqrt(w**2+S**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const A=Math.sqrt(1-C**2),k=f+A*o*Math.sin(m)*(u?-1:1),I=p-A*s*Math.cos(m)*(u?-1:1),N=Math.atan2((t-I)/o,(e-k)/s);let P=Math.atan2((a-I)/o,(r-k)/s)-N;u&&P<0&&(P+=2*Math.PI),!u&&P>0&&(P-=2*Math.PI);const M=[];for(let F=0;F<20;F++){const U=F/19,$=N+U*P,G=k+s*Math.cos($),B=I+o*Math.sin($);M.push({x:G,y:B})}return M}X(slt,"generateArcPoints");async function jBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding+20,h=o.height+t.padding,f=h/2,p=f/(2.5+h/50),{cssStyles:m}=t,b=[{x:u/2,y:-h/2},{x:-u/2,y:-h/2},...slt(-u/2,-h/2,-u/2,h/2,p,f,!1),{x:u/2,y:h/2},...slt(u/2,h/2,u/2,-h/2,p,f,!0)],_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=hc(b),C=_.path(S,w),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",a),A.attr("transform",`translate(${p/2}, 0)`),es(t,A),t.intersect=function(k){return Sa.polygon(t,b,k)},s}X(jBn,"bowTieRect");function F9(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}X(F9,"insertPolygonShape");async function WBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+t.padding,h=12,f=o.width+t.padding+h,p=0,m=f,b=-u,_=0,w=[{x:p+h,y:b},{x:m,y:b},{x:m,y:_},{x:p,y:_},{x:p,y:b+h},{x:p+h,y:b}];let S;const{cssStyles:C}=t;if(t.look==="handDrawn"){const A=Wa.svg(s),k=Ja(t,{}),I=hc(w),N=A.path(I,k);S=s.insert(()=>N,":first-child").attr("transform",`translate(${-f/2}, ${u/2})`),C&&S.attr("style",C)}else S=F9(s,f,u,w);return a&&S.attr("style",a),es(t,S),t.intersect=function(A){return Sa.polygon(t,w,A)},s}X(WBn,"card");function KBn(e,t){const{nodeStyles:r}=Ia(t);t.label="";const a=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),u=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],h=Wa.svg(a),f=Ja(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=hc(u),m=h.path(p,f),b=a.insert(()=>m,":first-child");return s&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(_){return Sa.polygon(t,u,_)},a}X(KBn,"choice");async function tpt(e,t,r){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{shapeSvg:o,bbox:u,halfPadding:h}=await oo(e,t,Ys(t)),f=(r==null?void 0:r.padding)??h,p=u.width/2+f;let m;const{cssStyles:b}=t;if(t.look==="handDrawn"){const _=Wa.svg(o),w=Ja(t,{}),S=_.circle(0,0,p*2,w);m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",Tb(b))}else m=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0);return es(t,m),t.calcIntersect=function(_,w){const S=_.width/2;return Sa.circle(_,S,w)},t.intersect=function(_){return it.info("Circle intersect",t,p,_),Sa.circle(t,p,_)},o}X(tpt,"circle");function XBn(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),a=e*2,s={x:a/2*t,y:a/2*r},o={x:-(a/2)*t,y:a/2*r},u={x:-(a/2)*t,y:-(a/2)*r},h={x:a/2*t,y:-(a/2)*r};return`M ${o.x},${o.y} L ${h.x},${h.y}
                   M ${s.x},${s.y} L ${u.x},${u.y}`}X(XBn,"createLine");function QBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:u}=t,h=Wa.svg(s),f=Ja(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=h.circle(0,0,o*2,f),m=XBn(o),b=h.path(m,f),_=s.insert(()=>p,":first-child");return _.insert(()=>b),u&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",u),a&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",a),es(t,_),t.intersect=function(w){return it.info("crossedCircle intersect",t,{radius:o,point:w}),Sa.circle(t,o,w)},s}X(QBn,"crossedCircle");function i7(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;b<a;b++){const _=h+b*m,w=e+r*Math.cos(_),S=t+r*Math.sin(_);u.push({x:-w,y:-S})}return u}X(i7,"generateCirclePoints");async function ZBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+(t.padding??0),f=o.height+(t.padding??0),p=Math.max(5,f*.1),{cssStyles:m}=t,b=[...i7(h/2,-f/2,p,30,-90,0),{x:-h/2-p,y:p},...i7(h/2+p*2,-p,p,20,-180,-270),...i7(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:-f/2},...i7(h/2,f/2,p,20,0,90)],_=[{x:h/2,y:-f/2-p},{x:-h/2,y:-f/2-p},...i7(h/2,-f/2,p,20,-90,0),{x:-h/2-p,y:-p},...i7(h/2+h*.1,-p,p,20,-180,-270),...i7(h/2+h*.1,p,p,20,-90,-180),{x:-h/2-p,y:f/2},...i7(h/2,f/2,p,20,0,90),{x:-h/2,y:f/2+p},{x:h/2,y:f/2+p}],w=Wa.svg(s),S=Ja(t,{fill:"none"});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=hc(b).replace("Z",""),k=w.path(A,S),I=hc(_),N=w.path(I,{...S}),L=s.insert("g",":first-child");return L.insert(()=>N,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(${p}, 0)`),u.attr("transform",`translate(${-h/2+p-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,_,P)},s}X(ZBn,"curlyBraceLeft");function a7(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;b<a;b++){const _=h+b*m,w=e+r*Math.cos(_),S=t+r*Math.sin(_);u.push({x:w,y:S})}return u}X(a7,"generateCirclePoints");async function JBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+(t.padding??0),f=o.height+(t.padding??0),p=Math.max(5,f*.1),{cssStyles:m}=t,b=[...a7(h/2,-f/2,p,20,-90,0),{x:h/2+p,y:-p},...a7(h/2+p*2,-p,p,20,-180,-270),...a7(h/2+p*2,p,p,20,-90,-180),{x:h/2+p,y:f/2},...a7(h/2,f/2,p,20,0,90)],_=[{x:-h/2,y:-f/2-p},{x:h/2,y:-f/2-p},...a7(h/2,-f/2,p,20,-90,0),{x:h/2+p,y:-p},...a7(h/2+p*2,-p,p,20,-180,-270),...a7(h/2+p*2,p,p,20,-90,-180),{x:h/2+p,y:f/2},...a7(h/2,f/2,p,20,0,90),{x:h/2,y:f/2+p},{x:-h/2,y:f/2+p}],w=Wa.svg(s),S=Ja(t,{fill:"none"});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=hc(b).replace("Z",""),k=w.path(A,S),I=hc(_),N=w.path(I,{...S}),L=s.insert("g",":first-child");return L.insert(()=>N,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(${-p}, 0)`),u.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,_,P)},s}X(JBn,"curlyBraceRight");function um(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;b<a;b++){const _=h+b*m,w=e+r*Math.cos(_),S=t+r*Math.sin(_);u.push({x:-w,y:-S})}return u}X(um,"generateCirclePoints");async function eFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+(t.padding??0),f=o.height+(t.padding??0),p=Math.max(5,f*.1),{cssStyles:m}=t,b=[...um(h/2,-f/2,p,30,-90,0),{x:-h/2-p,y:p},...um(h/2+p*2,-p,p,20,-180,-270),...um(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:-f/2},...um(h/2,f/2,p,20,0,90)],_=[...um(-h/2+p+p/2,-f/2,p,20,-90,-180),{x:h/2-p/2,y:p},...um(-h/2-p/2,-p,p,20,0,90),...um(-h/2-p/2,p,p,20,-90,0),{x:h/2-p/2,y:-p},...um(-h/2+p+p/2,f/2,p,30,-180,-270)],w=[{x:h/2,y:-f/2-p},{x:-h/2,y:-f/2-p},...um(h/2,-f/2,p,20,-90,0),{x:-h/2-p,y:-p},...um(h/2+p*2,-p,p,20,-180,-270),...um(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:f/2},...um(h/2,f/2,p,20,0,90),{x:-h/2,y:f/2+p},{x:h/2-p-p/2,y:f/2+p},...um(-h/2+p+p/2,-f/2,p,20,-90,-180),{x:h/2-p/2,y:p},...um(-h/2-p/2,-p,p,20,0,90),...um(-h/2-p/2,p,p,20,-90,0),{x:h/2-p/2,y:-p},...um(-h/2+p+p/2,f/2,p,30,-180,-270)],S=Wa.svg(s),C=Ja(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=hc(b).replace("Z",""),I=S.path(k,C),L=hc(_).replace("Z",""),P=S.path(L,C),M=hc(w),F=S.path(M,{...C}),U=s.insert("g",":first-child");return U.insert(()=>F,":first-child").attr("stroke-opacity",0),U.insert(()=>I,":first-child"),U.insert(()=>P,":first-child"),U.attr("class","text"),m&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",a),U.attr("transform",`translate(${p-p/4}, 0)`),u.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,U),t.intersect=function($){return Sa.polygon(t,w,$)},s}X(eFn,"curlyBraces");async function tFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=80,h=20,f=Math.max(u,(o.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),p=Math.max(h,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=p/2,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=f,C=p,A=S-m,k=C/4,I=[{x:A,y:0},{x:k,y:0},{x:0,y:C/2},{x:k,y:C},{x:A,y:C},...Soe(-A,-C/2,m,50,270,90)],N=hc(I),L=_.path(N,w),P=s.insert(()=>L,":first-child");return P.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",a),P.attr("transform",`translate(${-f/2}, ${-p/2})`),es(t,P),t.intersect=function(M){return Sa.polygon(t,I,M)},s}X(tFn,"curvedTrapezoid");var Dpi=X((e,t,r,a,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),Mpi=X((e,t,r,a,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),Ppi=X((e,t,r,a,s,o)=>[`M${e-r/2},${-a/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function nFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+t.padding,t.width??0),f=h/2,p=f/(2.5+h/50),m=Math.max(o.height+p+t.padding,t.height??0);let b;const{cssStyles:_}=t;if(t.look==="handDrawn"){const w=Wa.svg(s),S=Mpi(0,0,h,m,f,p),C=Ppi(0,p,h,m,f,p),A=w.path(S,Ja(t,{})),k=w.path(C,Ja(t,{fill:"none"}));b=s.insert(()=>k,":first-child"),b=s.insert(()=>A,":first-child"),b.attr("class","basic label-container"),_&&b.attr("style",_)}else{const w=Dpi(0,0,h,m,f,p);b=s.insert("path",":first-child").attr("d",w).attr("class","basic label-container").attr("style",Tb(_)).attr("style",a)}return b.attr("label-offset-y",p),b.attr("transform",`translate(${-h/2}, ${-(m/2+p)})`),es(t,b),u.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+(t.padding??0)/1.5-(o.y-(o.top??0))})`),t.intersect=function(w){const S=Sa.rect(t,w),C=S.x-(t.x??0);if(f!=0&&(Math.abs(C)<(t.width??0)/2||Math.abs(C)==(t.width??0)/2&&Math.abs(S.y-(t.y??0))>(t.height??0)/2-p)){let A=p*p*(1-C*C/(f*f));A>0&&(A=Math.sqrt(A)),A=p-A,w.y-(t.y??0)>0&&(A=-A),S.y+=A}return S},s}X(nFn,"cylinder");async function rFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+t.padding,f=o.height+t.padding,p=f*.2,m=-h/2,b=-f/2-p/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:m,y:b+p},{x:-m,y:b+p},{x:-m,y:-b},{x:m,y:-b},{x:m,y:b},{x:-m,y:b},{x:-m,y:b+p}],A=w.polygon(C.map(I=>[I.x,I.y]),S),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),u.attr("transform",`translate(${m+(t.padding??0)/2-(o.x-(o.left??0))}, ${b+p+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.rect(t,I)},s}X(rFn,"dividedRectangle");async function iFn(e,t){var _,w;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u}=await oo(e,t,Ys(t)),f=o.width/2+u+5,p=o.width/2+u;let m;const{cssStyles:b}=t;if(t.look==="handDrawn"){const S=Wa.svg(s),C=Ja(t,{roughness:.2,strokeWidth:2.5}),A=Ja(t,{roughness:.2,strokeWidth:1.5}),k=S.circle(0,0,f*2,C),I=S.circle(0,0,p*2,A);m=s.insert("g",":first-child"),m.attr("class",Tb(t.cssClasses)).attr("style",Tb(b)),(_=m.node())==null||_.appendChild(k),(w=m.node())==null||w.appendChild(I)}else{m=s.insert("g",":first-child");const S=m.insert("circle",":first-child"),C=m.insert("circle");m.attr("class","basic label-container").attr("style",a),S.attr("class","outer-circle").attr("style",a).attr("r",f).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",a).attr("r",p).attr("cx",0).attr("cy",0)}return es(t,m),t.intersect=function(S){return it.info("DoubleCircle intersect",t,f,S),Sa.circle(t,f,S)},s}X(iFn,"doublecircle");function aFn(e,t,{config:{themeVariables:r}}){const{labelStyles:a,nodeStyles:s}=Ia(t);t.label="",t.labelStyle=a;const o=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),u=7,{cssStyles:h}=t,f=Wa.svg(o),{nodeBorder:p}=r,m=Ja(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(m.roughness=0);const b=f.circle(0,0,u*2,m),_=o.insert(()=>b,":first-child");return _.selectAll("path").attr("style",`fill: ${p} !important;`),h&&h.length>0&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",h),s&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",s),es(t,_),t.intersect=function(w){return it.info("filledCircle intersect",t,{radius:u,point:w}),Sa.circle(t,u,w)},o}X(aFn,"filledCircle");async function sFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+(t.padding??0),f=h+o.height,p=h+o.height,m=[{x:0,y:-f},{x:p,y:-f},{x:p/2,y:0}],{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=hc(m),C=_.path(S,w),A=s.insert(()=>C,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`);return b&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",a),t.width=h,t.height=f,es(t,A),u.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-f/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(k){return it.info("Triangle intersect",t,m,k),Sa.polygon(t,m,k)},s}X(sFn,"flippedTriangle");function oFn(e,t,{dir:r,config:{state:a,themeVariables:s}}){const{nodeStyles:o}=Ia(t);t.label="";const u=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:h}=t;let f=Math.max(70,(t==null?void 0:t.width)??0),p=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(f=Math.max(10,(t==null?void 0:t.width)??0),p=Math.max(70,(t==null?void 0:t.height)??0));const m=-1*f/2,b=-1*p/2,_=Wa.svg(u),w=Ja(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=_.rectangle(m,b,f,p,w),C=u.insert(()=>S,":first-child");h&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",o),es(t,C);const A=(a==null?void 0:a.padding)??0;return t.width&&t.height&&(t.width+=A/2||0,t.height+=A/2||0),t.intersect=function(k){return Sa.rect(t,k)},u}X(oFn,"forkJoin");async function lFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const s=80,o=50,{shapeSvg:u,bbox:h}=await oo(e,t,Ys(t)),f=Math.max(s,h.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o,h.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=p/2,{cssStyles:b}=t,_=Wa.svg(u),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-f/2,y:-p/2},{x:f/2-m,y:-p/2},...Soe(-f/2+m,0,m,50,90,270),{x:f/2-m,y:p/2},{x:-f/2,y:p/2}],C=hc(S),A=_.path(C,w),k=u.insert(()=>A,":first-child");return k.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),es(t,k),t.intersect=function(I){return it.info("Pill intersect",t,{radius:m,point:I}),Sa.polygon(t,S,I)},u}X(lFn,"halfRoundedRectangle");async function cFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+(t.padding??0),h=o.width+(t.padding??0)*2.5,{cssStyles:f}=t,p=Wa.svg(s),m=Ja(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=h/2;const _=b/6;b=b+_;const w=u/2,S=w/2,C=b-S,A=[{x:-C,y:-w},{x:0,y:-w},{x:C,y:-w},{x:b,y:0},{x:C,y:w},{x:0,y:w},{x:-C,y:w},{x:-b,y:0}],k=hc(A),I=p.path(k,m),N=s.insert(()=>I,":first-child");return N.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",f),a&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",a),t.width=h,t.height=u,es(t,N),t.intersect=function(L){return Sa.polygon(t,A,L)},s}X(cFn,"hexagon");async function uFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await oo(e,t,Ys(t)),o=Math.max(30,(t==null?void 0:t.width)??0),u=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:h}=t,f=Wa.svg(s),p=Ja(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:0,y:0},{x:o,y:0},{x:0,y:u},{x:o,y:u}],b=hc(m),_=f.path(b,p),w=s.insert(()=>_,":first-child");return w.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",h),a&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",a),w.attr("transform",`translate(${-o/2}, ${-u/2})`),es(t,w),t.intersect=function(S){return it.info("Pill intersect",t,{points:m}),Sa.polygon(t,m,S)},s}X(uFn,"hourglass");async function hFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,label:b}=await oo(e,t,"icon-shape default"),_=t.pos==="t",w=h,S=h,{nodeBorder:C}=r,{stylesMap:A}=PW(t),k=-S/2,I=-w/2,N=t.label?8:0,L=Wa.svg(p),P=Ja(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const M=L.rectangle(k,I,S,w,P),F=Math.max(S,m.width),U=w+m.height+N,$=L.rectangle(-F/2,-U/2,F,U,{...P,fill:"transparent",stroke:"none"}),G=p.insert(()=>M,":first-child"),B=p.insert(()=>$);if(t.icon){const Z=p.append("g");Z.html(`<g>${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const z=Z.node().getBBox(),Y=z.width,W=z.height,Q=z.x,V=z.y;Z.attr("transform",`translate(${-Y/2-Q},${_?m.height/2+N/2-W/2-V:-m.height/2-N/2-W/2-V})`),Z.attr("style",`color: ${A.get("stroke")??C};`)}return b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${_?-U/2:U/2-m.height})`),G.attr("transform",`translate(0,${_?m.height/2+N/2:-m.height/2-N/2})`),es(t,B),t.intersect=function(Z){if(it.info("iconSquare intersect",t,Z),!t.label)return Sa.rect(t,Z);const z=t.x??0,Y=t.y??0,W=t.height??0;let Q=[];return _?Q=[{x:z-m.width/2,y:Y-W/2},{x:z+m.width/2,y:Y-W/2},{x:z+m.width/2,y:Y-W/2+m.height+N},{x:z+S/2,y:Y-W/2+m.height+N},{x:z+S/2,y:Y+W/2},{x:z-S/2,y:Y+W/2},{x:z-S/2,y:Y-W/2+m.height+N},{x:z-m.width/2,y:Y-W/2+m.height+N}]:Q=[{x:z-S/2,y:Y-W/2},{x:z+S/2,y:Y-W/2},{x:z+S/2,y:Y-W/2+w},{x:z+m.width/2,y:Y-W/2+w},{x:z+m.width/2/2,y:Y+W/2},{x:z-m.width/2,y:Y+W/2},{x:z-m.width/2,y:Y-W/2+w},{x:z-S/2,y:Y-W/2+w}],Sa.polygon(t,Q,Z)},p}X(hFn,"icon");async function dFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,label:b}=await oo(e,t,"icon-shape default"),_=20,w=t.label?8:0,S=t.pos==="t",{nodeBorder:C,mainBkg:A}=r,{stylesMap:k}=PW(t),I=Wa.svg(p),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=k.get("fill");N.stroke=L??A;const P=p.append("g");t.icon&&P.html(`<g>${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const M=P.node().getBBox(),F=M.width,U=M.height,$=M.x,G=M.y,B=Math.max(F,U)*Math.SQRT2+_*2,Z=I.circle(0,0,B,N),z=Math.max(B,m.width),Y=B+m.height+w,W=I.rectangle(-z/2,-Y/2,z,Y,{...N,fill:"transparent",stroke:"none"}),Q=p.insert(()=>Z,":first-child"),V=p.insert(()=>W);return P.attr("transform",`translate(${-F/2-$},${S?m.height/2+w/2-U/2-G:-m.height/2-w/2-U/2-G})`),P.attr("style",`color: ${k.get("stroke")??C};`),b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${S?-Y/2:Y/2-m.height})`),Q.attr("transform",`translate(0,${S?m.height/2+w/2:-m.height/2-w/2})`),es(t,V),t.intersect=function(j){return it.info("iconSquare intersect",t,j),Sa.rect(t,j)},p}X(dFn,"iconCircle");async function fFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,halfPadding:b,label:_}=await oo(e,t,"icon-shape default"),w=t.pos==="t",S=h+b*2,C=h+b*2,{nodeBorder:A,mainBkg:k}=r,{stylesMap:I}=PW(t),N=-C/2,L=-S/2,P=t.label?8:0,M=Wa.svg(p),F=Ja(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const U=I.get("fill");F.stroke=U??k;const $=M.path(B9(N,L,C,S,5),F),G=Math.max(C,m.width),B=S+m.height+P,Z=M.rectangle(-G/2,-B/2,G,B,{...F,fill:"transparent",stroke:"none"}),z=p.insert(()=>$,":first-child").attr("class","icon-shape2"),Y=p.insert(()=>Z);if(t.icon){const W=p.append("g");W.html(`<g>${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const Q=W.node().getBBox(),V=Q.width,j=Q.height,ee=Q.x,te=Q.y;W.attr("transform",`translate(${-V/2-ee},${w?m.height/2+P/2-j/2-te:-m.height/2-P/2-j/2-te})`),W.attr("style",`color: ${I.get("stroke")??A};`)}return _.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${w?-B/2:B/2-m.height})`),z.attr("transform",`translate(0,${w?m.height/2+P/2:-m.height/2-P/2})`),es(t,Y),t.intersect=function(W){if(it.info("iconSquare intersect",t,W),!t.label)return Sa.rect(t,W);const Q=t.x??0,V=t.y??0,j=t.height??0;let ee=[];return w?ee=[{x:Q-m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V+j/2},{x:Q-C/2,y:V+j/2},{x:Q-C/2,y:V-j/2+m.height+P},{x:Q-m.width/2,y:V-j/2+m.height+P}]:ee=[{x:Q-C/2,y:V-j/2},{x:Q+C/2,y:V-j/2},{x:Q+C/2,y:V-j/2+S},{x:Q+m.width/2,y:V-j/2+S},{x:Q+m.width/2/2,y:V+j/2},{x:Q-m.width/2,y:V+j/2},{x:Q-m.width/2,y:V-j/2+S},{x:Q-C/2,y:V-j/2+S}],Sa.polygon(t,ee,W)},p}X(fFn,"iconRounded");async function pFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,halfPadding:b,label:_}=await oo(e,t,"icon-shape default"),w=t.pos==="t",S=h+b*2,C=h+b*2,{nodeBorder:A,mainBkg:k}=r,{stylesMap:I}=PW(t),N=-C/2,L=-S/2,P=t.label?8:0,M=Wa.svg(p),F=Ja(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const U=I.get("fill");F.stroke=U??k;const $=M.path(B9(N,L,C,S,.1),F),G=Math.max(C,m.width),B=S+m.height+P,Z=M.rectangle(-G/2,-B/2,G,B,{...F,fill:"transparent",stroke:"none"}),z=p.insert(()=>$,":first-child"),Y=p.insert(()=>Z);if(t.icon){const W=p.append("g");W.html(`<g>${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const Q=W.node().getBBox(),V=Q.width,j=Q.height,ee=Q.x,te=Q.y;W.attr("transform",`translate(${-V/2-ee},${w?m.height/2+P/2-j/2-te:-m.height/2-P/2-j/2-te})`),W.attr("style",`color: ${I.get("stroke")??A};`)}return _.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${w?-B/2:B/2-m.height})`),z.attr("transform",`translate(0,${w?m.height/2+P/2:-m.height/2-P/2})`),es(t,Y),t.intersect=function(W){if(it.info("iconSquare intersect",t,W),!t.label)return Sa.rect(t,W);const Q=t.x??0,V=t.y??0,j=t.height??0;let ee=[];return w?ee=[{x:Q-m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V+j/2},{x:Q-C/2,y:V+j/2},{x:Q-C/2,y:V-j/2+m.height+P},{x:Q-m.width/2,y:V-j/2+m.height+P}]:ee=[{x:Q-C/2,y:V-j/2},{x:Q+C/2,y:V-j/2},{x:Q+C/2,y:V-j/2+S},{x:Q+m.width/2,y:V-j/2+S},{x:Q+m.width/2/2,y:V+j/2},{x:Q-m.width/2,y:V+j/2},{x:Q-m.width/2,y:V-j/2+S},{x:Q-C/2,y:V-j/2+S}],Sa.polygon(t,ee,W)},p}X(pFn,"iconSquare");async function gFn(e,t,{config:{flowchart:r}}){const a=new Image;a.src=(t==null?void 0:t.img)??"",await a.decode();const s=Number(a.naturalWidth.toString().replace("px","")),o=Number(a.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:u}=Ia(t);t.labelStyle=u;const h=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const f=Math.max(t.label?h??0:0,(t==null?void 0:t.assetWidth)??s),p=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:f,m=t.constraint==="on"?p/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(p,h??0);const{shapeSvg:b,bbox:_,label:w}=await oo(e,t,"image-shape default"),S=t.pos==="t",C=-p/2,A=-m/2,k=t.label?8:0,I=Wa.svg(b),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=I.rectangle(C,A,p,m,N),P=Math.max(p,_.width),M=m+_.height+k,F=I.rectangle(-P/2,-M/2,P,M,{...N,fill:"none",stroke:"none"}),U=b.insert(()=>L,":first-child"),$=b.insert(()=>F);if(t.img){const G=b.append("image");G.attr("href",t.img),G.attr("width",p),G.attr("height",m),G.attr("preserveAspectRatio","none"),G.attr("transform",`translate(${-p/2},${S?M/2-m:-M/2})`)}return w.attr("transform",`translate(${-_.width/2-(_.x-(_.left??0))},${S?-m/2-_.height/2-k/2:m/2-_.height/2+k/2})`),U.attr("transform",`translate(0,${S?_.height/2+k/2:-_.height/2-k/2})`),es(t,$),t.intersect=function(G){if(it.info("iconSquare intersect",t,G),!t.label)return Sa.rect(t,G);const B=t.x??0,Z=t.y??0,z=t.height??0;let Y=[];return S?Y=[{x:B-_.width/2,y:Z-z/2},{x:B+_.width/2,y:Z-z/2},{x:B+_.width/2,y:Z-z/2+_.height+k},{x:B+p/2,y:Z-z/2+_.height+k},{x:B+p/2,y:Z+z/2},{x:B-p/2,y:Z+z/2},{x:B-p/2,y:Z-z/2+_.height+k},{x:B-_.width/2,y:Z-z/2+_.height+k}]:Y=[{x:B-p/2,y:Z-z/2},{x:B+p/2,y:Z-z/2},{x:B+p/2,y:Z-z/2+m},{x:B+_.width/2,y:Z-z/2+m},{x:B+_.width/2/2,y:Z+z/2},{x:B-_.width/2,y:Z+z/2},{x:B-_.width/2,y:Z-z/2+m},{x:B-p/2,y:Z-z/2+m}],Sa.polygon(t,Y,G)},b}X(gFn,"imageSquare");async function mFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=[{x:0,y:0},{x:u,y:0},{x:u+3*h/6,y:-h},{x:-3*h/6,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(mFn,"inv_trapezoid");async function RAe(e,t,r){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{shapeSvg:o,bbox:u}=await oo(e,t,Ys(t)),h=Math.max(u.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),f=Math.max(u.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),p=-h/2,m=-f/2;let b,{rx:_,ry:w}=t;const{cssStyles:S}=t;if(r!=null&&r.rx&&r.ry&&(_=r.rx,w=r.ry),t.look==="handDrawn"){const C=Wa.svg(o),A=Ja(t,{}),k=_||w?C.path(B9(p,m,h,f,_||0),A):C.rectangle(p,m,h,f,A);b=o.insert(()=>k,":first-child"),b.attr("class","basic label-container").attr("style",Tb(S))}else b=o.insert("rect",":first-child"),b.attr("class","basic label-container").attr("style",s).attr("rx",Tb(_)).attr("ry",Tb(w)).attr("x",p).attr("y",m).attr("width",h).attr("height",f);return es(t,b),t.calcIntersect=function(C,A){return Sa.rect(C,A)},t.intersect=function(C){return Sa.rect(t,C)},o}X(RAe,"drawRect");async function bFn(e,t){const{shapeSvg:r,bbox:a,label:s}=await oo(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),es(t,o),t.intersect=function(f){return Sa.rect(t,f)},r}X(bFn,"labelRect");async function yFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),f=[{x:0,y:0},{x:u+3*h/6,y:0},{x:u,y:-h},{x:-(3*h)/6,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(yFn,"lean_left");async function vFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),f=[{x:-3*h/6,y:0},{x:u,y:0},{x:u+3*h/6,y:-h},{x:0,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(vFn,"lean_right");function _Fn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,u=Math.max(35,(t==null?void 0:t.width)??0),h=Math.max(35,(t==null?void 0:t.height)??0),f=7,p=[{x:u,y:0},{x:0,y:h+f/2},{x:u-2*f,y:h+f/2},{x:0,y:2*h},{x:u,y:h-f/2},{x:2*f,y:h-f/2}],m=Wa.svg(s),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=hc(p),w=m.path(_,b),S=s.insert(()=>w,":first-child");return o&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",a),S.attr("transform",`translate(-${u/2},${-h})`),es(t,S),t.intersect=function(C){return it.info("lightningBolt intersect",t,C),Sa.polygon(t,p,C)},s}X(_Fn,"lightningBolt");var Bpi=X((e,t,r,a,s,o,u)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`,`M${e},${t+o+u}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Fpi=X((e,t,r,a,s,o,u)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`,`M${e},${t+o+u}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),$pi=X((e,t,r,a,s,o)=>[`M${e-r/2},${-a/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function wFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0),t.width??0),f=h/2,p=f/(2.5+h/50),m=Math.max(o.height+p+(t.padding??0),t.height??0),b=m*.1;let _;const{cssStyles:w}=t;if(t.look==="handDrawn"){const S=Wa.svg(s),C=Fpi(0,0,h,m,f,p,b),A=$pi(0,p,h,m,f,p),k=Ja(t,{}),I=S.path(C,k),N=S.path(A,k);s.insert(()=>N,":first-child").attr("class","line"),_=s.insert(()=>I,":first-child"),_.attr("class","basic label-container"),w&&_.attr("style",w)}else{const S=Bpi(0,0,h,m,f,p,b);_=s.insert("path",":first-child").attr("d",S).attr("class","basic label-container").attr("style",Tb(w)).attr("style",a)}return _.attr("label-offset-y",p),_.attr("transform",`translate(${-h/2}, ${-(m/2+p)})`),es(t,_),u.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+p-(o.y-(o.top??0))})`),t.intersect=function(S){const C=Sa.rect(t,S),A=C.x-(t.x??0);if(f!=0&&(Math.abs(A)<(t.width??0)/2||Math.abs(A)==(t.width??0)/2&&Math.abs(C.y-(t.y??0))>(t.height??0)/2-p)){let k=p*p*(1-A*A/(f*f));k>0&&(k=Math.sqrt(k)),k=p-k,S.y-(t.y??0)>0&&(k=-k),C.y+=k}return C},s}X(wFn,"linedCylinder");async function EFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=f+p,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-h/2-h/2*.1,y:-m/2},{x:-h/2-h/2*.1,y:m/2},...JO(-h/2-h/2*.1,m/2,h/2+h/2*.1,m/2,p,.8),{x:h/2+h/2*.1,y:-m/2},{x:-h/2-h/2*.1,y:-m/2},{x:-h/2,y:-m/2},{x:-h/2,y:m/2*1.1},{x:-h/2,y:-m/2}],C=_.polygon(S.map(k=>[k.x,k.y]),w),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",b),a&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",a),A.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p/2-(o.y-(o.top??0))})`),es(t,A),t.intersect=function(k){return Sa.polygon(t,S,k)},s}X(EFn,"linedWaveEdgedRect");async function xFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=5,m=-h/2,b=-f/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:m-p,y:b+p},{x:m-p,y:b+f+p},{x:m+h-p,y:b+f+p},{x:m+h-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b+f-p},{x:m+h+p,y:b+f-p},{x:m+h+p,y:b-p},{x:m+p,y:b-p},{x:m+p,y:b},{x:m,y:b},{x:m,y:b+p}],A=[{x:m,y:b+p},{x:m+h-p,y:b+p},{x:m+h-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b},{x:m,y:b}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=hc(C),I=w.path(k,S),N=hc(A),L=w.path(N,{...S,fill:"none"}),P=s.insert(()=>L,":first-child");return P.insert(()=>I,":first-child"),P.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),u.attr("transform",`translate(${-(o.width/2)-p-(o.x-(o.left??0))}, ${-(o.height/2)+p-(o.y-(o.top??0))})`),es(t,P),t.intersect=function(M){return Sa.polygon(t,C,M)},s}X(xFn,"multiRect");async function SFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=f+p,b=-h/2,_=-m/2,w=5,{cssStyles:S}=t,C=JO(b-w,_+m+w,b+h-w,_+m+w,p,.8),A=C==null?void 0:C[C.length-1],k=[{x:b-w,y:_+w},{x:b-w,y:_+m+w},...C,{x:b+h-w,y:A.y-w},{x:b+h,y:A.y-w},{x:b+h,y:A.y-2*w},{x:b+h+w,y:A.y-2*w},{x:b+h+w,y:_-w},{x:b+w,y:_-w},{x:b+w,y:_},{x:b,y:_},{x:b,y:_+w}],I=[{x:b,y:_+w},{x:b+h-w,y:_+w},{x:b+h-w,y:A.y-w},{x:b+h,y:A.y-w},{x:b+h,y:_},{x:b,y:_}],N=Wa.svg(s),L=Ja(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const P=hc(k),M=N.path(P,L),F=hc(I),U=N.path(F,L),$=s.insert(()=>M,":first-child");return $.insert(()=>U),$.attr("class","basic label-container"),S&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",S),a&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",a),$.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-(o.width/2)-w-(o.x-(o.left??0))}, ${-(o.height/2)+w-p/2-(o.y-(o.top??0))})`),es(t,$),t.intersect=function(G){return Sa.polygon(t,k,G)},s}X(SFn,"multiWaveEdgedRectangle");async function TFn(e,t,{config:{themeVariables:r}}){var I;const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a,t.useHtmlLabels||((I=$c().flowchart)==null?void 0:I.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:u,bbox:h,label:f}=await oo(e,t,Ys(t)),p=Math.max(h.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),m=Math.max(h.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),b=-p/2,_=-m/2,{cssStyles:w}=t,S=Wa.svg(u),C=Ja(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=S.rectangle(b,_,p,m,C),k=u.insert(()=>A,":first-child");return k.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",w),s&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",s),f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),es(t,k),t.intersect=function(N){return Sa.rect(t,N)},u}X(TFn,"note");var Upi=X((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function CFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding,h=o.height+t.padding,f=u+h,p=.5,m=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}];let b;const{cssStyles:_}=t;if(t.look==="handDrawn"){const w=Wa.svg(s),S=Ja(t,{}),C=Upi(0,0,f),A=w.path(C,S);b=s.insert(()=>A,":first-child").attr("transform",`translate(${-f/2+p}, ${f/2})`),_&&b.attr("style",_)}else b=F9(s,f,f,m),b.attr("transform",`translate(${-f/2+p}, ${f/2})`);return a&&b.attr("style",a),es(t,b),t.calcIntersect=function(w,S){const C=w.width,A=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],k=Sa.polygon(w,A,S);return{x:k.x-.5,y:k.y-.5}},t.intersect=function(w){return this.calcIntersect(t,w)},s}X(CFn,"question");async function AFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),p=-h/2,m=-f/2,b=m/2,_=[{x:p+b,y:m},{x:p,y:0},{x:p+b,y:-m},{x:-p,y:-m},{x:-p,y:m}],{cssStyles:w}=t,S=Wa.svg(s),C=Ja(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=hc(_),k=S.path(A,C),I=s.insert(()=>k,":first-child");return I.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",w),a&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",a),I.attr("transform",`translate(${-b/2},0)`),u.attr("transform",`translate(${-b/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),es(t,I),t.intersect=function(N){return Sa.polygon(t,_,N)},s}X(AFn,"rect_left_inv_arrow");async function kFn(e,t){var U,$;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),u=o.insert("g"),h=o.insert("g").attr("class","label").attr("style",a),f=t.description,p=t.label,m=h.node().appendChild(await tF(p,t.labelStyle,!0,!0));let b={width:0,height:0};if(nh(($=(U=nn())==null?void 0:U.flowchart)==null?void 0:$.htmlLabels)){const G=m.children[0],B=gn(m);b=G.getBoundingClientRect(),B.attr("width",b.width),B.attr("height",b.height)}it.info("Text 2",f);const _=f||[],w=m.getBBox(),S=h.node().appendChild(await tF(_.join?_.join("<br/>"):_,t.labelStyle,!0,!0)),C=S.children[0],A=gn(S);b=C.getBoundingClientRect(),A.attr("width",b.width),A.attr("height",b.height);const k=(t.padding||0)/2;gn(S).attr("transform","translate( "+(b.width>w.width?0:(w.width-b.width)/2)+", "+(w.height+k+5)+")"),gn(m).attr("transform","translate( "+(b.width<w.width?0:-(w.width-b.width)/2)+", 0)"),b=h.node().getBBox(),h.attr("transform","translate("+-b.width/2+", "+(-b.height/2-k+3)+")");const I=b.width+(t.padding||0),N=b.height+(t.padding||0),L=-b.width/2-k,P=-b.height/2-k;let M,F;if(t.look==="handDrawn"){const G=Wa.svg(o),B=Ja(t,{}),Z=G.path(B9(L,P,I,N,t.rx||0),B),z=G.line(-b.width/2-k,-b.height/2-k+w.height+k,b.width/2+k,-b.height/2-k+w.height+k,B);F=o.insert(()=>(it.debug("Rough node insert CXC",Z),z),":first-child"),M=o.insert(()=>(it.debug("Rough node insert CXC",Z),Z),":first-child")}else M=u.insert("rect",":first-child"),F=u.insert("line"),M.attr("class","outer title-state").attr("style",a).attr("x",-b.width/2-k).attr("y",-b.height/2-k).attr("width",b.width+(t.padding||0)).attr("height",b.height+(t.padding||0)),F.attr("class","divider").attr("x1",-b.width/2-k).attr("x2",b.width/2+k).attr("y1",-b.height/2-k+w.height+k).attr("y2",-b.height/2-k+w.height+k);return es(t,M),t.intersect=function(G){return Sa.rect(t,G)},o}X(kFn,"rectWithTitle");function Bie(e,t,r,a,s,o,u){const f=(e+r)/2,p=(t+a)/2,m=Math.atan2(a-t,r-e),b=(r-e)/2,_=(a-t)/2,w=b/s,S=_/o,C=Math.sqrt(w**2+S**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const A=Math.sqrt(1-C**2),k=f+A*o*Math.sin(m)*(u?-1:1),I=p-A*s*Math.cos(m)*(u?-1:1),N=Math.atan2((t-I)/o,(e-k)/s);let P=Math.atan2((a-I)/o,(r-k)/s)-N;u&&P<0&&(P+=2*Math.PI),!u&&P>0&&(P-=2*Math.PI);const M=[];for(let F=0;F<20;F++){const U=F/19,$=N+U*P,G=k+s*Math.cos($),B=I+o*Math.sin($);M.push({x:G,y:B})}return M}X(Bie,"generateArcPoints");async function RFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=(t==null?void 0:t.padding)??0,h=(t==null?void 0:t.padding)??0,f=(t!=null&&t.width?t==null?void 0:t.width:o.width)+u*2,p=(t!=null&&t.height?t==null?void 0:t.height:o.height)+h*2,m=t.radius||5,b=t.taper||5,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.stroke&&(S.stroke=t.stroke),t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:-f/2+b,y:-p/2},{x:f/2-b,y:-p/2},...Bie(f/2-b,-p/2,f/2,-p/2+b,m,m,!0),{x:f/2,y:-p/2+b},{x:f/2,y:p/2-b},...Bie(f/2,p/2-b,f/2-b,p/2,m,m,!0),{x:f/2-b,y:p/2},{x:-f/2+b,y:p/2},...Bie(-f/2+b,p/2,-f/2,p/2-b,m,m,!0),{x:-f/2,y:p/2-b},{x:-f/2,y:-p/2+b},...Bie(-f/2,-p/2+b,-f/2+b,-p/2,m,m,!0)],A=hc(C),k=w.path(A,S),I=s.insert(()=>k,":first-child");return I.attr("class","basic label-container outer-path"),_&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",_),a&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",a),es(t,I),t.intersect=function(N){return Sa.polygon(t,C,N)},s}X(RFn,"roundedRect");async function IFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=(t==null?void 0:t.padding)??0,f=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=-o.width/2-h,b=-o.height/2-h,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:m,y:b},{x:m+f+8,y:b},{x:m+f+8,y:b+p},{x:m-8,y:b+p},{x:m-8,y:b},{x:m,y:b},{x:m,y:b+p}],A=w.polygon(C.map(I=>[I.x,I.y]),S),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container").attr("style",Tb(_)),a&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),_&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),u.attr("transform",`translate(${-f/2+4+(t.padding??0)-(o.x-(o.left??0))},${-p/2+(t.padding??0)-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.rect(t,I)},s}X(IFn,"shadedProcess");async function NFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=-h/2,m=-f/2,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:p,y:m},{x:p,y:m+f},{x:p+h,y:m+f},{x:p+h,y:m-f/2}],C=hc(S),A=_.path(C,w),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),k.attr("transform",`translate(0, ${f/4})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))}, ${-f/4+(t.padding??0)-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.polygon(t,S,I)},s}X(NFn,"slopedRect");async function OFn(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return RAe(e,t,r)}X(OFn,"squareRect");async function LFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+t.padding,h=o.width+u/4+t.padding,f=u/2,{cssStyles:p}=t,m=Wa.svg(s),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=[{x:-h/2+f,y:-u/2},{x:h/2-f,y:-u/2},...Soe(-h/2+f,0,f,50,90,270),{x:h/2-f,y:u/2},...Soe(h/2-f,0,f,50,270,450)],w=hc(_),S=m.path(w,b),C=s.insert(()=>S,":first-child");return C.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",p),a&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",a),es(t,C),t.intersect=function(A){return Sa.polygon(t,_,A)},s}X(LFn,"stadium");async function DFn(e,t){return RAe(e,t,{rx:5,ry:5})}X(DFn,"state");function MFn(e,t,{config:{themeVariables:r}}){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{cssStyles:o}=t,{lineColor:u,stateBorder:h,nodeBorder:f}=r,p=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),m=Wa.svg(p),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=m.circle(0,0,14,{...b,stroke:u,strokeWidth:2}),w=h??f,S=m.circle(0,0,5,{...b,fill:w,stroke:w,strokeWidth:2,fillStyle:"solid"}),C=p.insert(()=>_,":first-child");return C.insert(()=>S),o&&C.selectAll("path").attr("style",o),s&&C.selectAll("path").attr("style",s),es(t,C),t.intersect=function(A){return Sa.circle(t,7,A)},p}X(MFn,"stateEnd");function PFn(e,t,{config:{themeVariables:r}}){const{lineColor:a}=r,s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const h=Wa.svg(s).circle(0,0,14,Tdi(a));o=s.insert(()=>h),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return es(t,o),t.intersect=function(u){return Sa.circle(t,7,u)},s}X(PFn,"stateStart");async function BFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=((t==null?void 0:t.padding)||0)/2,h=o.width+t.padding,f=o.height+t.padding,p=-o.width/2-u,m=-o.height/2-u,b=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const _=Wa.svg(s),w=Ja(t,{}),S=_.rectangle(p-8,m,h+16,f,w),C=_.line(p,m,p,m+f,w),A=_.line(p+h,m,p+h,m+f,w);s.insert(()=>C,":first-child"),s.insert(()=>A,":first-child");const k=s.insert(()=>S,":first-child"),{cssStyles:I}=t;k.attr("class","basic label-container").attr("style",Tb(I)),es(t,k)}else{const _=F9(s,h,f,b);a&&_.attr("style",a),es(t,_)}return t.intersect=function(_){return Sa.polygon(t,b,_)},s}X(BFn,"subroutine");async function FFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=-u/2,p=-h/2,m=.2*h,b=.2*h,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:f-m/2,y:p},{x:f+u+m/2,y:p},{x:f+u+m/2,y:p+h},{x:f-m/2,y:p+h}],A=[{x:f+u-m/2,y:p+h},{x:f+u+m/2,y:p+h},{x:f+u+m/2,y:p+h-b}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=hc(C),I=w.path(k,S),N=hc(A),L=w.path(N,{...S,fillStyle:"solid"}),P=s.insert(()=>L,":first-child");return P.insert(()=>I,":first-child"),P.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),es(t,P),t.intersect=function(M){return Sa.polygon(t,C,M)},s}X(FFn,"taggedRect");async function $Fn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=.2*h,b=.2*f,_=f+p,{cssStyles:w}=t,S=Wa.svg(s),C=Ja(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=[{x:-h/2-h/2*.1,y:_/2},...JO(-h/2-h/2*.1,_/2,h/2+h/2*.1,_/2,p,.8),{x:h/2+h/2*.1,y:-_/2},{x:-h/2-h/2*.1,y:-_/2}],k=-h/2+h/2*.1,I=-_/2-b*.4,N=[{x:k+h-m,y:(I+f)*1.4},{x:k+h,y:I+f-b},{x:k+h,y:(I+f)*.9},...JO(k+h,(I+f)*1.3,k+h-m,(I+f)*1.5,-f*.03,.5)],L=hc(A),P=S.path(L,C),M=hc(N),F=S.path(M,{...C,fillStyle:"solid"}),U=s.insert(()=>F,":first-child");return U.insert(()=>P,":first-child"),U.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",w),a&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",a),U.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p/2-(o.y-(o.top??0))})`),es(t,U),t.intersect=function($){return Sa.polygon(t,A,$)},s}X($Fn,"taggedWaveEdgedRectangle");async function UFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+t.padding,(t==null?void 0:t.width)||0),h=Math.max(o.height+t.padding,(t==null?void 0:t.height)||0),f=-u/2,p=-h/2,m=s.insert("rect",":first-child");return m.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",f).attr("y",p).attr("width",u).attr("height",h),es(t,m),t.intersect=function(b){return Sa.rect(t,b)},s}X(UFn,"text");var zpi=X((e,t,r,a,s,o)=>`M${e},${t}
    a${s},${o} 0,0,1 0,${-a}
    l${r},0
    a${s},${o} 0,0,1 0,${a}
    M${r},${-a}
    a${s},${o} 0,0,0 0,${a}
    l${-r},0`,"createCylinderPathD"),Gpi=X((e,t,r,a,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-a}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${a}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),qpi=X((e,t,r,a,s,o)=>[`M${e+r/2},${-a/2}`,`a${s},${o} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD");async function zFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u,halfPadding:h}=await oo(e,t,Ys(t)),f=t.look==="neo"?h*2:h,p=o.height+f,m=p/2,b=m/(2.5+p/50),_=o.width+b+f,{cssStyles:w}=t;let S;if(t.look==="handDrawn"){const C=Wa.svg(s),A=Gpi(0,0,_,p,b,m),k=qpi(0,0,_,p,b,m),I=C.path(A,Ja(t,{})),N=C.path(k,Ja(t,{fill:"none"}));S=s.insert(()=>N,":first-child"),S=s.insert(()=>I,":first-child"),S.attr("class","basic label-container"),w&&S.attr("style",w)}else{const C=zpi(0,0,_,p,b,m);S=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",Tb(w)).attr("style",a),S.attr("class","basic label-container"),w&&S.selectAll("path").attr("style",w),a&&S.selectAll("path").attr("style",a)}return S.attr("label-offset-x",b),S.attr("transform",`translate(${-_/2}, ${p/2} )`),u.attr("transform",`translate(${-(o.width/2)-b-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),es(t,S),t.intersect=function(C){const A=Sa.rect(t,C),k=A.y-(t.y??0);if(m!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(A.x-(t.x??0))>(t.width??0)/2-b)){let I=b*b*(1-k*k/(m*m));I!=0&&(I=Math.sqrt(Math.abs(I))),I=b-I,C.x-(t.x??0)>0&&(I=-I),A.x+=I}return A},s}X(zFn,"tiltedCylinder");async function GFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding,h=o.height+t.padding,f=[{x:-3*h/6,y:0},{x:u+3*h/6,y:0},{x:u,y:-h},{x:0,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(GFn,"trapezoid");async function qFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=60,h=20,f=Math.max(u,o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(h,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:m}=t,b=Wa.svg(s),_=Ja(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=[{x:-f/2*.8,y:-p/2},{x:f/2*.8,y:-p/2},{x:f/2,y:-p/2*.6},{x:f/2,y:p/2},{x:-f/2,y:p/2},{x:-f/2,y:-p/2*.6}],S=hc(w),C=b.path(S,_),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",m),a&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",a),es(t,A),t.intersect=function(k){return Sa.polygon(t,w,k)},s}X(qFn,"trapezoidalPentagon");async function HFn(e,t){var I;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=nh((I=nn().flowchart)==null?void 0:I.htmlLabels),f=o.width+(t.padding??0),p=f+o.height,m=f+o.height,b=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=hc(b),A=w.path(C,S),k=s.insert(()=>A,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`);return _&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",_),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),t.width=f,t.height=p,es(t,k),u.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${p/2-(o.height+(t.padding??0)/(h?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(N){return it.info("Triangle intersect",t,b,N),Sa.polygon(t,b,N)},s}X(HFn,"triangle");async function VFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/8,m=f+p,{cssStyles:b}=t,w=70-h,S=w>0?w/2:0,C=Wa.svg(s),A=Ja(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const k=[{x:-h/2-S,y:m/2},...JO(-h/2-S,m/2,h/2+S,m/2,p,.8),{x:h/2+S,y:-m/2},{x:-h/2-S,y:-m/2}],I=hc(k),N=C.path(I,A),L=s.insert(()=>N,":first-child");return L.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",b),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,k,P)},s}X(VFn,"waveEdgedRectangle");async function YFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=100,h=50,f=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=f/p;let b=f,_=p;b>_*m?_=b/m:b=_*m,b=Math.max(b,u),_=Math.max(_,h);const w=Math.min(_*.2,_/4),S=_+w*2,{cssStyles:C}=t,A=Wa.svg(s),k=Ja(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const I=[{x:-b/2,y:S/2},...JO(-b/2,S/2,b/2,S/2,w,1),{x:b/2,y:-S/2},...JO(b/2,-S/2,-b/2,-S/2,w,-1)],N=hc(I),L=A.path(N,k),P=s.insert(()=>L,":first-child");return P.attr("class","basic label-container"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),es(t,P),t.intersect=function(M){return Sa.polygon(t,I,M)},s}X(YFn,"waveRectangle");async function jFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=5,m=-h/2,b=-f/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:m-p,y:b-p},{x:m-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b-p}],A=`M${m-p},${b-p} L${m+h},${b-p} L${m+h},${b+f} L${m-p},${b+f} L${m-p},${b-p}
                M${m-p},${b} L${m+h},${b}
                M${m},${b-p} L${m},${b+f}`;t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=w.path(A,S),I=s.insert(()=>k,":first-child");return I.attr("transform",`translate(${p/2}, ${p/2})`),I.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",a),u.attr("transform",`translate(${-(o.width/2)+p/2-(o.x-(o.left??0))}, ${-(o.height/2)+p/2-(o.y-(o.top??0))})`),es(t,I),t.intersect=function(N){return Sa.polygon(t,C,N)},s}X(jFn,"windowPane");async function npt(e,t){var se,ie,ge,ce;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:be}=$c(),{background:ve}=be,De={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ve}`]};await npt(e,De)}const a=$c();t.useHtmlLabels=a.htmlLabels;let s=((se=a.er)==null?void 0:se.diagramPadding)??10,o=((ie=a.er)==null?void 0:ie.entityPadding)??6;const{cssStyles:u}=t,{labelStyles:h,nodeStyles:f}=Ia(t);if(r.attributes.length===0&&t.label){const be={rx:0,ry:0,labelPaddingX:s,labelPaddingY:s*1.5};nv(t.label,a)+be.labelPaddingX*2<a.er.minEntityWidth&&(t.width=a.er.minEntityWidth);const ve=await RAe(e,t,be);if(!nh(a.htmlLabels)){const De=ve.select("text"),ye=(ge=De.node())==null?void 0:ge.getBBox();De.attr("transform",`translate(${-ye.width/2}, 0)`)}return ve}a.htmlLabels||(s*=1.25,o*=1.25);let p=Ys(t);p||(p="node default");const m=e.insert("g").attr("class",p).attr("id",t.domId||t.id),b=await hV(m,t.label??"",a,0,0,["name"],h);b.height+=o;let _=0;const w=[],S=[];let C=0,A=0,k=0,I=0,N=!0,L=!0;for(const be of r.attributes){const ve=await hV(m,be.type,a,0,_,["attribute-type"],h);C=Math.max(C,ve.width+s);const De=await hV(m,be.name,a,0,_,["attribute-name"],h);A=Math.max(A,De.width+s);const ye=await hV(m,be.keys.join(),a,0,_,["attribute-keys"],h);k=Math.max(k,ye.width+s);const Ee=await hV(m,be.comment,a,0,_,["attribute-comment"],h);I=Math.max(I,Ee.width+s);const he=Math.max(ve.height,De.height,ye.height,Ee.height)+o;S.push({yOffset:_,rowHeight:he}),_+=he}let P=4;k<=s&&(N=!1,k=0,P--),I<=s&&(L=!1,I=0,P--);const M=m.node().getBBox();if(b.width+s*2-(C+A+k+I)>0){const be=b.width+s*2-(C+A+k+I);C+=be/P,A+=be/P,k>0&&(k+=be/P),I>0&&(I+=be/P)}const F=C+A+k+I,U=Wa.svg(m),$=Ja(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let G=0;S.length>0&&(G=S.reduce((be,ve)=>be+((ve==null?void 0:ve.rowHeight)??0),0));const B=Math.max(M.width+s*2,(t==null?void 0:t.width)||0,F),Z=Math.max((G??0)+b.height,(t==null?void 0:t.height)||0),z=-B/2,Y=-Z/2;m.selectAll("g:not(:first-child)").each((be,ve,De)=>{const ye=gn(De[ve]),Ee=ye.attr("transform");let he=0,we=0;if(Ee){const Ie=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ee);Ie&&(he=parseFloat(Ie[1]),we=parseFloat(Ie[2]),ye.attr("class").includes("attribute-name")?he+=C:ye.attr("class").includes("attribute-keys")?he+=C+A:ye.attr("class").includes("attribute-comment")&&(he+=C+A+k))}ye.attr("transform",`translate(${z+s/2+he}, ${we+Y+b.height+o/2})`)}),m.select(".name").attr("transform","translate("+-b.width/2+", "+(Y+o/2)+")");const W=U.rectangle(z,Y,B,Z,$),Q=m.insert(()=>W,":first-child").attr("style",u.join("")),{themeVariables:V}=$c(),{rowEven:j,rowOdd:ee,nodeBorder:te}=V;w.push(0);for(const[be,ve]of S.entries()){const ye=(be+1)%2===0&&ve.yOffset!==0,Ee=U.rectangle(z,b.height+Y+(ve==null?void 0:ve.yOffset),B,ve==null?void 0:ve.rowHeight,{...$,fill:ye?j:ee,stroke:te});m.insert(()=>Ee,"g.label").attr("style",u.join("")).attr("class",`row-rect-${ye?"even":"odd"}`)}let ne=U.line(z,b.height+Y,B+z,b.height+Y,$);m.insert(()=>ne).attr("class","divider"),ne=U.line(C+z,b.height+Y,C+z,Z+Y,$),m.insert(()=>ne).attr("class","divider"),N&&(ne=U.line(C+A+z,b.height+Y,C+A+z,Z+Y,$),m.insert(()=>ne).attr("class","divider")),L&&(ne=U.line(C+A+k+z,b.height+Y,C+A+k+z,Z+Y,$),m.insert(()=>ne).attr("class","divider"));for(const be of w)ne=U.line(z,b.height+Y+be,B+z,b.height+Y+be,$),m.insert(()=>ne).attr("class","divider");if(es(t,Q),f&&t.look!=="handDrawn"){const be=f.split(";"),ve=(ce=be==null?void 0:be.filter(De=>De.includes("stroke")))==null?void 0:ce.map(De=>`${De}`).join("; ");m.selectAll("path").attr("style",ve??""),m.selectAll(".row-rect-even path").attr("style",f)}return t.intersect=function(be){return Sa.rect(t,be)},m}X(npt,"erBox");async function hV(e,t,r,a=0,s=0,o=[],u=""){const h=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${a}, ${s})`).attr("style",u);t!==WN(t)&&(t=WN(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const f=h.node().appendChild(await Yw(h,t,{width:nv(t,r)+100,style:u,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let m=f.children[0];for(m.textContent=m.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");m.childNodes[0];)m=m.childNodes[0],m.textContent=m.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let p=f.getBBox();if(nh(r.htmlLabels)){const m=f.children[0];m.style.textAlign="start";const b=gn(f);p=m.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}return p}X(hV,"addText");async function WFn(e,t,r,a,s=r.class.padding??12){const o=a?0:3,u=e.insert("g").attr("class",Ys(t)).attr("id",t.domId||t.id);let h=null,f=null,p=null,m=null,b=0,_=0,w=0;if(h=u.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const I=t.annotations[0];await Fie(h,{text:`«${I}»`},0),b=h.node().getBBox().height}f=u.insert("g").attr("class","label-group text"),await Fie(f,t,0,["font-weight: bolder"]);const S=f.node().getBBox();_=S.height,p=u.insert("g").attr("class","members-group text");let C=0;for(const I of t.members){const N=await Fie(p,I,C,[I.parseClassifier()]);C+=N+o}w=p.node().getBBox().height,w<=0&&(w=s/2),m=u.insert("g").attr("class","methods-group text");let A=0;for(const I of t.methods){const N=await Fie(m,I,A,[I.parseClassifier()]);A+=N+o}let k=u.node().getBBox();if(h!==null){const I=h.node().getBBox();h.attr("transform",`translate(${-I.width/2})`)}return f.attr("transform",`translate(${-S.width/2}, ${b})`),k=u.node().getBBox(),p.attr("transform",`translate(0, ${b+_+s*2})`),k=u.node().getBBox(),m.attr("transform",`translate(0, ${b+_+(w?w+s*4:s*2)})`),k=u.node().getBBox(),{shapeSvg:u,bbox:k}}X(WFn,"textHelper");async function Fie(e,t,r,a=[]){const s=e.insert("g").attr("class","label").attr("style",a.join("; ")),o=$c();let u="useHtmlLabels"in t?t.useHtmlLabels:nh(o.htmlLabels)??!0,h="";"text"in t?h=t.text:h=t.label,!u&&h.startsWith("\\")&&(h=h.substring(1)),u0(h)&&(u=!0);const f=await Yw(s,H0t(vA(h)),{width:nv(h,o)+50,classes:"markdown-node-label",useHtmlLabels:u},o);let p,m=1;if(u){const b=f.children[0],_=gn(f);m=b.innerHTML.split("<br>").length,b.innerHTML.includes("</math>")&&(m+=b.innerHTML.split("<mrow>").length-1);const w=b.getElementsByTagName("img");if(w){const S=h.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...w].map(C=>new Promise(A=>{function k(){var I;if(C.style.display="flex",C.style.flexDirection="column",S){const N=((I=o.fontSize)==null?void 0:I.toString())??window.getComputedStyle(document.body).fontSize,P=parseInt(N,10)*5+"px";C.style.minWidth=P,C.style.maxWidth=P}else C.style.width="100%";A(C)}X(k,"setupImage"),setTimeout(()=>{C.complete&&k()}),C.addEventListener("error",k),C.addEventListener("load",k)})))}p=b.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}else{a.includes("font-weight: bolder")&&gn(f).selectAll("tspan").attr("font-weight",""),m=f.children.length;const b=f.children[0];(f.textContent===""||f.textContent.includes("&gt"))&&(b.textContent=h[0]+h.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),h[1]===" "&&(b.textContent=b.textContent[0]+" "+b.textContent.substring(1))),b.textContent==="undefined"&&(b.textContent=""),p=f.getBBox()}return s.attr("transform","translate(0,"+(-p.height/(2*m)+r)+")"),p.height}X(Fie,"addText");async function KFn(e,t){var $,G;const r=nn(),a=r.class.padding??12,s=a,o=t.useHtmlLabels??nh(r.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:f}=await WFn(e,t,r,o,s),{labelStyles:p,nodeStyles:m}=Ia(t);t.labelStyle=p,t.cssStyles=u.styles||"";const b=(($=u.styles)==null?void 0:$.join(";"))||m||"";t.cssStyles||(t.cssStyles=b.replaceAll("!important","").split(";"));const _=u.members.length===0&&u.methods.length===0&&!((G=r.class)!=null&&G.hideEmptyMembersBox),w=Wa.svg(h),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=f.width;let A=f.height;u.members.length===0&&u.methods.length===0?A+=s:u.members.length>0&&u.methods.length===0&&(A+=s*2);const k=-C/2,I=-A/2,N=w.rectangle(k-a,I-a-(_?a:u.members.length===0&&u.methods.length===0?-a/2:0),C+2*a,A+2*a+(_?a*2:u.members.length===0&&u.methods.length===0?-a:0),S),L=h.insert(()=>N,":first-child");L.attr("class","basic label-container");const P=L.node().getBBox();h.selectAll(".text").each((B,Z,z)=>{var ee;const Y=gn(z[Z]),W=Y.attr("transform");let Q=0;if(W){const ne=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);ne&&(Q=parseFloat(ne[2]))}let V=Q+I+a-(_?a:u.members.length===0&&u.methods.length===0?-a/2:0);o||(V-=4);let j=k;(Y.attr("class").includes("label-group")||Y.attr("class").includes("annotation-group"))&&(j=-((ee=Y.node())==null?void 0:ee.getBBox().width)/2||0,h.selectAll("text").each(function(te,ne,se){window.getComputedStyle(se[ne]).textAnchor==="middle"&&(j=0)})),Y.attr("transform",`translate(${j}, ${V})`)});const M=h.select(".annotation-group").node().getBBox().height-(_?a/2:0)||0,F=h.select(".label-group").node().getBBox().height-(_?a/2:0)||0,U=h.select(".members-group").node().getBBox().height-(_?a/2:0)||0;if(u.members.length>0||u.methods.length>0||_){const B=w.line(P.x,M+F+I+a,P.x+P.width,M+F+I+a,S);h.insert(()=>B).attr("class","divider").attr("style",b)}if(_||u.members.length>0||u.methods.length>0){const B=w.line(P.x,M+F+U+I+s*2+a,P.x+P.width,M+F+U+I+a+s*2,S);h.insert(()=>B).attr("class","divider").attr("style",b)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",b),L.select(":nth-child(2)").attr("style",b),h.selectAll(".divider").select("path").attr("style",b),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",b),!o){const B=RegExp(/color\s*:\s*([^;]*)/),Z=B.exec(b);if(Z){const z=Z[0].replace("color","fill");h.selectAll("tspan").attr("style",z)}else if(p){const z=B.exec(p);if(z){const Y=z[0].replace("color","fill");h.selectAll("tspan").attr("style",Y)}}}return es(t,L),t.intersect=function(B){return Sa.rect(t,B)},h}X(KFn,"classBox");async function XFn(e,t){var M,F;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const s=t,o=t,u=20,h=20,f="verifyMethod"in t,p=Ys(t),m=e.insert("g").attr("class",p).attr("id",t.domId??t.id);let b;f?b=await EC(m,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):b=await EC(m,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let _=b;const w=await EC(m,s.name,_,t.labelStyle+"; font-weight: bold;");if(_+=w+h,f){const U=await EC(m,`${s.requirementId?`ID: ${s.requirementId}`:""}`,_,t.labelStyle);_+=U;const $=await EC(m,`${s.text?`Text: ${s.text}`:""}`,_,t.labelStyle);_+=$;const G=await EC(m,`${s.risk?`Risk: ${s.risk}`:""}`,_,t.labelStyle);_+=G,await EC(m,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,_,t.labelStyle)}else{const U=await EC(m,`${o.type?`Type: ${o.type}`:""}`,_,t.labelStyle);_+=U,await EC(m,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,_,t.labelStyle)}const S=(((M=m.node())==null?void 0:M.getBBox().width)??200)+u,C=(((F=m.node())==null?void 0:F.getBBox().height)??200)+u,A=-S/2,k=-C/2,I=Wa.svg(m),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=I.rectangle(A,k,S,C,N),P=m.insert(()=>L,":first-child");if(P.attr("class","basic label-container").attr("style",a),m.selectAll(".label").each((U,$,G)=>{const B=gn(G[$]),Z=B.attr("transform");let z=0,Y=0;if(Z){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Z);j&&(z=parseFloat(j[1]),Y=parseFloat(j[2]))}const W=Y-C/2;let Q=A+u/2;($===0||$===1)&&(Q=z),B.attr("transform",`translate(${Q}, ${W+u})`)}),_>b+w+h){const U=I.line(A,k+b+w+h,A+S,k+b+w+h,N);m.insert(()=>U).attr("style",a)}return es(t,P),t.intersect=function(U){return Sa.rect(t,U)},m}X(XFn,"requirementBox");async function EC(e,t,r,a=""){if(t==="")return 0;const s=e.insert("g").attr("class","label").attr("style",a),o=nn(),u=o.htmlLabels??!0,h=await Yw(s,H0t(vA(t)),{width:nv(t,o)+50,classes:"markdown-node-label",useHtmlLabels:u,style:a},o);let f;if(u){const p=h.children[0],m=gn(h);f=p.getBoundingClientRect(),m.attr("width",f.width),m.attr("height",f.height)}else{const p=h.children[0];for(const m of p.children)m.textContent=m.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),a&&m.setAttribute("style",a);f=h.getBBox(),f.height+=6}return s.attr("transform",`translate(${-f.width/2},${-f.height/2+r})`),f.height}X(EC,"addText");var Hpi=X(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function QFn(e,t,{config:r}){var Z,z;const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a||"";const o=10,u=t.width;t.width=(t.width??200)-10;const{shapeSvg:h,bbox:f,label:p}=await oo(e,t,Ys(t)),m=t.padding||10;let b="",_;"ticket"in t&&t.ticket&&((Z=r==null?void 0:r.kanban)!=null&&Z.ticketBaseUrl)&&(b=(z=r==null?void 0:r.kanban)==null?void 0:z.ticketBaseUrl.replace("#TICKET#",t.ticket),_=h.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",b).attr("target","_blank"));const w={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let S,C;_?{label:S,bbox:C}=await Dtt(_,"ticket"in t&&t.ticket||"",w):{label:S,bbox:C}=await Dtt(h,"ticket"in t&&t.ticket||"",w);const{label:A,bbox:k}=await Dtt(h,"assigned"in t&&t.assigned||"",w);t.width=u;const I=10,N=(t==null?void 0:t.width)||0,L=Math.max(C.height,k.height)/2,P=Math.max(f.height+I*2,(t==null?void 0:t.height)||0)+L,M=-N/2,F=-P/2;p.attr("transform","translate("+(m-N/2)+", "+(-L-f.height/2)+")"),S.attr("transform","translate("+(m-N/2)+", "+(-L+f.height/2)+")"),A.attr("transform","translate("+(m+N/2-k.width-2*o)+", "+(-L+f.height/2)+")");let U;const{rx:$,ry:G}=t,{cssStyles:B}=t;if(t.look==="handDrawn"){const Y=Wa.svg(h),W=Ja(t,{}),Q=$||G?Y.path(B9(M,F,N,P,$||0),W):Y.rectangle(M,F,N,P,W);U=h.insert(()=>Q,":first-child"),U.attr("class","basic label-container").attr("style",B||null)}else{U=h.insert("rect",":first-child"),U.attr("class","basic label-container __APA__").attr("style",s).attr("rx",$??5).attr("ry",G??5).attr("x",M).attr("y",F).attr("width",N).attr("height",P);const Y="priority"in t&&t.priority;if(Y){const W=h.append("line"),Q=M+2,V=F+Math.floor(($??0)/2),j=F+P-Math.floor(($??0)/2);W.attr("x1",Q).attr("y1",V).attr("x2",Q).attr("y2",j).attr("stroke-width","4").attr("stroke",Hpi(Y))}}return es(t,U),t.height=P,t.intersect=function(Y){return Sa.rect(t,Y)},h}X(QFn,"kanbanItem");async function ZFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+10*u,p=o.height+8*u,m=.15*f,{cssStyles:b}=t,_=o.width+20,w=o.height+20,S=Math.max(f,_),C=Math.max(p,w);h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let A;const k=`M0 0 
    a${m},${m} 1 0,0 ${S*.25},${-1*C*.1}
    a${m},${m} 1 0,0 ${S*.25},0
    a${m},${m} 1 0,0 ${S*.25},0
    a${m},${m} 1 0,0 ${S*.25},${C*.1}

    a${m},${m} 1 0,0 ${S*.15},${C*.33}
    a${m*.8},${m*.8} 1 0,0 0,${C*.34}
    a${m},${m} 1 0,0 ${-1*S*.15},${C*.33}

    a${m},${m} 1 0,0 ${-1*S*.25},${C*.15}
    a${m},${m} 1 0,0 ${-1*S*.25},0
    a${m},${m} 1 0,0 ${-1*S*.25},0
    a${m},${m} 1 0,0 ${-1*S*.25},${-1*C*.15}

    a${m},${m} 1 0,0 ${-1*S*.1},${-1*C*.33}
    a${m*.8},${m*.8} 1 0,0 0,${-1*C*.34}
    a${m},${m} 1 0,0 ${S*.1},${-1*C*.33}
  H0 V0 Z`;if(t.look==="handDrawn"){const I=Wa.svg(s),N=Ja(t,{}),L=I.path(k,N);A=s.insert(()=>L,":first-child"),A.attr("class","basic label-container").attr("style",Tb(b))}else A=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",k);return A.attr("transform",`translate(${-S/2}, ${-C/2})`),es(t,A),t.calcIntersect=function(I,N){return Sa.rect(I,N)},t.intersect=function(I){return it.info("Bang intersect",t,I),Sa.rect(t,I)},s}X(ZFn,"bang");async function JFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+2*u,p=o.height+2*u,m=.15*f,b=.25*f,_=.35*f,w=.2*f,{cssStyles:S}=t;let C;const A=`M0 0 
    a${m},${m} 0 0,1 ${f*.25},${-1*f*.1}
    a${_},${_} 1 0,1 ${f*.4},${-1*f*.1}
    a${b},${b} 1 0,1 ${f*.35},${f*.2}

    a${m},${m} 1 0,1 ${f*.15},${p*.35}
    a${w},${w} 1 0,1 ${-1*f*.15},${p*.65}

    a${b},${m} 1 0,1 ${-1*f*.25},${f*.15}
    a${_},${_} 1 0,1 ${-1*f*.5},0
    a${m},${m} 1 0,1 ${-1*f*.25},${-1*f*.15}

    a${m},${m} 1 0,1 ${-1*f*.1},${-1*p*.35}
    a${w},${w} 1 0,1 ${f*.1},${-1*p*.65}
  H0 V0 Z`;if(t.look==="handDrawn"){const k=Wa.svg(s),I=Ja(t,{}),N=k.path(A,I);C=s.insert(()=>N,":first-child"),C.attr("class","basic label-container").attr("style",Tb(S))}else C=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",A);return h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),C.attr("transform",`translate(${-f/2}, ${-p/2})`),es(t,C),t.calcIntersect=function(k,I){return Sa.rect(k,I)},t.intersect=function(k){return it.info("Cloud intersect",t,k),Sa.rect(t,k)},s}X(JFn,"cloud");async function e$n(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+8*u,p=o.height+2*u,m=5,b=`
    M${-f/2} ${p/2-m}
    v${-p+2*m}
    q0,-${m} ${m},-${m}
    h${f-2*m}
    q${m},0 ${m},${m}
    v${p-2*m}
    q0,${m} -${m},${m}
    h${-f+2*m}
    q-${m},0 -${m},-${m}
    Z
  `,_=s.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",a).attr("d",b);return s.append("line").attr("class","node-line-").attr("x1",-f/2).attr("y1",p/2).attr("x2",f/2).attr("y2",p/2),h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>h.node()),es(t,_),t.calcIntersect=function(w,S){return Sa.rect(w,S)},t.intersect=function(w){return Sa.rect(t,w)},s}X(e$n,"defaultMindmapNode");async function t$n(e,t){const r={padding:t.padding??0};return tpt(e,t,r)}X(t$n,"mindmapCircle");var Vpi=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:OFn},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:RFn},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:LFn},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:BFn},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:nFn},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:tpt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ZFn},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:JFn},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:CFn},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:cFn},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:vFn},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:yFn},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:GFn},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:mFn},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:iFn},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:UFn},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:WBn},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:IFn},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:PFn},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:MFn},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:oFn},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:uFn},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ZBn},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:JBn},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:eFn},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:_Fn},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:VFn},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:lFn},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:zFn},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:wFn},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tFn},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:rFn},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:HFn},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:jFn},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:aFn},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:qFn},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:sFn},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:NFn},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:SFn},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:xFn},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:jBn},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:QBn},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:$Fn},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:FFn},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:YFn},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:AFn},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:EFn}],Ypi=X(()=>{const t=[...Object.entries({state:DFn,choice:KBn,note:TFn,rectWithTitle:kFn,labelRect:bFn,iconSquare:pFn,iconCircle:dFn,icon:hFn,iconRounded:fFn,imageSquare:gFn,anchor:YBn,kanbanItem:QFn,mindmapCircle:t$n,defaultMindmapNode:e$n,classBox:KFn,erBox:npt,requirementBox:XFn}),...Vpi.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),n$n=Ypi();function r$n(e){return e in n$n}X(r$n,"isValidShape");var IAe=new Map;async function NAe(e,t,r){let a,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?n$n[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let u;r.config.securityLevel==="sandbox"?u="_top":t.linkTarget&&(u=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",u??null),s=await o(a,t,r)}else s=await o(e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),IAe.set(t.id,a),t.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}X(NAe,"insertNode");var jpi=X((e,t)=>{IAe.set(t.id,e)},"setNodeElem"),Wpi=X(()=>{IAe.clear()},"clear"),olt=X(e=>{const t=IAe.get(e.id);it.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},"positionNode"),Kpi=X((e,t,r,a,s,o)=>{t.arrowTypeStart&&Ivn(e,"start",t.arrowTypeStart,r,a,s,o),t.arrowTypeEnd&&Ivn(e,"end",t.arrowTypeEnd,r,a,s,o)},"addEdgeMarkers"),Xpi={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ivn=X((e,t,r,a,s,o,u)=>{var b;const h=Xpi[r];if(!h){it.warn(`Unknown arrow type: ${r}`);return}const f=h.type,m=`${s}_${o}-${f}${t==="start"?"Start":"End"}`;if(u&&u.trim()!==""){const _=u.replace(/[^\dA-Za-z]/g,"_"),w=`${m}_${_}`;if(!document.getElementById(w)){const S=document.getElementById(m);if(S){const C=S.cloneNode(!0);C.id=w,C.querySelectorAll("path, circle, line").forEach(k=>{k.setAttribute("stroke",u),h.fill&&k.setAttribute("fill",u)}),(b=S.parentNode)==null||b.appendChild(C)}}e.attr(`marker-${t}`,`url(${a}#${w})`)}else e.attr(`marker-${t}`,`url(${a}#${m})`)},"addEdgeMarker"),H4e=new Map,gm=new Map,Qpi=X(()=>{H4e.clear(),gm.clear()},"clear"),nwe=X(e=>e?e.reduce((r,a)=>r+";"+a,""):"","getLabelStyles"),i$n=X(async(e,t)=>{let r=nh(nn().flowchart.htmlLabels);const{labelStyles:a}=Ia(t);t.labelStyle=a;const s=await Yw(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});it.info("abc82",t,t.labelType);const o=e.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label").attr("data-id",t.id);u.node().appendChild(s);let h=s.getBBox();if(r){const p=s.children[0],m=gn(s);h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),H4e.set(t.id,o),t.width=h.width,t.height=h.height;let f;if(t.startLabelLeft){const p=await tF(t.startLabelLeft,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).startLeft=m,$ie(f,t.startLabelLeft)}if(t.startLabelRight){const p=await tF(t.startLabelRight,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=m.node().appendChild(p),b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).startRight=m,$ie(f,t.startLabelRight)}if(t.endLabelLeft){const p=await tF(t.endLabelLeft,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).endLeft=m,$ie(f,t.endLabelLeft)}if(t.endLabelRight){const p=await tF(t.endLabelRight,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).endRight=m,$ie(f,t.endLabelRight)}return s},"insertEdgeLabel");function $ie(e,t){nn().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}X($ie,"setTerminalWidth");var a$n=X((e,t)=>{it.debug("Moving label abc88 ",e.id,e.label,H4e.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=nn(),{subGraphTitleTotalMargin:s}=oce(a);if(e.label){const o=H4e.get(e.id);let u=e.x,h=e.y;if(r){const f=Vo.calcLabelPosition(r);it.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=gm.get(e.id).startLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=gm.get(e.id).startRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=gm.get(e.id).endLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=gm.get(e.id).endRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},"positionEdgeLabel"),Zpi=X((e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},"outsideNode"),Jpi=X((e,t,r)=>{it.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(t)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.x<t.x?u-o:u+o;const f=e.height/2,p=Math.abs(t.y-r.y),m=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*u>Math.abs(a-t.x)*f){let b=r.y<t.y?t.y-f-s:s-f-t.y;h=m*b/p;const _={x:r.x<t.x?r.x+h:r.x-m+h,y:r.y<t.y?r.y+p-b:r.y-p+b};return h===0&&(_.x=t.x,_.y=t.y),m===0&&(_.x=t.x),p===0&&(_.y=t.y),it.debug(`abc89 top/bottom calc, Q ${p}, q ${b}, R ${m}, r ${h}`,_),_}else{r.x<t.x?h=t.x-u-a:h=a-u-t.x;let b=p*h/m,_=r.x<t.x?r.x+m-h:r.x-m+h,w=r.y<t.y?r.y+b:r.y-b;return it.debug(`sides calc abc89, Q ${p}, q ${b}, R ${m}, r ${h}`,{_x:_,_y:w}),h===0&&(_=t.x,w=t.y),m===0&&(_=t.x),p===0&&(w=t.y),{x:_,y:w}}},"intersection"),Nvn=X((e,t)=>{it.warn("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(it.info("abc88 checking point",o,t),!Zpi(t,o)&&!s){const u=Jpi(t,a,o);it.debug("abc88 inside",o,a,u),it.debug("abc88 intersection",u,t);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)?it.warn("abc88 no intersect",u,r):r.push(u),s=!0}else it.warn("abc88 outside",o,a),a=o,s||r.push(o)}),it.debug("returning points",r),r},"cutPathAtIntersect");function s$n(e){const t=[],r=[];for(let a=1;a<e.length-1;a++){const s=e[a-1],o=e[a],u=e[a+1];(s.x===o.x&&o.y===u.y&&Math.abs(o.x-u.x)>5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===u.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-u.y)>5)&&(t.push(o),r.push(a))}return{cornerPoints:t,cornerPointPositions:r}}X(s$n,"extractCornerPoints");var Ovn=X(function(e,t,r){const a=t.x-e.x,s=t.y-e.y,o=Math.sqrt(a*a+s*s),u=r/o;return{x:t.x-u*a,y:t.y-u*s}},"findAdjacentPoint"),egi=X(function(e){const{cornerPointPositions:t}=s$n(e),r=[];for(let a=0;a<e.length;a++)if(t.includes(a)){const s=e[a-1],o=e[a+1],u=e[a],h=Ovn(s,u,5),f=Ovn(o,u,5),p=f.x-h.x,m=f.y-h.y;r.push(h);const b=Math.sqrt(2)*2;let _={x:u.x,y:u.y};if(Math.abs(o.x-s.x)>10&&Math.abs(o.y-s.y)>=10){it.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const w=5;u.x===h.x?_={x:p<0?h.x-w+b:h.x+w-b,y:m<0?h.y-b:h.y+b}:_={x:p<0?h.x-b:h.x+b,y:m<0?h.y-w+b:h.y+w-b}}else it.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(_,f)}else r.push(e[a]);return r},"fixCorners"),tgi=X((e,t,r)=>{const a=e-t-r,s=2,o=2,u=s+o,h=Math.floor(a/u),f=Array(h).fill(`${s} ${o}`).join(" ");return`0 ${t} ${f} ${r}`},"generateDashArray"),o$n=X(function(e,t,r,a,s,o,u,h=!1){var Y;const{handDrawnSeed:f}=nn();let p=t.points,m=!1;const b=s;var _=o;const w=[];for(const W in t.cssCompiledStyles)R1t(W)||w.push(t.cssCompiledStyles[W]);it.debug("UIO intersect check",t.points,_.x,b.x),_.intersect&&b.intersect&&!h&&(p=p.slice(1,t.points.length-1),p.unshift(b.intersect(p[0])),it.debug("Last point UIO",t.start,"-->",t.end,p[p.length-1],_,_.intersect(p[p.length-1])),p.push(_.intersect(p[p.length-1])));const S=btoa(JSON.stringify(p));t.toCluster&&(it.info("to cluster abc88",r.get(t.toCluster)),p=Nvn(t.points,r.get(t.toCluster).node),m=!0),t.fromCluster&&(it.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(p,null,2)),p=Nvn(p.reverse(),r.get(t.fromCluster).node).reverse(),m=!0);let C=p.filter(W=>!Number.isNaN(W.y));C=egi(C);let A=j3;switch(A=Cg,t.curve){case"linear":A=Cg;break;case"basis":A=j3;break;case"cardinal":A=h1t;break;case"bumpX":A=l1t;break;case"bumpY":A=c1t;break;case"catmullRom":A=g1t;break;case"monotoneX":A=m1t;break;case"monotoneY":A=b1t;break;case"natural":A=y1t;break;case"step":A=v1t;break;case"stepAfter":A=w1t;break;case"stepBefore":A=_1t;break;default:A=j3}const{x:k,y:I}=kPn(t),N=r_().x(k).y(I).curve(A);let L;switch(t.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(t.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let P,M=t.curve==="rounded"?l$n(c$n(C,t),5):N(C);const F=Array.isArray(t.style)?t.style:[t.style];let U=F.find(W=>W==null?void 0:W.startsWith("stroke:")),$=!1;if(t.look==="handDrawn"){const W=Wa.svg(e);Object.assign([],C);const Q=W.path(M,{roughness:.3,seed:f});L+=" transition",P=gn(Q).select("path").attr("id",t.id).attr("class"," "+L+(t.classes?" "+t.classes:"")).attr("style",F?F.reduce((j,ee)=>j+";"+ee,""):"");let V=P.attr("d");P.attr("d",V),e.node().appendChild(P.node())}else{const W=w.join(";"),Q=F?F.reduce((ie,ge)=>ie+ge+";",""):"";let V="";t.animate&&(V=" edge-animation-fast"),t.animation&&(V=" edge-animation-"+t.animation);const j=(W?W+";"+Q+";":Q)+";"+(F?F.reduce((ie,ge)=>ie+";"+ge,""):"");P=e.append("path").attr("d",M).attr("id",t.id).attr("class"," "+L+(t.classes?" "+t.classes:"")+(V??"")).attr("style",j),U=(Y=j.match(/stroke:([^;]+)/))==null?void 0:Y[1],$=t.animate===!0||!!t.animation||W.includes("animation");const ee=P.node(),te=typeof ee.getTotalLength=="function"?ee.getTotalLength():0,ne=Qyn[t.arrowTypeStart]||0,se=Qyn[t.arrowTypeEnd]||0;if(t.look==="neo"&&!$){const ge=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?tgi(te,ne,se):`0 ${ne} ${te-ne-se} ${se}`}; stroke-dashoffset: 0;`;P.attr("style",ge+P.attr("style"))}}P.attr("data-edge",!0),P.attr("data-et","edge"),P.attr("data-id",t.id),P.attr("data-points",S),t.showPoints&&C.forEach(W=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",W.x).attr("cy",W.y)});let G="";(nn().flowchart.arrowMarkerAbsolute||nn().state.arrowMarkerAbsolute)&&(G=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,G=G.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),it.info("arrowTypeStart",t.arrowTypeStart),it.info("arrowTypeEnd",t.arrowTypeEnd),Kpi(P,t,G,u,a,U);const B=Math.floor(p.length/2),Z=p[B];Vo.isLabelCoordinateInPath(Z,P.attr("d"))||(m=!0);let z={};return m&&(z.updatedPath=p),z.originalPath=t.points,z},"insertEdge");function l$n(e,t){if(e.length<2)return"";let r="";const a=e.length,s=1e-5;for(let o=0;o<a;o++){const u=e[o],h=e[o-1],f=e[o+1];if(o===0)r+=`M${u.x},${u.y}`;else if(o===a-1)r+=`L${u.x},${u.y}`;else{const p=u.x-h.x,m=u.y-h.y,b=f.x-u.x,_=f.y-u.y,w=Math.hypot(p,m),S=Math.hypot(b,_);if(w<s||S<s){r+=`L${u.x},${u.y}`;continue}const C=p/w,A=m/w,k=b/S,I=_/S,N=C*k+A*I,L=Math.max(-1,Math.min(1,N)),P=Math.acos(L);if(P<s||Math.abs(Math.PI-P)<s){r+=`L${u.x},${u.y}`;continue}const M=Math.min(t/Math.sin(P/2),w/2,S/2),F=u.x-C*M,U=u.y-A*M,$=u.x+k*M,G=u.y+I*M;r+=`L${F},${U}`,r+=`Q${u.x},${u.y} ${$},${G}`}}return r}X(l$n,"generateRoundedPath");function llt(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,a=t.y-e.y;return{angle:Math.atan2(a,r),deltaX:r,deltaY:a}}X(llt,"calculateDeltaAndAngle");function c$n(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&bb[t.arrowTypeStart]){const s=bb[t.arrowTypeStart],o=e[0],u=e[1],{angle:h}=llt(o,u),f=s*Math.cos(h),p=s*Math.sin(h);r[0].x=o.x+f,r[0].y=o.y+p}const a=e.length;if(a>=2&&bb[t.arrowTypeEnd]){const s=bb[t.arrowTypeEnd],o=e[a-1],u=e[a-2],{angle:h}=llt(u,o),f=s*Math.cos(h),p=s*Math.sin(h);r[a-1].x=o.x-f,r[a-1].y=o.y-p}return r}X(c$n,"applyMarkerOffsetsToPoints");var ngi=X((e,t,r,a)=>{t.forEach(s=>{ygi[s](e,r,a)})},"insertMarkers"),rgi=X((e,t,r)=>{it.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),igi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).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")},"composition"),agi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).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"),sgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).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")},"dependency"),ogi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),lgi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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")},"point"),cgi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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")},"circle"),ugi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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")},"cross"),hgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),dgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),fgi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),pgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ggi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),mgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
      L20,10
      M20,10
      L0,20`)},"requirement_arrow"),bgi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ygi={extension:rgi,composition:igi,aggregation:agi,dependency:sgi,lollipop:ogi,point:lgi,circle:cgi,cross:ugi,barb:hgi,only_one:dgi,zero_or_one:fgi,one_or_more:pgi,zero_or_more:ggi,requirement_arrow:mgi,requirement_contains:bgi},u$n=ngi,vgi={common:Ti,getConfig:$c,insertCluster:ept,insertEdge:o$n,insertEdgeLabel:i$n,insertMarkers:u$n,insertNode:NAe,interpolateToCurve:M1t,labelHelper:oo,log:it,positionEdgeLabel:a$n},Toe={},h$n=X(e=>{for(const t of e)Toe[t.name]=t},"registerLayoutLoaders"),_gi=X(()=>{h$n([{name:"dagre",loader:X(async()=>await ea(()=>Promise.resolve().then(()=>I6i),void 0),"loader")},{name:"cose-bilkent",loader:X(async()=>await ea(()=>Promise.resolve().then(()=>d9i),void 0),"loader")}])},"registerDefaultLayoutLoaders");_gi();var $W=X(async(e,t)=>{if(!(e.layoutAlgorithm in Toe))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Toe[e.layoutAlgorithm];return(await r.loader()).render(e,t,vgi,{algorithm:r.algorithm})},"render"),hce=X((e="",{fallback:t="dagre"}={})=>{if(e in Toe)return e;if(t in Toe)return it.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),wgi=MPn(Object.keys,Object),Egi=Object.prototype,xgi=Egi.hasOwnProperty;function d$n(e){if(!bAe(e))return wgi(e);var t=[];for(var r in Object(e))xgi.call(e,r)&&r!="constructor"&&t.push(r);return t}var clt=k$(OA,"DataView"),ult=k$(OA,"Promise"),QV=k$(OA,"Set"),hlt=k$(OA,"WeakMap"),Lvn="[object Map]",Sgi="[object Object]",Dvn="[object Promise]",Mvn="[object Set]",Pvn="[object WeakMap]",Bvn="[object DataView]",Tgi=A$(clt),Cgi=A$(Eoe),Agi=A$(ult),kgi=A$(QV),Rgi=A$(hlt),Qx=C$;(clt&&Qx(new clt(new ArrayBuffer(1)))!=Bvn||Eoe&&Qx(new Eoe)!=Lvn||ult&&Qx(ult.resolve())!=Dvn||QV&&Qx(new QV)!=Mvn||hlt&&Qx(new hlt)!=Pvn)&&(Qx=function(e){var t=C$(e),r=t==Sgi?e.constructor:void 0,a=r?A$(r):"";if(a)switch(a){case Tgi:return Bvn;case Cgi:return Lvn;case Agi:return Dvn;case kgi:return Mvn;case Rgi:return Pvn}return t});var Igi="[object Map]",Ngi="[object Set]",Ogi=Object.prototype,Lgi=Ogi.hasOwnProperty;function uA(e){if(e==null)return!0;if(P9(e)&&(Z0(e)||typeof e=="string"||typeof e.splice=="function"||Mj(e)||vAe(e)||Dj(e)))return!e.length;var t=Qx(e);if(t==Igi||t==Ngi)return!e.size;if(bAe(e))return!d$n(e).length;for(var r in e)if(Lgi.call(e,r))return!1;return!0}var f$n="c4",Dgi=X(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Mgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>lLi);return{diagram:t}},void 0);return{id:f$n,diagram:e}},"loader"),Pgi={id:f$n,detector:Dgi,loader:Mgi},Bgi=Pgi,p$n="flowchart",Fgi=X((e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),$gi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:p$n,diagram:e}},"loader"),Ugi={id:p$n,detector:Fgi,loader:$gi},zgi=Ugi,g$n="flowchart-v2",Ggi=X((e,t)=>{var r,a,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),qgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:g$n,diagram:e}},"loader"),Hgi={id:g$n,detector:Ggi,loader:qgi},Vgi=Hgi,m$n="er",Ygi=X(e=>/^\s*erDiagram/.test(e),"detector"),jgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>kLi);return{diagram:t}},void 0);return{id:m$n,diagram:e}},"loader"),Wgi={id:m$n,detector:Ygi,loader:jgi},Kgi=Wgi,b$n="gitGraph",Xgi=X(e=>/^\s*gitGraph/.test(e),"detector"),Qgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>wYi);return{diagram:t}},void 0);return{id:b$n,diagram:e}},"loader"),Zgi={id:b$n,detector:Xgi,loader:Qgi},Jgi=Zgi,y$n="gantt",emi=X(e=>/^\s*gantt/.test(e),"detector"),tmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>gji);return{diagram:t}},void 0);return{id:y$n,diagram:e}},"loader"),nmi={id:y$n,detector:emi,loader:tmi},rmi=nmi,v$n="info",imi=X(e=>/^\s*info/.test(e),"detector"),ami=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>xji);return{diagram:t}},void 0);return{id:v$n,diagram:e}},"loader"),smi={id:v$n,detector:imi,loader:ami},_$n="pie",omi=X(e=>/^\s*pie/.test(e),"detector"),lmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Uji);return{diagram:t}},void 0);return{id:_$n,diagram:e}},"loader"),cmi={id:_$n,detector:omi,loader:lmi},w$n="quadrantChart",umi=X(e=>/^\s*quadrantChart/.test(e),"detector"),hmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Kji);return{diagram:t}},void 0);return{id:w$n,diagram:e}},"loader"),dmi={id:w$n,detector:umi,loader:hmi},fmi=dmi,E$n="xychart",pmi=X(e=>/^\s*xychart(-beta)?/.test(e),"detector"),gmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uWi);return{diagram:t}},void 0);return{id:E$n,diagram:e}},"loader"),mmi={id:E$n,detector:pmi,loader:gmi},bmi=mmi,x$n="requirement",ymi=X(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),vmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bWi);return{diagram:t}},void 0);return{id:x$n,diagram:e}},"loader"),_mi={id:x$n,detector:ymi,loader:vmi},wmi=_mi,S$n="sequence",Emi=X(e=>/^\s*sequenceDiagram/.test(e),"detector"),xmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>iKi);return{diagram:t}},void 0);return{id:S$n,diagram:e}},"loader"),Smi={id:S$n,detector:Emi,loader:xmi},Tmi=Smi,T$n="class",Cmi=X((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),Ami=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uKi);return{diagram:t}},void 0);return{id:T$n,diagram:e}},"loader"),kmi={id:T$n,detector:Cmi,loader:Ami},Rmi=kmi,C$n="classDiagram",Imi=X((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),Nmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>dKi);return{diagram:t}},void 0);return{id:C$n,diagram:e}},"loader"),Omi={id:C$n,detector:Imi,loader:Nmi},Lmi=Omi,A$n="state",Dmi=X((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),Mmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>tXi);return{diagram:t}},void 0);return{id:A$n,diagram:e}},"loader"),Pmi={id:A$n,detector:Dmi,loader:Mmi},Bmi=Pmi,k$n="stateDiagram",Fmi=X((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),$mi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>rXi);return{diagram:t}},void 0);return{id:k$n,diagram:e}},"loader"),Umi={id:k$n,detector:Fmi,loader:$mi},zmi=Umi,R$n="journey",Gmi=X(e=>/^\s*journey/.test(e),"detector"),qmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>TXi);return{diagram:t}},void 0);return{id:R$n,diagram:e}},"loader"),Hmi={id:R$n,detector:Gmi,loader:qmi},Vmi=Hmi,Ymi=X((e,t,r)=>{it.debug(`rendering svg for syntax error
`);const a=bR(t),s=a.append("g");a.attr("viewBox","0 0 2412 512"),yv(a,100,512,!0),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),I$n={draw:Ymi},jmi=I$n,Wmi={db:{},renderer:I$n,parser:{parse:X(()=>{},"parse")}},Kmi=Wmi,N$n="flowchart-elk",Xmi=X((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),Qmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:N$n,diagram:e}},"loader"),Zmi={id:N$n,detector:Xmi,loader:Qmi},Jmi=Zmi,O$n="timeline",ebi=X(e=>/^\s*timeline/.test(e),"detector"),tbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>jXi);return{diagram:t}},void 0);return{id:O$n,diagram:e}},"loader"),nbi={id:O$n,detector:ebi,loader:tbi},rbi=nbi,L$n="mindmap",ibi=X(e=>/^\s*mindmap/.test(e),"detector"),abi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>oQi);return{diagram:t}},void 0);return{id:L$n,diagram:e}},"loader"),sbi={id:L$n,detector:ibi,loader:abi},obi=sbi,D$n="kanban",lbi=X(e=>/^\s*kanban/.test(e),"detector"),cbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>AQi);return{diagram:t}},void 0);return{id:D$n,diagram:e}},"loader"),ubi={id:D$n,detector:lbi,loader:cbi},hbi=ubi,M$n="sankey",dbi=X(e=>/^\s*sankey(-beta)?/.test(e),"detector"),fbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>sZi);return{diagram:t}},void 0);return{id:M$n,diagram:e}},"loader"),pbi={id:M$n,detector:dbi,loader:fbi},gbi=pbi,P$n="packet",mbi=X(e=>/^\s*packet(-beta)?/.test(e),"detector"),bbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bZi);return{diagram:t}},void 0);return{id:P$n,diagram:e}},"loader"),ybi={id:P$n,detector:mbi,loader:bbi},B$n="radar",vbi=X(e=>/^\s*radar-beta/.test(e),"detector"),_bi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>FZi);return{diagram:t}},void 0);return{id:B$n,diagram:e}},"loader"),wbi={id:B$n,detector:vbi,loader:_bi},F$n="block",Ebi=X(e=>/^\s*block(-beta)?/.test(e),"detector"),xbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uea);return{diagram:t}},void 0);return{id:F$n,diagram:e}},"loader"),Sbi={id:F$n,detector:Ebi,loader:xbi},Tbi=Sbi,$$n="architecture",Cbi=X(e=>/^\s*architecture/.test(e),"detector"),Abi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Dea);return{diagram:t}},void 0);return{id:$$n,diagram:e}},"loader"),kbi={id:$$n,detector:Cbi,loader:Abi},Rbi=kbi,U$n="treemap",Ibi=X(e=>/^\s*treemap/.test(e),"detector"),Nbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Vea);return{diagram:t}},void 0);return{id:U$n,diagram:e}},"loader"),Obi={id:U$n,detector:Ibi,loader:Nbi},Fvn=!1,OAe=X(()=>{Fvn||(Fvn=!0,l4e("error",Kmi,e=>e.toLowerCase().trim()==="error"),l4e("---",{db:{clear:X(()=>{},"clear")},styles:{},renderer:{draw:X(()=>{},"draw")},parser:{parse:X(()=>{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 un-indented `---` blocks")},"parse")},init:X(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),pot(Jmi,obi,Rbi),pot(Bgi,hbi,Lmi,Rmi,Kgi,rmi,smi,cmi,wmi,Tmi,Vgi,zgi,rbi,Jgi,zmi,Bmi,Vmi,fmi,gbi,ybi,bmi,Tbi,wbi,Obi))},"addDiagrams"),Lbi=X(async()=>{it.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(IF).map(async([r,{detector:a,loader:s}])=>{if(s)try{vot(r)}catch{try{const{diagram:o,id:u}=await s();l4e(u,o,a)}catch(o){throw it.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete IF[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){it.error(`Failed to load ${t.length} external diagrams`);for(const r of t)it.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),Dbi="graphics-document document";function z$n(e,t){e.attr("role",Dbi),t!==""&&e.attr("aria-roledescription",t)}X(z$n,"setA11yDiagramInfo");function G$n(e,t,r,a){if(e.insert!==void 0){if(r){const s=`chart-desc-${a}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${a}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}X(G$n,"addSVGa11yTitleDescription");var mF,dlt=(mF=class{constructor(t,r,a,s,o){this.type=t,this.text=r,this.db=a,this.parser=s,this.renderer=o}static async fromText(t,r={}){var p,m;const a=$c(),s=F0t(t,a);t=t1i(t)+`
`;try{vot(s)}catch{const b=vii(s);if(!b)throw new fLn(`Diagram ${s} not found.`);const{id:_,diagram:w}=await b();l4e(_,w)}const{db:o,parser:u,renderer:h,init:f}=vot(s);return u.parser&&(u.parser.yy=o),(p=o.clear)==null||p.call(o),f==null||f(a),r.title&&((m=o.setDiagramTitle)==null||m.call(o,r.title)),await u.parse(t),new mF(s,t,o,u,h)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},X(mF,"Diagram"),mF),$vn=[],Mbi=X(()=>{$vn.forEach(e=>{e()}),$vn=[]},"attachFunctions"),Pbi=X(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function q$n(e){const t=e.match(dLn);if(!t)return{text:e,metadata:{}};let r=fAe(t[1],{schema:dAe})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const a={};return r.displayMode&&(a.displayMode=r.displayMode.toString()),r.title&&(a.title=r.title.toString()),r.config&&(a.config=r.config),{text:e.slice(t[0].length),metadata:a}}X(q$n,"extractFrontMatter");var Bbi=X(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Fbi=X(e=>{const{text:t,metadata:r}=q$n(e),{displayMode:a,title:s,config:o={}}=r;return a&&(o.gantt||(o.gantt={}),o.gantt.displayMode=a),{title:s,config:o,text:t}},"processFrontmatter"),$bi=X(e=>{const t=Vo.detectInit(e)??{},r=Vo.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:a})=>a==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:V0i(e),directive:t}},"processDirectives");function rpt(e){const t=Bbi(e),r=Fbi(t),a=$bi(r.text),s=cv(r.config,a.directive);return e=Pbi(a.text),{code:e,title:r.title,config:s}}X(rpt,"preprocessDiagram");function H$n(e){const t=new TextEncoder().encode(e),r=Array.from(t,a=>String.fromCodePoint(a)).join("");return btoa(r)}X(H$n,"toBase64");var Ubi=5e4,zbi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Gbi="sandbox",qbi="loose",Hbi="http://www.w3.org/2000/svg",Vbi="http://www.w3.org/1999/xlink",Ybi="http://www.w3.org/1999/xhtml",jbi="100%",Wbi="100%",Kbi="border:0;margin:0;",Xbi="margin:0",Qbi="allow-top-navigation-by-user-activation allow-popups",Zbi='The "iframe" tag is not supported by your browser.',Jbi=["foreignobject"],eyi=["dominant-baseline"];function ipt(e){const t=rpt(e);return s4e(),Dii(t.config??{}),t}X(ipt,"processAndSetConfigs");async function V$n(e,t){OAe();try{const{code:r,config:a}=ipt(e);return{diagramType:(await j$n(r)).type,config:a}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}X(V$n,"parse");var Uvn=X((e,t,r=[])=>`
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),tyi=X((e,t=new Map)=>{var a;let r="";if(e.themeCSS!==void 0&&(r+=`
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const h=e.htmlLabels??((a=e.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(f=>{uA(f.styles)||h.forEach(p=>{r+=Uvn(f.id,p,f.styles)}),uA(f.textStyles)||(r+=Uvn(f.id,"tspan",((f==null?void 0:f.textStyles)||[]).map(p=>p.replace("color","fill"))))})}return r},"createCssStyles"),nyi=X((e,t,r,a)=>{const s=tyi(e,r),o=Jii(t,s,e.themeVariables);return Gse(RAn(`${a}{${o}}`),NAn)},"createUserStyles"),ryi=X((e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=vA(a),a=a.replace(/<br>/g,"<br/>"),a},"cleanUpSvgCode"),iyi=X((e="",t)=>{var s,o;const r=(o=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":Wbi,a=H$n(`<body style="${Xbi}">${e}</body>`);return`<iframe style="width:${jbi};height:${r};${Kbi}" src="data:text/html;charset=UTF-8;base64,${a}" sandbox="${Qbi}">
  ${Zbi}
</iframe>`},"putIntoIFrame"),zvn=X((e,t,r,a,s)=>{const o=e.append("div");o.attr("id",r),a&&o.attr("style",a);const u=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Hbi);return s&&u.attr("xmlns:xlink",s),u.append("g"),e},"appendDivSvgG");function flt(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}X(flt,"sandboxedIframe");var ayi=X((e,t,r,a)=>{var s,o,u;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(u=e.getElementById(a))==null||u.remove()},"removeExistingElements"),syi=X(async function(e,t,r){var Z,z,Y,W,Q,V;OAe();const a=ipt(t);t=a.code;const s=$c();it.debug(s),t.length>((s==null?void 0:s.maxTextSize)??Ubi)&&(t=zbi);const o="#"+e,u="i"+e,h="#"+u,f="d"+e,p="#"+f,m=X(()=>{const ee=gn(_?h:p).node();ee&&"remove"in ee&&ee.remove()},"removeTempElements");let b=gn("body");const _=s.securityLevel===Gbi,w=s.securityLevel===qbi,S=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),_){const j=flt(gn(r),u);b=gn(j.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=gn(r);zvn(b,e,f,`font-family: ${S}`,Vbi)}else{if(ayi(document,e,f,u),_){const j=flt(gn("body"),u);b=gn(j.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=gn("body");zvn(b,e,f)}let C,A;try{C=await dlt.fromText(t,{title:a.title})}catch(j){if(s.suppressErrorRendering)throw m(),j;C=await dlt.fromText("error"),A=j}const k=b.select(p).node(),I=C.type,N=k.firstChild,L=N.firstChild,P=(z=(Z=C.renderer).getClasses)==null?void 0:z.call(Z,t,C),M=nyi(s,I,P,o),F=document.createElement("style");F.innerHTML=M,N.insertBefore(F,L);try{await C.renderer.draw(t,e,fot.version,C)}catch(j){throw s.suppressErrorRendering?m():jmi.draw(t,e,fot.version),j}const U=b.select(`${p} svg`),$=(W=(Y=C.db).getAccTitle)==null?void 0:W.call(Y),G=(V=(Q=C.db).getAccDescription)==null?void 0:V.call(Q);W$n(I,U,$,G),b.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Ybi);let B=b.select(p).node().innerHTML;if(it.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),B=ryi(B,_,nh(s.arrowMarkerAbsolute)),_){const j=b.select(p+" svg").node();B=iyi(B,j)}else w||(B=Sj.sanitize(B,{ADD_TAGS:Jbi,ADD_ATTR:eyi,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Mbi(),A)throw A;return m(),{diagramType:I,svg:B,bindFunctions:C.db.bindFunctions}},"render");function Y$n(e={}){var a;const t=W0({},e);t!=null&&t.fontFamily&&!((a=t.themeVariables)!=null&&a.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Oii(t),t!=null&&t.theme&&t.theme in $7?t.themeVariables=$7[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=$7.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Nii(t):bLn();B0t(r.logLevel),OAe()}X(Y$n,"initialize");var j$n=X((e,t={})=>{const{code:r}=rpt(e);return dlt.fromText(r,t)},"getDiagramFromText");function W$n(e,t,r,a){z$n(t,e),G$n(t,r,a,t.attr("id"))}X(W$n,"addA11yInfo");var zF=Object.freeze({render:syi,parse:V$n,getDiagramFromText:j$n,initialize:Y$n,getConfig:$c,setConfig:yLn,getSiteConfig:bLn,updateSiteConfig:Lii,reset:X(()=>{s4e()},"reset"),globalReset:X(()=>{s4e(Tj)},"globalReset"),defaultConfig:Tj});B0t($c().logLevel);s4e($c());var oyi=X((e,t,r)=>{it.warn(e),U1t(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),K$n=X(async function(e={querySelector:".mermaid"}){try{await lyi(e)}catch(t){if(U1t(t)&&it.error(t.str),Mw.parseError&&Mw.parseError(t),!e.suppressErrors)throw it.error("Use the suppressErrors option to suppress these errors"),t}},"run"),lyi=X(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=zF.getConfig();it.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");it.debug(`Found ${s.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(it.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),zF.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const o=new Vo.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed);let u;const h=[];for(const f of Array.from(s)){if(it.info("Rendering diagram: "+f.id),f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const p=`mermaid-${o.next()}`;u=f.innerHTML,u=TAe(Vo.entityDecode(u)).trim().replace(/<br\s*\/?>/gi,"<br/>");const m=Vo.detectInit(u);m&&it.debug("Detected early reinit: ",m);try{const{svg:b,bindFunctions:_}=await J$n(p,u,f);f.innerHTML=b,e&&await e(p),_&&_(f)}catch(b){oyi(b,h,Mw.parseError)}}if(h.length>0)throw h[0]},"runThrowsErrors"),X$n=X(function(e){zF.initialize(e)},"initialize"),cyi=X(async function(e,t,r){it.warn("mermaid.init is deprecated. Please use run instead."),e&&X$n(e);const a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await K$n(a)},"init"),uyi=X(async(e,{lazyLoad:t=!0}={})=>{OAe(),pot(...e),t===!1&&await Lbi()},"registerExternalDiagrams"),Q$n=X(function(){if(Mw.startOnLoad){const{startOnLoad:e}=zF.getConfig();e&&Mw.run().catch(t=>it.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Q$n,!1);var hyi=X(function(e){Mw.parseError=e},"setParseErrorHandler"),V4e=[],Mtt=!1,Z$n=X(async()=>{if(!Mtt){for(Mtt=!0;V4e.length>0;){const e=V4e.shift();if(e)try{await e()}catch(t){it.error("Error executing queue",t)}}Mtt=!1}},"executeQueue"),dyi=X(async(e,t)=>new Promise((r,a)=>{const s=X(()=>new Promise((o,u)=>{zF.parse(e,t).then(h=>{o(h),r(h)},h=>{var f;it.error("Error parsing",h),(f=Mw.parseError)==null||f.call(Mw,h),u(h),a(h)})}),"performCall");V4e.push(s),Z$n().catch(a)}),"parse"),J$n=X((e,t,r)=>new Promise((a,s)=>{const o=X(()=>new Promise((u,h)=>{zF.render(e,t,r).then(f=>{u(f),a(f)},f=>{var p;it.error("Error parsing",f),(p=Mw.parseError)==null||p.call(Mw,f),h(f),s(f)})}),"performCall");V4e.push(o),Z$n().catch(s)}),"render"),fyi=X(()=>Object.keys(IF).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Mw={startOnLoad:!0,mermaidAPI:zF,parse:dyi,render:J$n,init:cyi,run:K$n,registerExternalDiagrams:uyi,registerLayoutLoaders:h$n,initialize:X$n,parseError:void 0,contentLoaded:Q$n,setParseErrorHandler:hyi,detectType:F0t,registerIconPacks:yBn,getRegisteredDiagramsMetadata:fyi},r5a=Mw;/*! Check if previously processed *//*!
 * Wait for document loaded before starting the execution
 */function zy(e){this.content=e}zy.prototype={constructor:zy,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,r){var a=r&&r!=e?this.remove(r):this,s=a.find(e),o=a.content.slice();return s==-1?o.push(r||e,t):(o[s+1]=t,r&&(o[s]=r)),new zy(o)},remove:function(e){var t=this.find(e);if(t==-1)return this;var r=this.content.slice();return r.splice(t,2),new zy(r)},addToStart:function(e,t){return new zy([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new zy(r)},addBefore:function(e,t,r){var a=this.remove(t),s=a.content.slice(),o=a.find(e);return s.splice(o==-1?s.length:o,0,t,r),new zy(s)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=zy.from(e),e.size?new zy(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=zy.from(e),e.size?new zy(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=zy.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}};zy.from=function(e){if(e instanceof zy)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new zy(t)};var GF={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Y4e={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pyi=typeof navigator<"u"&&/Mac/.test(navigator.platform),gyi=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var vm=0;vm<10;vm++)GF[48+vm]=GF[96+vm]=String(vm);for(var vm=1;vm<=24;vm++)GF[vm+111]="F"+vm;for(var vm=65;vm<=90;vm++)GF[vm]=String.fromCharCode(vm+32),Y4e[vm]=String.fromCharCode(vm);for(var Ptt in GF)Y4e.hasOwnProperty(Ptt)||(Y4e[Ptt]=GF[Ptt]);function i5a(e){var t=pyi&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||gyi&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",r=!t&&e.key||(e.shiftKey?Y4e:GF)[e.keyCode]||e.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const{getOwnPropertyNames:myi,getOwnPropertySymbols:byi}=Object,{hasOwnProperty:yyi}=Object.prototype;function Btt(e,t){return function(a,s,o){return e(a,s,o)&&t(a,s,o)}}function rwe(e){return function(r,a,s){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,s);const{cache:o}=s,u=o.get(r),h=o.get(a);if(u&&h)return u===a&&h===r;o.set(r,a),o.set(a,r);const f=e(r,a,s);return o.delete(r),o.delete(a),f}}function vyi(e){return e!=null?e[Symbol.toStringTag]:void 0}function Gvn(e){return myi(e).concat(byi(e))}const _yi=Object.hasOwn||((e,t)=>yyi.call(e,t));function L$(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const wyi="__v",Eyi="__o",xyi="_owner",{getOwnPropertyDescriptor:qvn,keys:Hvn}=Object;function Syi(e,t){return e.byteLength===t.byteLength&&j4e(new Uint8Array(e),new Uint8Array(t))}function Tyi(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Cyi(e,t){return e.byteLength===t.byteLength&&j4e(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ayi(e,t){return L$(e.getTime(),t.getTime())}function kyi(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ryi(e,t){return e===t}function Vvn(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const s=new Array(a),o=e.entries();let u,h,f=0;for(;(u=o.next())&&!u.done;){const p=t.entries();let m=!1,b=0;for(;(h=p.next())&&!h.done;){if(s[b]){b++;continue}const _=u.value,w=h.value;if(r.equals(_[0],w[0],f,b,e,t,r)&&r.equals(_[1],w[1],_[0],w[0],e,t,r)){m=s[b]=!0;break}b++}if(!m)return!1;f++}return!0}const Iyi=L$;function Nyi(e,t,r){const a=Hvn(e);let s=a.length;if(Hvn(t).length!==s)return!1;for(;s-- >0;)if(!eUn(e,t,r,a[s]))return!1;return!0}function Hre(e,t,r){const a=Gvn(e);let s=a.length;if(Gvn(t).length!==s)return!1;let o,u,h;for(;s-- >0;)if(o=a[s],!eUn(e,t,r,o)||(u=qvn(e,o),h=qvn(t,o),(u||h)&&(!u||!h||u.configurable!==h.configurable||u.enumerable!==h.enumerable||u.writable!==h.writable)))return!1;return!0}function Oyi(e,t){return L$(e.valueOf(),t.valueOf())}function Lyi(e,t){return e.source===t.source&&e.flags===t.flags}function Yvn(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const s=new Array(a),o=e.values();let u,h;for(;(u=o.next())&&!u.done;){const f=t.values();let p=!1,m=0;for(;(h=f.next())&&!h.done;){if(!s[m]&&r.equals(u.value,h.value,u.value,h.value,e,t,r)){p=s[m]=!0;break}m++}if(!p)return!1}return!0}function j4e(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Dyi(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function eUn(e,t,r,a){return(a===xyi||a===Eyi||a===wyi)&&(e.$$typeof||t.$$typeof)?!0:_yi(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const Myi="[object ArrayBuffer]",Pyi="[object Arguments]",Byi="[object Boolean]",Fyi="[object DataView]",$yi="[object Date]",Uyi="[object Error]",zyi="[object Map]",Gyi="[object Number]",qyi="[object Object]",Hyi="[object RegExp]",Vyi="[object Set]",Yyi="[object String]",jyi={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Wyi="[object URL]",Kyi=Object.prototype.toString;function Xyi({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:s,areFunctionsEqual:o,areMapsEqual:u,areNumbersEqual:h,areObjectsEqual:f,arePrimitiveWrappersEqual:p,areRegExpsEqual:m,areSetsEqual:b,areTypedArraysEqual:_,areUrlsEqual:w,unknownTagComparators:S}){return function(A,k,I){if(A===k)return!0;if(A==null||k==null)return!1;const N=typeof A;if(N!==typeof k)return!1;if(N!=="object")return N==="number"?h(A,k,I):N==="function"?o(A,k,I):!1;const L=A.constructor;if(L!==k.constructor)return!1;if(L===Object)return f(A,k,I);if(Array.isArray(A))return t(A,k,I);if(L===Date)return a(A,k,I);if(L===RegExp)return m(A,k,I);if(L===Map)return u(A,k,I);if(L===Set)return b(A,k,I);const P=Kyi.call(A);if(P===$yi)return a(A,k,I);if(P===Hyi)return m(A,k,I);if(P===zyi)return u(A,k,I);if(P===Vyi)return b(A,k,I);if(P===qyi)return typeof A.then!="function"&&typeof k.then!="function"&&f(A,k,I);if(P===Wyi)return w(A,k,I);if(P===Uyi)return s(A,k,I);if(P===Pyi)return f(A,k,I);if(jyi[P])return _(A,k,I);if(P===Myi)return e(A,k,I);if(P===Fyi)return r(A,k,I);if(P===Byi||P===Gyi||P===Yyi)return p(A,k,I);if(S){let M=S[P];if(!M){const F=vyi(A);F&&(M=S[F])}if(M)return M(A,k,I)}return!1}}function Qyi({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:Syi,areArraysEqual:r?Hre:Tyi,areDataViewsEqual:Cyi,areDatesEqual:Ayi,areErrorsEqual:kyi,areFunctionsEqual:Ryi,areMapsEqual:r?Btt(Vvn,Hre):Vvn,areNumbersEqual:Iyi,areObjectsEqual:r?Hre:Nyi,arePrimitiveWrappersEqual:Oyi,areRegExpsEqual:Lyi,areSetsEqual:r?Btt(Yvn,Hre):Yvn,areTypedArraysEqual:r?Btt(j4e,Hre):j4e,areUrlsEqual:Dyi,unknownTagComparators:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const s=rwe(a.areArraysEqual),o=rwe(a.areMapsEqual),u=rwe(a.areObjectsEqual),h=rwe(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:s,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:h})}return a}function Zyi(e){return function(t,r,a,s,o,u,h){return e(t,r,h)}}function Jyi({circular:e,comparator:t,createState:r,equals:a,strict:s}){if(r)return function(h,f){const{cache:p=e?new WeakMap:void 0,meta:m}=r();return t(h,f,{cache:p,equals:a,meta:m,strict:s})};if(e)return function(h,f){return t(h,f,{cache:new WeakMap,equals:a,meta:void 0,strict:s})};const o={cache:void 0,equals:a,meta:void 0,strict:s};return function(h,f){return t(h,f,o)}}const a5a=$9();$9({strict:!0});$9({circular:!0});$9({circular:!0,strict:!0});$9({createInternalComparator:()=>L$});$9({strict:!0,createInternalComparator:()=>L$});$9({circular:!0,createInternalComparator:()=>L$});$9({circular:!0,createInternalComparator:()=>L$,strict:!0});function $9(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:s=!1}=e,o=Qyi(e),u=Xyi(o),h=r?r(u):Zyi(u);return Jyi({circular:t,comparator:u,createState:a,equals:h,strict:s})}const evi=" ögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",tvi="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",plt="numeric",glt="ascii",mlt="alpha",hse="asciinumeric",Uie="alphanumeric",blt="domain",tUn="emoji",nvi="scheme",rvi="slashscheme",Ftt="whitespace";function ivi(e,t){return e in t||(t[e]=[]),t[e]}function nF(e,t,r){t[plt]&&(t[hse]=!0,t[Uie]=!0),t[glt]&&(t[hse]=!0,t[mlt]=!0),t[hse]&&(t[Uie]=!0),t[mlt]&&(t[Uie]=!0),t[Uie]&&(t[blt]=!0),t[tUn]&&(t[blt]=!0);for(const a in t){const s=ivi(a,r);s.indexOf(e)<0&&s.push(e)}}function avi(e,t){const r={};for(const a in t)t[a].indexOf(e)>=0&&(r[a]=!0);return r}function B2(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}B2.groups={};B2.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let a=0;a<t.jr.length;a++){const s=t.jr[a][0],o=t.jr[a][1];if(o&&s.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,a){for(let s=0;s<e.length;s++)this.tt(e[s],t,r,a)},tr(e,t,r,a){a=a||B2.groups;let s;return t&&t.j?s=t:(s=new B2(t),r&&a&&nF(t,r,a)),this.jr.push([e,s]),s},ts(e,t,r,a){let s=this;const o=e.length;if(!o)return s;for(let u=0;u<o-1;u++)s=s.tt(e[u]);return s.tt(e[o-1],t,r,a)},tt(e,t,r,a){a=a||B2.groups;const s=this;if(t&&t.j)return s.j[e]=t,t;const o=t;let u,h=s.go(e);if(h?(u=new B2,Object.assign(u.j,h.j),u.jr.push.apply(u.jr,h.jr),u.jd=h.jd,u.t=h.t):u=new B2,o){if(a)if(u.t&&typeof u.t=="string"){const f=Object.assign(avi(u.t,a),r);nF(o,f,a)}else r&&nF(o,r,a);u.t=o}return s.j[e]=u,u}};const Dl=(e,t,r,a,s)=>e.ta(t,r,a,s),i0=(e,t,r,a,s)=>e.tr(t,r,a,s),jvn=(e,t,r,a,s)=>e.ts(t,r,a,s),Di=(e,t,r,a,s)=>e.tt(t,r,a,s),s7="WORD",ylt="UWORD",nUn="ASCIINUMERICAL",rUn="ALPHANUMERICAL",Coe="LOCALHOST",vlt="TLD",_lt="UTLD",cxe="SCHEME",dV="SLASH_SCHEME",apt="NUM",wlt="WS",spt="NL",dse="OPENBRACE",fse="CLOSEBRACE",W4e="OPENBRACKET",K4e="CLOSEBRACKET",X4e="OPENPAREN",Q4e="CLOSEPAREN",Z4e="OPENANGLEBRACKET",J4e="CLOSEANGLEBRACKET",e3e="FULLWIDTHLEFTPAREN",t3e="FULLWIDTHRIGHTPAREN",n3e="LEFTCORNERBRACKET",r3e="RIGHTCORNERBRACKET",i3e="LEFTWHITECORNERBRACKET",a3e="RIGHTWHITECORNERBRACKET",s3e="FULLWIDTHLESSTHAN",o3e="FULLWIDTHGREATERTHAN",l3e="AMPERSAND",c3e="APOSTROPHE",u3e="ASTERISK",KN="AT",h3e="BACKSLASH",d3e="BACKTICK",f3e="CARET",eO="COLON",opt="COMMA",p3e="DOLLAR",CC="DOT",g3e="EQUALS",lpt="EXCLAMATION",Vx="HYPHEN",pse="PERCENT",m3e="PIPE",b3e="PLUS",y3e="POUND",gse="QUERY",cpt="QUOTE",iUn="FULLWIDTHMIDDLEDOT",upt="SEMI",AC="SLASH",mse="TILDE",v3e="UNDERSCORE",aUn="EMOJI",_3e="SYM";var sUn=Object.freeze({__proto__:null,ALPHANUMERICAL:rUn,AMPERSAND:l3e,APOSTROPHE:c3e,ASCIINUMERICAL:nUn,ASTERISK:u3e,AT:KN,BACKSLASH:h3e,BACKTICK:d3e,CARET:f3e,CLOSEANGLEBRACKET:J4e,CLOSEBRACE:fse,CLOSEBRACKET:K4e,CLOSEPAREN:Q4e,COLON:eO,COMMA:opt,DOLLAR:p3e,DOT:CC,EMOJI:aUn,EQUALS:g3e,EXCLAMATION:lpt,FULLWIDTHGREATERTHAN:o3e,FULLWIDTHLEFTPAREN:e3e,FULLWIDTHLESSTHAN:s3e,FULLWIDTHMIDDLEDOT:iUn,FULLWIDTHRIGHTPAREN:t3e,HYPHEN:Vx,LEFTCORNERBRACKET:n3e,LEFTWHITECORNERBRACKET:i3e,LOCALHOST:Coe,NL:spt,NUM:apt,OPENANGLEBRACKET:Z4e,OPENBRACE:dse,OPENBRACKET:W4e,OPENPAREN:X4e,PERCENT:pse,PIPE:m3e,PLUS:b3e,POUND:y3e,QUERY:gse,QUOTE:cpt,RIGHTCORNERBRACKET:r3e,RIGHTWHITECORNERBRACKET:a3e,SCHEME:cxe,SEMI:upt,SLASH:AC,SLASH_SCHEME:dV,SYM:_3e,TILDE:mse,TLD:vlt,UNDERSCORE:v3e,UTLD:_lt,UWORD:ylt,WORD:s7,WS:wlt});const j6=/[a-z]/,Vre=new RegExp("\\p{L}","u"),$tt=new RegExp("\\p{Emoji}","u"),W6=/\d/,Utt=/\s/,Wvn="\r",ztt=`
`,svi="️",ovi="‍",Gtt="￼";let iwe=null,awe=null;function lvi(e=[]){const t={};B2.groups=t;const r=new B2;iwe==null&&(iwe=Kvn(evi)),awe==null&&(awe=Kvn(tvi)),Di(r,"'",c3e),Di(r,"{",dse),Di(r,"}",fse),Di(r,"[",W4e),Di(r,"]",K4e),Di(r,"(",X4e),Di(r,")",Q4e),Di(r,"<",Z4e),Di(r,">",J4e),Di(r,"（",e3e),Di(r,"）",t3e),Di(r,"「",n3e),Di(r,"」",r3e),Di(r,"『",i3e),Di(r,"』",a3e),Di(r,"＜",s3e),Di(r,"＞",o3e),Di(r,"&",l3e),Di(r,"*",u3e),Di(r,"@",KN),Di(r,"`",d3e),Di(r,"^",f3e),Di(r,":",eO),Di(r,",",opt),Di(r,"$",p3e),Di(r,".",CC),Di(r,"=",g3e),Di(r,"!",lpt),Di(r,"-",Vx),Di(r,"%",pse),Di(r,"|",m3e),Di(r,"+",b3e),Di(r,"#",y3e),Di(r,"?",gse),Di(r,'"',cpt),Di(r,"/",AC),Di(r,";",upt),Di(r,"~",mse),Di(r,"_",v3e),Di(r,"\\",h3e),Di(r,"・",iUn);const a=i0(r,W6,apt,{[plt]:!0});i0(a,W6,a);const s=i0(a,j6,nUn,{[hse]:!0}),o=i0(a,Vre,rUn,{[Uie]:!0}),u=i0(r,j6,s7,{[glt]:!0});i0(u,W6,s),i0(u,j6,u),i0(s,W6,s),i0(s,j6,s);const h=i0(r,Vre,ylt,{[mlt]:!0});i0(h,j6),i0(h,W6,o),i0(h,Vre,h),i0(o,W6,o),i0(o,j6),i0(o,Vre,o);const f=Di(r,ztt,spt,{[Ftt]:!0}),p=Di(r,Wvn,wlt,{[Ftt]:!0}),m=i0(r,Utt,wlt,{[Ftt]:!0});Di(r,Gtt,m),Di(p,ztt,f),Di(p,Gtt,m),i0(p,Utt,m),Di(m,Wvn),Di(m,ztt),i0(m,Utt,m),Di(m,Gtt,m);const b=i0(r,$tt,aUn,{[tUn]:!0});Di(b,"#"),i0(b,$tt,b),Di(b,svi,b);const _=Di(b,ovi);Di(_,"#"),i0(_,$tt,b);const w=[[j6,u],[W6,s]],S=[[j6,null],[Vre,h],[W6,o]];for(let C=0;C<iwe.length;C++)LN(r,iwe[C],vlt,s7,w);for(let C=0;C<awe.length;C++)LN(r,awe[C],_lt,ylt,S);nF(vlt,{tld:!0,ascii:!0},t),nF(_lt,{utld:!0,alpha:!0},t),LN(r,"file",cxe,s7,w),LN(r,"mailto",cxe,s7,w),LN(r,"http",dV,s7,w),LN(r,"https",dV,s7,w),LN(r,"ftp",dV,s7,w),LN(r,"ftps",dV,s7,w),nF(cxe,{scheme:!0,ascii:!0},t),nF(dV,{slashscheme:!0,ascii:!0},t),e=e.sort((C,A)=>C[0]>A[0]?1:-1);for(let C=0;C<e.length;C++){const A=e[C][0],I=e[C][1]?{[nvi]:!0}:{[rvi]:!0};A.indexOf("-")>=0?I[blt]=!0:j6.test(A)?W6.test(A)?I[hse]=!0:I[glt]=!0:I[plt]=!0,jvn(r,A,A,I)}return jvn(r,"localhost",Coe,{ascii:!0}),r.jd=new B2(_3e),{start:r,tokens:Object.assign({groups:t},sUn)}}function oUn(e,t){const r=cvi(t.replace(/[A-Z]/g,h=>h.toLowerCase())),a=r.length,s=[];let o=0,u=0;for(;u<a;){let h=e,f=null,p=0,m=null,b=-1,_=-1;for(;u<a&&(f=h.go(r[u]));)h=f,h.accepts()?(b=0,_=0,m=h):b>=0&&(b+=r[u].length,_++),p+=r[u].length,o+=r[u].length,u++;o-=b,u-=_,p-=b,s.push({t:m.t,v:t.slice(o-p,o),s:o-p,e:o})}return s}function cvi(e){const t=[],r=e.length;let a=0;for(;a<r;){let s=e.charCodeAt(a),o,u=s<55296||s>56319||a+1===r||(o=e.charCodeAt(a+1))<56320||o>57343?e[a]:e.slice(a,a+2);t.push(u),a+=u.length}return t}function LN(e,t,r,a,s){let o;const u=t.length;for(let h=0;h<u-1;h++){const f=t[h];e.j[f]?o=e.j[f]:(o=new B2(a),o.jr=s.slice(),e.j[f]=o),e=o}return o=new B2(r),o.jr=s.slice(),e.j[t[u-1]]=o,o}function Kvn(e){const t=[],r=[];let a=0,s="0123456789";for(;a<e.length;){let o=0;for(;s.indexOf(e[a+o])>=0;)o++;if(o>0){t.push(r.join(""));for(let u=parseInt(e.substring(a,a+o),10);u>0;u--)r.pop();a+=o}else r.push(e[a]),a++}return t}const Aoe={defaultProtocol:"http",events:null,format:Xvn,formatHref:Xvn,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function hpt(e,t=null){let r=Object.assign({},Aoe);e&&(r=Object.assign(r,e instanceof hpt?e.o:e));const a=r.ignoreTags,s=[];for(let o=0;o<a.length;o++)s.push(a[o].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=s}hpt.prototype={o:Aoe,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,r){const a=t!=null;let s=this.o[e];return s&&(typeof s=="object"?(s=r.t in s?s[r.t]:Aoe[e],typeof s=="function"&&a&&(s=s(t,r))):typeof s=="function"&&a&&(s=s(t,r.t,r)),s)},getObj(e,t,r){let a=this.o[e];return typeof a=="function"&&t!=null&&(a=a(t,r.t,r)),a},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Xvn(e){return e}function lUn(e,t){this.t="token",this.v=e,this.tk=t}lUn.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),r=e.get("truncate",t,this),a=e.get("format",t,this);return r&&a.length>r?a.substring(0,r)+"…":a},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Aoe.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toHref(e.get("defaultProtocol")),a=e.get("formatHref",r,this),s=e.get("tagName",r,t),o=this.toFormattedString(e),u={},h=e.get("className",r,t),f=e.get("target",r,t),p=e.get("rel",r,t),m=e.getObj("attributes",r,t),b=e.getObj("events",r,t);return u.href=a,h&&(u.class=h),f&&(u.target=f),p&&(u.rel=p),m&&Object.assign(u,m),{tagName:s,attributes:u,content:o,eventListeners:b}}};function LAe(e,t){class r extends lUn{constructor(s,o){super(s,o),this.t=e}}for(const a in t)r.prototype[a]=t[a];return r.t=e,r}const Qvn=LAe("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Zvn=LAe("text"),uvi=LAe("nl"),swe=LAe("url",{isLink:!0,toHref(e=Aoe.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Coe&&e[1].t===eO}}),Bx=e=>new B2(e);function hvi({groups:e}){const t=e.domain.concat([l3e,u3e,KN,h3e,d3e,f3e,p3e,g3e,Vx,apt,pse,m3e,b3e,y3e,AC,_3e,mse,v3e]),r=[c3e,eO,opt,CC,lpt,pse,gse,cpt,upt,Z4e,J4e,dse,fse,K4e,W4e,X4e,Q4e,e3e,t3e,n3e,r3e,i3e,a3e,s3e,o3e],a=[l3e,c3e,u3e,h3e,d3e,f3e,p3e,g3e,Vx,dse,fse,pse,m3e,b3e,y3e,gse,AC,_3e,mse,v3e],s=Bx(),o=Di(s,mse);Dl(o,a,o),Dl(o,e.domain,o);const u=Bx(),h=Bx(),f=Bx();Dl(s,e.domain,u),Dl(s,e.scheme,h),Dl(s,e.slashscheme,f),Dl(u,a,o),Dl(u,e.domain,u);const p=Di(u,KN);Di(o,KN,p),Di(h,KN,p),Di(f,KN,p);const m=Di(o,CC);Dl(m,a,o),Dl(m,e.domain,o);const b=Bx();Dl(p,e.domain,b),Dl(b,e.domain,b);const _=Di(b,CC);Dl(_,e.domain,b);const w=Bx(Qvn);Dl(_,e.tld,w),Dl(_,e.utld,w),Di(p,Coe,w);const S=Di(b,Vx);Di(S,Vx,S),Dl(S,e.domain,b),Dl(w,e.domain,b),Di(w,CC,_),Di(w,Vx,S);const C=Di(w,eO);Dl(C,e.numeric,Qvn);const A=Di(u,Vx),k=Di(u,CC);Di(A,Vx,A),Dl(A,e.domain,u),Dl(k,a,o),Dl(k,e.domain,u);const I=Bx(swe);Dl(k,e.tld,I),Dl(k,e.utld,I),Dl(I,e.domain,u),Dl(I,a,o),Di(I,CC,k),Di(I,Vx,A),Di(I,KN,p);const N=Di(I,eO),L=Bx(swe);Dl(N,e.numeric,L);const P=Bx(swe),M=Bx();Dl(P,t,P),Dl(P,r,M),Dl(M,t,P),Dl(M,r,M),Di(I,AC,P),Di(L,AC,P);const F=Di(h,eO),U=Di(f,eO),$=Di(U,AC),G=Di($,AC);Dl(h,e.domain,u),Di(h,CC,k),Di(h,Vx,A),Dl(f,e.domain,u),Di(f,CC,k),Di(f,Vx,A),Dl(F,e.domain,P),Di(F,AC,P),Di(F,gse,P),Dl(G,e.domain,P),Dl(G,t,P),Di(G,AC,P);const B=[[dse,fse],[W4e,K4e],[X4e,Q4e],[Z4e,J4e],[e3e,t3e],[n3e,r3e],[i3e,a3e],[s3e,o3e]];for(let Z=0;Z<B.length;Z++){const[z,Y]=B[Z],W=Di(P,z);Di(M,z,W),Di(W,Y,P);const Q=Bx(swe);Dl(W,t,Q);const V=Bx();Dl(W,r),Dl(Q,t,Q),Dl(Q,r,V),Dl(V,t,Q),Dl(V,r,V),Di(Q,Y,P),Di(V,Y,P)}return Di(s,Coe,I),Di(s,spt,uvi),{start:s,tokens:sUn}}function dvi(e,t,r){let a=r.length,s=0,o=[],u=[];for(;s<a;){let h=e,f=null,p=null,m=0,b=null,_=-1;for(;s<a&&!(f=h.go(r[s].t));)u.push(r[s++]);for(;s<a&&(p=f||h.go(r[s].t));)f=null,h=p,h.accepts()?(_=0,b=h):_>=0&&_++,s++,m++;if(_<0)s-=m,s<a&&(u.push(r[s]),s++);else{u.length>0&&(o.push(qtt(Zvn,t,u)),u=[]),s-=_,m-=_;const w=b.t,S=r.slice(s-m,s);o.push(qtt(w,t,S))}}return u.length>0&&o.push(qtt(Zvn,t,u)),o}function qtt(e,t,r){const a=r[0].s,s=r[r.length-1].e,o=t.slice(a,s);return new e(o,r)}const fvi=typeof console<"u"&&console&&console.warn||(()=>{}),pvi="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",md={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function s5a(){return B2.groups={},md.scanner=null,md.parser=null,md.tokenQueue=[],md.pluginQueue=[],md.customSchemes=[],md.initialized=!1,md}function o5a(e,t=!1){if(md.initialized&&fvi(`linkifyjs: already initialized - will not register custom scheme "${e}" ${pvi}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);md.customSchemes.push([e,t])}function gvi(){md.scanner=lvi(md.customSchemes);for(let e=0;e<md.tokenQueue.length;e++)md.tokenQueue[e][1]({scanner:md.scanner});md.parser=hvi(md.scanner.tokens);for(let e=0;e<md.pluginQueue.length;e++)md.pluginQueue[e][1]({scanner:md.scanner,parser:md.parser});return md.initialized=!0,md}function cUn(e){return md.initialized||gvi(),dvi(md.parser.start,e,oUn(md.scanner.start,e))}cUn.scan=oUn;function l5a(e,t=null,r=null){if(t&&typeof t=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}const a=new hpt(r),s=cUn(e),o=[];for(let u=0;u<s.length;u++){const h=s[u];h.isLink&&(!t||h.t===t)&&a.check(h)&&o.push(h.toFormattedObject(a))}return o}var w3e=200,Cb=function(){};Cb.prototype.append=function(t){return t.length?(t=Cb.from(t),!this.length&&t||t.length<w3e&&this.leafAppend(t)||this.length<w3e&&t.leafPrepend(this)||this.appendInner(t)):this};Cb.prototype.prepend=function(t){return t.length?Cb.from(t).append(this):this};Cb.prototype.appendInner=function(t){return new mvi(this,t)};Cb.prototype.slice=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.length),t>=r?Cb.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,r))};Cb.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Cb.prototype.forEach=function(t,r,a){r===void 0&&(r=0),a===void 0&&(a=this.length),r<=a?this.forEachInner(t,r,a,0):this.forEachInvertedInner(t,r,a,0)};Cb.prototype.map=function(t,r,a){r===void 0&&(r=0),a===void 0&&(a=this.length);var s=[];return this.forEach(function(o,u){return s.push(t(o,u))},r,a),s};Cb.from=function(t){return t instanceof Cb?t:t&&t.length?new uUn(t):Cb.empty};var uUn=function(e){function t(a){e.call(this),this.values=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(s,o){return s==0&&o==this.length?this:new t(this.values.slice(s,o))},t.prototype.getInner=function(s){return this.values[s]},t.prototype.forEachInner=function(s,o,u,h){for(var f=o;f<u;f++)if(s(this.values[f],h+f)===!1)return!1},t.prototype.forEachInvertedInner=function(s,o,u,h){for(var f=o-1;f>=u;f--)if(s(this.values[f],h+f)===!1)return!1},t.prototype.leafAppend=function(s){if(this.length+s.length<=w3e)return new t(this.values.concat(s.flatten()))},t.prototype.leafPrepend=function(s){if(this.length+s.length<=w3e)return new t(s.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(Cb);Cb.empty=new uUn([]);var mvi=function(e){function t(r,a){e.call(this),this.left=r,this.right=a,this.length=r.length+a.length,this.depth=Math.max(r.depth,a.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(a){return a<this.left.length?this.left.get(a):this.right.get(a-this.left.length)},t.prototype.forEachInner=function(a,s,o,u){var h=this.left.length;if(s<h&&this.left.forEachInner(a,s,Math.min(o,h),u)===!1||o>h&&this.right.forEachInner(a,Math.max(s-h,0),Math.min(this.length,o)-h,u+h)===!1)return!1},t.prototype.forEachInvertedInner=function(a,s,o,u){var h=this.left.length;if(s>h&&this.right.forEachInvertedInner(a,s-h,Math.max(o,h)-h,u+h)===!1||o<h&&this.left.forEachInvertedInner(a,Math.min(s,h),o,u)===!1)return!1},t.prototype.sliceInner=function(a,s){if(a==0&&s==this.length)return this;var o=this.left.length;return s<=o?this.left.slice(a,s):a>=o?this.right.slice(a-o,s-o):this.left.slice(a,o).append(this.right.slice(0,s-o))},t.prototype.leafAppend=function(a){var s=this.right.leafAppend(a);if(s)return new t(this.left,s)},t.prototype.leafPrepend=function(a){var s=this.left.leafPrepend(a);if(s)return new t(s,this.right)},t.prototype.appendInner=function(a){return this.left.depth>=Math.max(this.right.depth,a.depth)+1?new t(this.left,new t(this.right,a)):new t(this,a)},t}(Cb);function bvi(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yvi(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:a}=t;return r+"/"+a}).join(" "):navigator.userAgent}function hUn(){return/apple/i.test(navigator.vendor)}function vvi(){return bvi().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function _vi(){return yvi().includes("jsdom/")}const Jvn="data-floating-ui-focusable",wvi="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Elt(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Bj(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&fst(r)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function fV(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Htt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Evi(e){return e.matches("html,body")}function KC(e){return(e==null?void 0:e.ownerDocument)||document}function xvi(e){return Fw(e)&&e.matches(wvi)}function Svi(e){if(!e||_vi())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Tvi(e){return e?e.hasAttribute(Jvn)?e:e.querySelector("["+Jvn+"]")||e:null}function uxe(e,t,r){return r===void 0&&(r=!0),e.filter(s=>{var o;return s.parentId===t&&(!r||((o=s.context)==null?void 0:o.open))}).flatMap(s=>[s,...uxe(e,s.id,r)])}function Cvi(e){return"nativeEvent"in e}function xlt(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}var Avi=typeof document<"u",kvi=function(){},X3=Avi?ue.useLayoutEffect:kvi;const Rvi={...g$};function owe(e){const t=ue.useRef(e);return X3(()=>{t.current=e}),t}const Ivi=Rvi.useInsertionEffect,Nvi=Ivi||(e=>e());function UC(e){const t=ue.useRef(()=>{});return Nvi(()=>{t.current=e}),ue.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}const dUn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function fUn(e,t){const r=O6n(e,dUn()),a=r.length;if(a===0)return;const s=Elt(KC(e)),o=r.indexOf(s),u=o===-1?t===1?0:a-1:o+t;return r[u]}function Ovi(e){return fUn(KC(e).body,1)||e}function Lvi(e){return fUn(KC(e).body,-1)||e}function Vtt(e,t){const r=t||e.currentTarget,a=e.relatedTarget;return!a||!Bj(r,a)}function Dvi(e){O6n(e,dUn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function e2n(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}function c5a(e){const t=ue.useRef(void 0),r=ue.useCallback(a=>{const s=e.map(o=>{if(o!=null){if(typeof o=="function"){const u=o,h=u(a);return typeof h=="function"?h:()=>{u(null)}}return o.current=a,()=>{o.current=null}}});return()=>{s.forEach(o=>o==null?void 0:o())}},e);return ue.useMemo(()=>e.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=r(a))},e)}const Mvi="data-floating-ui-focusable",t2n="active",n2n="selected",Pvi={...g$};let r2n=!1,Bvi=0;const i2n=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bvi++;function Fvi(){const[e,t]=ue.useState(()=>r2n?i2n():void 0);return X3(()=>{e==null&&t(i2n())},[]),ue.useEffect(()=>{r2n=!0},[]),e}const $vi=Pvi.useId,dpt=$vi||Fvi;function Uvi(){const e=new Map;return{emit(t,r){var a;(a=e.get(t))==null||a.forEach(s=>s(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){var a;(a=e.get(t))==null||a.delete(r)}}}const zvi=ue.createContext(null),Gvi=ue.createContext(null),fpt=()=>{var e;return((e=ue.useContext(zvi))==null?void 0:e.id)||null},ppt=()=>ue.useContext(Gvi);function dce(e){return"data-floating-ui-"+e}function zx(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const a2n=dce("safe-polygon");function Ytt(e,t,r){if(r&&!xlt(r))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const a=e();return typeof a=="number"?a:a==null?void 0:a[t]}return e==null?void 0:e[t]}function jtt(e){return typeof e=="function"?e():e}function u5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,dataRef:s,events:o,elements:u}=e,{enabled:h=!0,delay:f=0,handleClose:p=null,mouseOnly:m=!1,restMs:b=0,move:_=!0}=t,w=ppt(),S=fpt(),C=owe(p),A=owe(f),k=owe(r),I=owe(b),N=ue.useRef(),L=ue.useRef(-1),P=ue.useRef(),M=ue.useRef(-1),F=ue.useRef(!0),U=ue.useRef(!1),$=ue.useRef(()=>{}),G=ue.useRef(!1),B=UC(()=>{var V;const j=(V=s.current.openEvent)==null?void 0:V.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"});ue.useEffect(()=>{if(!h)return;function V(j){let{open:ee}=j;ee||(zx(L),zx(M),F.current=!0,G.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[h,o]),ue.useEffect(()=>{if(!h||!C.current||!r)return;function V(ee){B()&&a(!1,ee,"hover")}const j=KC(u.floating).documentElement;return j.addEventListener("mouseleave",V),()=>{j.removeEventListener("mouseleave",V)}},[u.floating,r,a,h,C,B]);const Z=ue.useCallback(function(V,j,ee){j===void 0&&(j=!0),ee===void 0&&(ee="hover");const te=Ytt(A.current,"close",N.current);te&&!P.current?(zx(L),L.current=window.setTimeout(()=>a(!1,V,ee),te)):j&&(zx(L),a(!1,V,ee))},[A,a]),z=UC(()=>{$.current(),P.current=void 0}),Y=UC(()=>{if(U.current){const V=KC(u.floating).body;V.style.pointerEvents="",V.removeAttribute(a2n),U.current=!1}}),W=UC(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);ue.useEffect(()=>{if(!h)return;function V(se){if(zx(L),F.current=!1,m&&!xlt(N.current)||jtt(I.current)>0&&!Ytt(A.current,"open"))return;const ie=Ytt(A.current,"open",N.current);ie?L.current=window.setTimeout(()=>{k.current||a(!0,se,"hover")},ie):r||a(!0,se,"hover")}function j(se){if(W()){Y();return}$.current();const ie=KC(u.floating);if(zx(M),G.current=!1,C.current&&s.current.floatingContext){r||zx(L),P.current=C.current({...s.current.floatingContext,tree:w,x:se.clientX,y:se.clientY,onClose(){Y(),z(),W()||Z(se,!0,"safe-polygon")}});const ce=P.current;ie.addEventListener("mousemove",ce),$.current=()=>{ie.removeEventListener("mousemove",ce)};return}(N.current==="touch"?!Bj(u.floating,se.relatedTarget):!0)&&Z(se)}function ee(se){W()||s.current.floatingContext&&(C.current==null||C.current({...s.current.floatingContext,tree:w,x:se.clientX,y:se.clientY,onClose(){Y(),z(),W()||Z(se)}})(se))}function te(){zx(L)}function ne(se){W()||Z(se,!1)}if(yd(u.domReference)){const se=u.domReference,ie=u.floating;return r&&se.addEventListener("mouseleave",ee),_&&se.addEventListener("mousemove",V,{once:!0}),se.addEventListener("mouseenter",V),se.addEventListener("mouseleave",j),ie&&(ie.addEventListener("mouseleave",ee),ie.addEventListener("mouseenter",te),ie.addEventListener("mouseleave",ne)),()=>{r&&se.removeEventListener("mouseleave",ee),_&&se.removeEventListener("mousemove",V),se.removeEventListener("mouseenter",V),se.removeEventListener("mouseleave",j),ie&&(ie.removeEventListener("mouseleave",ee),ie.removeEventListener("mouseenter",te),ie.removeEventListener("mouseleave",ne))}}},[u,h,e,m,_,Z,z,Y,a,r,k,w,A,C,s,W,I]),X3(()=>{var V;if(h&&r&&(V=C.current)!=null&&(V=V.__options)!=null&&V.blockPointerEvents&&B()){U.current=!0;const ee=u.floating;if(yd(u.domReference)&&ee){var j;const te=KC(u.floating).body;te.setAttribute(a2n,"");const ne=u.domReference,se=w==null||(j=w.nodesRef.current.find(ie=>ie.id===S))==null||(j=j.context)==null?void 0:j.elements.floating;return se&&(se.style.pointerEvents=""),te.style.pointerEvents="none",ne.style.pointerEvents="auto",ee.style.pointerEvents="auto",()=>{te.style.pointerEvents="",ne.style.pointerEvents="",ee.style.pointerEvents=""}}}},[h,r,S,u,w,C,B]),X3(()=>{r||(N.current=void 0,G.current=!1,z(),Y())},[r,z,Y]),ue.useEffect(()=>()=>{z(),zx(L),zx(M),Y()},[h,u.domReference,z,Y]);const Q=ue.useMemo(()=>{function V(j){N.current=j.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(j){const{nativeEvent:ee}=j;function te(){!F.current&&!k.current&&a(!0,ee,"hover")}m&&!xlt(N.current)||r||jtt(I.current)===0||G.current&&j.movementX**2+j.movementY**2<2||(zx(M),N.current==="touch"?te():(G.current=!0,M.current=window.setTimeout(te,jtt(I.current))))}}},[m,a,r,k,I]);return ue.useMemo(()=>h?{reference:Q}:{},[h,Q])}const s2n=()=>{},qvi=ue.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:s2n,setState:s2n,isInstantPhase:!1});function h5a(e){const{children:t,delay:r,timeoutMs:a=0}=e,[s,o]=ue.useReducer((f,p)=>({...f,...p}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),u=ue.useRef(null),h=ue.useCallback(f=>{o({currentId:f})},[]);return X3(()=>{s.currentId?u.current===null?u.current=s.currentId:s.isInstantPhase||o({isInstantPhase:!0}):(s.isInstantPhase&&o({isInstantPhase:!1}),u.current=null)},[s.currentId,s.isInstantPhase]),ct.jsx(qvi.Provider,{value:ue.useMemo(()=>({...s,setState:o,setCurrentId:h}),[s,h]),children:t})}const Hvi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},o2n=ue.forwardRef(function(t,r){const[a,s]=ue.useState();X3(()=>{hUn()&&s("button")},[]);const o={ref:r,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[dce("focus-guard")]:"",style:Hvi};return ct.jsx("span",{...t,...o})}),Vvi={clipPath:"inset(50%)",position:"fixed",top:0,left:0},pUn=ue.createContext(null),l2n=dce("portal");function Yvi(e){e===void 0&&(e={});const{id:t,root:r}=e,a=dpt(),s=jvi(),[o,u]=ue.useState(null),h=ue.useRef(null);return X3(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{h.current=null})},[o]),X3(()=>{if(!a||h.current)return;const f=t?document.getElementById(t):null;if(!f)return;const p=document.createElement("div");p.id=a,p.setAttribute(l2n,""),f.appendChild(p),h.current=p,u(p)},[t,a]),X3(()=>{if(r===null||!a||h.current)return;let f=r||(s==null?void 0:s.portalNode);f&&!Ydt(f)&&(f=f.current),f=f||document.body;let p=null;t&&(p=document.createElement("div"),p.id=t,f.appendChild(p));const m=document.createElement("div");m.id=a,m.setAttribute(l2n,""),f=p||f,f.appendChild(m),h.current=m,u(m)},[t,r,a,s]),o}function d5a(e){const{children:t,id:r,root:a,preserveTabOrder:s=!0}=e,o=Yvi({id:r,root:a}),[u,h]=ue.useState(null),f=ue.useRef(null),p=ue.useRef(null),m=ue.useRef(null),b=ue.useRef(null),_=u==null?void 0:u.modal,w=u==null?void 0:u.open,S=!!u&&!u.modal&&u.open&&s&&!!(a||o);return ue.useEffect(()=>{if(!o||!s||_)return;function C(A){o&&Vtt(A)&&(A.type==="focusin"?e2n:Dvi)(o)}return o.addEventListener("focusin",C,!0),o.addEventListener("focusout",C,!0),()=>{o.removeEventListener("focusin",C,!0),o.removeEventListener("focusout",C,!0)}},[o,s,_]),ue.useEffect(()=>{o&&(w||e2n(o))},[w,o]),ct.jsxs(pUn.Provider,{value:ue.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:b,portalNode:o,setFocusManagerState:h}),[s,o]),children:[S&&o&&ct.jsx(o2n,{"data-type":"outside",ref:f,onFocus:C=>{if(Vtt(C,o)){var A;(A=m.current)==null||A.focus()}else{const k=u?u.domReference:null,I=Lvi(k);I==null||I.focus()}}}),S&&o&&ct.jsx("span",{"aria-owns":o.id,style:Vvi}),o&&w9.createPortal(t,o),S&&o&&ct.jsx(o2n,{"data-type":"outside",ref:p,onFocus:C=>{if(Vtt(C,o)){var A;(A=b.current)==null||A.focus()}else{const k=u?u.domReference:null,I=Ovi(k);I==null||I.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1,C.nativeEvent,"focus-out"))}}})]})}const jvi=()=>ue.useContext(pUn),Wvi={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Kvi={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},c2n=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function f5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,elements:s,dataRef:o}=e,{enabled:u=!0,escapeKey:h=!0,outsidePress:f=!0,outsidePressEvent:p="pointerdown",referencePress:m=!1,referencePressEvent:b="pointerdown",ancestorScroll:_=!1,bubbles:w,capture:S}=t,C=ppt(),A=UC(typeof f=="function"?f:()=>!1),k=typeof f=="function"?A:f,I=ue.useRef(!1),{escapeKey:N,outsidePress:L}=c2n(w),{escapeKey:P,outsidePress:M}=c2n(S),F=ue.useRef(!1),U=UC(Y=>{var W;if(!r||!u||!h||Y.key!=="Escape"||F.current)return;const Q=(W=o.current.floatingContext)==null?void 0:W.nodeId,V=C?uxe(C.nodesRef.current,Q):[];if(!N&&(Y.stopPropagation(),V.length>0)){let j=!0;if(V.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__escapeKeyBubbles){j=!1;return}}),!j)return}a(!1,Cvi(Y)?Y.nativeEvent:Y,"escape-key")}),$=UC(Y=>{var W;const Q=()=>{var V;U(Y),(V=fV(Y))==null||V.removeEventListener("keydown",Q)};(W=fV(Y))==null||W.addEventListener("keydown",Q)}),G=UC(Y=>{var W;const Q=o.current.insideReactTree;o.current.insideReactTree=!1;const V=I.current;if(I.current=!1,p==="click"&&V||Q||typeof k=="function"&&!k(Y))return;const j=fV(Y),ee="["+dce("inert")+"]",te=KC(s.floating).querySelectorAll(ee);let ne=yd(j)?j:null;for(;ne&&!P7(ne);){const ce=j7(ne);if(P7(ce)||!yd(ce))break;ne=ce}if(te.length&&yd(j)&&!Evi(j)&&!Bj(j,s.floating)&&Array.from(te).every(ce=>!Bj(ne,ce)))return;if(Fw(j)&&z){const ce=P7(j),be=gS(j),ve=/auto|scroll/,De=ce||ve.test(be.overflowX),ye=ce||ve.test(be.overflowY),Ee=De&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,he=ye&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,we=be.direction==="rtl",Ce=he&&(we?Y.offsetX<=j.offsetWidth-j.clientWidth:Y.offsetX>j.clientWidth),Ie=Ee&&Y.offsetY>j.clientHeight;if(Ce||Ie)return}const se=(W=o.current.floatingContext)==null?void 0:W.nodeId,ie=C&&uxe(C.nodesRef.current,se).some(ce=>{var be;return Htt(Y,(be=ce.context)==null?void 0:be.elements.floating)});if(Htt(Y,s.floating)||Htt(Y,s.domReference)||ie)return;const ge=C?uxe(C.nodesRef.current,se):[];if(ge.length>0){let ce=!0;if(ge.forEach(be=>{var ve;if((ve=be.context)!=null&&ve.open&&!be.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}a(!1,Y,"outside-press")}),B=UC(Y=>{var W;const Q=()=>{var V;G(Y),(V=fV(Y))==null||V.removeEventListener(p,Q)};(W=fV(Y))==null||W.addEventListener(p,Q)});ue.useEffect(()=>{if(!r||!u)return;o.current.__escapeKeyBubbles=N,o.current.__outsidePressBubbles=L;let Y=-1;function W(te){a(!1,te,"ancestor-scroll")}function Q(){window.clearTimeout(Y),F.current=!0}function V(){Y=window.setTimeout(()=>{F.current=!1},H5e()?5:0)}const j=KC(s.floating);h&&(j.addEventListener("keydown",P?$:U,P),j.addEventListener("compositionstart",Q),j.addEventListener("compositionend",V)),k&&j.addEventListener(p,M?B:G,M);let ee=[];return _&&(yd(s.domReference)&&(ee=wO(s.domReference)),yd(s.floating)&&(ee=ee.concat(wO(s.floating))),!yd(s.reference)&&s.reference&&s.reference.contextElement&&(ee=ee.concat(wO(s.reference.contextElement)))),ee=ee.filter(te=>{var ne;return te!==((ne=j.defaultView)==null?void 0:ne.visualViewport)}),ee.forEach(te=>{te.addEventListener("scroll",W,{passive:!0})}),()=>{h&&(j.removeEventListener("keydown",P?$:U,P),j.removeEventListener("compositionstart",Q),j.removeEventListener("compositionend",V)),k&&j.removeEventListener(p,M?B:G,M),ee.forEach(te=>{te.removeEventListener("scroll",W)}),window.clearTimeout(Y)}},[o,s,h,k,p,r,a,_,u,N,L,U,P,$,G,M,B]),ue.useEffect(()=>{o.current.insideReactTree=!1},[o,k,p]);const Z=ue.useMemo(()=>({onKeyDown:U,...m&&{[Wvi[b]]:Y=>{a(!1,Y.nativeEvent,"reference-press")},...b!=="click"&&{onClick(Y){a(!1,Y.nativeEvent,"reference-press")}}}}),[U,a,m,b]),z=ue.useMemo(()=>({onKeyDown:U,onMouseDown(){I.current=!0},onMouseUp(){I.current=!0},[Kvi[p]]:()=>{o.current.insideReactTree=!0}}),[U,p,o]);return ue.useMemo(()=>u?{reference:Z,floating:z}:{},[u,Z,z])}function Xvi(e){const{open:t=!1,onOpenChange:r,elements:a}=e,s=dpt(),o=ue.useRef({}),[u]=ue.useState(()=>Uvi()),h=fpt()!=null,[f,p]=ue.useState(a.reference),m=UC((w,S,C)=>{o.current.openEvent=w?S:void 0,u.emit("openchange",{open:w,event:S,reason:C,nested:h}),r==null||r(w,S,C)}),b=ue.useMemo(()=>({setPositionReference:p}),[]),_=ue.useMemo(()=>({reference:f||a.reference||null,floating:a.floating||null,domReference:a.reference}),[f,a.reference,a.floating]);return ue.useMemo(()=>({dataRef:o,open:t,onOpenChange:m,elements:_,events:u,floatingId:s,refs:b}),[t,m,_,u,s,b])}function p5a(e){e===void 0&&(e={});const{nodeId:t}=e,r=Xvi({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||r,s=a.elements,[o,u]=ue.useState(null),[h,f]=ue.useState(null),m=(s==null?void 0:s.domReference)||o,b=ue.useRef(null),_=ppt();X3(()=>{m&&(b.current=m)},[m]);const w=Zdt({...e,elements:{...s,...h&&{reference:h}}}),S=ue.useCallback(N=>{const L=yd(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;f(L),w.refs.setReference(L)},[w.refs]),C=ue.useCallback(N=>{(yd(N)||N===null)&&(b.current=N,u(N)),(yd(w.refs.reference.current)||w.refs.reference.current===null||N!==null&&!yd(N))&&w.refs.setReference(N)},[w.refs]),A=ue.useMemo(()=>({...w.refs,setReference:C,setPositionReference:S,domReference:b}),[w.refs,C,S]),k=ue.useMemo(()=>({...w.elements,domReference:m}),[w.elements,m]),I=ue.useMemo(()=>({...w,...a,refs:A,elements:k,nodeId:t}),[w,A,k,t,a]);return X3(()=>{a.dataRef.current.floatingContext=I;const N=_==null?void 0:_.nodesRef.current.find(L=>L.id===t);N&&(N.context=I)}),ue.useMemo(()=>({...w,context:I,refs:A,elements:k}),[w,A,k,I])}function Wtt(){return vvi()&&hUn()}function g5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,events:s,dataRef:o,elements:u}=e,{enabled:h=!0,visibleOnly:f=!0}=t,p=ue.useRef(!1),m=ue.useRef(-1),b=ue.useRef(!0);ue.useEffect(()=>{if(!h)return;const w=X2(u.domReference);function S(){!r&&Fw(u.domReference)&&u.domReference===Elt(KC(u.domReference))&&(p.current=!0)}function C(){b.current=!0}function A(){b.current=!1}return w.addEventListener("blur",S),Wtt()&&(w.addEventListener("keydown",C,!0),w.addEventListener("pointerdown",A,!0)),()=>{w.removeEventListener("blur",S),Wtt()&&(w.removeEventListener("keydown",C,!0),w.removeEventListener("pointerdown",A,!0))}},[u.domReference,r,h]),ue.useEffect(()=>{if(!h)return;function w(S){let{reason:C}=S;(C==="reference-press"||C==="escape-key")&&(p.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,h]),ue.useEffect(()=>()=>{zx(m)},[]);const _=ue.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(w){if(p.current)return;const S=fV(w.nativeEvent);if(f&&yd(S)){if(Wtt()&&!w.relatedTarget){if(!b.current&&!xvi(S))return}else if(!Svi(S))return}a(!0,w.nativeEvent,"focus")},onBlur(w){p.current=!1;const S=w.relatedTarget,C=w.nativeEvent,A=yd(S)&&S.hasAttribute(dce("focus-guard"))&&S.getAttribute("data-type")==="outside";m.current=window.setTimeout(()=>{var k;const I=Elt(u.domReference?u.domReference.ownerDocument:document);!S&&I===u.domReference||Bj((k=o.current.floatingContext)==null?void 0:k.refs.floating.current,I)||Bj(u.domReference,I)||A||a(!1,C,"focus")})}}),[o,u.domReference,a,f]);return ue.useMemo(()=>h?{reference:_}:{},[h,_])}function Ktt(e,t,r){const a=new Map,s=r==="item";let o=e;if(s&&e){const{[t2n]:u,[n2n]:h,...f}=e;o=f}return{...r==="floating"&&{tabIndex:-1,[Mvi]:""},...o,...t.map(u=>{const h=u?u[r]:null;return typeof h=="function"?e?h(e):null:h}).concat(e).reduce((u,h)=>(h&&Object.entries(h).forEach(f=>{let[p,m]=f;if(!(s&&[t2n,n2n].includes(p)))if(p.indexOf("on")===0){if(a.has(p)||a.set(p,[]),typeof m=="function"){var b;(b=a.get(p))==null||b.push(m),u[p]=function(){for(var _,w=arguments.length,S=new Array(w),C=0;C<w;C++)S[C]=arguments[C];return(_=a.get(p))==null?void 0:_.map(A=>A(...S)).find(A=>A!==void 0)}}}else u[p]=m}),u),{})}}function m5a(e){e===void 0&&(e=[]);const t=e.map(h=>h==null?void 0:h.reference),r=e.map(h=>h==null?void 0:h.floating),a=e.map(h=>h==null?void 0:h.item),s=ue.useCallback(h=>Ktt(h,e,"reference"),t),o=ue.useCallback(h=>Ktt(h,e,"floating"),r),u=ue.useCallback(h=>Ktt(h,e,"item"),a);return ue.useMemo(()=>({getReferenceProps:s,getFloatingProps:o,getItemProps:u}),[s,o,u])}const Qvi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function b5a(e,t){var r,a;t===void 0&&(t={});const{open:s,elements:o,floatingId:u}=e,{enabled:h=!0,role:f="dialog"}=t,p=dpt(),m=((r=o.domReference)==null?void 0:r.id)||p,b=ue.useMemo(()=>{var I;return((I=Tvi(o.floating))==null?void 0:I.id)||u},[o.floating,u]),_=(a=Qvi.get(f))!=null?a:f,S=fpt()!=null,C=ue.useMemo(()=>_==="tooltip"||f==="label"?{["aria-"+(f==="label"?"labelledby":"describedby")]:s?b:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":_==="alertdialog"?"dialog":_,"aria-controls":s?b:void 0,..._==="listbox"&&{role:"combobox"},..._==="menu"&&{id:m},..._==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[_,b,S,s,m,f]),A=ue.useMemo(()=>{const I={id:b,..._&&{role:_}};return _==="tooltip"||f==="label"?I:{...I,..._==="menu"&&{"aria-labelledby":m}}},[_,b,m,f]),k=ue.useCallback(I=>{let{active:N,selected:L}=I;const P={role:"option",...N&&{id:b+"-fui-option"}};switch(f){case"select":case"combobox":return{...P,"aria-selected":L}}return{}},[b,f]);return ue.useMemo(()=>h?{reference:C,floating:A,item:k}:{},[h,C,A,k])}var gpt={};(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="0.3.0";function r(){for(var p=0,m=new Array(256),b=0;b!=256;++b)p=b,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,m[b]=p;return typeof Int32Array<"u"?new Int32Array(m):m}var a=r(),s=typeof Buffer<"u";function o(p){if(p.length>32768&&s)return h(new Buffer(p));for(var m=-1,b=p.length-1,_=0;_<b;)m=a[(m^p.charCodeAt(_++))&255]^m>>>8,m=a[(m^p.charCodeAt(_++))&255]^m>>>8;return _===b&&(m=m>>>8^a[(m^p.charCodeAt(_))&255]),m^-1}function u(p){if(p.length>1e4)return h(p);for(var m=-1,b=0,_=p.length-3;b<_;)m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255];for(;b<_+3;)m=m>>>8^a[(m^p[b++])&255];return m^-1}function h(p){for(var m=-1,b=0,_=p.length-7;b<_;)m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255];for(;b<_+7;)m=m>>>8^a[(m^p[b++])&255];return m^-1}function f(p){for(var m=-1,b=0,_=p.length,w,S;b<_;)w=p.charCodeAt(b++),w<128?m=m>>>8^a[(m^w)&255]:w<2048?(m=m>>>8^a[(m^(192|w>>6&31))&255],m=m>>>8^a[(m^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,S=p.charCodeAt(b++)&1023,m=m>>>8^a[(m^(240|w>>8&7))&255],m=m>>>8^a[(m^(128|w>>2&63))&255],m=m>>>8^a[(m^(128|S>>6&15|w&3))&255],m=m>>>8^a[(m^(128|S&63))&255]):(m=m>>>8^a[(m^(224|w>>12&15))&255],m=m>>>8^a[(m^(128|w>>6&63))&255],m=m>>>8^a[(m^(128|w&63))&255]);return m^-1}t.table=a,t.bstr=o,t.buf=u,t.str=f})})(gpt);var Zvi=gpt,Jvi=n2i,kC=new Uint8Array(4),e2i=new Int32Array(kC.buffer),t2i=new Uint32Array(kC.buffer);function n2i(e){if(e[0]!==137)throw new Error("Invalid .png file header");if(e[1]!==80)throw new Error("Invalid .png file header");if(e[2]!==78)throw new Error("Invalid .png file header");if(e[3]!==71)throw new Error("Invalid .png file header");if(e[4]!==13)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[5]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[6]!==26)throw new Error("Invalid .png file header");if(e[7]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var t=!1,r=[],a=8;a<e.length;){kC[3]=e[a++],kC[2]=e[a++],kC[1]=e[a++],kC[0]=e[a++];var s=t2i[0]+4,o=new Uint8Array(s);o[0]=e[a++],o[1]=e[a++],o[2]=e[a++],o[3]=e[a++];var u=String.fromCharCode(o[0])+String.fromCharCode(o[1])+String.fromCharCode(o[2])+String.fromCharCode(o[3]);if(!r.length&&u!=="IHDR")throw new Error("IHDR header missing");if(u==="IEND"){t=!0,r.push({name:u,data:new Uint8Array(0)});break}for(var h=4;h<s;h++)o[h]=e[a++];kC[3]=e[a++],kC[2]=e[a++],kC[1]=e[a++],kC[0]=e[a++];var f=e2i[0],p=Zvi.buf(o);if(p!==f)throw new Error("CRC values for "+u+" header do not match, PNG file is likely corrupted");var m=new Uint8Array(o.buffer.slice(4));r.push({name:u,data:m})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return r}const y5a=O1(Jvi);var gUn={},r2i=i2i;function i2i(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var r=e.length+t.length+1,a=new Uint8Array(r),s=0,o,u=0;u<e.length;u++){if(!(o=e.charCodeAt(u)))throw new Error("0x00 character is not permitted in tEXt keywords");a[s++]=o}a[s++]=0;for(var h=0;h<t.length;h++){if(!(o=t.charCodeAt(h)))throw new Error("0x00 character is not permitted in tEXt content");a[s++]=o}return{name:"tEXt",data:a}}var a2i=s2i;function s2i(e){e.data&&e.name&&(e=e.data);for(var t=!0,r="",a="",s=0;s<e.length;s++){var o=e[s];if(t)o?a+=String.fromCharCode(o):t=!1;else if(o)r+=String.fromCharCode(o);else throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content")}return{keyword:a,text:r}}gUn.encode=r2i;gUn.decode=a2i;var o2i=function(e,t,r){var a=[],s=e.length;if(s===0)return a;var o=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >o;)a[s-o]=e[s];return a},l2i=o2i,c2i=gpt,u2i=f2i,RC=new Uint8Array(4),h2i=new Int32Array(RC.buffer),d2i=new Uint32Array(RC.buffer);function f2i(e){var t=8,r=t,a;for(a=0;a<e.length;a++)t+=e[a].data.length,t+=12;var s=new Uint8Array(t);for(s[0]=137,s[1]=80,s[2]=78,s[3]=71,s[4]=13,s[5]=10,s[6]=26,s[7]=10,a=0;a<e.length;a++){var o=e[a],u=o.name,h=o.data,f=h.length,p=[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3)];d2i[0]=f,s[r++]=RC[3],s[r++]=RC[2],s[r++]=RC[1],s[r++]=RC[0],s[r++]=p[0],s[r++]=p[1],s[r++]=p[2],s[r++]=p[3];for(var m=0;m<f;)s[r++]=h[m++];var b=p.concat(l2i(h)),_=c2i.buf(b);h2i[0]=_,s[r++]=RC[3],s[r++]=RC[2],s[r++]=RC[1],s[r++]=RC[0]}return s}const v5a=O1(u2i);/*! pako 2.0.3 https://github.com/nodeca/pako @license (MIT AND Zlib) */const p2i=4,u2n=0,h2n=1,g2i=2;function UW(e){let t=e.length;for(;--t>=0;)e[t]=0}const m2i=0,mUn=1,b2i=2,y2i=3,v2i=258,mpt=29,fce=256,koe=fce+1+mpt,ZV=30,bpt=19,bUn=2*koe+1,rF=15,Xtt=16,_2i=7,ypt=256,yUn=16,vUn=17,_Un=18,Slt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),hxe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),w2i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),wUn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E2i=512,d7=new Array((koe+2)*2);UW(d7);const bse=new Array(ZV*2);UW(bse);const Roe=new Array(E2i);UW(Roe);const Ioe=new Array(v2i-y2i+1);UW(Ioe);const vpt=new Array(mpt);UW(vpt);const E3e=new Array(ZV);UW(E3e);function Qtt(e,t,r,a,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=s,this.has_stree=e&&e.length}let EUn,xUn,SUn;function Ztt(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const TUn=e=>e<256?Roe[e]:Roe[256+(e>>>7)],Noe=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},j2=(e,t,r)=>{e.bi_valid>Xtt-r?(e.bi_buf|=t<<e.bi_valid&65535,Noe(e,e.bi_buf),e.bi_buf=t>>Xtt-e.bi_valid,e.bi_valid+=r-Xtt):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},zC=(e,t,r)=>{j2(e,r[t*2],r[t*2+1])},CUn=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},x2i=e=>{e.bi_valid===16?(Noe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},S2i=(e,t)=>{const r=t.dyn_tree,a=t.max_code,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length;let p,m,b,_,w,S,C=0;for(_=0;_<=rF;_++)e.bl_count[_]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<bUn;p++)m=e.heap[p],_=r[r[m*2+1]*2+1]+1,_>f&&(_=f,C++),r[m*2+1]=_,!(m>a)&&(e.bl_count[_]++,w=0,m>=h&&(w=u[m-h]),S=r[m*2],e.opt_len+=S*(_+w),o&&(e.static_len+=S*(s[m*2+1]+w)));if(C!==0){do{for(_=f-1;e.bl_count[_]===0;)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[f]--,C-=2}while(C>0);for(_=f;_!==0;_--)for(m=e.bl_count[_];m!==0;)b=e.heap[--p],!(b>a)&&(r[b*2+1]!==_&&(e.opt_len+=(_-r[b*2+1])*r[b*2],r[b*2+1]=_),m--)}},AUn=(e,t,r)=>{const a=new Array(rF+1);let s=0,o,u;for(o=1;o<=rF;o++)a[o]=s=s+r[o-1]<<1;for(u=0;u<=t;u++){let h=e[u*2+1];h!==0&&(e[u*2]=CUn(a[h]++,h))}},T2i=()=>{let e,t,r,a,s;const o=new Array(rF+1);for(r=0,a=0;a<mpt-1;a++)for(vpt[a]=r,e=0;e<1<<Slt[a];e++)Ioe[r++]=a;for(Ioe[r-1]=a,s=0,a=0;a<16;a++)for(E3e[a]=s,e=0;e<1<<hxe[a];e++)Roe[s++]=a;for(s>>=7;a<ZV;a++)for(E3e[a]=s<<7,e=0;e<1<<hxe[a]-7;e++)Roe[256+s++]=a;for(t=0;t<=rF;t++)o[t]=0;for(e=0;e<=143;)d7[e*2+1]=8,e++,o[8]++;for(;e<=255;)d7[e*2+1]=9,e++,o[9]++;for(;e<=279;)d7[e*2+1]=7,e++,o[7]++;for(;e<=287;)d7[e*2+1]=8,e++,o[8]++;for(AUn(d7,koe+1,o),e=0;e<ZV;e++)bse[e*2+1]=5,bse[e*2]=CUn(e,5);EUn=new Qtt(d7,Slt,fce+1,koe,rF),xUn=new Qtt(bse,hxe,0,ZV,rF),SUn=new Qtt(new Array(0),w2i,0,bpt,_2i)},kUn=e=>{let t;for(t=0;t<koe;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ZV;t++)e.dyn_dtree[t*2]=0;for(t=0;t<bpt;t++)e.bl_tree[t*2]=0;e.dyn_ltree[ypt*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},RUn=e=>{e.bi_valid>8?Noe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},C2i=(e,t,r,a)=>{RUn(e),Noe(e,r),Noe(e,~r),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},d2n=(e,t,r,a)=>{const s=t*2,o=r*2;return e[s]<e[o]||e[s]===e[o]&&a[t]<=a[r]},Jtt=(e,t,r)=>{const a=e.heap[r];let s=r<<1;for(;s<=e.heap_len&&(s<e.heap_len&&d2n(t,e.heap[s+1],e.heap[s],e.depth)&&s++,!d2n(t,a,e.heap[s],e.depth));)e.heap[r]=e.heap[s],r=s,s<<=1;e.heap[r]=a},f2n=(e,t,r)=>{let a,s,o=0,u,h;if(e.last_lit!==0)do a=e.pending_buf[e.d_buf+o*2]<<8|e.pending_buf[e.d_buf+o*2+1],s=e.pending_buf[e.l_buf+o],o++,a===0?zC(e,s,t):(u=Ioe[s],zC(e,u+fce+1,t),h=Slt[u],h!==0&&(s-=vpt[u],j2(e,s,h)),a--,u=TUn(a),zC(e,u,r),h=hxe[u],h!==0&&(a-=E3e[u],j2(e,a,h)));while(o<e.last_lit);zC(e,ypt,t)},Tlt=(e,t)=>{const r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.elems;let u,h,f=-1,p;for(e.heap_len=0,e.heap_max=bUn,u=0;u<o;u++)r[u*2]!==0?(e.heap[++e.heap_len]=f=u,e.depth[u]=0):r[u*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=f<2?++f:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,s&&(e.static_len-=a[p*2+1]);for(t.max_code=f,u=e.heap_len>>1;u>=1;u--)Jtt(e,r,u);p=o;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Jtt(e,r,1),h=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=h,r[p*2]=r[u*2]+r[h*2],e.depth[p]=(e.depth[u]>=e.depth[h]?e.depth[u]:e.depth[h])+1,r[u*2+1]=r[h*2+1]=p,e.heap[1]=p++,Jtt(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],S2i(e,t),AUn(r,f,e.bl_count)},p2n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),t[(r+1)*2+1]=65535,a=0;a<=r;a++)o=u,u=t[(a+1)*2+1],!(++h<f&&o===u)&&(h<p?e.bl_tree[o*2]+=h:o!==0?(o!==s&&e.bl_tree[o*2]++,e.bl_tree[yUn*2]++):h<=10?e.bl_tree[vUn*2]++:e.bl_tree[_Un*2]++,h=0,s=o,u===0?(f=138,p=3):o===u?(f=6,p=3):(f=7,p=4))},g2n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),a=0;a<=r;a++)if(o=u,u=t[(a+1)*2+1],!(++h<f&&o===u)){if(h<p)do zC(e,o,e.bl_tree);while(--h!==0);else o!==0?(o!==s&&(zC(e,o,e.bl_tree),h--),zC(e,yUn,e.bl_tree),j2(e,h-3,2)):h<=10?(zC(e,vUn,e.bl_tree),j2(e,h-3,3)):(zC(e,_Un,e.bl_tree),j2(e,h-11,7));h=0,s=o,u===0?(f=138,p=3):o===u?(f=6,p=3):(f=7,p=4)}},A2i=e=>{let t;for(p2n(e,e.dyn_ltree,e.l_desc.max_code),p2n(e,e.dyn_dtree,e.d_desc.max_code),Tlt(e,e.bl_desc),t=bpt-1;t>=3&&e.bl_tree[wUn[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},k2i=(e,t,r,a)=>{let s;for(j2(e,t-257,5),j2(e,r-1,5),j2(e,a-4,4),s=0;s<a;s++)j2(e,e.bl_tree[wUn[s]*2+1],3);g2n(e,e.dyn_ltree,t-1),g2n(e,e.dyn_dtree,r-1)},R2i=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return u2n;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return h2n;for(r=32;r<fce;r++)if(e.dyn_ltree[r*2]!==0)return h2n;return u2n};let m2n=!1;const I2i=e=>{m2n||(T2i(),m2n=!0),e.l_desc=new Ztt(e.dyn_ltree,EUn),e.d_desc=new Ztt(e.dyn_dtree,xUn),e.bl_desc=new Ztt(e.bl_tree,SUn),e.bi_buf=0,e.bi_valid=0,kUn(e)},IUn=(e,t,r,a)=>{j2(e,(m2i<<1)+(a?1:0),3),C2i(e,t,r)},N2i=e=>{j2(e,mUn<<1,3),zC(e,ypt,d7),x2i(e)},O2i=(e,t,r,a)=>{let s,o,u=0;e.level>0?(e.strm.data_type===g2i&&(e.strm.data_type=R2i(e)),Tlt(e,e.l_desc),Tlt(e,e.d_desc),u=A2i(e),s=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=s&&(s=o)):s=o=r+5,r+4<=s&&t!==-1?IUn(e,t,r,a):e.strategy===p2i||o===s?(j2(e,(mUn<<1)+(a?1:0),3),f2n(e,d7,bse)):(j2(e,(b2i<<1)+(a?1:0),3),k2i(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),f2n(e,e.dyn_ltree,e.dyn_dtree)),kUn(e),a&&RUn(e)},L2i=(e,t,r)=>(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ioe[r]+fce+1)*2]++,e.dyn_dtree[TUn(t)*2]++),e.last_lit===e.lit_bufsize-1);var D2i=I2i,M2i=IUn,P2i=O2i,B2i=L2i,F2i=N2i,$2i={_tr_init:D2i,_tr_stored_block:M2i,_tr_flush_block:P2i,_tr_tally:B2i,_tr_align:F2i};const U2i=(e,t,r,a)=>{let s=e&65535|0,o=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do s=s+t[a++]|0,o=o+s|0;while(--u);s%=65521,o%=65521}return s|o<<16|0};var Ooe=U2i;const z2i=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},G2i=new Uint32Array(z2i()),q2i=(e,t,r,a)=>{const s=G2i,o=a+r;e^=-1;for(let u=a;u<o;u++)e=e>>>8^s[(e^t[u])&255];return e^-1};var Eg=q2i,qF={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},DAe={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:H2i,_tr_stored_block:V2i,_tr_flush_block:Y2i,_tr_tally:kO,_tr_align:j2i}=$2i,{Z_NO_FLUSH:D$,Z_PARTIAL_FLUSH:W2i,Z_FULL_FLUSH:K2i,Z_FINISH:RO,Z_BLOCK:b2n,Z_OK:GC,Z_STREAM_END:y2n,Z_STREAM_ERROR:hS,Z_DATA_ERROR:X2i,Z_BUF_ERROR:ent,Z_DEFAULT_COMPRESSION:Q2i,Z_FILTERED:Z2i,Z_HUFFMAN_ONLY:lwe,Z_RLE:J2i,Z_FIXED:e_i,Z_DEFAULT_STRATEGY:t_i,Z_UNKNOWN:n_i,Z_DEFLATED:MAe}=DAe,r_i=9,i_i=15,a_i=8,s_i=29,o_i=256,Clt=o_i+1+s_i,l_i=30,c_i=19,u_i=2*Clt+1,h_i=15,kc=3,fO=258,Q3=fO+kc+1,d_i=32,PAe=42,Alt=69,dxe=73,fxe=91,pxe=103,iF=113,zie=666,Ap=1,pce=2,HF=3,zW=4,f_i=3,pO=(e,t)=>(e.msg=qF[t],t),v2n=e=>(e<<1)-(e>4?9:0),tO=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let p_i=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,IO=p_i;const YN=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},xm=(e,t)=>{Y2i(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,YN(e.strm)},lu=(e,t)=>{e.pending_buf[e.pending++]=t},Yre=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},g_i=(e,t,r,a)=>{let s=e.avail_in;return s>a&&(s=a),s===0?0:(e.avail_in-=s,t.set(e.input.subarray(e.next_in,e.next_in+s),r),e.state.wrap===1?e.adler=Ooe(e.adler,t,s,r):e.state.wrap===2&&(e.adler=Eg(e.adler,t,s,r)),e.next_in+=s,e.total_in+=s,s)},NUn=(e,t)=>{let r=e.max_chain_length,a=e.strstart,s,o,u=e.prev_length,h=e.nice_match;const f=e.strstart>e.w_size-Q3?e.strstart-(e.w_size-Q3):0,p=e.window,m=e.w_mask,b=e.prev,_=e.strstart+fO;let w=p[a+u-1],S=p[a+u];e.prev_length>=e.good_match&&(r>>=2),h>e.lookahead&&(h=e.lookahead);do if(s=t,!(p[s+u]!==S||p[s+u-1]!==w||p[s]!==p[a]||p[++s]!==p[a+1])){a+=2,s++;do;while(p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&a<_);if(o=fO-(_-a),a=_-fO,o>u){if(e.match_start=t,u=o,o>=h)break;w=p[a+u-1],S=p[a+u]}}while((t=b[t&m])>f&&--r!==0);return u<=e.lookahead?u:e.lookahead},VF=e=>{const t=e.w_size;let r,a,s,o,u;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Q3)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,a=e.hash_size,r=a;do s=e.head[--r],e.head[r]=s>=t?s-t:0;while(--a);a=t,r=a;do s=e.prev[--r],e.prev[r]=s>=t?s-t:0;while(--a);o+=t}if(e.strm.avail_in===0)break;if(a=g_i(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=a,e.lookahead+e.insert>=kc)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=IO(e,e.ins_h,e.window[u+1]);e.insert&&(e.ins_h=IO(e,e.ins_h,e.window[u+kc-1]),e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<kc)););}while(e.lookahead<Q3&&e.strm.avail_in!==0)},m_i=(e,t)=>{let r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(VF(e),e.lookahead===0&&t===D$)return Ap;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const a=e.block_start+r;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,xm(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Q3&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):(e.strstart>e.block_start&&(xm(e,!1),e.strm.avail_out===0),Ap)},tnt=(e,t)=>{let r,a;for(;;){if(e.lookahead<Q3){if(VF(e),e.lookahead<Q3&&t===D$)return Ap;if(e.lookahead===0)break}if(r=0,e.lookahead>=kc&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Q3&&(e.match_length=NUn(e,r)),e.match_length>=kc)if(a=kO(e,e.strstart-e.match_start,e.match_length-kc),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kc){e.match_length--;do e.strstart++,e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=IO(e,e.ins_h,e.window[e.strstart+1]);else a=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=e.strstart<kc-1?e.strstart:kc-1,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce},zH=(e,t)=>{let r,a,s;for(;;){if(e.lookahead<Q3){if(VF(e),e.lookahead<Q3&&t===D$)return Ap;if(e.lookahead===0)break}if(r=0,e.lookahead>=kc&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=kc-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Q3&&(e.match_length=NUn(e,r),e.match_length<=5&&(e.strategy===Z2i||e.match_length===kc&&e.strstart-e.match_start>4096)&&(e.match_length=kc-1)),e.prev_length>=kc&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-kc,a=kO(e,e.strstart-1-e.prev_match,e.prev_length-kc),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=s&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=kc-1,e.strstart++,a&&(xm(e,!1),e.strm.avail_out===0))return Ap}else if(e.match_available){if(a=kO(e,0,e.window[e.strstart-1]),a&&xm(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ap}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=kO(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<kc-1?e.strstart:kc-1,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce},b_i=(e,t)=>{let r,a,s,o;const u=e.window;for(;;){if(e.lookahead<=fO){if(VF(e),e.lookahead<=fO&&t===D$)return Ap;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kc&&e.strstart>0&&(s=e.strstart-1,a=u[s],a===u[++s]&&a===u[++s]&&a===u[++s])){o=e.strstart+fO;do;while(a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&s<o);e.match_length=fO-(o-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kc?(r=kO(e,1,e.match_length-kc),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce},y_i=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(VF(e),e.lookahead===0)){if(t===D$)return Ap;break}if(e.match_length=0,r=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce};function gC(e,t,r,a,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=s}const Gie=[new gC(0,0,0,0,m_i),new gC(4,4,8,4,tnt),new gC(4,5,16,8,tnt),new gC(4,6,32,32,tnt),new gC(4,4,16,16,zH),new gC(8,16,32,32,zH),new gC(8,16,128,128,zH),new gC(8,32,128,256,zH),new gC(32,128,258,1024,zH),new gC(32,258,258,4096,zH)],v_i=e=>{e.window_size=2*e.w_size,tO(e.head),e.max_lazy_match=Gie[e.level].max_lazy,e.good_match=Gie[e.level].good_length,e.nice_match=Gie[e.level].nice_length,e.max_chain_length=Gie[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kc-1,e.match_available=0,e.ins_h=0};function __i(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=MAe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(u_i*2),this.dyn_dtree=new Uint16Array((2*l_i+1)*2),this.bl_tree=new Uint16Array((2*c_i+1)*2),tO(this.dyn_ltree),tO(this.dyn_dtree),tO(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(h_i+1),this.heap=new Uint16Array(2*Clt+1),tO(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Clt+1),tO(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const OUn=e=>{if(!e||!e.state)return pO(e,hS);e.total_in=e.total_out=0,e.data_type=n_i;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?PAe:iF,e.adler=t.wrap===2?0:1,t.last_flush=D$,H2i(t),GC},LUn=e=>{const t=OUn(e);return t===GC&&v_i(e.state),t},w_i=(e,t)=>!e||!e.state||e.state.wrap!==2?hS:(e.state.gzhead=t,GC),DUn=(e,t,r,a,s,o)=>{if(!e)return hS;let u=1;if(t===Q2i&&(t=6),a<0?(u=0,a=-a):a>15&&(u=2,a-=16),s<1||s>r_i||r!==MAe||a<8||a>15||t<0||t>9||o<0||o>e_i)return pO(e,hS);a===8&&(a=9);const h=new __i;return e.state=h,h.strm=e,h.wrap=u,h.gzhead=null,h.w_bits=a,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=s+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+kc-1)/kc),h.window=new Uint8Array(h.w_size*2),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<s+6,h.pending_buf_size=h.lit_bufsize*4,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=t,h.strategy=o,h.method=r,LUn(e)},E_i=(e,t)=>DUn(e,t,MAe,i_i,a_i,t_i),x_i=(e,t)=>{let r,a;if(!e||!e.state||t>b2n||t<0)return e?pO(e,hS):hS;const s=e.state;if(!e.output||!e.input&&e.avail_in!==0||s.status===zie&&t!==RO)return pO(e,e.avail_out===0?ent:hS);s.strm=e;const o=s.last_flush;if(s.last_flush=t,s.status===PAe)if(s.wrap===2)e.adler=0,lu(s,31),lu(s,139),lu(s,8),s.gzhead?(lu(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),lu(s,s.gzhead.time&255),lu(s,s.gzhead.time>>8&255),lu(s,s.gzhead.time>>16&255),lu(s,s.gzhead.time>>24&255),lu(s,s.level===9?2:s.strategy>=lwe||s.level<2?4:0),lu(s,s.gzhead.os&255),s.gzhead.extra&&s.gzhead.extra.length&&(lu(s,s.gzhead.extra.length&255),lu(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=Eg(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=Alt):(lu(s,0),lu(s,0),lu(s,0),lu(s,0),lu(s,0),lu(s,s.level===9?2:s.strategy>=lwe||s.level<2?4:0),lu(s,f_i),s.status=iF);else{let u=MAe+(s.w_bits-8<<4)<<8,h=-1;s.strategy>=lwe||s.level<2?h=0:s.level<6?h=1:s.level===6?h=2:h=3,u|=h<<6,s.strstart!==0&&(u|=d_i),u+=31-u%31,s.status=iF,Yre(s,u),s.strstart!==0&&(Yre(s,e.adler>>>16),Yre(s,e.adler&65535)),e.adler=1}if(s.status===Alt)if(s.gzhead.extra){for(r=s.pending;s.gzindex<(s.gzhead.extra.length&65535)&&!(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size));)lu(s,s.gzhead.extra[s.gzindex]&255),s.gzindex++;s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=dxe)}else s.status=dxe;if(s.status===dxe)if(s.gzhead.name){r=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size)){a=1;break}s.gzindex<s.gzhead.name.length?a=s.gzhead.name.charCodeAt(s.gzindex++)&255:a=0,lu(s,a)}while(a!==0);s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),a===0&&(s.gzindex=0,s.status=fxe)}else s.status=fxe;if(s.status===fxe)if(s.gzhead.comment){r=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size)){a=1;break}s.gzindex<s.gzhead.comment.length?a=s.gzhead.comment.charCodeAt(s.gzindex++)&255:a=0,lu(s,a)}while(a!==0);s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),a===0&&(s.status=pxe)}else s.status=pxe;if(s.status===pxe&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&YN(e),s.pending+2<=s.pending_buf_size&&(lu(s,e.adler&255),lu(s,e.adler>>8&255),e.adler=0,s.status=iF)):s.status=iF),s.pending!==0){if(YN(e),e.avail_out===0)return s.last_flush=-1,GC}else if(e.avail_in===0&&v2n(t)<=v2n(o)&&t!==RO)return pO(e,ent);if(s.status===zie&&e.avail_in!==0)return pO(e,ent);if(e.avail_in!==0||s.lookahead!==0||t!==D$&&s.status!==zie){let u=s.strategy===lwe?y_i(s,t):s.strategy===J2i?b_i(s,t):Gie[s.level].func(s,t);if((u===HF||u===zW)&&(s.status=zie),u===Ap||u===HF)return e.avail_out===0&&(s.last_flush=-1),GC;if(u===pce&&(t===W2i?j2i(s):t!==b2n&&(V2i(s,0,0,!1),t===K2i&&(tO(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),YN(e),e.avail_out===0))return s.last_flush=-1,GC}return t!==RO?GC:s.wrap<=0?y2n:(s.wrap===2?(lu(s,e.adler&255),lu(s,e.adler>>8&255),lu(s,e.adler>>16&255),lu(s,e.adler>>24&255),lu(s,e.total_in&255),lu(s,e.total_in>>8&255),lu(s,e.total_in>>16&255),lu(s,e.total_in>>24&255)):(Yre(s,e.adler>>>16),Yre(s,e.adler&65535)),YN(e),s.wrap>0&&(s.wrap=-s.wrap),s.pending!==0?GC:y2n)},S_i=e=>{if(!e||!e.state)return hS;const t=e.state.status;return t!==PAe&&t!==Alt&&t!==dxe&&t!==fxe&&t!==pxe&&t!==iF&&t!==zie?pO(e,hS):(e.state=null,t===iF?pO(e,X2i):GC)},T_i=(e,t)=>{let r=t.length;if(!e||!e.state)return hS;const a=e.state,s=a.wrap;if(s===2||s===1&&a.status!==PAe||a.lookahead)return hS;if(s===1&&(e.adler=Ooe(e.adler,t,r,0)),a.wrap=0,r>=a.w_size){s===0&&(tO(a.head),a.strstart=0,a.block_start=0,a.insert=0);let f=new Uint8Array(a.w_size);f.set(t.subarray(r-a.w_size,r),0),t=f,r=a.w_size}const o=e.avail_in,u=e.next_in,h=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,VF(a);a.lookahead>=kc;){let f=a.strstart,p=a.lookahead-(kc-1);do a.ins_h=IO(a,a.ins_h,a.window[f+kc-1]),a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++;while(--p);a.strstart=f,a.lookahead=kc-1,VF(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=kc-1,a.match_available=0,e.next_in=u,e.input=h,e.avail_in=o,a.wrap=s,GC};var C_i=E_i,A_i=DUn,k_i=LUn,R_i=OUn,I_i=w_i,N_i=x_i,O_i=S_i,L_i=T_i,D_i="pako deflate (from Nodeca project)",yse={deflateInit:C_i,deflateInit2:A_i,deflateReset:k_i,deflateResetKeep:R_i,deflateSetHeader:I_i,deflate:N_i,deflateEnd:O_i,deflateSetDictionary:L_i,deflateInfo:D_i};const M_i=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var P_i=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const a in r)M_i(r,a)&&(e[a]=r[a])}}return e},B_i=e=>{let t=0;for(let a=0,s=e.length;a<s;a++)t+=e[a].length;const r=new Uint8Array(t);for(let a=0,s=0,o=e.length;a<o;a++){let u=e[a];r.set(u,s),s+=u.length}return r},BAe={assign:P_i,flattenChunks:B_i};let MUn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{MUn=!1}const Loe=new Uint8Array(256);for(let e=0;e<256;e++)Loe[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Loe[254]=Loe[254]=1;var F_i=e=>{let t,r,a,s,o,u=e.length,h=0;for(s=0;s<u;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<u&&(a=e.charCodeAt(s+1),(a&64512)===56320&&(r=65536+(r-55296<<10)+(a-56320),s++)),h+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(h),o=0,s=0;o<h;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<u&&(a=e.charCodeAt(s+1),(a&64512)===56320&&(r=65536+(r-55296<<10)+(a-56320),s++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const $_i=(e,t)=>{if(t<65534&&e.subarray&&MUn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r};var U_i=(e,t)=>{let r,a;const s=t||e.length,o=new Array(s*2);for(a=0,r=0;r<s;){let u=e[r++];if(u<128){o[a++]=u;continue}let h=Loe[u];if(h>4){o[a++]=65533,r+=h-1;continue}for(u&=h===2?31:h===3?15:7;h>1&&r<s;)u=u<<6|e[r++]&63,h--;if(h>1){o[a++]=65533;continue}u<65536?o[a++]=u:(u-=65536,o[a++]=55296|u>>10&1023,o[a++]=56320|u&1023)}return $_i(o,a)},z_i=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Loe[e[r]]>t?r:t},Doe={string2buf:F_i,buf2string:U_i,utf8border:z_i};function G_i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var PUn=G_i;const BUn=Object.prototype.toString,{Z_NO_FLUSH:q_i,Z_SYNC_FLUSH:H_i,Z_FULL_FLUSH:V_i,Z_FINISH:Y_i,Z_OK:x3e,Z_STREAM_END:j_i,Z_DEFAULT_COMPRESSION:W_i,Z_DEFAULT_STRATEGY:K_i,Z_DEFLATED:X_i}=DAe;function FAe(e){this.options=BAe.assign({level:W_i,method:X_i,chunkSize:16384,windowBits:15,memLevel:8,strategy:K_i},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PUn,this.strm.avail_out=0;let r=yse.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==x3e)throw new Error(qF[r]);if(t.header&&yse.deflateSetHeader(this.strm,t.header),t.dictionary){let a;if(typeof t.dictionary=="string"?a=Doe.string2buf(t.dictionary):BUn.call(t.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(t.dictionary):a=t.dictionary,r=yse.deflateSetDictionary(this.strm,a),r!==x3e)throw new Error(qF[r]);this._dict_set=!0}}FAe.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize;let s,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Y_i:q_i,typeof e=="string"?r.input=Doe.string2buf(e):BUn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(o===H_i||o===V_i)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(s=yse.deflate(r,o),s===j_i)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),s=yse.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===x3e;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};FAe.prototype.onData=function(e){this.chunks.push(e)};FAe.prototype.onEnd=function(e){e===x3e&&(this.result=BAe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Q_i(e,t){const r=new FAe(t);if(r.push(e,!0),r.err)throw r.msg||qF[r.err];return r.result}var Z_i=Q_i,J_i={deflate:Z_i};const cwe=30,ewi=12;var twi=function(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M,F,U,$,G;const B=t.state;a=t.next_in,$=t.input,s=a+(t.avail_in-5),o=t.next_out,G=t.output,u=o-(r-t.avail_out),h=o+(t.avail_out-257),f=B.dmax,p=B.wsize,m=B.whave,b=B.wnext,_=B.window,w=B.hold,S=B.bits,C=B.lencode,A=B.distcode,k=(1<<B.lenbits)-1,I=(1<<B.distbits)-1;e:do{S<15&&(w+=$[a++]<<S,S+=8,w+=$[a++]<<S,S+=8),N=C[w&k];t:for(;;){if(L=N>>>24,w>>>=L,S-=L,L=N>>>16&255,L===0)G[o++]=N&65535;else if(L&16){P=N&65535,L&=15,L&&(S<L&&(w+=$[a++]<<S,S+=8),P+=w&(1<<L)-1,w>>>=L,S-=L),S<15&&(w+=$[a++]<<S,S+=8,w+=$[a++]<<S,S+=8),N=A[w&I];n:for(;;){if(L=N>>>24,w>>>=L,S-=L,L=N>>>16&255,L&16){if(M=N&65535,L&=15,S<L&&(w+=$[a++]<<S,S+=8,S<L&&(w+=$[a++]<<S,S+=8)),M+=w&(1<<L)-1,M>f){t.msg="invalid distance too far back",B.mode=cwe;break e}if(w>>>=L,S-=L,L=o-u,M>L){if(L=M-L,L>m&&B.sane){t.msg="invalid distance too far back",B.mode=cwe;break e}if(F=0,U=_,b===0){if(F+=p-L,L<P){P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}}else if(b<L){if(F+=p+b-L,L-=b,L<P){P-=L;do G[o++]=_[F++];while(--L);if(F=0,b<P){L=b,P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}}}else if(F+=b-L,L<P){P-=L;do G[o++]=_[F++];while(--L);F=o-M,U=G}for(;P>2;)G[o++]=U[F++],G[o++]=U[F++],G[o++]=U[F++],P-=3;P&&(G[o++]=U[F++],P>1&&(G[o++]=U[F++]))}else{F=o-M;do G[o++]=G[F++],G[o++]=G[F++],G[o++]=G[F++],P-=3;while(P>2);P&&(G[o++]=G[F++],P>1&&(G[o++]=G[F++]))}}else if(L&64){t.msg="invalid distance code",B.mode=cwe;break e}else{N=A[(N&65535)+(w&(1<<L)-1)];continue n}break}}else if(L&64)if(L&32){B.mode=ewi;break e}else{t.msg="invalid literal/length code",B.mode=cwe;break e}else{N=C[(N&65535)+(w&(1<<L)-1)];continue t}break}}while(a<s&&o<h);P=S>>3,a-=P,S-=P<<3,w&=(1<<S)-1,t.next_in=a,t.next_out=o,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=o<h?257+(h-o):257-(o-h),B.hold=w,B.bits=S};const GH=15,_2n=852,w2n=592,E2n=0,nnt=1,x2n=2,nwi=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),rwi=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),iwi=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),awi=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),swi=(e,t,r,a,s,o,u,h)=>{const f=h.bits;let p=0,m=0,b=0,_=0,w=0,S=0,C=0,A=0,k=0,I=0,N,L,P,M,F,U=null,$=0,G;const B=new Uint16Array(GH+1),Z=new Uint16Array(GH+1);let z=null,Y=0,W,Q,V;for(p=0;p<=GH;p++)B[p]=0;for(m=0;m<a;m++)B[t[r+m]]++;for(w=f,_=GH;_>=1&&B[_]===0;_--);if(w>_&&(w=_),_===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,h.bits=1,0;for(b=1;b<_&&B[b]===0;b++);for(w<b&&(w=b),A=1,p=1;p<=GH;p++)if(A<<=1,A-=B[p],A<0)return-1;if(A>0&&(e===E2n||_!==1))return-1;for(Z[1]=0,p=1;p<GH;p++)Z[p+1]=Z[p]+B[p];for(m=0;m<a;m++)t[r+m]!==0&&(u[Z[t[r+m]]++]=m);if(e===E2n?(U=z=u,G=19):e===nnt?(U=nwi,$-=257,z=rwi,Y-=257,G=256):(U=iwi,z=awi,G=-1),I=0,m=0,p=b,F=o,S=w,C=0,P=-1,k=1<<w,M=k-1,e===nnt&&k>_2n||e===x2n&&k>w2n)return 1;for(;;){W=p-C,u[m]<G?(Q=0,V=u[m]):u[m]>G?(Q=z[Y+u[m]],V=U[$+u[m]]):(Q=96,V=0),N=1<<p-C,L=1<<S,b=L;do L-=N,s[F+(I>>C)+L]=W<<24|Q<<16|V|0;while(L!==0);for(N=1<<p-1;I&N;)N>>=1;if(N!==0?(I&=N-1,I+=N):I=0,m++,--B[p]===0){if(p===_)break;p=t[r+u[m]]}if(p>w&&(I&M)!==P){for(C===0&&(C=w),F+=b,S=p-C,A=1<<S;S+C<_&&(A-=B[S+C],!(A<=0));)S++,A<<=1;if(k+=1<<S,e===nnt&&k>_2n||e===x2n&&k>w2n)return 1;P=I&M,s[P]=w<<24|S<<16|F-o|0}}return I!==0&&(s[F+I]=p-C<<24|64<<16|0),h.bits=w,0};var vse=swi;const owi=0,FUn=1,$Un=2,{Z_FINISH:S2n,Z_BLOCK:lwi,Z_TREES:uwe,Z_OK:YF,Z_STREAM_END:cwi,Z_NEED_DICT:uwi,Z_STREAM_ERROR:ES,Z_DATA_ERROR:UUn,Z_MEM_ERROR:zUn,Z_BUF_ERROR:hwi,Z_DEFLATED:T2n}=DAe,GUn=1,C2n=2,A2n=3,k2n=4,R2n=5,I2n=6,N2n=7,O2n=8,L2n=9,D2n=10,S3e=11,K6=12,rnt=13,M2n=14,int=15,P2n=16,B2n=17,F2n=18,$2n=19,hwe=20,dwe=21,U2n=22,z2n=23,G2n=24,q2n=25,H2n=26,ant=27,V2n=28,Y2n=29,qd=30,qUn=31,dwi=32,fwi=852,pwi=592,gwi=15,mwi=gwi,j2n=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function bwi(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const HUn=e=>{if(!e||!e.state)return ES;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=GUn,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(fwi),t.distcode=t.distdyn=new Int32Array(pwi),t.sane=1,t.back=-1,YF},VUn=e=>{if(!e||!e.state)return ES;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,HUn(e)},YUn=(e,t)=>{let r;if(!e||!e.state)return ES;const a=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?ES:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,VUn(e))},jUn=(e,t)=>{if(!e)return ES;const r=new bwi;e.state=r,r.window=null;const a=YUn(e,t);return a!==YF&&(e.state=null),a},ywi=e=>jUn(e,mwi);let W2n=!0,snt,ont;const vwi=e=>{if(W2n){snt=new Int32Array(512),ont=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(vse(FUn,e.lens,0,288,snt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vse($Un,e.lens,0,32,ont,0,e.work,{bits:5}),W2n=!1}e.lencode=snt,e.lenbits=9,e.distcode=ont,e.distbits=5},WUn=(e,t,r,a)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),a>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>a&&(s=a),o.window.set(t.subarray(r-a,r-a+s),o.wnext),a-=s,a?(o.window.set(t.subarray(r-a,r),0),o.wnext=a,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0},_wi=(e,t)=>{let r,a,s,o,u,h,f,p,m,b,_,w,S,C,A=0,k,I,N,L,P,M,F,U;const $=new Uint8Array(4);let G,B;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ES;r=e.state,r.mode===K6&&(r.mode=rnt),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,b=h,_=f,U=YF;e:for(;;)switch(r.mode){case GUn:if(r.wrap===0){r.mode=rnt;break}for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.wrap&2&&p===35615){r.check=0,$[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0),p=0,m=0,r.mode=C2n;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=qd;break}if((p&15)!==T2n){e.msg="unknown compression method",r.mode=qd;break}if(p>>>=4,m-=4,F=(p&15)+8,r.wbits===0)r.wbits=F;else if(F>r.wbits){e.msg="invalid window size",r.mode=qd;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=p&512?D2n:K6,p=0,m=0;break;case C2n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.flags=p,(r.flags&255)!==T2n){e.msg="unknown compression method",r.mode=qd;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=qd;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0,r.mode=A2n;case A2n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.head&&(r.head.time=p),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,$[2]=p>>>16&255,$[3]=p>>>24&255,r.check=Eg(r.check,$,4,0)),p=0,m=0,r.mode=k2n;case k2n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0,r.mode=R2n;case R2n:if(r.flags&1024){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0}else r.head&&(r.head.extra=null);r.mode=I2n;case I2n:if(r.flags&1024&&(w=r.length,w>h&&(w=h),w&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(a.subarray(o,o+w),F)),r.flags&512&&(r.check=Eg(r.check,a,w,o)),h-=w,o+=w,r.length-=w),r.length))break e;r.length=0,r.mode=N2n;case N2n:if(r.flags&2048){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&w<h);if(r.flags&512&&(r.check=Eg(r.check,a,w,o)),h-=w,o+=w,F)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=O2n;case O2n:if(r.flags&4096){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F));while(F&&w<h);if(r.flags&512&&(r.check=Eg(r.check,a,w,o)),h-=w,o+=w,F)break e}else r.head&&(r.head.comment=null);r.mode=L2n;case L2n:if(r.flags&512){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=qd;break}p=0,m=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=K6;break;case D2n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}e.adler=r.check=j2n(p),p=0,m=0,r.mode=S3e;case S3e:if(r.havedict===0)return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,uwi;e.adler=r.check=1,r.mode=K6;case K6:if(t===lwi||t===uwe)break e;case rnt:if(r.last){p>>>=m&7,m-=m&7,r.mode=ant;break}for(;m<3;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}switch(r.last=p&1,p>>>=1,m-=1,p&3){case 0:r.mode=M2n;break;case 1:if(vwi(r),r.mode=hwe,t===uwe){p>>>=2,m-=2;break e}break;case 2:r.mode=B2n;break;case 3:e.msg="invalid block type",r.mode=qd}p>>>=2,m-=2;break;case M2n:for(p>>>=m&7,m-=m&7;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=qd;break}if(r.length=p&65535,p=0,m=0,r.mode=int,t===uwe)break e;case int:r.mode=P2n;case P2n:if(w=r.length,w){if(w>h&&(w=h),w>f&&(w=f),w===0)break e;s.set(a.subarray(o,o+w),u),h-=w,o+=w,f-=w,u+=w,r.length-=w;break}r.mode=K6;break;case B2n:for(;m<14;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(r.nlen=(p&31)+257,p>>>=5,m-=5,r.ndist=(p&31)+1,p>>>=5,m-=5,r.ncode=(p&15)+4,p>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=qd;break}r.have=0,r.mode=F2n;case F2n:for(;r.have<r.ncode;){for(;m<3;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.lens[Z[r.have++]]=p&7,p>>>=3,m-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,G={bits:r.lenbits},U=vse(owi,r.lens,0,19,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid code lengths set",r.mode=qd;break}r.have=0,r.mode=$2n;case $2n:for(;r.have<r.nlen+r.ndist;){for(;A=r.lencode[p&(1<<r.lenbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(N<16)p>>>=k,m-=k,r.lens[r.have++]=N;else{if(N===16){for(B=k+2;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(p>>>=k,m-=k,r.have===0){e.msg="invalid bit length repeat",r.mode=qd;break}F=r.lens[r.have-1],w=3+(p&3),p>>>=2,m-=2}else if(N===17){for(B=k+3;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=k,m-=k,F=0,w=3+(p&7),p>>>=3,m-=3}else{for(B=k+7;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=k,m-=k,F=0,w=11+(p&127),p>>>=7,m-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=qd;break}for(;w--;)r.lens[r.have++]=F}}if(r.mode===qd)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=qd;break}if(r.lenbits=9,G={bits:r.lenbits},U=vse(FUn,r.lens,0,r.nlen,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid literal/lengths set",r.mode=qd;break}if(r.distbits=6,r.distcode=r.distdyn,G={bits:r.distbits},U=vse($Un,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,G),r.distbits=G.bits,U){e.msg="invalid distances set",r.mode=qd;break}if(r.mode=hwe,t===uwe)break e;case hwe:r.mode=dwe;case dwe:if(h>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,twi(e,_),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,r.mode===K6&&(r.back=-1);break}for(r.back=0;A=r.lencode[p&(1<<r.lenbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(I&&!(I&240)){for(L=k,P=I,M=N;A=r.lencode[M+((p&(1<<L+P)-1)>>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,r.length=N,I===0){r.mode=H2n;break}if(I&32){r.back=-1,r.mode=K6;break}if(I&64){e.msg="invalid literal/length code",r.mode=qd;break}r.extra=I&15,r.mode=U2n;case U2n:if(r.extra){for(B=r.extra;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=z2n;case z2n:for(;A=r.distcode[p&(1<<r.distbits)-1],k=A>>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(!(I&240)){for(L=k,P=I,M=N;A=r.distcode[M+((p&(1<<L+P)-1)>>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}p>>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,I&64){e.msg="invalid distance code",r.mode=qd;break}r.offset=N,r.extra=I&15,r.mode=G2n;case G2n:if(r.extra){for(B=r.extra;m<B;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=qd;break}r.mode=q2n;case q2n:if(f===0)break e;if(w=_-f,r.offset>w){if(w=r.offset-w,w>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=qd;break}w>r.wnext?(w-=r.wnext,S=r.wsize-w):S=r.wnext-w,w>r.length&&(w=r.length),C=r.window}else C=s,S=u-r.offset,w=r.length;w>f&&(w=f),f-=w,r.length-=w;do s[u++]=C[S++];while(--w);r.length===0&&(r.mode=dwe);break;case H2n:if(f===0)break e;s[u++]=r.length,f--,r.mode=dwe;break;case ant:if(r.wrap){for(;m<32;){if(h===0)break e;h--,p|=a[o++]<<m,m+=8}if(_-=f,e.total_out+=_,r.total+=_,_&&(e.adler=r.check=r.flags?Eg(r.check,s,_,u-_):Ooe(r.check,s,_,u-_)),_=f,(r.flags?p:j2n(p))!==r.check){e.msg="incorrect data check",r.mode=qd;break}p=0,m=0}r.mode=V2n;case V2n:if(r.wrap&&r.flags){for(;m<32;){if(h===0)break e;h--,p+=a[o++]<<m,m+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=qd;break}p=0,m=0}r.mode=Y2n;case Y2n:U=cwi;break e;case qd:U=UUn;break e;case qUn:return zUn;case dwi:default:return ES}return e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,(r.wsize||_!==e.avail_out&&r.mode<qd&&(r.mode<ant||t!==S2n))&&WUn(e,e.output,e.next_out,_-e.avail_out),b-=e.avail_in,_-=e.avail_out,e.total_in+=b,e.total_out+=_,r.total+=_,r.wrap&&_&&(e.adler=r.check=r.flags?Eg(r.check,s,_,e.next_out-_):Ooe(r.check,s,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(r.mode===K6?128:0)+(r.mode===hwe||r.mode===int?256:0),(b===0&&_===0||t===S2n)&&U===YF&&(U=hwi),U},wwi=e=>{if(!e||!e.state)return ES;let t=e.state;return t.window&&(t.window=null),e.state=null,YF},Ewi=(e,t)=>{if(!e||!e.state)return ES;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,YF):ES},xwi=(e,t)=>{const r=t.length;let a,s,o;return!e||!e.state||(a=e.state,a.wrap!==0&&a.mode!==S3e)?ES:a.mode===S3e&&(s=1,s=Ooe(s,t,r,0),s!==a.check)?UUn:(o=WUn(e,t,r,r),o?(a.mode=qUn,zUn):(a.havedict=1,YF))};var Swi=VUn,Twi=YUn,Cwi=HUn,Awi=ywi,kwi=jUn,Rwi=_wi,Iwi=wwi,Nwi=Ewi,Owi=xwi,Lwi="pako inflate (from Nodeca project)",f7={inflateReset:Swi,inflateReset2:Twi,inflateResetKeep:Cwi,inflateInit:Awi,inflateInit2:kwi,inflate:Rwi,inflateEnd:Iwi,inflateGetHeader:Nwi,inflateSetDictionary:Owi,inflateInfo:Lwi};function Dwi(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Mwi=Dwi;const KUn=Object.prototype.toString,{Z_NO_FLUSH:Pwi,Z_FINISH:Bwi,Z_OK:Moe,Z_STREAM_END:lnt,Z_NEED_DICT:cnt,Z_STREAM_ERROR:Fwi,Z_DATA_ERROR:K2n,Z_MEM_ERROR:$wi}=DAe;function $Ae(e){this.options=BAe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PUn,this.strm.avail_out=0;let r=f7.inflateInit2(this.strm,t.windowBits);if(r!==Moe)throw new Error(qF[r]);if(this.header=new Mwi,f7.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Doe.string2buf(t.dictionary):KUn.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=f7.inflateSetDictionary(this.strm,t.dictionary),r!==Moe)))throw new Error(qF[r])}$Ae.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize,s=this.options.dictionary;let o,u,h;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?Bwi:Pwi,KUn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),o=f7.inflate(r,u),o===cnt&&s&&(o=f7.inflateSetDictionary(r,s),o===Moe?o=f7.inflate(r,u):o===K2n&&(o=cnt));r.avail_in>0&&o===lnt&&r.state.wrap>0&&e[r.next_in]!==0;)f7.inflateReset(r),o=f7.inflate(r,u);switch(o){case Fwi:case K2n:case cnt:case $wi:return this.onEnd(o),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||o===lnt))if(this.options.to==="string"){let f=Doe.utf8border(r.output,r.next_out),p=r.next_out-f,m=Doe.buf2string(r.output,f);r.next_out=p,r.avail_out=a-p,p&&r.output.set(r.output.subarray(f,f+p),0),this.onData(m)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Moe&&h===0)){if(o===lnt)return o=f7.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};$Ae.prototype.onData=function(e){this.chunks.push(e)};$Ae.prototype.onEnd=function(e){e===Moe&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=BAe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Uwi(e,t){const r=new $Ae(t);if(r.push(e),r.err)throw r.msg||qF[r.err];return r.result}var zwi=Uwi,Gwi={inflate:zwi};const{deflate:qwi}=J_i,{inflate:Hwi}=Gwi;var _5a=qwi,w5a=Hwi;const Vwi="#ffffff",Ywi="#000000",jwi=["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],Wwi=["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],Kwi=["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],Xwi=["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],Qwi=["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],Zwi=["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],Jwi=["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],eEi=["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],tEi=["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],nEi=["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],rEi=["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],iEi=["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],aEi=["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],E5a={white:Vwi,black:Ywi,gray:jwi,red:Wwi,pink:Kwi,grape:Xwi,violet:Qwi,indigo:Zwi,blue:Jwi,cyan:eEi,teal:tEi,green:nEi,lime:rEi,yellow:iEi,orange:aEi};let x5a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var XUn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r=function(){this._listeners={}};r.prototype.addEventListener=function(p,m){this._listeners[p]=this._listeners[p]||[],this._listeners[p].indexOf(m)<0&&this._listeners[p].push(m)},r.prototype.removeEventListener=function(p,m){if(this._listeners[p]){var b=this._listeners[p].indexOf(m);b>=0&&this._listeners[p].splice(b,1)}},r.prototype.dispatchEvent=function(p){if(this._listeners[p.type]&&this._listeners[p.type].length)for(var m=this._listeners[p.type].slice(),b=0,_=m.length;b<_;++b)m[b].call(this,p)};var a=function(p){return typeof p.constructor=="function"&&p.constructor.name==="GeneratorFunction"},s=function(p){return{next:function(){var m=p();return m?{value:m}:{done:!0}}}},o=function(p){var m=!1;return{next:function(){return m?{done:!0}:(m=!0,{value:p})}}},u=function(p,m){var b=typeof p;if(b==="object"){if(typeof p.next=="function")return p;if(typeof p.then=="function")return o(p)}return b==="function"?a(p)?p():s(p):o(m.resolve(p))},h=function(p,m,b){this.target=p,this.type=m,this.data=b},f=function(p,m,b){if(r.call(this),typeof m!="number"||Math.floor(m)!==m||m<1)throw new Error("Invalid concurrency");this._concurrency=m,this._options=b||{},this._options.promise=this._options.promise||Promise,this._iterator=u(p,this._options.promise),this._done=!1,this._size=0,this._promise=null,this._callbacks=null};return f.prototype=new r,f.prototype.constructor=f,f.prototype.concurrency=function(p){return typeof p<"u"&&(this._concurrency=p,this.active()&&this._proceed()),this._concurrency},f.prototype.size=function(){return this._size},f.prototype.active=function(){return!!this._promise},f.prototype.promise=function(){return this._promise},f.prototype.start=function(){var p=this,m=this._options.promise;return this._promise=new m(function(b,_){p._callbacks={reject:_,resolve:b},p._proceed()}),this._promise},f.prototype._fireEvent=function(p,m){this.dispatchEvent(new h(this,p,m))},f.prototype._settle=function(p){p?this._callbacks.reject(p):this._callbacks.resolve(),this._promise=null,this._callbacks=null},f.prototype._onPooledPromiseFulfilled=function(p,m){this._size--,this.active()&&(this._fireEvent("fulfilled",{promise:p,result:m}),this._proceed())},f.prototype._onPooledPromiseRejected=function(p,m){this._size--,this.active()&&(this._fireEvent("rejected",{promise:p,error:m}),this._settle(m||new Error("Unknown error")))},f.prototype._trackPromise=function(p){var m=this;p.then(function(b){m._onPooledPromiseFulfilled(p,b)},function(b){m._onPooledPromiseRejected(p,b)}).catch(function(b){m._settle(new Error("Promise processing failed: "+b))})},f.prototype._proceed=function(){if(!this._done){for(var p={done:!1};this._size<this._concurrency&&!(p=this._iterator.next()).done;)this._size++,this._trackPromise(p.value);this._done=p===null||!!p.done}this._done&&this._size===0&&this._settle()},f.PromisePoolEvent=h,f.PromisePool=f,f})})(XUn);var sEi=XUn.exports;const S5a=O1(sEi);function klt(e,t,r){if(e&&e.length){const[a,s]=t,o=Math.PI/180*r,u=Math.cos(o),h=Math.sin(o);for(const f of e){const[p,m]=f;f[0]=(p-a)*u-(m-s)*h+a,f[1]=(p-a)*h+(m-s)*u+s}}}function oEi(e,t,r){const a=[];e.forEach(s=>a.push(...s)),klt(a,t,r)}function lEi(e,t){return e[0]===t[0]&&e[1]===t[1]}function cEi(e,t,r,a=1){const s=r,o=Math.max(t,.1),u=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,h=[0,0];if(s)for(const p of u)klt(p,h,s);const f=uEi(u,o,a);if(s){for(const p of u)klt(p,h,-s);oEi(f,h,-s)}return f}function uEi(e,t,r){const a=[];for(const p of e){const m=[...p];lEi(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&a.push(m)}const s=[];t=Math.max(t,.1);const o=[];for(const p of a)for(let m=0;m<p.length-1;m++){const b=p[m],_=p[m+1];if(b[1]!==_[1]){const w=Math.min(b[1],_[1]);o.push({ymin:w,ymax:Math.max(b[1],_[1]),x:w===b[1]?b[0]:_[0],islope:(_[0]-b[0])/(_[1]-b[1])})}}if(o.sort((p,m)=>p.ymin<m.ymin?-1:p.ymin>m.ymin?1:p.x<m.x?-1:p.x>m.x?1:p.ymax===m.ymax?0:(p.ymax-m.ymax)/Math.abs(p.ymax-m.ymax)),!o.length)return s;let u=[],h=o[0].ymin,f=0;for(;u.length||o.length;){if(o.length){let p=-1;for(let b=0;b<o.length&&!(o[b].ymin>h);b++)p=b;o.splice(0,p+1).forEach(b=>{u.push({s:h,edge:b})})}if(u=u.filter(p=>!(p.edge.ymax<=h)),u.sort((p,m)=>p.edge.x===m.edge.x?0:(p.edge.x-m.edge.x)/Math.abs(p.edge.x-m.edge.x)),(r!==1||f%t===0)&&u.length>1)for(let p=0;p<u.length;p=p+2){const m=p+1;if(m>=u.length)break;const b=u[p].edge,_=u[m].edge;s.push([[Math.round(b.x),h],[Math.round(_.x),h]])}h+=r,u.forEach(p=>{p.edge.x=p.edge.x+r*p.edge.islope}),f++}return s}function gce(e,t){var r;const a=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.max(s,.1);let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),cEi(e,s,a,o||1)}class _pt{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const a=gce(t,r);return{type:"fillSketch",ops:this.renderLines(a,r)}}renderLines(t,r){const a=[];for(const s of t)a.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return a}}function UAe(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class hEi extends _pt{fillPolygons(t,r){let a=r.hachureGap;a<0&&(a=r.strokeWidth*4),a=Math.max(a,.1);const s=Object.assign({},r,{hachureGap:a}),o=gce(t,s),u=Math.PI/180*r.hachureAngle,h=[],f=a*.5*Math.cos(u),p=a*.5*Math.sin(u);for(const[b,_]of o)UAe([b,_])&&h.push([[b[0]-f,b[1]+p],[..._]],[[b[0]+f,b[1]-p],[..._]]);return{type:"fillSketch",ops:this.renderLines(h,r)}}}class dEi extends _pt{fillPolygons(t,r){const a=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return a.ops=a.ops.concat(o.ops),a}}class fEi{constructor(t){this.helper=t}fillPolygons(t,r){r=Object.assign({},r,{hachureAngle:0});const a=gce(t,r);return this.dotsOnLines(a,r)}dotsOnLines(t,r){const a=[];let s=r.hachureGap;s<0&&(s=r.strokeWidth*4),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const u=s/4;for(const h of t){const f=UAe(h),p=f/s,m=Math.ceil(p)-1,b=f-m*s,_=(h[0][0]+h[1][0])/2-s/4,w=Math.min(h[0][1],h[1][1]);for(let S=0;S<m;S++){const C=w+b+S*s,A=_-u+Math.random()*2*u,k=C-u+Math.random()*2*u,I=this.helper.ellipse(A,k,o,o,r);a.push(...I.ops)}}return{type:"fillSketch",ops:a}}}class pEi{constructor(t){this.helper=t}fillPolygons(t,r){const a=gce(t,r);return{type:"fillSketch",ops:this.dashedLine(a,r)}}dashedLine(t,r){const a=r.dashOffset<0?r.hachureGap<0?r.strokeWidth*4:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?r.strokeWidth*4:r.hachureGap:r.dashGap,o=[];return t.forEach(u=>{const h=UAe(u),f=Math.floor(h/(a+s)),p=(h+s-f*(a+s))/2;let m=u[0],b=u[1];m[0]>b[0]&&(m=u[1],b=u[0]);const _=Math.atan((b[1]-m[1])/(b[0]-m[0]));for(let w=0;w<f;w++){const S=w*(a+s),C=S+a,A=[m[0]+S*Math.cos(_)+p*Math.cos(_),m[1]+S*Math.sin(_)+p*Math.sin(_)],k=[m[0]+C*Math.cos(_)+p*Math.cos(_),m[1]+C*Math.sin(_)+p*Math.sin(_)];o.push(...this.helper.doubleLineOps(A[0],A[1],k[0],k[1],r))}}),o}}class gEi{constructor(t){this.helper=t}fillPolygons(t,r){const a=r.hachureGap<0?r.strokeWidth*4:r.hachureGap,s=r.zigzagOffset<0?a:r.zigzagOffset;r=Object.assign({},r,{hachureGap:a+s});const o=gce(t,r);return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,a){const s=[];return t.forEach(o=>{const u=UAe(o),h=Math.round(u/(2*r));let f=o[0],p=o[1];f[0]>p[0]&&(f=o[1],p=o[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let b=0;b<h;b++){const _=b*2*r,w=(b+1)*2*r,S=Math.sqrt(2*Math.pow(r,2)),C=[f[0]+_*Math.cos(m),f[1]+_*Math.sin(m)],A=[f[0]+w*Math.cos(m),f[1]+w*Math.sin(m)],k=[C[0]+S*Math.cos(m+Math.PI/4),C[1]+S*Math.sin(m+Math.PI/4)];s.push(...this.helper.doubleLineOps(C[0],C[1],k[0],k[1],a),...this.helper.doubleLineOps(k[0],k[1],A[0],A[1],a))}}),s}}const R2={};function mEi(e,t){let r=e.fillStyle||"hachure";if(!R2[r])switch(r){case"zigzag":R2[r]||(R2[r]=new hEi(t));break;case"cross-hatch":R2[r]||(R2[r]=new dEi(t));break;case"dots":R2[r]||(R2[r]=new fEi(t));break;case"dashed":R2[r]||(R2[r]=new pEi(t));break;case"zigzag-line":R2[r]||(R2[r]=new gEi(t));break;case"hachure":default:r="hachure",R2[r]||(R2[r]=new _pt(t));break}return R2[r]}function bEi(){return Math.floor(Math.random()*2**31)}class yEi{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const vEi=0,Rlt=1,QUn=2,fwe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function _Ei(e){const t=new Array;for(;e!=="";)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:vEi,text:RegExp.$1},e=e.substr(RegExp.$1.length);else if(e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))t[t.length]={type:Rlt,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length);else return[];return t[t.length]={type:QUn,text:""},t}function unt(e,t){return e.type===t}function wpt(e){const t=[],r=_Ei(e);let a="BOD",s=0,o=r[s];for(;!unt(o,QUn);){let u=0;const h=[];if(a==="BOD")if(o.text==="M"||o.text==="m")s++,u=fwe[o.text],a=o.text;else return wpt("M0,0"+e);else unt(o,Rlt)?u=fwe[a]:(s++,u=fwe[o.text],a=o.text);if(s+u<r.length){for(let f=s;f<s+u;f++){const p=r[f];if(unt(p,Rlt))h[h.length]=+p.text;else throw new Error("Param not a number: "+a+","+p.text)}if(typeof fwe[a]=="number"){const f={key:a,data:h};t.push(f),s+=u,o=r[s],a==="M"&&(a="L"),a==="m"&&(a="l")}else throw new Error("Bad segment: "+a)}else throw new Error("Path data ended short")}return t}function ZUn(e){let t=0,r=0,a=0,s=0;const o=[];for(const{key:u,data:h}of e)switch(u){case"M":o.push({key:"M",data:[...h]}),[t,r]=h,[a,s]=h;break;case"m":t+=h[0],r+=h[1],o.push({key:"M",data:[t,r]}),a=t,s=r;break;case"L":o.push({key:"L",data:[...h]}),[t,r]=h;break;case"l":t+=h[0],r+=h[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...h]}),t=h[4],r=h[5];break;case"c":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"C",data:f}),t=f[4],r=f[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],r=h[3];break;case"q":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"Q",data:f}),t=f[2],r=f[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],r=h[6];break;case"a":t+=h[5],r+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,r]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),r=h[0];break;case"v":r+=h[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],r=h[3];break;case"s":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"S",data:f}),t=f[2],r=f[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],r=h[1];break;case"t":t+=h[0],r+=h[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=a,r=s;break}return o}function JUn(e){const t=[];let r="",a=0,s=0,o=0,u=0,h=0,f=0;for(const{key:p,data:m}of e){switch(p){case"M":t.push({key:"M",data:[...m]}),[a,s]=m,[o,u]=m;break;case"C":t.push({key:"C",data:[...m]}),a=m[4],s=m[5],h=m[2],f=m[3];break;case"L":t.push({key:"L",data:[...m]}),[a,s]=m;break;case"H":a=m[0],t.push({key:"L",data:[a,s]});break;case"V":s=m[0],t.push({key:"L",data:[a,s]});break;case"S":{let b=0,_=0;r==="C"||r==="S"?(b=a+(a-h),_=s+(s-f)):(b=a,_=s),t.push({key:"C",data:[b,_,...m]}),h=m[0],f=m[1],a=m[2],s=m[3];break}case"T":{const[b,_]=m;let w=0,S=0;r==="Q"||r==="T"?(w=a+(a-h),S=s+(s-f)):(w=a,S=s);const C=a+2*(w-a)/3,A=s+2*(S-s)/3,k=b+2*(w-b)/3,I=_+2*(S-_)/3;t.push({key:"C",data:[C,A,k,I,b,_]}),h=w,f=S,a=b,s=_;break}case"Q":{const[b,_,w,S]=m,C=a+2*(b-a)/3,A=s+2*(_-s)/3,k=w+2*(b-w)/3,I=S+2*(_-S)/3;t.push({key:"C",data:[C,A,k,I,w,S]}),h=b,f=_,a=w,s=S;break}case"A":{const b=Math.abs(m[0]),_=Math.abs(m[1]),w=m[2],S=m[3],C=m[4],A=m[5],k=m[6];b===0||_===0?(t.push({key:"C",data:[a,s,A,k,A,k]}),a=A,s=k):(a!==A||s!==k)&&(ezn(a,s,A,k,b,_,w,S,C).forEach(function(N){t.push({key:"C",data:N})}),a=A,s=k);break}case"Z":t.push({key:"Z",data:[]}),a=o,s=u;break}r=p}return t}function wEi(e){return Math.PI*e/180}function jre(e,t,r){const a=e*Math.cos(r)-t*Math.sin(r),s=e*Math.sin(r)+t*Math.cos(r);return[a,s]}function ezn(e,t,r,a,s,o,u,h,f,p){const m=wEi(u);let b=[],_=0,w=0,S=0,C=0;if(p)[_,w,S,C]=p;else{[e,t]=jre(e,t,-m),[r,a]=jre(r,a,-m);const Z=(e-r)/2,z=(t-a)/2;let Y=Z*Z/(s*s)+z*z/(o*o);Y>1&&(Y=Math.sqrt(Y),s=Y*s,o=Y*o);const W=h===f?-1:1,Q=s*s,V=o*o,j=Q*V-Q*z*z-V*Z*Z,ee=Q*z*z+V*Z*Z,te=W*Math.sqrt(Math.abs(j/ee));S=te*s*z/o+(e+r)/2,C=te*-o*Z/s+(t+a)/2,_=Math.asin(parseFloat(((t-C)/o).toFixed(9))),w=Math.asin(parseFloat(((a-C)/o).toFixed(9))),e<S&&(_=Math.PI-_),r<S&&(w=Math.PI-w),_<0&&(_=Math.PI*2+_),w<0&&(w=Math.PI*2+w),f&&_>w&&(_=_-Math.PI*2),!f&&w>_&&(w=w-Math.PI*2)}let A=w-_;if(Math.abs(A)>Math.PI*120/180){const Z=w,z=r,Y=a;f&&w>_?w=_+Math.PI*120/180*1:w=_+Math.PI*120/180*-1,r=S+s*Math.cos(w),a=C+o*Math.sin(w),b=ezn(r,a,z,Y,s,o,u,0,f,[w,Z,S,C])}A=w-_;const k=Math.cos(_),I=Math.sin(_),N=Math.cos(w),L=Math.sin(w),P=Math.tan(A/4),M=4/3*s*P,F=4/3*o*P,U=[e,t],$=[e+M*I,t-F*k],G=[r+M*L,a-F*N],B=[r,a];if($[0]=2*U[0]-$[0],$[1]=2*U[1]-$[1],p)return[$,G,B].concat(b);{b=[$,G,B].concat(b);const Z=[];for(let z=0;z<b.length;z+=3){const Y=jre(b[z][0],b[z][1],m),W=jre(b[z+1][0],b[z+1][1],m),Q=jre(b[z+2][0],b[z+2][1],m);Z.push([Y[0],Y[1],W[0],W[1],Q[0],Q[1]])}return Z}}const EEi={randOffset:AEi,randOffsetWithRange:kEi,ellipse:TEi,doubleLineOps:REi};function tzn(e,t,r,a,s){return{type:"path",ops:rR(e,t,r,a,s)}}function gxe(e,t,r){const a=(e||[]).length;if(a>2){const s=[];for(let o=0;o<a-1;o++)s.push(...rR(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...rR(e[a-1][0],e[a-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}else if(a===2)return tzn(e[0][0],e[0][1],e[1][0],e[1][1],r);return{type:"path",ops:[]}}function xEi(e,t){return gxe(e,!0,t)}function SEi(e,t,r,a,s){const o=[[e,t],[e+r,t],[e+r,t+a],[e,t+a]];return xEi(o,s)}function X2n(e,t){let r=e_n(e,1*(1+t.roughness*.2),t);if(!t.disableMultiStroke){const a=e_n(e,1.5*(1+t.roughness*.22),IEi(t));r=r.concat(a)}return{type:"path",ops:r}}function TEi(e,t,r,a,s){const o=nzn(r,a,s);return Ilt(e,t,s,o).opset}function nzn(e,t,r){const a=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*a)),o=Math.PI*2/s;let u=Math.abs(e/2),h=Math.abs(t/2);const f=1-r.curveFitting;return u+=vo(u*f,r),h+=vo(h*f,r),{increment:o,rx:u,ry:h}}function Ilt(e,t,r,a){const[s,o]=t_n(a.increment,e,t,a.rx,a.ry,1,a.increment*T3e(.1,T3e(.4,1,r),r),r);let u=C3e(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[h]=t_n(a.increment,e,t,a.rx,a.ry,1.5,0,r),f=C3e(h,null,r);u=u.concat(f)}return{estimatedPoints:o,opset:{type:"path",ops:u}}}function Q2n(e,t,r,a,s,o,u,h,f){const p=e,m=t;let b=Math.abs(r/2),_=Math.abs(a/2);b+=vo(b*.01,f),_+=vo(_*.01,f);let w=s,S=o;for(;w<0;)w+=Math.PI*2,S+=Math.PI*2;S-w>Math.PI*2&&(w=0,S=Math.PI*2);const C=Math.PI*2/f.curveStepCount,A=Math.min(C/2,(S-w)/2),k=n_n(A,p,m,b,_,w,S,1,f);if(!f.disableMultiStroke){const I=n_n(A,p,m,b,_,w,S,1.5,f);k.push(...I)}return u&&(h?k.push(...rR(p,m,p+b*Math.cos(w),m+_*Math.sin(w),f),...rR(p,m,p+b*Math.cos(S),m+_*Math.sin(S),f)):k.push({op:"lineTo",data:[p,m]},{op:"lineTo",data:[p+b*Math.cos(w),m+_*Math.sin(w)]})),{type:"path",ops:k}}function Z2n(e,t){const r=JUn(ZUn(wpt(e))),a=[];let s=[0,0],o=[0,0];for(const{key:u,data:h}of r)switch(u){case"M":{o=[h[0],h[1]],s=[h[0],h[1]];break}case"L":a.push(...rR(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{const[f,p,m,b,_,w]=h;a.push(...NEi(f,p,m,b,_,w,o,t)),o=[_,w];break}case"Z":a.push(...rR(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]];break}return{type:"path",ops:a}}function hnt(e,t){const r=[];for(const a of e)if(a.length){const s=t.maxRandomnessOffset||0,o=a.length;if(o>2){r.push({op:"move",data:[a[0][0]+vo(s,t),a[0][1]+vo(s,t)]});for(let u=1;u<o;u++)r.push({op:"lineTo",data:[a[u][0]+vo(s,t),a[u][1]+vo(s,t)]})}}return{type:"fillPath",ops:r}}function pV(e,t){return mEi(t,EEi).fillPolygons(e,t)}function CEi(e,t,r,a,s,o,u){const h=e,f=t;let p=Math.abs(r/2),m=Math.abs(a/2);p+=vo(p*.01,u),m+=vo(m*.01,u);let b=s,_=o;for(;b<0;)b+=Math.PI*2,_+=Math.PI*2;_-b>Math.PI*2&&(b=0,_=Math.PI*2);const w=(_-b)/u.curveStepCount,S=[];for(let C=b;C<=_;C=C+w)S.push([h+p*Math.cos(C),f+m*Math.sin(C)]);return S.push([h+p*Math.cos(_),f+m*Math.sin(_)]),S.push([h,f]),pV([S],u)}function AEi(e,t){return vo(e,t)}function kEi(e,t,r){return T3e(e,t,r)}function REi(e,t,r,a,s){return rR(e,t,r,a,s,!0)}function IEi(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function rzn(e){return e.randomizer||(e.randomizer=new yEi(e.seed||0)),e.randomizer.next()}function T3e(e,t,r,a=1){return r.roughness*a*(rzn(r)*(t-e)+e)}function vo(e,t,r=1){return T3e(-e,e,t,r)}function rR(e,t,r,a,s,o=!1){const u=o?s.disableMultiStrokeFill:s.disableMultiStroke,h=J2n(e,t,r,a,s,!0,!1);if(u)return h;const f=J2n(e,t,r,a,s,!0,!0);return h.concat(f)}function J2n(e,t,r,a,s,o,u){const h=Math.pow(e-r,2)+Math.pow(t-a,2),f=Math.sqrt(h);let p=1;f<200?p=1:f>500?p=.4:p=-.0016668*f+1.233334;let m=s.maxRandomnessOffset||0;m*m*100>h&&(m=f/10);const b=m/2,_=.2+rzn(s)*.2;let w=s.bowing*s.maxRandomnessOffset*(a-t)/200,S=s.bowing*s.maxRandomnessOffset*(e-r)/200;w=vo(w,s,p),S=vo(S,s,p);const C=[],A=()=>vo(b,s,p),k=()=>vo(m,s,p),I=s.preserveVertices;return u?C.push({op:"move",data:[e+(I?0:A()),t+(I?0:A())]}):C.push({op:"move",data:[e+(I?0:vo(m,s,p)),t+(I?0:vo(m,s,p))]}),u?C.push({op:"bcurveTo",data:[w+e+(r-e)*_+A(),S+t+(a-t)*_+A(),w+e+2*(r-e)*_+A(),S+t+2*(a-t)*_+A(),r+(I?0:A()),a+(I?0:A())]}):C.push({op:"bcurveTo",data:[w+e+(r-e)*_+k(),S+t+(a-t)*_+k(),w+e+2*(r-e)*_+k(),S+t+2*(a-t)*_+k(),r+(I?0:k()),a+(I?0:k())]}),C}function e_n(e,t,r){const a=[];a.push([e[0][0]+vo(t,r),e[0][1]+vo(t,r)]),a.push([e[0][0]+vo(t,r),e[0][1]+vo(t,r)]);for(let s=1;s<e.length;s++)a.push([e[s][0]+vo(t,r),e[s][1]+vo(t,r)]),s===e.length-1&&a.push([e[s][0]+vo(t,r),e[s][1]+vo(t,r)]);return C3e(a,null,r)}function C3e(e,t,r){const a=e.length,s=[];if(a>3){const o=[],u=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let h=1;h+2<a;h++){const f=e[h];o[0]=[f[0],f[1]],o[1]=[f[0]+(u*e[h+1][0]-u*e[h-1][0])/6,f[1]+(u*e[h+1][1]-u*e[h-1][1])/6],o[2]=[e[h+1][0]+(u*e[h][0]-u*e[h+2][0])/6,e[h+1][1]+(u*e[h][1]-u*e[h+2][1])/6],o[3]=[e[h+1][0],e[h+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else a===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):a===2&&s.push(...rR(e[0][0],e[0][1],e[1][0],e[1][1],r));return s}function t_n(e,t,r,a,s,o,u,h){const f=h.roughness===0,p=[],m=[];if(f){e=e/4,m.push([t+a*Math.cos(-e),r+s*Math.sin(-e)]);for(let b=0;b<=Math.PI*2;b=b+e){const _=[t+a*Math.cos(b),r+s*Math.sin(b)];p.push(_),m.push(_)}m.push([t+a*Math.cos(0),r+s*Math.sin(0)]),m.push([t+a*Math.cos(e),r+s*Math.sin(e)])}else{const b=vo(.5,h)-Math.PI/2;m.push([vo(o,h)+t+.9*a*Math.cos(b-e),vo(o,h)+r+.9*s*Math.sin(b-e)]);const _=Math.PI*2+b-.01;for(let w=b;w<_;w=w+e){const S=[vo(o,h)+t+a*Math.cos(w),vo(o,h)+r+s*Math.sin(w)];p.push(S),m.push(S)}m.push([vo(o,h)+t+a*Math.cos(b+Math.PI*2+u*.5),vo(o,h)+r+s*Math.sin(b+Math.PI*2+u*.5)]),m.push([vo(o,h)+t+.98*a*Math.cos(b+u),vo(o,h)+r+.98*s*Math.sin(b+u)]),m.push([vo(o,h)+t+.9*a*Math.cos(b+u*.5),vo(o,h)+r+.9*s*Math.sin(b+u*.5)])}return[m,p]}function n_n(e,t,r,a,s,o,u,h,f){const p=o+vo(.1,f),m=[];m.push([vo(h,f)+t+.9*a*Math.cos(p-e),vo(h,f)+r+.9*s*Math.sin(p-e)]);for(let b=p;b<=u;b=b+e)m.push([vo(h,f)+t+a*Math.cos(b),vo(h,f)+r+s*Math.sin(b)]);return m.push([t+a*Math.cos(u),r+s*Math.sin(u)]),m.push([t+a*Math.cos(u),r+s*Math.sin(u)]),C3e(m,null,f)}function NEi(e,t,r,a,s,o,u,h){const f=[],p=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3];let m=[0,0];const b=h.disableMultiStroke?1:2,_=h.preserveVertices;for(let w=0;w<b;w++)w===0?f.push({op:"move",data:[u[0],u[1]]}):f.push({op:"move",data:[u[0]+(_?0:vo(p[0],h)),u[1]+(_?0:vo(p[0],h))]}),m=_?[s,o]:[s+vo(p[w],h),o+vo(p[w],h)],f.push({op:"bcurveTo",data:[e+vo(p[w],h),t+vo(p[w],h),r+vo(p[w],h),a+vo(p[w],h),m[0],m[1]]});return f}function Wre(e){return[...e]}function OEi(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const a=[];if(r===3)a.push(Wre(e[0]),Wre(e[1]),Wre(e[2]),Wre(e[2]));else{const s=[];s.push(e[0],e[0]);for(let h=1;h<e.length;h++)s.push(e[h]),h===e.length-1&&s.push(e[h]);const o=[],u=1-t;a.push(Wre(s[0]));for(let h=1;h+2<s.length;h++){const f=s[h];o[0]=[f[0],f[1]],o[1]=[f[0]+(u*s[h+1][0]-u*s[h-1][0])/6,f[1]+(u*s[h+1][1]-u*s[h-1][1])/6],o[2]=[s[h+1][0]+(u*s[h][0]-u*s[h+2][0])/6,s[h+1][1]+(u*s[h][1]-u*s[h+2][1])/6],o[3]=[s[h+1][0],s[h+1][1]],a.push(o[1],o[2],o[3])}}return a}function LEi(e,t){return Math.sqrt(mxe(e,t))}function mxe(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function DEi(e,t,r){const a=mxe(t,r);if(a===0)return mxe(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/a;return s=Math.max(0,Math.min(1,s)),mxe(e,RB(t,r,s))}function RB(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function MEi(e,t){const r=e[t+0],a=e[t+1],s=e[t+2],o=e[t+3];let u=3*a[0]-2*r[0]-o[0];u*=u;let h=3*a[1]-2*r[1]-o[1];h*=h;let f=3*s[0]-2*o[0]-r[0];f*=f;let p=3*s[1]-2*o[1]-r[1];return p*=p,u<f&&(u=f),h<p&&(h=p),u+h}function Nlt(e,t,r,a){const s=a||[];if(MEi(e,t)<r){const o=e[t+0];s.length?LEi(s[s.length-1],o)>1&&s.push(o):s.push(o),s.push(e[t+3])}else{const u=e[t+0],h=e[t+1],f=e[t+2],p=e[t+3],m=RB(u,h,.5),b=RB(h,f,.5),_=RB(f,p,.5),w=RB(m,b,.5),S=RB(b,_,.5),C=RB(w,S,.5);Nlt([u,m,w,C],0,r,s),Nlt([C,S,_,p],0,r,s)}return s}function PEi(e,t){return A3e(e,0,e.length,t)}function A3e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;m<r-1;++m){const b=DEi(e[m],u,h);b>f&&(f=b,p=m)}return Math.sqrt(f)>a?(A3e(e,t,p+1,a,o),A3e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function izn(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o<s;o++){const u=o*3;Nlt(e,u,t,a)}return r&&r>0?A3e(a,0,a.length,r):a}function BEi(e,t,r){const a=wpt(e),s=JUn(ZUn(a)),o=[];let u=[],h=[0,0],f=[];const p=()=>{f.length>=4&&u.push(...izn(f,t)),f=[]},m=()=>{p(),u.length&&(o.push(u),u=[])};for(const{key:_,data:w}of s)switch(_){case"M":m(),h=[w[0],w[1]],u.push(h);break;case"L":p(),u.push([w[0],w[1]]);break;case"C":if(!f.length){const S=u.length?u[u.length-1]:h;f.push([S[0],S[1]])}f.push([w[0],w[1]]),f.push([w[2],w[3]]),f.push([w[4],w[5]]);break;case"Z":p(),u.push([h[0],h[1]]);break}if(m(),!r)return o;const b=[];for(const _ of o){const w=PEi(_,r);w.length&&b.push(w)}return b}const Sw="none";class k3e{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return bEi()}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,a){return{shape:t,sets:r||[],options:a||this.defaultOptions}}line(t,r,a,s,o){const u=this._o(o);return this._d("line",[tzn(t,r,a,s,u)],u)}rectangle(t,r,a,s,o){const u=this._o(o),h=[],f=SEi(t,r,a,s,u);if(u.fill){const p=[[t,r],[t+a,r],[t+a,r+s],[t,r+s]];u.fillStyle==="solid"?h.push(hnt([p],u)):h.push(pV([p],u))}return u.stroke!==Sw&&h.push(f),this._d("rectangle",h,u)}ellipse(t,r,a,s,o){const u=this._o(o),h=[],f=nzn(a,s,u),p=Ilt(t,r,u,f);if(u.fill)if(u.fillStyle==="solid"){const m=Ilt(t,r,u,f).opset;m.type="fillPath",h.push(m)}else h.push(pV([p.estimatedPoints],u));return u.stroke!==Sw&&h.push(p.opset),this._d("ellipse",h,u)}circle(t,r,a,s){const o=this.ellipse(t,r,a,a,s);return o.shape="circle",o}linearPath(t,r){const a=this._o(r);return this._d("linearPath",[gxe(t,!1,a)],a)}arc(t,r,a,s,o,u,h=!1,f){const p=this._o(f),m=[],b=Q2n(t,r,a,s,o,u,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){const _=Object.assign({},p);_.disableMultiStroke=!0;const w=Q2n(t,r,a,s,o,u,!0,!1,_);w.type="fillPath",m.push(w)}else m.push(CEi(t,r,a,s,o,u,p));return p.stroke!==Sw&&m.push(b),this._d("arc",m,p)}curve(t,r){const a=this._o(r),s=[],o=X2n(t,a);if(a.fill&&a.fill!==Sw&&t.length>=3)if(a.fillStyle==="solid"){const u=X2n(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else{const u=OEi(t),h=izn(u,10,(1+a.roughness)/2);s.push(pV([h],a))}return a.stroke!==Sw&&s.push(o),this._d("curve",s,a)}polygon(t,r){const a=this._o(r),s=[],o=gxe(t,!0,a);return a.fill&&(a.fillStyle==="solid"?s.push(hnt([t],a)):s.push(pV([t],a))),a.stroke!==Sw&&s.push(o),this._d("polygon",s,a)}path(t,r){const a=this._o(r),s=[];if(!t)return this._d("path",s,a);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=a.fill&&a.fill!=="transparent"&&a.fill!==Sw,u=a.stroke!==Sw,h=!!(a.simplification&&a.simplification<1),f=h?4-4*(a.simplification||1):(1+a.roughness)/2,p=BEi(t,1,f),m=Z2n(t,a);if(o)if(a.fillStyle==="solid")if(p.length===1){const b=Z2n(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(b.ops)})}else s.push(hnt(p,a));else s.push(pV(p,a));return u&&(h?p.forEach(b=>{s.push(gxe(b,!1,a))}):s.push(m)),this._d("path",s,a)}opsToPath(t,r){let a="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(u=>+u.toFixed(r)):s.data;switch(s.op){case"move":a+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":a+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":a+=`L${o[0]} ${o[1]} `;break}}return a.trim()}toPaths(t){const r=t.sets||[],a=t.options||this.defaultOptions,s=[];for(const o of r){let u=null;switch(o.type){case"path":u={d:this.opsToPath(o),stroke:a.stroke,strokeWidth:a.strokeWidth,fill:Sw};break;case"fillPath":u={d:this.opsToPath(o),stroke:Sw,strokeWidth:0,fill:a.fill||Sw};break;case"fillSketch":u=this.fillSketch(o,a);break}u&&s.push(u)}return s}fillSketch(t,r){let a=r.fillWeight;return a<0&&(a=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Sw,strokeWidth:a,fill:Sw}}_mergedShape(t){return t.filter((r,a)=>a===0?!0:r.op!=="move")}}class FEi{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new k3e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const u of r)switch(u.type){case"path":s.save(),s.strokeStyle=a.stroke==="none"?"transparent":a.stroke,s.lineWidth=a.strokeWidth,a.strokeLineDash&&s.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(s.lineDashOffset=a.strokeLineDashOffset),this._drawToContext(s,u,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=a.fill||"";const h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,u,o,h),s.restore();break}case"fillSketch":this.fillSketch(s,u,a);break}}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2),t.save(),a.fillLineDash&&t.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(t.lineDashOffset=a.fillLineDashOffset),t.strokeStyle=a.fill||"",t.lineWidth=s,this._drawToContext(t,r,a.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,a,s="nonzero"){t.beginPath();for(const o of r.ops){const u=typeof a=="number"&&a>=0?o.data.map(h=>+h.toFixed(a)):o.data;switch(o.op){case"move":t.moveTo(u[0],u[1]);break;case"bcurveTo":t.bezierCurveTo(u[0],u[1],u[2],u[3],u[4],u[5]);break;case"lineTo":t.lineTo(u[0],u[1]);break}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u),u}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u),u}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u),u}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o),o}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a),a}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a),a}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p),p}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a),a}path(t,r){const a=this.gen.path(t,r);return this.draw(a),a}}const pwe="http://www.w3.org/2000/svg";class $Ei{constructor(t,r){this.svg=t,this.gen=new k3e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(pwe,"g"),u=t.options.fixedDecimalPlaceDigits;for(const h of r){let f=null;switch(h.type){case"path":{f=s.createElementNS(pwe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke",a.stroke),f.setAttribute("stroke-width",a.strokeWidth+""),f.setAttribute("fill","none"),a.strokeLineDash&&f.setAttribute("stroke-dasharray",a.strokeLineDash.join(" ").trim()),a.strokeLineDashOffset&&f.setAttribute("stroke-dashoffset",`${a.strokeLineDashOffset}`);break}case"fillPath":{f=s.createElementNS(pwe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke","none"),f.setAttribute("stroke-width","0"),f.setAttribute("fill",a.fill||""),(t.shape==="curve"||t.shape==="polygon")&&f.setAttribute("fill-rule","evenodd");break}case"fillSketch":{f=this.fillSketch(s,h,a);break}}f&&o.appendChild(f)}return o}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2);const o=t.createElementNS(pwe,"path");return o.setAttribute("d",this.opsToPath(r,a.fixedDecimalPlaceDigits)),o.setAttribute("stroke",a.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),a.fillLineDash&&o.setAttribute("stroke-dasharray",a.fillLineDash.join(" ").trim()),a.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${a.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u)}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u)}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u)}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o)}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a)}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a)}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p)}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a)}path(t,r){const a=this.gen.path(t,r);return this.draw(a)}}const T5a={canvas(e,t){return new FEi(e,t)},svg(e,t){return new $Ei(e,t)},generator(e){return new k3e(e)},newSeed(){return k3e.newSeed()}};function r_n(e,t,r,a=s=>s){return e*a(.5-t*(.5-r))}function UEi(e){return[-e[0],-e[1]]}function C3(e,t){return[e[0]+t[0],e[1]+t[1]]}function Yx(e,t){return[e[0]-t[0],e[1]-t[1]]}function S3(e,t){return[e[0]*t,e[1]*t]}function zEi(e,t){return[e[0]/t,e[1]/t]}function Kre(e){return[e[1],-e[0]]}function i_n(e,t){return e[0]*t[0]+e[1]*t[1]}function GEi(e,t){return e[0]===t[0]&&e[1]===t[1]}function qEi(e){return Math.hypot(e[0],e[1])}function HEi(e){return e[0]*e[0]+e[1]*e[1]}function a_n(e,t){return HEi(Yx(e,t))}function azn(e){return zEi(e,qEi(e))}function VEi(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Xre(e,t,r){let a=Math.sin(r),s=Math.cos(r),o=e[0]-t[0],u=e[1]-t[1],h=o*s-u*a,f=o*a+u*s;return[h+t[0],f+t[1]]}function Olt(e,t,r){return C3(e,S3(Yx(t,e),r))}function s_n(e,t,r){return C3(e,S3(t,r))}var{min:qH,PI:YEi}=Math,o_n=.275,Qre=YEi+1e-4;function jEi(e,t={}){let{size:r=16,smoothing:a=.5,thinning:s=.5,simulatePressure:o=!0,easing:u=V=>V,start:h={},end:f={},last:p=!1}=t,{cap:m=!0,easing:b=V=>V*(2-V)}=h,{cap:_=!0,easing:w=V=>--V*V*V+1}=f;if(e.length===0||r<=0)return[];let S=e[e.length-1].runningLength,C=h.taper===!1?0:h.taper===!0?Math.max(r,S):h.taper,A=f.taper===!1?0:f.taper===!0?Math.max(r,S):f.taper,k=Math.pow(r*a,2),I=[],N=[],L=e.slice(0,10).reduce((V,j)=>{let ee=j.pressure;if(o){let te=qH(1,j.distance/r),ne=qH(1,1-te);ee=qH(1,V+(ne-V)*(te*o_n))}return(V+ee)/2},e[0].pressure),P=r_n(r,s,e[e.length-1].pressure,u),M,F=e[0].vector,U=e[0].point,$=U,G=U,B=$,Z=!1;for(let V=0;V<e.length;V++){let{pressure:j}=e[V],{point:ee,vector:te,distance:ne,runningLength:se}=e[V];if(V<e.length-1&&S-se<3)continue;if(s){if(o){let Ee=qH(1,ne/r),he=qH(1,1-Ee);j=qH(1,L+(he-L)*(Ee*o_n))}P=r_n(r,s,j,u)}else P=r/2;M===void 0&&(M=P);let ie=se<C?b(se/C):1,ge=S-se<A?w((S-se)/A):1;P=Math.max(.01,P*Math.min(ie,ge));let ce=(V<e.length-1?e[V+1]:e[V]).vector,be=V<e.length-1?i_n(te,ce):1,ve=i_n(te,F)<0&&!Z,De=be!==null&&be<0;if(ve||De){let Ee=S3(Kre(F),P);for(let he=1/13,we=0;we<=1;we+=he)G=Xre(Yx(ee,Ee),ee,Qre*we),I.push(G),B=Xre(C3(ee,Ee),ee,Qre*-we),N.push(B);U=G,$=B,De&&(Z=!0);continue}if(Z=!1,V===e.length-1){let Ee=S3(Kre(te),P);I.push(Yx(ee,Ee)),N.push(C3(ee,Ee));continue}let ye=S3(Kre(Olt(ce,te,be)),P);G=Yx(ee,ye),(V<=1||a_n(U,G)>k)&&(I.push(G),U=G),B=C3(ee,ye),(V<=1||a_n($,B)>k)&&(N.push(B),$=B),L=j,F=te}let z=e[0].point.slice(0,2),Y=e.length>1?e[e.length-1].point.slice(0,2):C3(e[0].point,[1,1]),W=[],Q=[];if(e.length===1){if(!(C||A)||p){let V=s_n(z,azn(Kre(Yx(z,Y))),-(M||P)),j=[];for(let ee=1/13,te=ee;te<=1;te+=ee)j.push(Xre(V,z,Qre*2*te));return j}}else{if(!(C||A&&e.length===1))if(m)for(let j=1/13,ee=j;ee<=1;ee+=j){let te=Xre(N[0],z,Qre*ee);W.push(te)}else{let j=Yx(I[0],N[0]),ee=S3(j,.5),te=S3(j,.51);W.push(Yx(z,ee),Yx(z,te),C3(z,te),C3(z,ee))}let V=Kre(UEi(e[e.length-1].vector));if(A||C&&e.length===1)Q.push(Y);else if(_){let j=s_n(Y,V,P);for(let ee=1/29,te=ee;te<1;te+=ee)Q.push(Xre(j,Y,Qre*3*te))}else Q.push(C3(Y,S3(V,P)),C3(Y,S3(V,P*.99)),Yx(Y,S3(V,P*.99)),Yx(Y,S3(V,P)))}return I.concat(Q,N.reverse(),W)}function WEi(e,t={}){var r;let{streamline:a=.5,size:s=16,last:o=!1}=t;if(e.length===0)return[];let u=.15+(1-a)*.85,h=Array.isArray(e[0])?e:e.map(({x:w,y:S,pressure:C=.5})=>[w,S,C]);if(h.length===2){let w=h[1];h=h.slice(0,-1);for(let S=1;S<5;S++)h.push(Olt(h[0],w,S/4))}h.length===1&&(h=[...h,[...C3(h[0],[1,1]),...h[0].slice(2)]]);let f=[{point:[h[0][0],h[0][1]],pressure:h[0][2]>=0?h[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],p=!1,m=0,b=f[0],_=h.length-1;for(let w=1;w<h.length;w++){let S=o&&w===_?h[w].slice(0,2):Olt(b.point,h[w],u);if(GEi(b.point,S))continue;let C=VEi(S,b.point);if(m+=C,w<_&&!p){if(m<s)continue;p=!0}b={point:S,pressure:h[w][2]>=0?h[w][2]:.5,vector:azn(Yx(b.point,S)),distance:C,runningLength:m},f.push(b)}return f[0].vector=((r=f[1])==null?void 0:r.vector)||[0,0],f}function C5a(e,t={}){return jEi(WEi(e,t),t)}function szn(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=szn(e[t]))&&(a&&(a+=" "),a+=r);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function A5a(){for(var e=0,t,r,a="";e<arguments.length;)(t=arguments[e++])&&(r=szn(t))&&(a&&(a+=" "),a+=r);return a}function KEi(e,t){return Math.sqrt(bxe(e,t))}function bxe(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function XEi(e,t,r){const a=bxe(t,r);if(a===0)return bxe(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/a;return s=Math.max(0,Math.min(1,s)),bxe(e,IB(t,r,s))}function IB(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function QEi(e,t){const r=e[t+0],a=e[t+1],s=e[t+2],o=e[t+3];let u=3*a[0]-2*r[0]-o[0];u*=u;let h=3*a[1]-2*r[1]-o[1];h*=h;let f=3*s[0]-2*o[0]-r[0];f*=f;let p=3*s[1]-2*o[1]-r[1];return p*=p,u<f&&(u=f),h<p&&(h=p),u+h}function Llt(e,t,r,a){const s=a||[];if(QEi(e,t)<r){const o=e[t+0];s.length?KEi(s[s.length-1],o)>1&&s.push(o):s.push(o),s.push(e[t+3])}else{const u=e[t+0],h=e[t+1],f=e[t+2],p=e[t+3],m=IB(u,h,.5),b=IB(h,f,.5),_=IB(f,p,.5),w=IB(m,b,.5),S=IB(b,_,.5),C=IB(w,S,.5);Llt([u,m,w,C],0,r,s),Llt([C,S,_,p],0,r,s)}return s}function k5a(e,t){return R3e(e,0,e.length,t)}function R3e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;m<r-1;++m){const b=XEi(e[m],u,h);b>f&&(f=b,p=m)}return Math.sqrt(f)>a?(R3e(e,t,p+1,a,o),R3e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function R5a(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o<s;o++){const u=o*3;Llt(e,u,t,a)}return R3e(a,0,a.length,r)}var Ept={};Object.defineProperty(Ept,"__esModule",{value:!0});var U9=Ept.sanitizeUrl=void 0,ZEi=/^([^\w]*)(javascript|data|vbscript)/im,JEi=/&#(\w+)(^\w|;)?/g,exi=/&(newline|tab);/gi,txi=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,nxi=/^.+(:|&colon;)/gim,rxi=[".","/"];function ixi(e){return rxi.indexOf(e[0])>-1}function axi(e){return e.replace(JEi,function(t,r){return String.fromCharCode(r)})}function sxi(e){var t=axi(e||"").replace(exi,"").replace(txi,"").trim();if(!t)return"about:blank";if(ixi(t))return t;var r=t.match(nxi);if(!r)return t;var a=r[0];return ZEi.test(a)?"about:blank":t}U9=Ept.sanitizeUrl=sxi;const ozn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function NV(e,t,r){const a=r[0];if(t!=null&&e>=t)throw new Error(e+" >= "+t);if(e.slice(-1)===a||t&&t.slice(-1)===a)throw new Error("trailing zero");if(t){let u=0;for(;(e[u]||a)===t[u];)u++;if(u>0)return t.slice(0,u)+NV(e.slice(u),t.slice(u),r)}const s=e?r.indexOf(e[0]):0,o=t!=null?r.indexOf(t[0]):r.length;if(o-s>1){const u=Math.round(.5*(s+o));return r[u]}else return t&&t.length>1?t.slice(0,1):r[s]+NV(e.slice(1),null,r)}function lzn(e){if(e.length!==czn(e[0]))throw new Error("invalid integer part of order key: "+e)}function czn(e){if(e>="a"&&e<="z")return e.charCodeAt(0)-97+2;if(e>="A"&&e<="Z")return 90-e.charCodeAt(0)+2;throw new Error("invalid order key head: "+e)}function qie(e){const t=czn(e[0]);if(t>e.length)throw new Error("invalid order key: "+e);return e.slice(0,t)}function l_n(e,t){if(e==="A"+t[0].repeat(26))throw new Error("invalid order key: "+e);const r=qie(e);if(e.slice(r.length).slice(-1)===t[0])throw new Error("invalid order key: "+e)}function c_n(e,t){lzn(e);const[r,...a]=e.split("");let s=!0;for(let o=a.length-1;s&&o>=0;o--){const u=t.indexOf(a[o])+1;u===t.length?a[o]=t[0]:(a[o]=t[u],s=!1)}if(s){if(r==="Z")return"a"+t[0];if(r==="z")return null;const o=String.fromCharCode(r.charCodeAt(0)+1);return o>"a"?a.push(t[0]):a.pop(),o+a.join("")}else return r+a.join("")}function oxi(e,t){lzn(e);const[r,...a]=e.split("");let s=!0;for(let o=a.length-1;s&&o>=0;o--){const u=t.indexOf(a[o])-1;u===-1?a[o]=t.slice(-1):(a[o]=t[u],s=!1)}if(s){if(r==="a")return"Z"+t.slice(-1);if(r==="A")return null;const o=String.fromCharCode(r.charCodeAt(0)-1);return o<"Z"?a.push(t.slice(-1)):a.pop(),o+a.join("")}else return r+a.join("")}function HH(e,t,r=ozn){if(e!=null&&l_n(e,r),t!=null&&l_n(t,r),e!=null&&t!=null&&e>=t)throw new Error(e+" >= "+t);if(e==null){if(t==null)return"a"+r[0];const f=qie(t),p=t.slice(f.length);if(f==="A"+r[0].repeat(26))return f+NV("",p,r);if(f<t)return f;const m=oxi(f,r);if(m==null)throw new Error("cannot decrement any more");return m}if(t==null){const f=qie(e),p=e.slice(f.length),m=c_n(f,r);return m??f+NV(p,null,r)}const a=qie(e),s=e.slice(a.length),o=qie(t),u=t.slice(o.length);if(a===o)return a+NV(s,u,r);const h=c_n(a,r);if(h==null)throw new Error("cannot increment any more");return h<t?h:a+NV(s,null,r)}function u_n(e,t,r,a=ozn){if(r===0)return[];if(r===1)return[HH(e,t,a)];if(t==null){let u=HH(e,t,a);const h=[u];for(let f=0;f<r-1;f++)u=HH(u,t,a),h.push(u);return h}if(e==null){let u=HH(e,t,a);const h=[u];for(let f=0;f<r-1;f++)u=HH(e,u,a),h.push(u);return h.reverse(),h}const s=Math.floor(r/2),o=HH(e,t,a);return[...u_n(e,o,s,a),o,...u_n(o,t,r-s-1,a)]}const xpt=(()=>{if(typeof self>"u")return!1;if("top"in self&&self!==top)try{}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),lxi=xpt?ea(()=>Promise.resolve().then(()=>Wea),void 0):ea(()=>Promise.resolve().then(()=>Xea),void 0);async function I5a(...e){return(await lxi).default(...e)}xpt?ea(()=>Promise.resolve().then(()=>Zea),void 0):ea(()=>Promise.resolve().then(()=>eta),void 0);const cxi=xpt?ea(()=>Promise.resolve().then(()=>nta),void 0):ea(()=>Promise.resolve().then(()=>ita),void 0);async function N5a(...e){return(await cxi).default(...e)}const iR={};let uxi=0;function hxi(e,t){const r=`atom${++uxi}`,a={toString(){return(iR?"production":void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return typeof e=="function"?a.read=e:(a.init=e,a.read=dxi,a.write=fxi),a}function dxi(e){return e(this)}function fxi(e,t,r){return t(this,typeof r=="function"?r(e(this)):r)}const h_n=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Dlt=e=>"init"in e,dnt=e=>!!e.write,I3e=new WeakMap,Mlt=e=>{var t;return Plt(e)&&!((t=I3e.get(e))!=null&&t[1])},pxi=(e,t)=>{const r=I3e.get(e);if(r)r[1]=!0,r[0].forEach(a=>a(t));else if((iR?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},gxi=e=>{if(I3e.has(e))return;const t=[new Set,!1];I3e.set(e,t);const r=()=>{t[1]=!0};e.then(r,r),e.onCancel=a=>{t[0].add(a)}},Plt=e=>typeof(e==null?void 0:e.then)=="function",d_n=e=>"v"in e||"e"in e,gwe=e=>{if("e"in e)throw e.e;if((iR?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},uzn=(e,t,r)=>{r.p.has(e)||(r.p.add(e),t.then(()=>{r.p.delete(e)},()=>{r.p.delete(e)}))},f_n=(e,t,r,a,s)=>{var o;if((iR?"production":void 0)!=="production"&&a===t)throw new Error("[Bug] atom cannot depend on itself");r.d.set(a,s.n),Mlt(r.v)&&uzn(t,r.v,s),(o=s.m)==null||o.t.add(t),e&&mxi(e,a,t)},Zre=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),_se=(e,t,r)=>{e[t].add(r)},p_n=(e,t,r)=>{e.D.has(t)||(e.D.set(t,new Set),_se(e,"M",()=>{var a;(a=r.m)==null||a.l.forEach(s=>_se(e,"M",s))}))},mxi=(e,t,r)=>{const a=e.D.get(t);a&&a.add(r)},bxi=(e,t)=>e.D.get(t),mB=e=>{let t,r=!1;const a=s=>{try{s()}catch(o){r||(t=o,r=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(a),e.H.clear(),e.M.forEach(a),e.M.clear(),e.L.forEach(a),e.L.clear();if(r)throw t},hzn=(...[e,t,r,a])=>{const s=(k,I,N)=>{const L="v"in I,P=I.v,M=Mlt(I.v)?I.v:null;if(Plt(N)){gxi(N);for(const F of I.d.keys())uzn(k,N,e(F));I.v=N}else I.v=N;delete I.e,delete I.x,(!L||!Object.is(P,I.v))&&(++I.n,M&&pxi(M,N))},o=(k,I)=>{var N;const L=e(I);if(d_n(L)&&(L.m&&!L.x||Array.from(L.d).every(([G,B])=>o(k,G).n===B)))return L;L.d.clear();let P=!0;const M=G=>{if(h_n(I,G)){const Z=e(G);if(!d_n(Z))if(Dlt(G))s(G,Z,G.init);else throw new Error("no atom init");return gwe(Z)}const B=o(k,G);try{return gwe(B)}finally{if(P)f_n(k,I,L,G,B);else{const Z=Zre();f_n(Z,I,L,G,B),b(Z,I,L),mB(Z)}}};let F,U;const $={get signal(){return F||(F=new AbortController),F.signal},get setSelf(){return(iR?"production":void 0)!=="production"&&!dnt(I)&&console.warn("setSelf function cannot be used with read-only atom"),!U&&dnt(I)&&(U=(...G)=>{if((iR?"production":void 0)!=="production"&&P&&console.warn("setSelf function cannot be called in sync"),!P)return m(I,...G)}),U}};try{const G=t(I,M,$);if(s(I,L,G),Plt(G)){(N=G.onCancel)==null||N.call(G,()=>F==null?void 0:F.abort());const B=()=>{if(L.m){const Z=Zre();b(Z,I,L),mB(Z)}};G.then(B,B)}return L}catch(G){return delete L.v,L.e=G,delete L.x,++L.n,L}finally{P=!1}},u=k=>gwe(o(void 0,k)),h=(k,I,N)=>{var L,P;const M=new Map;for(const F of((L=N.m)==null?void 0:L.t)||[]){const U=e(F);U.m&&M.set(F,U)}for(const F of N.p)M.set(F,e(F));return(P=bxi(k,I))==null||P.forEach(F=>{M.set(F,e(F))}),M},f=(k,I,N)=>{const L=[],P=new Set,M=new Set,F=[[I,N]];for(;F.length>0;){const[U,$]=F[F.length-1];if(M.has(U)){F.pop();continue}if(P.has(U)){L.push([U,$,$.n]),M.add(U),$.x=!0,F.pop();continue}P.add(U);for(const[G,B]of h(k,U,$))U!==G&&!P.has(G)&&F.push([G,B])}_se(k,"H",()=>{const U=new Set([I]);for(let $=L.length-1;$>=0;--$){const[G,B,Z]=L[$];let z=!1;for(const Y of B.d.keys())if(Y!==G&&U.has(Y)){z=!0;break}z&&(o(k,G),b(k,G,B),Z!==B.n&&(p_n(k,G,B),U.add(G))),delete B.x}})},p=(k,I,...N)=>{let L=!0;const P=F=>gwe(o(k,F)),M=(F,...U)=>{const $=e(F);try{if(h_n(I,F)){if(!Dlt(F))throw new Error("atom not writable");const G=$.n,B=U[0];s(F,$,B),b(k,F,$),G!==$.n&&(p_n(k,F,$),f(k,F,$));return}else return p(k,F,...U)}finally{L||mB(k)}};try{return r(I,P,M,...N)}finally{L=!1}},m=(k,...I)=>{const N=Zre();try{return p(N,k,...I)}finally{mB(N)}},b=(k,I,N)=>{if(N.m&&!Mlt(N.v)){for(const L of N.d.keys())N.m.d.has(L)||(_(k,L,e(L)).t.add(I),N.m.d.add(L));for(const L of N.m.d||[])if(!N.d.has(L)){N.m.d.delete(L);const P=w(k,L,e(L));P==null||P.t.delete(I)}}},_=(k,I,N)=>{if(!N.m){o(k,I);for(const L of N.d.keys())_(k,L,e(L)).t.add(I);if(N.m={l:new Set,d:new Set(N.d.keys()),t:new Set},dnt(I)){const L=N.m;let P;const M=(F,U)=>{let $=!0;P=(...G)=>{try{return p(F,I,...G)}finally{$||mB(F)}};try{return U()}finally{$=!1}};_se(k,"L",()=>{const F=M(k,()=>a(I,(...U)=>P(...U)));F&&(L.u=U=>M(U,F))})}}return N.m},w=(k,I,N)=>{if(N.m&&!N.m.l.size&&!Array.from(N.m.t).some(L=>{var P;return(P=e(L).m)==null?void 0:P.d.has(I)})){const L=N.m.u;L&&_se(k,"L",()=>L(k)),delete N.m;for(const P of N.d.keys()){const M=w(k,P,e(P));M==null||M.t.delete(I)}return}return N.m};return{get:u,set:m,sub:(k,I)=>{const N=Zre(),L=e(k),M=_(N,k,L).l;return M.add(I),mB(N),()=>{M.delete(I);const F=Zre();w(F,k,L),mB(F)}},unstable_derive:k=>hzn(...k(e,t,r,a))}},yxi=e=>{const t=new WeakMap,r=new Set;let a,s=0;const o=e.unstable_derive((f,p,m,b)=>(a=f,[_=>{let w=t.get(_);if(!w){const S=f(_);w=new Proxy(S,{set(C,A,k){return A==="m"&&r.add(_),Reflect.set(C,A,k)},deleteProperty(C,A){return A==="m"&&r.delete(_),Reflect.deleteProperty(C,A)}}),t.set(_,w)}return w},p,(_,w,S,...C)=>s?S(_,...C):m(_,w,S,...C),b])),u=o.set;return Object.assign(o,{dev4_get_internal_weak_map:()=>({get:f=>{const p=a(f);if(p.n!==0)return p}}),dev4_get_mounted_atoms:()=>r,dev4_restore_atoms:f=>{u({read:()=>null,write:(m,b)=>{++s;try{for(const[_,w]of f)Dlt(_)&&b(_,w)}finally{--s}}})}})},dzn=()=>{const e=new WeakMap,r=hzn(a=>{if((iR?"production":void 0)!=="production"&&!a)throw new Error("Atom is undefined or null");let s=e.get(a);return s||(s={d:new Map,p:new Set,n:0},e.set(a,s)),s},(a,...s)=>a.read(...s),(a,...s)=>a.write(...s),(a,...s)=>{var o;return(o=a.onMount)==null?void 0:o.call(a,...s)});return(iR?"production":void 0)!=="production"?yxi(r):r};let Jre;const vxi=()=>(Jre||(Jre=dzn(),(iR?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Jre),globalThis.__JOTAI_DEFAULT_STORE__!==Jre&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Jre),fzn={},_xi=ue.createContext(void 0),zAe=e=>{const t=ue.useContext(_xi);return(e==null?void 0:e.store)||t||vxi()},Blt=e=>typeof(e==null?void 0:e.then)=="function",pzn=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},wxi=Er.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(pzn(e),e)}),fnt=new WeakMap,g_n=e=>{let t=fnt.get(e);return t||(t=new Promise((r,a)=>{let s=e;const o=f=>p=>{s===f&&r(p)},u=f=>p=>{s===f&&a(p)},h=f=>{"onCancel"in f&&typeof f.onCancel=="function"&&f.onCancel(p=>{if((fzn?"production":void 0)!=="production"&&p===f)throw new Error("[Bug] p is not updated even after cancelation");Blt(p)?(fnt.set(p,t),s=p,p.then(o(p),u(p)),h(p)):r(p)})};e.then(o(e),u(e)),h(e)}),fnt.set(e,t)),t};function gzn(e,t){const r=zAe(t),[[a,s,o],u]=ue.useReducer(p=>{const m=r.get(e);return Object.is(p[0],m)&&p[1]===r&&p[2]===e?p:[m,r,e]},void 0,()=>[r.get(e),r,e]);let h=a;(s!==r||o!==e)&&(u(),h=r.get(e));const f=t==null?void 0:t.delay;if(ue.useEffect(()=>{const p=r.sub(e,()=>{if(typeof f=="number"){const m=r.get(e);Blt(m)&&pzn(g_n(m)),setTimeout(u,f);return}u()});return u(),p},[r,e,f]),ue.useDebugValue(h),Blt(h)){const p=g_n(h);return wxi(p)}return h}function mzn(e,t){const r=zAe(t);return ue.useCallback((...s)=>{if((fzn?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...s)},[r,e])}function Exi(e,t){return[gzn(e,t),mzn(e,t)]}const m_n=new WeakMap;function xxi(e,t){const r=zAe(t),a=Sxi(r);for(const[s,o]of e)(!a.has(s)||t!=null&&t.dangerouslyForceHydrate)&&(a.add(s),r.set(s,o))}const Sxi=e=>{let t=m_n.get(e);return t||(t=new WeakSet,m_n.set(e,t)),t};function OV(){return OV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},OV.apply(this,arguments)}function O5a(){const e=ue.createContext(null);function t({store:u,initialValues:h=[],children:f}){const p=ue.useRef(u);return p.current||(p.current=dzn()),xxi(h,{store:p.current}),ct.jsx(e.Provider,{value:p.current,children:f})}const r=u=>{const h=ue.useContext(e);if(!h)throw new Error("Missing Provider from createIsolation");return zAe(OV({store:h},u))};return{Provider:t,useStore:r,useAtom:(u,h)=>{const f=r();return Exi(u,OV({store:f},h))},useAtomValue:(u,h)=>{const f=r();return gzn(u,OV({store:f},h))},useSetAtom:(u,h)=>{const f=r();return mzn(u,OV({store:f},h))}}}const{read:L5a,write:D5a}=hxi(null);ue.createContext({scope:void 0,baseStore:void 0});function NO(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function b_n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bzn(...e){return t=>{let r=!1;const a=e.map(s=>{const o=b_n(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<a.length;s++){const o=a[s];typeof o=="function"?o():b_n(e[s],null)}}}}function z9(...e){return ue.useCallback(bzn(...e),e)}function yzn(e,t=[]){let r=[];function a(o,u){const h=ue.createContext(u),f=r.length;r=[...r,u];const p=b=>{var k;const{scope:_,children:w,...S}=b,C=((k=_==null?void 0:_[e])==null?void 0:k[f])||h,A=ue.useMemo(()=>S,Object.values(S));return ct.jsx(C.Provider,{value:A,children:w})};p.displayName=o+"Provider";function m(b,_){var C;const w=((C=_==null?void 0:_[e])==null?void 0:C[f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,Txi(s,...t)]}function Txi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var Spt=ue.forwardRef((e,t)=>{const{children:r,...a}=e,s=ue.Children.toArray(r),o=s.find(Axi);if(o){const u=o.props.children,h=s.map(f=>f===o?ue.Children.count(u)>1?ue.Children.only(null):ue.isValidElement(u)?u.props.children:null:f);return ct.jsx(Flt,{...a,ref:t,children:ue.isValidElement(u)?ue.cloneElement(u,void 0,h):null})}return ct.jsx(Flt,{...a,ref:t,children:r})});Spt.displayName="Slot";var Flt=ue.forwardRef((e,t)=>{const{children:r,...a}=e;if(ue.isValidElement(r)){const s=Rxi(r),o=kxi(a,r.props);return r.type!==ue.Fragment&&(o.ref=t?bzn(t,s):s),ue.cloneElement(r,o)}return ue.Children.count(r)>1?ue.Children.only(null):null});Flt.displayName="SlotClone";var Cxi=({children:e})=>ct.jsx(ct.Fragment,{children:e});function Axi(e){return ue.isValidElement(e)&&e.type===Cxi}function kxi(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{o(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function Rxi(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ixi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wR=Ixi.reduce((e,t)=>{const r=ue.forwardRef((a,s)=>{const{asChild:o,...u}=a,h=o?Spt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(h,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nxi(e,t){e&&w9.flushSync(()=>e.dispatchEvent(t))}function e9(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function Oxi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e);ue.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var Lxi="DismissableLayer",$lt="dismissableLayer.update",Dxi="dismissableLayer.pointerDownOutside",Mxi="dismissableLayer.focusOutside",y_n,vzn=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_zn=ue.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:u,onDismiss:h,...f}=e,p=ue.useContext(vzn),[m,b]=ue.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=ue.useState({}),S=z9(t,F=>b(F)),C=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=C.indexOf(A),I=m?C.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=I>=k,P=Fxi(F=>{const U=F.target,$=[...p.branches].some(G=>G.contains(U));!L||$||(s==null||s(F),u==null||u(F),F.defaultPrevented||h==null||h())},_),M=$xi(F=>{const U=F.target;[...p.branches].some(G=>G.contains(U))||(o==null||o(F),u==null||u(F),F.defaultPrevented||h==null||h())},_);return Oxi(F=>{I===p.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&h&&(F.preventDefault(),h()))},_),ue.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(y_n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),v_n(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=y_n)}},[m,_,r,p]),ue.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),v_n())},[m,p]),ue.useEffect(()=>{const F=()=>w({});return document.addEventListener($lt,F),()=>document.removeEventListener($lt,F)},[]),ct.jsx(wR.div,{...f,ref:S,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:NO(e.onFocusCapture,M.onFocusCapture),onBlurCapture:NO(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:NO(e.onPointerDownCapture,P.onPointerDownCapture)})});_zn.displayName=Lxi;var Pxi="DismissableLayerBranch",Bxi=ue.forwardRef((e,t)=>{const r=ue.useContext(vzn),a=ue.useRef(null),s=z9(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),ct.jsx(wR.div,{...e,ref:s})});Bxi.displayName=Pxi;function Fxi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e),a=ue.useRef(!1),s=ue.useRef(()=>{});return ue.useEffect(()=>{const o=h=>{if(h.target&&!a.current){let f=function(){wzn(Dxi,r,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function $xi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e),a=ue.useRef(!1);return ue.useEffect(()=>{const s=o=>{o.target&&!a.current&&wzn(Mxi,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function v_n(){const e=new CustomEvent($lt);document.dispatchEvent(e)}function wzn(e,t,r,{discrete:a}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?Nxi(s,o):s.dispatchEvent(o)}var pnt=0;function Uxi(){ue.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??__n()),document.body.insertAdjacentElement("beforeend",e[1]??__n()),pnt++,()=>{pnt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pnt--}},[])}function __n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gnt="focusScope.autoFocusOnMount",mnt="focusScope.autoFocusOnUnmount",w_n={bubbles:!1,cancelable:!0},zxi="FocusScope",Ezn=ue.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...u}=e,[h,f]=ue.useState(null),p=e9(s),m=e9(o),b=ue.useRef(null),_=z9(t,C=>f(C)),w=ue.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ue.useEffect(()=>{if(a){let C=function(N){if(w.paused||!h)return;const L=N.target;h.contains(L)?b.current=L:jN(b.current,{select:!0})},A=function(N){if(w.paused||!h)return;const L=N.relatedTarget;L!==null&&(h.contains(L)||jN(b.current,{select:!0}))},k=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&jN(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const I=new MutationObserver(k);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),I.disconnect()}}},[a,h,w.paused]),ue.useEffect(()=>{if(h){x_n.add(w);const C=document.activeElement;if(!h.contains(C)){const k=new CustomEvent(gnt,w_n);h.addEventListener(gnt,p),h.dispatchEvent(k),k.defaultPrevented||(Gxi(jxi(xzn(h)),{select:!0}),document.activeElement===C&&jN(h))}return()=>{h.removeEventListener(gnt,p),setTimeout(()=>{const k=new CustomEvent(mnt,w_n);h.addEventListener(mnt,m),h.dispatchEvent(k),k.defaultPrevented||jN(C??document.body,{select:!0}),h.removeEventListener(mnt,m),x_n.remove(w)},0)}}},[h,p,m,w]);const S=ue.useCallback(C=>{if(!r&&!a||w.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,k=document.activeElement;if(A&&k){const I=C.currentTarget,[N,L]=qxi(I);N&&L?!C.shiftKey&&k===L?(C.preventDefault(),r&&jN(N,{select:!0})):C.shiftKey&&k===N&&(C.preventDefault(),r&&jN(L,{select:!0})):k===I&&C.preventDefault()}},[r,a,w.paused]);return ct.jsx(wR.div,{tabIndex:-1,...u,ref:_,onKeyDown:S})});Ezn.displayName=zxi;function Gxi(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(jN(a,{select:t}),document.activeElement!==r)return}function qxi(e){const t=xzn(e),r=E_n(t,e),a=E_n(t.reverse(),e);return[r,a]}function xzn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function E_n(e,t){for(const r of e)if(!Hxi(r,{upTo:t}))return r}function Hxi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vxi(e){return e instanceof HTMLInputElement&&"select"in e}function jN(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Vxi(e)&&t&&e.select()}}var x_n=Yxi();function Yxi(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=S_n(e,t),e.unshift(t)},remove(t){var r;e=S_n(e,t),(r=e[0])==null||r.resume()}}}function S_n(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function jxi(e){return e.filter(t=>t.tagName!=="A")}var jF=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},Wxi=g$.useId||(()=>{}),Kxi=0;function Xxi(e){const[t,r]=ue.useState(Wxi());return jF(()=>{r(a=>a??String(Kxi++))},[e]),e||(t?`radix-${t}`:"")}var Qxi="Arrow",Szn=ue.forwardRef((e,t)=>{const{children:r,width:a=10,height:s=5,...o}=e;return ct.jsx(wR.svg,{...o,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:ct.jsx("polygon",{points:"0,0 30,0 15,10"})})});Szn.displayName=Qxi;var Zxi=Szn;function Jxi(e){const[t,r]=ue.useState(void 0);return jF(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let u,h;if("borderBoxSize"in o){const f=o.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,h=p.blockSize}else u=e.offsetWidth,h=e.offsetHeight;r({width:u,height:h})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Tpt="Popper",[Tzn,Czn]=yzn(Tpt),[eSi,Azn]=Tzn(Tpt),kzn=e=>{const{__scopePopper:t,children:r}=e,[a,s]=ue.useState(null);return ct.jsx(eSi,{scope:t,anchor:a,onAnchorChange:s,children:r})};kzn.displayName=Tpt;var Rzn="PopperAnchor",Izn=ue.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...s}=e,o=Azn(Rzn,r),u=ue.useRef(null),h=z9(t,u);return ue.useEffect(()=>{o.onAnchorChange((a==null?void 0:a.current)||u.current)}),a?null:ct.jsx(wR.div,{...s,ref:h})});Izn.displayName=Rzn;var Cpt="PopperContent",[tSi,nSi]=Tzn(Cpt),Nzn=ue.forwardRef((e,t)=>{var ve,De,ye,Ee,he,we;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:o="center",alignOffset:u=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:S,...C}=e,A=Azn(Cpt,r),[k,I]=ue.useState(null),N=z9(t,Ce=>I(Ce)),[L,P]=ue.useState(null),M=Jxi(L),F=(M==null?void 0:M.width)??0,U=(M==null?void 0:M.height)??0,$=a+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(p)?p:[p],Z=B.length>0,z={padding:G,boundary:B.filter(iSi),altBoundary:Z},{refs:Y,floatingStyles:W,placement:Q,isPositioned:V,middlewareData:j}=Zdt({strategy:"fixed",placement:$,whileElementsMounted:(...Ce)=>U6n(...Ce,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[G6n({mainAxis:s+U,alignmentAxis:u}),f&&q6n({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?H6n():void 0,...z}),f&&V6n({...z}),Y6n({...z,apply:({elements:Ce,rects:Ie,availableWidth:Le,availableHeight:Fe})=>{const{width:Ve,height:Oe}=Ie.reference,Dt=Ce.floating.style;Dt.setProperty("--radix-popper-available-width",`${Le}px`),Dt.setProperty("--radix-popper-available-height",`${Fe}px`),Dt.setProperty("--radix-popper-anchor-width",`${Ve}px`),Dt.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),L&&W6n({element:L,padding:h}),aSi({arrowWidth:F,arrowHeight:U}),_&&j6n({strategy:"referenceHidden",...z})]}),[ee,te]=Dzn(Q),ne=e9(S);jF(()=>{V&&(ne==null||ne())},[V,ne]);const se=(ve=j.arrow)==null?void 0:ve.x,ie=(De=j.arrow)==null?void 0:De.y,ge=((ye=j.arrow)==null?void 0:ye.centerOffset)!==0,[ce,be]=ue.useState();return jF(()=>{k&&be(window.getComputedStyle(k).zIndex)},[k]),ct.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ee=j.transformOrigin)==null?void 0:Ee.x,(he=j.transformOrigin)==null?void 0:he.y].join(" "),...((we=j.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ct.jsx(tSi,{scope:r,placedSide:ee,onArrowChange:P,arrowX:se,arrowY:ie,shouldHideArrow:ge,children:ct.jsx(wR.div,{"data-side":ee,"data-align":te,...C,ref:N,style:{...C.style,animation:V?void 0:"none"}})})})});Nzn.displayName=Cpt;var Ozn="PopperArrow",rSi={top:"bottom",right:"left",bottom:"top",left:"right"},Lzn=ue.forwardRef(function(t,r){const{__scopePopper:a,...s}=t,o=nSi(Ozn,a),u=rSi[o.placedSide];return ct.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:ct.jsx(Zxi,{...s,ref:r,style:{...s.style,display:"block"}})})});Lzn.displayName=Ozn;function iSi(e){return e!==null}var aSi=e=>({name:"transformOrigin",options:e,fn(t){var A,k,I;const{placement:r,rects:a,middlewareData:s}=t,u=((A=s.arrow)==null?void 0:A.centerOffset)!==0,h=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Dzn(r),b={start:"0%",center:"50%",end:"100%"}[m],_=(((k=s.arrow)==null?void 0:k.x)??0)+h/2,w=(((I=s.arrow)==null?void 0:I.y)??0)+f/2;let S="",C="";return p==="bottom"?(S=u?b:`${_}px`,C=`${-f}px`):p==="top"?(S=u?b:`${_}px`,C=`${a.floating.height+f}px`):p==="right"?(S=`${-f}px`,C=u?b:`${w}px`):p==="left"&&(S=`${a.floating.width+f}px`,C=u?b:`${w}px`),{data:{x:S,y:C}}}});function Dzn(e){const[t,r="center"]=e.split("-");return[t,r]}var sSi=kzn,Mzn=Izn,oSi=Nzn,lSi=Lzn,cSi="Portal",Pzn=ue.forwardRef((e,t)=>{var h;const{container:r,...a}=e,[s,o]=ue.useState(!1);jF(()=>o(!0),[]);const u=r||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return u?odt.createPortal(ct.jsx(wR.div,{...a,ref:t}),u):null});Pzn.displayName=cSi;function uSi(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var Apt=e=>{const{present:t,children:r}=e,a=hSi(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=z9(a.ref,dSi(s));return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};Apt.displayName="Presence";function hSi(e){const[t,r]=ue.useState(),a=ue.useRef({}),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=uSi(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=mwe(a.current);o.current=h==="mounted"?p:"none"},[h]),jF(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=mwe(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),jF(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,b=w=>{const C=mwe(a.current).includes(w.animationName);if(w.target===t&&C&&(f("ANIMATION_END"),!s.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},_=w=>{w.target===t&&(o.current=mwe(a.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{p&&(a.current=getComputedStyle(p)),r(p)},[])}}function mwe(e){return(e==null?void 0:e.animationName)||"none"}function dSi(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function fSi({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,s]=pSi({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:a,h=e9(r),f=ue.useCallback(p=>{if(o){const b=typeof p=="function"?p(e):p;b!==e&&h(b)}else s(p)},[o,e,s,h]);return[u,f]}function pSi({defaultProp:e,onChange:t}){const r=ue.useState(e),[a]=r,s=ue.useRef(a),o=e9(t);return ue.useEffect(()=>{s.current!==a&&(o(a),s.current=a)},[a,s,o]),r}var kpt="Popover",[Bzn]=yzn(kpt,[Czn]),mce=Czn(),[gSi,G9]=Bzn(kpt),Fzn=e=>{const{__scopePopover:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!1}=e,h=mce(t),f=ue.useRef(null),[p,m]=ue.useState(!1),[b=!1,_]=fSi({prop:a,defaultProp:s,onChange:o});return ct.jsx(sSi,{...h,children:ct.jsx(gSi,{scope:t,contentId:Xxi(),triggerRef:f,open:b,onOpenChange:_,onOpenToggle:ue.useCallback(()=>_(w=>!w),[_]),hasCustomAnchor:p,onCustomAnchorAdd:ue.useCallback(()=>m(!0),[]),onCustomAnchorRemove:ue.useCallback(()=>m(!1),[]),modal:u,children:r})})};Fzn.displayName=kpt;var $zn="PopoverAnchor",mSi=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9($zn,r),o=mce(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:h}=s;return ue.useEffect(()=>(u(),()=>h()),[u,h]),ct.jsx(Mzn,{...o,...a,ref:t})});mSi.displayName=$zn;var Uzn="PopoverTrigger",zzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9(Uzn,r),o=mce(r),u=z9(t,s.triggerRef),h=ct.jsx(wR.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":jzn(s.open),...a,ref:u,onClick:NO(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:ct.jsx(Mzn,{asChild:!0,...o,children:h})});zzn.displayName=Uzn;var Rpt="PopoverPortal",[bSi,ySi]=Bzn(Rpt,{forceMount:void 0}),Gzn=e=>{const{__scopePopover:t,forceMount:r,children:a,container:s}=e,o=G9(Rpt,t);return ct.jsx(bSi,{scope:t,forceMount:r,children:ct.jsx(Apt,{present:r||o.open,children:ct.jsx(Pzn,{asChild:!0,container:s,children:a})})})};Gzn.displayName=Rpt;var Fj="PopoverContent",qzn=ue.forwardRef((e,t)=>{const r=ySi(Fj,e.__scopePopover),{forceMount:a=r.forceMount,...s}=e,o=G9(Fj,e.__scopePopover);return ct.jsx(Apt,{present:a||o.open,children:o.modal?ct.jsx(vSi,{...s,ref:t}):ct.jsx(_Si,{...s,ref:t})})});qzn.displayName=Fj;var vSi=ue.forwardRef((e,t)=>{const r=G9(Fj,e.__scopePopover),a=ue.useRef(null),s=z9(t,a),o=ue.useRef(!1);return ue.useEffect(()=>{const u=a.current;if(u)return Vle(u)},[]),ct.jsx(kW,{as:Spt,allowPinchZoom:!0,children:ct.jsx(Hzn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:NO(e.onCloseAutoFocus,u=>{var h;u.preventDefault(),o.current||(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:NO(e.onPointerDownOutside,u=>{const h=u.detail.originalEvent,f=h.button===0&&h.ctrlKey===!0,p=h.button===2||f;o.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:NO(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),_Si=ue.forwardRef((e,t)=>{const r=G9(Fj,e.__scopePopover),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(Hzn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Hzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...b}=e,_=G9(Fj,r),w=mce(r);return Uxi(),ct.jsx(Ezn,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(_zn,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>_.onOpenChange(!1),children:ct.jsx(oSi,{"data-state":jzn(_.open),role:"dialog",id:_.contentId,...w,...b,ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Vzn="PopoverClose",wSi=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9(Vzn,r);return ct.jsx(wR.button,{type:"button",...a,ref:t,onClick:NO(e.onClick,()=>s.onOpenChange(!1))})});wSi.displayName=Vzn;var ESi="PopoverArrow",Yzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=mce(r);return ct.jsx(lSi,{...s,...a,ref:t})});Yzn.displayName=ESi;function jzn(e){return e?"open":"closed"}var M5a=Fzn,P5a=zzn,B5a=Gzn,F5a=qzn,$5a=Yzn,Wzn={exports:{}};(function(e,t){(function(){var r={};e.exports=r,r.simpleFilter=function(a,s){return s.filter(function(o){return r.test(a,o)})},r.test=function(a,s){return r.match(a,s)!==null},r.match=function(a,s,o){o=o||{};var u=0,h=[],f=s.length,p=0,m=0,b=o.pre||"",_=o.post||"",w=o.caseSensitive&&s||s.toLowerCase(),S;a=o.caseSensitive&&a||a.toLowerCase();for(var C=0;C<f;C++)S=s[C],w[C]===a[u]?(S=b+S+_,u+=1,m+=1+m):m=0,p+=m,h[h.length]=S;return u===a.length?(p=w===a?1/0:p,{rendered:h.join(""),score:p}):null},r.filter=function(a,s,o){return!s||s.length===0?[]:typeof a!="string"?s:(o=o||{},s.reduce(function(u,h,f,p){var m=h;o.extract&&(m=o.extract(h));var b=r.match(a,m,o);return b!=null&&(u[u.length]={string:b.rendered,score:b.score,index:f,original:h}),u},[]).sort(function(u,h){var f=h.score-u.score;return f||u.index-h.index}))}})()})(Wzn);var xSi=Wzn.exports;const U5a=O1(xSi),SSi={},T_n=e=>{let t;const r=new Set,a=(m,b)=>{const _=typeof m=="function"?m(t):m;if(!Object.is(_,t)){const w=t;t=b??(typeof _!="object"||_===null)?_:Object.assign({},t,_),r.forEach(S=>S(t,w))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(SSi?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},p=t=e(a,s,f);return f},TSi=e=>e?T_n(e):T_n,Kzn={},{useDebugValue:CSi}=Er,{useSyncExternalStoreWithSelector:ASi}=BFr;let C_n=!1;const kSi=e=>e;function RSi(e,t=kSi,r){(Kzn?"production":void 0)!=="production"&&r&&!C_n&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),C_n=!0);const a=ASi(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return CSi(a),a}const A_n=e=>{(Kzn?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?TSi(e):e,r=(a,s)=>RSi(t,a,s);return Object.assign(r,t),r},ISi=e=>e?A_n(e):A_n;var k_n,R_n;const I_n=typeof window<"u"&&((k_n=window.document)!=null&&k_n.createElement||((R_n=window.navigator)==null?void 0:R_n.product)==="ReactNative")?Er.useLayoutEffect:Er.useEffect;function z5a(){const e=ISi(t=>({current:new Array,version:0,set:t}));return{In:({children:t})=>{const r=e(s=>s.set),a=e(s=>s.version);return I_n(()=>{r(s=>({version:s.version+1}))},[]),I_n(()=>(r(({current:s})=>({current:[...s,t]})),()=>r(({current:s})=>({current:s.filter(o=>o!==t)}))),[t,a]),null},Out:()=>{const t=e(r=>r.current);return Er.createElement(Er.Fragment,null,t)}}}function z7(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ipt(e,t=[]){let r=[];function a(o,u){const h=ue.createContext(u),f=r.length;r=[...r,u];function p(b){const{scope:_,children:w,...S}=b,C=(_==null?void 0:_[e][f])||h,A=ue.useMemo(()=>S,Object.values(S));return ue.createElement(C.Provider,{value:A},w)}function m(b,_){const w=(_==null?void 0:_[e][f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return p.displayName=o+"Provider",[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,NSi(s,...t)]}function NSi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}function OSi(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Xzn(...e){return t=>e.forEach(r=>OSi(r,t))}function N3e(...e){return ue.useCallback(Xzn(...e),e)}const O3e=ue.forwardRef((e,t)=>{const{children:r,...a}=e,s=ue.Children.toArray(r),o=s.find(DSi);if(o){const u=o.props.children,h=s.map(f=>f===o?ue.Children.count(u)>1?ue.Children.only(null):ue.isValidElement(u)?u.props.children:null:f);return ue.createElement(Ult,n_({},a,{ref:t}),ue.isValidElement(u)?ue.cloneElement(u,void 0,h):null)}return ue.createElement(Ult,n_({},a,{ref:t}),r)});O3e.displayName="Slot";const Ult=ue.forwardRef((e,t)=>{const{children:r,...a}=e;return ue.isValidElement(r)?ue.cloneElement(r,{...MSi(a,r.props),ref:Xzn(t,r.ref)}):ue.Children.count(r)>1?ue.Children.only(null):null});Ult.displayName="SlotClone";const LSi=({children:e})=>ue.createElement(ue.Fragment,null,e);function DSi(e){return ue.isValidElement(e)&&e.type===LSi}function MSi(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{o(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function PSi(e){const t=e+"CollectionProvider",[r,a]=Ipt(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:S,children:C}=w,A=Er.useRef(null),k=Er.useRef(new Map).current;return Er.createElement(s,{scope:S,itemMap:k,collectionRef:A},C)},h=e+"CollectionSlot",f=Er.forwardRef((w,S)=>{const{scope:C,children:A}=w,k=o(h,C),I=N3e(S,k.collectionRef);return Er.createElement(O3e,{ref:I},A)}),p=e+"CollectionItemSlot",m="data-radix-collection-item",b=Er.forwardRef((w,S)=>{const{scope:C,children:A,...k}=w,I=Er.useRef(null),N=N3e(S,I),L=o(p,C);return Er.useEffect(()=>(L.itemMap.set(I,{ref:I,...k}),()=>void L.itemMap.delete(I))),Er.createElement(O3e,{[m]:"",ref:N},A)});function _(w){const S=o(e+"CollectionConsumer",w);return Er.useCallback(()=>{const A=S.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,P)=>k.indexOf(L.ref.current)-k.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:f,ItemSlot:b},_,a]}const zlt=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},BSi=g$.useId||(()=>{});let FSi=0;function Qzn(e){const[t,r]=ue.useState(BSi());return zlt(()=>{r(a=>a??String(FSi++))},[e]),e||(t?`radix-${t}`:"")}const $Si=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],GW=$Si.reduce((e,t)=>{const r=ue.forwardRef((a,s)=>{const{asChild:o,...u}=a,h=o?O3e:t;return ue.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),ue.createElement(h,n_({},u,{ref:s}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Npt(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)===null||a===void 0?void 0:a.call(t,...r)},[])}function Zzn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,s]=USi({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:a,h=Npt(r),f=ue.useCallback(p=>{if(o){const b=typeof p=="function"?p(e):p;b!==e&&h(b)}else s(p)},[o,e,s,h]);return[u,f]}function USi({defaultProp:e,onChange:t}){const r=ue.useState(e),[a]=r,s=ue.useRef(a),o=Npt(t);return ue.useEffect(()=>{s.current!==a&&(o(a),s.current=a)},[a,s,o]),r}const zSi=ue.createContext(void 0);function Jzn(e){const t=ue.useContext(zSi);return e||t||"ltr"}const bnt="rovingFocusGroup.onEntryFocus",GSi={bubbles:!1,cancelable:!0},Opt="RovingFocusGroup",[Glt,eGn,qSi]=PSi(Opt),[HSi,tGn]=Ipt(Opt,[qSi]),[VSi,YSi]=HSi(Opt),jSi=ue.forwardRef((e,t)=>ue.createElement(Glt.Provider,{scope:e.__scopeRovingFocusGroup},ue.createElement(Glt.Slot,{scope:e.__scopeRovingFocusGroup},ue.createElement(WSi,n_({},e,{ref:t}))))),WSi=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:s=!1,dir:o,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:f,onEntryFocus:p,...m}=e,b=ue.useRef(null),_=N3e(t,b),w=Jzn(o),[S=null,C]=Zzn({prop:u,defaultProp:h,onChange:f}),[A,k]=ue.useState(!1),I=Npt(p),N=eGn(r),L=ue.useRef(!1),[P,M]=ue.useState(0);return ue.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(bnt,I),()=>F.removeEventListener(bnt,I)},[I]),ue.createElement(VSi,{scope:r,orientation:a,dir:w,loop:s,currentTabStopId:S,onItemFocus:ue.useCallback(F=>C(F),[C]),onItemShiftTab:ue.useCallback(()=>k(!0),[]),onFocusableItemAdd:ue.useCallback(()=>M(F=>F+1),[]),onFocusableItemRemove:ue.useCallback(()=>M(F=>F-1),[])},ue.createElement(GW.div,n_({tabIndex:A||P===0?-1:0,"data-orientation":a},m,{ref:_,style:{outline:"none",...e.style},onMouseDown:z7(e.onMouseDown,()=>{L.current=!0}),onFocus:z7(e.onFocus,F=>{const U=!L.current;if(F.target===F.currentTarget&&U&&!A){const $=new CustomEvent(bnt,GSi);if(F.currentTarget.dispatchEvent($),!$.defaultPrevented){const G=N().filter(W=>W.focusable),B=G.find(W=>W.active),Z=G.find(W=>W.id===S),Y=[B,Z,...G].filter(Boolean).map(W=>W.ref.current);nGn(Y)}}L.current=!1}),onBlur:z7(e.onBlur,()=>k(!1))})))}),KSi="RovingFocusGroupItem",XSi=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:o,...u}=e,h=Qzn(),f=o||h,p=YSi(KSi,r),m=p.currentTabStopId===f,b=eGn(r),{onFocusableItemAdd:_,onFocusableItemRemove:w}=p;return ue.useEffect(()=>{if(a)return _(),()=>w()},[a,_,w]),ue.createElement(Glt.ItemSlot,{scope:r,id:f,focusable:a,active:s},ue.createElement(GW.span,n_({tabIndex:m?0:-1,"data-orientation":p.orientation},u,{ref:t,onMouseDown:z7(e.onMouseDown,S=>{a?p.onItemFocus(f):S.preventDefault()}),onFocus:z7(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:z7(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){p.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const C=JSi(S,p.orientation,p.dir);if(C!==void 0){S.preventDefault();let k=b().filter(I=>I.focusable).map(I=>I.ref.current);if(C==="last")k.reverse();else if(C==="prev"||C==="next"){C==="prev"&&k.reverse();const I=k.indexOf(S.currentTarget);k=p.loop?e4i(k,I+1):k.slice(I+1)}setTimeout(()=>nGn(k))}})})))}),QSi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ZSi(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function JSi(e,t,r){const a=ZSi(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return QSi[a]}function nGn(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function e4i(e,t){return e.map((r,a)=>e[(t+a)%e.length])}const t4i=jSi,n4i=XSi;function r4i(e,t){return ue.useReducer((r,a)=>{const s=t[r][a];return s??r},e)}const rGn=e=>{const{present:t,children:r}=e,a=i4i(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=N3e(a.ref,s.ref);return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};rGn.displayName="Presence";function i4i(e){const[t,r]=ue.useState(),a=ue.useRef({}),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=r4i(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=bwe(a.current);o.current=h==="mounted"?p:"none"},[h]),zlt(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=bwe(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),zlt(()=>{if(t){const p=b=>{const w=bwe(a.current).includes(b.animationName);b.target===t&&w&&w9.flushSync(()=>f("ANIMATION_END"))},m=b=>{b.target===t&&(o.current=bwe(a.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{p&&(a.current=getComputedStyle(p)),r(p)},[])}}function bwe(e){return(e==null?void 0:e.animationName)||"none"}const iGn="Tabs",[a4i]=Ipt(iGn,[tGn]),aGn=tGn(),[s4i,Lpt]=a4i(iGn),o4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,onValueChange:s,defaultValue:o,orientation:u="horizontal",dir:h,activationMode:f="automatic",...p}=e,m=Jzn(h),[b,_]=Zzn({prop:a,onChange:s,defaultProp:o});return ue.createElement(s4i,{scope:r,baseId:Qzn(),value:b,onValueChange:_,orientation:u,dir:m,activationMode:f},ue.createElement(GW.div,n_({dir:m,"data-orientation":u},p,{ref:t})))}),l4i="TabsList",c4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,loop:a=!0,...s}=e,o=Lpt(l4i,r),u=aGn(r);return ue.createElement(t4i,n_({asChild:!0},u,{orientation:o.orientation,dir:o.dir,loop:a}),ue.createElement(GW.div,n_({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),u4i="TabsTrigger",h4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,disabled:s=!1,...o}=e,u=Lpt(u4i,r),h=aGn(r),f=sGn(u.baseId,a),p=oGn(u.baseId,a),m=a===u.value;return ue.createElement(n4i,n_({asChild:!0},h,{focusable:!s,active:m}),ue.createElement(GW.button,n_({type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f},o,{ref:t,onMouseDown:z7(e.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?u.onValueChange(a):b.preventDefault()}),onKeyDown:z7(e.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&u.onValueChange(a)}),onFocus:z7(e.onFocus,()=>{const b=u.activationMode!=="manual";!m&&!s&&b&&u.onValueChange(a)})})))}),d4i="TabsContent",f4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,forceMount:s,children:o,...u}=e,h=Lpt(d4i,r),f=sGn(h.baseId,a),p=oGn(h.baseId,a),m=a===h.value,b=ue.useRef(m);return ue.useEffect(()=>{const _=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(_)},[]),ue.createElement(rGn,{present:s||m},({present:_})=>ue.createElement(GW.div,n_({"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":f,hidden:!_,id:p,tabIndex:0},u,{ref:t,style:{...e.style,animationDuration:b.current?"0s":void 0}}),_&&o))});function sGn(e,t){return`${e}-trigger-${t}`}function oGn(e,t){return`${e}-content-${t}`}const G5a=o4i,q5a=c4i,H5a=h4i,V5a=f4i;var p4i="Expected a function",N_n=NaN,g4i="[object Symbol]",m4i=/^\s+|\s+$/g,b4i=/^[-+]0x[0-9a-f]+$/i,y4i=/^0b[01]+$/i,v4i=/^0o[0-7]+$/i,_4i=parseInt,w4i=typeof ml=="object"&&ml&&ml.Object===Object&&ml,E4i=typeof self=="object"&&self&&self.Object===Object&&self,x4i=w4i||E4i||Function("return this")(),S4i=Object.prototype,T4i=S4i.toString,C4i=Math.max,A4i=Math.min,ynt=function(){return x4i.Date.now()};function k4i(e,t,r){var a,s,o,u,h,f,p=0,m=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(p4i);t=O_n(t)||0,qlt(r)&&(m=!!r.leading,b="maxWait"in r,o=b?C4i(O_n(r.maxWait)||0,t):o,_="trailing"in r?!!r.trailing:_);function w(M){var F=a,U=s;return a=s=void 0,p=M,u=e.apply(U,F),u}function S(M){return p=M,h=setTimeout(k,t),m?w(M):u}function C(M){var F=M-f,U=M-p,$=t-F;return b?A4i($,o-U):$}function A(M){var F=M-f,U=M-p;return f===void 0||F>=t||F<0||b&&U>=o}function k(){var M=ynt();if(A(M))return I(M);h=setTimeout(k,C(M))}function I(M){return h=void 0,_&&a?w(M):(a=s=void 0,u)}function N(){h!==void 0&&clearTimeout(h),p=0,a=f=s=h=void 0}function L(){return h===void 0?u:I(ynt())}function P(){var M=ynt(),F=A(M);if(a=arguments,s=this,f=M,F){if(h===void 0)return S(f);if(b)return h=setTimeout(k,t),w(f)}return h===void 0&&(h=setTimeout(k,t)),u}return P.cancel=N,P.flush=L,P}function qlt(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function R4i(e){return!!e&&typeof e=="object"}function I4i(e){return typeof e=="symbol"||R4i(e)&&T4i.call(e)==g4i}function O_n(e){if(typeof e=="number")return e;if(I4i(e))return N_n;if(qlt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qlt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(m4i,"");var r=y4i.test(e);return r||v4i.test(e)?_4i(e.slice(2),r?2:8):b4i.test(e)?N_n:+e}var N4i=k4i;const Y5a=O1(N4i);class D2{constructor(t,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=a}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new D2(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Pw{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Pw(r,D2.range(this,t))}}class Ri{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,s,o,u=r&&r.loc;if(u&&u.start<=u.end){var h=u.lexer.input;s=u.start,o=u.end,s===h.length?a+=" at end of input: ":a+=" at position "+(s+1)+": ";var f=h.slice(s,o).replace(/[^]/g,"$&̲"),p;s>15?p="…"+h.slice(s-15,s):p=h.slice(0,s);var m;o+15<h.length?m=h.slice(o,o+15)+"…":m=h.slice(o),a+=p+f+m}var b=new Error(a);return b.name="ParseError",b.__proto__=Ri.prototype,b.position=s,s!=null&&o!=null&&(b.length=o-s),b.rawMessage=t,b}}Ri.prototype.__proto__=Error.prototype;var O4i=function(t,r){return t===void 0?r:t},L4i=/([A-Z])/g,D4i=function(t){return t.replace(L4i,"-$1").toLowerCase()},M4i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},P4i=/[&><"']/g;function B4i(e){return String(e).replace(P4i,t=>M4i[t])}var lGn=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},F4i=function(t){var r=lGn(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},$4i=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},U4i=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},hu={deflt:O4i,escape:B4i,hyphenate:D4i,getBaseElem:lGn,isCharacterBox:F4i,protocolFromUrl:U4i},wse={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function z4i(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Dpt{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in wse)if(wse.hasOwnProperty(r)){var a=wse[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:z4i(a)}}reportNonstrict(t,r,a){var s=this.strict;if(typeof s=="function"&&(s=s(t,r,a)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new Ri("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var s=this.strict;if(typeof s=="function")try{s=s(t,r,a)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=hu.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}}class DN{constructor(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}sup(){return MC[G4i[this.id]]}sub(){return MC[q4i[this.id]]}fracNum(){return MC[H4i[this.id]]}fracDen(){return MC[V4i[this.id]]}cramp(){return MC[Y4i[this.id]]}text(){return MC[j4i[this.id]]}isTight(){return this.size>=2}}var Mpt=0,L3e=1,JV=2,G7=3,Poe=4,sS=5,$j=6,ev=7,MC=[new DN(Mpt,0,!1),new DN(L3e,0,!0),new DN(JV,1,!1),new DN(G7,1,!0),new DN(Poe,2,!1),new DN(sS,2,!0),new DN($j,3,!1),new DN(ev,3,!0)],G4i=[Poe,sS,Poe,sS,$j,ev,$j,ev],q4i=[sS,sS,sS,sS,ev,ev,ev,ev],H4i=[JV,G7,Poe,sS,$j,ev,$j,ev],V4i=[G7,G7,sS,sS,ev,ev,ev,ev],Y4i=[L3e,L3e,G7,G7,sS,sS,ev,ev],j4i=[Mpt,L3e,JV,G7,JV,G7,JV,G7],Js={DISPLAY:MC[Mpt],TEXT:MC[JV],SCRIPT:MC[Poe],SCRIPTSCRIPT:MC[$j]},Hlt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function W4i(e){for(var t=0;t<Hlt.length;t++)for(var r=Hlt[t],a=0;a<r.blocks.length;a++){var s=r.blocks[a];if(e>=s[0]&&e<=s[1])return r.name}return null}var yxe=[];Hlt.forEach(e=>e.blocks.forEach(t=>yxe.push(...t)));function cGn(e){for(var t=0;t<yxe.length;t+=2)if(e>=yxe[t]&&e<=yxe[t+1])return!0;return!1}var VH=80,K4i=function(t,r){return"M95,"+(622+t+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},X4i=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Q4i=function(t,r){return"M983 "+(10+t+r)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Z4i=function(t,r){return"M424,"+(2398+t+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
h400000v`+(40+t)+"h-400000z"},J4i=function(t,r){return"M473,"+(2713+t+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},e3i=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},t3i=function(t,r,a){var s=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
H742v`+s+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},n3i=function(t,r,a){r=1e3*r;var s="";switch(t){case"sqrtMain":s=K4i(r,VH);break;case"sqrtSize1":s=X4i(r,VH);break;case"sqrtSize2":s=Q4i(r,VH);break;case"sqrtSize3":s=Z4i(r,VH);break;case"sqrtSize4":s=J4i(r,VH);break;case"sqrtTall":s=t3i(r,VH,a)}return s},r3i=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},L_n={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},i3i=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let bce=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}};var XC={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ywe={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},D_n={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function uGn(e,t){XC[e]=t}function Ppt(e,t,r){if(!XC[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),s=XC[t][a];if(!s&&e[0]in D_n&&(a=D_n[e[0]].charCodeAt(0),s=XC[t][a]),!s&&r==="text"&&cGn(a)&&(s=XC[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var vnt={};function a3i(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!vnt[t]){var r=vnt[t]={cssEmPerMu:ywe.quad[t]/18};for(var a in ywe)ywe.hasOwnProperty(a)&&(r[a]=ywe[a][t])}return vnt[t]}var s3i=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],M_n=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],P_n=function(t,r){return r.size<2?t:s3i[t-1][r.size-1]};class p7{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||p7.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=M_n[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return new p7(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:P_n(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:M_n[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=P_n(p7.BASESIZE,t);return this.size===r&&this.textSize===p7.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==p7.BASESIZE?["sizing","reset-size"+this.size,"size"+p7.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=a3i(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}p7.BASESIZE=6;var Vlt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},o3i={ex:!0,em:!0,mu:!0},hGn=function(t){return typeof t!="string"&&(t=t.unit),t in Vlt||t in o3i||t==="ex"},Rf=function(t,r){var a;if(t.unit in Vlt)a=Vlt[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var s;if(r.style.isTight()?s=r.havingStyle(r.style.text()):s=r,t.unit==="ex")a=s.fontMetrics().xHeight;else if(t.unit==="em")a=s.fontMetrics().quad;else throw new Ri("Invalid unit: '"+t.unit+"'");s!==r&&(a*=s.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},Qi=function(t){return+t.toFixed(4)+"em"},t9=function(t){return t.filter(r=>r).join(" ")},dGn=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var s=r.getColor();s&&(this.style.color=s)}},fGn=function(t){var r=document.createElement(t);r.className=t9(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&r.setAttribute(s,this.attributes[s]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},l3i=/[\s"'>/=\x00-\x1f]/,pGn=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+hu.escape(t9(this.classes))+'"');var a="";for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=hu.hyphenate(s)+":"+this.style[s]+";");a&&(r+=' style="'+hu.escape(a)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(l3i.test(o))throw new Ri("Invalid attribute name '"+o+"'");r+=" "+o+'="'+hu.escape(this.attributes[o])+'"'}r+=">";for(var u=0;u<this.children.length;u++)r+=this.children[u].toMarkup();return r+="</"+t+">",r};class yce{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,dGn.call(this,t,a,s),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return fGn.call(this,"span")}toMarkup(){return pGn.call(this,"span")}}class Bpt{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,dGn.call(this,r,s),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return fGn.call(this,"a")}toMarkup(){return pGn.call(this,"a")}}class c3i{constructor(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+hu.escape(this.src)+'"'+(' alt="'+hu.escape(this.alt)+'"'),r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=hu.hyphenate(a)+":"+this.style[a]+";");return r&&(t+=' style="'+hu.escape(r)+'"'),t+="'/>",t}}var u3i={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class xS{constructor(t,r,a,s,o,u,h,f){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=a||0,this.italic=s||0,this.skew=o||0,this.width=u||0,this.classes=h||[],this.style=f||{},this.maxFontSize=0;var p=W4i(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=u3i[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Qi(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=t9(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(r=r||document.createElement("span"),r.style[a]=this.style[a]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=hu.escape(t9(this.classes)),r+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=hu.hyphenate(s)+":"+this.style[s]+";");a&&(t=!0,r+=' style="'+hu.escape(a)+'"');var o=hu.escape(this.text);return t?(r+=">",r+=o,r+="</span>",r):o}}class aR{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);for(var s=0;s<this.children.length;s++)r.appendChild(this.children[s].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+hu.escape(this.attributes[r])+'"');t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</svg>",t}}class n9{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",L_n[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+hu.escape(this.alternate)+'"/>':'<path d="'+hu.escape(L_n[this.pathName])+'"/>'}}class Ylt{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+hu.escape(this.attributes[r])+'"');return t+="/>",t}}function B_n(e){if(e instanceof xS)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function h3i(e){if(e instanceof yce)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var d3i={bin:1,close:1,inner:1,open:1,punct:1,rel:1},f3i={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},td={math:{},text:{}};function Re(e,t,r,a,s,o){td[e][s]={font:t,group:r,replace:a},o&&a&&(td[e][a]=td[e][s])}var Be="math",di="text",rt="main",Wt="ams",Xd="accent-token",Oa="bin",vv="close",qW="inner",Qs="mathord",B1="op-token",jw="open",GAe="punct",tn="rel",ER="spacing",Tn="textord";Re(Be,rt,tn,"≡","\\equiv",!0);Re(Be,rt,tn,"≺","\\prec",!0);Re(Be,rt,tn,"≻","\\succ",!0);Re(Be,rt,tn,"∼","\\sim",!0);Re(Be,rt,tn,"⊥","\\perp");Re(Be,rt,tn,"⪯","\\preceq",!0);Re(Be,rt,tn,"⪰","\\succeq",!0);Re(Be,rt,tn,"≃","\\simeq",!0);Re(Be,rt,tn,"∣","\\mid",!0);Re(Be,rt,tn,"≪","\\ll",!0);Re(Be,rt,tn,"≫","\\gg",!0);Re(Be,rt,tn,"≍","\\asymp",!0);Re(Be,rt,tn,"∥","\\parallel");Re(Be,rt,tn,"⋈","\\bowtie",!0);Re(Be,rt,tn,"⌣","\\smile",!0);Re(Be,rt,tn,"⊑","\\sqsubseteq",!0);Re(Be,rt,tn,"⊒","\\sqsupseteq",!0);Re(Be,rt,tn,"≐","\\doteq",!0);Re(Be,rt,tn,"⌢","\\frown",!0);Re(Be,rt,tn,"∋","\\ni",!0);Re(Be,rt,tn,"∝","\\propto",!0);Re(Be,rt,tn,"⊢","\\vdash",!0);Re(Be,rt,tn,"⊣","\\dashv",!0);Re(Be,rt,tn,"∋","\\owns");Re(Be,rt,GAe,".","\\ldotp");Re(Be,rt,GAe,"⋅","\\cdotp");Re(Be,rt,Tn,"#","\\#");Re(di,rt,Tn,"#","\\#");Re(Be,rt,Tn,"&","\\&");Re(di,rt,Tn,"&","\\&");Re(Be,rt,Tn,"ℵ","\\aleph",!0);Re(Be,rt,Tn,"∀","\\forall",!0);Re(Be,rt,Tn,"ℏ","\\hbar",!0);Re(Be,rt,Tn,"∃","\\exists",!0);Re(Be,rt,Tn,"∇","\\nabla",!0);Re(Be,rt,Tn,"♭","\\flat",!0);Re(Be,rt,Tn,"ℓ","\\ell",!0);Re(Be,rt,Tn,"♮","\\natural",!0);Re(Be,rt,Tn,"♣","\\clubsuit",!0);Re(Be,rt,Tn,"℘","\\wp",!0);Re(Be,rt,Tn,"♯","\\sharp",!0);Re(Be,rt,Tn,"♢","\\diamondsuit",!0);Re(Be,rt,Tn,"ℜ","\\Re",!0);Re(Be,rt,Tn,"♡","\\heartsuit",!0);Re(Be,rt,Tn,"ℑ","\\Im",!0);Re(Be,rt,Tn,"♠","\\spadesuit",!0);Re(Be,rt,Tn,"§","\\S",!0);Re(di,rt,Tn,"§","\\S");Re(Be,rt,Tn,"¶","\\P",!0);Re(di,rt,Tn,"¶","\\P");Re(Be,rt,Tn,"†","\\dag");Re(di,rt,Tn,"†","\\dag");Re(di,rt,Tn,"†","\\textdagger");Re(Be,rt,Tn,"‡","\\ddag");Re(di,rt,Tn,"‡","\\ddag");Re(di,rt,Tn,"‡","\\textdaggerdbl");Re(Be,rt,vv,"⎱","\\rmoustache",!0);Re(Be,rt,jw,"⎰","\\lmoustache",!0);Re(Be,rt,vv,"⟯","\\rgroup",!0);Re(Be,rt,jw,"⟮","\\lgroup",!0);Re(Be,rt,Oa,"∓","\\mp",!0);Re(Be,rt,Oa,"⊖","\\ominus",!0);Re(Be,rt,Oa,"⊎","\\uplus",!0);Re(Be,rt,Oa,"⊓","\\sqcap",!0);Re(Be,rt,Oa,"∗","\\ast");Re(Be,rt,Oa,"⊔","\\sqcup",!0);Re(Be,rt,Oa,"◯","\\bigcirc",!0);Re(Be,rt,Oa,"∙","\\bullet",!0);Re(Be,rt,Oa,"‡","\\ddagger");Re(Be,rt,Oa,"≀","\\wr",!0);Re(Be,rt,Oa,"⨿","\\amalg");Re(Be,rt,Oa,"&","\\And");Re(Be,rt,tn,"⟵","\\longleftarrow",!0);Re(Be,rt,tn,"⇐","\\Leftarrow",!0);Re(Be,rt,tn,"⟸","\\Longleftarrow",!0);Re(Be,rt,tn,"⟶","\\longrightarrow",!0);Re(Be,rt,tn,"⇒","\\Rightarrow",!0);Re(Be,rt,tn,"⟹","\\Longrightarrow",!0);Re(Be,rt,tn,"↔","\\leftrightarrow",!0);Re(Be,rt,tn,"⟷","\\longleftrightarrow",!0);Re(Be,rt,tn,"⇔","\\Leftrightarrow",!0);Re(Be,rt,tn,"⟺","\\Longleftrightarrow",!0);Re(Be,rt,tn,"↦","\\mapsto",!0);Re(Be,rt,tn,"⟼","\\longmapsto",!0);Re(Be,rt,tn,"↗","\\nearrow",!0);Re(Be,rt,tn,"↩","\\hookleftarrow",!0);Re(Be,rt,tn,"↪","\\hookrightarrow",!0);Re(Be,rt,tn,"↘","\\searrow",!0);Re(Be,rt,tn,"↼","\\leftharpoonup",!0);Re(Be,rt,tn,"⇀","\\rightharpoonup",!0);Re(Be,rt,tn,"↙","\\swarrow",!0);Re(Be,rt,tn,"↽","\\leftharpoondown",!0);Re(Be,rt,tn,"⇁","\\rightharpoondown",!0);Re(Be,rt,tn,"↖","\\nwarrow",!0);Re(Be,rt,tn,"⇌","\\rightleftharpoons",!0);Re(Be,Wt,tn,"≮","\\nless",!0);Re(Be,Wt,tn,"","\\@nleqslant");Re(Be,Wt,tn,"","\\@nleqq");Re(Be,Wt,tn,"⪇","\\lneq",!0);Re(Be,Wt,tn,"≨","\\lneqq",!0);Re(Be,Wt,tn,"","\\@lvertneqq");Re(Be,Wt,tn,"⋦","\\lnsim",!0);Re(Be,Wt,tn,"⪉","\\lnapprox",!0);Re(Be,Wt,tn,"⊀","\\nprec",!0);Re(Be,Wt,tn,"⋠","\\npreceq",!0);Re(Be,Wt,tn,"⋨","\\precnsim",!0);Re(Be,Wt,tn,"⪹","\\precnapprox",!0);Re(Be,Wt,tn,"≁","\\nsim",!0);Re(Be,Wt,tn,"","\\@nshortmid");Re(Be,Wt,tn,"∤","\\nmid",!0);Re(Be,Wt,tn,"⊬","\\nvdash",!0);Re(Be,Wt,tn,"⊭","\\nvDash",!0);Re(Be,Wt,tn,"⋪","\\ntriangleleft");Re(Be,Wt,tn,"⋬","\\ntrianglelefteq",!0);Re(Be,Wt,tn,"⊊","\\subsetneq",!0);Re(Be,Wt,tn,"","\\@varsubsetneq");Re(Be,Wt,tn,"⫋","\\subsetneqq",!0);Re(Be,Wt,tn,"","\\@varsubsetneqq");Re(Be,Wt,tn,"≯","\\ngtr",!0);Re(Be,Wt,tn,"","\\@ngeqslant");Re(Be,Wt,tn,"","\\@ngeqq");Re(Be,Wt,tn,"⪈","\\gneq",!0);Re(Be,Wt,tn,"≩","\\gneqq",!0);Re(Be,Wt,tn,"","\\@gvertneqq");Re(Be,Wt,tn,"⋧","\\gnsim",!0);Re(Be,Wt,tn,"⪊","\\gnapprox",!0);Re(Be,Wt,tn,"⊁","\\nsucc",!0);Re(Be,Wt,tn,"⋡","\\nsucceq",!0);Re(Be,Wt,tn,"⋩","\\succnsim",!0);Re(Be,Wt,tn,"⪺","\\succnapprox",!0);Re(Be,Wt,tn,"≆","\\ncong",!0);Re(Be,Wt,tn,"","\\@nshortparallel");Re(Be,Wt,tn,"∦","\\nparallel",!0);Re(Be,Wt,tn,"⊯","\\nVDash",!0);Re(Be,Wt,tn,"⋫","\\ntriangleright");Re(Be,Wt,tn,"⋭","\\ntrianglerighteq",!0);Re(Be,Wt,tn,"","\\@nsupseteqq");Re(Be,Wt,tn,"⊋","\\supsetneq",!0);Re(Be,Wt,tn,"","\\@varsupsetneq");Re(Be,Wt,tn,"⫌","\\supsetneqq",!0);Re(Be,Wt,tn,"","\\@varsupsetneqq");Re(Be,Wt,tn,"⊮","\\nVdash",!0);Re(Be,Wt,tn,"⪵","\\precneqq",!0);Re(Be,Wt,tn,"⪶","\\succneqq",!0);Re(Be,Wt,tn,"","\\@nsubseteqq");Re(Be,Wt,Oa,"⊴","\\unlhd");Re(Be,Wt,Oa,"⊵","\\unrhd");Re(Be,Wt,tn,"↚","\\nleftarrow",!0);Re(Be,Wt,tn,"↛","\\nrightarrow",!0);Re(Be,Wt,tn,"⇍","\\nLeftarrow",!0);Re(Be,Wt,tn,"⇏","\\nRightarrow",!0);Re(Be,Wt,tn,"↮","\\nleftrightarrow",!0);Re(Be,Wt,tn,"⇎","\\nLeftrightarrow",!0);Re(Be,Wt,tn,"△","\\vartriangle");Re(Be,Wt,Tn,"ℏ","\\hslash");Re(Be,Wt,Tn,"▽","\\triangledown");Re(Be,Wt,Tn,"◊","\\lozenge");Re(Be,Wt,Tn,"Ⓢ","\\circledS");Re(Be,Wt,Tn,"®","\\circledR");Re(di,Wt,Tn,"®","\\circledR");Re(Be,Wt,Tn,"∡","\\measuredangle",!0);Re(Be,Wt,Tn,"∄","\\nexists");Re(Be,Wt,Tn,"℧","\\mho");Re(Be,Wt,Tn,"Ⅎ","\\Finv",!0);Re(Be,Wt,Tn,"⅁","\\Game",!0);Re(Be,Wt,Tn,"‵","\\backprime");Re(Be,Wt,Tn,"▲","\\blacktriangle");Re(Be,Wt,Tn,"▼","\\blacktriangledown");Re(Be,Wt,Tn,"■","\\blacksquare");Re(Be,Wt,Tn,"⧫","\\blacklozenge");Re(Be,Wt,Tn,"★","\\bigstar");Re(Be,Wt,Tn,"∢","\\sphericalangle",!0);Re(Be,Wt,Tn,"∁","\\complement",!0);Re(Be,Wt,Tn,"ð","\\eth",!0);Re(di,rt,Tn,"ð","ð");Re(Be,Wt,Tn,"╱","\\diagup");Re(Be,Wt,Tn,"╲","\\diagdown");Re(Be,Wt,Tn,"□","\\square");Re(Be,Wt,Tn,"□","\\Box");Re(Be,Wt,Tn,"◊","\\Diamond");Re(Be,Wt,Tn,"¥","\\yen",!0);Re(di,Wt,Tn,"¥","\\yen",!0);Re(Be,Wt,Tn,"✓","\\checkmark",!0);Re(di,Wt,Tn,"✓","\\checkmark");Re(Be,Wt,Tn,"ℶ","\\beth",!0);Re(Be,Wt,Tn,"ℸ","\\daleth",!0);Re(Be,Wt,Tn,"ℷ","\\gimel",!0);Re(Be,Wt,Tn,"ϝ","\\digamma",!0);Re(Be,Wt,Tn,"ϰ","\\varkappa");Re(Be,Wt,jw,"┌","\\@ulcorner",!0);Re(Be,Wt,vv,"┐","\\@urcorner",!0);Re(Be,Wt,jw,"└","\\@llcorner",!0);Re(Be,Wt,vv,"┘","\\@lrcorner",!0);Re(Be,Wt,tn,"≦","\\leqq",!0);Re(Be,Wt,tn,"⩽","\\leqslant",!0);Re(Be,Wt,tn,"⪕","\\eqslantless",!0);Re(Be,Wt,tn,"≲","\\lesssim",!0);Re(Be,Wt,tn,"⪅","\\lessapprox",!0);Re(Be,Wt,tn,"≊","\\approxeq",!0);Re(Be,Wt,Oa,"⋖","\\lessdot");Re(Be,Wt,tn,"⋘","\\lll",!0);Re(Be,Wt,tn,"≶","\\lessgtr",!0);Re(Be,Wt,tn,"⋚","\\lesseqgtr",!0);Re(Be,Wt,tn,"⪋","\\lesseqqgtr",!0);Re(Be,Wt,tn,"≑","\\doteqdot");Re(Be,Wt,tn,"≓","\\risingdotseq",!0);Re(Be,Wt,tn,"≒","\\fallingdotseq",!0);Re(Be,Wt,tn,"∽","\\backsim",!0);Re(Be,Wt,tn,"⋍","\\backsimeq",!0);Re(Be,Wt,tn,"⫅","\\subseteqq",!0);Re(Be,Wt,tn,"⋐","\\Subset",!0);Re(Be,Wt,tn,"⊏","\\sqsubset",!0);Re(Be,Wt,tn,"≼","\\preccurlyeq",!0);Re(Be,Wt,tn,"⋞","\\curlyeqprec",!0);Re(Be,Wt,tn,"≾","\\precsim",!0);Re(Be,Wt,tn,"⪷","\\precapprox",!0);Re(Be,Wt,tn,"⊲","\\vartriangleleft");Re(Be,Wt,tn,"⊴","\\trianglelefteq");Re(Be,Wt,tn,"⊨","\\vDash",!0);Re(Be,Wt,tn,"⊪","\\Vvdash",!0);Re(Be,Wt,tn,"⌣","\\smallsmile");Re(Be,Wt,tn,"⌢","\\smallfrown");Re(Be,Wt,tn,"≏","\\bumpeq",!0);Re(Be,Wt,tn,"≎","\\Bumpeq",!0);Re(Be,Wt,tn,"≧","\\geqq",!0);Re(Be,Wt,tn,"⩾","\\geqslant",!0);Re(Be,Wt,tn,"⪖","\\eqslantgtr",!0);Re(Be,Wt,tn,"≳","\\gtrsim",!0);Re(Be,Wt,tn,"⪆","\\gtrapprox",!0);Re(Be,Wt,Oa,"⋗","\\gtrdot");Re(Be,Wt,tn,"⋙","\\ggg",!0);Re(Be,Wt,tn,"≷","\\gtrless",!0);Re(Be,Wt,tn,"⋛","\\gtreqless",!0);Re(Be,Wt,tn,"⪌","\\gtreqqless",!0);Re(Be,Wt,tn,"≖","\\eqcirc",!0);Re(Be,Wt,tn,"≗","\\circeq",!0);Re(Be,Wt,tn,"≜","\\triangleq",!0);Re(Be,Wt,tn,"∼","\\thicksim");Re(Be,Wt,tn,"≈","\\thickapprox");Re(Be,Wt,tn,"⫆","\\supseteqq",!0);Re(Be,Wt,tn,"⋑","\\Supset",!0);Re(Be,Wt,tn,"⊐","\\sqsupset",!0);Re(Be,Wt,tn,"≽","\\succcurlyeq",!0);Re(Be,Wt,tn,"⋟","\\curlyeqsucc",!0);Re(Be,Wt,tn,"≿","\\succsim",!0);Re(Be,Wt,tn,"⪸","\\succapprox",!0);Re(Be,Wt,tn,"⊳","\\vartriangleright");Re(Be,Wt,tn,"⊵","\\trianglerighteq");Re(Be,Wt,tn,"⊩","\\Vdash",!0);Re(Be,Wt,tn,"∣","\\shortmid");Re(Be,Wt,tn,"∥","\\shortparallel");Re(Be,Wt,tn,"≬","\\between",!0);Re(Be,Wt,tn,"⋔","\\pitchfork",!0);Re(Be,Wt,tn,"∝","\\varpropto");Re(Be,Wt,tn,"◀","\\blacktriangleleft");Re(Be,Wt,tn,"∴","\\therefore",!0);Re(Be,Wt,tn,"∍","\\backepsilon");Re(Be,Wt,tn,"▶","\\blacktriangleright");Re(Be,Wt,tn,"∵","\\because",!0);Re(Be,Wt,tn,"⋘","\\llless");Re(Be,Wt,tn,"⋙","\\gggtr");Re(Be,Wt,Oa,"⊲","\\lhd");Re(Be,Wt,Oa,"⊳","\\rhd");Re(Be,Wt,tn,"≂","\\eqsim",!0);Re(Be,rt,tn,"⋈","\\Join");Re(Be,Wt,tn,"≑","\\Doteq",!0);Re(Be,Wt,Oa,"∔","\\dotplus",!0);Re(Be,Wt,Oa,"∖","\\smallsetminus");Re(Be,Wt,Oa,"⋒","\\Cap",!0);Re(Be,Wt,Oa,"⋓","\\Cup",!0);Re(Be,Wt,Oa,"⩞","\\doublebarwedge",!0);Re(Be,Wt,Oa,"⊟","\\boxminus",!0);Re(Be,Wt,Oa,"⊞","\\boxplus",!0);Re(Be,Wt,Oa,"⋇","\\divideontimes",!0);Re(Be,Wt,Oa,"⋉","\\ltimes",!0);Re(Be,Wt,Oa,"⋊","\\rtimes",!0);Re(Be,Wt,Oa,"⋋","\\leftthreetimes",!0);Re(Be,Wt,Oa,"⋌","\\rightthreetimes",!0);Re(Be,Wt,Oa,"⋏","\\curlywedge",!0);Re(Be,Wt,Oa,"⋎","\\curlyvee",!0);Re(Be,Wt,Oa,"⊝","\\circleddash",!0);Re(Be,Wt,Oa,"⊛","\\circledast",!0);Re(Be,Wt,Oa,"⋅","\\centerdot");Re(Be,Wt,Oa,"⊺","\\intercal",!0);Re(Be,Wt,Oa,"⋒","\\doublecap");Re(Be,Wt,Oa,"⋓","\\doublecup");Re(Be,Wt,Oa,"⊠","\\boxtimes",!0);Re(Be,Wt,tn,"⇢","\\dashrightarrow",!0);Re(Be,Wt,tn,"⇠","\\dashleftarrow",!0);Re(Be,Wt,tn,"⇇","\\leftleftarrows",!0);Re(Be,Wt,tn,"⇆","\\leftrightarrows",!0);Re(Be,Wt,tn,"⇚","\\Lleftarrow",!0);Re(Be,Wt,tn,"↞","\\twoheadleftarrow",!0);Re(Be,Wt,tn,"↢","\\leftarrowtail",!0);Re(Be,Wt,tn,"↫","\\looparrowleft",!0);Re(Be,Wt,tn,"⇋","\\leftrightharpoons",!0);Re(Be,Wt,tn,"↶","\\curvearrowleft",!0);Re(Be,Wt,tn,"↺","\\circlearrowleft",!0);Re(Be,Wt,tn,"↰","\\Lsh",!0);Re(Be,Wt,tn,"⇈","\\upuparrows",!0);Re(Be,Wt,tn,"↿","\\upharpoonleft",!0);Re(Be,Wt,tn,"⇃","\\downharpoonleft",!0);Re(Be,rt,tn,"⊶","\\origof",!0);Re(Be,rt,tn,"⊷","\\imageof",!0);Re(Be,Wt,tn,"⊸","\\multimap",!0);Re(Be,Wt,tn,"↭","\\leftrightsquigarrow",!0);Re(Be,Wt,tn,"⇉","\\rightrightarrows",!0);Re(Be,Wt,tn,"⇄","\\rightleftarrows",!0);Re(Be,Wt,tn,"↠","\\twoheadrightarrow",!0);Re(Be,Wt,tn,"↣","\\rightarrowtail",!0);Re(Be,Wt,tn,"↬","\\looparrowright",!0);Re(Be,Wt,tn,"↷","\\curvearrowright",!0);Re(Be,Wt,tn,"↻","\\circlearrowright",!0);Re(Be,Wt,tn,"↱","\\Rsh",!0);Re(Be,Wt,tn,"⇊","\\downdownarrows",!0);Re(Be,Wt,tn,"↾","\\upharpoonright",!0);Re(Be,Wt,tn,"⇂","\\downharpoonright",!0);Re(Be,Wt,tn,"⇝","\\rightsquigarrow",!0);Re(Be,Wt,tn,"⇝","\\leadsto");Re(Be,Wt,tn,"⇛","\\Rrightarrow",!0);Re(Be,Wt,tn,"↾","\\restriction");Re(Be,rt,Tn,"‘","`");Re(Be,rt,Tn,"$","\\$");Re(di,rt,Tn,"$","\\$");Re(di,rt,Tn,"$","\\textdollar");Re(Be,rt,Tn,"%","\\%");Re(di,rt,Tn,"%","\\%");Re(Be,rt,Tn,"_","\\_");Re(di,rt,Tn,"_","\\_");Re(di,rt,Tn,"_","\\textunderscore");Re(Be,rt,Tn,"∠","\\angle",!0);Re(Be,rt,Tn,"∞","\\infty",!0);Re(Be,rt,Tn,"′","\\prime");Re(Be,rt,Tn,"△","\\triangle");Re(Be,rt,Tn,"Γ","\\Gamma",!0);Re(Be,rt,Tn,"Δ","\\Delta",!0);Re(Be,rt,Tn,"Θ","\\Theta",!0);Re(Be,rt,Tn,"Λ","\\Lambda",!0);Re(Be,rt,Tn,"Ξ","\\Xi",!0);Re(Be,rt,Tn,"Π","\\Pi",!0);Re(Be,rt,Tn,"Σ","\\Sigma",!0);Re(Be,rt,Tn,"Υ","\\Upsilon",!0);Re(Be,rt,Tn,"Φ","\\Phi",!0);Re(Be,rt,Tn,"Ψ","\\Psi",!0);Re(Be,rt,Tn,"Ω","\\Omega",!0);Re(Be,rt,Tn,"A","Α");Re(Be,rt,Tn,"B","Β");Re(Be,rt,Tn,"E","Ε");Re(Be,rt,Tn,"Z","Ζ");Re(Be,rt,Tn,"H","Η");Re(Be,rt,Tn,"I","Ι");Re(Be,rt,Tn,"K","Κ");Re(Be,rt,Tn,"M","Μ");Re(Be,rt,Tn,"N","Ν");Re(Be,rt,Tn,"O","Ο");Re(Be,rt,Tn,"P","Ρ");Re(Be,rt,Tn,"T","Τ");Re(Be,rt,Tn,"X","Χ");Re(Be,rt,Tn,"¬","\\neg",!0);Re(Be,rt,Tn,"¬","\\lnot");Re(Be,rt,Tn,"⊤","\\top");Re(Be,rt,Tn,"⊥","\\bot");Re(Be,rt,Tn,"∅","\\emptyset");Re(Be,Wt,Tn,"∅","\\varnothing");Re(Be,rt,Qs,"α","\\alpha",!0);Re(Be,rt,Qs,"β","\\beta",!0);Re(Be,rt,Qs,"γ","\\gamma",!0);Re(Be,rt,Qs,"δ","\\delta",!0);Re(Be,rt,Qs,"ϵ","\\epsilon",!0);Re(Be,rt,Qs,"ζ","\\zeta",!0);Re(Be,rt,Qs,"η","\\eta",!0);Re(Be,rt,Qs,"θ","\\theta",!0);Re(Be,rt,Qs,"ι","\\iota",!0);Re(Be,rt,Qs,"κ","\\kappa",!0);Re(Be,rt,Qs,"λ","\\lambda",!0);Re(Be,rt,Qs,"μ","\\mu",!0);Re(Be,rt,Qs,"ν","\\nu",!0);Re(Be,rt,Qs,"ξ","\\xi",!0);Re(Be,rt,Qs,"ο","\\omicron",!0);Re(Be,rt,Qs,"π","\\pi",!0);Re(Be,rt,Qs,"ρ","\\rho",!0);Re(Be,rt,Qs,"σ","\\sigma",!0);Re(Be,rt,Qs,"τ","\\tau",!0);Re(Be,rt,Qs,"υ","\\upsilon",!0);Re(Be,rt,Qs,"ϕ","\\phi",!0);Re(Be,rt,Qs,"χ","\\chi",!0);Re(Be,rt,Qs,"ψ","\\psi",!0);Re(Be,rt,Qs,"ω","\\omega",!0);Re(Be,rt,Qs,"ε","\\varepsilon",!0);Re(Be,rt,Qs,"ϑ","\\vartheta",!0);Re(Be,rt,Qs,"ϖ","\\varpi",!0);Re(Be,rt,Qs,"ϱ","\\varrho",!0);Re(Be,rt,Qs,"ς","\\varsigma",!0);Re(Be,rt,Qs,"φ","\\varphi",!0);Re(Be,rt,Oa,"∗","*",!0);Re(Be,rt,Oa,"+","+");Re(Be,rt,Oa,"−","-",!0);Re(Be,rt,Oa,"⋅","\\cdot",!0);Re(Be,rt,Oa,"∘","\\circ",!0);Re(Be,rt,Oa,"÷","\\div",!0);Re(Be,rt,Oa,"±","\\pm",!0);Re(Be,rt,Oa,"×","\\times",!0);Re(Be,rt,Oa,"∩","\\cap",!0);Re(Be,rt,Oa,"∪","\\cup",!0);Re(Be,rt,Oa,"∖","\\setminus",!0);Re(Be,rt,Oa,"∧","\\land");Re(Be,rt,Oa,"∨","\\lor");Re(Be,rt,Oa,"∧","\\wedge",!0);Re(Be,rt,Oa,"∨","\\vee",!0);Re(Be,rt,Tn,"√","\\surd");Re(Be,rt,jw,"⟨","\\langle",!0);Re(Be,rt,jw,"∣","\\lvert");Re(Be,rt,jw,"∥","\\lVert");Re(Be,rt,vv,"?","?");Re(Be,rt,vv,"!","!");Re(Be,rt,vv,"⟩","\\rangle",!0);Re(Be,rt,vv,"∣","\\rvert");Re(Be,rt,vv,"∥","\\rVert");Re(Be,rt,tn,"=","=");Re(Be,rt,tn,":",":");Re(Be,rt,tn,"≈","\\approx",!0);Re(Be,rt,tn,"≅","\\cong",!0);Re(Be,rt,tn,"≥","\\ge");Re(Be,rt,tn,"≥","\\geq",!0);Re(Be,rt,tn,"←","\\gets");Re(Be,rt,tn,">","\\gt",!0);Re(Be,rt,tn,"∈","\\in",!0);Re(Be,rt,tn,"","\\@not");Re(Be,rt,tn,"⊂","\\subset",!0);Re(Be,rt,tn,"⊃","\\supset",!0);Re(Be,rt,tn,"⊆","\\subseteq",!0);Re(Be,rt,tn,"⊇","\\supseteq",!0);Re(Be,Wt,tn,"⊈","\\nsubseteq",!0);Re(Be,Wt,tn,"⊉","\\nsupseteq",!0);Re(Be,rt,tn,"⊨","\\models");Re(Be,rt,tn,"←","\\leftarrow",!0);Re(Be,rt,tn,"≤","\\le");Re(Be,rt,tn,"≤","\\leq",!0);Re(Be,rt,tn,"<","\\lt",!0);Re(Be,rt,tn,"→","\\rightarrow",!0);Re(Be,rt,tn,"→","\\to");Re(Be,Wt,tn,"≱","\\ngeq",!0);Re(Be,Wt,tn,"≰","\\nleq",!0);Re(Be,rt,ER," ","\\ ");Re(Be,rt,ER," ","\\space");Re(Be,rt,ER," ","\\nobreakspace");Re(di,rt,ER," ","\\ ");Re(di,rt,ER," "," ");Re(di,rt,ER," ","\\space");Re(di,rt,ER," ","\\nobreakspace");Re(Be,rt,ER,null,"\\nobreak");Re(Be,rt,ER,null,"\\allowbreak");Re(Be,rt,GAe,",",",");Re(Be,rt,GAe,";",";");Re(Be,Wt,Oa,"⊼","\\barwedge",!0);Re(Be,Wt,Oa,"⊻","\\veebar",!0);Re(Be,rt,Oa,"⊙","\\odot",!0);Re(Be,rt,Oa,"⊕","\\oplus",!0);Re(Be,rt,Oa,"⊗","\\otimes",!0);Re(Be,rt,Tn,"∂","\\partial",!0);Re(Be,rt,Oa,"⊘","\\oslash",!0);Re(Be,Wt,Oa,"⊚","\\circledcirc",!0);Re(Be,Wt,Oa,"⊡","\\boxdot",!0);Re(Be,rt,Oa,"△","\\bigtriangleup");Re(Be,rt,Oa,"▽","\\bigtriangledown");Re(Be,rt,Oa,"†","\\dagger");Re(Be,rt,Oa,"⋄","\\diamond");Re(Be,rt,Oa,"⋆","\\star");Re(Be,rt,Oa,"◃","\\triangleleft");Re(Be,rt,Oa,"▹","\\triangleright");Re(Be,rt,jw,"{","\\{");Re(di,rt,Tn,"{","\\{");Re(di,rt,Tn,"{","\\textbraceleft");Re(Be,rt,vv,"}","\\}");Re(di,rt,Tn,"}","\\}");Re(di,rt,Tn,"}","\\textbraceright");Re(Be,rt,jw,"{","\\lbrace");Re(Be,rt,vv,"}","\\rbrace");Re(Be,rt,jw,"[","\\lbrack",!0);Re(di,rt,Tn,"[","\\lbrack",!0);Re(Be,rt,vv,"]","\\rbrack",!0);Re(di,rt,Tn,"]","\\rbrack",!0);Re(Be,rt,jw,"(","\\lparen",!0);Re(Be,rt,vv,")","\\rparen",!0);Re(di,rt,Tn,"<","\\textless",!0);Re(di,rt,Tn,">","\\textgreater",!0);Re(Be,rt,jw,"⌊","\\lfloor",!0);Re(Be,rt,vv,"⌋","\\rfloor",!0);Re(Be,rt,jw,"⌈","\\lceil",!0);Re(Be,rt,vv,"⌉","\\rceil",!0);Re(Be,rt,Tn,"\\","\\backslash");Re(Be,rt,Tn,"∣","|");Re(Be,rt,Tn,"∣","\\vert");Re(di,rt,Tn,"|","\\textbar",!0);Re(Be,rt,Tn,"∥","\\|");Re(Be,rt,Tn,"∥","\\Vert");Re(di,rt,Tn,"∥","\\textbardbl");Re(di,rt,Tn,"~","\\textasciitilde");Re(di,rt,Tn,"\\","\\textbackslash");Re(di,rt,Tn,"^","\\textasciicircum");Re(Be,rt,tn,"↑","\\uparrow",!0);Re(Be,rt,tn,"⇑","\\Uparrow",!0);Re(Be,rt,tn,"↓","\\downarrow",!0);Re(Be,rt,tn,"⇓","\\Downarrow",!0);Re(Be,rt,tn,"↕","\\updownarrow",!0);Re(Be,rt,tn,"⇕","\\Updownarrow",!0);Re(Be,rt,B1,"∐","\\coprod");Re(Be,rt,B1,"⋁","\\bigvee");Re(Be,rt,B1,"⋀","\\bigwedge");Re(Be,rt,B1,"⨄","\\biguplus");Re(Be,rt,B1,"⋂","\\bigcap");Re(Be,rt,B1,"⋃","\\bigcup");Re(Be,rt,B1,"∫","\\int");Re(Be,rt,B1,"∫","\\intop");Re(Be,rt,B1,"∬","\\iint");Re(Be,rt,B1,"∭","\\iiint");Re(Be,rt,B1,"∏","\\prod");Re(Be,rt,B1,"∑","\\sum");Re(Be,rt,B1,"⨂","\\bigotimes");Re(Be,rt,B1,"⨁","\\bigoplus");Re(Be,rt,B1,"⨀","\\bigodot");Re(Be,rt,B1,"∮","\\oint");Re(Be,rt,B1,"∯","\\oiint");Re(Be,rt,B1,"∰","\\oiiint");Re(Be,rt,B1,"⨆","\\bigsqcup");Re(Be,rt,B1,"∫","\\smallint");Re(di,rt,qW,"…","\\textellipsis");Re(Be,rt,qW,"…","\\mathellipsis");Re(di,rt,qW,"…","\\ldots",!0);Re(Be,rt,qW,"…","\\ldots",!0);Re(Be,rt,qW,"⋯","\\@cdots",!0);Re(Be,rt,qW,"⋱","\\ddots",!0);Re(Be,rt,Tn,"⋮","\\varvdots");Re(di,rt,Tn,"⋮","\\varvdots");Re(Be,rt,Xd,"ˊ","\\acute");Re(Be,rt,Xd,"ˋ","\\grave");Re(Be,rt,Xd,"¨","\\ddot");Re(Be,rt,Xd,"~","\\tilde");Re(Be,rt,Xd,"ˉ","\\bar");Re(Be,rt,Xd,"˘","\\breve");Re(Be,rt,Xd,"ˇ","\\check");Re(Be,rt,Xd,"^","\\hat");Re(Be,rt,Xd,"⃗","\\vec");Re(Be,rt,Xd,"˙","\\dot");Re(Be,rt,Xd,"˚","\\mathring");Re(Be,rt,Qs,"","\\@imath");Re(Be,rt,Qs,"","\\@jmath");Re(Be,rt,Tn,"ı","ı");Re(Be,rt,Tn,"ȷ","ȷ");Re(di,rt,Tn,"ı","\\i",!0);Re(di,rt,Tn,"ȷ","\\j",!0);Re(di,rt,Tn,"ß","\\ss",!0);Re(di,rt,Tn,"æ","\\ae",!0);Re(di,rt,Tn,"œ","\\oe",!0);Re(di,rt,Tn,"ø","\\o",!0);Re(di,rt,Tn,"Æ","\\AE",!0);Re(di,rt,Tn,"Œ","\\OE",!0);Re(di,rt,Tn,"Ø","\\O",!0);Re(di,rt,Xd,"ˊ","\\'");Re(di,rt,Xd,"ˋ","\\`");Re(di,rt,Xd,"ˆ","\\^");Re(di,rt,Xd,"˜","\\~");Re(di,rt,Xd,"ˉ","\\=");Re(di,rt,Xd,"˘","\\u");Re(di,rt,Xd,"˙","\\.");Re(di,rt,Xd,"¸","\\c");Re(di,rt,Xd,"˚","\\r");Re(di,rt,Xd,"ˇ","\\v");Re(di,rt,Xd,"¨",'\\"');Re(di,rt,Xd,"˝","\\H");Re(di,rt,Xd,"◯","\\textcircled");var gGn={"--":!0,"---":!0,"``":!0,"''":!0};Re(di,rt,Tn,"–","--",!0);Re(di,rt,Tn,"–","\\textendash");Re(di,rt,Tn,"—","---",!0);Re(di,rt,Tn,"—","\\textemdash");Re(di,rt,Tn,"‘","`",!0);Re(di,rt,Tn,"‘","\\textquoteleft");Re(di,rt,Tn,"’","'",!0);Re(di,rt,Tn,"’","\\textquoteright");Re(di,rt,Tn,"“","``",!0);Re(di,rt,Tn,"“","\\textquotedblleft");Re(di,rt,Tn,"”","''",!0);Re(di,rt,Tn,"”","\\textquotedblright");Re(Be,rt,Tn,"°","\\degree",!0);Re(di,rt,Tn,"°","\\degree");Re(di,rt,Tn,"°","\\textdegree",!0);Re(Be,rt,Tn,"£","\\pounds");Re(Be,rt,Tn,"£","\\mathsterling",!0);Re(di,rt,Tn,"£","\\pounds");Re(di,rt,Tn,"£","\\textsterling",!0);Re(Be,Wt,Tn,"✠","\\maltese");Re(di,Wt,Tn,"✠","\\maltese");var F_n='0123456789/@."';for(var _nt=0;_nt<F_n.length;_nt++){var $_n=F_n.charAt(_nt);Re(Be,rt,Tn,$_n,$_n)}var U_n='0123456789!@*()-=+";:?/.,';for(var wnt=0;wnt<U_n.length;wnt++){var z_n=U_n.charAt(wnt);Re(di,rt,Tn,z_n,z_n)}var D3e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Ent=0;Ent<D3e.length;Ent++){var vwe=D3e.charAt(Ent);Re(Be,rt,Qs,vwe,vwe),Re(di,rt,Tn,vwe,vwe)}Re(Be,Wt,Tn,"C","ℂ");Re(di,Wt,Tn,"C","ℂ");Re(Be,Wt,Tn,"H","ℍ");Re(di,Wt,Tn,"H","ℍ");Re(Be,Wt,Tn,"N","ℕ");Re(di,Wt,Tn,"N","ℕ");Re(Be,Wt,Tn,"P","ℙ");Re(di,Wt,Tn,"P","ℙ");Re(Be,Wt,Tn,"Q","ℚ");Re(di,Wt,Tn,"Q","ℚ");Re(Be,Wt,Tn,"R","ℝ");Re(di,Wt,Tn,"R","ℝ");Re(Be,Wt,Tn,"Z","ℤ");Re(di,Wt,Tn,"Z","ℤ");Re(Be,rt,Qs,"h","ℎ");Re(di,rt,Qs,"h","ℎ");var No="";for(var Py=0;Py<D3e.length;Py++){var a0=D3e.charAt(Py);No=String.fromCharCode(55349,56320+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56372+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56424+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56580+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56684+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56736+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56788+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56840+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56944+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),Py<26&&(No=String.fromCharCode(55349,56632+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No),No=String.fromCharCode(55349,56476+Py),Re(Be,rt,Qs,a0,No),Re(di,rt,Tn,a0,No))}No="𝕜";Re(Be,rt,Qs,"k",No);Re(di,rt,Tn,"k",No);for(var bB=0;bB<10;bB++){var MN=bB.toString();No=String.fromCharCode(55349,57294+bB),Re(Be,rt,Qs,MN,No),Re(di,rt,Tn,MN,No),No=String.fromCharCode(55349,57314+bB),Re(Be,rt,Qs,MN,No),Re(di,rt,Tn,MN,No),No=String.fromCharCode(55349,57324+bB),Re(Be,rt,Qs,MN,No),Re(di,rt,Tn,MN,No),No=String.fromCharCode(55349,57334+bB),Re(Be,rt,Qs,MN,No),Re(di,rt,Tn,MN,No)}var jlt="ÐÞþ";for(var xnt=0;xnt<jlt.length;xnt++){var _we=jlt.charAt(xnt);Re(Be,rt,Qs,_we,_we),Re(di,rt,Tn,_we,_we)}var wwe=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],G_n=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],p3i=function(t,r){var a=t.charCodeAt(0),s=t.charCodeAt(1),o=(a-55296)*1024+(s-56320)+65536,u=r==="math"?0:1;if(119808<=o&&o<120484){var h=Math.floor((o-119808)/26);return[wwe[h][2],wwe[h][u]]}else if(120782<=o&&o<=120831){var f=Math.floor((o-120782)/10);return[G_n[f][2],G_n[f][u]]}else{if(o===120485||o===120486)return[wwe[0][2],wwe[0][u]];if(120486<o&&o<120782)return["",""];throw new Ri("Unsupported character: "+t)}},qAe=function(t,r,a){return td[a][t]&&td[a][t].replace&&(t=td[a][t].replace),{value:t,metrics:Ppt(t,r,a)}},I3=function(t,r,a,s,o){var u=qAe(t,r,a),h=u.metrics;t=u.value;var f;if(h){var p=h.italic;(a==="text"||s&&s.font==="mathit")&&(p=0),f=new xS(t,h.height,h.depth,p,h.skew,h.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+a+"'")),f=new xS(t,0,0,0,0,0,o);if(s){f.maxFontSize=s.sizeMultiplier,s.style.isTight()&&f.classes.push("mtight");var m=s.getColor();m&&(f.style.color=m)}return f},g3i=function(t,r,a,s){return s===void 0&&(s=[]),a.font==="boldsymbol"&&qAe(t,"Main-Bold",r).metrics?I3(t,"Main-Bold",r,a,s.concat(["mathbf"])):t==="\\"||td[r][t].font==="main"?I3(t,"Main-Regular",r,a,s):I3(t,"AMS-Regular",r,a,s.concat(["amsrm"]))},m3i=function(t,r,a,s,o){return o!=="textord"&&qAe(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},b3i=function(t,r,a){var s=t.mode,o=t.text,u=["mord"],h=s==="math"||s==="text"&&r.font,f=h?r.font:r.fontFamily,p="",m="";if(o.charCodeAt(0)===55349&&([p,m]=p3i(o,s)),p.length>0)return I3(o,p,s,r,u.concat(m));if(f){var b,_;if(f==="boldsymbol"){var w=m3i(o,s,r,u,a);b=w.fontName,_=[w.fontClass]}else h?(b=yGn[f].fontName,_=[f]):(b=Ewe(f,r.fontWeight,r.fontShape),_=[f,r.fontWeight,r.fontShape]);if(qAe(o,b,s).metrics)return I3(o,b,s,r,u.concat(_));if(gGn.hasOwnProperty(o)&&b.slice(0,10)==="Typewriter"){for(var S=[],C=0;C<o.length;C++)S.push(I3(o[C],b,s,r,u.concat(_)));return bGn(S)}}if(a==="mathord")return I3(o,"Math-Italic",s,r,u.concat(["mathnormal"]));if(a==="textord"){var A=td[s][o]&&td[s][o].font;if(A==="ams"){var k=Ewe("amsrm",r.fontWeight,r.fontShape);return I3(o,k,s,r,u.concat("amsrm",r.fontWeight,r.fontShape))}else if(A==="main"||!A){var I=Ewe("textrm",r.fontWeight,r.fontShape);return I3(o,I,s,r,u.concat(r.fontWeight,r.fontShape))}else{var N=Ewe(A,r.fontWeight,r.fontShape);return I3(o,N,s,r,u.concat(N,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},y3i=(e,t)=>{if(t9(e.classes)!==t9(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var s in t.style)if(t.style.hasOwnProperty(s)&&e.style[s]!==t.style[s])return!1;return!0},v3i=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],a=e[t+1];r instanceof xS&&a instanceof xS&&y3i(r,a)&&(r.text+=a.text,r.height=Math.max(r.height,a.height),r.depth=Math.max(r.depth,a.depth),r.italic=a.italic,e.splice(t+1,1),t--)}return e},Fpt=function(t){for(var r=0,a=0,s=0,o=0;o<t.children.length;o++){var u=t.children[o];u.height>r&&(r=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>s&&(s=u.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=s},O2=function(t,r,a,s){var o=new yce(t,r,a,s);return Fpt(o),o},mGn=(e,t,r,a)=>new yce(e,t,r,a),_3i=function(t,r,a){var s=O2([t],[],r);return s.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),s.style.borderBottomWidth=Qi(s.height),s.maxFontSize=1,s},w3i=function(t,r,a,s){var o=new Bpt(t,r,a,s);return Fpt(o),o},bGn=function(t){var r=new bce(t);return Fpt(r),r},E3i=function(t,r){return t instanceof bce?O2([],[t],r):t},x3i=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],s=-r[0].shift-r[0].elem.depth,o=s,u=1;u<r.length;u++){var h=-r[u].shift-o-r[u].elem.depth,f=h-(r[u-1].elem.height+r[u-1].elem.depth);o=o+h,a.push({type:"kern",size:f}),a.push(r[u])}return{children:a,depth:s}}var p;if(t.positionType==="top"){for(var m=t.positionData,b=0;b<t.children.length;b++){var _=t.children[b];m-=_.type==="kern"?_.size:_.elem.height+_.elem.depth}p=m}else if(t.positionType==="bottom")p=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")p=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")p=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:p}},S3i=function(t,r){for(var{children:a,depth:s}=x3i(t),o=0,u=0;u<a.length;u++){var h=a[u];if(h.type==="elem"){var f=h.elem;o=Math.max(o,f.maxFontSize,f.height)}}o+=2;var p=O2(["pstrut"],[]);p.style.height=Qi(o);for(var m=[],b=s,_=s,w=s,S=0;S<a.length;S++){var C=a[S];if(C.type==="kern")w+=C.size;else{var A=C.elem,k=C.wrapperClasses||[],I=C.wrapperStyle||{},N=O2(k,[p,A],void 0,I);N.style.top=Qi(-o-w-A.depth),C.marginLeft&&(N.style.marginLeft=C.marginLeft),C.marginRight&&(N.style.marginRight=C.marginRight),m.push(N),w+=A.height+A.depth}b=Math.min(b,w),_=Math.max(_,w)}var L=O2(["vlist"],m);L.style.height=Qi(_);var P;if(b<0){var M=O2([],[]),F=O2(["vlist"],[M]);F.style.height=Qi(-b);var U=O2(["vlist-s"],[new xS("​")]);P=[O2(["vlist-r"],[L,U]),O2(["vlist-r"],[F])]}else P=[O2(["vlist-r"],[L])];var $=O2(["vlist-t"],P);return P.length===2&&$.classes.push("vlist-t2"),$.height=_,$.depth=-b,$},T3i=(e,t)=>{var r=O2(["mspace"],[],t),a=Rf(e,t);return r.style.marginRight=Qi(a),r},Ewe=function(t,r,a){var s="";switch(t){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=t}var o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",s+"-"+o},yGn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},vGn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},C3i=function(t,r){var[a,s,o]=vGn[t],u=new n9(a),h=new aR([u],{width:Qi(s),height:Qi(o),style:"width:"+Qi(s),viewBox:"0 0 "+1e3*s+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),f=mGn(["overlay"],[h],r);return f.height=o,f.style.height=Qi(o),f.style.width=Qi(s),f},er={fontMap:yGn,makeSymbol:I3,mathsym:g3i,makeSpan:O2,makeSvgSpan:mGn,makeLineSpan:_3i,makeAnchor:w3i,makeFragment:bGn,wrapFragment:E3i,makeVList:S3i,makeOrd:b3i,makeGlue:T3i,staticSvg:C3i,svgData:vGn,tryCombineChars:v3i},Af={number:3,unit:"mu"},yB={number:4,unit:"mu"},X6={number:5,unit:"mu"},A3i={mord:{mop:Af,mbin:yB,mrel:X6,minner:Af},mop:{mord:Af,mop:Af,mrel:X6,minner:Af},mbin:{mord:yB,mop:yB,mopen:yB,minner:yB},mrel:{mord:X6,mop:X6,mopen:X6,minner:X6},mopen:{},mclose:{mop:Af,mbin:yB,mrel:X6,minner:Af},mpunct:{mord:Af,mop:Af,mrel:X6,mopen:Af,mclose:Af,mpunct:Af,minner:Af},minner:{mord:Af,mop:Af,mbin:yB,mrel:X6,mopen:Af,mpunct:Af,minner:Af}},k3i={mord:{mop:Af},mop:{mord:Af,mop:Af},mbin:{},mrel:{},mopen:{},mclose:{mop:Af},mpunct:{},minner:{mop:Af}},_Gn={},M3e={},P3e={};function ga(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:s},f=0;f<r.length;++f)_Gn[r[f]]=h;t&&(o&&(M3e[t]=o),u&&(P3e[t]=u))}function M$(e){var{type:t,htmlBuilder:r,mathmlBuilder:a}=e;ga({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:a})}var B3e=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Q0=function(t){return t.type==="ordgroup"?t.body:[t]},sR=er.makeSpan,R3i=["leftmost","mbin","mopen","mrel","mop","mpunct"],I3i=["rightmost","mrel","mclose","mpunct"],N3i={display:Js.DISPLAY,text:Js.TEXT,script:Js.SCRIPT,scriptscript:Js.SCRIPTSCRIPT},O3i={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Lp=function(t,r,a,s){s===void 0&&(s=[null,null]);for(var o=[],u=0;u<t.length;u++){var h=jc(t[u],r);if(h instanceof bce){var f=h.children;o.push(...f)}else o.push(h)}if(er.tryCombineChars(o),!a)return o;var p=r;if(t.length===1){var m=t[0];m.type==="sizing"?p=r.havingSize(m.size):m.type==="styling"&&(p=r.havingStyle(N3i[m.style]))}var b=sR([s[0]||"leftmost"],[],r),_=sR([s[1]||"rightmost"],[],r),w=a==="root";return q_n(o,(S,C)=>{var A=C.classes[0],k=S.classes[0];A==="mbin"&&I3i.includes(k)?C.classes[0]="mord":k==="mbin"&&R3i.includes(A)&&(S.classes[0]="mord")},{node:b},_,w),q_n(o,(S,C)=>{var A=Wlt(C),k=Wlt(S),I=A&&k?S.hasClass("mtight")?k3i[A][k]:A3i[A][k]:null;if(I)return er.makeGlue(I,p)},{node:b},_,w),o},q_n=function e(t,r,a,s,o){s&&t.push(s);for(var u=0;u<t.length;u++){var h=t[u],f=wGn(h);if(f){e(f.children,r,a,null,o);continue}var p=!h.hasClass("mspace");if(p){var m=r(h,a.node);m&&(a.insertAfter?a.insertAfter(m):(t.unshift(m),u++))}p?a.node=h:o&&h.hasClass("newline")&&(a.node=sR(["leftmost"])),a.insertAfter=(b=>_=>{t.splice(b+1,0,_),u++})(u)}s&&t.pop()},wGn=function(t){return t instanceof bce||t instanceof Bpt||t instanceof yce&&t.hasClass("enclosing")?t:null},L3i=function e(t,r){var a=wGn(t);if(a){var s=a.children;if(s.length){if(r==="right")return e(s[s.length-1],"right");if(r==="left")return e(s[0],"left")}}return t},Wlt=function(t,r){return t?(r&&(t=L3i(t,r)),O3i[t.classes[0]]||null):null},Boe=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return sR(r.concat(a))},jc=function(t,r,a){if(!t)return sR();if(M3e[t.type]){var s=M3e[t.type](t,r);if(a&&r.size!==a.size){s=sR(r.sizingClasses(a),[s],r);var o=r.sizeMultiplier/a.sizeMultiplier;s.height*=o,s.depth*=o}return s}else throw new Ri("Got group of unknown type: '"+t.type+"'")};function xwe(e,t){var r=sR(["base"],e,t),a=sR(["strut"]);return a.style.height=Qi(r.height+r.depth),r.depth&&(a.style.verticalAlign=Qi(-r.depth)),r.children.unshift(a),r}function Klt(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Lp(e,t,"root"),s;a.length===2&&a[1].hasClass("tag")&&(s=a.pop());for(var o=[],u=[],h=0;h<a.length;h++)if(u.push(a[h]),a[h].hasClass("mbin")||a[h].hasClass("mrel")||a[h].hasClass("allowbreak")){for(var f=!1;h<a.length-1&&a[h+1].hasClass("mspace")&&!a[h+1].hasClass("newline");)h++,u.push(a[h]),a[h].hasClass("nobreak")&&(f=!0);f||(o.push(xwe(u,t)),u=[])}else a[h].hasClass("newline")&&(u.pop(),u.length>0&&(o.push(xwe(u,t)),u=[]),o.push(a[h]));u.length>0&&o.push(xwe(u,t));var p;r?(p=xwe(Lp(r,t,!0)),p.classes=["tag"],o.push(p)):s&&o.push(s);var m=sR(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),p){var b=p.children[0];b.style.height=Qi(m.height+m.depth),m.depth&&(b.style.verticalAlign=Qi(-m.depth))}return m}function EGn(e){return new bce(e)}class Nw{constructor(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=t9(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof QC&&this.children[a+1]instanceof QC){for(var s=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof QC;)s+=this.children[++a].toText();t.appendChild(new QC(s).toNode())}else t.appendChild(this.children[a].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=hu.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+hu.escape(t9(this.classes))+'"'),t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class QC{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return hu.escape(this.toText())}toText(){return this.text}}class D3i{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Qi(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Qi(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Si={MathNode:Nw,TextNode:QC,SpaceNode:D3i,newDocumentFragment:EGn},SS=function(t,r,a){return td[r][t]&&td[r][t].replace&&t.charCodeAt(0)!==55349&&!(gGn.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=td[r][t].replace),new Si.TextNode(t)},$pt=function(t){return t.length===1?t[0]:new Si.MathNode("mrow",t)},Upt=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var a=r.font;if(!a||a==="mathnormal")return null;var s=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(["\\imath","\\jmath"].includes(o))return null;td[s][o]&&td[s][o].replace&&(o=td[s][o].replace);var u=er.fontMap[a].fontName;return Ppt(o,u,s)?er.fontMap[a].variant:null};function Snt(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof QC&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof QC&&r.text===","}else return!1}var l_=function(t,r,a){if(t.length===1){var s=Bh(t[0],r);return a&&s instanceof Nw&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var o=[],u,h=0;h<t.length;h++){var f=Bh(t[h],r);if(f instanceof Nw&&u instanceof Nw){if(f.type==="mtext"&&u.type==="mtext"&&f.getAttribute("mathvariant")===u.getAttribute("mathvariant")){u.children.push(...f.children);continue}else if(f.type==="mn"&&u.type==="mn"){u.children.push(...f.children);continue}else if(Snt(f)&&u.type==="mn"){u.children.push(...f.children);continue}else if(f.type==="mn"&&Snt(u))f.children=[...u.children,...f.children],o.pop();else if((f.type==="msup"||f.type==="msub")&&f.children.length>=1&&(u.type==="mn"||Snt(u))){var p=f.children[0];p instanceof Nw&&p.type==="mn"&&(p.children=[...u.children,...p.children],o.pop())}else if(u.type==="mi"&&u.children.length===1){var m=u.children[0];if(m instanceof QC&&m.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var b=f.children[0];b instanceof QC&&b.text.length>0&&(b.text=b.text.slice(0,1)+"̸"+b.text.slice(1),o.pop())}}}o.push(f),u=f}return o},r9=function(t,r,a){return $pt(l_(t,r,a))},Bh=function(t,r){if(!t)return new Si.MathNode("mrow");if(P3e[t.type]){var a=P3e[t.type](t,r);return a}else throw new Ri("Got group of unknown type: '"+t.type+"'")};function H_n(e,t,r,a,s){var o=l_(e,r),u;o.length===1&&o[0]instanceof Nw&&["mrow","mtable"].includes(o[0].type)?u=o[0]:u=new Si.MathNode("mrow",o);var h=new Si.MathNode("annotation",[new Si.TextNode(t)]);h.setAttribute("encoding","application/x-tex");var f=new Si.MathNode("semantics",[u,h]),p=new Si.MathNode("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var m=s?"katex":"katex-mathml";return er.makeSpan([m],[p])}var xGn=function(t){return new p7({style:t.displayMode?Js.DISPLAY:Js.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},SGn=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=er.makeSpan(a,[t])}return t},M3i=function(t,r,a){var s=xGn(a),o;if(a.output==="mathml")return H_n(t,r,s,a.displayMode,!0);if(a.output==="html"){var u=Klt(t,s);o=er.makeSpan(["katex"],[u])}else{var h=H_n(t,r,s,a.displayMode,!1),f=Klt(t,s);o=er.makeSpan(["katex"],[h,f])}return SGn(o,a)},P3i=function(t,r,a){var s=xGn(a),o=Klt(t,s),u=er.makeSpan(["katex"],[o]);return SGn(u,a)},B3i={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},F3i=function(t){var r=new Si.MathNode("mo",[new Si.TextNode(B3i[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$3i={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},U3i=function(t){return t.type==="ordgroup"?t.body.length:1},z3i=function(t,r){function a(){var h=4e5,f=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(f)){var p=t,m=U3i(p.base),b,_,w;if(m>5)f==="widehat"||f==="widecheck"?(b=420,h=2364,w=.42,_=f+"4"):(b=312,h=2340,w=.34,_="tilde4");else{var S=[1,1,2,2,3,3][m];f==="widehat"||f==="widecheck"?(h=[0,1062,2364,2364,2364][S],b=[0,239,300,360,420][S],w=[0,.24,.3,.3,.36,.42][S],_=f+S):(h=[0,600,1033,2339,2340][S],b=[0,260,286,306,312][S],w=[0,.26,.286,.3,.306,.34][S],_="tilde"+S)}var C=new n9(_),A=new aR([C],{width:"100%",height:Qi(w),viewBox:"0 0 "+h+" "+b,preserveAspectRatio:"none"});return{span:er.makeSvgSpan([],[A],r),minWidth:0,height:w}}else{var k=[],I=$3i[f],[N,L,P]=I,M=P/1e3,F=N.length,U,$;if(F===1){var G=I[3];U=["hide-tail"],$=[G]}else if(F===2)U=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(F===3)U=["brace-left","brace-center","brace-right"],$=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+F+" children.");for(var B=0;B<F;B++){var Z=new n9(N[B]),z=new aR([Z],{width:"400em",height:Qi(M),viewBox:"0 0 "+h+" "+P,preserveAspectRatio:$[B]+" slice"}),Y=er.makeSvgSpan([U[B]],[z],r);if(F===1)return{span:Y,minWidth:L,height:M};Y.style.height=Qi(M),k.push(Y)}return{span:er.makeSpan(["stretchy"],k,r),minWidth:L,height:M}}}var{span:s,minWidth:o,height:u}=a();return s.height=u,s.style.height=Qi(u),o>0&&(s.style.minWidth=Qi(o)),s},G3i=function(t,r,a,s,o){var u,h=t.height+t.depth+a+s;if(/fbox|color|angl/.test(r)){if(u=er.makeSpan(["stretchy",r],[],o),r==="fbox"){var f=o.color&&o.getColor();f&&(u.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new Ylt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new Ylt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new aR(p,{width:"100%",height:Qi(h)});u=er.makeSvgSpan([],[m],o)}return u.height=h,u.style.height=Qi(h),u},oR={encloseSpan:G3i,mathMLnode:F3i,svgSpan:z3i};function xl(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function zpt(e){var t=HAe(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function HAe(e){return e&&(e.type==="atom"||f3i.hasOwnProperty(e.type))?e:null}var Gpt=(e,t)=>{var r,a,s;e&&e.type==="supsub"?(a=xl(e.base,"accent"),r=a.base,e.base=r,s=h3i(jc(e,t)),e.base=a):(a=xl(e,"accent"),r=a.base);var o=jc(r,t.havingCrampedStyle()),u=a.isShifty&&hu.isCharacterBox(r),h=0;if(u){var f=hu.getBaseElem(r),p=jc(f,t.havingCrampedStyle());h=B_n(p).skew}var m=a.label==="\\c",b=m?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),_;if(a.isStretchy)_=oR.svgSpan(a,t),_=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:_,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+Qi(2*h)+")",marginLeft:Qi(2*h)}:void 0}]},t);else{var w,S;a.label==="\\vec"?(w=er.staticSvg("vec",t),S=er.svgData.vec[1]):(w=er.makeOrd({mode:a.mode,text:a.label},t,"textord"),w=B_n(w),w.italic=0,S=w.width,m&&(b+=w.depth)),_=er.makeSpan(["accent-body"],[w]);var C=a.label==="\\textcircled";C&&(_.classes.push("accent-full"),b=o.height);var A=h;C||(A-=S/2),_.style.left=Qi(A),a.label==="\\textcircled"&&(_.style.top=".2em"),_=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-b},{type:"elem",elem:_}]},t)}var k=er.makeSpan(["mord","accent"],[_],t);return s?(s.children[0]=k,s.height=Math.max(k.height,s.height),s.classes[0]="mord",s):k},TGn=(e,t)=>{var r=e.isStretchy?oR.mathMLnode(e.label):new Si.MathNode("mo",[SS(e.label,e.mode)]),a=new Si.MathNode("mover",[Bh(e.base,t),r]);return a.setAttribute("accent","true"),a},q3i=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ga({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=B3e(t[0]),a=!q3i.test(e.funcName),s=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:s,base:r}},htmlBuilder:Gpt,mathmlBuilder:TGn});ga({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Gpt,mathmlBuilder:TGn});ga({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:s}},htmlBuilder:(e,t)=>{var r=jc(e.base,t),a=oR.svgSpan(e,t),s=e.label==="\\utilde"?.12:0,o=er.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:r}]},t);return er.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=oR.mathMLnode(e.label),a=new Si.MathNode("munder",[Bh(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var Swe=e=>{var t=new Si.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ga({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:s}=e;return{type:"xArrow",mode:a.mode,label:s,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),s=er.wrapFragment(jc(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(o+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=er.wrapFragment(jc(e.below,a,t),t),u.classes.push(o+"-arrow-pad"));var h=oR.svgSpan(e,t),f=-t.fontMetrics().axisHeight+.5*h.height,p=-t.fontMetrics().axisHeight-.5*h.height-.111;(s.depth>.25||e.label==="\\xleftequilibrium")&&(p-=s.depth);var m;if(u){var b=-t.fontMetrics().axisHeight+u.height+.5*h.height+.111;m=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f},{type:"elem",elem:u,shift:b}]},t)}else m=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),er.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=oR.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var s=Swe(Bh(e.body,t));if(e.below){var o=Swe(Bh(e.below,t));a=new Si.MathNode("munderover",[r,o,s])}else a=new Si.MathNode("mover",[r,s])}else if(e.below){var u=Swe(Bh(e.below,t));a=new Si.MathNode("munder",[r,u])}else a=Swe(),a=new Si.MathNode("mover",[r,a]);return a}});var H3i=er.makeSpan;function CGn(e,t){var r=Lp(e.body,t,!0);return H3i([e.mclass],r,t)}function AGn(e,t){var r,a=l_(e.body,t);return e.mclass==="minner"?r=new Si.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new Si.MathNode("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new Si.MathNode("mo",a),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ga({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Q0(s),isCharacterBox:hu.isCharacterBox(s)}},htmlBuilder:CGn,mathmlBuilder:AGn});var VAe=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ga({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:VAe(t[0]),body:Q0(t[1]),isCharacterBox:hu.isCharacterBox(t[1])}}});ga({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,s=t[1],o=t[0],u;a!=="\\stackrel"?u=VAe(s):u="mrel";var h={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q0(s)},f={type:"supsub",mode:o.mode,base:h,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:u,body:[f],isCharacterBox:hu.isCharacterBox(f)}},htmlBuilder:CGn,mathmlBuilder:AGn});ga({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:VAe(t[0]),body:Q0(t[0])}},htmlBuilder(e,t){var r=Lp(e.body,t,!0),a=er.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=l_(e.body,t),a=new Si.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var V3i={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},V_n=()=>({type:"styling",body:[],mode:"math",style:"display"}),Y_n=e=>e.type==="textord"&&e.text==="@",Y3i=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function j3i(e,t,r){var a=V3i[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var s=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},u=r.callFunction("\\Big",[o],[]),h=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[s,u,h]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function W3i(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ri("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],s=[a],o=0;o<t.length;o++){for(var u=t[o],h=V_n(),f=0;f<u.length;f++)if(!Y_n(u[f]))h.body.push(u[f]);else{a.push(h),f+=1;var p=zpt(u[f]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(p)>-1))if("<>AV".indexOf(p)>-1)for(var b=0;b<2;b++){for(var _=!0,w=f+1;w<u.length;w++){if(Y3i(u[w],p)){_=!1,f=w;break}if(Y_n(u[w]))throw new Ri("Missing a "+p+" character to complete a CD arrow.",u[w]);m[b].body.push(u[w])}if(_)throw new Ri("Missing a "+p+" character to complete a CD arrow.",u[f])}else throw new Ri('Expected one of "<>AV=|." after @',u[f]);var S=j3i(p,m,e),C={type:"styling",body:[S],mode:"math",style:"display"};a.push(C),h=V_n()}o%2===0?a.push(h):a.shift(),a=[],s.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}ga({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=er.wrapFragment(jc(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Qi(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new Si.MathNode("mrow",[Bh(e.label,t)]);return r=new Si.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Si.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ga({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=er.wrapFragment(jc(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Si.MathNode("mrow",[Bh(e.fragment,t)])}});ga({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=xl(t[0],"ordgroup"),s=a.body,o="",u=0;u<s.length;u++){var h=xl(s[u],"textord");o+=h.text}var f=parseInt(o),p;if(isNaN(f))throw new Ri("\\@char has non-numeric argument "+o);if(f<0||f>=1114111)throw new Ri("\\@char with invalid code point "+o);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var kGn=(e,t)=>{var r=Lp(e.body,t.withColor(e.color),!1);return er.makeFragment(r)},RGn=(e,t)=>{var r=l_(e.body,t.withColor(e.color)),a=new Si.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};ga({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=xl(t[0],"color-token").color,s=t[1];return{type:"color",mode:r.mode,color:a,body:Q0(s)}},htmlBuilder:kGn,mathmlBuilder:RGn});ga({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,s=xl(t[0],"color-token").color;r.gullet.macros.set("\\current@color",s);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:s,body:o}},htmlBuilder:kGn,mathmlBuilder:RGn});ga({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,s=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:s&&xl(s,"size").value}},htmlBuilder(e,t){var r=er.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Qi(Rf(e.size,t)))),r},mathmlBuilder(e,t){var r=new Si.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Qi(Rf(e.size,t)))),r}});var Xlt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},IGn=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ri("Expected a control sequence",e);return t},K3i=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},NGn=(e,t,r,a)=>{var s=e.gullet.macros.get(r.text);s==null&&(r.noexpand=!0,s={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,s,a)};ga({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(Xlt[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=Xlt[a.text]),xl(t.parseFunction(),"internal");throw new Ri("Invalid token after macro prefix",a)}});ga({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),s=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new Ri("Expected a control sequence",a);for(var o=0,u,h=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),h[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Ri('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new Ri('Argument number "'+a.text+'" out of order');o++,h.push([])}else{if(a.text==="EOF")throw new Ri("Expected a macro definition");h[o].push(a.text)}var{tokens:f}=t.gullet.consumeArg();return u&&f.unshift(u),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(s,{tokens:f,numArgs:o,delimiters:h},r===Xlt[r]),{type:"internal",mode:t.mode}}});ga({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=IGn(t.gullet.popToken());t.gullet.consumeSpaces();var s=K3i(t);return NGn(t,a,s,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ga({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=IGn(t.gullet.popToken()),s=t.gullet.popToken(),o=t.gullet.popToken();return NGn(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var Hie=function(t,r,a){var s=td.math[t]&&td.math[t].replace,o=Ppt(s||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},qpt=function(t,r,a,s){var o=a.havingBaseStyle(r),u=er.makeSpan(s.concat(o.sizingClasses(a)),[t],a),h=o.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=o.sizeMultiplier,u},OGn=function(t,r,a){var s=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/s.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Qi(o),t.height-=o,t.depth+=o},X3i=function(t,r,a,s,o,u){var h=er.makeSymbol(t,"Main-Regular",o,s),f=qpt(h,r,s,u);return a&&OGn(f,s,r),f},Q3i=function(t,r,a,s){return er.makeSymbol(t,"Size"+r+"-Regular",a,s)},LGn=function(t,r,a,s,o,u){var h=Q3i(t,r,o,s),f=qpt(er.makeSpan(["delimsizing","size"+r],[h],s),Js.TEXT,s,u);return a&&OGn(f,s,Js.TEXT),f},Tnt=function(t,r,a){var s;r==="Size1-Regular"?s="delim-size1":s="delim-size4";var o=er.makeSpan(["delimsizinginner",s],[er.makeSpan([],[er.makeSymbol(t,r,a)])]);return{type:"elem",elem:o}},Cnt=function(t,r,a){var s=XC["Size4-Regular"][t.charCodeAt(0)]?XC["Size4-Regular"][t.charCodeAt(0)][4]:XC["Size1-Regular"][t.charCodeAt(0)][4],o=new n9("inner",r3i(t,Math.round(1e3*r))),u=new aR([o],{width:Qi(s),height:Qi(r),style:"width:"+Qi(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),h=er.makeSvgSpan([],[u],a);return h.height=r,h.style.height=Qi(r),h.style.width=Qi(s),{type:"elem",elem:h}},Qlt=.008,Twe={type:"kern",size:-1*Qlt},Z3i=["|","\\lvert","\\rvert","\\vert"],J3i=["\\|","\\lVert","\\rVert","\\Vert"],DGn=function(t,r,a,s,o,u){var h,f,p,m,b="",_=0;h=p=m=t,f=null;var w="Size1-Regular";t==="\\uparrow"?p=m="⏐":t==="\\Uparrow"?p=m="‖":t==="\\downarrow"?h=p="⏐":t==="\\Downarrow"?h=p="‖":t==="\\updownarrow"?(h="\\uparrow",p="⏐",m="\\downarrow"):t==="\\Updownarrow"?(h="\\Uparrow",p="‖",m="\\Downarrow"):Z3i.includes(t)?(p="∣",b="vert",_=333):J3i.includes(t)?(p="∥",b="doublevert",_=556):t==="["||t==="\\lbrack"?(h="⎡",p="⎢",m="⎣",w="Size4-Regular",b="lbrack",_=667):t==="]"||t==="\\rbrack"?(h="⎤",p="⎥",m="⎦",w="Size4-Regular",b="rbrack",_=667):t==="\\lfloor"||t==="⌊"?(p=h="⎢",m="⎣",w="Size4-Regular",b="lfloor",_=667):t==="\\lceil"||t==="⌈"?(h="⎡",p=m="⎢",w="Size4-Regular",b="lceil",_=667):t==="\\rfloor"||t==="⌋"?(p=h="⎥",m="⎦",w="Size4-Regular",b="rfloor",_=667):t==="\\rceil"||t==="⌉"?(h="⎤",p=m="⎥",w="Size4-Regular",b="rceil",_=667):t==="("||t==="\\lparen"?(h="⎛",p="⎜",m="⎝",w="Size4-Regular",b="lparen",_=875):t===")"||t==="\\rparen"?(h="⎞",p="⎟",m="⎠",w="Size4-Regular",b="rparen",_=875):t==="\\{"||t==="\\lbrace"?(h="⎧",f="⎨",m="⎩",p="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(h="⎫",f="⎬",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(h="⎧",m="⎩",p="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(h="⎫",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(h="⎧",m="⎭",p="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(h="⎫",m="⎩",p="⎪",w="Size4-Regular");var S=Hie(h,w,o),C=S.height+S.depth,A=Hie(p,w,o),k=A.height+A.depth,I=Hie(m,w,o),N=I.height+I.depth,L=0,P=1;if(f!==null){var M=Hie(f,w,o);L=M.height+M.depth,P=2}var F=C+N+L,U=Math.max(0,Math.ceil((r-F)/(P*k))),$=F+U*P*k,G=s.fontMetrics().axisHeight;a&&(G*=s.sizeMultiplier);var B=$/2-G,Z=[];if(b.length>0){var z=$-C-N,Y=Math.round($*1e3),W=i3i(b,Math.round(z*1e3)),Q=new n9(b,W),V=(_/1e3).toFixed(3)+"em",j=(Y/1e3).toFixed(3)+"em",ee=new aR([Q],{width:V,height:j,viewBox:"0 0 "+_+" "+Y}),te=er.makeSvgSpan([],[ee],s);te.height=Y/1e3,te.style.width=V,te.style.height=j,Z.push({type:"elem",elem:te})}else{if(Z.push(Tnt(m,w,o)),Z.push(Twe),f===null){var ne=$-C-N+2*Qlt;Z.push(Cnt(p,ne,s))}else{var se=($-C-N-L)/2+2*Qlt;Z.push(Cnt(p,se,s)),Z.push(Twe),Z.push(Tnt(f,w,o)),Z.push(Twe),Z.push(Cnt(p,se,s))}Z.push(Twe),Z.push(Tnt(h,w,o))}var ie=s.havingBaseStyle(Js.TEXT),ge=er.makeVList({positionType:"bottom",positionData:B,children:Z},ie);return qpt(er.makeSpan(["delimsizing","mult"],[ge],ie),Js.TEXT,s,u)},Ant=80,knt=.08,Rnt=function(t,r,a,s,o){var u=n3i(t,s,a),h=new n9(t,u),f=new aR([h],{width:"400em",height:Qi(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return er.makeSvgSpan(["hide-tail"],[f],o)},eTi=function(t,r){var a=r.havingBaseSizing(),s=FGn("\\surd",t*a.sizeMultiplier,BGn,a),o=a.sizeMultiplier,u=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),h,f=0,p=0,m=0,b;return s.type==="small"?(m=1e3+1e3*u+Ant,t<1?o=1:t<1.4&&(o=.7),f=(1+u+knt)/o,p=(1+u)/o,h=Rnt("sqrtMain",f,m,u,r),h.style.minWidth="0.853em",b=.833/o):s.type==="large"?(m=(1e3+Ant)*Ese[s.size],p=(Ese[s.size]+u)/o,f=(Ese[s.size]+u+knt)/o,h=Rnt("sqrtSize"+s.size,f,m,u,r),h.style.minWidth="1.02em",b=1/o):(f=t+u+knt,p=t+u,m=Math.floor(1e3*t+u)+Ant,h=Rnt("sqrtTall",f,m,u,r),h.style.minWidth="0.742em",b=1.056),h.height=p,h.style.height=Qi(f),{span:h,advanceWidth:b,ruleWidth:(r.fontMetrics().sqrtRuleThickness+u)*o}},MGn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],tTi=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],PGn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ese=[0,1.2,1.8,2.4,3],nTi=function(t,r,a,s,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),MGn.includes(t)||PGn.includes(t))return LGn(t,r,!1,a,s,o);if(tTi.includes(t))return DGn(t,Ese[r],!1,a,s,o);throw new Ri("Illegal delimiter: '"+t+"'")},rTi=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iTi=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"stack"}],BGn=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aTi=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},FGn=function(t,r,a,s){for(var o=Math.min(2,3-s.style.size),u=o;u<a.length&&a[u].type!=="stack";u++){var h=Hie(t,aTi(a[u]),"math"),f=h.height+h.depth;if(a[u].type==="small"){var p=s.havingBaseStyle(a[u].style);f*=p.sizeMultiplier}if(f>r)return a[u]}return a[a.length-1]},$Gn=function(t,r,a,s,o,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var h;PGn.includes(t)?h=rTi:MGn.includes(t)?h=BGn:h=iTi;var f=FGn(t,r,h,s);return f.type==="small"?X3i(t,f.style,a,s,o,u):f.type==="large"?LGn(t,f.size,a,s,o,u):DGn(t,r,a,s,o,u)},sTi=function(t,r,a,s,o,u){var h=s.fontMetrics().axisHeight*s.sizeMultiplier,f=901,p=5/s.fontMetrics().ptPerEm,m=Math.max(r-h,a+h),b=Math.max(m/500*f,2*m-p);return $Gn(t,b,!0,s,o,u)},q7={sqrtImage:eTi,sizedDelim:nTi,sizeToMaxHeight:Ese,customSizedDelim:$Gn,leftRightDelim:sTi},j_n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},oTi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function YAe(e,t){var r=HAe(e);if(r&&oTi.includes(r.text))return r;throw r?new Ri("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Ri("Invalid delimiter type '"+e.type+"'",e)}ga({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=YAe(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:j_n[e.funcName].size,mclass:j_n[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?er.makeSpan([e.mclass]):q7.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(SS(e.delim,e.mode));var r=new Si.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=Qi(q7.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function W_n(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ga({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Ri("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:YAe(t[0],e).text,color:r}}});ga({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=YAe(t[0],e),a=e.parser;++a.leftrightDepth;var s=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=xl(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:s,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{W_n(e);for(var r=Lp(e.body,t,!0,["mopen","mclose"]),a=0,s=0,o=!1,u=0;u<r.length;u++)r[u].isMiddle?o=!0:(a=Math.max(r[u].height,a),s=Math.max(r[u].depth,s));a*=t.sizeMultiplier,s*=t.sizeMultiplier;var h;if(e.left==="."?h=Boe(t,["mopen"]):h=q7.leftRightDelim(e.left,a,s,t,e.mode,["mopen"]),r.unshift(h),o)for(var f=1;f<r.length;f++){var p=r[f],m=p.isMiddle;m&&(r[f]=q7.leftRightDelim(m.delim,a,s,m.options,e.mode,[]))}var b;if(e.right===".")b=Boe(t,["mclose"]);else{var _=e.rightColor?t.withColor(e.rightColor):t;b=q7.leftRightDelim(e.right,a,s,_,e.mode,["mclose"])}return r.push(b),er.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{W_n(e);var r=l_(e.body,t);if(e.left!=="."){var a=new Si.MathNode("mo",[SS(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var s=new Si.MathNode("mo",[SS(e.right,e.mode)]);s.setAttribute("fence","true"),e.rightColor&&s.setAttribute("mathcolor",e.rightColor),r.push(s)}return $pt(r)}});ga({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=YAe(t[0],e);if(!e.parser.leftrightDepth)throw new Ri("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Boe(t,[]);else{r=q7.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?SS("|","text"):SS(e.delim,e.mode),a=new Si.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Hpt=(e,t)=>{var r=er.wrapFragment(jc(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,o,u=0,h=hu.isCharacterBox(e.body);if(a==="sout")o=er.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/s,u=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var f=Rf({number:.6,unit:"pt"},t),p=Rf({number:.35,unit:"ex"},t),m=t.havingBaseSizing();s=s/m.sizeMultiplier;var b=r.height+r.depth+f+p;r.style.paddingLeft=Qi(b/2+f);var _=Math.floor(1e3*b*s),w=e3i(_),S=new aR([new n9("phase",w)],{width:"400em",height:Qi(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});o=er.makeSvgSpan(["hide-tail"],[S],t),o.style.height=Qi(b),u=r.depth+f+p}else{/cancel/.test(a)?h||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C=0,A=0,k=0;/box/.test(a)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),C=t.fontMetrics().fboxsep+(a==="colorbox"?0:k),A=C):a==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),C=4*k,A=Math.max(0,.25-r.depth)):(C=h?.2:0,A=C),o=oR.encloseSpan(r,a,C,A,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=Qi(k)):a==="angl"&&k!==.049&&(o.style.borderTopWidth=Qi(k),o.style.borderRightWidth=Qi(k)),u=r.depth+A,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var I;if(e.backgroundColor)I=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:r,shift:0}]},t);else{var N=/cancel|phase/.test(a)?["svg-align"]:[];I=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:u,wrapperClasses:N}]},t)}return/cancel/.test(a)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(a)&&!h?er.makeSpan(["mord","cancel-lap"],[I],t):er.makeSpan(["mord"],[I],t)},Vpt=(e,t)=>{var r=0,a=new Si.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Bh(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+s+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};ga({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=xl(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:s,backgroundColor:o,body:u}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=xl(t[0],"color-token").color,u=xl(t[1],"color-token").color,h=t[2];return{type:"enclose",mode:a.mode,label:s,backgroundColor:u,borderColor:o,body:h}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ga({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"enclose",mode:r.mode,label:a,body:s}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var UGn={};function LA(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f<r.length;++f)UGn[r[f]]=h;o&&(M3e[t]=o),u&&(P3e[t]=u)}var zGn={};function pt(e,t){zGn[e]=t}function K_n(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var jAe=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ri("{"+e.envName+"} can be used only in display mode.")};function Ypt(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function q9(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:u,colSeparationType:h,autoTag:f,singleRow:p,emptySingleRow:m,maxNumCols:b,leqno:_}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)u=1;else if(u=parseFloat(w),!u||u<0)throw new Ri("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var S=[],C=[S],A=[],k=[],I=f!=null?[]:void 0;function N(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){I&&(e.gullet.macros.get("\\df@tag")?(I.push(e.subparse([new Pw("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),k.push(K_n(e));;){var P=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),S.push(P);var M=e.fetch().text;if(M==="&"){if(b&&S.length===b){if(p||h)throw new Ri("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(M==="\\end"){L(),S.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(C.length>1||!m)&&C.pop(),k.length<C.length+1&&k.push([]);break}else if(M==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),A.push(F?F.value:null),L(),k.push(K_n(e)),S=[],C.push(S),N()}else throw new Ri("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:s,arraystretch:u,body:C,cols:o,rowGaps:A,hskipBeforeAndAfter:a,hLinesBeforeRow:k,colSeparationType:h,tags:I,leqno:_}}function jpt(e){return e.slice(0,1)==="d"?"display":"text"}var DA=function(t,r){var a,s,o=t.body.length,u=t.hLinesBeforeRow,h=0,f=new Array(o),p=[],m=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),b=1/r.fontMetrics().ptPerEm,_=5*b;if(t.colSeparationType&&t.colSeparationType==="small"){var w=r.havingStyle(Js.SCRIPT).sizeMultiplier;_=.2778*(w/r.sizeMultiplier)}var S=t.colSeparationType==="CD"?Rf({number:3,unit:"ex"},r):12*b,C=3*b,A=t.arraystretch*S,k=.7*A,I=.3*A,N=0;function L(Oe){for(var Dt=0;Dt<Oe.length;++Dt)Dt>0&&(N+=.25),p.push({pos:N,isDashed:Oe[Dt]})}for(L(u[0]),a=0;a<t.body.length;++a){var P=t.body[a],M=k,F=I;h<P.length&&(h=P.length);var U=new Array(P.length);for(s=0;s<P.length;++s){var $=jc(P[s],r);F<$.depth&&(F=$.depth),M<$.height&&(M=$.height),U[s]=$}var G=t.rowGaps[a],B=0;G&&(B=Rf(G,r),B>0&&(B+=I,F<B&&(F=B),B=0)),t.addJot&&(F+=C),U.height=M,U.depth=F,N+=M,U.pos=N,N+=F+B,f[a]=U,L(u[a+1])}var Z=N/2+r.fontMetrics().axisHeight,z=t.cols||[],Y=[],W,Q,V=[];if(t.tags&&t.tags.some(Oe=>Oe))for(a=0;a<o;++a){var j=f[a],ee=j.pos-Z,te=t.tags[a],ne=void 0;te===!0?ne=er.makeSpan(["eqn-num"],[],r):te===!1?ne=er.makeSpan([],[],r):ne=er.makeSpan([],Lp(te,r,!0),r),ne.depth=j.depth,ne.height=j.height,V.push({type:"elem",elem:ne,shift:ee})}for(s=0,Q=0;s<h||Q<z.length;++s,++Q){for(var se=z[Q]||{},ie=!0;se.type==="separator";){if(ie||(W=er.makeSpan(["arraycolsep"],[]),W.style.width=Qi(r.fontMetrics().doubleRuleSep),Y.push(W)),se.separator==="|"||se.separator===":"){var ge=se.separator==="|"?"solid":"dashed",ce=er.makeSpan(["vertical-separator"],[],r);ce.style.height=Qi(N),ce.style.borderRightWidth=Qi(m),ce.style.borderRightStyle=ge,ce.style.margin="0 "+Qi(-m/2);var be=N-Z;be&&(ce.style.verticalAlign=Qi(-be)),Y.push(ce)}else throw new Ri("Invalid separator type: "+se.separator);Q++,se=z[Q]||{},ie=!1}if(!(s>=h)){var ve=void 0;(s>0||t.hskipBeforeAndAfter)&&(ve=hu.deflt(se.pregap,_),ve!==0&&(W=er.makeSpan(["arraycolsep"],[]),W.style.width=Qi(ve),Y.push(W)));var De=[];for(a=0;a<o;++a){var ye=f[a],Ee=ye[s];if(Ee){var he=ye.pos-Z;Ee.depth=ye.depth,Ee.height=ye.height,De.push({type:"elem",elem:Ee,shift:he})}}De=er.makeVList({positionType:"individualShift",children:De},r),De=er.makeSpan(["col-align-"+(se.align||"c")],[De]),Y.push(De),(s<h-1||t.hskipBeforeAndAfter)&&(ve=hu.deflt(se.postgap,_),ve!==0&&(W=er.makeSpan(["arraycolsep"],[]),W.style.width=Qi(ve),Y.push(W)))}}if(f=er.makeSpan(["mtable"],Y),p.length>0){for(var we=er.makeLineSpan("hline",r,m),Ce=er.makeLineSpan("hdashline",r,m),Ie=[{type:"elem",elem:f,shift:0}];p.length>0;){var Le=p.pop(),Fe=Le.pos-Z;Le.isDashed?Ie.push({type:"elem",elem:Ce,shift:Fe}):Ie.push({type:"elem",elem:we,shift:Fe})}f=er.makeVList({positionType:"individualShift",children:Ie},r)}if(V.length===0)return er.makeSpan(["mord"],[f],r);var Ve=er.makeVList({positionType:"individualShift",children:V},r);return Ve=er.makeSpan(["tag"],[Ve],r),er.makeFragment([f,Ve])},lTi={c:"center ",l:"left ",r:"right "},MA=function(t,r){for(var a=[],s=new Si.MathNode("mtd",[],["mtr-glue"]),o=new Si.MathNode("mtd",[],["mml-eqn-num"]),u=0;u<t.body.length;u++){for(var h=t.body[u],f=[],p=0;p<h.length;p++)f.push(new Si.MathNode("mtd",[Bh(h[p],r)]));t.tags&&t.tags[u]&&(f.unshift(s),f.push(s),t.leqno?f.unshift(o):f.push(o)),a.push(new Si.MathNode("mtr",f))}var m=new Si.MathNode("mtable",a),b=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",Qi(b));var _="",w="";if(t.cols&&t.cols.length>0){var S=t.cols,C="",A=!1,k=0,I=S.length;S[0].type==="separator"&&(_+="top ",k=1),S[S.length-1].type==="separator"&&(_+="bottom ",I-=1);for(var N=k;N<I;N++)S[N].type==="align"?(w+=lTi[S[N].align],A&&(C+="none "),A=!0):S[N].type==="separator"&&A&&(C+=S[N].separator==="|"?"solid ":"dashed ",A=!1);m.setAttribute("columnalign",w.trim()),/[sd]/.test(C)&&m.setAttribute("columnlines",C.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],P="",M=1;M<L.length;M++)P+=M%2?"0em ":"1em ";m.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var F="",U=t.hLinesBeforeRow;_+=U[0].length>0?"left ":"",_+=U[U.length-1].length>0?"right ":"";for(var $=1;$<U.length-1;$++)F+=U[$].length===0?"none ":U[$][0]?"dashed ":"solid ";return/[sd]/.test(F)&&m.setAttribute("rowlines",F.trim()),_!==""&&(m=new Si.MathNode("menclose",[m]),m.setAttribute("notation",_.trim())),t.arraystretch&&t.arraystretch<1&&(m=new Si.MathNode("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},GGn=function(t,r){t.envName.indexOf("ed")===-1&&jAe(t);var a=[],s=t.envName.indexOf("at")>-1?"alignat":"align",o=t.envName==="split",u=q9(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:Ypt(t.envName),emptySingleRow:!0,colSeparationType:s,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),h,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",b=0;b<r[0].body.length;b++){var _=xl(r[0].body[b],"textord");m+=_.text}h=Number(m),f=h*2}var w=!f;u.body.forEach(function(k){for(var I=1;I<k.length;I+=2){var N=xl(k[I],"styling"),L=xl(N.body[0],"ordgroup");L.body.unshift(p)}if(w)f<k.length&&(f=k.length);else{var P=k.length/2;if(h<P)throw new Ri("Too many math in a row: "+("expected "+h+", but got "+P),k[0])}});for(var S=0;S<f;++S){var C="r",A=0;S%2===1?C="l":S>0&&w&&(A=1),a[S]={type:"align",align:C,pregap:A,postgap:0}}return u.colSeparationType=w?"align":"alignat",u};LA({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=HAe(t[0]),a=r?[t[0]]:xl(t[0],"ordgroup").body,s=a.map(function(u){var h=zpt(u),f=h.text;if("lcr".indexOf(f)!==-1)return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new Ri("Unknown column alignment: "+f,u)}),o={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return q9(e.parser,o,jpt(e.envName))},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var s=e.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),r=s.fetch().text,"lcr".indexOf(r)===-1)throw new Ri("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),a.cols=[{type:"align",align:r}]}}var o=q9(e.parser,a,jpt(e.envName)),u=Math.max(0,...o.body.map(h=>h.length));return o.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=q9(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=HAe(t[0]),a=r?[t[0]]:xl(t[0],"ordgroup").body,s=a.map(function(u){var h=zpt(u),f=h.text;if("lc".indexOf(f)!==-1)return{type:"align",align:f};throw new Ri("Unknown column alignment: "+f,u)});if(s.length>1)throw new Ri("{subarray} can contain only one column");var o={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=q9(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Ri("{subarray} can contain only one column");return o},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=q9(e.parser,t,jpt(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:GGn,htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&jAe(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Ypt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return q9(e.parser,t,"display")},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:GGn,htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jAe(e);var t={autoTag:Ypt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return q9(e.parser,t,"display")},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["CD"],props:{numArgs:0},handler(e){return jAe(e),W3i(e.parser)},htmlBuilder:DA,mathmlBuilder:MA});pt("\\nonumber","\\gdef\\@eqnsw{0}");pt("\\notag","\\nonumber");ga({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ri(e.funcName+" valid only within array environment")}});var X_n=UGn;ga({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];if(s.type!=="ordgroup")throw new Ri("Invalid environment name",s);for(var o="",u=0;u<s.body.length;++u)o+=xl(s.body[u],"textord").text;if(a==="\\begin"){if(!X_n.hasOwnProperty(o))throw new Ri("No such environment: "+o,s);var h=X_n[o],{args:f,optArgs:p}=r.parseArguments("\\begin{"+o+"}",h),m={mode:r.mode,envName:o,parser:r},b=h.handler(m,f,p);r.expect("\\end",!1);var _=r.nextToken,w=xl(r.parseFunction(),"environment");if(w.name!==o)throw new Ri("Mismatch: \\begin{"+o+"} matched by \\end{"+w.name+"}",_);return b}return{type:"environment",mode:r.mode,name:o,nameGroup:s}}});var qGn=(e,t)=>{var r=e.font,a=t.withFont(r);return jc(e.body,a)},HGn=(e,t)=>{var r=e.font,a=t.withFont(r);return Bh(e.body,a)},Q_n={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ga({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=B3e(t[0]),o=a;return o in Q_n&&(o=Q_n[o]),{type:"font",mode:r.mode,font:o.slice(1),body:s}},htmlBuilder:qGn,mathmlBuilder:HGn});ga({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],s=hu.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:VAe(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:s}}});ga({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:s}=e,{mode:o}=r,u=r.parseExpression(!0,s),h="math"+a.slice(1);return{type:"font",mode:o,font:h,body:{type:"ordgroup",mode:r.mode,body:u}}},htmlBuilder:qGn,mathmlBuilder:HGn});var VGn=(e,t)=>{var r=t;return e==="display"?r=r.id>=Js.SCRIPT.id?r.text():Js.DISPLAY:e==="text"&&r.size===Js.DISPLAY.size?r=Js.TEXT:e==="script"?r=Js.SCRIPT:e==="scriptscript"&&(r=Js.SCRIPTSCRIPT),r},Wpt=(e,t)=>{var r=VGn(e.size,t.style),a=r.fracNum(),s=r.fracDen(),o;o=t.havingStyle(a);var u=jc(e.numer,o,t);if(e.continued){var h=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;u.height=u.height<h?h:u.height,u.depth=u.depth<f?f:u.depth}o=t.havingStyle(s);var p=jc(e.denom,o,t),m,b,_;e.hasBarLine?(e.barSize?(b=Rf(e.barSize,t),m=er.makeLineSpan("frac-line",t,b)):m=er.makeLineSpan("frac-line",t),b=m.height,_=m.height):(m=null,b=0,_=t.fontMetrics().defaultRuleThickness);var w,S,C;r.size===Js.DISPLAY.size||e.size==="display"?(w=t.fontMetrics().num1,b>0?S=3*_:S=7*_,C=t.fontMetrics().denom1):(b>0?(w=t.fontMetrics().num2,S=_):(w=t.fontMetrics().num3,S=3*_),C=t.fontMetrics().denom2);var A;if(m){var I=t.fontMetrics().axisHeight;w-u.depth-(I+.5*b)<S&&(w+=S-(w-u.depth-(I+.5*b))),I-.5*b-(p.height-C)<S&&(C+=S-(I-.5*b-(p.height-C)));var N=-(I-.5*b);A=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:C},{type:"elem",elem:m,shift:N},{type:"elem",elem:u,shift:-w}]},t)}else{var k=w-u.depth-(p.height-C);k<S&&(w+=.5*(S-k),C+=.5*(S-k)),A=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:C},{type:"elem",elem:u,shift:-w}]},t)}o=t.havingStyle(r),A.height*=o.sizeMultiplier/t.sizeMultiplier,A.depth*=o.sizeMultiplier/t.sizeMultiplier;var L;r.size===Js.DISPLAY.size?L=t.fontMetrics().delim1:r.size===Js.SCRIPTSCRIPT.size?L=t.havingStyle(Js.SCRIPT).fontMetrics().delim2:L=t.fontMetrics().delim2;var P,M;return e.leftDelim==null?P=Boe(t,["mopen"]):P=q7.customSizedDelim(e.leftDelim,L,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?M=er.makeSpan([]):e.rightDelim==null?M=Boe(t,["mclose"]):M=q7.customSizedDelim(e.rightDelim,L,!0,t.havingStyle(r),e.mode,["mclose"]),er.makeSpan(["mord"].concat(o.sizingClasses(t)),[P,er.makeSpan(["mfrac"],[A]),M],t)},Kpt=(e,t)=>{var r=new Si.MathNode("mfrac",[Bh(e.numer,t),Bh(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=Rf(e.barSize,t);r.setAttribute("linethickness",Qi(a))}var s=VGn(e.size,t.style);if(s.size!==t.style.size){r=new Si.MathNode("mstyle",[r]);var o=s.size===Js.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",o),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var u=[];if(e.leftDelim!=null){var h=new Si.MathNode("mo",[new Si.TextNode(e.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),u.push(h)}if(u.push(r),e.rightDelim!=null){var f=new Si.MathNode("mo",[new Si.TextNode(e.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),u.push(f)}return $pt(u)}return r};ga({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1],u,h=null,f=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,h="(",f=")";break;case"\\\\bracefrac":u=!1,h="\\{",f="\\}";break;case"\\\\brackfrac":u=!1,h="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:s,denom:o,hasBarLine:u,leftDelim:h,rightDelim:f,size:p,barSize:null}},htmlBuilder:Wpt,mathmlBuilder:Kpt});ga({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:s,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ga({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,s;switch(r){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:s,token:a}}});var Z_n=["display","text","script","scriptscript"],J_n=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ga({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],s=t[5],o=B3e(t[0]),u=o.type==="atom"&&o.family==="open"?J_n(o.text):null,h=B3e(t[1]),f=h.type==="atom"&&h.family==="close"?J_n(h.text):null,p=xl(t[2],"size"),m,b=null;p.isBlank?m=!0:(b=p.value,m=b.number>0);var _="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var S=xl(w.body[0],"textord");_=Z_n[Number(S.text)]}}else w=xl(w,"textord"),_=Z_n[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:m,barSize:b,leftDelim:u,rightDelim:f,size:_}},htmlBuilder:Wpt,mathmlBuilder:Kpt});ga({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:s}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:xl(t[0],"size").value,token:s}}});ga({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=$4i(xl(t[1],"infix").size),u=t[2],h=o.number>0;return{type:"genfrac",mode:r.mode,numer:s,denom:u,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wpt,mathmlBuilder:Kpt});var YGn=(e,t)=>{var r=t.style,a,s;e.type==="supsub"?(a=e.sup?jc(e.sup,t.havingStyle(r.sup()),t):jc(e.sub,t.havingStyle(r.sub()),t),s=xl(e.base,"horizBrace")):s=xl(e,"horizBrace");var o=jc(s.base,t.havingBaseStyle(Js.DISPLAY)),u=oR.svgSpan(s,t),h;if(s.isOver?(h=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:u}]},t),h.children[0].children[0].children[1].classes.push("svg-align")):(h=er.makeVList({positionType:"bottom",positionData:o.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:o}]},t),h.children[0].children[0].children[0].classes.push("svg-align")),a){var f=er.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t);s.isOver?h=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:a}]},t):h=er.makeVList({positionType:"bottom",positionData:f.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return er.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t)},cTi=(e,t)=>{var r=oR.mathMLnode(e.label);return new Si.MathNode(e.isOver?"mover":"munder",[Bh(e.base,t),r])};ga({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:YGn,mathmlBuilder:cTi});ga({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],s=xl(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:r.mode,href:s,body:Q0(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Lp(e.body,t,!1);return er.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=r9(e.body,t);return r instanceof Nw||(r=new Nw("mrow",[r])),r.setAttribute("href",e.href),r}});ga({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=xl(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var s=[],o=0;o<a.length;o++){var u=a[o];u==="~"&&(u="\\textasciitilde"),s.push({type:"textord",mode:"text",text:u})}var h={type:"text",mode:r.mode,font:"\\texttt",body:s};return{type:"href",mode:r.mode,href:a,body:Q0(h)}}});ga({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Q0(t[0])}},htmlBuilder(e,t){var r=Lp(e.body,t,!1);return er.makeFragment(r)},mathmlBuilder(e,t){return new Si.MathNode("mrow",l_(e.body,t))}});ga({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,token:s}=e,o=xl(t[0],"raw").string,u=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,f={};switch(a){case"\\htmlClass":f.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":f.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":f.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var p=o.split(","),m=0;m<p.length;m++){var b=p[m],_=b.indexOf("=");if(_<0)throw new Ri("\\htmlData key/value '"+b+"' missing equals sign");var w=b.slice(0,_),S=b.slice(_+1);f["data-"+w.trim()]=S}h={command:"\\htmlData",attributes:f};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(h)?{type:"html",mode:r.mode,attributes:f,body:Q0(u)}:r.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=Lp(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var s=er.makeSpan(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&s.setAttribute(o,e.attributes[o]);return s},mathmlBuilder:(e,t)=>r9(e.body,t)});ga({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Q0(t[0]),mathml:Q0(t[1])}},htmlBuilder:(e,t)=>{var r=Lp(e.html,t,!1);return er.makeFragment(r)},mathmlBuilder:(e,t)=>r9(e.mathml,t)});var Int=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Ri("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!hGn(a))throw new Ri("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};ga({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,s={number:0,unit:"em"},o={number:.9,unit:"em"},u={number:0,unit:"em"},h="";if(r[0])for(var f=xl(r[0],"raw").string,p=f.split(","),m=0;m<p.length;m++){var b=p[m].split("=");if(b.length===2){var _=b[1].trim();switch(b[0].trim()){case"alt":h=_;break;case"width":s=Int(_);break;case"height":o=Int(_);break;case"totalheight":u=Int(_);break;default:throw new Ri("Invalid key: '"+b[0]+"' in \\includegraphics.")}}}var w=xl(t[0],"url").url;return h===""&&(h=w,h=h.replace(/^.*[\\/]/,""),h=h.substring(0,h.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:h,width:s,height:o,totalheight:u,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Rf(e.height,t),a=0;e.totalheight.number>0&&(a=Rf(e.totalheight,t)-r);var s=0;e.width.number>0&&(s=Rf(e.width,t));var o={height:Qi(r+a)};s>0&&(o.width=Qi(s)),a>0&&(o.verticalAlign=Qi(-a));var u=new c3i(e.src,e.alt,o);return u.height=r,u.depth=a,u},mathmlBuilder:(e,t)=>{var r=new Si.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=Rf(e.height,t),s=0;if(e.totalheight.number>0&&(s=Rf(e.totalheight,t)-a,r.setAttribute("valign",Qi(-s))),r.setAttribute("height",Qi(a+s)),e.width.number>0){var o=Rf(e.width,t);r.setAttribute("width",Qi(o))}return r.setAttribute("src",e.src),r}});ga({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=xl(t[0],"size");if(r.settings.strict){var o=a[1]==="m",u=s.value.unit==="mu";o?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+s.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:s.value}},htmlBuilder(e,t){return er.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Rf(e.dimension,t);return new Si.SpaceNode(r)}});ga({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:s}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=er.makeSpan([],[jc(e.body,t)]),r=er.makeSpan(["inner"],[r],t)):r=er.makeSpan(["inner"],[jc(e.body,t)]);var a=er.makeSpan(["fix"],[]),s=er.makeSpan([e.alignment],[r,a],t),o=er.makeSpan(["strut"]);return o.style.height=Qi(s.height+s.depth),s.depth&&(o.style.verticalAlign=Qi(-s.depth)),s.children.unshift(o),s=er.makeSpan(["thinbox"],[s],t),er.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var r=new Si.MathNode("mpadded",[Bh(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});ga({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,s=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",u=a.parseExpression(!1,o);return a.expect(o),a.switchMode(s),{type:"styling",mode:a.mode,style:"text",body:u}}});ga({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ri("Mismatched "+e.funcName)}});var ewn=(e,t)=>{switch(t.style.size){case Js.DISPLAY.size:return e.display;case Js.TEXT.size:return e.text;case Js.SCRIPT.size:return e.script;case Js.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ga({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Q0(t[0]),text:Q0(t[1]),script:Q0(t[2]),scriptscript:Q0(t[3])}},htmlBuilder:(e,t)=>{var r=ewn(e,t),a=Lp(r,t,!1);return er.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ewn(e,t);return r9(r,t)}});var jGn=(e,t,r,a,s,o,u)=>{e=er.makeSpan([],[e]);var h=r&&hu.isCharacterBox(r),f,p;if(t){var m=jc(t,a.havingStyle(s.sup()),a);p={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var b=jc(r,a.havingStyle(s.sub()),a);f={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var _;if(p&&f){var w=a.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+u;_=er.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Qi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Qi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(f){var S=e.height-u;_=er.makeVList({positionType:"top",positionData:S,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Qi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e}]},a)}else if(p){var C=e.depth+u;_=er.makeVList({positionType:"bottom",positionData:C,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Qi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var A=[_];if(f&&o!==0&&!h){var k=er.makeSpan(["mspace"],[],a);k.style.marginRight=Qi(o),A.unshift(k)}return er.makeSpan(["mop","op-limits"],A,a)},WGn=["\\smallint"],HW=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=xl(e.base,"op"),s=!0):o=xl(e,"op");var u=t.style,h=!1;u.size===Js.DISPLAY.size&&o.symbol&&!WGn.includes(o.name)&&(h=!0);var f;if(o.symbol){var p=h?"Size2-Regular":"Size1-Regular",m="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(m=o.name.slice(1),o.name=m==="oiint"?"\\iint":"\\iiint"),f=er.makeSymbol(o.name,p,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),m.length>0){var b=f.italic,_=er.staticSvg(m+"Size"+(h?"2":"1"),t);f=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:_,shift:h?.08:0}]},t),o.name="\\"+m,f.classes.unshift("mop"),f.italic=b}}else if(o.body){var w=Lp(o.body,t,!0);w.length===1&&w[0]instanceof xS?(f=w[0],f.classes[0]="mop"):f=er.makeSpan(["mop"],w,t)}else{for(var S=[],C=1;C<o.name.length;C++)S.push(er.mathsym(o.name[C],o.mode,t));f=er.makeSpan(["mop"],S,t)}var A=0,k=0;return(f instanceof xS||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(A=(f.height-f.depth)/2-t.fontMetrics().axisHeight,k=f.italic),s?jGn(f,r,a,t,u,k,A):(A&&(f.style.position="relative",f.style.top=Qi(A)),f)},vce=(e,t)=>{var r;if(e.symbol)r=new Nw("mo",[SS(e.name,e.mode)]),WGn.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Nw("mo",l_(e.body,t));else{r=new Nw("mi",[new QC(e.name.slice(1))]);var a=new Nw("mo",[SS("⁡","text")]);e.parentIsSupSub?r=new Nw("mrow",[r,a]):r=EGn([r,a])}return r},uTi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ga({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=a;return s.length===1&&(s=uTi[s]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q0(a)}},htmlBuilder:HW,mathmlBuilder:vce});var hTi={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ga({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return a.length===1&&(a=hTi[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:HW,mathmlBuilder:vce});var KGn=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=xl(e.base,"operatorname"),s=!0):o=xl(e,"operatorname");var u;if(o.body.length>0){for(var h=o.body.map(b=>{var _=b.text;return typeof _=="string"?{type:"textord",mode:b.mode,text:_}:b}),f=Lp(h,t.withFont("mathrm"),!0),p=0;p<f.length;p++){var m=f[p];m instanceof xS&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}u=er.makeSpan(["mop"],f,t)}else u=er.makeSpan(["mop"],[],t);return s?jGn(u,r,a,t,t.style,0,0):u},dTi=(e,t)=>{for(var r=l_(e.body,t.withFont("mathrm")),a=!0,s=0;s<r.length;s++){var o=r[s];if(!(o instanceof Si.SpaceNode))if(o instanceof Si.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var u=o.children[0];o.children.length===1&&u instanceof Si.TextNode?u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var h=r.map(m=>m.toText()).join("");r=[new Si.TextNode(h)]}var f=new Si.MathNode("mi",r);f.setAttribute("mathvariant","normal");var p=new Si.MathNode("mo",[SS("⁡","text")]);return e.parentIsSupSub?new Si.MathNode("mrow",[f,p]):Si.newDocumentFragment([f,p])};ga({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"operatorname",mode:r.mode,body:Q0(s),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:KGn,mathmlBuilder:dTi});pt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");M$({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?er.makeFragment(Lp(e.body,t,!1)):er.makeSpan(["mord"],Lp(e.body,t,!0),t)},mathmlBuilder(e,t){return r9(e.body,t,!0)}});ga({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=jc(e.body,t.havingCrampedStyle()),a=er.makeLineSpan("overline-line",t),s=t.fontMetrics().defaultRuleThickness,o=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:a},{type:"kern",size:s}]},t);return er.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[new Si.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Si.MathNode("mover",[Bh(e.body,t),r]);return a.setAttribute("accent","true"),a}});ga({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:Q0(a)}},htmlBuilder:(e,t)=>{var r=Lp(e.body,t.withPhantom(),!1);return er.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=l_(e.body,t);return new Si.MathNode("mphantom",r)}});ga({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=er.makeSpan([],[jc(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a<r.children.length;a++)r.children[a].height=0,r.children[a].depth=0;return r=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),er.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=l_(Q0(e.body),t),a=new Si.MathNode("mphantom",r),s=new Si.MathNode("mpadded",[a]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}});ga({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=er.makeSpan(["inner"],[jc(e.body,t.withPhantom())]),a=er.makeSpan(["fix"],[]);return er.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=l_(Q0(e.body),t),a=new Si.MathNode("mphantom",r),s=new Si.MathNode("mpadded",[a]);return s.setAttribute("width","0px"),s}});ga({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=xl(t[0],"size").value,s=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:s}},htmlBuilder(e,t){var r=jc(e.body,t),a=Rf(e.dy,t);return er.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Si.MathNode("mpadded",[Bh(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});ga({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ga({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,s=r[0],o=xl(t[0],"size"),u=xl(t[1],"size");return{type:"rule",mode:a.mode,shift:s&&xl(s,"size").value,width:o.value,height:u.value}},htmlBuilder(e,t){var r=er.makeSpan(["mord","rule"],[],t),a=Rf(e.width,t),s=Rf(e.height,t),o=e.shift?Rf(e.shift,t):0;return r.style.borderRightWidth=Qi(a),r.style.borderTopWidth=Qi(s),r.style.bottom=Qi(o),r.width=a,r.height=s+o,r.depth=-o,r.maxFontSize=s*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Rf(e.width,t),a=Rf(e.height,t),s=e.shift?Rf(e.shift,t):0,o=t.color&&t.getColor()||"black",u=new Si.MathNode("mspace");u.setAttribute("mathbackground",o),u.setAttribute("width",Qi(r)),u.setAttribute("height",Qi(a));var h=new Si.MathNode("mpadded",[u]);return s>=0?h.setAttribute("height",Qi(s)):(h.setAttribute("height",Qi(s)),h.setAttribute("depth",Qi(-s))),h.setAttribute("voffset",Qi(s)),h}});function XGn(e,t,r){for(var a=Lp(e,t,!1),s=t.sizeMultiplier/r.sizeMultiplier,o=0;o<a.length;o++){var u=a[o].classes.indexOf("sizing");u<0?Array.prototype.push.apply(a[o].classes,t.sizingClasses(r)):a[o].classes[u+1]==="reset-size"+t.size&&(a[o].classes[u+1]="reset-size"+r.size),a[o].height*=s,a[o].depth*=s}return er.makeFragment(a)}var twn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],fTi=(e,t)=>{var r=t.havingSize(e.size);return XGn(e.body,r,t)};ga({type:"sizing",names:twn,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!1,r);return{type:"sizing",mode:s.mode,size:twn.indexOf(a)+1,body:o}},htmlBuilder:fTi,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=l_(e.body,r),s=new Si.MathNode("mstyle",a);return s.setAttribute("mathsize",Qi(r.sizeMultiplier)),s}});ga({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,s=!1,o=!1,u=r[0]&&xl(r[0],"ordgroup");if(u)for(var h="",f=0;f<u.body.length;++f){var p=u.body[f];if(h=p.text,h==="t")s=!0;else if(h==="b")o=!0;else{s=!1,o=!1;break}}else s=!0,o=!0;var m=t[0];return{type:"smash",mode:a.mode,body:m,smashHeight:s,smashDepth:o}},htmlBuilder:(e,t)=>{var r=er.makeSpan([],[jc(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var s=0;s<r.children.length;s++)r.children[s].depth=0;var o=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return er.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var r=new Si.MathNode("mpadded",[Bh(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ga({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,s=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:s}},htmlBuilder(e,t){var r=jc(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=er.wrapFragment(r,t);var a=t.fontMetrics(),s=a.defaultRuleThickness,o=s;t.style.id<Js.TEXT.id&&(o=t.fontMetrics().xHeight);var u=s+o/4,h=r.height+r.depth+u+s,{span:f,ruleWidth:p,advanceWidth:m}=q7.sqrtImage(h,t),b=f.height-p;b>r.height+r.depth+u&&(u=(u+b-r.height-r.depth)/2);var _=f.height-r.height-u-p;r.style.paddingLeft=Qi(m);var w=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+_)},{type:"elem",elem:f},{type:"kern",size:p}]},t);if(e.index){var S=t.havingStyle(Js.SCRIPTSCRIPT),C=jc(e.index,S,t),A=.6*(w.height-w.depth),k=er.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:C}]},t),I=er.makeSpan(["root"],[k]);return er.makeSpan(["mord","sqrt"],[I,w],t)}else return er.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new Si.MathNode("mroot",[Bh(r,t),Bh(a,t)]):new Si.MathNode("msqrt",[Bh(r,t)])}});var nwn={display:Js.DISPLAY,text:Js.TEXT,script:Js.SCRIPT,scriptscript:Js.SCRIPTSCRIPT};ga({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:s.mode,style:u,body:o}},htmlBuilder(e,t){var r=nwn[e.style],a=t.havingStyle(r).withFont("");return XGn(e.body,a,t)},mathmlBuilder(e,t){var r=nwn[e.style],a=t.havingStyle(r),s=l_(e.body,a),o=new Si.MathNode("mstyle",s),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=u[e.style];return o.setAttribute("scriptlevel",h[0]),o.setAttribute("displaystyle",h[1]),o}});var pTi=function(t,r){var a=t.base;if(a)if(a.type==="op"){var s=a.limits&&(r.style.size===Js.DISPLAY.size||a.alwaysHandleSupSub);return s?HW:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Js.DISPLAY.size||a.limits);return o?KGn:null}else{if(a.type==="accent")return hu.isCharacterBox(a.base)?Gpt:null;if(a.type==="horizBrace"){var u=!t.sub;return u===a.isOver?YGn:null}else return null}else return null};M$({type:"supsub",htmlBuilder(e,t){var r=pTi(e,t);if(r)return r(e,t);var{base:a,sup:s,sub:o}=e,u=jc(a,t),h,f,p=t.fontMetrics(),m=0,b=0,_=a&&hu.isCharacterBox(a);if(s){var w=t.havingStyle(t.style.sup());h=jc(s,w,t),_||(m=u.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(o){var S=t.havingStyle(t.style.sub());f=jc(o,S,t),_||(b=u.depth+S.fontMetrics().subDrop*S.sizeMultiplier/t.sizeMultiplier)}var C;t.style===Js.DISPLAY?C=p.sup1:t.style.cramped?C=p.sup3:C=p.sup2;var A=t.sizeMultiplier,k=Qi(.5/p.ptPerEm/A),I=null;if(f){var N=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof xS||N)&&(I=Qi(-u.italic))}var L;if(h&&f){m=Math.max(m,C,h.depth+.25*p.xHeight),b=Math.max(b,p.sub2);var P=p.defaultRuleThickness,M=4*P;if(m-h.depth-(f.height-b)<M){b=M-(m-h.depth)+f.height;var F=.8*p.xHeight-(m-h.depth);F>0&&(m+=F,b-=F)}var U=[{type:"elem",elem:f,shift:b,marginRight:k,marginLeft:I},{type:"elem",elem:h,shift:-m,marginRight:k}];L=er.makeVList({positionType:"individualShift",children:U},t)}else if(f){b=Math.max(b,p.sub1,f.height-.8*p.xHeight);var $=[{type:"elem",elem:f,marginLeft:I,marginRight:k}];L=er.makeVList({positionType:"shift",positionData:b,children:$},t)}else if(h)m=Math.max(m,C,h.depth+.25*p.xHeight),L=er.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h,marginRight:k}]},t);else throw new Error("supsub must have either sup or sub.");var G=Wlt(u,"right")||"mord";return er.makeSpan([G],[u,er.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var r=!1,a,s;e.base&&e.base.type==="horizBrace"&&(s=!!e.sup,s===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Bh(e.base,t)];e.sub&&o.push(Bh(e.sub,t)),e.sup&&o.push(Bh(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===Js.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===Js.DISPLAY||p.limits)?u="munderover":u="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Js.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Js.DISPLAY)?u="munder":u="msub"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Js.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Js.DISPLAY)?u="mover":u="msup"}return new Si.MathNode(u,o)}});M$({type:"atom",htmlBuilder(e,t){return er.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[SS(e.text,e.mode)]);if(e.family==="bin"){var a=Upt(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var QGn={mi:"italic",mn:"normal",mtext:"normal"};M$({type:"mathord",htmlBuilder(e,t){return er.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new Si.MathNode("mi",[SS(e.text,e.mode,t)]),a=Upt(e,t)||"italic";return a!==QGn[r.type]&&r.setAttribute("mathvariant",a),r}});M$({type:"textord",htmlBuilder(e,t){return er.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=SS(e.text,e.mode,t),a=Upt(e,t)||"normal",s;return e.mode==="text"?s=new Si.MathNode("mtext",[r]):/[0-9]/.test(e.text)?s=new Si.MathNode("mn",[r]):e.text==="\\prime"?s=new Si.MathNode("mo",[r]):s=new Si.MathNode("mi",[r]),a!==QGn[s.type]&&s.setAttribute("mathvariant",a),s}});var Nnt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ont={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};M$({type:"spacing",htmlBuilder(e,t){if(Ont.hasOwnProperty(e.text)){var r=Ont[e.text].className||"";if(e.mode==="text"){var a=er.makeOrd(e,t,"textord");return a.classes.push(r),a}else return er.makeSpan(["mspace",r],[er.mathsym(e.text,e.mode,t)],t)}else{if(Nnt.hasOwnProperty(e.text))return er.makeSpan(["mspace",Nnt[e.text]],[],t);throw new Ri('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Ont.hasOwnProperty(e.text))r=new Si.MathNode("mtext",[new Si.TextNode(" ")]);else{if(Nnt.hasOwnProperty(e.text))return new Si.MathNode("mspace");throw new Ri('Unknown type of space "'+e.text+'"')}return r}});var rwn=()=>{var e=new Si.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};M$({type:"tag",mathmlBuilder(e,t){var r=new Si.MathNode("mtable",[new Si.MathNode("mtr",[rwn(),new Si.MathNode("mtd",[r9(e.body,t)]),rwn(),new Si.MathNode("mtd",[r9(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var iwn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},awn={"\\textbf":"textbf","\\textmd":"textmd"},gTi={"\\textit":"textit","\\textup":"textup"},swn=(e,t)=>{var r=e.font;if(r){if(iwn[r])return t.withTextFontFamily(iwn[r]);if(awn[r])return t.withTextFontWeight(awn[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(gTi[r])};ga({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"text",mode:r.mode,body:Q0(s),font:a}},htmlBuilder(e,t){var r=swn(e,t),a=Lp(e.body,r,!0);return er.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=swn(e,t);return r9(e.body,r)}});ga({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=jc(e.body,t),a=er.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,o=er.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:s},{type:"elem",elem:a},{type:"kern",size:3*s},{type:"elem",elem:r}]},t);return er.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[new Si.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Si.MathNode("munder",[Bh(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});ga({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=jc(e.body,t),a=t.fontMetrics().axisHeight,s=.5*(r.height-a-(r.depth+a));return er.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new Si.MathNode("mpadded",[Bh(e.body,t)],["vcenter"])}});ga({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Ri("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=own(e),a=[],s=t.havingStyle(t.style.text()),o=0;o<r.length;o++){var u=r[o];u==="~"&&(u="\\textasciitilde"),a.push(er.makeSymbol(u,"Typewriter-Regular",e.mode,s,["mord","texttt"]))}return er.makeSpan(["mord","text"].concat(s.sizingClasses(t)),er.tryCombineChars(a),s)},mathmlBuilder(e,t){var r=new Si.TextNode(own(e)),a=new Si.MathNode("mtext",[r]);return a.setAttribute("mathvariant","monospace"),a}});var own=e=>e.body.replace(/ /g,e.star?"␣":" "),gO=_Gn,ZGn=`[ \r
	]`,mTi="\\\\[a-zA-Z@]+",bTi="\\\\[^\uD800-\uDFFF]",yTi="("+mTi+")"+ZGn+"*",vTi=`\\\\(
|[ \r	]+
?)[ \r	]*`,Zlt="[̀-ͯ]",_Ti=new RegExp(Zlt+"+$"),wTi="("+ZGn+"+)|"+(vTi+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(Zlt+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Zlt+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+yTi)+("|"+bTi+")");let lwn=class{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(wTi,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Pw("EOF",new D2(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new Ri("Unexpected character: '"+t[r]+"'",new Pw(t[r],new D2(this,r,r+1)));var s=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=t.indexOf(`
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Pw(s,new D2(this,r,this.tokenRegex.lastIndex))}};class ETi{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ri("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,a){if(a===void 0&&(a=!1),a){for(var s=0;s<this.undefStack.length;s++)delete this.undefStack[s][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var xTi=zGn;pt("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});pt("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});pt("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});pt("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});pt("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});pt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");pt("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var cwn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pt("\\char",function(e){var t=e.popToken(),r,a="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ri("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=cwn[t.text],a==null||a>=r)throw new Ri("Invalid base-"+r+" digit "+t.text);for(var s;(s=cwn[e.future().text])!=null&&s<r;)a*=r,a+=s,e.popToken()}return"\\@char{"+a+"}"});var Xpt=(e,t,r,a)=>{var s=e.consumeArg().tokens;if(s.length!==1)throw new Ri("\\newcommand's first argument must be a macro name");var o=s[0].text,u=e.isDefined(o);if(u&&!t)throw new Ri("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!u&&!r)throw new Ri("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var h=0;if(s=e.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new Ri("Invalid number of arguments: "+f);h=parseInt(f),s=e.consumeArg().tokens}return u&&a||e.macros.set(o,{tokens:s,numArgs:h}),""};pt("\\newcommand",e=>Xpt(e,!1,!0,!1));pt("\\renewcommand",e=>Xpt(e,!0,!1,!1));pt("\\providecommand",e=>Xpt(e,!0,!0,!0));pt("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});pt("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});pt("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),gO[r],td.math[r],td.text[r]),""});pt("\\bgroup","{");pt("\\egroup","}");pt("~","\\nobreakspace");pt("\\lq","`");pt("\\rq","'");pt("\\aa","\\r a");pt("\\AA","\\r A");pt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");pt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");pt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");pt("ℬ","\\mathscr{B}");pt("ℰ","\\mathscr{E}");pt("ℱ","\\mathscr{F}");pt("ℋ","\\mathscr{H}");pt("ℐ","\\mathscr{I}");pt("ℒ","\\mathscr{L}");pt("ℳ","\\mathscr{M}");pt("ℛ","\\mathscr{R}");pt("ℭ","\\mathfrak{C}");pt("ℌ","\\mathfrak{H}");pt("ℨ","\\mathfrak{Z}");pt("\\Bbbk","\\Bbb{k}");pt("·","\\cdotp");pt("\\llap","\\mathllap{\\textrm{#1}}");pt("\\rlap","\\mathrlap{\\textrm{#1}}");pt("\\clap","\\mathclap{\\textrm{#1}}");pt("\\mathstrut","\\vphantom{(}");pt("\\underbar","\\underline{\\text{#1}}");pt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');pt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");pt("\\ne","\\neq");pt("≠","\\neq");pt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");pt("∉","\\notin");pt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");pt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");pt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");pt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");pt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");pt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");pt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");pt("⟂","\\perp");pt("‼","\\mathclose{!\\mkern-0.8mu!}");pt("∌","\\notni");pt("⌜","\\ulcorner");pt("⌝","\\urcorner");pt("⌞","\\llcorner");pt("⌟","\\lrcorner");pt("©","\\copyright");pt("®","\\textregistered");pt("️","\\textregistered");pt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');pt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');pt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');pt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');pt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");pt("⋮","\\vdots");pt("\\varGamma","\\mathit{\\Gamma}");pt("\\varDelta","\\mathit{\\Delta}");pt("\\varTheta","\\mathit{\\Theta}");pt("\\varLambda","\\mathit{\\Lambda}");pt("\\varXi","\\mathit{\\Xi}");pt("\\varPi","\\mathit{\\Pi}");pt("\\varSigma","\\mathit{\\Sigma}");pt("\\varUpsilon","\\mathit{\\Upsilon}");pt("\\varPhi","\\mathit{\\Phi}");pt("\\varPsi","\\mathit{\\Psi}");pt("\\varOmega","\\mathit{\\Omega}");pt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");pt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");pt("\\boxed","\\fbox{$\\displaystyle{#1}$}");pt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");pt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");pt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");pt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");pt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var uwn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pt("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in uwn?t=uwn[r]:(r.slice(0,4)==="\\not"||r in td.math&&["bin","rel"].includes(td.math[r].group))&&(t="\\dotsb"),t});var Qpt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pt("\\dotso",function(e){var t=e.future().text;return t in Qpt?"\\ldots\\,":"\\ldots"});pt("\\dotsc",function(e){var t=e.future().text;return t in Qpt&&t!==","?"\\ldots\\,":"\\ldots"});pt("\\cdots",function(e){var t=e.future().text;return t in Qpt?"\\@cdots\\,":"\\@cdots"});pt("\\dotsb","\\cdots");pt("\\dotsm","\\cdots");pt("\\dotsi","\\!\\cdots");pt("\\dotsx","\\ldots\\,");pt("\\DOTSI","\\relax");pt("\\DOTSB","\\relax");pt("\\DOTSX","\\relax");pt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");pt("\\,","\\tmspace+{3mu}{.1667em}");pt("\\thinspace","\\,");pt("\\>","\\mskip{4mu}");pt("\\:","\\tmspace+{4mu}{.2222em}");pt("\\medspace","\\:");pt("\\;","\\tmspace+{5mu}{.2777em}");pt("\\thickspace","\\;");pt("\\!","\\tmspace-{3mu}{.1667em}");pt("\\negthinspace","\\!");pt("\\negmedspace","\\tmspace-{4mu}{.2222em}");pt("\\negthickspace","\\tmspace-{5mu}{.277em}");pt("\\enspace","\\kern.5em ");pt("\\enskip","\\hskip.5em\\relax");pt("\\quad","\\hskip1em\\relax");pt("\\qquad","\\hskip2em\\relax");pt("\\tag","\\@ifstar\\tag@literal\\tag@paren");pt("\\tag@paren","\\tag@literal{({#1})}");pt("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ri("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});pt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");pt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");pt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");pt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");pt("\\newline","\\\\\\relax");pt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var JGn=Qi(XC["Main-Regular"][84][1]-.7*XC["Main-Regular"][65][1]);pt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+JGn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");pt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+JGn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");pt("\\hspace","\\@ifstar\\@hspacer\\@hspace");pt("\\@hspace","\\hskip #1\\relax");pt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");pt("\\ordinarycolon",":");pt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");pt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');pt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');pt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');pt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');pt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');pt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');pt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');pt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');pt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');pt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');pt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');pt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');pt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');pt("∷","\\dblcolon");pt("∹","\\eqcolon");pt("≔","\\coloneqq");pt("≕","\\eqqcolon");pt("⩴","\\Coloneqq");pt("\\ratio","\\vcentcolon");pt("\\coloncolon","\\dblcolon");pt("\\colonequals","\\coloneqq");pt("\\coloncolonequals","\\Coloneqq");pt("\\equalscolon","\\eqqcolon");pt("\\equalscoloncolon","\\Eqqcolon");pt("\\colonminus","\\coloneq");pt("\\coloncolonminus","\\Coloneq");pt("\\minuscolon","\\eqcolon");pt("\\minuscoloncolon","\\Eqcolon");pt("\\coloncolonapprox","\\Colonapprox");pt("\\coloncolonsim","\\Colonsim");pt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");pt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");pt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");pt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");pt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");pt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");pt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");pt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");pt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");pt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");pt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");pt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");pt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");pt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");pt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");pt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");pt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");pt("\\nleqq","\\html@mathml{\\@nleqq}{≰}");pt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");pt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");pt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");pt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");pt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");pt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");pt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");pt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");pt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");pt("\\imath","\\html@mathml{\\@imath}{ı}");pt("\\jmath","\\html@mathml{\\@jmath}{ȷ}");pt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");pt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");pt("⟦","\\llbracket");pt("⟧","\\rrbracket");pt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");pt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");pt("⦃","\\lBrace");pt("⦄","\\rBrace");pt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");pt("⦵","\\minuso");pt("\\darr","\\downarrow");pt("\\dArr","\\Downarrow");pt("\\Darr","\\Downarrow");pt("\\lang","\\langle");pt("\\rang","\\rangle");pt("\\uarr","\\uparrow");pt("\\uArr","\\Uparrow");pt("\\Uarr","\\Uparrow");pt("\\N","\\mathbb{N}");pt("\\R","\\mathbb{R}");pt("\\Z","\\mathbb{Z}");pt("\\alef","\\aleph");pt("\\alefsym","\\aleph");pt("\\Alpha","\\mathrm{A}");pt("\\Beta","\\mathrm{B}");pt("\\bull","\\bullet");pt("\\Chi","\\mathrm{X}");pt("\\clubs","\\clubsuit");pt("\\cnums","\\mathbb{C}");pt("\\Complex","\\mathbb{C}");pt("\\Dagger","\\ddagger");pt("\\diamonds","\\diamondsuit");pt("\\empty","\\emptyset");pt("\\Epsilon","\\mathrm{E}");pt("\\Eta","\\mathrm{H}");pt("\\exist","\\exists");pt("\\harr","\\leftrightarrow");pt("\\hArr","\\Leftrightarrow");pt("\\Harr","\\Leftrightarrow");pt("\\hearts","\\heartsuit");pt("\\image","\\Im");pt("\\infin","\\infty");pt("\\Iota","\\mathrm{I}");pt("\\isin","\\in");pt("\\Kappa","\\mathrm{K}");pt("\\larr","\\leftarrow");pt("\\lArr","\\Leftarrow");pt("\\Larr","\\Leftarrow");pt("\\lrarr","\\leftrightarrow");pt("\\lrArr","\\Leftrightarrow");pt("\\Lrarr","\\Leftrightarrow");pt("\\Mu","\\mathrm{M}");pt("\\natnums","\\mathbb{N}");pt("\\Nu","\\mathrm{N}");pt("\\Omicron","\\mathrm{O}");pt("\\plusmn","\\pm");pt("\\rarr","\\rightarrow");pt("\\rArr","\\Rightarrow");pt("\\Rarr","\\Rightarrow");pt("\\real","\\Re");pt("\\reals","\\mathbb{R}");pt("\\Reals","\\mathbb{R}");pt("\\Rho","\\mathrm{P}");pt("\\sdot","\\cdot");pt("\\sect","\\S");pt("\\spades","\\spadesuit");pt("\\sub","\\subset");pt("\\sube","\\subseteq");pt("\\supe","\\supseteq");pt("\\Tau","\\mathrm{T}");pt("\\thetasym","\\vartheta");pt("\\weierp","\\wp");pt("\\Zeta","\\mathrm{Z}");pt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");pt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");pt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");pt("\\bra","\\mathinner{\\langle{#1}|}");pt("\\ket","\\mathinner{|{#1}\\rangle}");pt("\\braket","\\mathinner{\\langle{#1}\\rangle}");pt("\\Bra","\\left\\langle#1\\right|");pt("\\Ket","\\left|#1\\right\\rangle");var eqn=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.consumeArg().tokens,u=t.macros.get("|"),h=t.macros.get("\\|");t.macros.beginGroup();var f=b=>_=>{e&&(_.macros.set("|",u),s.length&&_.macros.set("\\|",h));var w=b;if(!b&&s.length){var S=_.future();S.text==="|"&&(_.popToken(),w=!0)}return{tokens:w?s:a,numArgs:0}};t.macros.set("|",f(!1)),s.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,m=t.expandTokens([...o,...p,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};pt("\\bra@ket",eqn(!1));pt("\\bra@set",eqn(!0));pt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");pt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");pt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");pt("\\angln","{\\angl n}");pt("\\blue","\\textcolor{##6495ed}{#1}");pt("\\orange","\\textcolor{##ffa500}{#1}");pt("\\pink","\\textcolor{##ff00af}{#1}");pt("\\red","\\textcolor{##df0030}{#1}");pt("\\green","\\textcolor{##28ae7b}{#1}");pt("\\gray","\\textcolor{gray}{#1}");pt("\\purple","\\textcolor{##9d38bd}{#1}");pt("\\blueA","\\textcolor{##ccfaff}{#1}");pt("\\blueB","\\textcolor{##80f6ff}{#1}");pt("\\blueC","\\textcolor{##63d9ea}{#1}");pt("\\blueD","\\textcolor{##11accd}{#1}");pt("\\blueE","\\textcolor{##0c7f99}{#1}");pt("\\tealA","\\textcolor{##94fff5}{#1}");pt("\\tealB","\\textcolor{##26edd5}{#1}");pt("\\tealC","\\textcolor{##01d1c1}{#1}");pt("\\tealD","\\textcolor{##01a995}{#1}");pt("\\tealE","\\textcolor{##208170}{#1}");pt("\\greenA","\\textcolor{##b6ffb0}{#1}");pt("\\greenB","\\textcolor{##8af281}{#1}");pt("\\greenC","\\textcolor{##74cf70}{#1}");pt("\\greenD","\\textcolor{##1fab54}{#1}");pt("\\greenE","\\textcolor{##0d923f}{#1}");pt("\\goldA","\\textcolor{##ffd0a9}{#1}");pt("\\goldB","\\textcolor{##ffbb71}{#1}");pt("\\goldC","\\textcolor{##ff9c39}{#1}");pt("\\goldD","\\textcolor{##e07d10}{#1}");pt("\\goldE","\\textcolor{##a75a05}{#1}");pt("\\redA","\\textcolor{##fca9a9}{#1}");pt("\\redB","\\textcolor{##ff8482}{#1}");pt("\\redC","\\textcolor{##f9685d}{#1}");pt("\\redD","\\textcolor{##e84d39}{#1}");pt("\\redE","\\textcolor{##bc2612}{#1}");pt("\\maroonA","\\textcolor{##ffbde0}{#1}");pt("\\maroonB","\\textcolor{##ff92c6}{#1}");pt("\\maroonC","\\textcolor{##ed5fa6}{#1}");pt("\\maroonD","\\textcolor{##ca337c}{#1}");pt("\\maroonE","\\textcolor{##9e034e}{#1}");pt("\\purpleA","\\textcolor{##ddd7ff}{#1}");pt("\\purpleB","\\textcolor{##c6b9fc}{#1}");pt("\\purpleC","\\textcolor{##aa87ff}{#1}");pt("\\purpleD","\\textcolor{##7854ab}{#1}");pt("\\purpleE","\\textcolor{##543b78}{#1}");pt("\\mintA","\\textcolor{##f5f9e8}{#1}");pt("\\mintB","\\textcolor{##edf2df}{#1}");pt("\\mintC","\\textcolor{##e0e5cc}{#1}");pt("\\grayA","\\textcolor{##f6f7f7}{#1}");pt("\\grayB","\\textcolor{##f0f1f2}{#1}");pt("\\grayC","\\textcolor{##e3e5e6}{#1}");pt("\\grayD","\\textcolor{##d6d8da}{#1}");pt("\\grayE","\\textcolor{##babec2}{#1}");pt("\\grayF","\\textcolor{##888d93}{#1}");pt("\\grayG","\\textcolor{##626569}{#1}");pt("\\grayH","\\textcolor{##3b3e40}{#1}");pt("\\grayI","\\textcolor{##21242c}{#1}");pt("\\kaBlue","\\textcolor{##314453}{#1}");pt("\\kaGreen","\\textcolor{##71B307}{#1}");var tqn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class STi{constructor(t,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new ETi(xTi,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new lwn(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,a,s;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:s,end:a}=this.consumeArg(["]"])}else({tokens:s,start:r,end:a}=this.consumeArg());return this.pushToken(new Pw("EOF",a.loc)),this.pushTokens(s),new Pw("",D2.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var s=this.future(),o,u=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++u;else if(o.text==="}"){if(--u,u===-1)throw new Ri("Extra }",o)}else if(o.text==="EOF")throw new Ri("Unexpected end of input in a macro argument, expected '"+(t&&a?t[h]:"}")+"'",o);if(t&&a)if((u===0||u===1&&t[h]==="{")&&o.text===t[h]){if(++h,h===t.length){r.splice(-h,h);break}}else h=0}while(u!==0||a);return s.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:s,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Ri("The length of delimiters doesn't match the number of args!");for(var a=r[0],s=0;s<a.length;s++){var o=this.popToken();if(a[s]!==o.text)throw new Ri("Use of the macro doesn't match its definition",o)}}for(var u=[],h=0;h<t;h++)u.push(this.consumeArg(r&&r[h+1]).tokens);return u}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ri("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,s=r.noexpand?null:this._getExpansion(a);if(s==null||t&&s.unexpandable){if(t&&s==null&&a[0]==="\\"&&!this.isDefined(a))throw new Ri("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=s.tokens,u=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var f=o[h];if(f.text==="#"){if(h===0)throw new Ri("Incomplete placeholder at end of macro body",f);if(f=o[--h],f.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(f.text))o.splice(h,2,...u[+f.text-1]);else throw new Ri("Not a valid argument number",f)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Pw(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),r.push(s)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var s=typeof r=="function"?r(this):r;if(typeof s=="string"){var o=0;if(s.indexOf("#")!==-1)for(var u=s.replace(/##/g,"");u.indexOf("#"+(o+1))!==-1;)++o;for(var h=new lwn(s,this.settings),f=[],p=h.lex();p.text!=="EOF";)f.push(p),p=h.lex();f.reverse();var m={tokens:f,numArgs:o};return m}return s}isDefined(t){return this.macros.has(t)||gO.hasOwnProperty(t)||td.math.hasOwnProperty(t)||td.text.hasOwnProperty(t)||tqn.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:gO.hasOwnProperty(t)&&!gO[t].primitive}}var hwn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Cwe=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Lnt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},dwn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let nqn=class rqn{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new STi(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Ri("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Pw("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(rqn.endOfExpression.indexOf(s.text)!==-1||r&&s.text===r||t&&gO[s.text]&&gO[s.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,s=0;s<t.length;s++)if(t[s].type==="infix"){if(r!==-1)throw new Ri("only one infix operator per group",t[s].token);r=s,a=t[s].replaceWith}if(r!==-1&&a){var o,u,h=t.slice(0,r),f=t.slice(r+1);h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h},f.length===1&&f[0].type==="ordgroup"?u=f[0]:u={type:"ordgroup",mode:this.mode,body:f};var p;return a==="\\\\abovefrac"?p=this.callFunction(a,[o,t[r],u],[]):p=this.callFunction(a,[o,u],[]),[p]}else return t}handleSupSubscript(t){var r=this.fetch(),a=r.text;this.consume(),this.consumeSpaces();var s;do{var o;s=this.parseGroup(t)}while(((o=s)==null?void 0:o.type)==="internal");if(!s)throw new Ri("Expected group after '"+a+"'",r);return s}formatUnsupportedCmd(t){for(var r=[],a=0;a<t.length;a++)r.push({type:"textord",mode:"text",text:t[a]});var s={type:"text",mode:this.mode,body:r},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[s]};return o}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var a,s;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(r&&r.type==="op"){var u=o.text==="\\limits";r.limits=u,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=o.text==="\\limits");else throw new Ri("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(a)throw new Ri("Double superscript",o);a=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(s)throw new Ri("Double subscript",o);s=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(a)throw new Ri("Double superscript",o);var h={type:"textord",mode:this.mode,text:"\\prime"},f=[h];for(this.consume();this.fetch().text==="'";)f.push(h),this.consume();this.fetch().text==="^"&&f.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:f}}else if(Cwe[o.text]){var p=hwn.test(o.text),m=[];for(m.push(new Pw(Cwe[o.text])),this.consume();;){var b=this.fetch().text;if(!Cwe[b]||hwn.test(b)!==p)break;m.unshift(new Pw(Cwe[b])),this.consume()}var _=this.subparse(m);p?s={type:"ordgroup",mode:"math",body:_}:a={type:"ordgroup",mode:"math",body:_}}else break}return a||s?{type:"supsub",mode:this.mode,base:r,sup:a,sub:s}:r}parseFunction(t,r){var a=this.fetch(),s=a.text,o=gO[s];if(!o)return null;if(this.consume(),r&&r!=="atom"&&!o.allowedInArgument)throw new Ri("Got function '"+s+"' with no arguments"+(r?" as "+r:""),a);if(this.mode==="text"&&!o.allowedInText)throw new Ri("Can't use function '"+s+"' in text mode",a);if(this.mode==="math"&&o.allowedInMath===!1)throw new Ri("Can't use function '"+s+"' in math mode",a);var{args:u,optArgs:h}=this.parseArguments(s,o);return this.callFunction(s,u,h,a,t)}callFunction(t,r,a,s,o){var u={funcName:t,parser:this,token:s,breakOnTokenText:o},h=gO[t];if(h&&h.handler)return h.handler(u,r,a);throw new Ri("No function handler for "+t)}parseArguments(t,r){var a=r.numArgs+r.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var s=[],o=[],u=0;u<a;u++){var h=r.argTypes&&r.argTypes[u],f=u<r.numOptionalArgs;(r.primitive&&h==null||r.type==="sqrt"&&u===1&&o[0]==null)&&(h="primitive");var p=this.parseGroupOfType("argument to '"+t+"'",h,f);if(f)o.push(p);else if(p!=null)s.push(p);else throw new Ri("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(t,r,a){switch(r){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,r);case"hbox":{var s=this.parseArgumentGroup(a,"text");return s!=null?{type:"styling",mode:s.mode,body:[s],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",a);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(a)throw new Ri("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new Ri("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new Ri("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var a=this.gullet.scanArgument(r);if(a==null)return null;for(var s="",o;(o=this.fetch()).text!=="EOF";)s+=o.text,this.consume();return this.consume(),a.text=s,a}parseRegexGroup(t,r){for(var a=this.fetch(),s=a,o="",u;(u=this.fetch()).text!=="EOF"&&t.test(o+u.text);)s=u,o+=s.text,this.consume();if(o==="")throw new Ri("Invalid "+r+": '"+a.text+"'",a);return a.range(s,o)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!a)throw new Ri("Invalid color: '"+r.text+"'",r);var s=a[0];return/^[0-9a-f]{6}$/i.test(s)&&(s="#"+s),{type:"color-token",mode:this.mode,color:s}}parseSizeGroup(t){var r,a=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",a=!0);var s=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!s)throw new Ri("Invalid size: '"+r.text+"'",r);var o={number:+(s[1]+s[2]),unit:s[3]};if(!hGn(o))throw new Ri("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:a}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var a=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(t,r){var a=this.gullet.scanArgument(t);if(a==null)return null;var s=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var u={type:"ordgroup",mode:this.mode,loc:a.loc,body:o};return r&&this.switchMode(s),u}parseGroup(t,r){var a=this.fetch(),s=a.text,o;if(s==="{"||s==="\\begingroup"){this.consume();var u=s==="{"?"}":"\\endgroup";this.gullet.beginGroup();var h=this.parseExpression(!1,u),f=this.fetch();this.expect(u),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:D2.range(a,f),body:h,semisimple:s==="\\begingroup"||void 0}}else if(o=this.parseFunction(r,t)||this.parseSymbol(),o==null&&s[0]==="\\"&&!tqn.hasOwnProperty(s)){if(this.settings.throwOnError)throw new Ri("Undefined control sequence: "+s,a);o=this.formatUnsupportedCmd(s),this.consume()}return o}formLigatures(t){for(var r=t.length-1,a=0;a<r;++a){var s=t[a],o=s.text;o==="-"&&t[a+1].text==="-"&&(a+1<r&&t[a+2].text==="-"?(t.splice(a,3,{type:"textord",mode:"text",loc:D2.range(s,t[a+2]),text:"---"}),r-=2):(t.splice(a,2,{type:"textord",mode:"text",loc:D2.range(s,t[a+1]),text:"--"}),r-=1)),(o==="'"||o==="`")&&t[a+1].text===o&&(t.splice(a,2,{type:"textord",mode:"text",loc:D2.range(s,t[a+1]),text:o+o}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var a=r.slice(5),s=a.charAt(0)==="*";if(s&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new Ri(`\\verb assertion failed --
                    please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:s}}dwn.hasOwnProperty(r[0])&&!td[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=dwn[r[0]]+r.slice(1));var o=_Ti.exec(r);o&&(r=r.substring(0,o.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var u;if(td[this.mode][r]){this.settings.strict&&this.mode==="math"&&jlt.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var h=td[this.mode][r].group,f=D2.range(t),p;if(d3i.hasOwnProperty(h)){var m=h;p={type:"atom",mode:this.mode,family:m,loc:f,text:r}}else p={type:h,mode:this.mode,loc:f,text:r};u=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(cGn(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:D2.range(t),text:r};else return null;if(this.consume(),o)for(var b=0;b<o[0].length;b++){var _=o[0][b];if(!Lnt[_])throw new Ri("Unknown accent ' "+_+"'",t);var w=Lnt[_][this.mode]||Lnt[_].text;if(!w)throw new Ri("Accent "+_+" unsupported in "+this.mode+" mode",t);u={type:"accent",mode:this.mode,loc:D2.range(t),label:w,isStretchy:!1,isShifty:!0,base:u}}return u}};nqn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Zpt=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new nqn(t,r);delete a.gullet.macros.current["\\df@tag"];var s=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Ri("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:a.subparse([new Pw("\\df@tag")])}]}return s},Jpt=function(t,r,a){r.textContent="";var s=WAe(t,a).toNode();r.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Jpt=function(){throw new Ri("KaTeX doesn't work in quirks mode.")});var iqn=function(t,r){var a=WAe(t,r).toMarkup();return a},aqn=function(t,r){var a=new Dpt(r);return Zpt(t,a)},sqn=function(t,r,a){if(a.throwOnError||!(t instanceof Ri))throw t;var s=er.makeSpan(["katex-error"],[new xS(r)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+a.errorColor),s},WAe=function(t,r){var a=new Dpt(r);try{var s=Zpt(t,a);return M3i(s,t,a)}catch(o){return sqn(o,t,a)}},oqn=function(t,r){var a=new Dpt(r);try{var s=Zpt(t,a);return P3i(s,t,a)}catch(o){return sqn(o,t,a)}},lqn="0.16.27",cqn={Span:yce,Anchor:Bpt,SymbolNode:xS,SvgNode:aR,PathNode:n9,LineNode:Ylt},TTi={version:lqn,render:Jpt,renderToString:iqn,ParseError:Ri,SETTINGS_SCHEMA:wse,__parse:aqn,__renderToDomTree:WAe,__renderToHTMLTree:oqn,__setFontMetrics:uGn,__defineSymbol:Re,__defineFunction:ga,__defineMacro:pt,__domTree:cqn};const CTi=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Ri,SETTINGS_SCHEMA:wse,__defineFunction:ga,__defineMacro:pt,__defineSymbol:Re,__domTree:cqn,__parse:aqn,__renderToDomTree:WAe,__renderToHTMLTree:oqn,__setFontMetrics:uGn,default:TTi,get render(){return Jpt},renderToString:iqn,version:lqn},Symbol.toStringTag,{value:"Module"}));var ATi="[object Symbol]";function WF(e){return typeof e=="symbol"||yA(e)&&C$(e)==ATi}function eY(e,t){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=t(e[r],r,e);return s}var fwn=wS?wS.prototype:void 0,pwn=fwn?fwn.toString:void 0;function uqn(e){if(typeof e=="string")return e;if(Z0(e))return eY(e,uqn)+"";if(WF(e))return pwn?pwn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kTi=/\s/;function RTi(e){for(var t=e.length;t--&&kTi.test(e.charAt(t)););return t}var ITi=/^\s+/;function NTi(e){return e&&e.slice(0,RTi(e)+1).replace(ITi,"")}var gwn=NaN,OTi=/^[-+]0x[0-9a-f]+$/i,LTi=/^0b[01]+$/i,DTi=/^0o[0-7]+$/i,MTi=parseInt;function PTi(e){if(typeof e=="number")return e;if(WF(e))return gwn;if($w(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$w(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NTi(e);var r=LTi.test(e);return r||DTi.test(e)?MTi(e.slice(2),r?2:8):OTi.test(e)?gwn:+e}var mwn=1/0,BTi=17976931348623157e292;function vxe(e){if(!e)return e===0?e:0;if(e=PTi(e),e===mwn||e===-mwn){var t=e<0?-1:1;return t*BTi}return e===e?e:0}function FTi(e){var t=vxe(e),r=t%1;return t===t?r?t-r:t:0}function $Ti(){}function hqn(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}function dqn(e,t,r,a){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function UTi(e){return e!==e}function zTi(e,t,r){for(var a=r-1,s=e.length;++a<s;)if(e[a]===t)return a;return-1}function GTi(e,t,r){return t===t?zTi(e,t,r):dqn(e,UTi,r)}function qTi(e,t){var r=e==null?0:e.length;return!!r&&GTi(e,t,0)>-1}function Tp(e){return P9(e)?qPn(e):d$n(e)}var HTi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VTi=/^\w*$/;function egt(e,t){if(Z0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||WF(e)?!0:VTi.test(e)||!HTi.test(e)||t!=null&&e in Object(t)}var YTi=500;function jTi(e){var t=_R(e,function(a){return r.size===YTi&&r.clear(),a}),r=t.cache;return t}var WTi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KTi=/\\(\\)?/g,XTi=jTi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WTi,function(r,a,s,o){t.push(s?o.replace(KTi,"$1"):a||r)}),t});function fqn(e){return e==null?"":uqn(e)}function KAe(e,t){return Z0(e)?e:egt(e,t)?[e]:XTi(fqn(e))}function _ce(e){if(typeof e=="string"||WF(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function XAe(e,t){t=KAe(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[_ce(t[r++])];return r&&r==a?e:void 0}function QTi(e,t,r){var a=e==null?void 0:XAe(e,t);return a===void 0?r:a}function tgt(e,t){for(var r=-1,a=t.length,s=e.length;++r<a;)e[s+r]=t[r];return e}var bwn=wS?wS.isConcatSpreadable:void 0;function ZTi(e){return Z0(e)||Dj(e)||!!(bwn&&e&&e[bwn])}function QAe(e,t,r,a,s){var o=-1,u=e.length;for(r||(r=ZTi),s||(s=[]);++o<u;){var h=e[o];r(h)?tgt(s,h):a||(s[s.length]=h)}return s}function MS(e){var t=e==null?0:e.length;return t?QAe(e):[]}function JTi(e){return YPn(VPn(e,void 0,MS),e+"")}function e5i(e,t,r,a){var s=-1,o=e==null?0:e.length;for(a&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function t5i(e,t){return e&&lce(t,Tp(t),e)}function n5i(e,t){return e&&lce(t,R$(t),e)}function pqn(e,t){for(var r=-1,a=e==null?0:e.length,s=0,o=[];++r<a;){var u=e[r];t(u,r,e)&&(o[s++]=u)}return o}function gqn(){return[]}var r5i=Object.prototype,i5i=r5i.propertyIsEnumerable,ywn=Object.getOwnPropertySymbols,ngt=ywn?function(e){return e==null?[]:(e=Object(e),pqn(ywn(e),function(t){return i5i.call(e,t)}))}:gqn;function a5i(e,t){return lce(e,ngt(e),t)}var s5i=Object.getOwnPropertySymbols,mqn=s5i?function(e){for(var t=[];e;)tgt(t,ngt(e)),e=L1t(e);return t}:gqn;function o5i(e,t){return lce(e,mqn(e),t)}function bqn(e,t,r){var a=t(e);return Z0(e)?a:tgt(a,r(e))}function Jlt(e){return bqn(e,Tp,ngt)}function l5i(e){return bqn(e,R$,mqn)}var c5i=Object.prototype,u5i=c5i.hasOwnProperty;function h5i(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&u5i.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function d5i(e,t){var r=t?O1t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var f5i=/\w*$/;function p5i(e){var t=new e.constructor(e.source,f5i.exec(e));return t.lastIndex=e.lastIndex,t}var vwn=wS?wS.prototype:void 0,_wn=vwn?vwn.valueOf:void 0;function g5i(e){return _wn?Object(_wn.call(e)):{}}var m5i="[object Boolean]",b5i="[object Date]",y5i="[object Map]",v5i="[object Number]",_5i="[object RegExp]",w5i="[object Set]",E5i="[object String]",x5i="[object Symbol]",S5i="[object ArrayBuffer]",T5i="[object DataView]",C5i="[object Float32Array]",A5i="[object Float64Array]",k5i="[object Int8Array]",R5i="[object Int16Array]",I5i="[object Int32Array]",N5i="[object Uint8Array]",O5i="[object Uint8ClampedArray]",L5i="[object Uint16Array]",D5i="[object Uint32Array]";function M5i(e,t,r){var a=e.constructor;switch(t){case S5i:return O1t(e);case m5i:case b5i:return new a(+e);case T5i:return d5i(e,r);case C5i:case A5i:case k5i:case R5i:case I5i:case N5i:case O5i:case L5i:case D5i:return LPn(e,r);case y5i:return new a;case v5i:case E5i:return new a(e);case _5i:return p5i(e);case w5i:return new a;case x5i:return g5i(e)}}var P5i="[object Map]";function B5i(e){return yA(e)&&Qx(e)==P5i}var wwn=Pj&&Pj.isMap,F5i=wwn?yAe(wwn):B5i,$5i="[object Set]";function U5i(e){return yA(e)&&Qx(e)==$5i}var Ewn=Pj&&Pj.isSet,z5i=Ewn?yAe(Ewn):U5i,G5i=1,q5i=2,H5i=4,yqn="[object Arguments]",V5i="[object Array]",Y5i="[object Boolean]",j5i="[object Date]",W5i="[object Error]",vqn="[object Function]",K5i="[object GeneratorFunction]",X5i="[object Map]",Q5i="[object Number]",_qn="[object Object]",Z5i="[object RegExp]",J5i="[object Set]",eCi="[object String]",tCi="[object Symbol]",nCi="[object WeakMap]",rCi="[object ArrayBuffer]",iCi="[object DataView]",aCi="[object Float32Array]",sCi="[object Float64Array]",oCi="[object Int8Array]",lCi="[object Int16Array]",cCi="[object Int32Array]",uCi="[object Uint8Array]",hCi="[object Uint8ClampedArray]",dCi="[object Uint16Array]",fCi="[object Uint32Array]",Xh={};Xh[yqn]=Xh[V5i]=Xh[rCi]=Xh[iCi]=Xh[Y5i]=Xh[j5i]=Xh[aCi]=Xh[sCi]=Xh[oCi]=Xh[lCi]=Xh[cCi]=Xh[X5i]=Xh[Q5i]=Xh[_qn]=Xh[Z5i]=Xh[J5i]=Xh[eCi]=Xh[tCi]=Xh[uCi]=Xh[hCi]=Xh[dCi]=Xh[fCi]=!0;Xh[W5i]=Xh[vqn]=Xh[nCi]=!1;function xse(e,t,r,a,s,o){var u,h=t&G5i,f=t&q5i,p=t&H5i;if(u!==void 0)return u;if(!$w(e))return e;var m=Z0(e);if(m){if(u=h5i(e),!h)return DPn(e,u)}else{var b=Qx(e),_=b==vqn||b==K5i;if(Mj(e))return OPn(e,h);if(b==_qn||b==yqn||_&&!s){if(u=f||_?{}:PPn(e),!h)return f?o5i(e,n5i(u,e)):a5i(e,t5i(u,e))}else{if(!Xh[b])return s?e:{};u=M5i(e,b,h)}}o||(o=new K3);var w=o.get(e);if(w)return w;o.set(e,u),z5i(e)?e.forEach(function(A){u.add(xse(A,t,r,A,e,o))}):F5i(e)&&e.forEach(function(A,k){u.set(k,xse(A,t,r,k,e,o))});var S=p?f?l5i:Jlt:f?R$:Tp,C=m?void 0:S(e);return hqn(C||e,function(A,k){C&&(k=A,A=e[k]),_Ae(u,k,xse(A,t,r,k,e,o))}),u}var pCi=4;function ZAe(e){return xse(e,pCi)}var gCi=1,mCi=4;function wqn(e){return xse(e,gCi|mCi)}var bCi="__lodash_hash_undefined__";function yCi(e){return this.__data__.set(e,bCi),this}function vCi(e){return this.__data__.has(e)}function Foe(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vR;++t<r;)this.add(e[t])}Foe.prototype.add=Foe.prototype.push=yCi;Foe.prototype.has=vCi;function _Ci(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function Eqn(e,t){return e.has(t)}var wCi=1,ECi=2;function xqn(e,t,r,a,s,o){var u=r&wCi,h=e.length,f=t.length;if(h!=f&&!(u&&f>h))return!1;var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=-1,_=!0,w=r&ECi?new Foe:void 0;for(o.set(e,t),o.set(t,e);++b<h;){var S=e[b],C=t[b];if(a)var A=u?a(C,S,b,t,e,o):a(S,C,b,e,t,o);if(A!==void 0){if(A)continue;_=!1;break}if(w){if(!_Ci(t,function(k,I){if(!Eqn(w,I)&&(S===k||s(S,k,r,a,o)))return w.push(I)})){_=!1;break}}else if(!(S===C||s(S,C,r,a,o))){_=!1;break}}return o.delete(e),o.delete(t),_}function xCi(e){var t=-1,r=Array(e.size);return e.forEach(function(a,s){r[++t]=[s,a]}),r}function rgt(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var SCi=1,TCi=2,CCi="[object Boolean]",ACi="[object Date]",kCi="[object Error]",RCi="[object Map]",ICi="[object Number]",NCi="[object RegExp]",OCi="[object Set]",LCi="[object String]",DCi="[object Symbol]",MCi="[object ArrayBuffer]",PCi="[object DataView]",xwn=wS?wS.prototype:void 0,Dnt=xwn?xwn.valueOf:void 0;function BCi(e,t,r,a,s,o,u){switch(r){case PCi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MCi:return!(e.byteLength!=t.byteLength||!o(new L4e(e),new L4e(t)));case CCi:case ACi:case ICi:return BW(+e,+t);case kCi:return e.name==t.name&&e.message==t.message;case NCi:case LCi:return e==t+"";case RCi:var h=xCi;case OCi:var f=a&SCi;if(h||(h=rgt),e.size!=t.size&&!f)return!1;var p=u.get(e);if(p)return p==t;a|=TCi,u.set(e,t);var m=xqn(h(e),h(t),a,s,o,u);return u.delete(e),m;case DCi:if(Dnt)return Dnt.call(e)==Dnt.call(t)}return!1}var FCi=1,$Ci=Object.prototype,UCi=$Ci.hasOwnProperty;function zCi(e,t,r,a,s,o){var u=r&FCi,h=Jlt(e),f=h.length,p=Jlt(t),m=p.length;if(f!=m&&!u)return!1;for(var b=f;b--;){var _=h[b];if(!(u?_ in t:UCi.call(t,_)))return!1}var w=o.get(e),S=o.get(t);if(w&&S)return w==t&&S==e;var C=!0;o.set(e,t),o.set(t,e);for(var A=u;++b<f;){_=h[b];var k=e[_],I=t[_];if(a)var N=u?a(I,k,_,t,e,o):a(k,I,_,e,t,o);if(!(N===void 0?k===I||s(k,I,r,a,o):N)){C=!1;break}A||(A=_=="constructor")}if(C&&!A){var L=e.constructor,P=t.constructor;L!=P&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof P=="function"&&P instanceof P)&&(C=!1)}return o.delete(e),o.delete(t),C}var GCi=1,Swn="[object Arguments]",Twn="[object Array]",Awe="[object Object]",qCi=Object.prototype,Cwn=qCi.hasOwnProperty;function HCi(e,t,r,a,s,o){var u=Z0(e),h=Z0(t),f=u?Twn:Qx(e),p=h?Twn:Qx(t);f=f==Swn?Awe:f,p=p==Swn?Awe:p;var m=f==Awe,b=p==Awe,_=f==p;if(_&&Mj(e)){if(!Mj(t))return!1;u=!0,m=!1}if(_&&!m)return o||(o=new K3),u||vAe(e)?xqn(e,t,r,a,s,o):BCi(e,t,f,r,a,s,o);if(!(r&GCi)){var w=m&&Cwn.call(e,"__wrapped__"),S=b&&Cwn.call(t,"__wrapped__");if(w||S){var C=w?e.value():e,A=S?t.value():t;return o||(o=new K3),s(C,A,r,a,o)}}return _?(o||(o=new K3),zCi(e,t,r,a,s,o)):!1}function igt(e,t,r,a,s){return e===t?!0:e==null||t==null||!yA(e)&&!yA(t)?e!==e&&t!==t:HCi(e,t,r,a,igt,s)}var VCi=1,YCi=2;function jCi(e,t,r,a){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var u=r[s];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){u=r[s];var h=u[0],f=e[h],p=u[1];if(u[2]){if(f===void 0&&!(h in e))return!1}else{var m=new K3,b;if(!(b===void 0?igt(p,f,VCi|YCi,a,m):b))return!1}}return!0}function Sqn(e){return e===e&&!$w(e)}function WCi(e){for(var t=Tp(e),r=t.length;r--;){var a=t[r],s=e[a];t[r]=[a,s,Sqn(s)]}return t}function Tqn(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function KCi(e){var t=WCi(e);return t.length==1&&t[0][2]?Tqn(t[0][0],t[0][1]):function(r){return r===e||jCi(r,e,t)}}function XCi(e,t){return e!=null&&t in Object(e)}function Cqn(e,t,r){t=KAe(t,e);for(var a=-1,s=t.length,o=!1;++a<s;){var u=_ce(t[a]);if(!(o=e!=null&&r(e,u)))break;e=e[u]}return o||++a!=s?o:(s=e==null?0:e.length,!!s&&D1t(s)&&wAe(u,s)&&(Z0(e)||Dj(e)))}function Aqn(e,t){return e!=null&&Cqn(e,t,XCi)}var QCi=1,ZCi=2;function JCi(e,t){return egt(e)&&Sqn(t)?Tqn(_ce(e),t):function(r){var a=QTi(r,e);return a===void 0&&a===t?Aqn(r,e):igt(t,a,QCi|ZCi)}}function eAi(e){return function(t){return t==null?void 0:t[e]}}function tAi(e){return function(t){return XAe(t,e)}}function nAi(e){return egt(e)?eAi(_ce(e)):tAi(e)}function xR(e){return typeof e=="function"?e:e==null?I$:typeof e=="object"?Z0(e)?JCi(e[0],e[1]):KCi(e):nAi(e)}function agt(e,t){return e&&N1t(e,t,Tp)}function rAi(e,t){return function(r,a){if(r==null)return r;if(!P9(r))return e(r,a);for(var s=r.length,o=-1,u=Object(r);++o<s&&a(u[o],o,u)!==!1;);return r}}var JAe=rAi(agt),kqn=Object.prototype,iAi=kqn.hasOwnProperty,BB=EAe(function(e,t){e=Object(e);var r=-1,a=t.length,s=a>2?t[2]:void 0;for(s&&xoe(t[0],t[1],s)&&(a=1);++r<a;)for(var o=t[r],u=R$(o),h=-1,f=u.length;++h<f;){var p=u[h],m=e[p];(m===void 0||BW(m,kqn[p])&&!iAi.call(e,p))&&(e[p]=o[p])}return e});function i9(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function sgt(e){return typeof e=="function"?e:I$}function Zt(e,t){var r=Z0(e)?hqn:JAe;return r(e,sgt(t))}function aAi(e,t){var r=[];return JAe(e,function(a,s,o){t(a,s,o)&&r.push(a)}),r}function Rp(e,t){var r=Z0(e)?pqn:aAi;return r(e,xR(t))}function sAi(e){return function(t,r,a){var s=Object(t);if(!P9(t)){var o=xR(r);t=Tp(t),r=function(h){return o(s[h],h,s)}}var u=e(t,r,a);return u>-1?s[o?t[u]:u]:void 0}}var oAi=Math.max;function lAi(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=r==null?0:FTi(r);return s<0&&(s=oAi(a+s,0)),dqn(e,xR(t),s)}var VW=sAi(lAi);function Rqn(e,t){var r=-1,a=P9(e)?Array(e.length):[];return JAe(e,function(s,o,u){a[++r]=t(s,o,u)}),a}function wo(e,t){var r=Z0(e)?eY:Rqn;return r(e,xR(t))}function cAi(e,t){return QAe(wo(e,t))}function Iqn(e,t){return e==null?e:N1t(e,sgt(t),R$)}function Nqn(e,t){return e&&agt(e,sgt(t))}function uAi(e,t){return e>t}var hAi=Object.prototype,dAi=hAi.hasOwnProperty;function fAi(e,t){return e!=null&&dAi.call(e,t)}function Ho(e,t){return e!=null&&Cqn(e,t,fAi)}function pAi(e,t){return eY(t,function(r){return e[r]})}function Ag(e){return e==null?[]:pAi(e,Tp(e))}function gl(e){return e===void 0}function Oqn(e,t){return e<t}function H9(e,t){var r={};return t=xR(t),agt(e,function(a,s,o){mAe(r,s,t(a,s,o))}),r}function ogt(e,t,r){for(var a=-1,s=e.length;++a<s;){var o=e[a],u=t(o);if(u!=null&&(h===void 0?u===u&&!WF(u):r(u,h)))var h=u,f=o}return f}function i_(e){return e&&e.length?ogt(e,I$,uAi):void 0}function oT(e){return e&&e.length?ogt(e,I$,Oqn):void 0}function YW(e,t){return e&&e.length?ogt(e,xR(t),Oqn):void 0}function gAi(e,t,r,a){if(!$w(e))return e;t=KAe(t,e);for(var s=-1,o=t.length,u=o-1,h=e;h!=null&&++s<o;){var f=_ce(t[s]),p=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(s!=u){var m=h[f];p=void 0,p===void 0&&(p=$w(m)?m:wAe(t[s+1])?[]:{})}_Ae(h,f,p),h=h[f]}return e}function mAi(e,t,r){for(var a=-1,s=t.length,o={};++a<s;){var u=t[a],h=XAe(e,u);r(h,u)&&gAi(o,KAe(u,e),h)}return o}function bAi(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function yAi(e,t){if(e!==t){var r=e!==void 0,a=e===null,s=e===e,o=WF(e),u=t!==void 0,h=t===null,f=t===t,p=WF(t);if(!h&&!p&&!o&&e>t||o&&u&&f&&!h&&!p||a&&u&&f||!r&&f||!s)return 1;if(!a&&!o&&!p&&e<t||p&&r&&s&&!a&&!o||h&&r&&s||!u&&s||!f)return-1}return 0}function vAi(e,t,r){for(var a=-1,s=e.criteria,o=t.criteria,u=s.length,h=r.length;++a<u;){var f=yAi(s[a],o[a]);if(f){if(a>=h)return f;var p=r[a];return f*(p=="desc"?-1:1)}}return e.index-t.index}function _Ai(e,t,r){t.length?t=eY(t,function(o){return Z0(o)?function(u){return XAe(u,o.length===1?o[0]:o)}:o}):t=[I$];var a=-1;t=eY(t,yAe(xR));var s=Rqn(e,function(o,u,h){var f=eY(t,function(p){return p(o)});return{criteria:f,index:++a,value:o}});return bAi(s,function(o,u){return vAi(o,u,r)})}function wAi(e,t){return mAi(e,t,function(r,a){return Aqn(e,a)})}var lR=JTi(function(e,t){return e==null?{}:wAi(e,t)}),EAi=Math.ceil,xAi=Math.max;function SAi(e,t,r,a){for(var s=-1,o=xAi(EAi((t-e)/(r||1)),0),u=Array(o);o--;)u[++s]=e,e+=r;return u}function TAi(e){return function(t,r,a){return a&&typeof a!="number"&&xoe(t,r,a)&&(r=a=void 0),t=vxe(t),r===void 0?(r=t,t=0):r=vxe(r),a=a===void 0?t<r?1:-1:vxe(a),SAi(t,r,a)}}var Uw=TAi();function CAi(e,t,r,a,s){return s(e,function(o,u,h){r=a?(a=!1,o):t(r,o,u,h)}),r}function TS(e,t,r){var a=Z0(e)?e5i:CAi,s=arguments.length<3;return a(e,xR(t),r,s,JAe)}var PA=EAe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&xoe(e,t[0],t[1])?t=[]:r>2&&xoe(t[0],t[1],t[2])&&(t=[t[0]]),_Ai(e,QAe(t),[])}),AAi=1/0,kAi=QV&&1/rgt(new QV([,-0]))[1]==AAi?function(e){return new QV(e)}:$Ti,RAi=200;function Lqn(e,t,r){var a=-1,s=qTi,o=e.length,u=!0,h=[],f=h;if(o>=RAi){var p=t?null:kAi(e);if(p)return rgt(p);u=!1,s=Eqn,f=new Foe}else f=t?[]:h;e:for(;++a<o;){var m=e[a],b=t?t(m):m;if(m=m!==0?m:0,u&&b===b){for(var _=f.length;_--;)if(f[_]===b)continue e;t&&f.push(b),h.push(m)}else s(f,b,r)||(f!==h&&f.push(b),h.push(m))}return h}var Dqn=EAe(function(e){return Lqn(QAe(e,1,FPn,!0))});function IAi(e,t){return e&&e.length?Lqn(e,xR(t)):[]}var NAi=0;function P$(e){var t=++NAi;return fqn(e)+t}function OAi(e,t,r){for(var a=-1,s=e.length,o=t.length,u={};++a<s;){var h=a<o?t[a]:void 0;r(u,e[a],h)}return u}function Mqn(e,t){return OAi(e||[],t||[],_Ae)}var LAi="\0",vB="\0",Awn="";let c_=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=$3(void 0),this._defaultEdgeLabelFn=$3(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[vB]={}),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 KO(t)||(t=$3(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Tp(this._nodes)}sources(){var t=this;return Rp(this.nodes(),function(r){return uA(t._in[r])})}sinks(){var t=this;return Rp(this.nodes(),function(r){return uA(t._out[r])})}setNodes(t,r){var a=arguments,s=this;return Zt(t,function(o){a.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=vB,this._children[t]={},this._children[vB][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 Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Zt(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),Zt(Tp(this._in[t]),r),delete this._in[t],delete this._preds[t],Zt(Tp(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gl(r))r=vB;else{r+="";for(var a=r;!gl(a);a=this.parent(a))if(a===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==vB)return r}}children(t){if(gl(t)&&(t=vB),this._isCompound){var r=this._children[t];if(r)return Tp(r)}else{if(t===vB)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Tp(r)}successors(t){var r=this._sucs[t];if(r)return Tp(r)}neighbors(t){var r=this.predecessors(t);if(r)return Dqn(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var a=this;Zt(this._nodes,function(u,h){t(h)&&r.setNode(h,u)}),Zt(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,a.edge(u))});var s={};function o(u){var h=a.parent(u);return h===void 0||r.hasNode(h)?(s[u]=h,h):h in s?s[h]:o(h)}return this._isCompound&&Zt(r.nodes(),function(u){r.setParent(u,o(u))}),r}setDefaultEdgeLabel(t){return KO(t)||(t=$3(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ag(this._edgeObjs)}setPath(t,r){var a=this,s=arguments;return TS(t,function(o,u){return s.length>1?a.setEdge(o,u,r):a.setEdge(o,u),u}),this}setEdge(){var t,r,a,s,o=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,a=u.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=u,r=arguments[1],a=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,gl(a)||(a=""+a);var h=Vie(this._isDirected,t,r,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return o&&(this._edgeLabels[h]=s),this;if(!gl(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[h]=o?s:this._defaultEdgeLabelFn(t,r,a);var f=DAi(this._isDirected,t,r,a);return t=f.v,r=f.w,Object.freeze(f),this._edgeObjs[h]=f,kwn(this._preds[r],t),kwn(this._sucs[t],r),this._in[r][h]=f,this._out[t][h]=f,this._edgeCount++,this}edge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a);return this._edgeLabels[s]}hasEdge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],Rwn(this._preds[r],t),Rwn(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var a=this._in[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.v===r}):s}}outEdges(t,r){var a=this._out[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var a=this.inEdges(t,r);if(a)return a.concat(this.outEdges(t,r))}};c_.prototype._nodeCount=0;c_.prototype._edgeCount=0;function kwn(e,t){e[t]?e[t]++:e[t]=1}function Rwn(e,t){--e[t]||delete e[t]}function Vie(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}return s+Awn+o+Awn+(gl(a)?LAi:a)}function DAi(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}var h={v:s,w:o};return a&&(h.name=a),h}function Mnt(e,t){return Vie(e,t.v,t.w,t.name)}let MAi=class{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return Iwn(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&Iwn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,a=r._prev;a!==r;)t.push(JSON.stringify(a,PAi)),a=a._prev;return"["+t.join(", ")+"]"}};function Iwn(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function PAi(e,t){if(e!=="_next"&&e!=="_prev")return t}var BAi=$3(1);function FAi(e,t){if(e.nodeCount()<=1)return[];var r=UAi(e,t||BAi),a=$Ai(r.graph,r.buckets,r.zeroIdx);return MS(wo(a,function(s){return e.outEdges(s.v,s.w)}))}function $Ai(e,t,r){for(var a=[],s=t[t.length-1],o=t[0],u;e.nodeCount();){for(;u=o.dequeue();)Pnt(e,t,r,u);for(;u=s.dequeue();)Pnt(e,t,r,u);if(e.nodeCount()){for(var h=t.length-2;h>0;--h)if(u=t[h].dequeue(),u){a=a.concat(Pnt(e,t,r,u,!0));break}}}return a}function Pnt(e,t,r,a,s){var o=s?[]:void 0;return Zt(e.inEdges(a.v),function(u){var h=e.edge(u),f=e.node(u.v);s&&o.push({v:u.v,w:u.w}),f.out-=h,ect(t,r,f)}),Zt(e.outEdges(a.v),function(u){var h=e.edge(u),f=u.w,p=e.node(f);p.in-=h,ect(t,r,p)}),e.removeNode(a.v),o}function UAi(e,t){var r=new c_,a=0,s=0;Zt(e.nodes(),function(h){r.setNode(h,{v:h,in:0,out:0})}),Zt(e.edges(),function(h){var f=r.edge(h.v,h.w)||0,p=t(h),m=f+p;r.setEdge(h.v,h.w,m),s=Math.max(s,r.node(h.v).out+=p),a=Math.max(a,r.node(h.w).in+=p)});var o=Uw(s+a+3).map(function(){return new MAi}),u=a+1;return Zt(r.nodes(),function(h){ect(o,u,r.node(h))}),{graph:r,buckets:o,zeroIdx:u}}function ect(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function zAi(e){var t=e.graph().acyclicer==="greedy"?FAi(e,r(e)):GAi(e);Zt(t,function(a){var s=e.edge(a);e.removeEdge(a),s.forwardName=a.name,s.reversed=!0,e.setEdge(a.w,a.v,s,P$("rev"))});function r(a){return function(s){return a.edge(s).weight}}}function GAi(e){var t=[],r={},a={};function s(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,Zt(e.outEdges(o),function(u){Object.prototype.hasOwnProperty.call(r,u.w)?t.push(u):s(u.w)}),delete r[o])}return Zt(e.nodes(),s),t}function qAi(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,a)}})}function jW(e,t,r,a){var s;do s=P$(a);while(e.hasNode(s));return r.dummy=t,e.setNode(s,r),s}function HAi(e){var t=new c_().setGraph(e.graph());return Zt(e.nodes(),function(r){t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){var a=t.edge(r.v,r.w)||{weight:0,minlen:1},s=e.edge(r);t.setEdge(r.v,r.w,{weight:a.weight+s.weight,minlen:Math.max(a.minlen,s.minlen)})}),t}function Pqn(e){var t=new c_({multigraph:e.isMultigraph()}).setGraph(e.graph());return Zt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function Nwn(e,t){var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=h*s/o,p=h):(s<0&&(u=-u),f=u,p=u*o/s),{x:r+f,y:a+p}}function eke(e){var t=wo(Uw(Bqn(e)+1),function(){return[]});return Zt(e.nodes(),function(r){var a=e.node(r),s=a.rank;gl(s)||(t[s][a.order]=r)}),t}function VAi(e){var t=oT(wo(e.nodes(),function(r){return e.node(r).rank}));Zt(e.nodes(),function(r){var a=e.node(r);Ho(a,"rank")&&(a.rank-=t)})}function YAi(e){var t=oT(wo(e.nodes(),function(o){return e.node(o).rank})),r=[];Zt(e.nodes(),function(o){var u=e.node(o).rank-t;r[u]||(r[u]=[]),r[u].push(o)});var a=0,s=e.graph().nodeRankFactor;Zt(r,function(o,u){gl(o)&&u%s!==0?--a:a&&Zt(o,function(h){e.node(h).rank+=a})})}function Own(e,t,r,a){var s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=a),jW(e,"border",s,t)}function Bqn(e){return i_(wo(e.nodes(),function(t){var r=e.node(t).rank;if(!gl(r))return r}))}function jAi(e,t){var r={lhs:[],rhs:[]};return Zt(e,function(a){t(a)?r.lhs.push(a):r.rhs.push(a)}),r}function WAi(e,t){return t()}function KAi(e){function t(r){var a=e.children(r),s=e.node(r);if(a.length&&Zt(a,t),Object.prototype.hasOwnProperty.call(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var o=s.minRank,u=s.maxRank+1;o<u;++o)Lwn(e,"borderLeft","_bl",r,s,o),Lwn(e,"borderRight","_br",r,s,o)}}Zt(e.children(),t)}function Lwn(e,t,r,a,s,o){var u={width:0,height:0,rank:o,borderType:t},h=s[t][o-1],f=jW(e,"border",u,r);s[t][o]=f,e.setParent(f,a),h&&e.setEdge(h,f,{weight:1})}function XAi(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Fqn(e)}function QAi(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&ZAi(e),(t==="lr"||t==="rl")&&(JAi(e),Fqn(e))}function Fqn(e){Zt(e.nodes(),function(t){Dwn(e.node(t))}),Zt(e.edges(),function(t){Dwn(e.edge(t))})}function Dwn(e){var t=e.width;e.width=e.height,e.height=t}function ZAi(e){Zt(e.nodes(),function(t){Bnt(e.node(t))}),Zt(e.edges(),function(t){var r=e.edge(t);Zt(r.points,Bnt),Object.prototype.hasOwnProperty.call(r,"y")&&Bnt(r)})}function Bnt(e){e.y=-e.y}function JAi(e){Zt(e.nodes(),function(t){Fnt(e.node(t))}),Zt(e.edges(),function(t){var r=e.edge(t);Zt(r.points,Fnt),Object.prototype.hasOwnProperty.call(r,"x")&&Fnt(r)})}function Fnt(e){var t=e.x;e.x=e.y,e.y=t}function eki(e){e.graph().dummyChains=[],Zt(e.edges(),function(t){tki(e,t)})}function tki(e,t){var r=t.v,a=e.node(r).rank,s=t.w,o=e.node(s).rank,u=t.name,h=e.edge(t),f=h.labelRank;if(o!==a+1){e.removeEdge(t);var p=void 0,m,b;for(b=0,++a;a<o;++b,++a)h.points=[],p={width:0,height:0,edgeLabel:h,edgeObj:t,rank:a},m=jW(e,"edge",p,"_d"),a===f&&(p.width=h.width,p.height=h.height,p.dummy="edge-label",p.labelpos=h.labelpos),e.setEdge(r,m,{weight:h.weight},u),b===0&&e.graph().dummyChains.push(m),r=m;e.setEdge(r,s,{weight:h.weight},u)}}function nki(e){Zt(e.graph().dummyChains,function(t){var r=e.node(t),a=r.edgeLabel,s;for(e.setEdge(r.edgeObj,a);r.dummy;)s=e.successors(t)[0],e.removeNode(t),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),t=s,r=e.node(t)})}function lgt(e){var t={};function r(a){var s=e.node(a);if(Object.prototype.hasOwnProperty.call(t,a))return s.rank;t[a]=!0;var o=oT(wo(e.outEdges(a),function(u){return r(u.w)-e.edge(u).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),s.rank=o}Zt(e.sources(),r)}function $oe(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function $qn(e){var t=new c_({directed:!1}),r=e.nodes()[0],a=e.nodeCount();t.setNode(r,{});for(var s,o;rki(t,e)<a;)s=iki(t,e),o=t.hasNode(s.v)?$oe(e,s):-$oe(e,s),aki(t,e,o);return t}function rki(e,t){function r(a){Zt(t.nodeEdges(a),function(s){var o=s.v,u=a===o?s.w:o;!e.hasNode(u)&&!$oe(t,s)&&(e.setNode(u,{}),e.setEdge(a,u,{}),r(u))})}return Zt(e.nodes(),r),e.nodeCount()}function iki(e,t){return YW(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return $oe(t,r)})}function aki(e,t,r){Zt(e.nodes(),function(a){t.node(a).rank+=r})}function ski(){}ski.prototype=new Error;function Uqn(e,t,r){Z0(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),s=[],o={};return Zt(t,function(u){if(!e.hasNode(u))throw new Error("Graph does not have node: "+u);zqn(e,u,r==="post",o,a,s)}),s}function zqn(e,t,r,a,s,o){Object.prototype.hasOwnProperty.call(a,t)||(a[t]=!0,r||o.push(t),Zt(s(t),function(u){zqn(e,u,r,a,s,o)}),r&&o.push(t))}function oki(e,t){return Uqn(e,t,"post")}function lki(e,t){return Uqn(e,t,"pre")}B$.initLowLimValues=ugt;B$.initCutValues=cgt;B$.calcCutValue=Gqn;B$.leaveEdge=Hqn;B$.enterEdge=Vqn;B$.exchangeEdges=Yqn;function B$(e){e=HAi(e),lgt(e);var t=$qn(e);ugt(t),cgt(t,e);for(var r,a;r=Hqn(t);)a=Vqn(t,e,r),Yqn(t,e,r,a)}function cgt(e,t){var r=oki(e,e.nodes());r=r.slice(0,r.length-1),Zt(r,function(a){cki(e,t,a)})}function cki(e,t,r){var a=e.node(r),s=a.parent;e.edge(r,s).cutvalue=Gqn(e,t,r)}function Gqn(e,t,r){var a=e.node(r),s=a.parent,o=!0,u=t.edge(r,s),h=0;return u||(o=!1,u=t.edge(s,r)),h=u.weight,Zt(t.nodeEdges(r),function(f){var p=f.v===r,m=p?f.w:f.v;if(m!==s){var b=p===o,_=t.edge(f).weight;if(h+=b?_:-_,hki(e,r,m)){var w=e.edge(r,m).cutvalue;h+=b?-w:w}}}),h}function ugt(e,t){arguments.length<2&&(t=e.nodes()[0]),qqn(e,{},1,t)}function qqn(e,t,r,a,s){var o=r,u=e.node(a);return t[a]=!0,Zt(e.neighbors(a),function(h){Object.prototype.hasOwnProperty.call(t,h)||(r=qqn(e,t,r,h,a))}),u.low=o,u.lim=r++,s?u.parent=s:delete u.parent,r}function Hqn(e){return VW(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Vqn(e,t,r){var a=r.v,s=r.w;t.hasEdge(a,s)||(a=r.w,s=r.v);var o=e.node(a),u=e.node(s),h=o,f=!1;o.lim>u.lim&&(h=u,f=!0);var p=Rp(t.edges(),function(m){return f===Mwn(e,e.node(m.v),h)&&f!==Mwn(e,e.node(m.w),h)});return YW(p,function(m){return $oe(t,m)})}function Yqn(e,t,r,a){var s=r.v,o=r.w;e.removeEdge(s,o),e.setEdge(a.v,a.w,{}),ugt(e),cgt(e,t),uki(e,t)}function uki(e,t){var r=VW(e.nodes(),function(s){return!t.node(s).parent}),a=lki(e,r);a=a.slice(1),Zt(a,function(s){var o=e.node(s).parent,u=t.edge(s,o),h=!1;u||(u=t.edge(o,s),h=!0),t.node(s).rank=t.node(o).rank+(h?u.minlen:-u.minlen)})}function hki(e,t,r){return e.hasEdge(t,r)}function Mwn(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}function dki(e){switch(e.graph().ranker){case"network-simplex":Pwn(e);break;case"tight-tree":pki(e);break;case"longest-path":fki(e);break;default:Pwn(e)}}var fki=lgt;function pki(e){lgt(e),$qn(e)}function Pwn(e){B$(e)}function gki(e){var t=jW(e,"root",{},"_root"),r=mki(e),a=i_(Ag(r))-1,s=2*a+1;e.graph().nestingRoot=t,Zt(e.edges(),function(u){e.edge(u).minlen*=s});var o=bki(e)+1;Zt(e.children(),function(u){jqn(e,t,s,o,a,r,u)}),e.graph().nodeRankFactor=s}function jqn(e,t,r,a,s,o,u){var h=e.children(u);if(!h.length){u!==t&&e.setEdge(t,u,{weight:0,minlen:r});return}var f=Own(e,"_bt"),p=Own(e,"_bb"),m=e.node(u);e.setParent(f,u),m.borderTop=f,e.setParent(p,u),m.borderBottom=p,Zt(h,function(b){jqn(e,t,r,a,s,o,b);var _=e.node(b),w=_.borderTop?_.borderTop:b,S=_.borderBottom?_.borderBottom:b,C=_.borderTop?a:2*a,A=w!==S?1:s-o[u]+1;e.setEdge(f,w,{weight:C,minlen:A,nestingEdge:!0}),e.setEdge(S,p,{weight:C,minlen:A,nestingEdge:!0})}),e.parent(u)||e.setEdge(t,f,{weight:0,minlen:s+o[u]})}function mki(e){var t={};function r(a,s){var o=e.children(a);o&&o.length&&Zt(o,function(u){r(u,s+1)}),t[a]=s}return Zt(e.children(),function(a){r(a,1)}),t}function bki(e){return TS(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function yki(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zt(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vki(e,t,r){var a={},s;Zt(r,function(o){for(var u=e.parent(o),h,f;u;){if(h=e.parent(u),h?(f=a[h],a[h]=u):(f=s,s=u),f&&f!==u){t.setEdge(f,u);return}u=h}})}function _ki(e,t,r){var a=wki(e),s=new c_({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return Zt(e.nodes(),function(o){var u=e.node(o),h=e.parent(o);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(s.setNode(o),s.setParent(o,h||a),Zt(e[r](o),function(f){var p=f.v===o?f.w:f.v,m=s.edge(p,o),b=gl(m)?0:m.weight;s.setEdge(p,o,{weight:e.edge(f).weight+b})}),Object.prototype.hasOwnProperty.call(u,"minRank")&&s.setNode(o,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),s}function wki(e){for(var t;e.hasNode(t=P$("_root")););return t}function Eki(e,t){for(var r=0,a=1;a<t.length;++a)r+=xki(e,t[a-1],t[a]);return r}function xki(e,t,r){for(var a=Mqn(r,wo(r,function(p,m){return m})),s=MS(wo(t,function(p){return PA(wo(e.outEdges(p),function(m){return{pos:a[m.w],weight:e.edge(m).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var u=2*o-1;o-=1;var h=wo(new Array(u),function(){return 0}),f=0;return Zt(s.forEach(function(p){var m=p.pos+o;h[m]+=p.weight;for(var b=0;m>0;)m%2&&(b+=h[m+1]),m=m-1>>1,h[m]+=p.weight;f+=p.weight*b})),f}function Ski(e){var t={},r=Rp(e.nodes(),function(h){return!e.children(h).length}),a=i_(wo(r,function(h){return e.node(h).rank})),s=wo(Uw(a+1),function(){return[]});function o(h){if(!Ho(t,h)){t[h]=!0;var f=e.node(h);s[f.rank].push(h),Zt(e.successors(h),o)}}var u=PA(r,function(h){return e.node(h).rank});return Zt(u,o),s}function Tki(e,t){return wo(t,function(r){var a=e.inEdges(r);if(a.length){var s=TS(a,function(o,u){var h=e.edge(u),f=e.node(u.v);return{sum:o.sum+h.weight*f.order,weight:o.weight+h.weight}},{sum:0,weight:0});return{v:r,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:r}})}function Cki(e,t){var r={};Zt(e,function(s,o){var u=r[s.v]={indegree:0,in:[],out:[],vs:[s.v],i:o};gl(s.barycenter)||(u.barycenter=s.barycenter,u.weight=s.weight)}),Zt(t.edges(),function(s){var o=r[s.v],u=r[s.w];!gl(o)&&!gl(u)&&(u.indegree++,o.out.push(r[s.w]))});var a=Rp(r,function(s){return!s.indegree});return Aki(a)}function Aki(e){var t=[];function r(o){return function(u){u.merged||(gl(u.barycenter)||gl(o.barycenter)||u.barycenter>=o.barycenter)&&kki(o,u)}}function a(o){return function(u){u.in.push(o),--u.indegree===0&&e.push(u)}}for(;e.length;){var s=e.pop();t.push(s),Zt(s.in.reverse(),r(s)),Zt(s.out,a(s))}return wo(Rp(t,function(o){return!o.merged}),function(o){return lR(o,["vs","i","barycenter","weight"])})}function kki(e,t){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),t.weight&&(r+=t.barycenter*t.weight,a+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(t.i,e.i),t.merged=!0}function Rki(e,t){var r=jAi(e,function(m){return Object.prototype.hasOwnProperty.call(m,"barycenter")}),a=r.lhs,s=PA(r.rhs,function(m){return-m.i}),o=[],u=0,h=0,f=0;a.sort(Iki(!!t)),f=Bwn(o,s,f),Zt(a,function(m){f+=m.vs.length,o.push(m.vs),u+=m.barycenter*m.weight,h+=m.weight,f=Bwn(o,s,f)});var p={vs:MS(o)};return h&&(p.barycenter=u/h,p.weight=h),p}function Bwn(e,t,r){for(var a;t.length&&(a=i9(t)).i<=r;)t.pop(),e.push(a.vs),r++;return r}function Iki(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}function Wqn(e,t,r,a){var s=e.children(t),o=e.node(t),u=o?o.borderLeft:void 0,h=o?o.borderRight:void 0,f={};u&&(s=Rp(s,function(S){return S!==u&&S!==h}));var p=Tki(e,s);Zt(p,function(S){if(e.children(S.v).length){var C=Wqn(e,S.v,r,a);f[S.v]=C,Object.prototype.hasOwnProperty.call(C,"barycenter")&&Oki(S,C)}});var m=Cki(p,r);Nki(m,f);var b=Rki(m,a);if(u&&(b.vs=MS([u,b.vs,h]),e.predecessors(u).length)){var _=e.node(e.predecessors(u)[0]),w=e.node(e.predecessors(h)[0]);Object.prototype.hasOwnProperty.call(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+w.order)/(b.weight+2),b.weight+=2}return b}function Nki(e,t){Zt(e,function(r){r.vs=MS(r.vs.map(function(a){return t[a]?t[a].vs:a}))})}function Oki(e,t){gl(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function Lki(e){var t=Bqn(e),r=Fwn(e,Uw(1,t+1),"inEdges"),a=Fwn(e,Uw(t-1,-1,-1),"outEdges"),s=Ski(e);$wn(e,s);for(var o=Number.POSITIVE_INFINITY,u,h=0,f=0;f<4;++h,++f){Dki(h%2?r:a,h%4>=2),s=eke(e);var p=Eki(e,s);p<o&&(f=0,u=wqn(s),o=p)}$wn(e,u)}function Fwn(e,t,r){return wo(t,function(a){return _ki(e,a,r)})}function Dki(e,t){var r=new c_;Zt(e,function(a){var s=a.graph().root,o=Wqn(a,s,r,t);Zt(o.vs,function(u,h){a.node(u).order=h}),vki(a,r,o.vs)})}function $wn(e,t){Zt(t,function(r){Zt(r,function(a,s){e.node(a).order=s})})}function Mki(e){var t=Bki(e);Zt(e.graph().dummyChains,function(r){for(var a=e.node(r),s=a.edgeObj,o=Pki(e,t,s.v,s.w),u=o.path,h=o.lca,f=0,p=u[f],m=!0;r!==s.w;){if(a=e.node(r),m){for(;(p=u[f])!==h&&e.node(p).maxRank<a.rank;)f++;p===h&&(m=!1)}if(!m){for(;f<u.length-1&&e.node(p=u[f+1]).minRank<=a.rank;)f++;p=u[f]}e.setParent(r,p),r=e.successors(r)[0]}})}function Pki(e,t,r,a){var s=[],o=[],u=Math.min(t[r].low,t[a].low),h=Math.max(t[r].lim,t[a].lim),f,p;f=r;do f=e.parent(f),s.push(f);while(f&&(t[f].low>u||h>t[f].lim));for(p=f,f=a;(f=e.parent(f))!==p;)o.push(f);return{path:s.concat(o.reverse()),lca:p}}function Bki(e){var t={},r=0;function a(s){var o=r;Zt(e.children(s),a),t[s]={low:o,lim:r++}}return Zt(e.children(),a),t}function Fki(e,t){var r={};function a(s,o){var u=0,h=0,f=s.length,p=i9(o);return Zt(o,function(m,b){var _=Uki(e,m),w=_?e.node(_).order:f;(_||m===p)&&(Zt(o.slice(h,b+1),function(S){Zt(e.predecessors(S),function(C){var A=e.node(C),k=A.order;(k<u||w<k)&&!(A.dummy&&e.node(S).dummy)&&Kqn(r,C,S)})}),h=b+1,u=w)}),o}return TS(t,a),r}function $ki(e,t){var r={};function a(o,u,h,f,p){var m;Zt(Uw(u,h),function(b){m=o[b],e.node(m).dummy&&Zt(e.predecessors(m),function(_){var w=e.node(_);w.dummy&&(w.order<f||w.order>p)&&Kqn(r,_,m)})})}function s(o,u){var h=-1,f,p=0;return Zt(u,function(m,b){if(e.node(m).dummy==="border"){var _=e.predecessors(m);_.length&&(f=e.node(_[0]).order,a(u,p,b,h,f),p=b,h=f)}a(u,p,u.length,f,o.length)}),u}return TS(t,s),r}function Uki(e,t){if(e.node(t).dummy)return VW(e.predecessors(t),function(r){return e.node(r).dummy})}function Kqn(e,t,r){if(t>r){var a=t;t=r,r=a}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var s=e[t];Object.defineProperty(s,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function zki(e,t,r){if(t>r){var a=t;t=r,r=a}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function Gki(e,t,r,a){var s={},o={},u={};return Zt(t,function(h){Zt(h,function(f,p){s[f]=f,o[f]=f,u[f]=p})}),Zt(t,function(h){var f=-1;Zt(h,function(p){var m=a(p);if(m.length){m=PA(m,function(C){return u[C]});for(var b=(m.length-1)/2,_=Math.floor(b),w=Math.ceil(b);_<=w;++_){var S=m[_];o[p]===p&&f<u[S]&&!zki(r,p,S)&&(o[S]=p,o[p]=s[p]=s[S],f=u[S])}}})}),{root:s,align:o}}function qki(e,t,r,a,s){var o={},u=Hki(e,t,r,s),h=s?"borderLeft":"borderRight";function f(b,_){for(var w=u.nodes(),S=w.pop(),C={};S;)C[S]?b(S):(C[S]=!0,w.push(S),w=w.concat(_(S))),S=w.pop()}function p(b){o[b]=u.inEdges(b).reduce(function(_,w){return Math.max(_,o[w.v]+u.edge(w))},0)}function m(b){var _=u.outEdges(b).reduce(function(S,C){return Math.min(S,o[C.w]-u.edge(C))},Number.POSITIVE_INFINITY),w=e.node(b);_!==Number.POSITIVE_INFINITY&&w.borderType!==h&&(o[b]=Math.max(o[b],_))}return f(p,u.predecessors.bind(u)),f(m,u.successors.bind(u)),Zt(a,function(b){o[b]=o[r[b]]}),o}function Hki(e,t,r,a){var s=new c_,o=e.graph(),u=Kki(o.nodesep,o.edgesep,a);return Zt(t,function(h){var f;Zt(h,function(p){var m=r[p];if(s.setNode(m),f){var b=r[f],_=s.edge(b,m);s.setEdge(b,m,Math.max(u(e,p,f),_||0))}f=p})}),s}function Vki(e,t){return YW(Ag(t),function(r){var a=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return Iqn(r,function(o,u){var h=Xki(e,u)/2;a=Math.max(o+h,a),s=Math.min(o-h,s)}),a-s})}function Yki(e,t){var r=Ag(t),a=oT(r),s=i_(r);Zt(["u","d"],function(o){Zt(["l","r"],function(u){var h=o+u,f=e[h],p;if(f!==t){var m=Ag(f);p=u==="l"?a-oT(m):s-i_(m),p&&(e[h]=H9(f,function(b){return b+p}))}})})}function jki(e,t){return H9(e.ul,function(r,a){if(t)return e[t.toLowerCase()][a];var s=PA(wo(e,a));return(s[1]+s[2])/2})}function Wki(e){var t=eke(e),r=XO(Fki(e,t),$ki(e,t)),a={},s;Zt(["u","d"],function(u){s=u==="u"?t:Ag(t).reverse(),Zt(["l","r"],function(h){h==="r"&&(s=wo(s,function(b){return Ag(b).reverse()}));var f=(u==="u"?e.predecessors:e.successors).bind(e),p=Gki(e,s,r,f),m=qki(e,s,p.root,p.align,h==="r");h==="r"&&(m=H9(m,function(b){return-b})),a[u+h]=m})});var o=Vki(e,a);return Yki(a,o),jki(a,e.graph().align)}function Kki(e,t,r){return function(a,s,o){var u=a.node(s),h=a.node(o),f=0,p;if(f+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":p=-u.width/2;break;case"r":p=u.width/2;break}if(p&&(f+=r?p:-p),p=0,f+=(u.dummy?t:e)/2,f+=(h.dummy?t:e)/2,f+=h.width/2,Object.prototype.hasOwnProperty.call(h,"labelpos"))switch(h.labelpos.toLowerCase()){case"l":p=h.width/2;break;case"r":p=-h.width/2;break}return p&&(f+=r?p:-p),p=0,f}}function Xki(e,t){return e.node(t).width}function Qki(e){e=Pqn(e),Zki(e),Nqn(Wki(e),function(t,r){e.node(r).x=t})}function Zki(e){var t=eke(e),r=e.graph().ranksep,a=0;Zt(t,function(s){var o=i_(wo(s,function(u){return e.node(u).height}));Zt(s,function(u){e.node(u).y=a+o/2}),a+=o+r})}function Xqn(e,t){var r=WAi;r("layout",()=>{var a=r("  buildLayoutGraph",()=>c6i(e));r("  runLayout",()=>Jki(a,r)),r("  updateInputGraph",()=>e6i(e,a))})}function Jki(e,t){t("    makeSpaceForEdgeLabels",()=>u6i(e)),t("    removeSelfEdges",()=>v6i(e)),t("    acyclic",()=>zAi(e)),t("    nestingGraph.run",()=>gki(e)),t("    rank",()=>dki(Pqn(e))),t("    injectEdgeLabelProxies",()=>h6i(e)),t("    removeEmptyRanks",()=>YAi(e)),t("    nestingGraph.cleanup",()=>yki(e)),t("    normalizeRanks",()=>VAi(e)),t("    assignRankMinMax",()=>d6i(e)),t("    removeEdgeLabelProxies",()=>f6i(e)),t("    normalize.run",()=>eki(e)),t("    parentDummyChains",()=>Mki(e)),t("    addBorderSegments",()=>KAi(e)),t("    order",()=>Lki(e)),t("    insertSelfEdges",()=>_6i(e)),t("    adjustCoordinateSystem",()=>XAi(e)),t("    position",()=>Qki(e)),t("    positionSelfEdges",()=>w6i(e)),t("    removeBorderNodes",()=>y6i(e)),t("    normalize.undo",()=>nki(e)),t("    fixupEdgeLabelCoords",()=>m6i(e)),t("    undoCoordinateSystem",()=>QAi(e)),t("    translateGraph",()=>p6i(e)),t("    assignNodeIntersects",()=>g6i(e)),t("    reversePoints",()=>b6i(e)),t("    acyclic.undo",()=>qAi(e))}function e6i(e,t){Zt(e.nodes(),function(r){var a=e.node(r),s=t.node(r);a&&(a.x=s.x,a.y=s.y,t.children(r).length&&(a.width=s.width,a.height=s.height))}),Zt(e.edges(),function(r){var a=e.edge(r),s=t.edge(r);a.points=s.points,Object.prototype.hasOwnProperty.call(s,"x")&&(a.x=s.x,a.y=s.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var t6i=["nodesep","edgesep","ranksep","marginx","marginy"],n6i={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},r6i=["acyclicer","ranker","rankdir","align"],i6i=["width","height"],a6i={width:0,height:0},s6i=["minlen","weight","width","height","labeloffset"],o6i={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},l6i=["labelpos"];function c6i(e){var t=new c_({multigraph:!0,compound:!0}),r=Unt(e.graph());return t.setGraph(XO({},n6i,$nt(r,t6i),lR(r,r6i))),Zt(e.nodes(),function(a){var s=Unt(e.node(a));t.setNode(a,BB($nt(s,i6i),a6i)),t.setParent(a,e.parent(a))}),Zt(e.edges(),function(a){var s=Unt(e.edge(a));t.setEdge(a,XO({},o6i,$nt(s,s6i),lR(s,l6i)))}),t}function u6i(e){var t=e.graph();t.ranksep/=2,Zt(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function h6i(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var a=e.node(t.v),s=e.node(t.w),o={rank:(s.rank-a.rank)/2+a.rank,e:t};jW(e,"edge-proxy",o,"_ep")}})}function d6i(e){var t=0;Zt(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,t=i_(t,a.maxRank))}),e.graph().maxRank=t}function f6i(e){Zt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function p6i(e){var t=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,s=0,o=e.graph(),u=o.marginx||0,h=o.marginy||0;function f(p){var m=p.x,b=p.y,_=p.width,w=p.height;t=Math.min(t,m-_/2),r=Math.max(r,m+_/2),a=Math.min(a,b-w/2),s=Math.max(s,b+w/2)}Zt(e.nodes(),function(p){f(e.node(p))}),Zt(e.edges(),function(p){var m=e.edge(p);Object.prototype.hasOwnProperty.call(m,"x")&&f(m)}),t-=u,a-=h,Zt(e.nodes(),function(p){var m=e.node(p);m.x-=t,m.y-=a}),Zt(e.edges(),function(p){var m=e.edge(p);Zt(m.points,function(b){b.x-=t,b.y-=a}),Object.prototype.hasOwnProperty.call(m,"x")&&(m.x-=t),Object.prototype.hasOwnProperty.call(m,"y")&&(m.y-=a)}),o.width=r-t+u,o.height=s-a+h}function g6i(e){Zt(e.edges(),function(t){var r=e.edge(t),a=e.node(t.v),s=e.node(t.w),o,u;r.points?(o=r.points[0],u=r.points[r.points.length-1]):(r.points=[],o=s,u=a),r.points.unshift(Nwn(a,o)),r.points.push(Nwn(s,u))})}function m6i(e){Zt(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function b6i(e){Zt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function y6i(e){Zt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),a=e.node(r.borderTop),s=e.node(r.borderBottom),o=e.node(i9(r.borderLeft)),u=e.node(i9(r.borderRight));r.width=Math.abs(u.x-o.x),r.height=Math.abs(s.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),Zt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function v6i(e){Zt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function _6i(e){var t=eke(e);Zt(t,function(r){var a=0;Zt(r,function(s,o){var u=e.node(s);u.order=o+a,Zt(u.selfEdges,function(h){jW(e,"selfedge",{width:h.label.width,height:h.label.height,rank:u.rank,order:o+ ++a,e:h.e,label:h.label},"_se")}),delete u.selfEdges})})}function w6i(e){Zt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var a=e.node(r.e.v),s=a.x+a.width/2,o=a.y,u=r.x-s,h=a.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:s+2*u/3,y:o-h},{x:s+5*u/6,y:o-h},{x:s+u,y:o},{x:s+5*u/6,y:o+h},{x:s+2*u/3,y:o+h}],r.label.x=r.x,r.label.y=r.y}})}function $nt(e,t){return H9(lR(e,t),Number)}function Unt(e){var t={};return Zt(e,function(r,a){t[a.toLowerCase()]=r}),t}function ZC(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:E6i(e),edges:x6i(e)};return gl(e.graph())||(t.value=ZAe(e.graph())),t}function E6i(e){return wo(e.nodes(),function(t){var r=e.node(t),a=e.parent(t),s={v:t};return gl(r)||(s.value=r),gl(a)||(s.parent=a),s})}function x6i(e){return wo(e.edges(),function(t){var r=e.edge(t),a={v:t.v,w:t.w};return gl(t.name)||(a.name=t.name),gl(r)||(a.value=r),a})}var Yl=new Map,aF=new Map,Qqn=new Map,S6i=X(()=>{aF.clear(),Qqn.clear(),Yl.clear()},"clear"),F3e=X((e,t)=>{const r=aF.get(t)||[];return it.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),T6i=X((e,t)=>{const r=aF.get(t)||[];return it.info("Descendants of ",t," is ",r),it.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||F3e(e.v,t)||F3e(e.w,t)||r.includes(e.w):(it.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Zqn=X((e,t,r,a)=>{it.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const s=t.children(e)||[];e!==a&&s.push(e),it.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)Zqn(o,t,r,a);else{const u=t.node(o);it.info("cp ",o," to ",a," with parent ",e),r.setNode(o,u),a!==t.parent(o)&&(it.warn("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==a&&o!==e?(it.debug("Setting parent",o,e),r.setParent(o,e)):(it.info("In copy ",e,"root",a,"data",t.node(e),a),it.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const h=t.edges(o);it.debug("Copying Edges",h),h.forEach(f=>{it.info("Edge",f);const p=t.edge(f.v,f.w,f.name);it.info("Edge data",p,a);try{T6i(f,a)?(it.info("Copying as ",f.v,f.w,p,f.name),r.setEdge(f.v,f.w,p,f.name),it.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):it.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",a," clusterId:",e)}catch(m){it.error(m)}})}it.debug("Removing node",o),t.removeNode(o)})},"copy"),Jqn=X((e,t)=>{const r=t.children(e);let a=[...r];for(const s of r)Qqn.set(s,e),a=[...a,...Jqn(s,t)];return a},"extractDescendants"),C6i=X((e,t,r)=>{const a=e.edges().filter(f=>f.v===t||f.w===t),s=e.edges().filter(f=>f.v===r||f.w===r),o=a.map(f=>({v:f.v===t?r:f.v,w:f.w===t?t:f.w})),u=s.map(f=>({v:f.v,w:f.w}));return o.filter(f=>u.some(p=>f.v===p.v&&f.w===p.w))},"findCommonEdges"),Uoe=X((e,t,r)=>{const a=t.children(e);if(it.trace("Searching children of id ",e,a),a.length<1)return e;let s;for(const o of a){const u=Uoe(o,t,r),h=C6i(t,r,u);if(u)if(h.length>0)s=u;else return u}return s},"findNonClusterChild"),Uwn=X(e=>!Yl.has(e)||!Yl.get(e).externalConnections?e:Yl.has(e)?Yl.get(e).id:e,"getAnchorId"),A6i=X((e,t)=>{if(!e||t>10){it.debug("Opting out, no graph ");return}else it.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(it.warn("Cluster identified",r," Replacement id in edges: ",Uoe(r,e,r)),aF.set(r,Jqn(r,e)),Yl.set(r,{id:Uoe(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){const a=e.children(r),s=e.edges();a.length>0?(it.debug("Cluster identified",r,aF),s.forEach(o=>{const u=F3e(o.v,r),h=F3e(o.w,r);u^h&&(it.warn("Edge: ",o," leaves cluster ",r),it.warn("Descendants of XXX ",r,": ",aF.get(r)),Yl.get(r).externalConnections=!0)})):it.debug("Not a cluster ",r,aF)});for(let r of Yl.keys()){const a=Yl.get(r).id,s=e.parent(a);s!==r&&Yl.has(s)&&!Yl.get(s).externalConnections&&(Yl.get(r).id=s)}e.edges().forEach(function(r){const a=e.edge(r);it.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),it.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(it.warn("Fix XXX",Yl,"ids:",r.v,r.w,"Translating: ",Yl.get(r.v)," --- ",Yl.get(r.w)),Yl.get(r.v)||Yl.get(r.w)){if(it.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),s=Uwn(r.v),o=Uwn(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const u=e.parent(s);Yl.get(u).externalConnections=!0,a.fromCluster=r.v}if(o!==r.w){const u=e.parent(o);Yl.get(u).externalConnections=!0,a.toCluster=r.w}it.warn("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,a,r.name)}}),it.warn("Adjusted Graph",ZC(e)),eHn(e,0),it.trace(Yl)},"adjustClustersAndEdges"),eHn=X((e,t)=>{var s,o;if(it.warn("extractor - ",t,ZC(e),e.children("D")),t>10){it.error("Bailing out");return}let r=e.nodes(),a=!1;for(const u of r){const h=e.children(u);a=a||h.length>0}if(!a){it.debug("Done, no node has children",e.nodes());return}it.debug("Nodes = ",r,t);for(const u of r)if(it.debug("Extracting node",u,Yl,Yl.has(u)&&!Yl.get(u).externalConnections,!e.parent(u),e.node(u),e.children("D")," Depth ",t),!Yl.has(u))it.debug("Not a cluster",u,t);else if(!Yl.get(u).externalConnections&&e.children(u)&&e.children(u).length>0){it.warn("Cluster without external connections, without a parent and with children",u,t);let f=e.graph().rankdir==="TB"?"LR":"TB";(o=(s=Yl.get(u))==null?void 0:s.clusterData)!=null&&o.dir&&(f=Yl.get(u).clusterData.dir,it.warn("Fixing dir",Yl.get(u).clusterData.dir,f));const p=new c_({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});it.warn("Old graph before copy",ZC(e)),Zqn(u,e,p,u),e.setNode(u,{clusterNode:!0,id:u,clusterData:Yl.get(u).clusterData,label:Yl.get(u).label,graph:p}),it.warn("New graph after copy node: (",u,")",ZC(p)),it.debug("Old graph after copy",ZC(e))}else it.warn("Cluster ** ",u," **not meeting the criteria !externalConnections:",!Yl.get(u).externalConnections," no parent: ",!e.parent(u)," children ",e.children(u)&&e.children(u).length>0,e.children("D"),t),it.debug(Yl);r=e.nodes(),it.warn("New list of nodes",r);for(const u of r){const h=e.node(u);it.warn(" Now next level",u,h),h!=null&&h.clusterNode&&eHn(h.graph,t+1)}},"extractor"),tHn=X((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(a=>{const s=e.children(a),o=tHn(e,s);r=[...r,...o]}),r},"sorter"),k6i=X(e=>tHn(e,e.children()),"sortNodesByHierarchy"),nHn=X(async(e,t,r,a,s,o)=>{it.warn("Graph in recursive render:XAX",ZC(t),s);const u=t.graph().rankdir;it.trace("Dir in recursive render - dir:",u);const h=e.insert("g").attr("class","root");t.nodes()?it.info("Recursive render XXX",t.nodes()):it.info("No nodes found for",t),t.edges().length>0&&it.info("Recursive edges",t.edge(t.edges()[0]));const f=h.insert("g").attr("class","clusters"),p=h.insert("g").attr("class","edgePaths"),m=h.insert("g").attr("class","edgeLabels"),b=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(C){const A=t.node(C);if(s!==void 0){const k=JSON.parse(JSON.stringify(s.clusterData));it.trace(`Setting data for parent cluster XXX
 Node.id = `,C,`
 data=`,k.height,`
Parent cluster`,s.height),t.setNode(s.id,k),t.parent(C)||(it.trace("Setting parent",C,s.id),t.setParent(C,s.id,k))}if(it.info("(Insert) Node XXX"+C+": "+JSON.stringify(t.node(C))),A!=null&&A.clusterNode){it.info("Cluster identified XBX",C,A.width,t.node(C));const{ranksep:k,nodesep:I}=t.graph();A.graph.setGraph({...A.graph.graph(),ranksep:k+25,nodesep:I});const N=await nHn(b,A.graph,r,a,t.node(C),o),L=N.elem;es(A,L),A.diff=N.diff||0,it.info("New compound node after recursive render XAX",C,"width",A.width,"height",A.height),jpi(L,A)}else t.children(C).length>0?(it.trace("Cluster - the non recursive path XBX",C,A.id,A,A.width,"Graph:",t),it.trace(Uoe(A.id,t)),Yl.set(A.id,{id:Uoe(A.id,t),node:A})):(it.trace("Node - the non recursive path XAX",C,b,t.node(C),u),await NAe(b,t.node(C),{config:o,dir:u}))})),await X(async()=>{const C=t.edges().map(async function(A){const k=t.edge(A.v,A.w,A.name);it.info("Edge "+A.v+" -> "+A.w+": "+JSON.stringify(A)),it.info("Edge "+A.v+" -> "+A.w+": ",A," ",JSON.stringify(t.edge(A))),it.info("Fix",Yl,"ids:",A.v,A.w,"Translating: ",Yl.get(A.v),Yl.get(A.w)),await i$n(m,k)});await Promise.all(C)},"processEdges")(),it.info("Graph before layout:",JSON.stringify(ZC(t))),it.info("############################################# XXX"),it.info("###                Layout                 ### XXX"),it.info("############################################# XXX"),Xqn(t),it.info("Graph after layout:",JSON.stringify(ZC(t)));let w=0,{subGraphTitleTotalMargin:S}=oce(o);return await Promise.all(k6i(t).map(async function(C){var k;const A=t.node(C);if(it.info("Position XBX => "+C+": ("+A.x,","+A.y,") width: ",A.width," height: ",A.height),A!=null&&A.clusterNode)A.y+=S,it.info("A tainted cluster node XBX1",C,A.id,A.width,A.height,A.x,A.y,t.parent(C)),Yl.get(A.id).node=A,olt(A);else if(t.children(C).length>0){it.info("A pure cluster node XBX1",C,A.id,A.x,A.y,A.width,A.height,t.parent(C)),A.height+=S,t.node(A.parentId);const I=(A==null?void 0:A.padding)/2||0,N=((k=A==null?void 0:A.labelBBox)==null?void 0:k.height)||0,L=N-I||0;it.debug("OffsetY",L,"labelHeight",N,"halfPadding",I),await ept(f,A),Yl.get(A.id).node=A}else{const I=t.node(A.parentId);A.y+=S/2,it.info("A regular node XBX1 - using the padding",A.id,"parent",A.parentId,A.width,A.height,A.x,A.y,"offsetY",A.offsetY,"parent",I,I==null?void 0:I.offsetY,A),olt(A)}})),t.edges().forEach(function(C){const A=t.edge(C);it.info("Edge "+C.v+" -> "+C.w+": "+JSON.stringify(A),A),A.points.forEach(L=>L.y+=S/2);const k=t.node(C.v);var I=t.node(C.w);const N=o$n(p,A,Yl,r,k,I,a);a$n(A,N)}),t.nodes().forEach(function(C){const A=t.node(C);it.info(C,A.type,A.diff),A.isGroup&&(w=A.diff)}),it.warn("Returning from recursive render XAX",h,w),{elem:h,diff:w}},"recursiveRender"),R6i=X(async(e,t)=>{var o,u,h,f,p,m;const r=new c_({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((o=e.config)==null?void 0:o.nodeSpacing)||((h=(u=e.config)==null?void 0:u.flowchart)==null?void 0:h.nodeSpacing)||e.nodeSpacing,ranksep:((f=e.config)==null?void 0:f.rankSpacing)||((m=(p=e.config)==null?void 0:p.flowchart)==null?void 0:m.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");u$n(a,e.markers,e.type,e.diagramId),Wpi(),Qpi(),Rpi(),S6i(),e.nodes.forEach(b=>{r.setNode(b.id,{...b}),b.parentId&&r.setParent(b.id,b.parentId)}),it.debug("Edges:",e.edges),e.edges.forEach(b=>{if(b.start===b.end){const _=b.start,w=_+"---"+_+"---1",S=_+"---"+_+"---2",C=r.node(_);r.setNode(w,{domId:w,id:w,parentId:C.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(w,C.parentId),r.setNode(S,{domId:S,id:S,parentId:C.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(S,C.parentId);const A=structuredClone(b),k=structuredClone(b),I=structuredClone(b);A.label="",A.arrowTypeEnd="none",A.id=_+"-cyclic-special-1",k.arrowTypeStart="none",k.arrowTypeEnd="none",k.id=_+"-cyclic-special-mid",I.label="",C.isGroup&&(A.fromCluster=_,I.toCluster=_),I.id=_+"-cyclic-special-2",I.arrowTypeStart="none",r.setEdge(_,w,A,_+"-cyclic-special-0"),r.setEdge(w,S,k,_+"-cyclic-special-1"),r.setEdge(S,_,I,_+"-cyc<lic-special-2")}else r.setEdge(b.start,b.end,{...b},b.id)}),it.warn("Graph at first:",JSON.stringify(ZC(r))),A6i(r),it.warn("Graph after XAX:",JSON.stringify(ZC(r)));const s=nn();await nHn(a,r,e.type,e.diagramId,void 0,s)},"render");const I6i=Object.freeze(Object.defineProperty({__proto__:null,render:R6i},Symbol.toStringTag,{value:"Module"}));function tct(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function N6i(e){if(Array.isArray(e))return e}function O6i(e){if(Array.isArray(e))return tct(e)}function V9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L6i(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,iHn(a.key),a)}}function Y9(e,t,r){return t&&L6i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W2(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=hgt(e))||t){r&&(e=r);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(f){throw f},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,u=!0,h=!1;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return u=f.done,f},e:function(f){h=!0,o=f},f:function(){try{u||r.return==null||r.return()}finally{if(h)throw o}}}}function rHn(e,t,r){return(t=iHn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6i(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M6i(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,s,o,u,h=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(a=o.call(r)).done)&&(h.push(a.value),h.length!==t);f=!0);}catch(m){p=!0,s=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw s}}return h}}function P6i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B6i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S1(e,t){return N6i(e)||M6i(e,t)||hgt(e,t)||P6i()}function $3e(e){return O6i(e)||D6i(e)||hgt(e)||B6i()}function F6i(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iHn(e){var t=F6i(e,"string");return typeof t=="symbol"?t:t+""}function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function hgt(e,t){if(e){if(typeof e=="string")return tct(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tct(e,t):void 0}}var vp=typeof window>"u"?null:window,zwn=vp?vp.navigator:null;vp&&vp.document;var $6i=Dp(""),aHn=Dp({}),U6i=Dp(function(){}),z6i=typeof HTMLElement>"u"?"undefined":Dp(HTMLElement),wce=function(t){return t&&t.instanceString&&Of(t.instanceString)?t.instanceString():null},Ns=function(t){return t!=null&&Dp(t)==$6i},Of=function(t){return t!=null&&Dp(t)===U6i},Mh=function(t){return!Bw(t)&&(Array.isArray?Array.isArray(t):t!=null&&t instanceof Array)},Vc=function(t){return t!=null&&Dp(t)===aHn&&!Mh(t)&&t.constructor===Object},G6i=function(t){return t!=null&&Dp(t)===aHn},aa=function(t){return t!=null&&Dp(t)===Dp(1)&&!isNaN(t)},q6i=function(t){return aa(t)&&Math.floor(t)===t},U3e=function(t){if(z6i!=="undefined")return t!=null&&t instanceof HTMLElement},Bw=function(t){return Ece(t)||sHn(t)},Ece=function(t){return wce(t)==="collection"&&t._private.single},sHn=function(t){return wce(t)==="collection"&&!t._private.single},dgt=function(t){return wce(t)==="core"},oHn=function(t){return wce(t)==="stylesheet"},H6i=function(t){return wce(t)==="event"},a9=function(t){return t==null?!0:!!(t===""||t.match(/^\s+$/))},V6i=function(t){return typeof HTMLElement>"u"?!1:t instanceof HTMLElement},Y6i=function(t){return Vc(t)&&aa(t.x1)&&aa(t.x2)&&aa(t.y1)&&aa(t.y2)},j6i=function(t){return G6i(t)&&Of(t.then)},W6i=function(){return zwn&&zwn.userAgent.match(/msie|trident|edge/i)},Uj=function(t,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);return o.join("$")});var a=function(){var o=this,u=arguments,h,f=r.apply(o,u),p=a.cache;return(h=p[f])||(h=p[f]=t.apply(o,u)),h};return a.cache={},a},fgt=Uj(function(e){return e.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}),tke=Uj(function(e){return e.replace(/(-\w)/g,function(t){return t[1].toUpperCase()})}),lHn=Uj(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),Gwn=function(t){return a9(t)?t:t.charAt(0).toUpperCase()+t.substring(1)},mO=function(t,r){return t.slice(-1*r.length)===r},Ip="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",K6i="rgb[a]?\\(("+Ip+"[%]?)\\s*,\\s*("+Ip+"[%]?)\\s*,\\s*("+Ip+"[%]?)(?:\\s*,\\s*("+Ip+"))?\\)",X6i="rgb[a]?\\((?:"+Ip+"[%]?)\\s*,\\s*(?:"+Ip+"[%]?)\\s*,\\s*(?:"+Ip+"[%]?)(?:\\s*,\\s*(?:"+Ip+"))?\\)",Q6i="hsl[a]?\\(("+Ip+")\\s*,\\s*("+Ip+"[%])\\s*,\\s*("+Ip+"[%])(?:\\s*,\\s*("+Ip+"))?\\)",Z6i="hsl[a]?\\((?:"+Ip+")\\s*,\\s*(?:"+Ip+"[%])\\s*,\\s*(?:"+Ip+"[%])(?:\\s*,\\s*(?:"+Ip+"))?\\)",J6i="\\#[0-9a-fA-F]{3}",e7i="\\#[0-9a-fA-F]{6}",cHn=function(t,r){return t<r?-1:t>r?1:0},t7i=function(t,r){return-1*cHn(t,r)},eo=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,r=1;r<t.length;r++){var a=t[r];if(a!=null)for(var s=Object.keys(a),o=0;o<s.length;o++){var u=s[o];e[u]=a[u]}}return e},n7i=function(t){if(!(!(t.length===4||t.length===7)||t[0]!=="#")){var r=t.length===4,a,s,o,u=16;return r?(a=parseInt(t[1]+t[1],u),s=parseInt(t[2]+t[2],u),o=parseInt(t[3]+t[3],u)):(a=parseInt(t[1]+t[2],u),s=parseInt(t[3]+t[4],u),o=parseInt(t[5]+t[6],u)),[a,s,o]}},r7i=function(t){var r,a,s,o,u,h,f,p;function m(S,C,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?S+(C-S)*6*A:A<1/2?C:A<2/3?S+(C-S)*(2/3-A)*6:S}var b=new RegExp("^"+Q6i+"$").exec(t);if(b){if(a=parseInt(b[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,s=parseFloat(b[2]),s<0||s>100||(s=s/100,o=parseFloat(b[3]),o<0||o>100)||(o=o/100,u=b[4],u!==void 0&&(u=parseFloat(u),u<0||u>1)))return;if(s===0)h=f=p=Math.round(o*255);else{var _=o<.5?o*(1+s):o+s-o*s,w=2*o-_;h=Math.round(255*m(w,_,a+1/3)),f=Math.round(255*m(w,_,a)),p=Math.round(255*m(w,_,a-1/3))}r=[h,f,p,u]}return r},i7i=function(t){var r,a=new RegExp("^"+K6i+"$").exec(t);if(a){r=[];for(var s=[],o=1;o<=3;o++){var u=a[o];if(u[u.length-1]==="%"&&(s[o]=!0),u=parseFloat(u),s[o]&&(u=u/100*255),u<0||u>255)return;r.push(Math.floor(u))}var h=s[1]||s[2]||s[3],f=s[1]&&s[2]&&s[3];if(h&&!f)return;var p=a[4];if(p!==void 0){if(p=parseFloat(p),p<0||p>1)return;r.push(p)}}return r},a7i=function(t){return s7i[t.toLowerCase()]},uHn=function(t){return(Mh(t)?t:null)||a7i(t)||n7i(t)||i7i(t)||r7i(t)},s7i={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]},hHn=function(t){for(var r=t.map,a=t.keys,s=a.length,o=0;o<s;o++){var u=a[o];if(Vc(u))throw Error("Tried to set map with object key");o<a.length-1?(r[u]==null&&(r[u]={}),r=r[u]):r[u]=t.value}},dHn=function(t){for(var r=t.map,a=t.keys,s=a.length,o=0;o<s;o++){var u=a[o];if(Vc(u))throw Error("Tried to get map with object key");if(r=r[u],r==null)return r}return r},kwe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var znt,qwn;function Sce(){if(qwn)return znt;qwn=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return znt=e,znt}var Gnt,Hwn;function o7i(){if(Hwn)return Gnt;Hwn=1;var e=typeof kwe=="object"&&kwe&&kwe.Object===Object&&kwe;return Gnt=e,Gnt}var qnt,Vwn;function nke(){if(Vwn)return qnt;Vwn=1;var e=o7i(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return qnt=r,qnt}var Hnt,Ywn;function l7i(){if(Ywn)return Hnt;Ywn=1;var e=nke(),t=function(){return e.Date.now()};return Hnt=t,Hnt}var Vnt,jwn;function c7i(){if(jwn)return Vnt;jwn=1;var e=/\s/;function t(r){for(var a=r.length;a--&&e.test(r.charAt(a)););return a}return Vnt=t,Vnt}var Ynt,Wwn;function u7i(){if(Wwn)return Ynt;Wwn=1;var e=c7i(),t=/^\s+/;function r(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return Ynt=r,Ynt}var jnt,Kwn;function pgt(){if(Kwn)return jnt;Kwn=1;var e=nke(),t=e.Symbol;return jnt=t,jnt}var Wnt,Xwn;function h7i(){if(Xwn)return Wnt;Xwn=1;var e=pgt(),t=Object.prototype,r=t.hasOwnProperty,a=t.toString,s=e?e.toStringTag:void 0;function o(u){var h=r.call(u,s),f=u[s];try{u[s]=void 0;var p=!0}catch{}var m=a.call(u);return p&&(h?u[s]=f:delete u[s]),m}return Wnt=o,Wnt}var Knt,Qwn;function d7i(){if(Qwn)return Knt;Qwn=1;var e=Object.prototype,t=e.toString;function r(a){return t.call(a)}return Knt=r,Knt}var Xnt,Zwn;function fHn(){if(Zwn)return Xnt;Zwn=1;var e=pgt(),t=h7i(),r=d7i(),a="[object Null]",s="[object Undefined]",o=e?e.toStringTag:void 0;function u(h){return h==null?h===void 0?s:a:o&&o in Object(h)?t(h):r(h)}return Xnt=u,Xnt}var Qnt,Jwn;function f7i(){if(Jwn)return Qnt;Jwn=1;function e(t){return t!=null&&typeof t=="object"}return Qnt=e,Qnt}var Znt,eEn;function Tce(){if(eEn)return Znt;eEn=1;var e=fHn(),t=f7i(),r="[object Symbol]";function a(s){return typeof s=="symbol"||t(s)&&e(s)==r}return Znt=a,Znt}var Jnt,tEn;function p7i(){if(tEn)return Jnt;tEn=1;var e=u7i(),t=Sce(),r=Tce(),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt;function f(p){if(typeof p=="number")return p;if(r(p))return a;if(t(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=t(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=e(p);var b=o.test(p);return b||u.test(p)?h(p.slice(2),b?2:8):s.test(p)?a:+p}return Jnt=f,Jnt}var ert,nEn;function g7i(){if(nEn)return ert;nEn=1;var e=Sce(),t=l7i(),r=p7i(),a="Expected a function",s=Math.max,o=Math.min;function u(h,f,p){var m,b,_,w,S,C,A=0,k=!1,I=!1,N=!0;if(typeof h!="function")throw new TypeError(a);f=r(f)||0,e(p)&&(k=!!p.leading,I="maxWait"in p,_=I?s(r(p.maxWait)||0,f):_,N="trailing"in p?!!p.trailing:N);function L(z){var Y=m,W=b;return m=b=void 0,A=z,w=h.apply(W,Y),w}function P(z){return A=z,S=setTimeout(U,f),k?L(z):w}function M(z){var Y=z-C,W=z-A,Q=f-Y;return I?o(Q,_-W):Q}function F(z){var Y=z-C,W=z-A;return C===void 0||Y>=f||Y<0||I&&W>=_}function U(){var z=t();if(F(z))return $(z);S=setTimeout(U,M(z))}function $(z){return S=void 0,N&&m?L(z):(m=b=void 0,w)}function G(){S!==void 0&&clearTimeout(S),A=0,m=C=b=S=void 0}function B(){return S===void 0?w:$(t())}function Z(){var z=t(),Y=F(z);if(m=arguments,b=this,C=z,Y){if(S===void 0)return P(C);if(I)return clearTimeout(S),S=setTimeout(U,f),L(C)}return S===void 0&&(S=setTimeout(U,f)),w}return Z.cancel=G,Z.flush=B,Z}return ert=u,ert}var m7i=g7i(),Cce=xce(m7i),trt=vp?vp.performance:null,pHn=trt&&trt.now?function(){return trt.now()}:function(){return Date.now()},b7i=function(){if(vp){if(vp.requestAnimationFrame)return function(e){vp.requestAnimationFrame(e)};if(vp.mozRequestAnimationFrame)return function(e){vp.mozRequestAnimationFrame(e)};if(vp.webkitRequestAnimationFrame)return function(e){vp.webkitRequestAnimationFrame(e)};if(vp.msRequestAnimationFrame)return function(e){vp.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(pHn())},1e3/60)}}(),z3e=function(t){return b7i(t)},cR=pHn,FB=9261,gHn=65599,gV=5381,mHn=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FB,a=r,s;s=t.next(),!s.done;)a=a*gHn+s.value|0;return a},zoe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FB;return r*gHn+t|0},Goe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gV;return(r<<5)+r+t|0},y7i=function(t,r){return t*2097152+r},PN=function(t){return t[0]*2097152+t[1]},Rwe=function(t,r){return[zoe(t[0],r[0]),Goe(t[1],r[1])]},rEn=function(t,r){var a={value:0,done:!1},s=0,o=t.length,u={next:function(){return s<o?a.value=t[s++]:a.done=!0,a}};return mHn(u,r)},KF=function(t,r){var a={value:0,done:!1},s=0,o=t.length,u={next:function(){return s<o?a.value=t.charCodeAt(s++):a.done=!0,a}};return mHn(u,r)},bHn=function(){return v7i(arguments)},v7i=function(t){for(var r,a=0;a<t.length;a++){var s=t[a];a===0?r=KF(s):r=KF(s,r)}return r};function _7i(e,t,r,a,s){var o=s*Math.PI/180,u=Math.cos(o)*(e-r)-Math.sin(o)*(t-a)+r,h=Math.sin(o)*(e-r)+Math.cos(o)*(t-a)+a;return{x:u,y:h}}var w7i=function(t,r,a,s,o,u){return{x:(t-a)*o+a,y:(r-s)*u+s}};function E7i(e,t,r){if(r===0)return e;var a=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,o=t.w/t.h,u=1/o,h=_7i(e.x,e.y,a,s,r),f=w7i(h.x,h.y,a,s,o,u);return{x:f.x,y:f.y}}var iEn=!0,x7i=console.warn!=null,S7i=console.trace!=null,ggt=Number.MAX_SAFE_INTEGER||9007199254740991,yHn=function(){return!0},G3e=function(){return!1},aEn=function(){return 0},mgt=function(){},jd=function(t){throw new Error(t)},vHn=function(t){if(t!==void 0)iEn=!!t;else return iEn},Uu=function(t){vHn()&&(x7i?console.warn(t):(console.log(t),S7i&&console.trace()))},T7i=function(t){return eo({},t)},JC=function(t){return t==null?t:Mh(t)?t.slice():Vc(t)?T7i(t):t},C7i=function(t){return t.slice()},_Hn=function(t,r){for(r=t="";t++<36;r+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-");return r},A7i={},wHn=function(){return A7i},Nm=function(t){var r=Object.keys(t);return function(a){for(var s={},o=0;o<r.length;o++){var u=r[o],h=a==null?void 0:a[u];s[u]=h===void 0?t[u]:h}return s}},s9=function(t,r,a){for(var s=t.length-1;s>=0;s--)t[s]===r&&t.splice(s,1)},bgt=function(t){t.splice(0,t.length)},k7i=function(t,r){for(var a=0;a<r.length;a++){var s=r[a];t.push(s)}},F2=function(t,r,a){return a&&(r=lHn(a,r)),t[r]},g7=function(t,r,a,s){a&&(r=lHn(a,r)),t[r]=s},R7i=function(){function e(){V9(this,e),this._obj={}}return Y9(e,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}])}(),k7=typeof Map<"u"?Map:R7i,I7i="undefined",N7i=function(){function e(t){if(V9(this,e),this._obj=Object.create(null),this.size=0,t!=null){var r;t.instanceString!=null&&t.instanceString()===this.instanceString()?r=t.toArray():r=t;for(var a=0;a<r.length;a++)this.add(r[a])}}return Y9(e,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}])}(),WW=(typeof Set>"u"?"undefined":Dp(Set))!==I7i?Set:N7i,rke=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0||r===void 0||!dgt(t)){jd("An element must have a core reference and parameters set");return}var s=r.group;if(s==null&&(r.data&&r.data.source!=null&&r.data.target!=null?s="edges":s="nodes"),s!=="nodes"&&s!=="edges"){jd("An element must be of type `nodes` or `edges`; you specified `"+s+"`");return}this.length=1,this[0]=this;var o=this._private={cy:t,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:s,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?s==="edges":!!r.pannable,active:!1,classes:new WW,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.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(o.position.x==null&&(o.position.x=0),o.position.y==null&&(o.position.y=0),r.renderedPosition){var u=r.renderedPosition,h=t.pan(),f=t.zoom();o.position={x:(u.x-h.x)/f,y:(u.y-h.y)/f}}var p=[];Mh(r.classes)?p=r.classes:Ns(r.classes)&&(p=r.classes.split(/\s+/));for(var m=0,b=p.length;m<b;m++){var _=p[m];!_||_===""||o.classes.add(_)}this.createEmitter(),(a===void 0||a)&&this.restore();var w=r.style||r.css;w&&(Uu("Setting a `style` bypass at element creation should be done only when absolutely necessary.  Try to use the stylesheet instead."),this.style(w))},sEn=function(t){return t={bfs:t.bfs||!t.dfs,dfs:t.dfs||!t.bfs},function(a,s,o){var u;Vc(a)&&!Bw(a)&&(u=a,a=u.roots||u.root,s=u.visit,o=u.directed),o=arguments.length===2&&!Of(s)?s:o,s=Of(s)?s:function(){};for(var h=this._private.cy,f=a=Ns(a)?this.filter(a):a,p=[],m=[],b={},_={},w={},S=0,C,A=this.byGroup(),k=A.nodes,I=A.edges,N=0;N<f.length;N++){var L=f[N],P=L.id();L.isNode()&&(p.unshift(L),t.bfs&&(w[P]=!0,m.push(L)),_[P]=0)}for(var M=function(){var z=t.bfs?p.shift():p.pop(),Y=z.id();if(t.dfs){if(w[Y])return 0;w[Y]=!0,m.push(z)}var W=_[Y],Q=b[Y],V=Q!=null?Q.source():null,j=Q!=null?Q.target():null,ee=Q==null?void 0:z.same(V)?j[0]:V[0],te;if(te=s(z,Q,ee,S++,W),te===!0)return C=z,1;if(te===!1)return 1;for(var ne=z.connectedEdges().filter(function(be){return(!o||be.source().same(z))&&I.has(be)}),se=0;se<ne.length;se++){var ie=ne[se],ge=ie.connectedNodes().filter(function(be){return!be.same(z)&&k.has(be)}),ce=ge.id();ge.length!==0&&!w[ce]&&(ge=ge[0],p.push(ge),t.bfs&&(w[ce]=!0,m.push(ge)),b[ce]=ie,_[ce]=_[Y]+1)}},F;p.length!==0&&(F=M(),!(F!==0&&F===1)););for(var U=h.collection(),$=0;$<m.length;$++){var G=m[$],B=b[G.id()];B!=null&&U.push(B),U.push(G)}return{path:h.collection(U),found:h.collection(C)}}},qoe={breadthFirstSearch:sEn({bfs:!0}),depthFirstSearch:sEn({dfs:!0})};qoe.bfs=qoe.breadthFirstSearch;qoe.dfs=qoe.depthFirstSearch;var _xe={exports:{}},O7i=_xe.exports,oEn;function L7i(){return oEn||(oEn=1,function(e,t){(function(){var r,a,s,o,u,h,f,p,m,b,_,w,S,C,A;s=Math.floor,b=Math.min,a=function(k,I){return k<I?-1:k>I?1:0},m=function(k,I,N,L,P){var M;if(N==null&&(N=0),P==null&&(P=a),N<0)throw new Error("lo must be non-negative");for(L==null&&(L=k.length);N<L;)M=s((N+L)/2),P(I,k[M])<0?L=M:N=M+1;return[].splice.apply(k,[N,N-N].concat(I)),I},h=function(k,I,N){return N==null&&(N=a),k.push(I),C(k,0,k.length-1,N)},u=function(k,I){var N,L;return I==null&&(I=a),N=k.pop(),k.length?(L=k[0],k[0]=N,A(k,0,I)):L=N,L},p=function(k,I,N){var L;return N==null&&(N=a),L=k[0],k[0]=I,A(k,0,N),L},f=function(k,I,N){var L;return N==null&&(N=a),k.length&&N(k[0],I)<0&&(L=[k[0],I],I=L[0],k[0]=L[1],A(k,0,N)),I},o=function(k,I){var N,L,P,M,F,U;for(I==null&&(I=a),M=(function(){U=[];for(var $=0,G=s(k.length/2);0<=G?$<G:$>G;0<=G?$++:$--)U.push($);return U}).apply(this).reverse(),F=[],L=0,P=M.length;L<P;L++)N=M[L],F.push(A(k,N,I));return F},S=function(k,I,N){var L;if(N==null&&(N=a),L=k.indexOf(I),L!==-1)return C(k,0,L,N),A(k,L,N)},_=function(k,I,N){var L,P,M,F,U;if(N==null&&(N=a),P=k.slice(0,I),!P.length)return P;for(o(P,N),U=k.slice(I),M=0,F=U.length;M<F;M++)L=U[M],f(P,L,N);return P.sort(N).reverse()},w=function(k,I,N){var L,P,M,F,U,$,G,B,Z;if(N==null&&(N=a),I*10<=k.length){if(M=k.slice(0,I).sort(N),!M.length)return M;for(P=M[M.length-1],G=k.slice(I),F=0,$=G.length;F<$;F++)L=G[F],N(L,P)<0&&(m(M,L,0,null,N),M.pop(),P=M[M.length-1]);return M}for(o(k,N),Z=[],U=0,B=b(I,k.length);0<=B?U<B:U>B;0<=B?++U:--U)Z.push(u(k,N));return Z},C=function(k,I,N,L){var P,M,F;for(L==null&&(L=a),P=k[N];N>I;){if(F=N-1>>1,M=k[F],L(P,M)<0){k[N]=M,N=F;continue}break}return k[N]=P},A=function(k,I,N){var L,P,M,F,U;for(N==null&&(N=a),P=k.length,U=I,M=k[I],L=2*I+1;L<P;)F=L+1,F<P&&!(N(k[L],k[F])<0)&&(L=F),k[I]=k[L],I=L,L=2*I+1;return k[I]=M,C(k,U,I,N)},r=function(){k.push=h,k.pop=u,k.replace=p,k.pushpop=f,k.heapify=o,k.updateItem=S,k.nlargest=_,k.nsmallest=w;function k(I){this.cmp=I??a,this.nodes=[]}return k.prototype.push=function(I){return h(this.nodes,I,this.cmp)},k.prototype.pop=function(){return u(this.nodes,this.cmp)},k.prototype.peek=function(){return this.nodes[0]},k.prototype.contains=function(I){return this.nodes.indexOf(I)!==-1},k.prototype.replace=function(I){return p(this.nodes,I,this.cmp)},k.prototype.pushpop=function(I){return f(this.nodes,I,this.cmp)},k.prototype.heapify=function(){return o(this.nodes,this.cmp)},k.prototype.updateItem=function(I){return S(this.nodes,I,this.cmp)},k.prototype.clear=function(){return this.nodes=[]},k.prototype.empty=function(){return this.nodes.length===0},k.prototype.size=function(){return this.nodes.length},k.prototype.clone=function(){var I;return I=new k,I.nodes=this.nodes.slice(0),I},k.prototype.toArray=function(){return this.nodes.slice(0)},k.prototype.insert=k.prototype.push,k.prototype.top=k.prototype.peek,k.prototype.front=k.prototype.peek,k.prototype.has=k.prototype.contains,k.prototype.copy=k.prototype.clone,k}(),function(k,I){return e.exports=I()}(this,function(){return r})}).call(O7i)}(_xe)),_xe.exports}var nrt,lEn;function D7i(){return lEn||(lEn=1,nrt=L7i()),nrt}var M7i=D7i(),Ace=xce(M7i),P7i=Nm({root:null,weight:function(t){return 1},directed:!1}),B7i={dijkstra:function(t){if(!Vc(t)){var r=arguments;t={root:r[0],weight:r[1],directed:r[2]}}var a=P7i(t),s=a.root,o=a.weight,u=a.directed,h=this,f=o,p=Ns(s)?this.filter(s)[0]:s[0],m={},b={},_={},w=this.byGroup(),S=w.nodes,C=w.edges;C.unmergeBy(function(W){return W.isLoop()});for(var A=function(Q){return m[Q.id()]},k=function(Q,V){m[Q.id()]=V,I.updateItem(Q)},I=new Ace(function(W,Q){return A(W)-A(Q)}),N=0;N<S.length;N++){var L=S[N];m[L.id()]=L.same(p)?0:1/0,I.push(L)}for(var P=function(Q,V){for(var j=(u?Q.edgesTo(V):Q.edgesWith(V)).intersect(C),ee=1/0,te,ne=0;ne<j.length;ne++){var se=j[ne],ie=f(se);(ie<ee||!te)&&(ee=ie,te=se)}return{edge:te,dist:ee}};I.size()>0;){var M=I.pop(),F=A(M),U=M.id();if(_[U]=F,F!==1/0)for(var $=M.neighborhood().intersect(S),G=0;G<$.length;G++){var B=$[G],Z=B.id(),z=P(M,B),Y=F+z.dist;Y<A(B)&&(k(B,Y),b[Z]={node:M,edge:z.edge})}}return{distanceTo:function(Q){var V=Ns(Q)?S.filter(Q)[0]:Q[0];return _[V.id()]},pathTo:function(Q){var V=Ns(Q)?S.filter(Q)[0]:Q[0],j=[],ee=V,te=ee.id();if(V.length>0)for(j.unshift(V);b[te];){var ne=b[te];j.unshift(ne.edge),j.unshift(ne.node),ee=ne.node,te=ee.id()}return h.spawn(j)}}}},F7i={kruskal:function(t){t=t||function(N){return 1};for(var r=this.byGroup(),a=r.nodes,s=r.edges,o=a.length,u=new Array(o),h=a,f=function(L){for(var P=0;P<u.length;P++){var M=u[P];if(M.has(L))return P}},p=0;p<o;p++)u[p]=this.spawn(a[p]);for(var m=s.sort(function(N,L){return t(N)-t(L)}),b=0;b<m.length;b++){var _=m[b],w=_.source()[0],S=_.target()[0],C=f(w),A=f(S),k=u[C],I=u[A];C!==A&&(h.merge(_),k.merge(I),u.splice(A,1))}return h}},$7i=Nm({root:null,goal:null,weight:function(t){return 1},heuristic:function(t){return 0},directed:!1}),U7i={aStar:function(t){var r=this.cy(),a=$7i(t),s=a.root,o=a.goal,u=a.heuristic,h=a.directed,f=a.weight;s=r.collection(s)[0],o=r.collection(o)[0];var p=s.id(),m=o.id(),b={},_={},w={},S=new Ace(function(te,ne){return _[te.id()]-_[ne.id()]}),C=new WW,A={},k={},I=function(ne,se){S.push(ne),C.add(se)},N,L,P=function(){N=S.pop(),L=N.id(),C.delete(L)},M=function(ne){return C.has(ne)};I(s,p),b[p]=0,_[p]=u(s);for(var F=0;S.size()>0;){if(P(),F++,L===m){for(var U=[],$=o,G=m,B=k[G];U.unshift($),B!=null&&U.unshift(B),$=A[G],$!=null;)G=$.id(),B=k[G];return{found:!0,distance:b[L],path:this.spawn(U),steps:F}}w[L]=!0;for(var Z=N._private.edges,z=0;z<Z.length;z++){var Y=Z[z];if(this.hasElementWithId(Y.id())&&!(h&&Y.data("source")!==L)){var W=Y.source(),Q=Y.target(),V=W.id()!==L?W:Q,j=V.id();if(this.hasElementWithId(j)&&!w[j]){var ee=b[L]+f(Y);if(!M(j)){b[j]=ee,_[j]=ee+u(V),I(V,j),A[j]=N,k[j]=Y;continue}ee<b[j]&&(b[j]=ee,_[j]=ee+u(V),A[j]=N,k[j]=Y)}}}}return{found:!1,distance:void 0,path:void 0,steps:F}}},z7i=Nm({weight:function(t){return 1},directed:!1}),G7i={floydWarshall:function(t){for(var r=this.cy(),a=z7i(t),s=a.weight,o=a.directed,u=s,h=this.byGroup(),f=h.nodes,p=h.edges,m=f.length,b=m*m,_=function(ie){return f.indexOf(ie)},w=function(ie){return f[ie]},S=new Array(b),C=0;C<b;C++){var A=C%m,k=(C-A)/m;k===A?S[C]=0:S[C]=1/0}for(var I=new Array(b),N=new Array(b),L=0;L<p.length;L++){var P=p[L],M=P.source()[0],F=P.target()[0];if(M!==F){var U=_(M),$=_(F),G=U*m+$,B=u(P);if(S[G]>B&&(S[G]=B,I[G]=$,N[G]=P),!o){var Z=$*m+U;!o&&S[Z]>B&&(S[Z]=B,I[Z]=U,N[Z]=P)}}}for(var z=0;z<m;z++)for(var Y=0;Y<m;Y++)for(var W=Y*m+z,Q=0;Q<m;Q++){var V=Y*m+Q,j=z*m+Q;S[W]+S[j]<S[V]&&(S[V]=S[W]+S[j],I[V]=I[W])}var ee=function(ie){return(Ns(ie)?r.filter(ie):ie)[0]},te=function(ie){return _(ee(ie))},ne={distance:function(ie,ge){var ce=te(ie),be=te(ge);return S[ce*m+be]},path:function(ie,ge){var ce=te(ie),be=te(ge),ve=w(ce);if(ce===be)return ve.collection();if(I[ce*m+be]==null)return r.collection();var De=r.collection(),ye=ce,Ee;for(De.merge(ve);ce!==be;)ye=ce,ce=I[ce*m+be],Ee=N[ye*m+ce],De.merge(Ee),De.merge(w(ce));return De}};return ne}},q7i=Nm({weight:function(t){return 1},directed:!1,root:null}),H7i={bellmanFord:function(t){var r=this,a=q7i(t),s=a.weight,o=a.directed,u=a.root,h=s,f=this,p=this.cy(),m=this.byGroup(),b=m.edges,_=m.nodes,w=_.length,S=new k7,C=!1,A=[];u=p.collection(u)[0],b.unmergeBy(function(Ve){return Ve.isLoop()});for(var k=b.length,I=function(Oe){var Dt=S.get(Oe.id());return Dt||(Dt={},S.set(Oe.id(),Dt)),Dt},N=function(Oe){return(Ns(Oe)?p.$(Oe):Oe)[0]},L=function(Oe){return I(N(Oe)).dist},P=function(Oe){for(var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,ot=N(Oe),sn=[],Kt=ot;;){if(Kt==null)return r.spawn();var Ft=I(Kt),Je=Ft.edge,ht=Ft.pred;if(sn.unshift(Kt[0]),Kt.same(Dt)&&sn.length>0)break;Je!=null&&sn.unshift(Je),Kt=ht}return f.spawn(sn)},M=0;M<w;M++){var F=_[M],U=I(F);F.same(u)?U.dist=0:U.dist=1/0,U.pred=null,U.edge=null}for(var $=!1,G=function(Oe,Dt,ot,sn,Kt,Ft){var Je=sn.dist+Ft;Je<Kt.dist&&!ot.same(sn.edge)&&(Kt.dist=Je,Kt.pred=Oe,Kt.edge=ot,$=!0)},B=1;B<w;B++){$=!1;for(var Z=0;Z<k;Z++){var z=b[Z],Y=z.source(),W=z.target(),Q=h(z),V=I(Y),j=I(W);G(Y,W,z,V,j,Q),o||G(W,Y,z,j,V,Q)}if(!$)break}if($)for(var ee=[],te=0;te<k;te++){var ne=b[te],se=ne.source(),ie=ne.target(),ge=h(ne),ce=I(se).dist,be=I(ie).dist;if(ce+ge<be||!o&&be+ge<ce)if(C||(Uu("Graph contains a negative weight cycle for Bellman-Ford"),C=!0),t.findNegativeWeightCycles!==!1){var ve=[];ce+ge<be&&ve.push(se),!o&&be+ge<ce&&ve.push(ie);for(var De=ve.length,ye=0;ye<De;ye++){var Ee=ve[ye],he=[Ee];he.push(I(Ee).edge);for(var we=I(Ee).pred;he.indexOf(we)===-1;)he.push(we),he.push(I(we).edge),we=I(we).pred;he=he.slice(he.indexOf(we));for(var Ce=he[0].id(),Ie=0,Le=2;Le<he.length;Le+=2)he[Le].id()<Ce&&(Ce=he[Le].id(),Ie=Le);he=he.slice(Ie).concat(he.slice(0,Ie)),he.push(he[0]);var Fe=he.map(function(Ve){return Ve.id()}).join(",");ee.indexOf(Fe)===-1&&(A.push(f.spawn(he)),ee.push(Fe))}}else break}return{distanceTo:L,pathTo:P,hasNegativeWeightCycle:C,negativeWeightCycles:A}}},V7i=Math.sqrt(2),Y7i=function(t,r,a){a.length===0&&jd("Karger-Stein must be run on a connected (sub)graph");for(var s=a[t],o=s[1],u=s[2],h=r[o],f=r[u],p=a,m=p.length-1;m>=0;m--){var b=p[m],_=b[1],w=b[2];(r[_]===h&&r[w]===f||r[_]===f&&r[w]===h)&&p.splice(m,1)}for(var S=0;S<p.length;S++){var C=p[S];C[1]===f?(p[S]=C.slice(),p[S][1]=h):C[2]===f&&(p[S]=C.slice(),p[S][2]=h)}for(var A=0;A<r.length;A++)r[A]===f&&(r[A]=h);return p},rrt=function(t,r,a,s){for(;a>s;){var o=Math.floor(Math.random()*r.length);r=Y7i(o,t,r),a--}return r},j7i={kargerStein:function(){var t=this,r=this.byGroup(),a=r.nodes,s=r.edges;s.unmergeBy(function(j){return j.isLoop()});var o=a.length,u=s.length,h=Math.ceil(Math.pow(Math.log(o)/Math.LN2,2)),f=Math.floor(o/V7i);if(o<2){jd("At least 2 nodes are required for Karger-Stein algorithm");return}for(var p=[],m=0;m<u;m++){var b=s[m];p.push([m,a.indexOf(b.source()),a.indexOf(b.target())])}for(var _=1/0,w=[],S=new Array(o),C=new Array(o),A=new Array(o),k=function(ee,te){for(var ne=0;ne<o;ne++)te[ne]=ee[ne]},I=0;I<=h;I++){for(var N=0;N<o;N++)C[N]=N;var L=rrt(C,p.slice(),o,f),P=L.slice();k(C,A);var M=rrt(C,L,f,2),F=rrt(A,P,f,2);M.length<=F.length&&M.length<_?(_=M.length,w=M,k(C,S)):F.length<=M.length&&F.length<_&&(_=F.length,w=F,k(A,S))}for(var U=this.spawn(w.map(function(j){return s[j[0]]})),$=this.spawn(),G=this.spawn(),B=S[0],Z=0;Z<S.length;Z++){var z=S[Z],Y=a[Z];z===B?$.merge(Y):G.merge(Y)}var W=function(ee){var te=t.spawn();return ee.forEach(function(ne){te.merge(ne),ne.connectedEdges().forEach(function(se){t.contains(se)&&!U.contains(se)&&te.merge(se)})}),te},Q=[W($),W(G)],V={cut:U,components:Q,partition1:$,partition2:G};return V}},irt,W7i=function(t){return{x:t.x,y:t.y}},ike=function(t,r,a){return{x:t.x*r+a.x,y:t.y*r+a.y}},EHn=function(t,r,a){return{x:(t.x-a.x)/r,y:(t.y-a.y)/r}},LV=function(t){return{x:t[0],y:t[1]}},K7i=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=1/0,o=r;o<a;o++){var u=t[o];isFinite(u)&&(s=Math.min(u,s))}return s},X7i=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=-1/0,o=r;o<a;o++){var u=t[o];isFinite(u)&&(s=Math.max(u,s))}return s},Q7i=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=0,o=0,u=r;u<a;u++){var h=t[u];isFinite(h)&&(s+=h,o++)}return s/o},Z7i=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;s?t=t.slice(r,a):(a<t.length&&t.splice(a,t.length-a),r>0&&t.splice(0,r));for(var h=0,f=t.length-1;f>=0;f--){var p=t[f];u?isFinite(p)||(t[f]=-1/0,h++):t.splice(f,1)}o&&t.sort(function(_,w){return _-w});var m=t.length,b=Math.floor(m/2);return m%2!==0?t[b+1+h]:(t[b-1+h]+t[b+h])/2},J7i=function(t){return Math.PI*t/180},Iwe=function(t,r){return Math.atan2(r,t)-Math.PI/2},ygt=Math.log2||function(e){return Math.log(e)/Math.log(2)},vgt=function(t){return t>0?1:t<0?-1:0},XF=function(t,r){return Math.sqrt(NB(t,r))},NB=function(t,r){var a=r.x-t.x,s=r.y-t.y;return a*a+s*s},eRi=function(t){for(var r=t.length,a=0,s=0;s<r;s++)a+=t[s];for(var o=0;o<r;o++)t[o]=t[o]/a;return t},_g=function(t,r,a,s){return(1-s)*(1-s)*t+2*(1-s)*s*r+s*s*a},tY=function(t,r,a,s){return{x:_g(t.x,r.x,a.x,s),y:_g(t.y,r.y,a.y,s)}},tRi=function(t,r,a,s){var o={x:r.x-t.x,y:r.y-t.y},u=XF(t,r),h={x:o.x/u,y:o.y/u};return a=a??0,s=s??a*u,{x:t.x+h.x*s,y:t.y+h.y*s}},Hoe=function(t,r,a){return Math.max(t,Math.min(a,r))},uv=function(t){if(t==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(t.x1!=null&&t.y1!=null){if(t.x2!=null&&t.y2!=null&&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(t.w!=null&&t.h!=null&&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}}},nRi=function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},rRi=function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},iRi=function(t,r){t.x1=Math.min(t.x1,r.x1),t.x2=Math.max(t.x2,r.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,r.y1),t.y2=Math.max(t.y2,r.y2),t.h=t.y2-t.y1},xHn=function(t,r,a){t.x1=Math.min(t.x1,r),t.x2=Math.max(t.x2,r),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,a),t.y2=Math.max(t.y2,a),t.h=t.y2-t.y1},wxe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.x1-=r,t.x2+=r,t.y1-=r,t.y2+=r,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},Exe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,s,o,u;if(r.length===1)a=s=o=u=r[0];else if(r.length===2)a=o=r[0],u=s=r[1];else if(r.length===4){var h=S1(r,4);a=h[0],s=h[1],o=h[2],u=h[3]}return t.x1-=u,t.x2+=s,t.y1-=a,t.y2+=o,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},cEn=function(t,r){t.x1=r.x1,t.y1=r.y1,t.x2=r.x2,t.y2=r.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},_gt=function(t,r){return!(t.x1>r.x2||r.x1>t.x2||t.x2<r.x1||r.x2<t.x1||t.y2<r.y1||r.y2<t.y1||t.y1>r.y2||r.y1>t.y2)},bO=function(t,r,a){return t.x1<=r&&r<=t.x2&&t.y1<=a&&a<=t.y2},uEn=function(t,r){return bO(t,r.x,r.y)},SHn=function(t,r){return bO(t,r.x1,r.y1)&&bO(t,r.x2,r.y2)},aRi=(irt=Math.hypot)!==null&&irt!==void 0?irt:function(e,t){return Math.sqrt(e*e+t*t)};function sRi(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var r=function(U,$){return{x:U.x+$.x,y:U.y+$.y}},a=function(U,$){return{x:U.x-$.x,y:U.y-$.y}},s=function(U,$){return{x:U.x*$,y:U.y*$}},o=function(U,$){return U.x*$.y-U.y*$.x},u=function(U){var $=aRi(U.x,U.y);return $===0?{x:0,y:0}:{x:U.x/$,y:U.y/$}},h=function(U){for(var $=0,G=0;G<U.length;G++){var B=U[G],Z=U[(G+1)%U.length];$+=B.x*Z.y-Z.x*B.y}return $/2},f=function(U,$,G,B){var Z=a($,U),z=a(B,G),Y=o(Z,z);if(Math.abs(Y)<1e-9)return r(U,s(Z,.5));var W=o(a(G,U),z)/Y;return r(U,s(Z,W))},p=e.map(function(F){return{x:F.x,y:F.y}});h(p)<0&&p.reverse();for(var m=p.length,b=[],_=0;_<m;_++){var w=p[_],S=p[(_+1)%m],C=a(S,w),A=u({x:C.y,y:-C.x});b.push(A)}for(var k=b.map(function(F,U){var $=r(p[U],s(F,t)),G=r(p[(U+1)%m],s(F,t));return{p1:$,p2:G}}),I=[],N=0;N<m;N++){var L=k[(N-1+m)%m],P=k[N],M=f(L.p1,L.p2,P.p1,P.p2);I.push(M)}return I}function oRi(e,t,r,a,s,o){var u=mRi(e,t,r,a,s),h=sRi(u,o),f=uv();return h.forEach(function(p){return xHn(f,p.x,p.y)}),f}var THn=function(t,r,a,s,o,u,h){var f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",p=f==="auto"?o9(o,u):f,m=o/2,b=u/2;p=Math.min(p,m,b);var _=p!==m,w=p!==b,S;if(_){var C=a-m+p-h,A=s-b-h,k=a+m-p+h,I=A;if(S=yO(t,r,a,s,C,A,k,I,!1),S.length>0)return S}if(w){var N=a+m+h,L=s-b+p-h,P=N,M=s+b-p+h;if(S=yO(t,r,a,s,N,L,P,M,!1),S.length>0)return S}if(_){var F=a-m+p-h,U=s+b+h,$=a+m-p+h,G=U;if(S=yO(t,r,a,s,F,U,$,G,!1),S.length>0)return S}if(w){var B=a-m-h,Z=s-b+p-h,z=B,Y=s+b-p+h;if(S=yO(t,r,a,s,B,Z,z,Y,!1),S.length>0)return S}var W;{var Q=a-m+p,V=s-b+p;if(W=Yie(t,r,a,s,Q,V,p+h),W.length>0&&W[0]<=Q&&W[1]<=V)return[W[0],W[1]]}{var j=a+m-p,ee=s-b+p;if(W=Yie(t,r,a,s,j,ee,p+h),W.length>0&&W[0]>=j&&W[1]<=ee)return[W[0],W[1]]}{var te=a+m-p,ne=s+b-p;if(W=Yie(t,r,a,s,te,ne,p+h),W.length>0&&W[0]>=te&&W[1]>=ne)return[W[0],W[1]]}{var se=a-m+p,ie=s+b-p;if(W=Yie(t,r,a,s,se,ie,p+h),W.length>0&&W[0]<=se&&W[1]>=ie)return[W[0],W[1]]}return[]},lRi=function(t,r,a,s,o,u,h){var f=h,p=Math.min(a,o),m=Math.max(a,o),b=Math.min(s,u),_=Math.max(s,u);return p-f<=t&&t<=m+f&&b-f<=r&&r<=_+f},cRi=function(t,r,a,s,o,u,h,f,p){var m={x1:Math.min(a,h,o)-p,x2:Math.max(a,h,o)+p,y1:Math.min(s,f,u)-p,y2:Math.max(s,f,u)+p};return!(t<m.x1||t>m.x2||r<m.y1||r>m.y2)},uRi=function(t,r,a,s){a-=s;var o=r*r-4*t*a;if(o<0)return[];var u=Math.sqrt(o),h=2*t,f=(-r+u)/h,p=(-r-u)/h;return[f,p]},hRi=function(t,r,a,s,o){var u=1e-5;t===0&&(t=u),r/=t,a/=t,s/=t;var h,f,p,m,b,_,w,S;if(f=(3*a-r*r)/9,p=-(27*s)+r*(9*a-2*(r*r)),p/=54,h=f*f*f+p*p,o[1]=0,w=r/3,h>0){b=p+Math.sqrt(h),b=b<0?-Math.pow(-b,1/3):Math.pow(b,1/3),_=p-Math.sqrt(h),_=_<0?-Math.pow(-_,1/3):Math.pow(_,1/3),o[0]=-w+b+_,w+=(b+_)/2,o[4]=o[2]=-w,w=Math.sqrt(3)*(-_+b)/2,o[3]=w,o[5]=-w;return}if(o[5]=o[3]=0,h===0){S=p<0?-Math.pow(-p,1/3):Math.pow(p,1/3),o[0]=-w+2*S,o[4]=o[2]=-(S+w);return}f=-f,m=f*f*f,m=Math.acos(p/Math.sqrt(m)),S=2*Math.sqrt(f),o[0]=-w+S*Math.cos(m/3),o[2]=-w+S*Math.cos((m+2*Math.PI)/3),o[4]=-w+S*Math.cos((m+4*Math.PI)/3)},dRi=function(t,r,a,s,o,u,h,f){var p=1*a*a-4*a*o+2*a*h+4*o*o-4*o*h+h*h+s*s-4*s*u+2*s*f+4*u*u-4*u*f+f*f,m=1*9*a*o-3*a*a-3*a*h-6*o*o+3*o*h+9*s*u-3*s*s-3*s*f-6*u*u+3*u*f,b=1*3*a*a-6*a*o+a*h-a*t+2*o*o+2*o*t-h*t+3*s*s-6*s*u+s*f-s*r+2*u*u+2*u*r-f*r,_=1*a*o-a*a+a*t-o*t+s*u-s*s+s*r-u*r,w=[];hRi(p,m,b,_,w);for(var S=1e-7,C=[],A=0;A<6;A+=2)Math.abs(w[A+1])<S&&w[A]>=0&&w[A]<=1&&C.push(w[A]);C.push(1),C.push(0);for(var k=-1,I,N,L,P=0;P<C.length;P++)I=Math.pow(1-C[P],2)*a+2*(1-C[P])*C[P]*o+C[P]*C[P]*h,N=Math.pow(1-C[P],2)*s+2*(1-C[P])*C[P]*u+C[P]*C[P]*f,L=Math.pow(I-t,2)+Math.pow(N-r,2),k>=0?L<k&&(k=L):k=L;return k},fRi=function(t,r,a,s,o,u){var h=[t-a,r-s],f=[o-a,u-s],p=f[0]*f[0]+f[1]*f[1],m=h[0]*h[0]+h[1]*h[1],b=h[0]*f[0]+h[1]*f[1],_=b*b/p;return b<0?m:_>p?(t-o)*(t-o)+(r-u)*(r-u):m-_},$2=function(t,r,a){for(var s,o,u,h,f,p=0,m=0;m<a.length/2;m++)if(s=a[m*2],o=a[m*2+1],m+1<a.length/2?(u=a[(m+1)*2],h=a[(m+1)*2+1]):(u=a[(m+1-a.length/2)*2],h=a[(m+1-a.length/2)*2+1]),!(s==t&&u==t))if(s>=t&&t>=u||s<=t&&t<=u)f=(t-s)/(u-s)*(h-o)+o,f>r&&p++;else continue;return p%2!==0},uR=function(t,r,a,s,o,u,h,f,p){var m=new Array(a.length),b;f[0]!=null?(b=Math.atan(f[1]/f[0]),f[0]<0?b=b+Math.PI/2:b=-b-Math.PI/2):b=f;for(var _=Math.cos(-b),w=Math.sin(-b),S=0;S<m.length/2;S++)m[S*2]=u/2*(a[S*2]*_-a[S*2+1]*w),m[S*2+1]=h/2*(a[S*2+1]*_+a[S*2]*w),m[S*2]+=s,m[S*2+1]+=o;var C;if(p>0){var A=H3e(m,-p);C=q3e(A)}else C=m;return $2(t,r,C)},pRi=function(t,r,a,s,o,u,h,f){for(var p=new Array(a.length*2),m=0;m<f.length;m++){var b=f[m];p[m*4+0]=b.startX,p[m*4+1]=b.startY,p[m*4+2]=b.stopX,p[m*4+3]=b.stopY;var _=Math.pow(b.cx-t,2)+Math.pow(b.cy-r,2);if(_<=Math.pow(b.radius,2))return!0}return $2(t,r,p)},q3e=function(t){for(var r=new Array(t.length/2),a,s,o,u,h,f,p,m,b=0;b<t.length/4;b++){a=t[b*4],s=t[b*4+1],o=t[b*4+2],u=t[b*4+3],b<t.length/4-1?(h=t[(b+1)*4],f=t[(b+1)*4+1],p=t[(b+1)*4+2],m=t[(b+1)*4+3]):(h=t[0],f=t[1],p=t[2],m=t[3]);var _=yO(a,s,o,u,h,f,p,m,!0);r[b*2]=_[0],r[b*2+1]=_[1]}return r},H3e=function(t,r){for(var a=new Array(t.length*2),s,o,u,h,f=0;f<t.length/2;f++){s=t[f*2],o=t[f*2+1],f<t.length/2-1?(u=t[(f+1)*2],h=t[(f+1)*2+1]):(u=t[0],h=t[1]);var p=h-o,m=-(u-s),b=Math.sqrt(p*p+m*m),_=p/b,w=m/b;a[f*4]=s+_*r,a[f*4+1]=o+w*r,a[f*4+2]=u+_*r,a[f*4+3]=h+w*r}return a},gRi=function(t,r,a,s,o,u){var h=a-t,f=s-r;h/=o,f/=u;var p=Math.sqrt(h*h+f*f),m=p-1;if(m<0)return[];var b=m/p;return[(a-t)*b+t,(s-r)*b+r]},sF=function(t,r,a,s,o,u,h){return t-=o,r-=u,t/=a/2+h,r/=s/2+h,t*t+r*r<=1},Yie=function(t,r,a,s,o,u,h){var f=[a-t,s-r],p=[t-o,r-u],m=f[0]*f[0]+f[1]*f[1],b=2*(p[0]*f[0]+p[1]*f[1]),_=p[0]*p[0]+p[1]*p[1]-h*h,w=b*b-4*m*_;if(w<0)return[];var S=(-b+Math.sqrt(w))/(2*m),C=(-b-Math.sqrt(w))/(2*m),A=Math.min(S,C),k=Math.max(S,C),I=[];if(A>=0&&A<=1&&I.push(A),k>=0&&k<=1&&I.push(k),I.length===0)return[];var N=I[0]*f[0]+t,L=I[0]*f[1]+r;if(I.length>1){if(I[0]==I[1])return[N,L];var P=I[1]*f[0]+t,M=I[1]*f[1]+r;return[N,L,P,M]}else return[N,L]},art=function(t,r,a){return r<=t&&t<=a||a<=t&&t<=r?t:t<=r&&r<=a||a<=r&&r<=t?r:a},yO=function(t,r,a,s,o,u,h,f,p){var m=t-o,b=a-t,_=h-o,w=r-u,S=s-r,C=f-u,A=_*w-C*m,k=b*w-S*m,I=C*b-_*S;if(I!==0){var N=A/I,L=k/I,P=.001,M=0-P,F=1+P;return M<=N&&N<=F&&M<=L&&L<=F?[t+N*b,r+N*S]:p?[t+N*b,r+N*S]:[]}else return A===0||k===0?art(t,a,h)===h?[h,f]:art(t,a,o)===o?[o,u]:art(o,h,a)===a?[a,s]:[]:[]},mRi=function(t,r,a,s,o){var u=[],h=s/2,f=o/2,p=r,m=a;u.push({x:p+h*t[0],y:m+f*t[1]});for(var b=1;b<t.length/2;b++)u.push({x:p+h*t[b*2],y:m+f*t[b*2+1]});return u},Voe=function(t,r,a,s,o,u,h,f){var p=[],m,b=new Array(a.length),_=!0;u==null&&(_=!1);var w;if(_){for(var S=0;S<b.length/2;S++)b[S*2]=a[S*2]*u+s,b[S*2+1]=a[S*2+1]*h+o;if(f>0){var C=H3e(b,-f);w=q3e(C)}else w=b}else w=a;for(var A,k,I,N,L=0;L<w.length/2;L++)A=w[L*2],k=w[L*2+1],L<w.length/2-1?(I=w[(L+1)*2],N=w[(L+1)*2+1]):(I=w[0],N=w[1]),m=yO(t,r,s,o,A,k,I,N),m.length!==0&&p.push(m[0],m[1]);return p},bRi=function(t,r,a,s,o,u,h,f,p){var m=[],b,_=new Array(a.length*2);p.forEach(function(I,N){N===0?(_[_.length-2]=I.startX,_[_.length-1]=I.startY):(_[N*4-2]=I.startX,_[N*4-1]=I.startY),_[N*4]=I.stopX,_[N*4+1]=I.stopY,b=Yie(t,r,s,o,I.cx,I.cy,I.radius),b.length!==0&&m.push(b[0],b[1])});for(var w=0;w<_.length/4;w++)b=yO(t,r,s,o,_[w*4],_[w*4+1],_[w*4+2],_[w*4+3],!1),b.length!==0&&m.push(b[0],b[1]);if(m.length>2){for(var S=[m[0],m[1]],C=Math.pow(S[0]-t,2)+Math.pow(S[1]-r,2),A=1;A<m.length/2;A++){var k=Math.pow(m[A*2]-t,2)+Math.pow(m[A*2+1]-r,2);k<=C&&(S[0]=m[A*2],S[1]=m[A*2+1],C=k)}return S}return m},Nwe=function(t,r,a){var s=[t[0]-r[0],t[1]-r[1]],o=Math.sqrt(s[0]*s[0]+s[1]*s[1]),u=(o-a)/o;return u<0&&(u=1e-5),[r[0]+u*s[0],r[1]+u*s[1]]},Gy=function(t,r){var a=nct(t,r);return a=CHn(a),a},CHn=function(t){for(var r,a,s=t.length/2,o=1/0,u=1/0,h=-1/0,f=-1/0,p=0;p<s;p++)r=t[2*p],a=t[2*p+1],o=Math.min(o,r),h=Math.max(h,r),u=Math.min(u,a),f=Math.max(f,a);for(var m=2/(h-o),b=2/(f-u),_=0;_<s;_++)r=t[2*_]=t[2*_]*m,a=t[2*_+1]=t[2*_+1]*b,o=Math.min(o,r),h=Math.max(h,r),u=Math.min(u,a),f=Math.max(f,a);if(u<-1)for(var w=0;w<s;w++)a=t[2*w+1]=t[2*w+1]+(-1-u);return t},nct=function(t,r){var a=1/t*2*Math.PI,s=t%2===0?Math.PI/2+a/2:Math.PI/2;s+=r;for(var o=new Array(t*2),u,h=0;h<t;h++)u=h*a+s,o[2*h]=Math.cos(u),o[2*h+1]=Math.sin(-u);return o},o9=function(t,r){return Math.min(t/4,r/4,8)},AHn=function(t,r){return Math.min(t/10,r/10,8)},wgt=function(){return 8},yRi=function(t,r,a){return[t-2*r+a,2*(r-t),t]},rct=function(t,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*t),ctrlPtOffsetPct:.05}};function srt(e,t){function r(b){for(var _=[],w=0;w<b.length;w++){var S=b[w],C=b[(w+1)%b.length],A={x:C.x-S.x,y:C.y-S.y},k={x:-A.y,y:A.x},I=Math.sqrt(k.x*k.x+k.y*k.y);_.push({x:k.x/I,y:k.y/I})}return _}function a(b,_){var w=1/0,S=-1/0,C=W2(b),A;try{for(C.s();!(A=C.n()).done;){var k=A.value,I=k.x*_.x+k.y*_.y;w=Math.min(w,I),S=Math.max(S,I)}}catch(N){C.e(N)}finally{C.f()}return{min:w,max:S}}function s(b,_){return!(b.max<_.min||_.max<b.min)}var o=[].concat($3e(r(e)),$3e(r(t))),u=W2(o),h;try{for(u.s();!(h=u.n()).done;){var f=h.value,p=a(e,f),m=a(t,f);if(!s(p,m))return!1}}catch(b){u.e(b)}finally{u.f()}return!0}var vRi=Nm({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(t){return 1}}),_Ri={pageRank:function(t){for(var r=vRi(t),a=r.dampingFactor,s=r.precision,o=r.iterations,u=r.weight,h=this._private.cy,f=this.byGroup(),p=f.nodes,m=f.edges,b=p.length,_=b*b,w=m.length,S=new Array(_),C=new Array(b),A=(1-a)/b,k=0;k<b;k++){for(var I=0;I<b;I++){var N=k*b+I;S[N]=0}C[k]=0}for(var L=0;L<w;L++){var P=m[L],M=P.data("source"),F=P.data("target");if(M!==F){var U=p.indexOfId(M),$=p.indexOfId(F),G=u(P),B=$*b+U;S[B]+=G,C[U]+=G}}for(var Z=1/b+A,z=0;z<b;z++)if(C[z]===0)for(var Y=0;Y<b;Y++){var W=Y*b+z;S[W]=Z}else for(var Q=0;Q<b;Q++){var V=Q*b+z;S[V]=S[V]/C[z]+A}for(var j=new Array(b),ee=new Array(b),te,ne=0;ne<b;ne++)j[ne]=1;for(var se=0;se<o;se++){for(var ie=0;ie<b;ie++)ee[ie]=0;for(var ge=0;ge<b;ge++)for(var ce=0;ce<b;ce++){var be=ge*b+ce;ee[ge]+=S[be]*j[ce]}eRi(ee),te=j,j=ee,ee=te;for(var ve=0,De=0;De<b;De++){var ye=te[De]-j[De];ve+=ye*ye}if(ve<s)break}var Ee={rank:function(we){return we=h.collection(we)[0],j[p.indexOf(we)]}};return Ee}},hEn=Nm({root:null,weight:function(t){return 1},directed:!1,alpha:0}),nY={degreeCentralityNormalized:function(t){t=hEn(t);var r=this.cy(),a=this.nodes(),s=a.length;if(t.directed){for(var m={},b={},_=0,w=0,S=0;S<s;S++){var C=a[S],A=C.id();t.root=C;var k=this.degreeCentrality(t);_<k.indegree&&(_=k.indegree),w<k.outdegree&&(w=k.outdegree),m[A]=k.indegree,b[A]=k.outdegree}return{indegree:function(N){return _==0?0:(Ns(N)&&(N=r.filter(N)),m[N.id()]/_)},outdegree:function(N){return w===0?0:(Ns(N)&&(N=r.filter(N)),b[N.id()]/w)}}}else{for(var o={},u=0,h=0;h<s;h++){var f=a[h];t.root=f;var p=this.degreeCentrality(t);u<p.degree&&(u=p.degree),o[f.id()]=p.degree}return{degree:function(N){return u===0?0:(Ns(N)&&(N=r.filter(N)),o[N.id()]/u)}}}},degreeCentrality:function(t){t=hEn(t);var r=this.cy(),a=this,s=t,o=s.root,u=s.weight,h=s.directed,f=s.alpha;if(o=r.collection(o)[0],h){for(var w=o.connectedEdges(),S=w.filter(function(M){return M.target().same(o)&&a.has(M)}),C=w.filter(function(M){return M.source().same(o)&&a.has(M)}),A=S.length,k=C.length,I=0,N=0,L=0;L<S.length;L++)I+=u(S[L]);for(var P=0;P<C.length;P++)N+=u(C[P]);return{indegree:Math.pow(A,1-f)*Math.pow(I,f),outdegree:Math.pow(k,1-f)*Math.pow(N,f)}}else{for(var p=o.connectedEdges().intersection(a),m=p.length,b=0,_=0;_<p.length;_++)b+=u(p[_]);return{degree:Math.pow(m,1-f)*Math.pow(b,f)}}}};nY.dc=nY.degreeCentrality;nY.dcn=nY.degreeCentralityNormalised=nY.degreeCentralityNormalized;var dEn=Nm({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),rY={closenessCentralityNormalized:function(t){for(var r=dEn(t),a=r.harmonic,s=r.weight,o=r.directed,u=this.cy(),h={},f=0,p=this.nodes(),m=this.floydWarshall({weight:s,directed:o}),b=0;b<p.length;b++){for(var _=0,w=p[b],S=0;S<p.length;S++)if(b!==S){var C=m.distance(w,p[S]);a?_+=1/C:_+=C}a||(_=1/_),f<_&&(f=_),h[w.id()]=_}return{closeness:function(k){return f==0?0:(Ns(k)?k=u.filter(k)[0].id():k=k.id(),h[k]/f)}}},closenessCentrality:function(t){var r=dEn(t),a=r.root,s=r.weight,o=r.directed,u=r.harmonic;a=this.filter(a)[0];for(var h=this.dijkstra({root:a,weight:s,directed:o}),f=0,p=this.nodes(),m=0;m<p.length;m++){var b=p[m];if(!b.same(a)){var _=h.distanceTo(b);u?f+=1/_:f+=_}}return u?f:1/f}};rY.cc=rY.closenessCentrality;rY.ccn=rY.closenessCentralityNormalised=rY.closenessCentralityNormalized;var wRi=Nm({weight:null,directed:!1}),ict={betweennessCentrality:function(t){for(var r=wRi(t),a=r.directed,s=r.weight,o=s!=null,u=this.cy(),h=this.nodes(),f={},p={},m=0,b={set:function(N,L){p[N]=L,L>m&&(m=L)},get:function(N){return p[N]}},_=0;_<h.length;_++){var w=h[_],S=w.id();a?f[S]=w.outgoers().nodes():f[S]=w.openNeighborhood().nodes(),b.set(S,0)}for(var C=function(){for(var N=h[A].id(),L=[],P={},M={},F={},U=new Ace(function(ge,ce){return F[ge]-F[ce]}),$=0;$<h.length;$++){var G=h[$].id();P[G]=[],M[G]=0,F[G]=1/0}for(M[N]=1,F[N]=0,U.push(N);!U.empty();){var B=U.pop();if(L.push(B),o)for(var Z=0;Z<f[B].length;Z++){var z=f[B][Z],Y=u.getElementById(B),W=void 0;Y.edgesTo(z).length>0?W=Y.edgesTo(z)[0]:W=z.edgesTo(Y)[0];var Q=s(W);z=z.id(),F[z]>F[B]+Q&&(F[z]=F[B]+Q,U.nodes.indexOf(z)<0?U.push(z):U.updateItem(z),M[z]=0,P[z]=[]),F[z]==F[B]+Q&&(M[z]=M[z]+M[B],P[z].push(B))}else for(var V=0;V<f[B].length;V++){var j=f[B][V].id();F[j]==1/0&&(U.push(j),F[j]=F[B]+1),F[j]==F[B]+1&&(M[j]=M[j]+M[B],P[j].push(B))}}for(var ee={},te=0;te<h.length;te++)ee[h[te].id()]=0;for(;L.length>0;){for(var ne=L.pop(),se=0;se<P[ne].length;se++){var ie=P[ne][se];ee[ie]=ee[ie]+M[ie]/M[ne]*(1+ee[ne])}ne!=h[A].id()&&b.set(ne,b.get(ne)+ee[ne])}},A=0;A<h.length;A++)C();var k={betweenness:function(N){var L=u.collection(N).id();return b.get(L)},betweennessNormalized:function(N){if(m==0)return 0;var L=u.collection(N).id();return b.get(L)/m}};return k.betweennessNormalised=k.betweennessNormalized,k}};ict.bc=ict.betweennessCentrality;var ERi=Nm({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),xRi=function(t){return ERi(t)},SRi=function(t,r){for(var a=0,s=0;s<r.length;s++)a+=r[s](t);return a},TRi=function(t,r,a){for(var s=0;s<r;s++)t[s*r+s]=a},kHn=function(t,r){for(var a,s=0;s<r;s++){a=0;for(var o=0;o<r;o++)a+=t[o*r+s];for(var u=0;u<r;u++)t[u*r+s]=t[u*r+s]/a}},CRi=function(t,r,a){for(var s=new Array(a*a),o=0;o<a;o++){for(var u=0;u<a;u++)s[o*a+u]=0;for(var h=0;h<a;h++)for(var f=0;f<a;f++)s[o*a+f]+=t[o*a+h]*r[h*a+f]}return s},ARi=function(t,r,a){for(var s=t.slice(0),o=1;o<a;o++)t=CRi(t,s,r);return t},kRi=function(t,r,a){for(var s=new Array(r*r),o=0;o<r*r;o++)s[o]=Math.pow(t[o],a);return kHn(s,r),s},RRi=function(t,r,a,s){for(var o=0;o<a;o++){var u=Math.round(t[o]*Math.pow(10,s))/Math.pow(10,s),h=Math.round(r[o]*Math.pow(10,s))/Math.pow(10,s);if(u!==h)return!1}return!0},IRi=function(t,r,a,s){for(var o=[],u=0;u<r;u++){for(var h=[],f=0;f<r;f++)Math.round(t[u*r+f]*1e3)/1e3>0&&h.push(a[f]);h.length!==0&&o.push(s.collection(h))}return o},NRi=function(t,r){for(var a=0;a<t.length;a++)if(!r[a]||t[a].id()!==r[a].id())return!1;return!0},ORi=function(t){for(var r=0;r<t.length;r++)for(var a=0;a<t.length;a++)r!=a&&NRi(t[r],t[a])&&t.splice(a,1);return t},fEn=function(t){for(var r=this.nodes(),a=this.edges(),s=this.cy(),o=xRi(t),u={},h=0;h<r.length;h++)u[r[h].id()]=h;for(var f=r.length,p=f*f,m=new Array(p),b,_=0;_<p;_++)m[_]=0;for(var w=0;w<a.length;w++){var S=a[w],C=u[S.source().id()],A=u[S.target().id()],k=SRi(S,o.attributes);m[C*f+A]+=k,m[A*f+C]+=k}TRi(m,f,o.multFactor),kHn(m,f);for(var I=!0,N=0;I&&N<o.maxIterations;)I=!1,b=ARi(m,f,o.expandFactor),m=kRi(b,f,o.inflateFactor),RRi(m,b,p,4)||(I=!0),N++;var L=IRi(m,f,r,s);return L=ORi(L),L},LRi={markovClustering:fEn,mcl:fEn},DRi=function(t){return t},RHn=function(t,r){return Math.abs(r-t)},pEn=function(t,r,a){return t+RHn(r,a)},gEn=function(t,r,a){return t+Math.pow(a-r,2)},MRi=function(t){return Math.sqrt(t)},PRi=function(t,r,a){return Math.max(t,RHn(r,a))},eie=function(t,r,a,s,o){for(var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:DRi,h=s,f,p,m=0;m<t;m++)f=r(m),p=a(m),h=o(h,f,p);return u(h)},zj={euclidean:function(t,r,a){return t>=2?eie(t,r,a,0,gEn,MRi):eie(t,r,a,0,pEn)},squaredEuclidean:function(t,r,a){return eie(t,r,a,0,gEn)},manhattan:function(t,r,a){return eie(t,r,a,0,pEn)},max:function(t,r,a){return eie(t,r,a,-1/0,PRi)}};zj["squared-euclidean"]=zj.squaredEuclidean;zj.squaredeuclidean=zj.squaredEuclidean;function ake(e,t,r,a,s,o){var u;return Of(e)?u=e:u=zj[e]||zj.euclidean,t===0&&Of(e)?u(s,o):u(t,r,a,s,o)}var BRi=Nm({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Egt=function(t){return BRi(t)},V3e=function(t,r,a,s,o){var u=o!=="kMedoids",h=u?function(b){return a[b]}:function(b){return s[b](a)},f=function(_){return s[_](r)},p=a,m=r;return ake(t,s.length,h,f,p,m)},ort=function(t,r,a){for(var s=a.length,o=new Array(s),u=new Array(s),h=new Array(r),f=null,p=0;p<s;p++)o[p]=t.min(a[p]).value,u[p]=t.max(a[p]).value;for(var m=0;m<r;m++){f=[];for(var b=0;b<s;b++)f[b]=Math.random()*(u[b]-o[b])+o[b];h[m]=f}return h},IHn=function(t,r,a,s,o){for(var u=1/0,h=0,f=0;f<r.length;f++){var p=V3e(a,t,r[f],s,o);p<u&&(u=p,h=f)}return h},NHn=function(t,r,a){for(var s=[],o=null,u=0;u<r.length;u++)o=r[u],a[o.id()]===t&&s.push(o);return s},FRi=function(t,r,a){return Math.abs(r-t)<=a},$Ri=function(t,r,a){for(var s=0;s<t.length;s++)for(var o=0;o<t[s].length;o++){var u=Math.abs(t[s][o]-r[s][o]);if(u>a)return!1}return!0},URi=function(t,r,a){for(var s=0;s<a;s++)if(t===r[s])return!0;return!1},mEn=function(t,r){var a=new Array(r);if(t.length<50)for(var s=0;s<r;s++){for(var o=t[Math.floor(Math.random()*t.length)];URi(o,a,s);)o=t[Math.floor(Math.random()*t.length)];a[s]=o}else for(var u=0;u<r;u++)a[u]=t[Math.floor(Math.random()*t.length)];return a},bEn=function(t,r,a){for(var s=0,o=0;o<r.length;o++)s+=V3e("manhattan",r[o],t,a,"kMedoids");return s},zRi=function(t){var r=this.cy(),a=this.nodes(),s=null,o=Egt(t),u=new Array(o.k),h={},f;o.testMode?typeof o.testCentroids=="number"?(o.testCentroids,f=ort(a,o.k,o.attributes)):Dp(o.testCentroids)==="object"?f=o.testCentroids:f=ort(a,o.k,o.attributes):f=ort(a,o.k,o.attributes);for(var p=!0,m=0;p&&m<o.maxIterations;){for(var b=0;b<a.length;b++)s=a[b],h[s.id()]=IHn(s,f,o.distance,o.attributes,"kMeans");p=!1;for(var _=0;_<o.k;_++){var w=NHn(_,a,h);if(w.length!==0){for(var S=o.attributes.length,C=f[_],A=new Array(S),k=new Array(S),I=0;I<S;I++){k[I]=0;for(var N=0;N<w.length;N++)s=w[N],k[I]+=o.attributes[I](s);A[I]=k[I]/w.length,FRi(A[I],C[I],o.sensitivityThreshold)||(p=!0)}f[_]=A,u[_]=r.collection(w)}}m++}return u},GRi=function(t){var r=this.cy(),a=this.nodes(),s=null,o=Egt(t),u=new Array(o.k),h,f={},p,m=new Array(o.k);o.testMode?typeof o.testCentroids=="number"||(Dp(o.testCentroids)==="object"?h=o.testCentroids:h=mEn(a,o.k)):h=mEn(a,o.k);for(var b=!0,_=0;b&&_<o.maxIterations;){for(var w=0;w<a.length;w++)s=a[w],f[s.id()]=IHn(s,h,o.distance,o.attributes,"kMedoids");b=!1;for(var S=0;S<h.length;S++){var C=NHn(S,a,f);if(C.length!==0){m[S]=bEn(h[S],C,o.attributes);for(var A=0;A<C.length;A++)p=bEn(C[A],C,o.attributes),p<m[S]&&(m[S]=p,h[S]=C[A],b=!0);u[S]=r.collection(C)}}_++}return u},qRi=function(t,r,a,s,o){for(var u,h,f=0;f<r.length;f++)for(var p=0;p<t.length;p++)s[f][p]=Math.pow(a[f][p],o.m);for(var m=0;m<t.length;m++)for(var b=0;b<o.attributes.length;b++){u=0,h=0;for(var _=0;_<r.length;_++)u+=s[_][m]*o.attributes[b](r[_]),h+=s[_][m];t[m][b]=u/h}},HRi=function(t,r,a,s,o){for(var u=0;u<t.length;u++)r[u]=t[u].slice();for(var h,f,p,m=2/(o.m-1),b=0;b<a.length;b++)for(var _=0;_<s.length;_++){h=0;for(var w=0;w<a.length;w++)f=V3e(o.distance,s[_],a[b],o.attributes,"cmeans"),p=V3e(o.distance,s[_],a[w],o.attributes,"cmeans"),h+=Math.pow(f/p,m);t[_][b]=1/h}},VRi=function(t,r,a,s){for(var o=new Array(a.k),u=0;u<o.length;u++)o[u]=[];for(var h,f,p=0;p<r.length;p++){h=-1/0,f=-1;for(var m=0;m<r[0].length;m++)r[p][m]>h&&(h=r[p][m],f=m);o[f].push(t[p])}for(var b=0;b<o.length;b++)o[b]=s.collection(o[b]);return o},yEn=function(t){var r=this.cy(),a=this.nodes(),s=Egt(t),o,u,h,f,p;f=new Array(a.length);for(var m=0;m<a.length;m++)f[m]=new Array(s.k);h=new Array(a.length);for(var b=0;b<a.length;b++)h[b]=new Array(s.k);for(var _=0;_<a.length;_++){for(var w=0,S=0;S<s.k;S++)h[_][S]=Math.random(),w+=h[_][S];for(var C=0;C<s.k;C++)h[_][C]=h[_][C]/w}u=new Array(s.k);for(var A=0;A<s.k;A++)u[A]=new Array(s.attributes.length);p=new Array(a.length);for(var k=0;k<a.length;k++)p[k]=new Array(s.k);for(var I=!0,N=0;I&&N<s.maxIterations;)I=!1,qRi(u,a,h,p,s),HRi(h,f,u,a,s),$Ri(h,f,s.sensitivityThreshold)||(I=!0),N++;return o=VRi(a,h,s,r),{clusters:o,degreeOfMembership:h}},YRi={kMeans:zRi,kMedoids:GRi,fuzzyCMeans:yEn,fcm:yEn},jRi=Nm({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),WRi={single:"min",complete:"max"},KRi=function(t){var r=jRi(t),a=WRi[r.linkage];return a!=null&&(r.linkage=a),r},vEn=function(t,r,a,s,o){for(var u=0,h=1/0,f,p=o.attributes,m=function($,G){return ake(o.distance,p.length,function(B){return p[B]($)},function(B){return p[B](G)},$,G)},b=0;b<t.length;b++){var _=t[b].key,w=a[_][s[_]];w<h&&(u=_,h=w)}if(o.mode==="threshold"&&h>=o.threshold||o.mode==="dendrogram"&&t.length===1)return!1;var S=r[u],C=r[s[u]],A;o.mode==="dendrogram"?A={left:S,right:C,key:S.key}:A={value:S.value.concat(C.value),key:S.key},t[S.index]=A,t.splice(C.index,1),r[S.key]=A;for(var k=0;k<t.length;k++){var I=t[k];S.key===I.key?f=1/0:o.linkage==="min"?(f=a[S.key][I.key],a[S.key][I.key]>a[C.key][I.key]&&(f=a[C.key][I.key])):o.linkage==="max"?(f=a[S.key][I.key],a[S.key][I.key]<a[C.key][I.key]&&(f=a[C.key][I.key])):o.linkage==="mean"?f=(a[S.key][I.key]*S.size+a[C.key][I.key]*C.size)/(S.size+C.size):o.mode==="dendrogram"?f=m(I.value,S.value):f=m(I.value[0],S.value[0]),a[S.key][I.key]=a[I.key][S.key]=f}for(var N=0;N<t.length;N++){var L=t[N].key;if(s[L]===S.key||s[L]===C.key){for(var P=L,M=0;M<t.length;M++){var F=t[M].key;a[L][F]<a[L][P]&&(P=F)}s[L]=P}t[N].index=N}return S.key=C.key=S.index=C.index=null,!0},DV=function(t,r,a){t&&(t.value?r.push(t.value):(t.left&&DV(t.left,r),t.right&&DV(t.right,r)))},act=function(t,r){if(!t)return"";if(t.left&&t.right){var a=act(t.left,r),s=act(t.right,r),o=r.add({group:"nodes",data:{id:a+","+s}});return r.add({group:"edges",data:{source:a,target:o.id()}}),r.add({group:"edges",data:{source:s,target:o.id()}}),o.id()}else if(t.value)return t.value.id()},sct=function(t,r,a){if(!t)return[];var s=[],o=[],u=[];return r===0?(t.left&&DV(t.left,s),t.right&&DV(t.right,o),u=s.concat(o),[a.collection(u)]):r===1?t.value?[a.collection(t.value)]:(t.left&&DV(t.left,s),t.right&&DV(t.right,o),[a.collection(s),a.collection(o)]):t.value?[a.collection(t.value)]:(t.left&&(s=sct(t.left,r-1,a)),t.right&&(o=sct(t.right,r-1,a)),s.concat(o))},_En=function(t){for(var r=this.cy(),a=this.nodes(),s=KRi(t),o=s.attributes,u=function(N,L){return ake(s.distance,o.length,function(P){return o[P](N)},function(P){return o[P](L)},N,L)},h=[],f=[],p=[],m=[],b=0;b<a.length;b++){var _={value:s.mode==="dendrogram"?a[b]:[a[b]],key:b,index:b};h[b]=_,m[b]=_,f[b]=[],p[b]=0}for(var w=0;w<h.length;w++)for(var S=0;S<=w;S++){var C=void 0;s.mode==="dendrogram"?C=w===S?1/0:u(h[w].value,h[S].value):C=w===S?1/0:u(h[w].value[0],h[S].value[0]),f[w][S]=C,f[S][w]=C,C<f[w][p[w]]&&(p[w]=S)}for(var A=vEn(h,m,f,p,s);A;)A=vEn(h,m,f,p,s);var k;return s.mode==="dendrogram"?(k=sct(h[0],s.dendrogramDepth,r),s.addDendrogram&&act(h[0],r)):(k=new Array(h.length),h.forEach(function(I,N){I.key=I.index=null,k[N]=r.collection(I.value)})),k},XRi={hierarchicalClustering:_En,hca:_En},QRi=Nm({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),ZRi=function(t){var r=t.damping,a=t.preference;.5<=r&&r<1||jd("Damping must range on [0.5, 1).  Got: ".concat(r));var s=["median","mean","min","max"];return s.some(function(o){return o===a})||aa(a)||jd("Preference must be one of [".concat(s.map(function(o){return"'".concat(o,"'")}).join(", "),"] or a number.  Got: ").concat(a)),QRi(t)},JRi=function(t,r,a,s){var o=function(h,f){return s[f](h)};return-ake(t,s.length,function(u){return o(r,u)},function(u){return o(a,u)},r,a)},e8i=function(t,r){var a=null;return r==="median"?a=Z7i(t):r==="mean"?a=Q7i(t):r==="min"?a=K7i(t):r==="max"?a=X7i(t):a=r,a},t8i=function(t,r,a){for(var s=[],o=0;o<t;o++)r[o*t+o]+a[o*t+o]>0&&s.push(o);return s},wEn=function(t,r,a){for(var s=[],o=0;o<t;o++){for(var u=-1,h=-1/0,f=0;f<a.length;f++){var p=a[f];r[o*t+p]>h&&(u=p,h=r[o*t+p])}u>0&&s.push(u)}for(var m=0;m<a.length;m++)s[a[m]]=a[m];return s},n8i=function(t,r,a){for(var s=wEn(t,r,a),o=0;o<a.length;o++){for(var u=[],h=0;h<s.length;h++)s[h]===a[o]&&u.push(h);for(var f=-1,p=-1/0,m=0;m<u.length;m++){for(var b=0,_=0;_<u.length;_++)b+=r[u[_]*t+u[m]];b>p&&(f=m,p=b)}a[o]=u[f]}return s=wEn(t,r,a),s},EEn=function(t){for(var r=this.cy(),a=this.nodes(),s=ZRi(t),o={},u=0;u<a.length;u++)o[a[u].id()]=u;var h,f,p,m,b,_;h=a.length,f=h*h,p=new Array(f);for(var w=0;w<f;w++)p[w]=-1/0;for(var S=0;S<h;S++)for(var C=0;C<h;C++)S!==C&&(p[S*h+C]=JRi(s.distance,a[S],a[C],s.attributes));m=e8i(p,s.preference);for(var A=0;A<h;A++)p[A*h+A]=m;b=new Array(f);for(var k=0;k<f;k++)b[k]=0;_=new Array(f);for(var I=0;I<f;I++)_[I]=0;for(var N=new Array(h),L=new Array(h),P=new Array(h),M=0;M<h;M++)N[M]=0,L[M]=0,P[M]=0;for(var F=new Array(h*s.minIterations),U=0;U<F.length;U++)F[U]=0;var $;for($=0;$<s.maxIterations;$++){for(var G=0;G<h;G++){for(var B=-1/0,Z=-1/0,z=-1,Y=0,W=0;W<h;W++)N[W]=b[G*h+W],Y=_[G*h+W]+p[G*h+W],Y>=B?(Z=B,B=Y,z=W):Y>Z&&(Z=Y);for(var Q=0;Q<h;Q++)b[G*h+Q]=(1-s.damping)*(p[G*h+Q]-B)+s.damping*N[Q];b[G*h+z]=(1-s.damping)*(p[G*h+z]-Z)+s.damping*N[z]}for(var V=0;V<h;V++){for(var j=0,ee=0;ee<h;ee++)N[ee]=_[ee*h+V],L[ee]=Math.max(0,b[ee*h+V]),j+=L[ee];j-=L[V],L[V]=b[V*h+V],j+=L[V];for(var te=0;te<h;te++)_[te*h+V]=(1-s.damping)*Math.min(0,j-L[te])+s.damping*N[te];_[V*h+V]=(1-s.damping)*(j-L[V])+s.damping*N[V]}for(var ne=0,se=0;se<h;se++){var ie=_[se*h+se]+b[se*h+se]>0?1:0;F[$%s.minIterations*h+se]=ie,ne+=ie}if(ne>0&&($>=s.minIterations-1||$==s.maxIterations-1)){for(var ge=0,ce=0;ce<h;ce++){P[ce]=0;for(var be=0;be<s.minIterations;be++)P[ce]+=F[be*h+ce];(P[ce]===0||P[ce]===s.minIterations)&&ge++}if(ge===h)break}}for(var ve=t8i(h,b,_),De=n8i(h,p,ve),ye={},Ee=0;Ee<ve.length;Ee++)ye[ve[Ee]]=[];for(var he=0;he<a.length;he++){var we=o[a[he].id()],Ce=De[we];Ce!=null&&ye[Ce].push(a[he])}for(var Ie=new Array(ve.length),Le=0;Le<ve.length;Le++)Ie[Le]=r.collection(ye[ve[Le]]);return Ie},r8i={affinityPropagation:EEn,ap:EEn},i8i=Nm({root:void 0,directed:!1}),a8i={hierholzer:function(t){if(!Vc(t)){var r=arguments;t={root:r[0],directed:r[1]}}var a=i8i(t),s=a.root,o=a.directed,u=this,h=!1,f,p,m;s&&(m=Ns(s)?this.filter(s)[0].id():s[0].id());var b={},_={};o?u.forEach(function(I){var N=I.id();if(I.isNode()){var L=I.indegree(!0),P=I.outdegree(!0),M=L-P,F=P-L;M==1?f?h=!0:f=N:F==1?p?h=!0:p=N:(F>1||M>1)&&(h=!0),b[N]=[],I.outgoers().forEach(function(U){U.isEdge()&&b[N].push(U.id())})}else _[N]=[void 0,I.target().id()]}):u.forEach(function(I){var N=I.id();if(I.isNode()){var L=I.degree(!0);L%2&&(f?p?h=!0:p=N:f=N),b[N]=[],I.connectedEdges().forEach(function(P){return b[N].push(P.id())})}else _[N]=[I.source().id(),I.target().id()]});var w={found:!1,trail:void 0};if(h)return w;if(p&&f)if(o){if(m&&p!=m)return w;m=p}else{if(m&&p!=m&&f!=m)return w;m||(m=p)}else m||(m=u[0].id());var S=function(N){for(var L=N,P=[N],M,F,U;b[L].length;)M=b[L].shift(),F=_[M][0],U=_[M][1],L!=U?(b[U]=b[U].filter(function($){return $!=M}),L=U):!o&&L!=F&&(b[F]=b[F].filter(function($){return $!=M}),L=F),P.unshift(M),P.unshift(L);return P},C=[],A=[];for(A=S(m);A.length!=1;)b[A[0]].length==0?(C.unshift(u.getElementById(A.shift())),C.unshift(u.getElementById(A.shift()))):A=S(A.shift()).concat(A);C.unshift(u.getElementById(A.shift()));for(var k in b)if(b[k].length)return w;return w.found=!0,w.trail=this.spawn(C,!0),w}},Owe=function(){var t=this,r={},a=0,s=0,o=[],u=[],h={},f=function(_,w){for(var S=u.length-1,C=[],A=t.spawn();u[S].x!=_||u[S].y!=w;)C.push(u.pop().edge),S--;C.push(u.pop().edge),C.forEach(function(k){var I=k.connectedNodes().intersection(t);A.merge(k),I.forEach(function(N){var L=N.id(),P=N.connectedEdges().intersection(t);A.merge(N),r[L].cutVertex?A.merge(P.filter(function(M){return M.isLoop()})):A.merge(P)})}),o.push(A)},p=function(_,w,S){_===S&&(s+=1),r[w]={id:a,low:a++,cutVertex:!1};var C=t.getElementById(w).connectedEdges().intersection(t);if(C.size()===0)o.push(t.spawn(t.getElementById(w)));else{var A,k,I,N;C.forEach(function(L){A=L.source().id(),k=L.target().id(),I=A===w?k:A,I!==S&&(N=L.id(),h[N]||(h[N]=!0,u.push({x:w,y:I,edge:L})),I in r?r[w].low=Math.min(r[w].low,r[I].id):(p(_,I,w),r[w].low=Math.min(r[w].low,r[I].low),r[w].id<=r[I].low&&(r[w].cutVertex=!0,f(w,I))))})}};t.forEach(function(b){if(b.isNode()){var _=b.id();_ in r||(s=0,p(_,_),r[_].cutVertex=s>1)}});var m=Object.keys(r).filter(function(b){return r[b].cutVertex}).map(function(b){return t.getElementById(b)});return{cut:t.spawn(m),components:o}},s8i={hopcroftTarjanBiconnected:Owe,htbc:Owe,htb:Owe,hopcroftTarjanBiconnectedComponents:Owe},Lwe=function(){var t=this,r={},a=0,s=[],o=[],u=t.spawn(t),h=function(p){o.push(p),r[p]={index:a,low:a++,explored:!1};var m=t.getElementById(p).connectedEdges().intersection(t);if(m.forEach(function(C){var A=C.target().id();A!==p&&(A in r||h(A),r[A].explored||(r[p].low=Math.min(r[p].low,r[A].low)))}),r[p].index===r[p].low){for(var b=t.spawn();;){var _=o.pop();if(b.merge(t.getElementById(_)),r[_].low=r[p].index,r[_].explored=!0,_===p)break}var w=b.edgesWith(b),S=b.merge(w);s.push(S),u=u.difference(S)}};return t.forEach(function(f){if(f.isNode()){var p=f.id();p in r||h(p)}}),{cut:u,components:s}},o8i={tarjanStronglyConnected:Lwe,tsc:Lwe,tscc:Lwe,tarjanStronglyConnectedComponents:Lwe},OHn={};[qoe,B7i,F7i,U7i,G7i,H7i,j7i,_Ri,nY,rY,ict,LRi,YRi,XRi,r8i,a8i,s8i,o8i].forEach(function(e){eo(OHn,e)});/*!
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 LHn=0,DHn=1,MHn=2,lT=function(t){if(!(this instanceof lT))return new lT(t);this.id="Thenable/1.0.7",this.state=LHn,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof t=="function"&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};lT.prototype={fulfill:function(t){return xEn(this,DHn,"fulfillValue",t)},reject:function(t){return xEn(this,MHn,"rejectReason",t)},then:function(t,r){var a=this,s=new lT;return a.onFulfilled.push(TEn(t,s,"fulfill")),a.onRejected.push(TEn(r,s,"reject")),PHn(a),s.proxy}};var xEn=function(t,r,a,s){return t.state===LHn&&(t.state=r,t[a]=s,PHn(t)),t},PHn=function(t){t.state===DHn?SEn(t,"onFulfilled",t.fulfillValue):t.state===MHn&&SEn(t,"onRejected",t.rejectReason)},SEn=function(t,r,a){if(t[r].length!==0){var s=t[r];t[r]=[];var o=function(){for(var h=0;h<s.length;h++)s[h](a)};typeof setImmediate=="function"?setImmediate(o):setTimeout(o,0)}},TEn=function(t,r,a){return function(s){if(typeof t!="function")r[a].call(r,s);else{var o;try{o=t(s)}catch(u){r.reject(u);return}BHn(r,o)}}},BHn=function(t,r){if(t===r||t.proxy===r){t.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(Dp(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(o){t.reject(o);return}if(typeof a=="function"){var s=!1;try{a.call(r,function(o){s||(s=!0,o===r?t.reject(new TypeError("circular thenable chain")):BHn(t,o))},function(o){s||(s=!0,t.reject(o))})}catch(o){s||t.reject(o)}return}t.fulfill(r)};lT.all=function(e){return new lT(function(t,r){for(var a=new Array(e.length),s=0,o=function(f,p){a[f]=p,s++,s===e.length&&t(a)},u=0;u<e.length;u++)(function(h){var f=e[h],p=f!=null&&f.then!=null;if(p)f.then(function(b){o(h,b)},function(b){r(b)});else{var m=f;o(h,m)}})(u)})};lT.resolve=function(e){return new lT(function(t,r){t(e)})};lT.reject=function(e){return new lT(function(t,r){r(e)})};var KW=typeof Promise<"u"?Promise:lT,oct=function(t,r,a){var s=dgt(t),o=!s,u=this._private=eo({duration:1e3},r,a);if(u.target=t,u.style=u.style||u.css,u.started=!1,u.playing=!1,u.hooked=!1,u.applying=!1,u.progress=0,u.completes=[],u.frames=[],u.complete&&Of(u.complete)&&u.completes.push(u.complete),o){var h=t.position();u.startPosition=u.startPosition||{x:h.x,y:h.y},u.startStyle=u.startStyle||t.cy().style().getAnimationStartStyle(t,u.style)}if(s){var f=t.pan();u.startPan={x:f.x,y:f.y},u.startZoom=t.zoom()}this.length=1,this[0]=this},QF=oct.prototype;eo(QF,{instanceString:function(){return"animation"},hook:function(){var t=this._private;if(!t.hooked){var r,a=t.target._private.animation;t.queue?r=a.queue:r=a.current,r.push(this),Bw(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}return this},play:function(){var t=this._private;return t.progress===1&&(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 r=this._private;return t===void 0?r.progress*r.duration:this.progress(t/r.duration)},progress:function(t){var r=this._private,a=r.playing;return t===void 0?r.progress:(a&&this.pause(),r.progress=t,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var t=this._private,r=t.playing;r&&this.pause(),t.progress=1-t.progress,t.started=!1;var a=function(p,m){var b=t[p];b!=null&&(t[p]=t[m],t[m]=b)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),t.style)for(var s=0;s<t.style.length;s++){var o=t.style[s],u=o.name,h=t.startStyle[u];t.startStyle[u]=o,t.style[s]=h}return r&&this.play(),this},promise:function(t){var r=this._private,a;switch(t){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new KW(function(s,o){a.push(function(){s()})})}});QF.complete=QF.completed;QF.run=QF.play;QF.running=QF.playing;var l8i={animated:function(){return function(){var r=this,a=r.length!==void 0,s=a?r:[r],o=this._private.cy||this;if(!o.styleEnabled())return!1;var u=s[0];if(u)return u._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,s=a?r:[r],o=this._private.cy||this;if(!o.styleEnabled())return this;for(var u=0;u<s.length;u++){var h=s[u];h._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var s=this._private.cy||this;return s.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var s=this._private.cy||this;return s.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var s=this,o=s.length!==void 0,u=o?s:[s],h=this._private.cy||this,f=!o,p=!f;if(!h.styleEnabled())return this;var m=h.style();r=eo({},r,a);var b=Object.keys(r).length===0;if(b)return new oct(u[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(p&&(r.style=m.getPropsList(r.style||r.css),r.css=void 0),p&&r.renderedPosition!=null){var _=r.renderedPosition,w=h.pan(),S=h.zoom();r.position=EHn(_,S,w)}if(f&&r.panBy!=null){var C=r.panBy,A=h.pan();r.pan={x:A.x+C.x,y:A.y+C.y}}var k=r.center||r.centre;if(f&&k!=null){var I=h.getCenterPan(k.eles,r.zoom);I!=null&&(r.pan=I)}if(f&&r.fit!=null){var N=r.fit,L=h.getFitViewport(N.eles||N.boundingBox,N.padding);L!=null&&(r.pan=L.pan,r.zoom=L.zoom)}if(f&&Vc(r.zoom)){var P=h.getZoomedViewport(r.zoom);P!=null?(P.zoomed&&(r.zoom=P.zoom),P.panned&&(r.pan=P.pan)):r.zoom=null}return new oct(u[0],r)}},animate:function(){return function(r,a){var s=this,o=s.length!==void 0,u=o?s:[s],h=this._private.cy||this;if(!h.styleEnabled())return this;a&&(r=eo({},r,a));for(var f=0;f<u.length;f++){var p=u[f],m=p.animated()&&(r.queue===void 0||r.queue),b=p.animation(r,m?{queue:!0}:void 0);b.play()}return this}},stop:function(){return function(r,a){var s=this,o=s.length!==void 0,u=o?s:[s],h=this._private.cy||this;if(!h.styleEnabled())return this;for(var f=0;f<u.length;f++){for(var p=u[f],m=p._private,b=m.animation.current,_=0;_<b.length;_++){var w=b[_],S=w._private;a&&(S.duration=0)}r&&(m.animation.queue=[]),a||(m.animation.current=[])}return h.notify("draw"),this}}},lrt,CEn;function ske(){if(CEn)return lrt;CEn=1;var e=Array.isArray;return lrt=e,lrt}var crt,AEn;function c8i(){if(AEn)return crt;AEn=1;var e=ske(),t=Tce(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(o,u){if(e(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||t(o)?!0:a.test(o)||!r.test(o)||u!=null&&o in Object(u)}return crt=s,crt}var urt,kEn;function u8i(){if(kEn)return urt;kEn=1;var e=fHn(),t=Sce(),r="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",o="[object Proxy]";function u(h){if(!t(h))return!1;var f=e(h);return f==a||f==s||f==r||f==o}return urt=u,urt}var hrt,REn;function h8i(){if(REn)return hrt;REn=1;var e=nke(),t=e["__core-js_shared__"];return hrt=t,hrt}var drt,IEn;function d8i(){if(IEn)return drt;IEn=1;var e=h8i(),t=function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function r(a){return!!t&&t in a}return drt=r,drt}var frt,NEn;function f8i(){if(NEn)return frt;NEn=1;var e=Function.prototype,t=e.toString;function r(a){if(a!=null){try{return t.call(a)}catch{}try{return a+""}catch{}}return""}return frt=r,frt}var prt,OEn;function p8i(){if(OEn)return prt;OEn=1;var e=u8i(),t=d8i(),r=Sce(),a=f8i(),s=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,f=u.toString,p=h.hasOwnProperty,m=RegExp("^"+f.call(p).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(_){if(!r(_)||t(_))return!1;var w=e(_)?m:o;return w.test(a(_))}return prt=b,prt}var grt,LEn;function g8i(){if(LEn)return grt;LEn=1;function e(t,r){return t==null?void 0:t[r]}return grt=e,grt}var mrt,DEn;function xgt(){if(DEn)return mrt;DEn=1;var e=p8i(),t=g8i();function r(a,s){var o=t(a,s);return e(o)?o:void 0}return mrt=r,mrt}var brt,MEn;function oke(){if(MEn)return brt;MEn=1;var e=xgt(),t=e(Object,"create");return brt=t,brt}var yrt,PEn;function m8i(){if(PEn)return yrt;PEn=1;var e=oke();function t(){this.__data__=e?e(null):{},this.size=0}return yrt=t,yrt}var vrt,BEn;function b8i(){if(BEn)return vrt;BEn=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return vrt=e,vrt}var _rt,FEn;function y8i(){if(FEn)return _rt;FEn=1;var e=oke(),t="__lodash_hash_undefined__",r=Object.prototype,a=r.hasOwnProperty;function s(o){var u=this.__data__;if(e){var h=u[o];return h===t?void 0:h}return a.call(u,o)?u[o]:void 0}return _rt=s,_rt}var wrt,$En;function v8i(){if($En)return wrt;$En=1;var e=oke(),t=Object.prototype,r=t.hasOwnProperty;function a(s){var o=this.__data__;return e?o[s]!==void 0:r.call(o,s)}return wrt=a,wrt}var Ert,UEn;function _8i(){if(UEn)return Ert;UEn=1;var e=oke(),t="__lodash_hash_undefined__";function r(a,s){var o=this.__data__;return this.size+=this.has(a)?0:1,o[a]=e&&s===void 0?t:s,this}return Ert=r,Ert}var xrt,zEn;function w8i(){if(zEn)return xrt;zEn=1;var e=m8i(),t=b8i(),r=y8i(),a=v8i(),s=_8i();function o(u){var h=-1,f=u==null?0:u.length;for(this.clear();++h<f;){var p=u[h];this.set(p[0],p[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=a,o.prototype.set=s,xrt=o,xrt}var Srt,GEn;function E8i(){if(GEn)return Srt;GEn=1;function e(){this.__data__=[],this.size=0}return Srt=e,Srt}var Trt,qEn;function FHn(){if(qEn)return Trt;qEn=1;function e(t,r){return t===r||t!==t&&r!==r}return Trt=e,Trt}var Crt,HEn;function lke(){if(HEn)return Crt;HEn=1;var e=FHn();function t(r,a){for(var s=r.length;s--;)if(e(r[s][0],a))return s;return-1}return Crt=t,Crt}var Art,VEn;function x8i(){if(VEn)return Art;VEn=1;var e=lke(),t=Array.prototype,r=t.splice;function a(s){var o=this.__data__,u=e(o,s);if(u<0)return!1;var h=o.length-1;return u==h?o.pop():r.call(o,u,1),--this.size,!0}return Art=a,Art}var krt,YEn;function S8i(){if(YEn)return krt;YEn=1;var e=lke();function t(r){var a=this.__data__,s=e(a,r);return s<0?void 0:a[s][1]}return krt=t,krt}var Rrt,jEn;function T8i(){if(jEn)return Rrt;jEn=1;var e=lke();function t(r){return e(this.__data__,r)>-1}return Rrt=t,Rrt}var Irt,WEn;function C8i(){if(WEn)return Irt;WEn=1;var e=lke();function t(r,a){var s=this.__data__,o=e(s,r);return o<0?(++this.size,s.push([r,a])):s[o][1]=a,this}return Irt=t,Irt}var Nrt,KEn;function A8i(){if(KEn)return Nrt;KEn=1;var e=E8i(),t=x8i(),r=S8i(),a=T8i(),s=C8i();function o(u){var h=-1,f=u==null?0:u.length;for(this.clear();++h<f;){var p=u[h];this.set(p[0],p[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=a,o.prototype.set=s,Nrt=o,Nrt}var Ort,XEn;function k8i(){if(XEn)return Ort;XEn=1;var e=xgt(),t=nke(),r=e(t,"Map");return Ort=r,Ort}var Lrt,QEn;function R8i(){if(QEn)return Lrt;QEn=1;var e=w8i(),t=A8i(),r=k8i();function a(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Lrt=a,Lrt}var Drt,ZEn;function I8i(){if(ZEn)return Drt;ZEn=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Drt=e,Drt}var Mrt,JEn;function cke(){if(JEn)return Mrt;JEn=1;var e=I8i();function t(r,a){var s=r.__data__;return e(a)?s[typeof a=="string"?"string":"hash"]:s.map}return Mrt=t,Mrt}var Prt,exn;function N8i(){if(exn)return Prt;exn=1;var e=cke();function t(r){var a=e(this,r).delete(r);return this.size-=a?1:0,a}return Prt=t,Prt}var Brt,txn;function O8i(){if(txn)return Brt;txn=1;var e=cke();function t(r){return e(this,r).get(r)}return Brt=t,Brt}var Frt,nxn;function L8i(){if(nxn)return Frt;nxn=1;var e=cke();function t(r){return e(this,r).has(r)}return Frt=t,Frt}var $rt,rxn;function D8i(){if(rxn)return $rt;rxn=1;var e=cke();function t(r,a){var s=e(this,r),o=s.size;return s.set(r,a),this.size+=s.size==o?0:1,this}return $rt=t,$rt}var Urt,ixn;function M8i(){if(ixn)return Urt;ixn=1;var e=R8i(),t=N8i(),r=O8i(),a=L8i(),s=D8i();function o(u){var h=-1,f=u==null?0:u.length;for(this.clear();++h<f;){var p=u[h];this.set(p[0],p[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=a,o.prototype.set=s,Urt=o,Urt}var zrt,axn;function P8i(){if(axn)return zrt;axn=1;var e=M8i(),t="Expected a function";function r(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(t);var o=function(){var u=arguments,h=s?s.apply(this,u):u[0],f=o.cache;if(f.has(h))return f.get(h);var p=a.apply(this,u);return o.cache=f.set(h,p)||f,p};return o.cache=new(r.Cache||e),o}return r.Cache=e,zrt=r,zrt}var Grt,sxn;function B8i(){if(sxn)return Grt;sxn=1;var e=P8i(),t=500;function r(a){var s=e(a,function(u){return o.size===t&&o.clear(),u}),o=s.cache;return s}return Grt=r,Grt}var qrt,oxn;function $Hn(){if(oxn)return qrt;oxn=1;var e=B8i(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=e(function(s){var o=[];return s.charCodeAt(0)===46&&o.push(""),s.replace(t,function(u,h,f,p){o.push(f?p.replace(r,"$1"):h||u)}),o});return qrt=a,qrt}var Hrt,lxn;function UHn(){if(lxn)return Hrt;lxn=1;function e(t,r){for(var a=-1,s=t==null?0:t.length,o=Array(s);++a<s;)o[a]=r(t[a],a,t);return o}return Hrt=e,Hrt}var Vrt,cxn;function F8i(){if(cxn)return Vrt;cxn=1;var e=pgt(),t=UHn(),r=ske(),a=Tce(),s=e?e.prototype:void 0,o=s?s.toString:void 0;function u(h){if(typeof h=="string")return h;if(r(h))return t(h,u)+"";if(a(h))return o?o.call(h):"";var f=h+"";return f=="0"&&1/h==-1/0?"-0":f}return Vrt=u,Vrt}var Yrt,uxn;function zHn(){if(uxn)return Yrt;uxn=1;var e=F8i();function t(r){return r==null?"":e(r)}return Yrt=t,Yrt}var jrt,hxn;function GHn(){if(hxn)return jrt;hxn=1;var e=ske(),t=c8i(),r=$Hn(),a=zHn();function s(o,u){return e(o)?o:t(o,u)?[o]:r(a(o))}return jrt=s,jrt}var Wrt,dxn;function Sgt(){if(dxn)return Wrt;dxn=1;var e=Tce();function t(r){if(typeof r=="string"||e(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}return Wrt=t,Wrt}var Krt,fxn;function $8i(){if(fxn)return Krt;fxn=1;var e=GHn(),t=Sgt();function r(a,s){s=e(s,a);for(var o=0,u=s.length;a!=null&&o<u;)a=a[t(s[o++])];return o&&o==u?a:void 0}return Krt=r,Krt}var Xrt,pxn;function U8i(){if(pxn)return Xrt;pxn=1;var e=$8i();function t(r,a,s){var o=r==null?void 0:e(r,a);return o===void 0?s:o}return Xrt=t,Xrt}var z8i=U8i(),G8i=xce(z8i),Qrt,gxn;function q8i(){if(gxn)return Qrt;gxn=1;var e=xgt(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Qrt=t,Qrt}var Zrt,mxn;function H8i(){if(mxn)return Zrt;mxn=1;var e=q8i();function t(r,a,s){a=="__proto__"&&e?e(r,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[a]=s}return Zrt=t,Zrt}var Jrt,bxn;function V8i(){if(bxn)return Jrt;bxn=1;var e=H8i(),t=FHn(),r=Object.prototype,a=r.hasOwnProperty;function s(o,u,h){var f=o[u];(!(a.call(o,u)&&t(f,h))||h===void 0&&!(u in o))&&e(o,u,h)}return Jrt=s,Jrt}var eit,yxn;function Y8i(){if(yxn)return eit;yxn=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(a,s){var o=typeof a;return s=s??e,!!s&&(o=="number"||o!="symbol"&&t.test(a))&&a>-1&&a%1==0&&a<s}return eit=r,eit}var tit,vxn;function j8i(){if(vxn)return tit;vxn=1;var e=V8i(),t=GHn(),r=Y8i(),a=Sce(),s=Sgt();function o(u,h,f,p){if(!a(u))return u;h=t(h,u);for(var m=-1,b=h.length,_=b-1,w=u;w!=null&&++m<b;){var S=s(h[m]),C=f;if(S==="__proto__"||S==="constructor"||S==="prototype")return u;if(m!=_){var A=w[S];C=p?p(A,S,w):void 0,C===void 0&&(C=a(A)?A:r(h[m+1])?[]:{})}e(w,S,C),w=w[S]}return u}return tit=o,tit}var nit,_xn;function W8i(){if(_xn)return nit;_xn=1;var e=j8i();function t(r,a,s){return r==null?r:e(r,a,s)}return nit=t,nit}var K8i=W8i(),X8i=xce(K8i),rit,wxn;function Q8i(){if(wxn)return rit;wxn=1;function e(t,r){var a=-1,s=t.length;for(r||(r=Array(s));++a<s;)r[a]=t[a];return r}return rit=e,rit}var iit,Exn;function Z8i(){if(Exn)return iit;Exn=1;var e=UHn(),t=Q8i(),r=ske(),a=Tce(),s=$Hn(),o=Sgt(),u=zHn();function h(f){return r(f)?e(f,o):a(f)?[f]:t(s(u(f)))}return iit=h,iit}var J8i=Z8i(),eIi=xce(J8i),tIi={data:function(t){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(s){},beforeSet:function(s,o){},onSet:function(s){},canSet:function(s){return!0}};return t=eo({},r,t),function(s,o){var u=t,h=this,f=h.length!==void 0,p=f?h:[h],m=f?h[0]:h;if(Ns(s)){var b=s.indexOf(".")!==-1,_=b&&eIi(s);if(u.allowGetting&&o===void 0){var w;return m&&(u.beforeGet(m),_&&m._private[u.field][s]===void 0?w=G8i(m._private[u.field],_):w=m._private[u.field][s]),w}else if(u.allowSetting&&o!==void 0){var S=!u.immutableKeys[s];if(S){var C=rHn({},s,o);u.beforeSet(h,C);for(var A=0,k=p.length;A<k;A++){var I=p[A];u.canSet(I)&&(_&&m._private[u.field][s]===void 0?X8i(I._private[u.field],_,o):I._private[u.field][s]=o)}u.updateStyle&&h.updateStyle(),u.onSet(h),u.settingTriggersEvent&&h[u.triggerFnName](u.settingEvent)}}}else if(u.allowSetting&&Vc(s)){var N=s,L,P,M=Object.keys(N);u.beforeSet(h,N);for(var F=0;F<M.length;F++){L=M[F],P=N[L];var U=!u.immutableKeys[L];if(U)for(var $=0;$<p.length;$++){var G=p[$];u.canSet(G)&&(G._private[u.field][L]=P)}}u.updateStyle&&h.updateStyle(),u.onSet(h),u.settingTriggersEvent&&h[u.triggerFnName](u.settingEvent)}else if(u.allowBinding&&Of(s)){var B=s;h.on(u.bindingEvent,B)}else if(u.allowGetting&&s===void 0){var Z;return m&&(u.beforeGet(m),Z=m._private[u.field]),Z}return h}},removeData:function(t){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return t=eo({},r,t),function(s){var o=t,u=this,h=u.length!==void 0,f=h?u:[u];if(Ns(s)){for(var p=s.split(/\s+/),m=p.length,b=0;b<m;b++){var _=p[b];if(!a9(_)){var w=!o.immutableKeys[_];if(w)for(var S=0,C=f.length;S<C;S++)f[S]._private[o.field][_]=void 0}}o.triggerEvent&&u[o.triggerFnName](o.event)}else if(s===void 0){for(var A=0,k=f.length;A<k;A++)for(var I=f[A]._private[o.field],N=Object.keys(I),L=0;L<N.length;L++){var P=N[L],M=!o.immutableKeys[P];M&&(I[P]=void 0)}o.triggerEvent&&u[o.triggerFnName](o.event)}return u}}},nIi={eventAliasesOn:function(t){var r=t;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,s){var o=this,u=Array.prototype.slice.call(arguments,0);return new KW(function(h,f){var p=function(w){o.off.apply(o,b),h(w)},m=u.concat([p]),b=m.concat([]);o.on.apply(o,m)})}}},Fu={};[l8i,tIi,nIi].forEach(function(e){eo(Fu,e)});var rIi={animate:Fu.animate(),animation:Fu.animation(),animated:Fu.animated(),clearQueue:Fu.clearQueue(),delay:Fu.delay(),delayAnimation:Fu.delayAnimation(),stop:Fu.stop()},xxe={classes:function(t){var r=this;if(t===void 0){var a=[];return r[0]._private.classes.forEach(function(S){return a.push(S)}),a}else Mh(t)||(t=(t||"").match(/\S+/g)||[]);for(var s=[],o=new WW(t),u=0;u<r.length;u++){for(var h=r[u],f=h._private,p=f.classes,m=!1,b=0;b<t.length;b++){var _=t[b],w=p.has(_);if(!w){m=!0;break}}m||(m=p.size!==t.length),m&&(f.classes=o,s.push(h))}return s.length>0&&this.spawn(s).updateStyle().emit("class"),r},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var r=this[0];return r!=null&&r._private.classes.has(t)},toggleClass:function(t,r){Mh(t)||(t=t.match(/\S+/g)||[]);for(var a=this,s=r===void 0,o=[],u=0,h=a.length;u<h;u++)for(var f=a[u],p=f._private.classes,m=!1,b=0;b<t.length;b++){var _=t[b],w=p.has(_),S=!1;r||s&&!w?(p.add(_),S=!0):(!r||s&&w)&&(p.delete(_),S=!0),!m&&S&&(o.push(f),m=!0)}return o.length>0&&this.spawn(o).updateStyle().emit("class"),a},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(t),setTimeout(function(){a.removeClass(t)},r),a}};xxe.className=xxe.classNames=xxe.classes;var Hc={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ip,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Hc.variable="(?:[\\w-.]|(?:\\\\"+Hc.metaChar+"))+";Hc.className="(?:[\\w-]|(?:\\\\"+Hc.metaChar+"))+";Hc.value=Hc.string+"|"+Hc.number;Hc.id=Hc.variable;(function(){var e,t,r;for(e=Hc.comparatorOp.split("|"),r=0;r<e.length;r++)t=e[r],Hc.comparatorOp+="|@"+t;for(e=Hc.comparatorOp.split("|"),r=0;r<e.length;r++)t=e[r],!(t.indexOf("!")>=0)&&t!=="="&&(Hc.comparatorOp+="|\\!"+t)})();var yh=function(){return{checks:[]}},Ua={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},lct=[{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(e,t){return t7i(e.selector,t.selector)}),iIi=function(){for(var e={},t,r=0;r<lct.length;r++)t=lct[r],e[t.selector]=t.matches;return e}(),aIi=function(t,r){return iIi[t](r)},sIi="("+lct.map(function(e){return e.selector}).join("|")+")",YH=function(t){return t.replace(new RegExp("\\\\("+Hc.metaChar+")","g"),function(r,a){return a})},BN=function(t,r,a){t[t.length-1]=a},cct=[{name:"group",query:!0,regex:"("+Hc.group+")",populate:function(t,r,a){var s=S1(a,1),o=s[0];r.checks.push({type:Ua.GROUP,value:o==="*"?o:o+"s"})}},{name:"state",query:!0,regex:sIi,populate:function(t,r,a){var s=S1(a,1),o=s[0];r.checks.push({type:Ua.STATE,value:o})}},{name:"id",query:!0,regex:"\\#("+Hc.id+")",populate:function(t,r,a){var s=S1(a,1),o=s[0];r.checks.push({type:Ua.ID,value:YH(o)})}},{name:"className",query:!0,regex:"\\.("+Hc.className+")",populate:function(t,r,a){var s=S1(a,1),o=s[0];r.checks.push({type:Ua.CLASS,value:YH(o)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+Hc.variable+")\\s*\\]",populate:function(t,r,a){var s=S1(a,1),o=s[0];r.checks.push({type:Ua.DATA_EXIST,field:YH(o)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Hc.variable+")\\s*("+Hc.comparatorOp+")\\s*("+Hc.value+")\\s*\\]",populate:function(t,r,a){var s=S1(a,3),o=s[0],u=s[1],h=s[2],f=new RegExp("^"+Hc.string+"$").exec(h)!=null;f?h=h.substring(1,h.length-1):h=parseFloat(h),r.checks.push({type:Ua.DATA_COMPARE,field:YH(o),operator:u,value:h})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+Hc.boolOp+")\\s*("+Hc.variable+")\\s*\\]",populate:function(t,r,a){var s=S1(a,2),o=s[0],u=s[1];r.checks.push({type:Ua.DATA_BOOL,field:YH(u),operator:o})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Hc.meta+")\\s*("+Hc.comparatorOp+")\\s*("+Hc.number+")\\s*\\]\\]",populate:function(t,r,a){var s=S1(a,3),o=s[0],u=s[1],h=s[2];r.checks.push({type:Ua.META_COMPARE,field:YH(o),operator:u,value:parseFloat(h)})}},{name:"nextQuery",separator:!0,regex:Hc.separator,populate:function(t,r){var a=t.currentSubject,s=t.edgeCount,o=t.compoundCount,u=t[t.length-1];a!=null&&(u.subject=a,t.currentSubject=null),u.edgeCount=s,u.compoundCount=o,t.edgeCount=0,t.compoundCount=0;var h=t[t.length++]=yh();return h}},{name:"directedEdge",separator:!0,regex:Hc.directedEdge,populate:function(t,r){if(t.currentSubject==null){var a=yh(),s=r,o=yh();return a.checks.push({type:Ua.DIRECTED_EDGE,source:s,target:o}),BN(t,r,a),t.edgeCount++,o}else{var u=yh(),h=r,f=yh();return u.checks.push({type:Ua.NODE_SOURCE,source:h,target:f}),BN(t,r,u),t.edgeCount++,f}}},{name:"undirectedEdge",separator:!0,regex:Hc.undirectedEdge,populate:function(t,r){if(t.currentSubject==null){var a=yh(),s=r,o=yh();return a.checks.push({type:Ua.UNDIRECTED_EDGE,nodes:[s,o]}),BN(t,r,a),t.edgeCount++,o}else{var u=yh(),h=r,f=yh();return u.checks.push({type:Ua.NODE_NEIGHBOR,node:h,neighbor:f}),BN(t,r,u),f}}},{name:"child",separator:!0,regex:Hc.child,populate:function(t,r){if(t.currentSubject==null){var a=yh(),s=yh(),o=t[t.length-1];return a.checks.push({type:Ua.CHILD,parent:o,child:s}),BN(t,r,a),t.compoundCount++,s}else if(t.currentSubject===r){var u=yh(),h=t[t.length-1],f=yh(),p=yh(),m=yh(),b=yh();return u.checks.push({type:Ua.COMPOUND_SPLIT,left:h,right:f,subject:p}),p.checks=r.checks,r.checks=[{type:Ua.TRUE}],b.checks.push({type:Ua.TRUE}),f.checks.push({type:Ua.PARENT,parent:b,child:m}),BN(t,h,u),t.currentSubject=p,t.compoundCount++,m}else{var _=yh(),w=yh(),S=[{type:Ua.PARENT,parent:_,child:w}];return _.checks=r.checks,r.checks=S,t.compoundCount++,w}}},{name:"descendant",separator:!0,regex:Hc.descendant,populate:function(t,r){if(t.currentSubject==null){var a=yh(),s=yh(),o=t[t.length-1];return a.checks.push({type:Ua.DESCENDANT,ancestor:o,descendant:s}),BN(t,r,a),t.compoundCount++,s}else if(t.currentSubject===r){var u=yh(),h=t[t.length-1],f=yh(),p=yh(),m=yh(),b=yh();return u.checks.push({type:Ua.COMPOUND_SPLIT,left:h,right:f,subject:p}),p.checks=r.checks,r.checks=[{type:Ua.TRUE}],b.checks.push({type:Ua.TRUE}),f.checks.push({type:Ua.ANCESTOR,ancestor:b,descendant:m}),BN(t,h,u),t.currentSubject=p,t.compoundCount++,m}else{var _=yh(),w=yh(),S=[{type:Ua.ANCESTOR,ancestor:_,descendant:w}];return _.checks=r.checks,r.checks=S,t.compoundCount++,w}}},{name:"subject",modifier:!0,regex:Hc.subject,populate:function(t,r){if(t.currentSubject!=null&&t.currentSubject!==r)return Uu("Redefinition of subject in selector `"+t.toString()+"`"),!1;t.currentSubject=r;var a=t[t.length-1],s=a.checks[0],o=s==null?null:s.type;o===Ua.DIRECTED_EDGE?s.type=Ua.NODE_TARGET:o===Ua.UNDIRECTED_EDGE&&(s.type=Ua.NODE_NEIGHBOR,s.node=s.nodes[1],s.neighbor=s.nodes[0],s.nodes=null)}}];cct.forEach(function(e){return e.regexObj=new RegExp("^"+e.regex)});var oIi=function(t){for(var r,a,s,o=0;o<cct.length;o++){var u=cct[o],h=u.name,f=t.match(u.regexObj);if(f!=null){a=f,r=u,s=h;var p=f[0];t=t.substring(p.length);break}}return{expr:r,match:a,name:s,remaining:t}},lIi=function(t){var r=t.match(/^\s+/);if(r){var a=r[0];t=t.substring(a.length)}return t},cIi=function(t){var r=this,a=r.inputText=t,s=r[0]=yh();for(r.length=1,a=lIi(a);;){var o=oIi(a);if(o.expr==null)return Uu("The selector `"+t+"`is invalid"),!1;var u=o.match.slice(1),h=o.expr.populate(r,s,u);if(h===!1)return!1;if(h!=null&&(s=h),a=o.remaining,a.match(/^\s*$/))break}var f=r[r.length-1];r.currentSubject!=null&&(f.subject=r.currentSubject),f.edgeCount=r.edgeCount,f.compoundCount=r.compoundCount;for(var p=0;p<r.length;p++){var m=r[p];if(m.compoundCount>0&&m.edgeCount>0)return Uu("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(m.edgeCount>1)return Uu("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;m.edgeCount===1&&Uu("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},uIi=function(){if(this.toStringCache!=null)return this.toStringCache;for(var t=function(m){return m??""},r=function(m){return Ns(m)?'"'+m+'"':t(m)},a=function(m){return" "+m+" "},s=function(m,b){var _=m.type,w=m.value;switch(_){case Ua.GROUP:{var S=t(w);return S.substring(0,S.length-1)}case Ua.DATA_COMPARE:{var C=m.field,A=m.operator;return"["+C+a(t(A))+r(w)+"]"}case Ua.DATA_BOOL:{var k=m.operator,I=m.field;return"["+t(k)+I+"]"}case Ua.DATA_EXIST:{var N=m.field;return"["+N+"]"}case Ua.META_COMPARE:{var L=m.operator,P=m.field;return"[["+P+a(t(L))+r(w)+"]]"}case Ua.STATE:return w;case Ua.ID:return"#"+w;case Ua.CLASS:return"."+w;case Ua.PARENT:case Ua.CHILD:return o(m.parent,b)+a(">")+o(m.child,b);case Ua.ANCESTOR:case Ua.DESCENDANT:return o(m.ancestor,b)+" "+o(m.descendant,b);case Ua.COMPOUND_SPLIT:{var M=o(m.left,b),F=o(m.subject,b),U=o(m.right,b);return M+(M.length>0?" ":"")+F+U}case Ua.TRUE:return""}},o=function(m,b){return m.checks.reduce(function(_,w,S){return _+(b===m&&S===0?"$":"")+s(w,b)},"")},u="",h=0;h<this.length;h++){var f=this[h];u+=o(f,f.subject),this.length>1&&h<this.length-1&&(u+=", ")}return this.toStringCache=u,u},hIi={parse:cIi,toString:uIi},qHn=function(t,r,a){var s,o=Ns(t),u=aa(t),h=Ns(a),f,p,m=!1,b=!1,_=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),b=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),m=!0),(o||h||m)&&(f=!o&&!u?"":""+t,p=""+a),m&&(t=f=f.toLowerCase(),a=p=p.toLowerCase()),r){case"*=":s=f.indexOf(p)>=0;break;case"$=":s=f.indexOf(p,f.length-p.length)>=0;break;case"^=":s=f.indexOf(p)===0;break;case"=":s=t===a;break;case">":_=!0,s=t>a;break;case">=":_=!0,s=t>=a;break;case"<":_=!0,s=t<a;break;case"<=":_=!0,s=t<=a;break;default:s=!1;break}return b&&(t!=null||!_)&&(s=!s),s},dIi=function(t,r){switch(r){case"?":return!!t;case"!":return!t;case"^":return t===void 0}},fIi=function(t){return t!==void 0},Tgt=function(t,r){return t.data(r)},pIi=function(t,r){return t[r]()},h0=[],_d=function(t,r){return t.checks.every(function(a){return h0[a.type](a,r)})};h0[Ua.GROUP]=function(e,t){var r=e.value;return r==="*"||r===t.group()};h0[Ua.STATE]=function(e,t){var r=e.value;return aIi(r,t)};h0[Ua.ID]=function(e,t){var r=e.value;return t.id()===r};h0[Ua.CLASS]=function(e,t){var r=e.value;return t.hasClass(r)};h0[Ua.META_COMPARE]=function(e,t){var r=e.field,a=e.operator,s=e.value;return qHn(pIi(t,r),a,s)};h0[Ua.DATA_COMPARE]=function(e,t){var r=e.field,a=e.operator,s=e.value;return qHn(Tgt(t,r),a,s)};h0[Ua.DATA_BOOL]=function(e,t){var r=e.field,a=e.operator;return dIi(Tgt(t,r),a)};h0[Ua.DATA_EXIST]=function(e,t){var r=e.field;return e.operator,fIi(Tgt(t,r))};h0[Ua.UNDIRECTED_EDGE]=function(e,t){var r=e.nodes[0],a=e.nodes[1],s=t.source(),o=t.target();return _d(r,s)&&_d(a,o)||_d(a,s)&&_d(r,o)};h0[Ua.NODE_NEIGHBOR]=function(e,t){return _d(e.node,t)&&t.neighborhood().some(function(r){return r.isNode()&&_d(e.neighbor,r)})};h0[Ua.DIRECTED_EDGE]=function(e,t){return _d(e.source,t.source())&&_d(e.target,t.target())};h0[Ua.NODE_SOURCE]=function(e,t){return _d(e.source,t)&&t.outgoers().some(function(r){return r.isNode()&&_d(e.target,r)})};h0[Ua.NODE_TARGET]=function(e,t){return _d(e.target,t)&&t.incomers().some(function(r){return r.isNode()&&_d(e.source,r)})};h0[Ua.CHILD]=function(e,t){return _d(e.child,t)&&_d(e.parent,t.parent())};h0[Ua.PARENT]=function(e,t){return _d(e.parent,t)&&t.children().some(function(r){return _d(e.child,r)})};h0[Ua.DESCENDANT]=function(e,t){return _d(e.descendant,t)&&t.ancestors().some(function(r){return _d(e.ancestor,r)})};h0[Ua.ANCESTOR]=function(e,t){return _d(e.ancestor,t)&&t.descendants().some(function(r){return _d(e.descendant,r)})};h0[Ua.COMPOUND_SPLIT]=function(e,t){return _d(e.subject,t)&&_d(e.left,t)&&_d(e.right,t)};h0[Ua.TRUE]=function(){return!0};h0[Ua.COLLECTION]=function(e,t){var r=e.value;return r.has(t)};h0[Ua.FILTER]=function(e,t){var r=e.value;return r(t)};var gIi=function(t){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===Ua.ID)return t.getElementById(r[0].checks[0].value).collection();var a=function(o){for(var u=0;u<r.length;u++){var h=r[u];if(_d(h,o))return!0}return!1};return r.text()==null&&(a=function(){return!0}),t.filter(a)},mIi=function(t){for(var r=this,a=0;a<r.length;a++){var s=r[a];if(_d(s,t))return!0}return!1},bIi={matches:mIi,filter:gIi},l9=function(t){this.inputText=t,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,t==null||Ns(t)&&t.match(/^\s*$/)||(Bw(t)?this.addQuery({checks:[{type:Ua.COLLECTION,value:t.collection()}]}):Of(t)?this.addQuery({checks:[{type:Ua.FILTER,value:t}]}):Ns(t)?this.parse(t)||(this.invalid=!0):jd("A selector must be created from a string; found "))},c9=l9.prototype;[hIi,bIi].forEach(function(e){return eo(c9,e)});c9.text=function(){return this.inputText};c9.size=function(){return this.length};c9.eq=function(e){return this[e]};c9.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()};c9.addQuery=function(e){this[this.length++]=e};c9.selector=c9.toString;var OO={allAre:function(t){var r=new l9(t);return this.every(function(a){return r.matches(a)})},is:function(t){var r=new l9(t);return this.some(function(a){return r.matches(a)})},some:function(t,r){for(var a=0;a<this.length;a++){var s=r?t.apply(r,[this[a],a,this]):t(this[a],a,this);if(s)return!0}return!1},every:function(t,r){for(var a=0;a<this.length;a++){var s=r?t.apply(r,[this[a],a,this]):t(this[a],a,this);if(!s)return!1}return!0},same:function(t){if(this===t)return!0;t=this.cy().collection(t);var r=this.length,a=t.length;return r!==a?!1:r===1?this[0]===t[0]:this.every(function(s){return t.hasElementWithId(s.id())})},anySame:function(t){return t=this.cy().collection(t),this.some(function(r){return t.hasElementWithId(r.id())})},allAreNeighbors:function(t){t=this.cy().collection(t);var r=this.neighborhood();return t.every(function(a){return r.hasElementWithId(a.id())})},contains:function(t){t=this.cy().collection(t);var r=this;return t.every(function(a){return r.hasElementWithId(a.id())})}};OO.allAreNeighbours=OO.allAreNeighbors;OO.has=OO.contains;OO.equal=OO.equals=OO.same;var oS=function(t,r){return function(s,o,u,h){var f=s,p=this,m;if(f==null?m="":Bw(f)&&f.length===1&&(m=f.id()),p.length===1&&m){var b=p[0]._private,_=b.traversalCache=b.traversalCache||{},w=_[r]=_[r]||[],S=KF(m),C=w[S];return C||(w[S]=t.call(p,s,o,u,h))}else return t.call(p,s,o,u,h)}},Gj={parent:function(t){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var s=0;s<this.length;s++){var o=this[s],u=o._private.parent;u&&r.push(u)}return this.spawn(r,!0).filter(t)},parents:function(t){for(var r=[],a=this.parent();a.nonempty();){for(var s=0;s<a.length;s++){var o=a[s];r.push(o)}a=a.parent()}return this.spawn(r,!0).filter(t)},commonAncestors:function(t){for(var r,a=0;a<this.length;a++){var s=this[a],o=s.parents();r=r||o,r=r.intersect(o)}return r.filter(t)},orphans:function(t){return this.stdFilter(function(r){return r.isOrphan()}).filter(t)},nonorphans:function(t){return this.stdFilter(function(r){return r.isChild()}).filter(t)},children:oS(function(e){for(var t=[],r=0;r<this.length;r++)for(var a=this[r],s=a._private.children,o=0;o<s.length;o++)t.push(s[o]);return this.spawn(t,!0).filter(e)},"children"),siblings:function(t){return this.parent().children().not(this).filter(t)},isParent:function(){var t=this[0];if(t)return t.isNode()&&t._private.children.length!==0},isChildless:function(){var t=this[0];if(t)return t.isNode()&&t._private.children.length===0},isChild:function(){var t=this[0];if(t)return t.isNode()&&t._private.parent!=null},isOrphan:function(){var t=this[0];if(t)return t.isNode()&&t._private.parent==null},descendants:function(t){var r=[];function a(s){for(var o=0;o<s.length;o++){var u=s[o];r.push(u),u.children().nonempty()&&a(u.children())}}return a(this.children()),this.spawn(r,!0).filter(t)}};function Cgt(e,t,r,a){for(var s=[],o=new WW,u=e.cy(),h=u.hasCompoundNodes(),f=0;f<e.length;f++){var p=e[f];r?s.push(p):h&&a(s,o,p)}for(;s.length>0;){var m=s.shift();t(m),o.add(m.id()),h&&a(s,o,m)}return e}function HHn(e,t,r){if(r.isParent())for(var a=r._private.children,s=0;s<a.length;s++){var o=a[s];t.has(o.id())||e.push(o)}}Gj.forEachDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,HHn)};function VHn(e,t,r){if(r.isChild()){var a=r._private.parent;t.has(a.id())||e.push(a)}}Gj.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,VHn)};function yIi(e,t,r){VHn(e,t,r),HHn(e,t,r)}Gj.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,yIi)};Gj.ancestors=Gj.parents;var Yoe,YHn;Yoe=YHn={data:Fu.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:Fu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Fu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Fu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Fu.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Fu.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}};Yoe.attr=Yoe.data;Yoe.removeAttr=Yoe.removeData;var vIi=YHn,uke={};function ait(e){return function(t){var r=this;if(t===void 0&&(t=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,s=r[0],o=s._private.edges,u=0;u<o.length;u++){var h=o[u];!t&&h.isLoop()||(a+=e(s,h))}return a}else return}}eo(uke,{degree:ait(function(e,t){return t.source().same(t.target())?2:1}),indegree:ait(function(e,t){return t.target().same(e)?1:0}),outdegree:ait(function(e,t){return t.source().same(e)?1:0})});function jH(e,t){return function(r){for(var a,s=this.nodes(),o=0;o<s.length;o++){var u=s[o],h=u[e](r);h!==void 0&&(a===void 0||t(h,a))&&(a=h)}return a}}eo(uke,{minDegree:jH("degree",function(e,t){return e<t}),maxDegree:jH("degree",function(e,t){return e>t}),minIndegree:jH("indegree",function(e,t){return e<t}),maxIndegree:jH("indegree",function(e,t){return e>t}),minOutdegree:jH("outdegree",function(e,t){return e<t}),maxOutdegree:jH("outdegree",function(e,t){return e>t})});eo(uke,{totalDegree:function(t){for(var r=0,a=this.nodes(),s=0;s<a.length;s++)r+=a[s].degree(t);return r}});var Z3,jHn,WHn=function(t,r,a){for(var s=0;s<t.length;s++){var o=t[s];if(!o.locked()){var u=o._private.position,h={x:r.x!=null?r.x-u.x:0,y:r.y!=null?r.y-u.y:0};o.isParent()&&!(h.x===0&&h.y===0)&&o.children().shift(h,a),o.dirtyBoundingBoxCache()}}},xxn={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,r){WHn(t,r,!1)},onSet:function(t){t.dirtyCompoundBoundsCache()},canSet:function(t){return!t.locked()}};Z3=jHn={position:Fu.data(xxn),silentPosition:Fu.data(eo({},xxn,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(t,r){WHn(t,r,!0)},onSet:function(t){t.dirtyCompoundBoundsCache()}})),positions:function(t,r){if(Vc(t))r?this.silentPosition(t):this.position(t);else if(Of(t)){var a=t,s=this.cy();s.startBatch();for(var o=0;o<this.length;o++){var u=this[o],h=void 0;(h=a(u,o))&&(r?u.silentPosition(h):u.position(h))}s.endBatch()}return this},silentPositions:function(t){return this.positions(t,!0)},shift:function(t,r,a){var s;if(Vc(t)?(s={x:aa(t.x)?t.x:0,y:aa(t.y)?t.y:0},a=r):Ns(t)&&aa(r)&&(s={x:0,y:0},s[t]=r),s!=null){var o=this.cy();o.startBatch();for(var u=0;u<this.length;u++){var h=this[u];if(!(o.hasCompoundNodes()&&h.isChild()&&h.ancestors().anySame(this))){var f=h.position(),p={x:f.x+s.x,y:f.y+s.y};a?h.silentPosition(p):h.position(p)}}o.endBatch()}return this},silentShift:function(t,r){return Vc(t)?this.shift(t,!0):Ns(t)&&aa(r)&&this.shift(t,r,!0),this},renderedPosition:function(t,r){var a=this[0],s=this.cy(),o=s.zoom(),u=s.pan(),h=Vc(t)?t:void 0,f=h!==void 0||r!==void 0&&Ns(t);if(a&&a.isNode())if(f)for(var p=0;p<this.length;p++){var m=this[p];r!==void 0?m.position(t,(r-u[t])/o):h!==void 0&&m.position(EHn(h,o,u))}else{var b=a.position();return h=ike(b,o,u),t===void 0?h:h[t]}else if(!f)return;return this},relativePosition:function(t,r){var a=this[0],s=this.cy(),o=Vc(t)?t:void 0,u=o!==void 0||r!==void 0&&Ns(t),h=s.hasCompoundNodes();if(a&&a.isNode())if(u)for(var f=0;f<this.length;f++){var p=this[f],m=h?p.parent():null,b=m&&m.length>0,_=b;b&&(m=m[0]);var w=_?m.position():{x:0,y:0};r!==void 0?p.position(t,r+w[t]):o!==void 0&&p.position({x:o.x+w.x,y:o.y+w.y})}else{var S=a.position(),C=h?a.parent():null,A=C&&C.length>0,k=A;A&&(C=C[0]);var I=k?C.position():{x:0,y:0};return o={x:S.x-I.x,y:S.y-I.y},t===void 0?o:o[t]}else if(!u)return;return this}};Z3.modelPosition=Z3.point=Z3.position;Z3.modelPositions=Z3.points=Z3.positions;Z3.renderedPoint=Z3.renderedPosition;Z3.relativePoint=Z3.relativePosition;var _Ii=jHn,iY,j9;iY=j9={};j9.renderedBoundingBox=function(e){var t=this.boundingBox(e),r=this.cy(),a=r.zoom(),s=r.pan(),o=t.x1*a+s.x,u=t.x2*a+s.x,h=t.y1*a+s.y,f=t.y2*a+s.y;return{x1:o,x2:u,y1:h,y2:f,w:u-o,h:f-h}};j9.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,e||r.emitAndNotify("bounds")}}),this)};j9.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function r(u){if(!u.isParent())return;var h=u._private,f=u.children(),p=u.pstyle("compound-sizing-wrt-labels").value==="include",m={width:{val:u.pstyle("min-width").pfValue,left:u.pstyle("min-width-bias-left"),right:u.pstyle("min-width-bias-right")},height:{val:u.pstyle("min-height").pfValue,top:u.pstyle("min-height-bias-top"),bottom:u.pstyle("min-height-bias-bottom")}},b=f.boundingBox({includeLabels:p,includeOverlays:!1,useCache:!1}),_=h.position;(b.w===0||b.h===0)&&(b={w:u.pstyle("width").pfValue,h:u.pstyle("height").pfValue},b.x1=_.x-b.w/2,b.x2=_.x+b.w/2,b.y1=_.y-b.h/2,b.y2=_.y+b.h/2);function w($,G,B){var Z=0,z=0,Y=G+B;return $>0&&Y>0&&(Z=G/Y*$,z=B/Y*$),{biasDiff:Z,biasComplementDiff:z}}function S($,G,B,Z){if(B.units==="%")switch(Z){case"width":return $>0?B.pfValue*$:0;case"height":return G>0?B.pfValue*G:0;case"average":return $>0&&G>0?B.pfValue*($+G)/2:0;case"min":return $>0&&G>0?$>G?B.pfValue*G:B.pfValue*$:0;case"max":return $>0&&G>0?$>G?B.pfValue*$:B.pfValue*G:0;default:return 0}else return B.units==="px"?B.pfValue:0}var C=m.width.left.value;m.width.left.units==="px"&&m.width.val>0&&(C=C*100/m.width.val);var A=m.width.right.value;m.width.right.units==="px"&&m.width.val>0&&(A=A*100/m.width.val);var k=m.height.top.value;m.height.top.units==="px"&&m.height.val>0&&(k=k*100/m.height.val);var I=m.height.bottom.value;m.height.bottom.units==="px"&&m.height.val>0&&(I=I*100/m.height.val);var N=w(m.width.val-b.w,C,A),L=N.biasDiff,P=N.biasComplementDiff,M=w(m.height.val-b.h,k,I),F=M.biasDiff,U=M.biasComplementDiff;h.autoPadding=S(b.w,b.h,u.pstyle("padding"),u.pstyle("padding-relative-to").value),h.autoWidth=Math.max(b.w,m.width.val),_.x=(-L+b.x1+b.x2+P)/2,h.autoHeight=Math.max(b.h,m.height.val),_.y=(-F+b.y1+b.y2+U)/2}for(var a=0;a<this.length;a++){var s=this[a],o=s._private;(!o.compoundBoundsClean||e)&&(r(s),t.batching()||(o.compoundBoundsClean=!0))}return this};var Zx=function(t){return t===1/0||t===-1/0?0:t},N3=function(t,r,a,s,o){s-r===0||o-a===0||r==null||a==null||s==null||o==null||(t.x1=r<t.x1?r:t.x1,t.x2=s>t.x2?s:t.x2,t.y1=a<t.y1?a:t.y1,t.y2=o>t.y2?o:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},XN=function(t,r){return r==null?t:N3(t,r.x1,r.y1,r.x2,r.y2)},tie=function(t,r,a){return F2(t,r,a)},Dwe=function(t,r,a){if(!r.cy().headless()){var s=r._private,o=s.rstyle,u=o.arrowWidth/2,h=r.pstyle(a+"-arrow-shape").value,f,p;if(h!=="none"){a==="source"?(f=o.srcX,p=o.srcY):a==="target"?(f=o.tgtX,p=o.tgtY):(f=o.midX,p=o.midY);var m=s.arrowBounds=s.arrowBounds||{},b=m[a]=m[a]||{};b.x1=f-u,b.y1=p-u,b.x2=f+u,b.y2=p+u,b.w=b.x2-b.x1,b.h=b.y2-b.y1,wxe(b,1),N3(t,b.x1,b.y1,b.x2,b.y2)}}},sit=function(t,r,a){if(!r.cy().headless()){var s;a?s=a+"-":s="";var o=r._private,u=o.rstyle,h=r.pstyle(s+"label").strValue;if(h){var f=r.pstyle("text-halign"),p=r.pstyle("text-valign"),m=tie(u,"labelWidth",a),b=tie(u,"labelHeight",a),_=tie(u,"labelX",a),w=tie(u,"labelY",a),S=r.pstyle(s+"text-margin-x").pfValue,C=r.pstyle(s+"text-margin-y").pfValue,A=r.isEdge(),k=r.pstyle(s+"text-rotation"),I=r.pstyle("text-outline-width").pfValue,N=r.pstyle("text-border-width").pfValue,L=N/2,P=r.pstyle("text-background-padding").pfValue,M=2,F=b,U=m,$=U/2,G=F/2,B,Z,z,Y;if(A)B=_-$,Z=_+$,z=w-G,Y=w+G;else{switch(f.value){case"left":B=_-U,Z=_;break;case"center":B=_-$,Z=_+$;break;case"right":B=_,Z=_+U;break}switch(p.value){case"top":z=w-F,Y=w;break;case"center":z=w-G,Y=w+G;break;case"bottom":z=w,Y=w+F;break}}var W=S-Math.max(I,L)-P-M,Q=S+Math.max(I,L)+P+M,V=C-Math.max(I,L)-P-M,j=C+Math.max(I,L)+P+M;B+=W,Z+=Q,z+=V,Y+=j;var ee=a||"main",te=o.labelBounds,ne=te[ee]=te[ee]||{};ne.x1=B,ne.y1=z,ne.x2=Z,ne.y2=Y,ne.w=Z-B,ne.h=Y-z,ne.leftPad=W,ne.rightPad=Q,ne.topPad=V,ne.botPad=j;var se=A&&k.strValue==="autorotate",ie=k.pfValue!=null&&k.pfValue!==0;if(se||ie){var ge=se?tie(o.rstyle,"labelAngle",a):k.pfValue,ce=Math.cos(ge),be=Math.sin(ge),ve=(B+Z)/2,De=(z+Y)/2;if(!A){switch(f.value){case"left":ve=Z;break;case"right":ve=B;break}switch(p.value){case"top":De=Y;break;case"bottom":De=z;break}}var ye=function(Ve,Oe){return Ve=Ve-ve,Oe=Oe-De,{x:Ve*ce-Oe*be+ve,y:Ve*be+Oe*ce+De}},Ee=ye(B,z),he=ye(B,Y),we=ye(Z,z),Ce=ye(Z,Y);B=Math.min(Ee.x,he.x,we.x,Ce.x),Z=Math.max(Ee.x,he.x,we.x,Ce.x),z=Math.min(Ee.y,he.y,we.y,Ce.y),Y=Math.max(Ee.y,he.y,we.y,Ce.y)}var Ie=ee+"Rot",Le=te[Ie]=te[Ie]||{};Le.x1=B,Le.y1=z,Le.x2=Z,Le.y2=Y,Le.w=Z-B,Le.h=Y-z,N3(t,B,z,Z,Y),N3(o.labelBounds.all,B,z,Z,Y)}return t}},Sxn=function(t,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,s=r.pstyle("outline-width").value,o=r.pstyle("outline-offset").value,u=s+o;KHn(t,r,a,u,"outside",u/2)}},KHn=function(t,r,a,s,o,u){if(!(a===0||s<=0||o==="inside")){var h=r.cy(),f=r.pstyle("shape").value,p=h.renderer().nodeShapes[f],m=r.position(),b=m.x,_=m.y,w=r.width(),S=r.height();if(p.hasMiterBounds){o==="center"&&(s/=2);var C=p.miterBounds(b,_,w,S,s);XN(t,C)}else u!=null&&u>0&&Exe(t,[u,u,u,u])}},wIi=function(t,r){if(!r.cy().headless()){var a=r.pstyle("border-opacity").value,s=r.pstyle("border-width").pfValue,o=r.pstyle("border-position").value;KHn(t,r,a,s,o)}},EIi=function(t,r){var a=t._private.cy,s=a.styleEnabled(),o=a.headless(),u=uv(),h=t._private,f=t.isNode(),p=t.isEdge(),m,b,_,w,S,C,A=h.rstyle,k=f&&s?t.pstyle("bounds-expansion").pfValue:[0],I=function(Fe){return Fe.pstyle("display").value!=="none"},N=!s||I(t)&&(!p||I(t.source())&&I(t.target()));if(N){var L=0,P=0;s&&r.includeOverlays&&(L=t.pstyle("overlay-opacity").value,L!==0&&(P=t.pstyle("overlay-padding").value));var M=0,F=0;s&&r.includeUnderlays&&(M=t.pstyle("underlay-opacity").value,M!==0&&(F=t.pstyle("underlay-padding").value));var U=Math.max(P,F),$=0,G=0;if(s&&($=t.pstyle("width").pfValue,G=$/2),f&&r.includeNodes){var B=t.position();S=B.x,C=B.y;var Z=t.outerWidth(),z=Z/2,Y=t.outerHeight(),W=Y/2;m=S-z,b=S+z,_=C-W,w=C+W,N3(u,m,_,b,w),s&&Sxn(u,t),s&&r.includeOutlines&&!o&&Sxn(u,t),s&&wIi(u,t)}else if(p&&r.includeEdges)if(s&&!o){var Q=t.pstyle("curve-style").strValue;if(m=Math.min(A.srcX,A.midX,A.tgtX),b=Math.max(A.srcX,A.midX,A.tgtX),_=Math.min(A.srcY,A.midY,A.tgtY),w=Math.max(A.srcY,A.midY,A.tgtY),m-=G,b+=G,_-=G,w+=G,N3(u,m,_,b,w),Q==="haystack"){var V=A.haystackPts;if(V&&V.length===2){if(m=V[0].x,_=V[0].y,b=V[1].x,w=V[1].y,m>b){var j=m;m=b,b=j}if(_>w){var ee=_;_=w,w=ee}N3(u,m-G,_-G,b+G,w+G)}}else if(Q==="bezier"||Q==="unbundled-bezier"||mO(Q,"segments")||mO(Q,"taxi")){var te;switch(Q){case"bezier":case"unbundled-bezier":te=A.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":te=A.linePts;break}if(te!=null)for(var ne=0;ne<te.length;ne++){var se=te[ne];m=se.x-G,b=se.x+G,_=se.y-G,w=se.y+G,N3(u,m,_,b,w)}}}else{var ie=t.source(),ge=ie.position(),ce=t.target(),be=ce.position();if(m=ge.x,b=be.x,_=ge.y,w=be.y,m>b){var ve=m;m=b,b=ve}if(_>w){var De=_;_=w,w=De}m-=G,b+=G,_-=G,w+=G,N3(u,m,_,b,w)}if(s&&r.includeEdges&&p&&(Dwe(u,t,"mid-source"),Dwe(u,t,"mid-target"),Dwe(u,t,"source"),Dwe(u,t,"target")),s){var ye=t.pstyle("ghost").value==="yes";if(ye){var Ee=t.pstyle("ghost-offset-x").pfValue,he=t.pstyle("ghost-offset-y").pfValue;N3(u,u.x1+Ee,u.y1+he,u.x2+Ee,u.y2+he)}}var we=h.bodyBounds=h.bodyBounds||{};cEn(we,u),Exe(we,k),wxe(we,1),s&&(m=u.x1,b=u.x2,_=u.y1,w=u.y2,N3(u,m-U,_-U,b+U,w+U));var Ce=h.overlayBounds=h.overlayBounds||{};cEn(Ce,u),Exe(Ce,k),wxe(Ce,1);var Ie=h.labelBounds=h.labelBounds||{};Ie.all!=null?rRi(Ie.all):Ie.all=uv(),s&&r.includeLabels&&(r.includeMainLabels&&sit(u,t,null),p&&(r.includeSourceLabels&&sit(u,t,"source"),r.includeTargetLabels&&sit(u,t,"target")))}return u.x1=Zx(u.x1),u.y1=Zx(u.y1),u.x2=Zx(u.x2),u.y2=Zx(u.y2),u.w=Zx(u.x2-u.x1),u.h=Zx(u.y2-u.y1),u.w>0&&u.h>0&&N&&(Exe(u,k),wxe(u,1)),u},XHn=function(t){var r=0,a=function(u){return(u?1:0)<<r++},s=0;return s+=a(t.incudeNodes),s+=a(t.includeEdges),s+=a(t.includeLabels),s+=a(t.includeMainLabels),s+=a(t.includeSourceLabels),s+=a(t.includeTargetLabels),s+=a(t.includeOverlays),s+=a(t.includeOutlines),s},QHn=function(t){var r=function(h){return Math.round(h)};if(t.isEdge()){var a=t.source().position(),s=t.target().position();return rEn([r(a.x),r(a.y),r(s.x),r(s.y)])}else{var o=t.position();return rEn([r(o.x),r(o.y)])}},Txn=function(t,r){var a=t._private,s,o=t.isEdge(),u=r==null?Cxn:XHn(r),h=u===Cxn;if(a.bbCache==null?(s=EIi(t,joe),a.bbCache=s,a.bbCachePosKey=QHn(t)):s=a.bbCache,!h){var f=t.isNode();s=uv(),(r.includeNodes&&f||r.includeEdges&&!f)&&(r.includeOverlays?XN(s,a.overlayBounds):XN(s,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!o||r.includeSourceLabels&&r.includeTargetLabels)?XN(s,a.labelBounds.all):(r.includeMainLabels&&XN(s,a.labelBounds.mainRot),r.includeSourceLabels&&XN(s,a.labelBounds.sourceRot),r.includeTargetLabels&&XN(s,a.labelBounds.targetRot))),s.w=s.x2-s.x1,s.h=s.y2-s.y1}return s},joe={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},Cxn=XHn(joe),Axn=Nm(joe);j9.boundingBox=function(e){var t,r=e===void 0||e.useCache===void 0||e.useCache===!0,a=Uj(function(m){var b=m._private;return b.bbCache==null||b.styleDirty||b.bbCachePosKey!==QHn(m)},function(m){return m.id()});if(r&&this.length===1&&!a(this[0]))e===void 0?e=joe:e=Axn(e),t=Txn(this[0],e);else{t=uv(),e=e||joe;var s=Axn(e),o=this,u=o.cy(),h=u.styleEnabled();this.edges().forEach(a),this.nodes().forEach(a),h&&this.recalculateRenderedStyle(r),this.updateCompoundBounds(!r);for(var f=0;f<o.length;f++){var p=o[f];a(p)&&p.dirtyBoundingBoxCache(),XN(t,Txn(p,s))}}return t.x1=Zx(t.x1),t.y1=Zx(t.y1),t.x2=Zx(t.x2),t.y2=Zx(t.y2),t.w=Zx(t.x2-t.x1),t.h=Zx(t.y2-t.y1),t};j9.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this};j9.boundingBoxAt=function(e){var t=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),s=r.collection();if(a&&(s=t.filter(function(p){return p.isParent()}),t=t.not(s)),Vc(e)){var o=e;e=function(){return o}}var u=function(m,b){return m._private.bbAtOldPos=e(m,b)},h=function(m){return m._private.bbAtOldPos};r.startBatch(),t.forEach(u).silentPositions(e),a&&(s.dirtyCompoundBoundsCache(),s.dirtyBoundingBoxCache(),s.updateCompoundBounds(!0));var f=nRi(this.boundingBox({useCache:!1}));return t.silentPositions(h),a&&(s.dirtyCompoundBoundsCache(),s.dirtyBoundingBoxCache(),s.updateCompoundBounds(!0)),r.endBatch(),f};iY.boundingbox=iY.bb=iY.boundingBox;iY.renderedBoundingbox=iY.renderedBoundingBox;var xIi=j9,jie,kce;jie=kce={};var ZHn=function(t){t.uppercaseName=Gwn(t.name),t.autoName="auto"+t.uppercaseName,t.labelName="label"+t.uppercaseName,t.outerName="outer"+t.uppercaseName,t.uppercaseOuterName=Gwn(t.outerName),jie[t.name]=function(){var a=this[0],s=a._private,o=s.cy,u=o._private.styleEnabled;if(a)if(u){if(a.isParent())return a.updateCompoundBounds(),s[t.autoName]||0;var h=a.pstyle(t.name);switch(h.strValue){case"label":return a.recalculateRenderedStyle(),s.rstyle[t.labelName]||0;default:return h.pfValue}}else return 1},jie["outer"+t.uppercaseName]=function(){var a=this[0],s=a._private,o=s.cy,u=o._private.styleEnabled;if(a)if(u){var h=a[t.name](),f=a.pstyle("border-position").value,p;f==="center"?p=a.pstyle("border-width").pfValue:f==="outside"?p=2*a.pstyle("border-width").pfValue:p=0;var m=2*a.padding();return h+p+m}else return 1},jie["rendered"+t.uppercaseName]=function(){var a=this[0];if(a){var s=a[t.name]();return s*this.cy().zoom()}},jie["rendered"+t.uppercaseOuterName]=function(){var a=this[0];if(a){var s=a[t.outerName]();return s*this.cy().zoom()}}};ZHn({name:"width"});ZHn({name:"height"});kce.padding=function(){var e=this[0],t=e._private;return e.isParent()?(e.updateCompoundBounds(),t.autoPadding!==void 0?t.autoPadding:e.pstyle("padding").pfValue):e.pstyle("padding").pfValue};kce.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()};kce.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()};var SIi=kce,TIi=function(t,r){if(t.isEdge()&&t.takesUpSpace())return r(t)},CIi=function(t,r){if(t.isEdge()&&t.takesUpSpace()){var a=t.cy();return ike(r(t),a.zoom(),a.pan())}},AIi=function(t,r){if(t.isEdge()&&t.takesUpSpace()){var a=t.cy(),s=a.pan(),o=a.zoom();return r(t).map(function(u){return ike(u,o,s)})}},kIi=function(t){return t.renderer().getControlPoints(t)},RIi=function(t){return t.renderer().getSegmentPoints(t)},IIi=function(t){return t.renderer().getSourceEndpoint(t)},NIi=function(t){return t.renderer().getTargetEndpoint(t)},OIi=function(t){return t.renderer().getEdgeMidpoint(t)},kxn={controlPoints:{get:kIi,mult:!0},segmentPoints:{get:RIi,mult:!0},sourceEndpoint:{get:IIi},targetEndpoint:{get:NIi},midpoint:{get:OIi}},LIi=function(t){return"rendered"+t[0].toUpperCase()+t.substr(1)},DIi=Object.keys(kxn).reduce(function(e,t){var r=kxn[t],a=LIi(t);return e[t]=function(){return TIi(this,r.get)},r.mult?e[a]=function(){return AIi(this,r.get)}:e[a]=function(){return CIi(this,r.get)},e},{}),MIi=eo({},_Ii,xIi,SIi,DIi);/*!
Event object based on jQuery events, MIT license

https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*/var JHn=function(t,r){this.recycle(t,r)};function nie(){return!1}function Mwe(){return!0}JHn.prototype={instanceString:function(){return"event"},recycle:function(t,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=nie,t!=null&&t.preventDefault?(this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?Mwe:nie):t!=null&&t.type?r=t:this.type=t,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,s=this.cy.zoom(),o=this.cy.pan();this.renderedPosition={x:a.x*s+o.x,y:a.y*s+o.y}}this.timeStamp=t&&t.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Mwe;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Mwe;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Mwe,this.stopPropagation()},isDefaultPrevented:nie,isPropagationStopped:nie,isImmediatePropagationStopped:nie};var eVn=/^([^.]+)(\.(?:[^.]+))?$/,PIi=".*",tVn={qualifierCompare:function(t,r){return t===r},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},Rxn=Object.keys(tVn),BIi={};function hke(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BIi,t=arguments.length>1?arguments[1]:void 0,r=0;r<Rxn.length;r++){var a=Rxn[r];this[a]=e[a]||tVn[a]}this.context=t||this.context,this.listeners=[],this.emitting=0}var u9=hke.prototype,nVn=function(t,r,a,s,o,u,h){Of(s)&&(o=s,s=null),h&&(u==null?u=h:u=eo({},u,h));for(var f=Mh(a)?a:a.split(/\s+/),p=0;p<f.length;p++){var m=f[p];if(!a9(m)){var b=m.match(eVn);if(b){var _=b[1],w=b[2]?b[2]:null,S=r(t,m,_,w,s,o,u);if(S===!1)break}}}},Ixn=function(t,r){return t.addEventFields(t.context,r),new JHn(r.type,r)},FIi=function(t,r,a){if(H6i(a)){r(t,a);return}else if(Vc(a)){r(t,Ixn(t,a));return}for(var s=Mh(a)?a:a.split(/\s+/),o=0;o<s.length;o++){var u=s[o];if(!a9(u)){var h=u.match(eVn);if(h){var f=h[1],p=h[2]?h[2]:null,m=Ixn(t,{type:f,namespace:p,target:t.context});r(t,m)}}}};u9.on=u9.addListener=function(e,t,r,a,s){return nVn(this,function(o,u,h,f,p,m,b){Of(m)&&o.listeners.push({event:u,callback:m,type:h,namespace:f,qualifier:p,conf:b})},e,t,r,a,s),this};u9.one=function(e,t,r,a){return this.on(e,t,r,a,{one:!0})};u9.removeListener=u9.off=function(e,t,r,a){var s=this;this.emitting!==0&&(this.listeners=C7i(this.listeners));for(var o=this.listeners,u=function(p){var m=o[p];nVn(s,function(b,_,w,S,C,A){if((m.type===w||e==="*")&&(!S&&m.namespace!==".*"||m.namespace===S)&&(!C||b.qualifierCompare(m.qualifier,C))&&(!A||m.callback===A))return o.splice(p,1),!1},e,t,r,a)},h=o.length-1;h>=0;h--)u(h);return this};u9.removeAllListeners=function(){return this.removeListener("*")};u9.emit=u9.trigger=function(e,t,r){var a=this.listeners,s=a.length;return this.emitting++,Mh(t)||(t=[t]),FIi(this,function(o,u){r!=null&&(a=[{event:u.event,type:u.type,namespace:u.namespace,callback:r}],s=a.length);for(var h=function(){var m=a[f];if(m.type===u.type&&(!m.namespace||m.namespace===u.namespace||m.namespace===PIi)&&o.eventMatches(o.context,m,u)){var b=[u];t!=null&&k7i(b,t),o.beforeEmit(o.context,m,u),m.conf&&m.conf.one&&(o.listeners=o.listeners.filter(function(S){return S!==m}));var _=o.callbackContext(o.context,m,u),w=m.callback.apply(_,b);o.afterEmit(o.context,m,u),w===!1&&(u.stopPropagation(),u.preventDefault())}},f=0;f<s;f++)h();o.bubble(o.context)&&!u.isPropagationStopped()&&o.parent(o.context).emit(u,t)},e),this.emitting--,this};var $Ii={qualifierCompare:function(t,r){return t==null||r==null?t==null&&r==null:t.sameText(r)},eventMatches:function(t,r,a){var s=r.qualifier;return s!=null?t!==a.target&&Ece(a.target)&&s.matches(a.target):!0},addEventFields:function(t,r){r.cy=t.cy(),r.target=t},callbackContext:function(t,r,a){return r.qualifier!=null?a.target:t},beforeEmit:function(t,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(t){return t.isChild()?t.parent():t.cy()}},Pwe=function(t){return Ns(t)?new l9(t):t},rVn={createEmitter:function(){for(var t=0;t<this.length;t++){var r=this[t],a=r._private;a.emitter||(a.emitter=new hke($Ii,r))}return this},emitter:function(){return this._private.emitter},on:function(t,r,a){for(var s=Pwe(r),o=0;o<this.length;o++){var u=this[o];u.emitter().on(t,s,a)}return this},removeListener:function(t,r,a){for(var s=Pwe(r),o=0;o<this.length;o++){var u=this[o];u.emitter().removeListener(t,s,a)}return this},removeAllListeners:function(){for(var t=0;t<this.length;t++){var r=this[t];r.emitter().removeAllListeners()}return this},one:function(t,r,a){for(var s=Pwe(r),o=0;o<this.length;o++){var u=this[o];u.emitter().one(t,s,a)}return this},once:function(t,r,a){for(var s=Pwe(r),o=0;o<this.length;o++){var u=this[o];u.emitter().on(t,s,a,{once:!0,onceCollection:this})}},emit:function(t,r){for(var a=0;a<this.length;a++){var s=this[a];s.emitter().emit(t,r)}return this},emitAndNotify:function(t,r){if(this.length!==0)return this.cy().notify(t,this),this.emit(t,r),this}};Fu.eventAliasesOn(rVn);var iVn={nodes:function(t){return this.filter(function(r){return r.isNode()}).filter(t)},edges:function(t){return this.filter(function(r){return r.isEdge()}).filter(t)},byGroup:function(){for(var t=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var s=this[a];s.isNode()?t.push(s):r.push(s)}return{nodes:t,edges:r}},filter:function(t,r){if(t===void 0)return this;if(Ns(t)||Bw(t))return new l9(t).filter(this);if(Of(t)){for(var a=this.spawn(),s=this,o=0;o<s.length;o++){var u=s[o],h=r?t.apply(r,[u,o,s]):t(u,o,s);h&&a.push(u)}return a}return this.spawn()},not:function(t){if(t){Ns(t)&&(t=this.filter(t));for(var r=this.spawn(),a=0;a<this.length;a++){var s=this[a],o=t.has(s);o||r.push(s)}return r}else return this},absoluteComplement:function(){var t=this.cy();return t.mutableElements().not(this)},intersect:function(t){if(Ns(t)){var r=t;return this.filter(r)}for(var a=this.spawn(),s=this,o=t,u=this.length<t.length,h=u?s:o,f=u?o:s,p=0;p<h.length;p++){var m=h[p];f.has(m)&&a.push(m)}return a},xor:function(t){var r=this._private.cy;Ns(t)&&(t=r.$(t));var a=this.spawn(),s=this,o=t,u=function(f,p){for(var m=0;m<f.length;m++){var b=f[m],_=b._private.data.id,w=p.hasElementWithId(_);w||a.push(b)}};return u(s,o),u(o,s),a},diff:function(t){var r=this._private.cy;Ns(t)&&(t=r.$(t));var a=this.spawn(),s=this.spawn(),o=this.spawn(),u=this,h=t,f=function(m,b,_){for(var w=0;w<m.length;w++){var S=m[w],C=S._private.data.id,A=b.hasElementWithId(C);A?o.merge(S):_.push(S)}};return f(u,h,a),f(h,u,s),{left:a,right:s,both:o}},add:function(t){var r=this._private.cy;if(!t)return this;if(Ns(t)){var a=t;t=r.mutableElements().filter(a)}for(var s=this.spawnSelf(),o=0;o<t.length;o++){var u=t[o],h=!this.has(u);h&&s.push(u)}return s},merge:function(t){var r=this._private,a=r.cy;if(!t)return this;if(t&&Ns(t)){var s=t;t=a.mutableElements().filter(s)}for(var o=r.map,u=0;u<t.length;u++){var h=t[u],f=h._private.data.id,p=!o.has(f);if(p){var m=this.length++;this[m]=h,o.set(f,{ele:h,index:m})}}return this},unmergeAt:function(t){var r=this[t],a=r.id(),s=this._private,o=s.map;this[t]=void 0,o.delete(a);var u=t===this.length-1;if(this.length>1&&!u){var h=this.length-1,f=this[h],p=f._private.data.id;this[h]=void 0,this[t]=f,o.set(p,{ele:f,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var r=this._private,a=t._private.data.id,s=r.map,o=s.get(a);if(!o)return this;var u=o.index;return this.unmergeAt(u),this},unmerge:function(t){var r=this._private.cy;if(!t)return this;if(t&&Ns(t)){var a=t;t=r.mutableElements().filter(a)}for(var s=0;s<t.length;s++)this.unmergeOne(t[s]);return this},unmergeBy:function(t){for(var r=this.length-1;r>=0;r--){var a=this[r];t(a)&&this.unmergeAt(r)}return this},map:function(t,r){for(var a=[],s=this,o=0;o<s.length;o++){var u=s[o],h=r?t.apply(r,[u,o,s]):t(u,o,s);a.push(h)}return a},reduce:function(t,r){for(var a=r,s=this,o=0;o<s.length;o++)a=t(a,s[o],o,s);return a},max:function(t,r){for(var a=-1/0,s,o=this,u=0;u<o.length;u++){var h=o[u],f=r?t.apply(r,[h,u,o]):t(h,u,o);f>a&&(a=f,s=h)}return{value:a,ele:s}},min:function(t,r){for(var a=1/0,s,o=this,u=0;u<o.length;u++){var h=o[u],f=r?t.apply(r,[h,u,o]):t(h,u,o);f<a&&(a=f,s=h)}return{value:a,ele:s}}},cu=iVn;cu.u=cu["|"]=cu["+"]=cu.union=cu.or=cu.add;cu["\\"]=cu["!"]=cu["-"]=cu.difference=cu.relativeComplement=cu.subtract=cu.not;cu.n=cu["&"]=cu["."]=cu.and=cu.intersection=cu.intersect;cu["^"]=cu["(+)"]=cu["(-)"]=cu.symmetricDifference=cu.symdiff=cu.xor;cu.fnFilter=cu.filterFn=cu.stdFilter=cu.filter;cu.complement=cu.abscomp=cu.absoluteComplement;var UIi={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},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}},aVn=function(t,r){var a=t.cy(),s=a.hasCompoundNodes();function o(m){var b=m.pstyle("z-compound-depth");return b.value==="auto"?s?m.zDepth():0:b.value==="bottom"?-1:b.value==="top"?ggt:0}var u=o(t)-o(r);if(u!==0)return u;function h(m){var b=m.pstyle("z-index-compare");return b.value==="auto"&&m.isNode()?1:0}var f=h(t)-h(r);if(f!==0)return f;var p=t.pstyle("z-index").value-r.pstyle("z-index").value;return p!==0?p:t.poolIndex()-r.poolIndex()},Y3e={forEach:function(t,r){if(Of(t))for(var a=this.length,s=0;s<a;s++){var o=this[s],u=r?t.apply(r,[o,s,this]):t(o,s,this);if(u===!1)break}return this},toArray:function(){for(var t=[],r=0;r<this.length;r++)t.push(this[r]);return t},slice:function(t,r){var a=[],s=this.length;r==null&&(r=s),t==null&&(t=0),t<0&&(t=s+t),r<0&&(r=s+r);for(var o=t;o>=0&&o<r&&o<s;o++)a.push(this[o]);return this.spawn(a)},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 this.length===0},nonempty:function(){return!this.empty()},sort:function(t){if(!Of(t))return this;var r=this.toArray().sort(t);return this.spawn(r)},sortByZIndex:function(){return this.sort(aVn)},zDepth:function(){var t=this[0];if(t){var r=t._private,a=r.group;if(a==="nodes"){var s=r.data.parent?t.parents().size():0;return t.isParent()?s:ggt-1}else{var o=r.source,u=r.target,h=o.zDepth(),f=u.zDepth();return Math.max(h,f,0)}}}};Y3e.each=Y3e.forEach;var zIi=function(){var t="undefined",r=(typeof Symbol>"u"?"undefined":Dp(Symbol))!=t&&Dp(Symbol.iterator)!=t;r&&(Y3e[Symbol.iterator]=function(){var a=this,s={value:void 0,done:!1},o=0,u=this.length;return rHn({next:function(){return o<u?s.value=a[o++]:(s.value=void 0,s.done=!0),s}},Symbol.iterator,function(){return this})})};zIi();var GIi=Nm({nodeDimensionsIncludeLabels:!1}),Sxe={layoutDimensions:function(t){t=GIi(t);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(t.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(t,r,a){var s=this.nodes().filter(function(P){return!P.isParent()}),o=this.cy(),u=r.eles,h=function(M){return M.id()},f=Uj(a,h);t.emit({type:"layoutstart",layout:t}),t.animations=[];var p=function(M,F,U){var $={x:F.x1+F.w/2,y:F.y1+F.h/2},G={x:(U.x-$.x)*M,y:(U.y-$.y)*M};return{x:$.x+G.x,y:$.y+G.y}},m=r.spacingFactor&&r.spacingFactor!==1,b=function(){if(!m)return null;for(var M=uv(),F=0;F<s.length;F++){var U=s[F],$=f(U,F);xHn(M,$.x,$.y)}return M},_=b(),w=Uj(function(P,M){var F=f(P,M);if(m){var U=Math.abs(r.spacingFactor);F=p(U,_,F)}return r.transform!=null&&(F=r.transform(P,F)),F},h);if(r.animate){for(var S=0;S<s.length;S++){var C=s[S],A=w(C,S),k=r.animateFilter==null||r.animateFilter(C,S);if(k){var I=C.animation({position:A,duration:r.animationDuration,easing:r.animationEasing});t.animations.push(I)}else C.position(A)}if(r.fit){var N=o.animation({fit:{boundingBox:u.boundingBoxAt(w),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});t.animations.push(N)}else if(r.zoom!==void 0&&r.pan!==void 0){var L=o.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});t.animations.push(L)}t.animations.forEach(function(P){return P.play()}),t.one("layoutready",r.ready),t.emit({type:"layoutready",layout:t}),KW.all(t.animations.map(function(P){return P.promise()})).then(function(){t.one("layoutstop",r.stop),t.emit({type:"layoutstop",layout:t})})}else s.positions(w),r.fit&&o.fit(r.eles,r.padding),r.zoom!=null&&o.zoom(r.zoom),r.pan&&o.pan(r.pan),t.one("layoutready",r.ready),t.emit({type:"layoutready",layout:t}),t.one("layoutstop",r.stop),t.emit({type:"layoutstop",layout:t});return this},layout:function(t){var r=this.cy();return r.makeLayout(eo({},t,{eles:this}))}};Sxe.createLayout=Sxe.makeLayout=Sxe.layout;function sVn(e,t,r){var a=r._private,s=a.styleCache=a.styleCache||[],o;return(o=s[e])!=null||(o=s[e]=t(r)),o}function dke(e,t){return e=KF(e),function(a){return sVn(e,t,a)}}function fke(e,t){e=KF(e);var r=function(s){return t.call(s)};return function(){var s=this[0];if(s)return sVn(e,r,s)}}var Tm={recalculateRenderedStyle:function(t){var r=this.cy(),a=r.renderer(),s=r.styleEnabled();return a&&s&&a.recalculateRenderedStyle(this,t),this},dirtyStyleCache:function(){var t=this.cy(),r=function(o){return o._private.styleCache=null};if(t.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(s){r(s),s.connectedEdges().forEach(r)});return this},updateStyle:function(t){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var s=r.hasCompoundNodes(),o=this;t=!!(t||t===void 0),s&&(o=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var u=o;return t?u.emitAndNotify("style"):u.emit("style"),o.forEach(function(h){return h._private.styleDirty=!0}),this},cleanStyle:function(){var t=this.cy();if(t.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,t.style().apply(a))}},parsedStyle:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],s=a.cy();if(s.styleEnabled()&&a){a._private.styleDirty&&(a._private.styleDirty=!1,s.style().apply(a));var o=a._private.style[t];return o??(r?s.style().getDefaultProperty(t):null)}},numericStyle:function(t){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(t);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(t){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(t).units},renderedStyle:function(t){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,t)},style:function(t,r){var a=this.cy();if(!a.styleEnabled())return this;var s=!1,o=a.style();if(Vc(t)){var u=t;o.applyBypass(this,u,s),this.emitAndNotify("style")}else if(Ns(t))if(r===void 0){var h=this[0];return h?o.getStylePropertyValue(h,t):void 0}else o.applyBypass(this,t,r,s),this.emitAndNotify("style");else if(t===void 0){var f=this[0];return f?o.getRawStyle(f):void 0}return this},removeStyle:function(t){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,s=r.style(),o=this;if(t===void 0)for(var u=0;u<o.length;u++){var h=o[u];s.removeAllBypasses(h,a)}else{t=t.split(/\s+/);for(var f=0;f<o.length;f++){var p=o[f];s.removeBypasses(p,t,a)}}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 r=t.hasCompoundNodes(),a=this[0];if(a){var s=a._private,o=a.pstyle("opacity").value;if(!r)return o;var u=s.data.parent?a.parents():null;if(u)for(var h=0;h<u.length;h++){var f=u[h],p=f.pstyle("opacity").value;o=p*o}return o}},transparent:function(){var t=this.cy();if(!t.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var t=this.cy();if(!t.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function oit(e,t){var r=e._private,a=r.data.parent?e.parents():null;if(a)for(var s=0;s<a.length;s++){var o=a[s];if(!t(o))return!1}return!0}function Agt(e){var t=e.ok,r=e.edgeOkViaNode||e.ok,a=e.parentOk||e.ok;return function(){var s=this.cy();if(!s.styleEnabled())return!0;var o=this[0],u=s.hasCompoundNodes();if(o){var h=o._private;if(!t(o))return!1;if(o.isNode())return!u||oit(o,a);var f=h.source,p=h.target;return r(f)&&(!u||oit(f,r))&&(f===p||r(p)&&(!u||oit(p,r)))}}}var XW=dke("eleTakesUpSpace",function(e){return e.pstyle("display").value==="element"&&e.width()!==0&&(e.isNode()?e.height()!==0:!0)});Tm.takesUpSpace=fke("takesUpSpace",Agt({ok:XW}));var qIi=dke("eleInteractive",function(e){return e.pstyle("events").value==="yes"&&e.pstyle("visibility").value==="visible"&&XW(e)}),HIi=dke("parentInteractive",function(e){return e.pstyle("visibility").value==="visible"&&XW(e)});Tm.interactive=fke("interactive",Agt({ok:qIi,parentOk:HIi,edgeOkViaNode:XW}));Tm.noninteractive=function(){var e=this[0];if(e)return!e.interactive()};var VIi=dke("eleVisible",function(e){return e.pstyle("visibility").value==="visible"&&e.pstyle("opacity").pfValue!==0&&XW(e)}),YIi=XW;Tm.visible=fke("visible",Agt({ok:VIi,edgeOkViaNode:YIi}));Tm.hidden=function(){var e=this[0];if(e)return!e.visible()};Tm.isBundledBezier=fke("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1});Tm.bypass=Tm.css=Tm.style;Tm.renderedCss=Tm.renderedStyle;Tm.removeBypass=Tm.removeCss=Tm.removeStyle;Tm.pstyle=Tm.parsedStyle;var LO={};function Nxn(e){return function(){var t=arguments,r=[];if(t.length===2){var a=t[0],s=t[1];this.on(e.event,a,s)}else if(t.length===1&&Of(t[0])){var o=t[0];this.on(e.event,o)}else if(t.length===0||t.length===1&&Mh(t[0])){for(var u=t.length===1?t[0]:null,h=0;h<this.length;h++){var f=this[h],p=!e.ableField||f._private[e.ableField],m=f._private[e.field]!=e.value;if(e.overrideAble){var b=e.overrideAble(f);if(b!==void 0&&(p=b,!b))return this}p&&(f._private[e.field]=e.value,m&&r.push(f))}var _=this.spawn(r);_.updateStyle(),_.emit(e.event),u&&_.emit(u)}return this}}function QW(e){LO[e.field]=function(){var t=this[0];if(t){if(e.overrideField){var r=e.overrideField(t);if(r!==void 0)return r}return t._private[e.field]}},LO[e.on]=Nxn({event:e.on,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!0}),LO[e.off]=Nxn({event:e.off,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!1})}QW({field:"locked",overrideField:function(t){return t.cy().autolock()?!0:void 0},on:"lock",off:"unlock"});QW({field:"grabbable",overrideField:function(t){return t.cy().autoungrabify()||t.pannable()?!1:void 0},on:"grabify",off:"ungrabify"});QW({field:"selected",ableField:"selectable",overrideAble:function(t){return t.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"});QW({field:"selectable",overrideField:function(t){return t.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"});LO.deselect=LO.unselect;LO.grabbed=function(){var e=this[0];if(e)return e._private.grabbed};QW({field:"active",on:"activate",off:"unactivate"});QW({field:"pannable",on:"panify",off:"unpanify"});LO.inactive=function(){var e=this[0];if(e)return!e._private.active};var kb={},Oxn=function(t){return function(a){for(var s=this,o=[],u=0;u<s.length;u++){var h=s[u];if(h.isNode()){for(var f=!1,p=h.connectedEdges(),m=0;m<p.length;m++){var b=p[m],_=b.source(),w=b.target();if(t.noIncomingEdges&&w===h&&_!==h||t.noOutgoingEdges&&_===h&&w!==h){f=!0;break}}f||o.push(h)}}return this.spawn(o,!0).filter(a)}},Lxn=function(t){return function(r){for(var a=this,s=[],o=0;o<a.length;o++){var u=a[o];if(u.isNode())for(var h=u.connectedEdges(),f=0;f<h.length;f++){var p=h[f],m=p.source(),b=p.target();t.outgoing&&m===u?(s.push(p),s.push(b)):t.incoming&&b===u&&(s.push(p),s.push(m))}}return this.spawn(s,!0).filter(r)}},Dxn=function(t){return function(r){for(var a=this,s=[],o={};;){var u=t.outgoing?a.outgoers():a.incomers();if(u.length===0)break;for(var h=!1,f=0;f<u.length;f++){var p=u[f],m=p.id();o[m]||(o[m]=!0,s.push(p),h=!0)}if(!h)break;a=u}return this.spawn(s,!0).filter(r)}};kb.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null};eo(kb,{roots:Oxn({noIncomingEdges:!0}),leaves:Oxn({noOutgoingEdges:!0}),outgoers:oS(Lxn({outgoing:!0}),"outgoers"),successors:Dxn({outgoing:!0}),incomers:oS(Lxn({incoming:!0}),"incomers"),predecessors:Dxn({})});eo(kb,{neighborhood:oS(function(e){for(var t=[],r=this.nodes(),a=0;a<r.length;a++)for(var s=r[a],o=s.connectedEdges(),u=0;u<o.length;u++){var h=o[u],f=h.source(),p=h.target(),m=s===f?p:f;m.length>0&&t.push(m[0]),t.push(h[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}});kb.neighbourhood=kb.neighborhood;kb.closedNeighbourhood=kb.closedNeighborhood;kb.openNeighbourhood=kb.openNeighborhood;eo(kb,{source:oS(function(t){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&t?a.filter(t):a},"source"),target:oS(function(t){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&t?a.filter(t):a},"target"),sources:Mxn({attr:"source"}),targets:Mxn({attr:"target"})});function Mxn(e){return function(r){for(var a=[],s=0;s<this.length;s++){var o=this[s],u=o._private[e.attr];u&&a.push(u)}return this.spawn(a,!0).filter(r)}}eo(kb,{edgesWith:oS(Pxn(),"edgesWith"),edgesTo:oS(Pxn({thisIsSrc:!0}),"edgesTo")});function Pxn(e){return function(r){var a=[],s=this._private.cy,o=e||{};Ns(r)&&(r=s.$(r));for(var u=0;u<r.length;u++)for(var h=r[u]._private.edges,f=0;f<h.length;f++){var p=h[f],m=p._private.data,b=this.hasElementWithId(m.source)&&r.hasElementWithId(m.target),_=r.hasElementWithId(m.source)&&this.hasElementWithId(m.target),w=b||_;w&&((o.thisIsSrc||o.thisIsTgt)&&(o.thisIsSrc&&!b||o.thisIsTgt&&!_)||a.push(p))}return this.spawn(a,!0)}}eo(kb,{connectedEdges:oS(function(e){for(var t=[],r=this,a=0;a<r.length;a++){var s=r[a];if(s.isNode())for(var o=s._private.edges,u=0;u<o.length;u++){var h=o[u];t.push(h)}}return this.spawn(t,!0).filter(e)},"connectedEdges"),connectedNodes:oS(function(e){for(var t=[],r=this,a=0;a<r.length;a++){var s=r[a];s.isEdge()&&(t.push(s.source()[0]),t.push(s.target()[0]))}return this.spawn(t,!0).filter(e)},"connectedNodes"),parallelEdges:oS(Bxn(),"parallelEdges"),codirectedEdges:oS(Bxn({codirected:!0}),"codirectedEdges")});function Bxn(e){var t={codirected:!1};return e=eo({},t,e),function(a){for(var s=[],o=this.edges(),u=e,h=0;h<o.length;h++)for(var f=o[h],p=f._private,m=p.source,b=m._private.data.id,_=p.data.target,w=m._private.edges,S=0;S<w.length;S++){var C=w[S],A=C._private.data,k=A.target,I=A.source,N=k===_&&I===b,L=b===k&&_===I;(u.codirected&&N||!u.codirected&&(N||L))&&s.push(C)}return this.spawn(s,!0).filter(a)}}eo(kb,{components:function(t){var r=this,a=r.cy(),s=a.collection(),o=t==null?r.nodes():t.nodes(),u=[];t!=null&&o.empty()&&(o=t.sources());var h=function(m,b){s.merge(m),o.unmerge(m),b.merge(m)};if(o.empty())return r.spawn();var f=function(){var m=a.collection();u.push(m);var b=o[0];h(b,m),r.bfs({directed:!1,roots:b,visit:function(w){return h(w,m)}}),m.forEach(function(_){_.connectedEdges().forEach(function(w){r.has(w)&&m.has(w.source())&&m.has(w.target())&&m.merge(w)})})};do f();while(o.length>0);return u},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}});kb.componentsOf=kb.components;var Cm=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t===void 0){jd("A collection must have a reference to the core");return}var o=new k7,u=!1;if(!r)r=[];else if(r.length>0&&Vc(r[0])&&!Ece(r[0])){u=!0;for(var h=[],f=new WW,p=0,m=r.length;p<m;p++){var b=r[p];b.data==null&&(b.data={});var _=b.data;if(_.id==null)_.id=_Hn();else if(t.hasElementWithId(_.id)||f.has(_.id))continue;var w=new rke(t,b,!1);h.push(w),f.add(_.id)}r=h}this.length=0;for(var S=0,C=r.length;S<C;S++){var A=r[S][0];if(A!=null){var k=A._private.data.id;(!a||!o.has(k))&&(a&&o.set(k,{index:this.length,ele:A}),this[this.length]=A,this.length++)}}this._private={eles:this,cy:t,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(I){this.lazyMap=I},rebuildMap:function(){for(var N=this.lazyMap=new k7,L=this.eles,P=0;P<L.length;P++){var M=L[P];N.set(M.id(),{index:P,ele:M})}}},a&&(this._private.map=o),u&&!s&&this.restore()},nd=rke.prototype=Cm.prototype=Object.create(Array.prototype);nd.instanceString=function(){return"collection"};nd.spawn=function(e,t){return new Cm(this.cy(),e,t)};nd.spawnSelf=function(){return this.spawn(this)};nd.cy=function(){return this._private.cy};nd.renderer=function(){return this._private.cy.renderer()};nd.element=function(){return this[0]};nd.collection=function(){return sHn(this)?this:new Cm(this._private.cy,[this])};nd.unique=function(){return new Cm(this._private.cy,this,!0)};nd.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)};nd.getElementById=function(e){e=""+e;var t=this._private.cy,r=this._private.map.get(e);return r?r.ele:new Cm(t)};nd.$id=nd.getElementById;nd.poolIndex=function(){var e=this._private.cy,t=e._private.elements,r=this[0]._private.data.id;return t._private.map.get(r).index};nd.indexOf=function(e){var t=e[0]._private.data.id;return this._private.map.get(t).index};nd.indexOfId=function(e){return e=""+e,this._private.map.get(e).index};nd.json=function(e){var t=this.element(),r=this.cy();if(t==null&&e)return this;if(t!=null){var a=t._private;if(Vc(e)){if(r.startBatch(),e.data){t.data(e.data);var s=a.data;if(t.isEdge()){var o=!1,u={},h=e.data.source,f=e.data.target;h!=null&&h!=s.source&&(u.source=""+h,o=!0),f!=null&&f!=s.target&&(u.target=""+f,o=!0),o&&(t=t.move(u))}else{var p="parent"in e.data,m=e.data.parent;p&&(m!=null||s.parent!=null)&&m!=s.parent&&(m===void 0&&(m=null),m!=null&&(m=""+m),t=t.move({parent:m}))}}e.position&&t.position(e.position);var b=function(C,A,k){var I=e[C];I!=null&&I!==a[C]&&(I?t[A]():t[k]())};return b("removed","remove","restore"),b("selected","select","unselect"),b("selectable","selectify","unselectify"),b("locked","lock","unlock"),b("grabbable","grabify","ungrabify"),b("pannable","panify","unpanify"),e.classes!=null&&t.classes(e.classes),r.endBatch(),this}else if(e===void 0){var _={data:JC(a.data),position:JC(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};_.classes="";var w=0;return a.classes.forEach(function(S){return _.classes+=w++===0?S:" "+S}),_}}};nd.jsons=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t],a=r.json();e.push(a)}return e};nd.clone=function(){for(var e=this.cy(),t=[],r=0;r<this.length;r++){var a=this[r],s=a.json(),o=new rke(e,s,!1);t.push(o)}return new Cm(e,t)};nd.copy=nd.clone;nd.restore=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),s=a._private,o=[],u=[],h,f=0,p=r.length;f<p;f++){var m=r[f];t&&!m.removed()||(m.isNode()?o.push(m):u.push(m))}h=o.concat(u);var b,_=function(){h.splice(b,1),b--};for(b=0;b<h.length;b++){var w=h[b],S=w._private,C=S.data;if(w.clearTraversalCache(),!(!t&&!S.removed)){if(C.id===void 0)C.id=_Hn();else if(aa(C.id))C.id=""+C.id;else if(a9(C.id)||!Ns(C.id)){jd("Can not create element with invalid string ID `"+C.id+"`"),_();continue}else if(a.hasElementWithId(C.id)){jd("Can not create second element with ID `"+C.id+"`"),_();continue}}var A=C.id;if(w.isNode()){var k=S.position;k.x==null&&(k.x=0),k.y==null&&(k.y=0)}if(w.isEdge()){for(var I=w,N=["source","target"],L=N.length,P=!1,M=0;M<L;M++){var F=N[M],U=C[F];aa(U)&&(U=C[F]=""+C[F]),U==null||U===""?(jd("Can not create edge `"+A+"` with unspecified "+F),P=!0):a.hasElementWithId(U)||(jd("Can not create edge `"+A+"` with nonexistant "+F+" `"+U+"`"),P=!0)}if(P){_();continue}var $=a.getElementById(C.source),G=a.getElementById(C.target);$.same(G)?$._private.edges.push(I):($._private.edges.push(I),G._private.edges.push(I)),I._private.source=$,I._private.target=G}S.map=new k7,S.map.set(A,{ele:w,index:0}),S.removed=!1,t&&a.addToPool(w)}for(var B=0;B<o.length;B++){var Z=o[B],z=Z._private.data;aa(z.parent)&&(z.parent=""+z.parent);var Y=z.parent,W=Y!=null;if(W||Z._private.parent){var Q=Z._private.parent?a.collection().merge(Z._private.parent):a.getElementById(Y);if(Q.empty())z.parent=void 0;else if(Q[0].removed())Uu("Node added with missing parent, reference to parent removed"),z.parent=void 0,Z._private.parent=null;else{for(var V=!1,j=Q;!j.empty();){if(Z.same(j)){V=!0,z.parent=void 0;break}j=j.parent()}V||(Q[0]._private.children.push(Z),Z._private.parent=Q[0],s.hasCompoundNodes=!0)}}}if(h.length>0){for(var ee=h.length===r.length?r:new Cm(a,h),te=0;te<ee.length;te++){var ne=ee[te];ne.isNode()||(ne.parallelEdges().clearTraversalCache(),ne.source().clearTraversalCache(),ne.target().clearTraversalCache())}var se;s.hasCompoundNodes?se=a.collection().merge(ee).merge(ee.connectedNodes()).merge(ee.parent()):se=ee,se.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(e),e?ee.emitAndNotify("add"):t&&ee.emit("add")}return r};nd.removed=function(){var e=this[0];return e&&e._private.removed};nd.inside=function(){var e=this[0];return e&&!e._private.removed};nd.remove=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],s={},o=r._private.cy;function u(Y){for(var W=Y._private.edges,Q=0;Q<W.length;Q++)f(W[Q])}function h(Y){for(var W=Y._private.children,Q=0;Q<W.length;Q++)f(W[Q])}function f(Y){var W=s[Y.id()];t&&Y.removed()||W||(s[Y.id()]=!0,Y.isNode()?(a.push(Y),u(Y),h(Y)):a.unshift(Y))}for(var p=0,m=r.length;p<m;p++){var b=r[p];f(b)}function _(Y,W){var Q=Y._private.edges;s9(Q,W),Y.clearTraversalCache()}function w(Y){Y.clearTraversalCache()}var S=[];S.ids={};function C(Y,W){W=W[0],Y=Y[0];var Q=Y._private.children,V=Y.id();s9(Q,W),W._private.parent=null,S.ids[V]||(S.ids[V]=!0,S.push(Y))}r.dirtyCompoundBoundsCache(),t&&o.removeFromPool(a);for(var A=0;A<a.length;A++){var k=a[A];if(k.isEdge()){var I=k.source()[0],N=k.target()[0];_(I,k),_(N,k);for(var L=k.parallelEdges(),P=0;P<L.length;P++){var M=L[P];w(M),M.isBundledBezier()&&M.dirtyBoundingBoxCache()}}else{var F=k.parent();F.length!==0&&C(F,k)}t&&(k._private.removed=!0)}var U=o._private.elements;o._private.hasCompoundNodes=!1;for(var $=0;$<U.length;$++){var G=U[$];if(G.isParent()){o._private.hasCompoundNodes=!0;break}}var B=new Cm(this.cy(),a);B.size()>0&&(e?B.emitAndNotify("remove"):t&&B.emit("remove"));for(var Z=0;Z<S.length;Z++){var z=S[Z];(!t||!z.removed())&&z.updateStyle()}return B};nd.move=function(e){var t=this._private.cy,r=this,a=!1,s=!1,o=function(S){return S==null?S:""+S};if(e.source!==void 0||e.target!==void 0){var u=o(e.source),h=o(e.target),f=u!=null&&t.hasElementWithId(u),p=h!=null&&t.hasElementWithId(h);(f||p)&&(t.batch(function(){r.remove(a,s),r.emitAndNotify("moveout");for(var w=0;w<r.length;w++){var S=r[w],C=S._private.data;S.isEdge()&&(f&&(C.source=u),p&&(C.target=h))}r.restore(a,s)}),r.emitAndNotify("move"))}else if(e.parent!==void 0){var m=o(e.parent),b=m===null||t.hasElementWithId(m);if(b){var _=m===null?void 0:m;t.batch(function(){var w=r.remove(a,s);w.emitAndNotify("moveout");for(var S=0;S<r.length;S++){var C=r[S],A=C._private.data;C.isNode()&&(A.parent=_)}w.restore(a,s)}),r.emitAndNotify("move")}}return this};[OHn,rIi,xxe,OO,Gj,vIi,uke,MIi,rVn,iVn,UIi,Y3e,Sxe,Tm,LO,kb].forEach(function(e){eo(nd,e)});var jIi={add:function(t){var r,a=this;if(Bw(t)){var s=t;if(s._private.cy===a)r=s.restore();else{for(var o=[],u=0;u<s.length;u++){var h=s[u];o.push(h.json())}r=new Cm(a,o)}}else if(Mh(t)){var f=t;r=new Cm(a,f)}else if(Vc(t)&&(Mh(t.nodes)||Mh(t.edges))){for(var p=t,m=[],b=["nodes","edges"],_=0,w=b.length;_<w;_++){var S=b[_],C=p[S];if(Mh(C))for(var A=0,k=C.length;A<k;A++){var I=eo({group:S},C[A]);m.push(I)}}r=new Cm(a,m)}else{var N=t;r=new rke(a,N).collection()}return r},remove:function(t){if(!Bw(t)){if(Ns(t)){var r=t;t=this.$(r)}}return t.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function WIi(e,t,r,a){var s=4,o=.001,u=1e-7,h=10,f=11,p=1/(f-1),m=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var b=0;b<4;++b)if(typeof arguments[b]!="number"||isNaN(arguments[b])||!isFinite(arguments[b]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var _=m?new Float32Array(f):new Array(f);function w(G,B){return 1-3*B+3*G}function S(G,B){return 3*B-6*G}function C(G){return 3*G}function A(G,B,Z){return((w(B,Z)*G+S(B,Z))*G+C(B))*G}function k(G,B,Z){return 3*w(B,Z)*G*G+2*S(B,Z)*G+C(B)}function I(G,B){for(var Z=0;Z<s;++Z){var z=k(B,e,r);if(z===0)return B;var Y=A(B,e,r)-G;B-=Y/z}return B}function N(){for(var G=0;G<f;++G)_[G]=A(G*p,e,r)}function L(G,B,Z){var z,Y,W=0;do Y=B+(Z-B)/2,z=A(Y,e,r)-G,z>0?Z=Y:B=Y;while(Math.abs(z)>u&&++W<h);return Y}function P(G){for(var B=0,Z=1,z=f-1;Z!==z&&_[Z]<=G;++Z)B+=p;--Z;var Y=(G-_[Z])/(_[Z+1]-_[Z]),W=B+Y*p,Q=k(W,e,r);return Q>=o?I(G,W):Q===0?W:L(G,B,B+p)}var M=!1;function F(){M=!0,(e!==t||r!==a)&&N()}var U=function(B){return M||F(),e===t&&r===a?B:B===0?0:B===1?1:A(P(B),t,a)};U.getControlPoints=function(){return[{x:e,y:t},{x:r,y:a}]};var $="generateBezier("+[e,t,r,a]+")";return U.toString=function(){return $},U}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var KIi=function(){function e(a){return-a.tension*a.x-a.friction*a.v}function t(a,s,o){var u={x:a.x+o.dx*s,v:a.v+o.dv*s,tension:a.tension,friction:a.friction};return{dx:u.v,dv:e(u)}}function r(a,s){var o={dx:a.v,dv:e(a)},u=t(a,s*.5,o),h=t(a,s*.5,u),f=t(a,s,h),p=1/6*(o.dx+2*(u.dx+h.dx)+f.dx),m=1/6*(o.dv+2*(u.dv+h.dv)+f.dv);return a.x=a.x+p*s,a.v=a.v+m*s,a}return function a(s,o,u){var h={x:-1,v:0,tension:null,friction:null},f=[0],p=0,m=1/1e4,b=16/1e3,_,w,S;for(s=parseFloat(s)||500,o=parseFloat(o)||20,u=u||null,h.tension=s,h.friction=o,_=u!==null,_?(p=a(s,o),w=p/u*b):w=b;S=r(S||h,w),f.push(1+S.x),p+=16,Math.abs(S.x)>m&&Math.abs(S.v)>m;);return _?function(C){return f[C*(f.length-1)|0]}:p}}(),Kh=function(t,r,a,s){var o=WIi(t,r,a,s);return function(u,h,f){return u+(h-u)*o(f)}},Txe={linear:function(t,r,a){return t+(r-t)*a},ease:Kh(.25,.1,.25,1),"ease-in":Kh(.42,0,1,1),"ease-out":Kh(0,0,.58,1),"ease-in-out":Kh(.42,0,.58,1),"ease-in-sine":Kh(.47,0,.745,.715),"ease-out-sine":Kh(.39,.575,.565,1),"ease-in-out-sine":Kh(.445,.05,.55,.95),"ease-in-quad":Kh(.55,.085,.68,.53),"ease-out-quad":Kh(.25,.46,.45,.94),"ease-in-out-quad":Kh(.455,.03,.515,.955),"ease-in-cubic":Kh(.55,.055,.675,.19),"ease-out-cubic":Kh(.215,.61,.355,1),"ease-in-out-cubic":Kh(.645,.045,.355,1),"ease-in-quart":Kh(.895,.03,.685,.22),"ease-out-quart":Kh(.165,.84,.44,1),"ease-in-out-quart":Kh(.77,0,.175,1),"ease-in-quint":Kh(.755,.05,.855,.06),"ease-out-quint":Kh(.23,1,.32,1),"ease-in-out-quint":Kh(.86,0,.07,1),"ease-in-expo":Kh(.95,.05,.795,.035),"ease-out-expo":Kh(.19,1,.22,1),"ease-in-out-expo":Kh(1,0,0,1),"ease-in-circ":Kh(.6,.04,.98,.335),"ease-out-circ":Kh(.075,.82,.165,1),"ease-in-out-circ":Kh(.785,.135,.15,.86),spring:function(t,r,a){if(a===0)return Txe.linear;var s=KIi(t,r,a);return function(o,u,h){return o+(u-o)*s(h)}},"cubic-bezier":Kh};function Fxn(e,t,r,a,s){if(a===1||t===r)return r;var o=s(t,r,a);return e==null||((e.roundValue||e.color)&&(o=Math.round(o)),e.min!==void 0&&(o=Math.max(o,e.min)),e.max!==void 0&&(o=Math.min(o,e.max))),o}function $xn(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}function WH(e,t,r,a,s){var o=s!=null?s.type:null;r<0?r=0:r>1&&(r=1);var u=$xn(e,s),h=$xn(t,s);if(aa(u)&&aa(h))return Fxn(o,u,h,r,a);if(Mh(u)&&Mh(h)){for(var f=[],p=0;p<h.length;p++){var m=u[p],b=h[p];if(m!=null&&b!=null){var _=Fxn(o,m,b,r,a);f.push(_)}else f.push(b)}return f}}function XIi(e,t,r,a){var s=!a,o=e._private,u=t._private,h=u.easing,f=u.startTime,p=a?e:e.cy(),m=p.style();if(!u.easingImpl)if(h==null)u.easingImpl=Txe.linear;else{var b;if(Ns(h)){var _=m.parse("transition-timing-function",h);b=_.value}else b=h;var w,S;Ns(b)?(w=b,S=[]):(w=b[1],S=b.slice(2).map(function(ee){return+ee})),S.length>0?(w==="spring"&&S.push(u.duration),u.easingImpl=Txe[w].apply(null,S)):u.easingImpl=Txe[w]}var C=u.easingImpl,A;if(u.duration===0?A=1:A=(r-f)/u.duration,u.applying&&(A=u.progress),A<0?A=0:A>1&&(A=1),u.delay==null){var k=u.startPosition,I=u.position;if(I&&s&&!e.locked()){var N={};rie(k.x,I.x)&&(N.x=WH(k.x,I.x,A,C)),rie(k.y,I.y)&&(N.y=WH(k.y,I.y,A,C)),e.position(N)}var L=u.startPan,P=u.pan,M=o.pan,F=P!=null&&a;F&&(rie(L.x,P.x)&&(M.x=WH(L.x,P.x,A,C)),rie(L.y,P.y)&&(M.y=WH(L.y,P.y,A,C)),e.emit("pan"));var U=u.startZoom,$=u.zoom,G=$!=null&&a;G&&(rie(U,$)&&(o.zoom=Hoe(o.minZoom,WH(U,$,A,C),o.maxZoom)),e.emit("zoom")),(F||G)&&e.emit("viewport");var B=u.style;if(B&&B.length>0&&s){for(var Z=0;Z<B.length;Z++){var z=B[Z],Y=z.name,W=z,Q=u.startStyle[Y],V=m.properties[Q.name],j=WH(Q,W,A,C,V);m.overrideBypass(e,Y,j)}e.emit("style")}}return u.progress=A,A}function rie(e,t){return e==null||t==null?!1:aa(e)&&aa(t)?!0:!!(e&&t)}function QIi(e,t,r,a){var s=t._private;s.started=!0,s.startTime=r-s.progress*s.duration}function Uxn(e,t){var r=t._private.aniEles,a=[];function s(m,b){var _=m._private,w=_.animation.current,S=_.animation.queue,C=!1;if(w.length===0){var A=S.shift();A&&w.push(A)}for(var k=function(M){for(var F=M.length-1;F>=0;F--){var U=M[F];U()}M.splice(0,M.length)},I=w.length-1;I>=0;I--){var N=w[I],L=N._private;if(L.stopped){w.splice(I,1),L.hooked=!1,L.playing=!1,L.started=!1,k(L.frames);continue}!L.playing&&!L.applying||(L.playing&&L.applying&&(L.applying=!1),L.started||QIi(m,N,e),XIi(m,N,e,b),L.applying&&(L.applying=!1),k(L.frames),L.step!=null&&L.step(e),N.completed()&&(w.splice(I,1),L.hooked=!1,L.playing=!1,L.started=!1,k(L.completes)),C=!0)}return!b&&w.length===0&&S.length===0&&a.push(m),C}for(var o=!1,u=0;u<r.length;u++){var h=r[u],f=s(h);o=o||f}var p=s(t,!0);(o||p)&&(r.length>0?t.notify("draw",r):t.notify("draw")),r.unmerge(a),t.emit("step")}var ZIi={animate:Fu.animate(),animation:Fu.animation(),animated:Fu.animated(),clearQueue:Fu.clearQueue(),delay:Fu.delay(),delayAnimation:Fu.delayAnimation(),stop:Fu.stop(),addToAnimationPool:function(t){var r=this;r.styleEnabled()&&r._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,!t.styleEnabled())return;function r(){t._private.animationsRunning&&z3e(function(o){Uxn(o,t),r()})}var a=t.renderer();a&&a.beforeRender?a.beforeRender(function(o,u){Uxn(u,t)},a.beforeRenderPriorities.animations):r()}},JIi={qualifierCompare:function(t,r){return t==null||r==null?t==null&&r==null:t.sameText(r)},eventMatches:function(t,r,a){var s=r.qualifier;return s!=null?t!==a.target&&Ece(a.target)&&s.matches(a.target):!0},addEventFields:function(t,r){r.cy=t,r.target=t},callbackContext:function(t,r,a){return r.qualifier!=null?a.target:t}},Bwe=function(t){return Ns(t)?new l9(t):t},oVn={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new hke(JIi,this)),this},emitter:function(){return this._private.emitter},on:function(t,r,a){return this.emitter().on(t,Bwe(r),a),this},removeListener:function(t,r,a){return this.emitter().removeListener(t,Bwe(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,r,a){return this.emitter().one(t,Bwe(r),a),this},once:function(t,r,a){return this.emitter().one(t,Bwe(r),a),this},emit:function(t,r){return this.emitter().emit(t,r),this},emitAndNotify:function(t,r){return this.emit(t),this.notify(t,r),this}};Fu.eventAliasesOn(oVn);var uct={png:function(t){var r=this._private.renderer;return t=t||{},r.png(t)},jpg:function(t){var r=this._private.renderer;return t=t||{},t.bg=t.bg||"#fff",r.jpg(t)}};uct.jpeg=uct.jpg;var Cxe={layout:function(t){var r=this;if(t==null){jd("Layout options must be specified to make a layout");return}if(t.name==null){jd("A `name` must be specified to make a layout");return}var a=t.name,s=r.extension("layout",a);if(s==null){jd("No such layout `"+a+"` found.  Did you forget to import it and `cytoscape.use()` it?");return}var o;Ns(t.eles)?o=r.$(t.eles):o=t.eles!=null?t.eles:r.$();var u=new s(eo({},t,{cy:r,eles:o}));return u}};Cxe.createLayout=Cxe.makeLayout=Cxe.layout;var eNi={notify:function(t,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var s=a.batchNotifications[t]=a.batchNotifications[t]||this.collection();r!=null&&s.merge(r);return}if(a.notificationsEnabled){var o=this.renderer();this.destroyed()||!o||o.notify(t,r)}},notifications:function(t){var r=this._private;return t===void 0?r.notificationsEnabled:(r.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 t.batchCount==null&&(t.batchCount=0),t.batchCount===0&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(t.batchCount===0)return this;if(t.batchCount--,t.batchCount===0){t.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(t.batchNotifications).forEach(function(a){var s=t.batchNotifications[a];s.empty()?r.notify(a):r.notify(a,s)})}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var r=this;return this.batch(function(){for(var a=Object.keys(t),s=0;s<a.length;s++){var o=a[s],u=t[o],h=r.getElementById(o);h.data(u)}})}},tNi=Nm({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),hct={renderTo:function(t,r,a,s){var o=this._private.renderer;return o.renderTo(t,r,a,s),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 r=this,a=r.extension("renderer",t.name);if(a==null){jd("Can not initialise: No such renderer `".concat(t.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}t.wheelSensitivity!==void 0&&Uu("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 s=tNi(t);s.cy=r,r._private.renderer=new a(s),this.notify("init")},destroyRenderer:function(){var t=this;t.notify("destroy");var r=t.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach(function(a){var s=a._private;s.rscratch={},s.rstyle={},s.animation.current=[],s.animation.queue=[]})},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};hct.invalidateDimensions=hct.resize;var Axe={collection:function(t,r){return Ns(t)?this.$(t):Bw(t)?t.collection():Mh(t)?(r||(r={}),new Cm(this,t,r.unique,r.removed)):new Cm(this)},nodes:function(t){var r=this.$(function(a){return a.isNode()});return t?r.filter(t):r},edges:function(t){var r=this.$(function(a){return a.isEdge()});return t?r.filter(t):r},$:function(t){var r=this._private.elements;return t?r.filter(t):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Axe.elements=Axe.filter=Axe.$;var Dg={},Sse="t",nNi="f";Dg.apply=function(e){for(var t=this,r=t._private,a=r.cy,s=a.collection(),o=0;o<e.length;o++){var u=e[o],h=t.getContextMeta(u);if(!h.empty){var f=t.getContextStyle(h),p=t.applyContextStyle(h,f,u);u._private.appliedInitStyle?t.updateTransitions(u,p.diffProps):u._private.appliedInitStyle=!0;var m=t.updateStyleHints(u);m&&s.push(u)}}return s};Dg.getPropertiesDiff=function(e,t){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},s=e+"-"+t,o=a[s];if(o)return o;for(var u=[],h={},f=0;f<r.length;f++){var p=r[f],m=e[f]===Sse,b=t[f]===Sse,_=m!==b,w=p.mappedProperties.length>0;if(_||b&&w){var S=void 0;_&&w||_?S=p.properties:w&&(S=p.mappedProperties);for(var C=0;C<S.length;C++){for(var A=S[C],k=A.name,I=!1,N=f+1;N<r.length;N++){var L=r[N],P=t[N]===Sse;if(P&&(I=L.properties[A.name]!=null,I))break}!h[k]&&!I&&(h[k]=!0,u.push(k))}}}return a[s]=u,u};Dg.getContextMeta=function(e){for(var t=this,r="",a,s=e._private.styleCxtKey||"",o=0;o<t.length;o++){var u=t[o],h=u.selector&&u.selector.matches(e);h?r+=Sse:r+=nNi}return a=t.getPropertiesDiff(s,r),e._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}};Dg.getContextStyle=function(e){var t=e.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[t])return a[t];for(var s={_private:{key:t}},o=0;o<r.length;o++){var u=r[o],h=t[o]===Sse;if(h)for(var f=0;f<u.properties.length;f++){var p=u.properties[f];s[p.name]=p}}return a[t]=s,s};Dg.applyContextStyle=function(e,t,r){for(var a=this,s=e.diffPropNames,o={},u=a.types,h=0;h<s.length;h++){var f=s[h],p=t[f],m=r.pstyle(f);if(!p)if(m)m.bypass?p={name:f,deleteBypassed:!0}:p={name:f,delete:!0};else continue;if(m!==p){if(p.mapped===u.fn&&m!=null&&m.mapping!=null&&m.mapping.value===p.value){var b=m.mapping,_=b.fnValue=p.value(r);if(_===b.prevFnValue)continue}var w=o[f]={prev:m};a.applyParsedProperty(r,p),w.next=r.pstyle(f),w.next&&w.next.bypass&&(w.next=w.next.bypassed)}}return{diffProps:o}};Dg.updateStyleHints=function(e){var t=e._private,r=this,a=r.propertyGroupNames,s=r.propertyGroupKeys,o=function(we,Ce,Ie){return r.getPropertiesHash(we,Ce,Ie)},u=t.styleKey;if(e.removed())return!1;var h=t.group==="nodes",f=e._private.style;a=Object.keys(f);for(var p=0;p<s.length;p++){var m=s[p];t.styleKeys[m]=[FB,gV]}for(var b=function(we,Ce){return t.styleKeys[Ce][0]=zoe(we,t.styleKeys[Ce][0])},_=function(we,Ce){return t.styleKeys[Ce][1]=Goe(we,t.styleKeys[Ce][1])},w=function(we,Ce){b(we,Ce),_(we,Ce)},S=function(we,Ce){for(var Ie=0;Ie<we.length;Ie++){var Le=we.charCodeAt(Ie);b(Le,Ce),_(Le,Ce)}},C=2e9,A=function(we){return-128<we&&we<128&&Math.floor(we)!==we?C-(we*1024|0):we},k=0;k<a.length;k++){var I=a[k],N=f[I];if(N!=null){var L=this.properties[I],P=L.type,M=L.groupKey,F=void 0;L.hashOverride!=null?F=L.hashOverride(e,N):N.pfValue!=null&&(F=N.pfValue);var U=L.enums==null?N.value:null,$=F!=null,G=U!=null,B=$||G,Z=N.units;if(P.number&&B&&!P.multiple){var z=$?F:U;w(A(z),M),!$&&Z!=null&&S(Z,M)}else S(N.strValue,M)}}for(var Y=[FB,gV],W=0;W<s.length;W++){var Q=s[W],V=t.styleKeys[Q];Y[0]=zoe(V[0],Y[0]),Y[1]=Goe(V[1],Y[1])}t.styleKey=y7i(Y[0],Y[1]);var j=t.styleKeys;t.labelDimsKey=PN(j.labelDimensions);var ee=o(e,["label"],j.labelDimensions);if(t.labelKey=PN(ee),t.labelStyleKey=PN(Rwe(j.commonLabel,ee)),!h){var te=o(e,["source-label"],j.labelDimensions);t.sourceLabelKey=PN(te),t.sourceLabelStyleKey=PN(Rwe(j.commonLabel,te));var ne=o(e,["target-label"],j.labelDimensions);t.targetLabelKey=PN(ne),t.targetLabelStyleKey=PN(Rwe(j.commonLabel,ne))}if(h){var se=t.styleKeys,ie=se.nodeBody,ge=se.nodeBorder,ce=se.nodeOutline,be=se.backgroundImage,ve=se.compound,De=se.pie,ye=se.stripe,Ee=[ie,ge,ce,be,ve,De,ye].filter(function(he){return he!=null}).reduce(Rwe,[FB,gV]);t.nodeKey=PN(Ee),t.hasPie=De!=null&&De[0]!==FB&&De[1]!==gV,t.hasStripe=ye!=null&&ye[0]!==FB&&ye[1]!==gV}return u!==t.styleKey};Dg.clearStyleHints=function(e){var t=e._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null,t.hasStripe=null};Dg.applyParsedProperty=function(e,t){var r=this,a=t,s=e._private.style,o,u=r.types,h=r.properties[a.name].type,f=a.bypass,p=s[a.name],m=p&&p.bypass,b=e._private,_="mapping",w=function(ie){return ie==null?null:ie.pfValue!=null?ie.pfValue:ie.value},S=function(){var ie=w(p),ge=w(a);r.checkTriggers(e,a.name,ie,ge)};if(t.name==="curve-style"&&e.isEdge()&&(t.value!=="bezier"&&e.isLoop()||t.value==="haystack"&&(e.source().isParent()||e.target().isParent()))&&(a=t=this.parse(t.name,"bezier",f)),a.delete)return s[a.name]=void 0,S(),!0;if(a.deleteBypassed)return p?p.bypass?(p.bypassed=void 0,S(),!0):!1:(S(),!0);if(a.deleteBypass)return p?p.bypass?(s[a.name]=p.bypassed,S(),!0):!1:(S(),!0);var C=function(){Uu("Do not assign mappings to elements without corresponding data (i.e. ele `"+e.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case u.mapData:{for(var A=a.field.split("."),k=b.data,I=0;I<A.length&&k;I++){var N=A[I];k=k[N]}if(k==null)return C(),!1;var L;if(aa(k)){var P=a.fieldMax-a.fieldMin;P===0?L=0:L=(k-a.fieldMin)/P}else return Uu("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+k+"` for `"+e.id()+"` is non-numeric)"),!1;if(L<0?L=0:L>1&&(L=1),h.color){var M=a.valueMin[0],F=a.valueMax[0],U=a.valueMin[1],$=a.valueMax[1],G=a.valueMin[2],B=a.valueMax[2],Z=a.valueMin[3]==null?1:a.valueMin[3],z=a.valueMax[3]==null?1:a.valueMax[3],Y=[Math.round(M+(F-M)*L),Math.round(U+($-U)*L),Math.round(G+(B-G)*L),Math.round(Z+(z-Z)*L)];o={bypass:a.bypass,name:a.name,value:Y,strValue:"rgb("+Y[0]+", "+Y[1]+", "+Y[2]+")"}}else if(h.number){var W=a.valueMin+(a.valueMax-a.valueMin)*L;o=this.parse(a.name,W,a.bypass,_)}else return!1;if(!o)return C(),!1;o.mapping=a,a=o;break}case u.data:{for(var Q=a.field.split("."),V=b.data,j=0;j<Q.length&&V;j++){var ee=Q[j];V=V[ee]}if(V!=null&&(o=this.parse(a.name,V,a.bypass,_)),!o)return C(),!1;o.mapping=a,a=o;break}case u.fn:{var te=a.value,ne=a.fnValue!=null?a.fnValue:te(e);if(a.prevFnValue=ne,ne==null)return Uu("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+e.id()+"` is null)"),!1;if(o=this.parse(a.name,ne,a.bypass,_),!o)return Uu("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+e.id()+"` is invalid)"),!1;o.mapping=JC(a),a=o;break}case void 0:break;default:return!1}return f?(m?a.bypassed=p.bypassed:a.bypassed=p,s[a.name]=a):m?p.bypassed=a:s[a.name]=a,S(),!0};Dg.cleanElements=function(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!t)a._private.style={};else for(var s=a._private.style,o=Object.keys(s),u=0;u<o.length;u++){var h=o[u],f=s[h];f!=null&&(f.bypass?f.bypassed=null:s[h]=null)}}};Dg.update=function(){var e=this._private.cy,t=e.mutableElements();t.updateStyle()};Dg.updateTransitions=function(e,t){var r=this,a=e._private,s=e.pstyle("transition-property").value,o=e.pstyle("transition-duration").pfValue,u=e.pstyle("transition-delay").pfValue;if(s.length>0&&o>0){for(var h={},f=!1,p=0;p<s.length;p++){var m=s[p],b=e.pstyle(m),_=t[m];if(_){var w=_.prev,S=w,C=_.next!=null?_.next:b,A=!1,k=void 0,I=1e-6;S&&(aa(S.pfValue)&&aa(C.pfValue)?(A=C.pfValue-S.pfValue,k=S.pfValue+I*A):aa(S.value)&&aa(C.value)?(A=C.value-S.value,k=S.value+I*A):Mh(S.value)&&Mh(C.value)&&(A=S.value[0]!==C.value[0]||S.value[1]!==C.value[1]||S.value[2]!==C.value[2],k=S.strValue),A&&(h[m]=C.strValue,this.applyBypass(e,m,k),f=!0))}}if(!f)return;a.transitioning=!0,new KW(function(N){u>0?e.delayAnimation(u).play().promise().then(N):N()}).then(function(){return e.animation({style:h,duration:o,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(e,s),e.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(e,s),e.emitAndNotify("style"),a.transitioning=!1)};Dg.checkTrigger=function(e,t,r,a,s,o){var u=this.properties[t],h=s(u);e.removed()||h!=null&&h(r,a,e)&&o(u)};Dg.checkZOrderTrigger=function(e,t,r,a){var s=this;this.checkTrigger(e,t,r,a,function(o){return o.triggersZOrder},function(){s._private.cy.notify("zorder",e)})};Dg.checkBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBounds},function(s){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})};Dg.checkConnectedEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBoundsOfConnectedEdges},function(s){e.connectedEdges().forEach(function(o){o.dirtyBoundingBoxCache()})})};Dg.checkParallelEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBoundsOfParallelEdges},function(s){e.parallelEdges().forEach(function(o){o.dirtyBoundingBoxCache()})})};Dg.checkTriggers=function(e,t,r,a){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,r,a),this.checkBoundsTrigger(e,t,r,a),this.checkConnectedEdgesBoundsTrigger(e,t,r,a),this.checkParallelEdgesBoundsTrigger(e,t,r,a)};var Rce={};Rce.applyBypass=function(e,t,r,a){var s=this,o=[],u=!0;if(t==="*"||t==="**"){if(r!==void 0)for(var h=0;h<s.properties.length;h++){var f=s.properties[h],p=f.name,m=this.parse(p,r,!0);m&&o.push(m)}}else if(Ns(t)){var b=this.parse(t,r,!0);b&&o.push(b)}else if(Vc(t)){var _=t;a=r;for(var w=Object.keys(_),S=0;S<w.length;S++){var C=w[S],A=_[C];if(A===void 0&&(A=_[tke(C)]),A!==void 0){var k=this.parse(C,A,!0);k&&o.push(k)}}}else return!1;if(o.length===0)return!1;for(var I=!1,N=0;N<e.length;N++){for(var L=e[N],P={},M=void 0,F=0;F<o.length;F++){var U=o[F];if(a){var $=L.pstyle(U.name);M=P[U.name]={prev:$}}I=this.applyParsedProperty(L,JC(U))||I,a&&(M.next=L.pstyle(U.name))}I&&this.updateStyleHints(L),a&&this.updateTransitions(L,P,u)}return I};Rce.overrideBypass=function(e,t,r){t=fgt(t);for(var a=0;a<e.length;a++){var s=e[a],o=s._private.style[t],u=this.properties[t].type,h=u.color,f=u.mutiple,p=o?o.pfValue!=null?o.pfValue:o.value:null;!o||!o.bypass?this.applyBypass(s,t,r):(o.value=r,o.pfValue!=null&&(o.pfValue=r),h?o.strValue="rgb("+r.join(",")+")":f?o.strValue=r.join(" "):o.strValue=""+r,this.updateStyleHints(s)),this.checkTriggers(s,t,p,r)}};Rce.removeAllBypasses=function(e,t){return this.removeBypasses(e,this.propertyNames,t)};Rce.removeBypasses=function(e,t,r){for(var a=!0,s=0;s<e.length;s++){for(var o=e[s],u={},h=0;h<t.length;h++){var f=t[h],p=this.properties[f],m=o.pstyle(p.name);if(!(!m||!m.bypass)){var b="",_=this.parse(f,b,!0),w=u[p.name]={prev:m};this.applyParsedProperty(o,_),w.next=o.pstyle(p.name)}}this.updateStyleHints(o),r&&this.updateTransitions(o,u,a)}};var kgt={};kgt.getEmSizeInPixels=function(){var e=this.containerCss("font-size");return e!=null?parseFloat(e):1};kgt.containerCss=function(e){var t=this._private.cy,r=t.container(),a=t.window();if(a&&r&&a.getComputedStyle)return a.getComputedStyle(r).getPropertyValue(e)};var _A={};_A.getRenderedStyle=function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)};_A.getRawStyle=function(e,t){var r=this;if(e=e[0],e){for(var a={},s=0;s<r.properties.length;s++){var o=r.properties[s],u=r.getStylePropertyValue(e,o.name,t);u!=null&&(a[o.name]=u,a[tke(o.name)]=u)}return a}};_A.getIndexedStyle=function(e,t,r,a){var s=e.pstyle(t)[r][a];return s??e.cy().style().getDefaultProperty(t)[r][0]};_A.getStylePropertyValue=function(e,t,r){var a=this;if(e=e[0],e){var s=a.properties[t];s.alias&&(s=s.pointsTo);var o=s.type,u=e.pstyle(s.name);if(u){var h=u.value,f=u.units,p=u.strValue;if(r&&o.number&&h!=null&&aa(h)){var m=e.cy().zoom(),b=function(A){return A*m},_=function(A,k){return b(A)+k},w=Mh(h),S=w?f.every(function(C){return C!=null}):f!=null;return S?w?h.map(function(C,A){return _(C,f[A])}).join(" "):_(h,f):w?h.map(function(C){return Ns(C)?C:""+b(C)}).join(" "):""+b(h)}else if(p!=null)return p}return null}};_A.getAnimationStartStyle=function(e,t){for(var r={},a=0;a<t.length;a++){var s=t[a],o=s.name,u=e.pstyle(o);u!==void 0&&(Vc(u)?u=this.parse(o,u.strValue):u=this.parse(o,u)),u&&(r[o]=u)}return r};_A.getPropsList=function(e){var t=this,r=[],a=e,s=t.properties;if(a)for(var o=Object.keys(a),u=0;u<o.length;u++){var h=o[u],f=a[h],p=s[h]||s[fgt(h)],m=this.parse(p.name,f);m&&r.push(m)}return r};_A.getNonDefaultPropertiesHash=function(e,t,r){var a=r.slice(),s,o,u,h,f,p;for(f=0;f<t.length;f++)if(s=t[f],o=e.pstyle(s,!1),o!=null)if(o.pfValue!=null)a[0]=zoe(h,a[0]),a[1]=Goe(h,a[1]);else for(u=o.strValue,p=0;p<u.length;p++)h=u.charCodeAt(p),a[0]=zoe(h,a[0]),a[1]=Goe(h,a[1]);return a};_A.getPropertiesHash=_A.getNonDefaultPropertiesHash;var pke={};pke.appendFromJson=function(e){for(var t=this,r=0;r<e.length;r++){var a=e[r],s=a.selector,o=a.style||a.css,u=Object.keys(o);t.selector(s);for(var h=0;h<u.length;h++){var f=u[h],p=o[f];t.css(f,p)}}return t};pke.fromJson=function(e){var t=this;return t.resetToDefault(),t.appendFromJson(e),t};pke.json=function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var r=this[t],a=r.selector,s=r.properties,o={},u=0;u<s.length;u++){var h=s[u];o[h.name]=h.strValue}e.push({selector:a?a.toString():"core",style:o})}return e};var Rgt={};Rgt.appendFromString=function(e){var t=this,r=this,a=""+e,s,o,u;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function h(){a.length>s.length?a=a.substr(s.length):a=""}function f(){o.length>u.length?o=o.substr(u.length):o=""}for(;;){var p=a.match(/^\s*$/);if(p)break;var m=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!m){Uu("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}s=m[0];var b=m[1];if(b!=="core"){var _=new l9(b);if(_.invalid){Uu("Skipping parsing of block: Invalid selector found in string stylesheet: "+b),h();continue}}var w=m[2],S=!1;o=w;for(var C=[];;){var A=o.match(/^\s*$/);if(A)break;var k=o.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!k){Uu("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+w),S=!0;break}u=k[0];var I=k[1],N=k[2],L=t.properties[I];if(!L){Uu("Skipping property: Invalid property name in: "+u),f();continue}var P=r.parse(I,N);if(!P){Uu("Skipping property: Invalid property definition in: "+u),f();continue}C.push({name:I,val:N}),f()}if(S){h();break}r.selector(b);for(var M=0;M<C.length;M++){var F=C[M];r.css(F.name,F.val)}h()}return r};Rgt.fromString=function(e){var t=this;return t.resetToDefault(),t.appendFromString(e),t};var w1={};(function(){var e=Ip,t=X6i,r=Z6i,a=J6i,s=e7i,o=function(he){return"^"+he+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},u=function(he){var we=e+"|\\w+|"+t+"|"+r+"|"+a+"|"+s;return"^"+he+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+e+")\\s*\\,\\s*("+e+")\\s*,\\s*("+we+")\\s*\\,\\s*("+we+")\\)$"},h=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];w1.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},nonNegativeNumber:{number:!0,min: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"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},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","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},boxSelection:{enums:["contain","overlap","none"]},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"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},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","circle"]},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","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},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"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},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:u("mapData")},mapLayoutData:{mapping:!0,regex:u("mapLayoutData")},mapScratch:{mapping:!0,regex:u("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:h,singleRegexMatchValue:!0},urls:{regexes:h,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","endpoints"]},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(he,we){switch(he.length){case 2:return we[0]!=="deg"&&we[0]!=="rad"&&we[1]!=="deg"&&we[1]!=="rad";case 1:return Ns(he[0])||we[0]==="deg"||we[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\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(he){var we=he.length;return we===1||we===2||we===4}}};var f={zeroNonZero:function(he,we){return(he==null||we==null)&&he!==we||he==0&&we!=0?!0:he!=0&&we==0},any:function(he,we){return he!=we},emptyNonEmpty:function(he,we){var Ce=a9(he),Ie=a9(we);return Ce&&!Ie||!Ce&&Ie}},p=w1.types,m=[{name:"label",type:p.text,triggersBounds:f.any,triggersZOrder:f.emptyNonEmpty},{name:"text-rotation",type:p.textRotation,triggersBounds:f.any},{name:"text-margin-x",type:p.bidirectionalSize,triggersBounds:f.any},{name:"text-margin-y",type:p.bidirectionalSize,triggersBounds:f.any}],b=[{name:"source-label",type:p.text,triggersBounds:f.any},{name:"source-text-rotation",type:p.textRotation,triggersBounds:f.any},{name:"source-text-margin-x",type:p.bidirectionalSize,triggersBounds:f.any},{name:"source-text-margin-y",type:p.bidirectionalSize,triggersBounds:f.any},{name:"source-text-offset",type:p.size,triggersBounds:f.any}],_=[{name:"target-label",type:p.text,triggersBounds:f.any},{name:"target-text-rotation",type:p.textRotation,triggersBounds:f.any},{name:"target-text-margin-x",type:p.bidirectionalSize,triggersBounds:f.any},{name:"target-text-margin-y",type:p.bidirectionalSize,triggersBounds:f.any},{name:"target-text-offset",type:p.size,triggersBounds:f.any}],w=[{name:"font-family",type:p.fontFamily,triggersBounds:f.any},{name:"font-style",type:p.fontStyle,triggersBounds:f.any},{name:"font-weight",type:p.fontWeight,triggersBounds:f.any},{name:"font-size",type:p.size,triggersBounds:f.any},{name:"text-transform",type:p.textTransform,triggersBounds:f.any},{name:"text-wrap",type:p.textWrap,triggersBounds:f.any},{name:"text-overflow-wrap",type:p.textOverflowWrap,triggersBounds:f.any},{name:"text-max-width",type:p.size,triggersBounds:f.any},{name:"text-outline-width",type:p.size,triggersBounds:f.any},{name:"line-height",type:p.positiveNumber,triggersBounds:f.any}],S=[{name:"text-valign",type:p.valign,triggersBounds:f.any},{name:"text-halign",type:p.halign,triggersBounds:f.any},{name:"color",type:p.color},{name:"text-outline-color",type:p.color},{name:"text-outline-opacity",type:p.zeroOneNumber},{name:"text-background-color",type:p.color},{name:"text-background-opacity",type:p.zeroOneNumber},{name:"text-background-padding",type:p.size,triggersBounds:f.any},{name:"text-border-opacity",type:p.zeroOneNumber},{name:"text-border-color",type:p.color},{name:"text-border-width",type:p.size,triggersBounds:f.any},{name:"text-border-style",type:p.borderStyle,triggersBounds:f.any},{name:"text-background-shape",type:p.textBackgroundShape,triggersBounds:f.any},{name:"text-justification",type:p.justification},{name:"box-select-labels",type:p.bool,triggersBounds:f.any}],C=[{name:"events",type:p.bool,triggersZOrder:f.any},{name:"text-events",type:p.bool,triggersZOrder:f.any},{name:"box-selection",type:p.boxSelection,triggersZOrder:f.any}],A=[{name:"display",type:p.display,triggersZOrder:f.any,triggersBounds:f.any,triggersBoundsOfConnectedEdges:f.any,triggersBoundsOfParallelEdges:function(he,we,Ce){return he===we?!1:Ce.pstyle("curve-style").value==="bezier"}},{name:"visibility",type:p.visibility,triggersZOrder:f.any},{name:"opacity",type:p.zeroOneNumber,triggersZOrder:f.zeroNonZero},{name:"text-opacity",type:p.zeroOneNumber},{name:"min-zoomed-font-size",type:p.size},{name:"z-compound-depth",type:p.zCompoundDepth,triggersZOrder:f.any},{name:"z-index-compare",type:p.zIndexCompare,triggersZOrder:f.any},{name:"z-index",type:p.number,triggersZOrder:f.any}],k=[{name:"overlay-padding",type:p.size,triggersBounds:f.any},{name:"overlay-color",type:p.color},{name:"overlay-opacity",type:p.zeroOneNumber,triggersBounds:f.zeroNonZero},{name:"overlay-shape",type:p.overlayShape,triggersBounds:f.any},{name:"overlay-corner-radius",type:p.cornerRadius}],I=[{name:"underlay-padding",type:p.size,triggersBounds:f.any},{name:"underlay-color",type:p.color},{name:"underlay-opacity",type:p.zeroOneNumber,triggersBounds:f.zeroNonZero},{name:"underlay-shape",type:p.overlayShape,triggersBounds:f.any},{name:"underlay-corner-radius",type:p.cornerRadius}],N=[{name:"transition-property",type:p.propList},{name:"transition-duration",type:p.time},{name:"transition-delay",type:p.time},{name:"transition-timing-function",type:p.easing}],L=function(he,we){return we.value==="label"?-he.poolIndex():we.pfValue},P=[{name:"height",type:p.nodeSize,triggersBounds:f.any,hashOverride:L},{name:"width",type:p.nodeSize,triggersBounds:f.any,hashOverride:L},{name:"shape",type:p.nodeShape,triggersBounds:f.any},{name:"shape-polygon-points",type:p.polygonPointList,triggersBounds:f.any},{name:"corner-radius",type:p.cornerRadius},{name:"background-color",type:p.color},{name:"background-fill",type:p.fill},{name:"background-opacity",type:p.zeroOneNumber},{name:"background-blacken",type:p.nOneOneNumber},{name:"background-gradient-stop-colors",type:p.colors},{name:"background-gradient-stop-positions",type:p.percentages},{name:"background-gradient-direction",type:p.gradientDirection},{name:"padding",type:p.sizeMaybePercent,triggersBounds:f.any},{name:"padding-relative-to",type:p.paddingRelativeTo,triggersBounds:f.any},{name:"bounds-expansion",type:p.boundsExpansion,triggersBounds:f.any}],M=[{name:"border-color",type:p.color},{name:"border-opacity",type:p.zeroOneNumber},{name:"border-width",type:p.size,triggersBounds:f.any},{name:"border-style",type:p.borderStyle},{name:"border-cap",type:p.lineCap},{name:"border-join",type:p.lineJoin},{name:"border-dash-pattern",type:p.numbers},{name:"border-dash-offset",type:p.number},{name:"border-position",type:p.linePosition}],F=[{name:"outline-color",type:p.color},{name:"outline-opacity",type:p.zeroOneNumber},{name:"outline-width",type:p.size,triggersBounds:f.any},{name:"outline-style",type:p.borderStyle},{name:"outline-offset",type:p.size,triggersBounds:f.any}],U=[{name:"background-image",type:p.urls},{name:"background-image-crossorigin",type:p.bgCrossOrigin},{name:"background-image-opacity",type:p.zeroOneNumbers},{name:"background-image-containment",type:p.bgContainment},{name:"background-image-smoothing",type:p.bools},{name:"background-position-x",type:p.bgPos},{name:"background-position-y",type:p.bgPos},{name:"background-width-relative-to",type:p.bgRelativeTo},{name:"background-height-relative-to",type:p.bgRelativeTo},{name:"background-repeat",type:p.bgRepeat},{name:"background-fit",type:p.bgFit},{name:"background-clip",type:p.bgClip},{name:"background-width",type:p.bgWH},{name:"background-height",type:p.bgWH},{name:"background-offset-x",type:p.bgPos},{name:"background-offset-y",type:p.bgPos}],$=[{name:"position",type:p.position,triggersBounds:f.any},{name:"compound-sizing-wrt-labels",type:p.compoundIncludeLabels,triggersBounds:f.any},{name:"min-width",type:p.size,triggersBounds:f.any},{name:"min-width-bias-left",type:p.sizeMaybePercent,triggersBounds:f.any},{name:"min-width-bias-right",type:p.sizeMaybePercent,triggersBounds:f.any},{name:"min-height",type:p.size,triggersBounds:f.any},{name:"min-height-bias-top",type:p.sizeMaybePercent,triggersBounds:f.any},{name:"min-height-bias-bottom",type:p.sizeMaybePercent,triggersBounds:f.any}],G=[{name:"line-style",type:p.lineStyle},{name:"line-color",type:p.color},{name:"line-fill",type:p.fill},{name:"line-cap",type:p.lineCap},{name:"line-opacity",type:p.zeroOneNumber},{name:"line-dash-pattern",type:p.numbers},{name:"line-dash-offset",type:p.number},{name:"line-outline-width",type:p.size},{name:"line-outline-color",type:p.color},{name:"line-gradient-stop-colors",type:p.colors},{name:"line-gradient-stop-positions",type:p.percentages},{name:"curve-style",type:p.curveStyle,triggersBounds:f.any,triggersBoundsOfParallelEdges:function(he,we){return he===we?!1:he==="bezier"||we==="bezier"}},{name:"haystack-radius",type:p.zeroOneNumber,triggersBounds:f.any},{name:"source-endpoint",type:p.edgeEndpoint,triggersBounds:f.any},{name:"target-endpoint",type:p.edgeEndpoint,triggersBounds:f.any},{name:"control-point-step-size",type:p.size,triggersBounds:f.any},{name:"control-point-distances",type:p.bidirectionalSizes,triggersBounds:f.any},{name:"control-point-weights",type:p.numbers,triggersBounds:f.any},{name:"segment-distances",type:p.bidirectionalSizes,triggersBounds:f.any},{name:"segment-weights",type:p.numbers,triggersBounds:f.any},{name:"segment-radii",type:p.numbers,triggersBounds:f.any},{name:"radius-type",type:p.radiusType,triggersBounds:f.any},{name:"taxi-turn",type:p.bidirectionalSizeMaybePercent,triggersBounds:f.any},{name:"taxi-turn-min-distance",type:p.size,triggersBounds:f.any},{name:"taxi-direction",type:p.axisDirection,triggersBounds:f.any},{name:"taxi-radius",type:p.number,triggersBounds:f.any},{name:"edge-distances",type:p.edgeDistances,triggersBounds:f.any},{name:"arrow-scale",type:p.positiveNumber,triggersBounds:f.any},{name:"loop-direction",type:p.angle,triggersBounds:f.any},{name:"loop-sweep",type:p.angle,triggersBounds:f.any},{name:"source-distance-from-node",type:p.size,triggersBounds:f.any},{name:"target-distance-from-node",type:p.size,triggersBounds:f.any}],B=[{name:"ghost",type:p.bool,triggersBounds:f.any},{name:"ghost-offset-x",type:p.bidirectionalSize,triggersBounds:f.any},{name:"ghost-offset-y",type:p.bidirectionalSize,triggersBounds:f.any},{name:"ghost-opacity",type:p.zeroOneNumber}],Z=[{name:"selection-box-color",type:p.color},{name:"selection-box-opacity",type:p.zeroOneNumber},{name:"selection-box-border-color",type:p.color},{name:"selection-box-border-width",type:p.size},{name:"active-bg-color",type:p.color},{name:"active-bg-opacity",type:p.zeroOneNumber},{name:"active-bg-size",type:p.size},{name:"outside-texture-bg-color",type:p.color},{name:"outside-texture-bg-opacity",type:p.zeroOneNumber}],z=[];w1.pieBackgroundN=16,z.push({name:"pie-size",type:p.sizeMaybePercent}),z.push({name:"pie-hole",type:p.sizeMaybePercent}),z.push({name:"pie-start-angle",type:p.angle});for(var Y=1;Y<=w1.pieBackgroundN;Y++)z.push({name:"pie-"+Y+"-background-color",type:p.color}),z.push({name:"pie-"+Y+"-background-size",type:p.percent}),z.push({name:"pie-"+Y+"-background-opacity",type:p.zeroOneNumber});var W=[];w1.stripeBackgroundN=16,W.push({name:"stripe-size",type:p.sizeMaybePercent}),W.push({name:"stripe-direction",type:p.axisDirectionPrimary});for(var Q=1;Q<=w1.stripeBackgroundN;Q++)W.push({name:"stripe-"+Q+"-background-color",type:p.color}),W.push({name:"stripe-"+Q+"-background-size",type:p.percent}),W.push({name:"stripe-"+Q+"-background-opacity",type:p.zeroOneNumber});var V=[],j=w1.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:p.arrowShape,triggersBounds:f.any},{name:"arrow-color",type:p.color},{name:"arrow-fill",type:p.arrowFill},{name:"arrow-width",type:p.arrowWidth}].forEach(function(Ee){j.forEach(function(he){var we=he+"-"+Ee.name,Ce=Ee.type,Ie=Ee.triggersBounds;V.push({name:we,type:Ce,triggersBounds:Ie})})},{});var ee=w1.properties=[].concat(C,N,A,k,I,B,S,w,m,b,_,P,M,F,U,z,W,$,G,V,Z),te=w1.propertyGroups={behavior:C,transition:N,visibility:A,overlay:k,underlay:I,ghost:B,commonLabel:S,labelDimensions:w,mainLabel:m,sourceLabel:b,targetLabel:_,nodeBody:P,nodeBorder:M,nodeOutline:F,backgroundImage:U,pie:z,stripe:W,compound:$,edgeLine:G,edgeArrow:V,core:Z},ne=w1.propertyGroupNames={},se=w1.propertyGroupKeys=Object.keys(te);se.forEach(function(Ee){ne[Ee]=te[Ee].map(function(he){return he.name}),te[Ee].forEach(function(he){return he.groupKey=Ee})});var ie=w1.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{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"}];w1.propertyNames=ee.map(function(Ee){return Ee.name});for(var ge=0;ge<ee.length;ge++){var ce=ee[ge];ee[ce.name]=ce}for(var be=0;be<ie.length;be++){var ve=ie[be],De=ee[ve.pointsTo],ye={name:ve.name,alias:!0,pointsTo:De};ee.push(ye),ee[ve.name]=ye}})();w1.getDefaultProperty=function(e){return this.getDefaultProperties()[e]};w1.getDefaultProperties=function(){var e=this._private;if(e.defaultProperties!=null)return e.defaultProperties;for(var t=eo({"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","box-selection":"contain","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","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","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","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1,   1, -1,   1, 1,   -1, 1","corner-radius":"auto","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%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(f,p){for(var m=1;m<=w1.pieBackgroundN;m++){var b=p.name.replace("{{i}}",m),_=p.value;f[b]=_}return f},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(f,p){for(var m=1;m<=w1.stripeBackgroundN;m++){var b=p.name.replace("{{i}}",m),_=p.value;f[b]=_}return f},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","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,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"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"},{name:"arrow-width",value:1}].reduce(function(f,p){return w1.arrowPrefixes.forEach(function(m){var b=m+"-"+p.name,_=p.value;f[b]=_}),f},{})),r={},a=0;a<this.properties.length;a++){var s=this.properties[a];if(!s.pointsTo){var o=s.name,u=t[o],h=this.parse(o,u);r[o]=h}}return e.defaultProperties=r,e.defaultProperties};w1.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 gke={};gke.parse=function(e,t,r,a){var s=this;if(Of(t))return s.parseImplWarn(e,t,r,a);var o=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,u=r?"t":"f",h=""+t,f=bHn(e,h,u,o),p=s.propCache=s.propCache||[],m;return(m=p[f])||(m=p[f]=s.parseImplWarn(e,t,r,a)),(r||a==="mapping")&&(m=JC(m),m&&(m.value=JC(m.value))),m};gke.parseImplWarn=function(e,t,r,a){var s=this.parseImpl(e,t,r,a);return!s&&t!=null&&Uu("The style property `".concat(e,": ").concat(t,"` is invalid")),s&&(s.name==="width"||s.name==="height")&&t==="label"&&Uu("The style value of `label` is deprecated for `"+s.name+"`"),s};gke.parseImpl=function(e,t,r,a){var s=this;e=fgt(e);var o=s.properties[e],u=t,h=s.types;if(!o||t===void 0)return null;o.alias&&(o=o.pointsTo,e=o.name);var f=Ns(t);f&&(t=t.trim());var p=o.type;if(!p)return null;if(r&&(t===""||t===null))return{name:e,value:t,bypass:!0,deleteBypass:!0};if(Of(t))return{name:e,value:t,strValue:"fn",mapped:h.fn,bypass:r};var m,b;if(!(!f||a||t.length<7||t[1]!=="a")){if(t.length>=7&&t[0]==="d"&&(m=new RegExp(h.data.regex).exec(t))){if(r)return!1;var _=h.data;return{name:e,value:m,strValue:""+t,mapped:_,field:m[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(b=new RegExp(h.mapData.regex).exec(t))){if(r||p.multiple)return!1;var w=h.mapData;if(!(p.color||p.number))return!1;var S=this.parse(e,b[4]);if(!S||S.mapped)return!1;var C=this.parse(e,b[5]);if(!C||C.mapped)return!1;if(S.pfValue===C.pfValue||S.strValue===C.strValue)return Uu("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+S.strValue+"`"),this.parse(e,S.strValue);if(p.color){var A=S.value,k=C.value,I=A[0]===k[0]&&A[1]===k[1]&&A[2]===k[2]&&(A[3]===k[3]||(A[3]==null||A[3]===1)&&(k[3]==null||k[3]===1));if(I)return!1}return{name:e,value:b,strValue:""+t,mapped:w,field:b[1],fieldMin:parseFloat(b[2]),fieldMax:parseFloat(b[3]),valueMin:S.value,valueMax:C.value,bypass:r}}}if(p.multiple&&a!=="multiple"){var N;if(f?N=t.split(/\s+/):Mh(t)?N=t:N=[t],p.evenMultiple&&N.length%2!==0)return null;for(var L=[],P=[],M=[],F="",U=!1,$=0;$<N.length;$++){var G=s.parse(e,N[$],r,"multiple");U=U||Ns(G.value),L.push(G.value),M.push(G.pfValue!=null?G.pfValue:G.value),P.push(G.units),F+=($>0?" ":"")+G.strValue}return p.validate&&!p.validate(L,P)?null:p.singleEnum&&U?L.length===1&&Ns(L[0])?{name:e,value:L[0],strValue:L[0],bypass:r}:null:{name:e,value:L,pfValue:M,strValue:F,bypass:r,units:P}}var B=function(){for(var ye=0;ye<p.enums.length;ye++){var Ee=p.enums[ye];if(Ee===t)return{name:e,value:t,strValue:""+t,bypass:r}}return null};if(p.number){var Z,z="px";if(p.units&&(Z=p.units),p.implicitUnits&&(z=p.implicitUnits),!p.unitless)if(f){var Y="px|em"+(p.allowPercent?"|\\%":"");Z&&(Y=Z);var W=t.match("^("+Ip+")("+Y+")?$");W&&(t=W[1],Z=W[2]||z)}else(!Z||p.implicitUnits)&&(Z=z);if(t=parseFloat(t),isNaN(t)&&p.enums===void 0)return null;if(isNaN(t)&&p.enums!==void 0)return t=u,B();if(p.integer&&!q6i(t)||p.min!==void 0&&(t<p.min||p.strictMin&&t===p.min)||p.max!==void 0&&(t>p.max||p.strictMax&&t===p.max))return null;var Q={name:e,value:t,strValue:""+t+(Z||""),units:Z,bypass:r};return p.unitless||Z!=="px"&&Z!=="em"?Q.pfValue=t:Q.pfValue=Z==="px"||!Z?t:this.getEmSizeInPixels()*t,(Z==="ms"||Z==="s")&&(Q.pfValue=Z==="ms"?t:1e3*t),(Z==="deg"||Z==="rad")&&(Q.pfValue=Z==="rad"?t:J7i(t)),Z==="%"&&(Q.pfValue=t/100),Q}else if(p.propList){var V=[],j=""+t;if(j!=="none"){for(var ee=j.split(/\s*,\s*|\s+/),te=0;te<ee.length;te++){var ne=ee[te].trim();s.properties[ne]?V.push(ne):Uu("`"+ne+"` is not a valid property name")}if(V.length===0)return null}return{name:e,value:V,strValue:V.length===0?"none":V.join(" "),bypass:r}}else if(p.color){var se=uHn(t);return se?{name:e,value:se,pfValue:se,strValue:"rgb("+se[0]+","+se[1]+","+se[2]+")",bypass:r}:null}else if(p.regex||p.regexes){if(p.enums){var ie=B();if(ie)return ie}for(var ge=p.regexes?p.regexes:[p.regex],ce=0;ce<ge.length;ce++){var be=new RegExp(ge[ce]),ve=be.exec(t);if(ve)return{name:e,value:p.singleRegexMatchValue?ve[1]:ve,strValue:""+t,bypass:r}}return null}else return p.string?{name:e,value:""+t,strValue:""+t,bypass:r}:p.enums?B():null};var kg=function(t){if(!(this instanceof kg))return new kg(t);if(!dgt(t)){jd("A style must have a core reference");return}this._private={cy:t,coreStyle:{}},this.length=0,this.resetToDefault()},Rb=kg.prototype;Rb.instanceString=function(){return"style"};Rb.clear=function(){for(var e=this._private,t=e.cy,r=t.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(r,!0),r.forEach(function(s){var o=s[0]._private;o.styleDirty=!0,o.appliedInitStyle=!1}),this};Rb.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this};Rb.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)};Rb.selector=function(e){var t=e==="core"?null:new l9(e),r=this.length++;return this[r]={selector:t,properties:[],mappedProperties:[],index:r},this};Rb.css=function(){var e=this,t=arguments;if(t.length===1)for(var r=t[0],a=0;a<e.properties.length;a++){var s=e.properties[a],o=r[s.name];o===void 0&&(o=r[tke(s.name)]),o!==void 0&&this.cssRule(s.name,o)}else t.length===2&&this.cssRule(t[0],t[1]);return this};Rb.style=Rb.css;Rb.cssRule=function(e,t){var r=this.parse(e,t);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.name.match(/stripe-(\d+)-background-size/)&&r.value&&(this._private.hasStripe=!0),r.mapped&&this[a].mappedProperties.push(r);var s=!this[a].selector;s&&(this._private.coreStyle[r.name]=r)}return this};Rb.append=function(e){return oHn(e)?e.appendToStyle(this):Mh(e)?this.appendFromJson(e):Ns(e)&&this.appendFromString(e),this};kg.fromJson=function(e,t){var r=new kg(e);return r.fromJson(t),r};kg.fromString=function(e,t){return new kg(e).fromString(t)};[Dg,Rce,kgt,_A,pke,Rgt,w1,gke].forEach(function(e){eo(Rb,e)});kg.types=Rb.types;kg.properties=Rb.properties;kg.propertyGroups=Rb.propertyGroups;kg.propertyGroupNames=Rb.propertyGroupNames;kg.propertyGroupKeys=Rb.propertyGroupKeys;var rNi={style:function(t){if(t){var r=this.setStyle(t);r.update()}return this._private.style},setStyle:function(t){var r=this._private;return oHn(t)?r.style=t.generateStyle(this):Mh(t)?r.style=kg.fromJson(this,t):Ns(t)?r.style=kg.fromString(this,t):r.style=kg(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},iNi="single",ZF={autolock:function(t){if(t!==void 0)this._private.autolock=!!t;else return this._private.autolock;return this},autoungrabify:function(t){if(t!==void 0)this._private.autoungrabify=!!t;else return this._private.autoungrabify;return this},autounselectify:function(t){if(t!==void 0)this._private.autounselectify=!!t;else return this._private.autounselectify;return this},selectionType:function(t){var r=this._private;if(r.selectionType==null&&(r.selectionType=iNi),t!==void 0)(t==="additive"||t==="single")&&(r.selectionType=t);else return r.selectionType;return this},panningEnabled:function(t){if(t!==void 0)this._private.panningEnabled=!!t;else return this._private.panningEnabled;return this},userPanningEnabled:function(t){if(t!==void 0)this._private.userPanningEnabled=!!t;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(t){if(t!==void 0)this._private.zoomingEnabled=!!t;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(t){if(t!==void 0)this._private.userZoomingEnabled=!!t;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(t){if(t!==void 0)this._private.boxSelectionEnabled=!!t;else return this._private.boxSelectionEnabled;return this},pan:function(){var t=arguments,r=this._private.pan,a,s,o,u,h;switch(t.length){case 0:return r;case 1:if(Ns(t[0]))return a=t[0],r[a];if(Vc(t[0])){if(!this._private.panningEnabled)return this;o=t[0],u=o.x,h=o.y,aa(u)&&(r.x=u),aa(h)&&(r.y=h),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=t[0],s=t[1],(a==="x"||a==="y")&&aa(s)&&(r[a]=s),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(t,r){var a=arguments,s=this._private.pan,o,u,h,f,p;if(!this._private.panningEnabled)return this;switch(a.length){case 1:Vc(t)&&(h=a[0],f=h.x,p=h.y,aa(f)&&(s.x+=f),aa(p)&&(s.y+=p),this.emit("pan viewport"));break;case 2:o=t,u=r,(o==="x"||o==="y")&&aa(u)&&(s[o]+=u),this.emit("pan viewport");break}return this.notify("viewport"),this},gc:function(){this.notify("gc")},fit:function(t,r){var a=this.getFitViewport(t,r);if(a){var s=this._private;s.zoom=a.zoom,s.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(t,r){if(aa(t)&&r===void 0&&(r=t,t=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(Ns(t)){var s=t;t=this.$(s)}else if(Y6i(t)){var o=t;a={x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else Bw(t)||(t=this.mutableElements());if(!(Bw(t)&&t.empty())){a=a||t.boundingBox();var u=this.width(),h=this.height(),f;if(r=aa(r)?r:0,!isNaN(u)&&!isNaN(h)&&u>0&&h>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){f=Math.min((u-2*r)/a.w,(h-2*r)/a.h),f=f>this._private.maxZoom?this._private.maxZoom:f,f=f<this._private.minZoom?this._private.minZoom:f;var p={x:(u-f*(a.x1+a.x2))/2,y:(h-f*(a.y1+a.y2))/2};return{zoom:f,pan:p}}}}},zoomRange:function(t,r){var a=this._private;if(r==null){var s=t;t=s.min,r=s.max}return aa(t)&&aa(r)&&t<=r?(a.minZoom=t,a.maxZoom=r):aa(t)&&r===void 0&&t<=a.maxZoom?a.minZoom=t:aa(r)&&t===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(t){return t===void 0?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return t===void 0?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var r=this._private,a=r.pan,s=r.zoom,o,u,h=!1;if(r.zoomingEnabled||(h=!0),aa(t)?u=t:Vc(t)&&(u=t.level,t.position!=null?o=ike(t.position,s,a):t.renderedPosition!=null&&(o=t.renderedPosition),o!=null&&!r.panningEnabled&&(h=!0)),u=u>r.maxZoom?r.maxZoom:u,u=u<r.minZoom?r.minZoom:u,h||!aa(u)||u===s||o!=null&&(!aa(o.x)||!aa(o.y)))return null;if(o!=null){var f=a,p=s,m=u,b={x:-m/p*(o.x-f.x)+o.x,y:-m/p*(o.y-f.y)+o.y};return{zoomed:!0,panned:!0,zoom:m,pan:b}}else return{zoomed:!0,panned:!1,zoom:u,pan:a}},zoom:function(t){if(t===void 0)return this._private.zoom;var r=this.getZoomedViewport(t),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(t){var r=this._private,a=!0,s=!0,o=[],u=!1,h=!1;if(!t)return this;if(aa(t.zoom)||(a=!1),Vc(t.pan)||(s=!1),!a&&!s)return this;if(a){var f=t.zoom;f<r.minZoom||f>r.maxZoom||!r.zoomingEnabled?u=!0:(r.zoom=f,o.push("zoom"))}if(s&&(!u||!t.cancelOnFailedZoom)&&r.panningEnabled){var p=t.pan;aa(p.x)&&(r.pan.x=p.x,h=!1),aa(p.y)&&(r.pan.y=p.y,h=!1),h||o.push("pan")}return o.length>0&&(o.push("viewport"),this.emit(o.join(" ")),this.notify("viewport")),this},center:function(t){var r=this.getCenterPan(t);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,r){if(this._private.panningEnabled){if(Ns(t)){var a=t;t=this.mutableElements().filter(a)}else Bw(t)||(t=this.mutableElements());if(t.length!==0){var s=t.boundingBox(),o=this.width(),u=this.height();r=r===void 0?this._private.zoom:r;var h={x:(o-r*(s.x1+s.x2))/2,y:(u-r*(s.y1+s.y2))/2};return h}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t=this._private,r=t.container,a=this;return t.sizeCache=t.sizeCache||(r?function(){var s=a.window().getComputedStyle(r),o=function(h){return parseFloat(s.getPropertyValue(h))};return{width:r.clientWidth-o("padding-left")-o("padding-right"),height:r.clientHeight-o("padding-top")-o("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,r=this._private.zoom,a=this.renderedExtent(),s={x1:(a.x1-t.x)/r,x2:(a.x2-t.x)/r,y1:(a.y1-t.y)/r,y2:(a.y2-t.y)/r};return s.w=s.x2-s.x1,s.h=s.y2-s.y1,s},renderedExtent:function(){var t=this.width(),r=this.height();return{x1:0,y1:0,x2:t,y2:r,w:t,h:r}},multiClickDebounceTime:function(t){if(t)this._private.multiClickDebounceTime=t;else return this._private.multiClickDebounceTime;return this}};ZF.centre=ZF.center;ZF.autolockNodes=ZF.autolock;ZF.autoungrabifyNodes=ZF.autoungrabify;var Woe={data:Fu.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Fu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Fu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Fu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Woe.attr=Woe.data;Woe.removeAttr=Woe.removeData;var Koe=function(t){var r=this;t=eo({},t);var a=t.container;a&&!U3e(a)&&U3e(a[0])&&(a=a[0]);var s=a?a._cyreg:null;s=s||{},s&&s.cy&&(s.cy.destroy(),s={});var o=s.readies=s.readies||[];a&&(a._cyreg=s),s.cy=r;var u=vp!==void 0&&a!==void 0&&!t.headless,h=t;h.layout=eo({name:u?"grid":"null"},h.layout),h.renderer=eo({name:u?"canvas":"null"},h.renderer);var f=function(S,C,A){return C!==void 0?C:A!==void 0?A:S},p=this._private={container:a,ready:!1,options:h,elements:new Cm(this),listeners:[],aniEles:new Cm(this),data:h.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:f(!0,h.zoomingEnabled),userZoomingEnabled:f(!0,h.userZoomingEnabled),panningEnabled:f(!0,h.panningEnabled),userPanningEnabled:f(!0,h.userPanningEnabled),boxSelectionEnabled:f(!0,h.boxSelectionEnabled),autolock:f(!1,h.autolock,h.autolockNodes),autoungrabify:f(!1,h.autoungrabify,h.autoungrabifyNodes),autounselectify:f(!1,h.autounselectify),styleEnabled:h.styleEnabled===void 0?u:h.styleEnabled,zoom:aa(h.zoom)?h.zoom:1,pan:{x:Vc(h.pan)&&aa(h.pan.x)?h.pan.x:0,y:Vc(h.pan)&&aa(h.pan.y)?h.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:f(250,h.multiClickDebounceTime)};this.createEmitter(),this.selectionType(h.selectionType),this.zoomRange({min:h.minZoom,max:h.maxZoom});var m=function(S,C){var A=S.some(j6i);if(A)return KW.all(S).then(C);C(S)};p.styleEnabled&&r.setStyle([]);var b=eo({},h,h.renderer);r.initRenderer(b);var _=function(S,C,A){r.notifications(!1);var k=r.mutableElements();k.length>0&&k.remove(),S!=null&&(Vc(S)||Mh(S))&&r.add(S),r.one("layoutready",function(N){r.notifications(!0),r.emit(N),r.one("load",C),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",A),r.emit("done")});var I=eo({},r._private.options.layout);I.eles=r.elements(),r.layout(I).run()};m([h.style,h.elements],function(w){var S=w[0],C=w[1];p.styleEnabled&&r.style().append(S),_(C,function(){r.startAnimationLoop(),p.ready=!0,Of(h.ready)&&r.on("ready",h.ready);for(var A=0;A<o.length;A++){var k=o[A];r.on("ready",k)}s&&(s.readies=[]),r.emit("ready")},h.done)})},j3e=Koe.prototype;eo(j3e,{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},window:function(){var t=this._private.container;if(t==null)return vp;var r=this._private.container.ownerDocument;return r===void 0||r==null?vp:r.defaultView||vp},mount:function(t){if(t!=null){var r=this,a=r._private,s=a.options;return!U3e(t)&&U3e(t[0])&&(t=t[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=t,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(eo({},s,s.renderer,{name:s.renderer.name==="null"?"canvas":s.renderer.name})),r.startAnimationLoop(),r.style(s.style),r.emit("mount"),r}},unmount:function(){var t=this;return t.stopAnimationLoop(),t.destroyRenderer(),t.initRenderer({name:"null"}),t.emit("unmount"),t},options:function(){return JC(this._private.options)},json:function(t){var r=this,a=r._private,s=r.mutableElements(),o=function(L){return r.getElementById(L.id())};if(Vc(t)){if(r.startBatch(),t.elements){var u={},h=function(L,P){for(var M=[],F=[],U=0;U<L.length;U++){var $=L[U];if(!$.data.id){Uu("cy.json() cannot handle elements without an ID attribute");continue}var G=""+$.data.id,B=r.getElementById(G);u[G]=!0,B.length!==0?F.push({ele:B,json:$}):(P&&($.group=P),M.push($))}r.add(M);for(var Z=0;Z<F.length;Z++){var z=F[Z],Y=z.ele,W=z.json;Y.json(W)}};if(Mh(t.elements))h(t.elements);else for(var f=["nodes","edges"],p=0;p<f.length;p++){var m=f[p],b=t.elements[m];Mh(b)&&h(b,m)}var _=r.collection();s.filter(function(N){return!u[N.id()]}).forEach(function(N){N.isParent()?_.merge(N):N.remove()}),_.forEach(function(N){return N.children().move({parent:null})}),_.forEach(function(N){return o(N).remove()})}t.style&&r.style(t.style),t.zoom!=null&&t.zoom!==a.zoom&&r.zoom(t.zoom),t.pan&&(t.pan.x!==a.pan.x||t.pan.y!==a.pan.y)&&r.pan(t.pan),t.data&&r.data(t.data);for(var w=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],S=0;S<w.length;S++){var C=w[S];t[C]!=null&&r[C](t[C])}return r.endBatch(),this}else{var A=!!t,k={};A?k.elements=this.elements().map(function(N){return N.json()}):(k.elements={},s.forEach(function(N){var L=N.group();k.elements[L]||(k.elements[L]=[]),k.elements[L].push(N.json())})),this._private.styleEnabled&&(k.style=r.style().json()),k.data=JC(r.data());var I=a.options;return k.zoomingEnabled=a.zoomingEnabled,k.userZoomingEnabled=a.userZoomingEnabled,k.zoom=a.zoom,k.minZoom=a.minZoom,k.maxZoom=a.maxZoom,k.panningEnabled=a.panningEnabled,k.userPanningEnabled=a.userPanningEnabled,k.pan=JC(a.pan),k.boxSelectionEnabled=a.boxSelectionEnabled,k.renderer=JC(I.renderer),k.hideEdgesOnViewport=I.hideEdgesOnViewport,k.textureOnViewport=I.textureOnViewport,k.wheelSensitivity=I.wheelSensitivity,k.motionBlur=I.motionBlur,k.multiClickDebounceTime=I.multiClickDebounceTime,k}}});j3e.$id=j3e.getElementById;[jIi,ZIi,oVn,uct,Cxe,eNi,hct,Axe,rNi,ZF,Woe].forEach(function(e){eo(j3e,e)});var aNi={fit:!0,directed:!1,direction:"downward",padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}},sNi={maximal:!1,acyclic:!1},KH=function(t){return t.scratch("breadthfirst")},zxn=function(t,r){return t.scratch("breadthfirst",r)};function lVn(e){this.options=eo({},aNi,sNi,e)}lVn.prototype.run=function(){var e=this.options,t=e.cy,r=e.eles,a=r.nodes().filter(function(Dt){return Dt.isChildless()}),s=r,o=e.directed,u=e.acyclic||e.maximal||e.maximalAdjustments>0,h=!!e.boundingBox,f=uv(h?e.boundingBox:structuredClone(t.extent())),p;if(Bw(e.roots))p=e.roots;else if(Mh(e.roots)){for(var m=[],b=0;b<e.roots.length;b++){var _=e.roots[b],w=t.getElementById(_);m.push(w)}p=t.collection(m)}else if(Ns(e.roots))p=t.$(e.roots);else if(o)p=a.roots();else{var S=r.components();p=t.collection();for(var C=function(){var ot=S[A],sn=ot.maxDegree(!1),Kt=ot.filter(function(Ft){return Ft.degree(!1)===sn});p=p.add(Kt)},A=0;A<S.length;A++)C()}var k=[],I={},N=function(ot,sn){k[sn]==null&&(k[sn]=[]);var Kt=k[sn].length;k[sn].push(ot),zxn(ot,{index:Kt,depth:sn})},L=function(ot,sn){var Kt=KH(ot),Ft=Kt.depth,Je=Kt.index;k[Ft][Je]=null,ot.isChildless()&&N(ot,sn)};s.bfs({roots:p,directed:e.directed,visit:function(ot,sn,Kt,Ft,Je){var ht=ot[0],et=ht.id();ht.isChildless()&&N(ht,Je),I[et]=!0}});for(var P=[],M=0;M<a.length;M++){var F=a[M];I[F.id()]||P.push(F)}var U=function(ot){for(var sn=k[ot],Kt=0;Kt<sn.length;Kt++){var Ft=sn[Kt];if(Ft==null){sn.splice(Kt,1),Kt--;continue}zxn(Ft,{depth:ot,index:Kt})}},$=function(ot,sn){for(var Kt=KH(ot),Ft=ot.incomers().filter(function(Ye){return Ye.isNode()&&r.has(Ye)}),Je=-1,ht=ot.id(),et=0;et<Ft.length;et++){var qe=Ft[et],He=KH(qe);Je=Math.max(Je,He.depth)}if(Kt.depth<=Je){if(!e.acyclic&&sn[ht])return null;var Ge=Je+1;return L(ot,Ge),sn[ht]=Ge,!0}return!1};if(o&&u){var G=[],B={},Z=function(ot){return G.push(ot)},z=function(){return G.shift()};for(a.forEach(function(Dt){return G.push(Dt)});G.length>0;){var Y=z(),W=$(Y,B);if(W)Y.outgoers().filter(function(Dt){return Dt.isNode()&&r.has(Dt)}).forEach(Z);else if(W===null){Uu("Detected double maximal shift for node `"+Y.id()+"`.  Bailing maximal adjustment due to cycle.  Use `options.maximal: true` only on DAGs.");break}}}var Q=0;if(e.avoidOverlap)for(var V=0;V<a.length;V++){var j=a[V],ee=j.layoutDimensions(e),te=ee.w,ne=ee.h;Q=Math.max(Q,te,ne)}var se={},ie=function(ot){if(se[ot.id()])return se[ot.id()];for(var sn=KH(ot).depth,Kt=ot.neighborhood(),Ft=0,Je=0,ht=0;ht<Kt.length;ht++){var et=Kt[ht];if(!(et.isEdge()||et.isParent()||!a.has(et))){var qe=KH(et);if(qe!=null){var He=qe.index,Ge=qe.depth;if(!(He==null||Ge==null)){var Ye=k[Ge].length;Ge<sn&&(Ft+=He/Ye,Je++)}}}}return Je=Math.max(1,Je),Ft=Ft/Je,Je===0&&(Ft=0),se[ot.id()]=Ft,Ft},ge=function(ot,sn){var Kt=ie(ot),Ft=ie(sn),Je=Kt-Ft;return Je===0?cHn(ot.id(),sn.id()):Je};e.depthSort!==void 0&&(ge=e.depthSort);for(var ce=k.length,be=0;be<ce;be++)k[be].sort(ge),U(be);for(var ve=[],De=0;De<P.length;De++)ve.push(P[De]);var ye=function(){for(var ot=0;ot<ce;ot++)U(ot)};ve.length&&(k.unshift(ve),ce=k.length,ye());for(var Ee=0,he=0;he<ce;he++)Ee=Math.max(k[he].length,Ee);var we={x:f.x1+f.w/2,y:f.y1+f.h/2},Ce=a.reduce(function(Dt,ot){return function(sn){return{w:Dt.w===-1?sn.w:(Dt.w+sn.w)/2,h:Dt.h===-1?sn.h:(Dt.h+sn.h)/2}}(ot.boundingBox({includeLabels:e.nodeDimensionsIncludeLabels}))},{w:-1,h:-1}),Ie=Math.max(ce===1?0:h?(f.h-e.padding*2-Ce.h)/(ce-1):(f.h-e.padding*2-Ce.h)/(ce+1),Q),Le=k.reduce(function(Dt,ot){return Math.max(Dt,ot.length)},0),Fe=function(ot){var sn=KH(ot),Kt=sn.depth,Ft=sn.index;if(e.circle){var Je=Math.min(f.w/2/ce,f.h/2/ce);Je=Math.max(Je,Q);var ht=Je*Kt+Je-(ce>0&&k[0].length<=3?Je/2:0),et=2*Math.PI/k[Kt].length*Ft;return Kt===0&&k[0].length===1&&(ht=1),{x:we.x+ht*Math.cos(et),y:we.y+ht*Math.sin(et)}}else{var qe=k[Kt].length,He=Math.max(qe===1?0:h?(f.w-e.padding*2-Ce.w)/((e.grid?Le:qe)-1):(f.w-e.padding*2-Ce.w)/((e.grid?Le:qe)+1),Q),Ge={x:we.x+(Ft+1-(qe+1)/2)*He,y:we.y+(Kt+1-(ce+1)/2)*Ie};return Ge}},Ve={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Ve).indexOf(e.direction)===-1&&jd("Invalid direction '".concat(e.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ve).join(", ")));var Oe=function(ot){return E7i(Fe(ot),f,Ve[e.direction])};return r.nodes().layoutPositions(this,e,Oe),this};var oNi={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function cVn(e){this.options=eo({},oNi,e)}cVn.prototype.run=function(){var e=this.options,t=e,r=e.cy,a=t.eles,s=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,o=a.nodes().not(":parent");t.sort&&(o=o.sort(t.sort));for(var u=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),h={x:u.x1+u.w/2,y:u.y1+u.h/2},f=t.sweep===void 0?2*Math.PI-2*Math.PI/o.length:t.sweep,p=f/Math.max(1,o.length-1),m,b=0,_=0;_<o.length;_++){var w=o[_],S=w.layoutDimensions(t),C=S.w,A=S.h;b=Math.max(b,C,A)}if(aa(t.radius)?m=t.radius:o.length<=1?m=0:m=Math.min(u.h,u.w)/2-b,o.length>1&&t.avoidOverlap){b*=1.75;var k=Math.cos(p)-Math.cos(0),I=Math.sin(p)-Math.sin(0),N=Math.sqrt(b*b/(k*k+I*I));m=Math.max(N,m)}var L=function(M,F){var U=t.startAngle+F*p*(s?1:-1),$=m*Math.cos(U),G=m*Math.sin(U),B={x:h.x+$,y:h.y+G};return B};return a.nodes().layoutPositions(this,t,L),this};var lNi={fit:!0,padding:30,startAngle:3/2*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,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function uVn(e){this.options=eo({},lNi,e)}uVn.prototype.run=function(){for(var e=this.options,t=e,r=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,a=e.cy,s=t.eles,o=s.nodes().not(":parent"),u=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),h={x:u.x1+u.w/2,y:u.y1+u.h/2},f=[],p=0,m=0;m<o.length;m++){var b=o[m],_=void 0;_=t.concentric(b),f.push({value:_,node:b}),b._private.scratch.concentric=_}o.updateStyle();for(var w=0;w<o.length;w++){var S=o[w],C=S.layoutDimensions(t);p=Math.max(p,C.w,C.h)}f.sort(function(Ie,Le){return Le.value-Ie.value});for(var A=t.levelWidth(o),k=[[]],I=k[0],N=0;N<f.length;N++){var L=f[N];if(I.length>0){var P=Math.abs(I[0].value-L.value);P>=A&&(I=[],k.push(I))}I.push(L)}var M=p+t.minNodeSpacing;if(!t.avoidOverlap){var F=k.length>0&&k[0].length>1,U=Math.min(u.w,u.h)/2-M,$=U/(k.length+F?1:0);M=Math.min(M,$)}for(var G=0,B=0;B<k.length;B++){var Z=k[B],z=t.sweep===void 0?2*Math.PI-2*Math.PI/Z.length:t.sweep,Y=Z.dTheta=z/Math.max(1,Z.length-1);if(Z.length>1&&t.avoidOverlap){var W=Math.cos(Y)-Math.cos(0),Q=Math.sin(Y)-Math.sin(0),V=Math.sqrt(M*M/(W*W+Q*Q));G=Math.max(V,G)}Z.r=G,G+=M}if(t.equidistant){for(var j=0,ee=0,te=0;te<k.length;te++){var ne=k[te],se=ne.r-ee;j=Math.max(j,se)}ee=0;for(var ie=0;ie<k.length;ie++){var ge=k[ie];ie===0&&(ee=ge.r),ge.r=ee,ee+=j}}for(var ce={},be=0;be<k.length;be++)for(var ve=k[be],De=ve.dTheta,ye=ve.r,Ee=0;Ee<ve.length;Ee++){var he=ve[Ee],we=t.startAngle+(r?1:-1)*De*Ee,Ce={x:h.x+ye*Math.cos(we),y:h.y+ye*Math.sin(we)};ce[he.node.id()]=Ce}return s.nodes().layoutPositions(this,t,function(Ie){var Le=Ie.id();return ce[Le]}),this};var lit,cNi={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(t,r){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 mke(e){this.options=eo({},cNi,e),this.options.layout=this;var t=this.options.eles.nodes(),r=this.options.eles.edges(),a=r.filter(function(s){var o=s.source().data("id"),u=s.target().data("id"),h=t.some(function(p){return p.data("id")===o}),f=t.some(function(p){return p.data("id")===u});return!h||!f});this.options.eles=this.options.eles.not(a)}mke.prototype.run=function(){var e=this.options,t=e.cy,r=this;r.stopped=!1,(e.animate===!0||e.animate===!1)&&r.emit({type:"layoutstart",layout:r}),e.debug===!0?lit=!0:lit=!1;var a=uNi(t,r,e);lit&&dNi(a),e.randomize&&fNi(a);var s=cR(),o=function(){pNi(a,t,e),e.fit===!0&&t.fit(e.padding)},u=function(_){return!(r.stopped||_>=e.numIter||(gNi(a,e),a.temperature=a.temperature*e.coolingFactor,a.temperature<e.minTemp))},h=function(){if(e.animate===!0||e.animate===!1)o(),r.one("layoutstop",e.stop),r.emit({type:"layoutstop",layout:r});else{var _=e.eles.nodes(),w=dVn(a,e,_);_.layoutPositions(r,e,w)}},f=0,p=!0;if(e.animate===!0){var m=function(){for(var _=0;p&&_<e.refresh;)p=u(f),f++,_++;if(!p)qxn(a,e),h();else{var w=cR();w-s>=e.animationThreshold&&o(),z3e(m)}};m()}else{for(;p;)p=u(f),f++;qxn(a,e),h()}return this};mke.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};mke.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var uNi=function(t,r,a){for(var s=a.eles.edges(),o=a.eles.nodes(),u=uv(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),h={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:o.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:s.size(),temperature:a.initialTemp,clientWidth:u.w,clientHeight:u.h,boundingBox:u},f=a.eles.components(),p={},m=0;m<f.length;m++)for(var b=f[m],_=0;_<b.length;_++){var w=b[_];p[w.id()]=m}for(var m=0;m<h.nodeSize;m++){var S=o[m],C=S.layoutDimensions(a),A={};A.isLocked=S.locked(),A.id=S.data("id"),A.parentId=S.data("parent"),A.cmptId=p[S.id()],A.children=[],A.positionX=S.position("x"),A.positionY=S.position("y"),A.offsetX=0,A.offsetY=0,A.height=C.w,A.width=C.h,A.maxX=A.positionX+A.width/2,A.minX=A.positionX-A.width/2,A.maxY=A.positionY+A.height/2,A.minY=A.positionY-A.height/2,A.padLeft=parseFloat(S.style("padding")),A.padRight=parseFloat(S.style("padding")),A.padTop=parseFloat(S.style("padding")),A.padBottom=parseFloat(S.style("padding")),A.nodeRepulsion=Of(a.nodeRepulsion)?a.nodeRepulsion(S):a.nodeRepulsion,h.layoutNodes.push(A),h.idToIndex[A.id]=m}for(var k=[],I=0,N=-1,L=[],m=0;m<h.nodeSize;m++){var S=h.layoutNodes[m],P=S.parentId;P!=null?h.layoutNodes[h.idToIndex[P]].children.push(S.id):(k[++N]=S.id,L.push(S.id))}for(h.graphSet.push(L);I<=N;){var M=k[I++],F=h.idToIndex[M],w=h.layoutNodes[F],U=w.children;if(U.length>0){h.graphSet.push(U);for(var m=0;m<U.length;m++)k[++N]=U[m]}}for(var m=0;m<h.graphSet.length;m++)for(var $=h.graphSet[m],_=0;_<$.length;_++){var G=h.idToIndex[$[_]];h.indexToGraph[G]=m}for(var m=0;m<h.edgeSize;m++){var B=s[m],Z={};Z.id=B.data("id"),Z.sourceId=B.data("source"),Z.targetId=B.data("target");var z=Of(a.idealEdgeLength)?a.idealEdgeLength(B):a.idealEdgeLength,Y=Of(a.edgeElasticity)?a.edgeElasticity(B):a.edgeElasticity,W=h.idToIndex[Z.sourceId],Q=h.idToIndex[Z.targetId],V=h.indexToGraph[W],j=h.indexToGraph[Q];if(V!=j){for(var ee=hNi(Z.sourceId,Z.targetId,h),te=h.graphSet[ee],ne=0,A=h.layoutNodes[W];te.indexOf(A.id)===-1;)A=h.layoutNodes[h.idToIndex[A.parentId]],ne++;for(A=h.layoutNodes[Q];te.indexOf(A.id)===-1;)A=h.layoutNodes[h.idToIndex[A.parentId]],ne++;z*=ne*a.nestingFactor}Z.idealLength=z,Z.elasticity=Y,h.layoutEdges.push(Z)}return h},hNi=function(t,r,a){var s=hVn(t,r,0,a);return 2>s.count?0:s.graph},hVn=function(t,r,a,s){var o=s.graphSet[a];if(-1<o.indexOf(t)&&-1<o.indexOf(r))return{count:2,graph:a};for(var u=0,h=0;h<o.length;h++){var f=o[h],p=s.idToIndex[f],m=s.layoutNodes[p].children;if(m.length!==0){var b=s.indexToGraph[s.idToIndex[m[0]]],_=hVn(t,r,b,s);if(_.count!==0)if(_.count===1){if(u++,u===2)break}else return _}}return{count:u,graph:a}},dNi,fNi=function(t,r){for(var a=t.clientWidth,s=t.clientHeight,o=0;o<t.nodeSize;o++){var u=t.layoutNodes[o];u.children.length===0&&!u.isLocked&&(u.positionX=Math.random()*a,u.positionY=Math.random()*s)}},dVn=function(t,r,a){var s=t.boundingBox,o={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(u){var h=t.layoutNodes[t.idToIndex[u.data("id")]];o.x1=Math.min(o.x1,h.positionX),o.x2=Math.max(o.x2,h.positionX),o.y1=Math.min(o.y1,h.positionY),o.y2=Math.max(o.y2,h.positionY)}),o.w=o.x2-o.x1,o.h=o.y2-o.y1),function(u,h){var f=t.layoutNodes[t.idToIndex[u.data("id")]];if(r.boundingBox){var p=o.w===0?.5:(f.positionX-o.x1)/o.w,m=o.h===0?.5:(f.positionY-o.y1)/o.h;return{x:s.x1+p*s.w,y:s.y1+m*s.h}}else return{x:f.positionX,y:f.positionY}}},pNi=function(t,r,a){var s=a.layout,o=a.eles.nodes(),u=dVn(t,a,o);o.positions(u),t.ready!==!0&&(t.ready=!0,s.one("layoutready",a.ready),s.emit({type:"layoutready",layout:this}))},gNi=function(t,r,a){mNi(t,r),vNi(t),_Ni(t,r),wNi(t),ENi(t)},mNi=function(t,r){for(var a=0;a<t.graphSet.length;a++)for(var s=t.graphSet[a],o=s.length,u=0;u<o;u++)for(var h=t.layoutNodes[t.idToIndex[s[u]]],f=u+1;f<o;f++){var p=t.layoutNodes[t.idToIndex[s[f]]];bNi(h,p,t,r)}},Gxn=function(t){return-1+2*t*Math.random()},bNi=function(t,r,a,s){var o=t.cmptId,u=r.cmptId;if(!(o!==u&&!a.isCompound)){var h=r.positionX-t.positionX,f=r.positionY-t.positionY,p=1;h===0&&f===0&&(h=Gxn(p),f=Gxn(p));var m=yNi(t,r,h,f);if(m>0)var b=s.nodeOverlap*m,_=Math.sqrt(h*h+f*f),w=b*h/_,S=b*f/_;else var C=W3e(t,h,f),A=W3e(r,-1*h,-1*f),k=A.x-C.x,I=A.y-C.y,N=k*k+I*I,_=Math.sqrt(N),b=(t.nodeRepulsion+r.nodeRepulsion)/N,w=b*k/_,S=b*I/_;t.isLocked||(t.offsetX-=w,t.offsetY-=S),r.isLocked||(r.offsetX+=w,r.offsetY+=S)}},yNi=function(t,r,a,s){if(a>0)var o=t.maxX-r.minX;else var o=r.maxX-t.minX;if(s>0)var u=t.maxY-r.minY;else var u=r.maxY-t.minY;return o>=0&&u>=0?Math.sqrt(o*o+u*u):0},W3e=function(t,r,a){var s=t.positionX,o=t.positionY,u=t.height||1,h=t.width||1,f=a/r,p=u/h,m={};return r===0&&0<a||r===0&&0>a?(m.x=s,m.y=o+u/2,m):0<r&&-1*p<=f&&f<=p?(m.x=s+h/2,m.y=o+h*a/2/r,m):0>r&&-1*p<=f&&f<=p?(m.x=s-h/2,m.y=o-h*a/2/r,m):0<a&&(f<=-1*p||f>=p)?(m.x=s+u*r/2/a,m.y=o+u/2,m):(0>a&&(f<=-1*p||f>=p)&&(m.x=s-u*r/2/a,m.y=o-u/2),m)},vNi=function(t,r){for(var a=0;a<t.edgeSize;a++){var s=t.layoutEdges[a],o=t.idToIndex[s.sourceId],u=t.layoutNodes[o],h=t.idToIndex[s.targetId],f=t.layoutNodes[h],p=f.positionX-u.positionX,m=f.positionY-u.positionY;if(!(p===0&&m===0)){var b=W3e(u,p,m),_=W3e(f,-1*p,-1*m),w=_.x-b.x,S=_.y-b.y,C=Math.sqrt(w*w+S*S),A=Math.pow(s.idealLength-C,2)/s.elasticity;if(C!==0)var k=A*w/C,I=A*S/C;else var k=0,I=0;u.isLocked||(u.offsetX+=k,u.offsetY+=I),f.isLocked||(f.offsetX-=k,f.offsetY-=I)}}},_Ni=function(t,r){if(r.gravity!==0)for(var a=1,s=0;s<t.graphSet.length;s++){var o=t.graphSet[s],u=o.length;if(s===0)var h=t.clientHeight/2,f=t.clientWidth/2;else var p=t.layoutNodes[t.idToIndex[o[0]]],m=t.layoutNodes[t.idToIndex[p.parentId]],h=m.positionX,f=m.positionY;for(var b=0;b<u;b++){var _=t.layoutNodes[t.idToIndex[o[b]]];if(!_.isLocked){var w=h-_.positionX,S=f-_.positionY,C=Math.sqrt(w*w+S*S);if(C>a){var A=r.gravity*w/C,k=r.gravity*S/C;_.offsetX+=A,_.offsetY+=k}}}}},wNi=function(t,r){var a=[],s=0,o=-1;for(a.push.apply(a,t.graphSet[0]),o+=t.graphSet[0].length;s<=o;){var u=a[s++],h=t.idToIndex[u],f=t.layoutNodes[h],p=f.children;if(0<p.length&&!f.isLocked){for(var m=f.offsetX,b=f.offsetY,_=0;_<p.length;_++){var w=t.layoutNodes[t.idToIndex[p[_]]];w.offsetX+=m,w.offsetY+=b,a[++o]=p[_]}f.offsetX=0,f.offsetY=0}}},ENi=function(t,r){for(var a=0;a<t.nodeSize;a++){var s=t.layoutNodes[a];0<s.children.length&&(s.maxX=void 0,s.minX=void 0,s.maxY=void 0,s.minY=void 0)}for(var a=0;a<t.nodeSize;a++){var s=t.layoutNodes[a];if(!(0<s.children.length||s.isLocked)){var o=xNi(s.offsetX,s.offsetY,t.temperature);s.positionX+=o.x,s.positionY+=o.y,s.offsetX=0,s.offsetY=0,s.minX=s.positionX-s.width,s.maxX=s.positionX+s.width,s.minY=s.positionY-s.height,s.maxY=s.positionY+s.height,fVn(s,t)}}for(var a=0;a<t.nodeSize;a++){var s=t.layoutNodes[a];0<s.children.length&&!s.isLocked&&(s.positionX=(s.maxX+s.minX)/2,s.positionY=(s.maxY+s.minY)/2,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY)}},xNi=function(t,r,a){var s=Math.sqrt(t*t+r*r);if(s>a)var o={x:a*t/s,y:a*r/s};else var o={x:t,y:r};return o},fVn=function(t,r){var a=t.parentId;if(a!=null){var s=r.layoutNodes[r.idToIndex[a]],o=!1;if((s.maxX==null||t.maxX+s.padRight>s.maxX)&&(s.maxX=t.maxX+s.padRight,o=!0),(s.minX==null||t.minX-s.padLeft<s.minX)&&(s.minX=t.minX-s.padLeft,o=!0),(s.maxY==null||t.maxY+s.padBottom>s.maxY)&&(s.maxY=t.maxY+s.padBottom,o=!0),(s.minY==null||t.minY-s.padTop<s.minY)&&(s.minY=t.minY-s.padTop,o=!0),o)return fVn(s,r)}},qxn=function(t,r){for(var a=t.layoutNodes,s=[],o=0;o<a.length;o++){var u=a[o],h=u.cmptId,f=s[h]=s[h]||[];f.push(u)}for(var p=0,o=0;o<s.length;o++){var m=s[o];if(m){m.x1=1/0,m.x2=-1/0,m.y1=1/0,m.y2=-1/0;for(var b=0;b<m.length;b++){var _=m[b];m.x1=Math.min(m.x1,_.positionX-_.width/2),m.x2=Math.max(m.x2,_.positionX+_.width/2),m.y1=Math.min(m.y1,_.positionY-_.height/2),m.y2=Math.max(m.y2,_.positionY+_.height/2)}m.w=m.x2-m.x1,m.h=m.y2-m.y1,p+=m.w*m.h}}s.sort(function(I,N){return N.w*N.h-I.w*I.h});for(var w=0,S=0,C=0,A=0,k=Math.sqrt(p)*t.clientWidth/t.clientHeight,o=0;o<s.length;o++){var m=s[o];if(m){for(var b=0;b<m.length;b++){var _=m[b];_.isLocked||(_.positionX+=w-m.x1,_.positionY+=S-m.y1)}w+=m.w+r.componentSpacing,C+=m.w+r.componentSpacing,A=Math.max(A,m.h),C>k&&(S+=A+r.componentSpacing,w=0,C=0,A=0)}}},SNi={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,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function pVn(e){this.options=eo({},SNi,e)}pVn.prototype.run=function(){var e=this.options,t=e,r=e.cy,a=t.eles,s=a.nodes().not(":parent");t.sort&&(s=s.sort(t.sort));var o=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(o.h===0||o.w===0)a.nodes().layoutPositions(this,t,function(ie){return{x:o.x1,y:o.y1}});else{var u=s.size(),h=Math.sqrt(u*o.h/o.w),f=Math.round(h),p=Math.round(o.w/o.h*h),m=function(ge){if(ge==null)return Math.min(f,p);var ce=Math.min(f,p);ce==f?f=ge:p=ge},b=function(ge){if(ge==null)return Math.max(f,p);var ce=Math.max(f,p);ce==f?f=ge:p=ge},_=t.rows,w=t.cols!=null?t.cols:t.columns;if(_!=null&&w!=null)f=_,p=w;else if(_!=null&&w==null)f=_,p=Math.ceil(u/f);else if(_==null&&w!=null)p=w,f=Math.ceil(u/p);else if(p*f>u){var S=m(),C=b();(S-1)*C>=u?m(S-1):(C-1)*S>=u&&b(C-1)}else for(;p*f<u;){var A=m(),k=b();(k+1)*A>=u?b(k+1):m(A+1)}var I=o.w/p,N=o.h/f;if(t.condense&&(I=0,N=0),t.avoidOverlap)for(var L=0;L<s.length;L++){var P=s[L],M=P._private.position;(M.x==null||M.y==null)&&(M.x=0,M.y=0);var F=P.layoutDimensions(t),U=t.avoidOverlapPadding,$=F.w+U,G=F.h+U;I=Math.max(I,$),N=Math.max(N,G)}for(var B={},Z=function(ge,ce){return!!B["c-"+ge+"-"+ce]},z=function(ge,ce){B["c-"+ge+"-"+ce]=!0},Y=0,W=0,Q=function(){W++,W>=p&&(W=0,Y++)},V={},j=0;j<s.length;j++){var ee=s[j],te=t.position(ee);if(te&&(te.row!==void 0||te.col!==void 0)){var ne={row:te.row,col:te.col};if(ne.col===void 0)for(ne.col=0;Z(ne.row,ne.col);)ne.col++;else if(ne.row===void 0)for(ne.row=0;Z(ne.row,ne.col);)ne.row++;V[ee.id()]=ne,z(ne.row,ne.col)}}var se=function(ge,ce){var be,ve;if(ge.locked()||ge.isParent())return!1;var De=V[ge.id()];if(De)be=De.col*I+I/2+o.x1,ve=De.row*N+N/2+o.y1;else{for(;Z(Y,W);)Q();be=W*I+I/2+o.x1,ve=Y*N+N/2+o.y1,z(Y,W),Q()}return{x:be,y:ve}};s.layoutPositions(this,t,se)}return this};var TNi={ready:function(){},stop:function(){}};function Igt(e){this.options=eo({},TNi,e)}Igt.prototype.run=function(){var e=this.options,t=e.eles,r=this;return e.cy,r.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",e.ready),r.emit("layoutready"),r.one("layoutstop",e.stop),r.emit("layoutstop"),this};Igt.prototype.stop=function(){return this};var CNi={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function gVn(e){this.options=eo({},CNi,e)}gVn.prototype.run=function(){var e=this.options,t=e.eles,r=t.nodes(),a=Of(e.positions);function s(o){if(e.positions==null)return W7i(o.position());if(a)return e.positions(o);var u=e.positions[o._private.data.id];return u??null}return r.layoutPositions(this,e,function(o,u){var h=s(o);return o.locked()||h==null?!1:h}),this};var ANi={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function mVn(e){this.options=eo({},ANi,e)}mVn.prototype.run=function(){var e=this.options,t=e.cy,r=e.eles,a=uv(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),s=function(u,h){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,e,s),this};var kNi=[{name:"breadthfirst",impl:lVn},{name:"circle",impl:cVn},{name:"concentric",impl:uVn},{name:"cose",impl:mke},{name:"grid",impl:pVn},{name:"null",impl:Igt},{name:"preset",impl:gVn},{name:"random",impl:mVn}];function bVn(e){this.options=e,this.notifications=0}var Hxn=function(){},Vxn=function(){throw new Error("A headless instance can not render images")};bVn.prototype={recalculateRenderedStyle:Hxn,notify:function(){this.notifications++},init:Hxn,isHeadless:function(){return!0},png:Vxn,jpg:Vxn};var Ngt={};Ngt.arrowShapeWidth=.3;Ngt.registerArrowShapes=function(){var e=this.arrowShapes={},t=this,r=function(p,m,b,_,w,S,C){var A=w.x-b/2-C,k=w.x+b/2+C,I=w.y-b/2-C,N=w.y+b/2+C,L=A<=p&&p<=k&&I<=m&&m<=N;return L},a=function(p,m,b,_,w){var S=p*Math.cos(_)-m*Math.sin(_),C=p*Math.sin(_)+m*Math.cos(_),A=S*b,k=C*b,I=A+w.x,N=k+w.y;return{x:I,y:N}},s=function(p,m,b,_){for(var w=[],S=0;S<p.length;S+=2){var C=p[S],A=p[S+1];w.push(a(C,A,m,b,_))}return w},o=function(p){for(var m=[],b=0;b<p.length;b++){var _=p[b];m.push(_.x,_.y)}return m},u=function(p){return p.pstyle("width").pfValue*p.pstyle("arrow-scale").pfValue*2},h=function(p,m){Ns(m)&&(m=e[m]),e[p]=eo({name:p,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(_,w,S,C,A,k){var I=o(s(this.points,S+2*k,C,A)),N=$2(_,w,I);return N},roughCollide:r,draw:function(_,w,S,C){var A=s(this.points,w,S,C);t.arrowShapeImpl("polygon")(_,A)},spacing:function(_){return 0},gap:u},m)};h("none",{collide:G3e,roughCollide:G3e,draw:mgt,spacing:aEn,gap:aEn}),h("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),h("arrow","triangle"),h("triangle-backcurve",{points:e.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(p,m,b,_,w){var S=s(this.points,m,b,_),C=this.controlPoint,A=a(C[0],C[1],m,b,_);t.arrowShapeImpl(this.name)(p,S,A)},gap:function(p){return u(p)*.8}}),h("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(p,m,b,_,w,S,C){var A=o(s(this.points,b+2*C,_,w)),k=o(s(this.pointsTee,b+2*C,_,w)),I=$2(p,m,A)||$2(p,m,k);return I},draw:function(p,m,b,_,w){var S=s(this.points,m,b,_),C=s(this.pointsTee,m,b,_);t.arrowShapeImpl(this.name)(p,S,C)}}),h("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(p,m,b,_,w,S,C){var A=w,k=Math.pow(A.x-p,2)+Math.pow(A.y-m,2)<=Math.pow((b+2*C)*this.radius,2),I=o(s(this.points,b+2*C,_,w));return $2(p,m,I)||k},draw:function(p,m,b,_,w){var S=s(this.pointsTr,m,b,_);t.arrowShapeImpl(this.name)(p,S,_.x,_.y,this.radius*m)},spacing:function(p){return t.getArrowWidth(p.pstyle("width").pfValue,p.pstyle("arrow-scale").value)*this.radius}}),h("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(p,m){var b=this.baseCrossLinePts.slice(),_=m/p,w=3,S=5;return b[w]=b[w]-_,b[S]=b[S]-_,b},collide:function(p,m,b,_,w,S,C){var A=o(s(this.points,b+2*C,_,w)),k=o(s(this.crossLinePts(b,S),b+2*C,_,w)),I=$2(p,m,A)||$2(p,m,k);return I},draw:function(p,m,b,_,w){var S=s(this.points,m,b,_),C=s(this.crossLinePts(m,w),m,b,_);t.arrowShapeImpl(this.name)(p,S,C)}}),h("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(p){return u(p)*.525}}),h("circle",{radius:.15,collide:function(p,m,b,_,w,S,C){var A=w,k=Math.pow(A.x-p,2)+Math.pow(A.y-m,2)<=Math.pow((b+2*C)*this.radius,2);return k},draw:function(p,m,b,_,w){t.arrowShapeImpl(this.name)(p,_.x,_.y,this.radius*m)},spacing:function(p){return t.getArrowWidth(p.pstyle("width").pfValue,p.pstyle("arrow-scale").value)*this.radius}}),h("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(p){return 1},gap:function(p){return 1}}),h("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),h("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(p){return p.pstyle("width").pfValue*p.pstyle("arrow-scale").value}}),h("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(p){return .95*p.pstyle("width").pfValue*p.pstyle("arrow-scale").value}})};var F$={};F$.projectIntoViewport=function(e,t){var r=this.cy,a=this.findContainerClientCoords(),s=a[0],o=a[1],u=a[4],h=r.pan(),f=r.zoom(),p=((e-s)/u-h.x)/f,m=((t-o)/u-h.y)/f;return[p,m]};F$.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var e=this.container,t=e.getBoundingClientRect(),r=this.cy.window().getComputedStyle(e),a=function(k){return parseFloat(r.getPropertyValue(k))},s={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},o={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},u=e.clientWidth,h=e.clientHeight,f=s.left+s.right,p=s.top+s.bottom,m=o.left+o.right,b=t.width/(u+m),_=u-f,w=h-p,S=t.left+s.left+o.left,C=t.top+s.top+o.top;return this.containerBB=[S,C,_,w,b]};F$.invalidateContainerClientCoordsCache=function(){this.containerBB=null};F$.findNearestElement=function(e,t,r,a){return this.findNearestElements(e,t,r,a)[0]};F$.findNearestElements=function(e,t,r,a){var s=this,o=this,u=o.getCachedZSortedEles(),h=[],f=o.cy.zoom(),p=o.cy.hasCompoundNodes(),m=(a?24:8)/f,b=(a?8:2)/f,_=(a?8:2)/f,w=1/0,S,C;r&&(u=u.interactive);function A(F,U){if(F.isNode()){if(C)return;C=F,h.push(F)}if(F.isEdge()&&(U==null||U<w))if(S){if(S.pstyle("z-compound-depth").value===F.pstyle("z-compound-depth").value&&S.pstyle("z-compound-depth").value===F.pstyle("z-compound-depth").value){for(var $=0;$<h.length;$++)if(h[$].isEdge()){h[$]=F,S=F,w=U??w;break}}}else h.push(F),S=F,w=U??w}function k(F){var U=F.outerWidth()+2*b,$=F.outerHeight()+2*b,G=U/2,B=$/2,Z=F.position(),z=F.pstyle("corner-radius").value==="auto"?"auto":F.pstyle("corner-radius").pfValue,Y=F._private.rscratch;if(Z.x-G<=e&&e<=Z.x+G&&Z.y-B<=t&&t<=Z.y+B){var W=o.nodeShapes[s.getNodeShape(F)];if(W.checkPoint(e,t,0,U,$,Z.x,Z.y,z,Y))return A(F,0),!0}}function I(F){var U=F._private,$=U.rscratch,G=F.pstyle("width").pfValue,B=F.pstyle("arrow-scale").value,Z=G/2+m,z=Z*Z,Y=Z*2,j=U.source,ee=U.target,W;if($.edgeType==="segments"||$.edgeType==="straight"||$.edgeType==="haystack"){for(var Q=$.allpts,V=0;V+3<Q.length;V+=2)if(lRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3],Y)&&z>(W=fRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3])))return A(F,W),!0}else if($.edgeType==="bezier"||$.edgeType==="multibezier"||$.edgeType==="self"||$.edgeType==="compound"){for(var Q=$.allpts,V=0;V+5<$.allpts.length;V+=4)if(cRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3],Q[V+4],Q[V+5],Y)&&z>(W=dRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3],Q[V+4],Q[V+5])))return A(F,W),!0}for(var j=j||U.source,ee=ee||U.target,te=s.getArrowWidth(G,B),ne=[{name:"source",x:$.arrowStartX,y:$.arrowStartY,angle:$.srcArrowAngle},{name:"target",x:$.arrowEndX,y:$.arrowEndY,angle:$.tgtArrowAngle},{name:"mid-source",x:$.midX,y:$.midY,angle:$.midsrcArrowAngle},{name:"mid-target",x:$.midX,y:$.midY,angle:$.midtgtArrowAngle}],V=0;V<ne.length;V++){var se=ne[V],ie=o.arrowShapes[F.pstyle(se.name+"-arrow-shape").value],ge=F.pstyle("width").pfValue;if(ie.roughCollide(e,t,te,se.angle,{x:se.x,y:se.y},ge,m)&&ie.collide(e,t,te,se.angle,{x:se.x,y:se.y},ge,m))return A(F),!0}p&&h.length>0&&(k(j),k(ee))}function N(F,U,$){return F2(F,U,$)}function L(F,U){var $=F._private,G=_,B;U?B=U+"-":B="",F.boundingBox();var Z=$.labelBounds[U||"main"],z=F.pstyle(B+"label").value,Y=F.pstyle("text-events").strValue==="yes";if(!(!Y||!z)){var W=N($.rscratch,"labelX",U),Q=N($.rscratch,"labelY",U),V=N($.rscratch,"labelAngle",U),j=F.pstyle(B+"text-margin-x").pfValue,ee=F.pstyle(B+"text-margin-y").pfValue,te=Z.x1-G-j,ne=Z.x2+G-j,se=Z.y1-G-ee,ie=Z.y2+G-ee;if(V){var ge=Math.cos(V),ce=Math.sin(V),be=function(Ce,Ie){return Ce=Ce-W,Ie=Ie-Q,{x:Ce*ge-Ie*ce+W,y:Ce*ce+Ie*ge+Q}},ve=be(te,se),De=be(te,ie),ye=be(ne,se),Ee=be(ne,ie),he=[ve.x+j,ve.y+ee,ye.x+j,ye.y+ee,Ee.x+j,Ee.y+ee,De.x+j,De.y+ee];if($2(e,t,he))return A(F),!0}else if(bO(Z,e,t))return A(F),!0}}for(var P=u.length-1;P>=0;P--){var M=u[P];M.isNode()?k(M)||L(M):I(M)||L(M)||L(M,"source")||L(M,"target")}return h};F$.getAllInBox=function(e,t,r,a){var s=this.getCachedZSortedEles().interactive,o=this.cy.zoom(),u=2/o,h=[],f=Math.min(e,r),p=Math.max(e,r),m=Math.min(t,a),b=Math.max(t,a);e=f,r=p,t=m,a=b;var _=uv({x1:e,y1:t,x2:r,y2:a}),w=[{x:_.x1,y:_.y1},{x:_.x2,y:_.y1},{x:_.x2,y:_.y2},{x:_.x1,y:_.y2}],S=[[w[0],w[1]],[w[1],w[2]],[w[2],w[3]],[w[3],w[0]]];function C(Ce,Ie,Le){return F2(Ce,Ie,Le)}function A(Ce,Ie){var Le=Ce._private,Fe=u,Ve="";Ce.boundingBox();var Oe=Le.labelBounds.main;if(!Oe)return null;var Dt=C(Le.rscratch,"labelX",Ie),ot=C(Le.rscratch,"labelY",Ie),sn=C(Le.rscratch,"labelAngle",Ie),Kt=Ce.pstyle(Ve+"text-margin-x").pfValue,Ft=Ce.pstyle(Ve+"text-margin-y").pfValue,Je=Oe.x1-Fe-Kt,ht=Oe.x2+Fe-Kt,et=Oe.y1-Fe-Ft,qe=Oe.y2+Fe-Ft;if(sn){var He=Math.cos(sn),Ge=Math.sin(sn),Ye=function(Xe,fe){return Xe=Xe-Dt,fe=fe-ot,{x:Xe*He-fe*Ge+Dt,y:Xe*Ge+fe*He+ot}};return[Ye(Je,et),Ye(ht,et),Ye(ht,qe),Ye(Je,qe)]}else return[{x:Je,y:et},{x:ht,y:et},{x:ht,y:qe},{x:Je,y:qe}]}function k(Ce,Ie,Le,Fe){function Ve(Oe,Dt,ot){return(ot.y-Oe.y)*(Dt.x-Oe.x)>(Dt.y-Oe.y)*(ot.x-Oe.x)}return Ve(Ce,Le,Fe)!==Ve(Ie,Le,Fe)&&Ve(Ce,Ie,Le)!==Ve(Ce,Ie,Fe)}for(var I=0;I<s.length;I++){var N=s[I];if(N.isNode()){var L=N,P=L.pstyle("text-events").strValue==="yes",M=L.pstyle("box-selection").strValue,F=L.pstyle("box-select-labels").strValue==="yes";if(M==="none")continue;var U=(M==="overlap"||F)&&P,$=L.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:U});if(M==="contain"){var G=!1;if(F&&P){var B=A(L);B&&srt(B,w)&&(h.push(L),G=!0)}!G&&SHn(_,$)&&h.push(L)}else if(M==="overlap"&&_gt(_,$)){var Z=L.boundingBox({includeNodes:!0,includeEdges:!0,includeLabels:!1,includeMainLabels:!1,includeSourceLabels:!1,includeTargetLabels:!1}),z=[{x:Z.x1,y:Z.y1},{x:Z.x2,y:Z.y1},{x:Z.x2,y:Z.y2},{x:Z.x1,y:Z.y2}];if(srt(z,w))h.push(L);else{var Y=A(L);Y&&srt(Y,w)&&h.push(L)}}}else{var W=N,Q=W._private,V=Q.rscratch,j=W.pstyle("box-selection").strValue;if(j==="none")continue;if(j==="contain"){if(V.startX!=null&&V.startY!=null&&!bO(_,V.startX,V.startY)||V.endX!=null&&V.endY!=null&&!bO(_,V.endX,V.endY))continue;if(V.edgeType==="bezier"||V.edgeType==="multibezier"||V.edgeType==="self"||V.edgeType==="compound"||V.edgeType==="segments"||V.edgeType==="haystack"){for(var ee=Q.rstyle.bezierPts||Q.rstyle.linePts||Q.rstyle.haystackPts,te=!0,ne=0;ne<ee.length;ne++)if(!uEn(_,ee[ne])){te=!1;break}te&&h.push(W)}else V.edgeType==="straight"&&h.push(W)}else if(j==="overlap"){var se=!1;if(V.startX!=null&&V.startY!=null&&V.endX!=null&&V.endY!=null&&(bO(_,V.startX,V.startY)||bO(_,V.endX,V.endY)))h.push(W),se=!0;else if(!se&&V.edgeType==="haystack"){for(var ie=Q.rstyle.haystackPts,ge=0;ge<ie.length;ge++)if(uEn(_,ie[ge])){h.push(W),se=!0;break}}if(!se){var ce=Q.rstyle.bezierPts||Q.rstyle.linePts||Q.rstyle.haystackPts;if((!ce||ce.length<2)&&V.edgeType==="straight"&&V.startX!=null&&V.startY!=null&&V.endX!=null&&V.endY!=null&&(ce=[{x:V.startX,y:V.startY},{x:V.endX,y:V.endY}]),!ce||ce.length<2)continue;for(var be=0;be<ce.length-1;be++){for(var ve=ce[be],De=ce[be+1],ye=0;ye<S.length;ye++){var Ee=S1(S[ye],2),he=Ee[0],we=Ee[1];if(k(ve,De,he,we)){h.push(W),se=!0;break}}if(se)break}}}}}return h};var K3e={};K3e.calculateArrowAngles=function(e){var t=e._private.rscratch,r=t.edgeType==="haystack",a=t.edgeType==="bezier",s=t.edgeType==="multibezier",o=t.edgeType==="segments",u=t.edgeType==="compound",h=t.edgeType==="self",f,p,m,b,_,w,k,I;if(r?(m=t.haystackPts[0],b=t.haystackPts[1],_=t.haystackPts[2],w=t.haystackPts[3]):(m=t.arrowStartX,b=t.arrowStartY,_=t.arrowEndX,w=t.arrowEndY),k=t.midX,I=t.midY,o)f=m-t.segpts[0],p=b-t.segpts[1];else if(s||u||h||a){var S=t.allpts,C=_g(S[0],S[2],S[4],.1),A=_g(S[1],S[3],S[5],.1);f=m-C,p=b-A}else f=m-k,p=b-I;t.srcArrowAngle=Iwe(f,p);var k=t.midX,I=t.midY;if(r&&(k=(m+_)/2,I=(b+w)/2),f=_-m,p=w-b,o){var S=t.allpts;if(S.length/2%2===0){var N=S.length/2,L=N-2;f=S[N]-S[L],p=S[N+1]-S[L+1]}else if(t.isRound)f=t.midVector[1],p=-t.midVector[0];else{var N=S.length/2-1,L=N-2;f=S[N]-S[L],p=S[N+1]-S[L+1]}}else if(s||u||h){var S=t.allpts,P=t.ctrlpts,M,F,U,$;if(P.length/2%2===0){var G=S.length/2-1,B=G+2,Z=B+2;M=_g(S[G],S[B],S[Z],0),F=_g(S[G+1],S[B+1],S[Z+1],0),U=_g(S[G],S[B],S[Z],1e-4),$=_g(S[G+1],S[B+1],S[Z+1],1e-4)}else{var B=S.length/2-1,G=B-2,Z=B+2;M=_g(S[G],S[B],S[Z],.4999),F=_g(S[G+1],S[B+1],S[Z+1],.4999),U=_g(S[G],S[B],S[Z],.5),$=_g(S[G+1],S[B+1],S[Z+1],.5)}f=U-M,p=$-F}if(t.midtgtArrowAngle=Iwe(f,p),t.midDispX=f,t.midDispY=p,f*=-1,p*=-1,o){var S=t.allpts;if(S.length/2%2!==0){if(!t.isRound){var N=S.length/2-1,z=N+2;f=-(S[z]-S[N]),p=-(S[z+1]-S[N+1])}}}if(t.midsrcArrowAngle=Iwe(f,p),o)f=_-t.segpts[t.segpts.length-2],p=w-t.segpts[t.segpts.length-1];else if(s||u||h||a){var S=t.allpts,Y=S.length,C=_g(S[Y-6],S[Y-4],S[Y-2],.9),A=_g(S[Y-5],S[Y-3],S[Y-1],.9);f=_-C,p=w-A}else f=_-k,p=w-I;t.tgtArrowAngle=Iwe(f,p)};K3e.getArrowWidth=K3e.getArrowHeight=function(e,t){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[e+", "+t];return a||(a=Math.max(Math.pow(e*13.37,.9),29)*t,r[e+", "+t]=a,a)};var dct,fct,xC={},Gx={},Yxn,jxn,$B,kxe,Q6,_B,OB,mC,XH,Fwe,yVn,vVn,pct,gct,Wxn,Kxn=function(t,r,a){a.x=r.x-t.x,a.y=r.y-t.y,a.len=Math.sqrt(a.x*a.x+a.y*a.y),a.nx=a.x/a.len,a.ny=a.y/a.len,a.ang=Math.atan2(a.ny,a.nx)},RNi=function(t,r){r.x=t.x*-1,r.y=t.y*-1,r.nx=t.nx*-1,r.ny=t.ny*-1,r.ang=t.ang>0?-(Math.PI-t.ang):Math.PI+t.ang},INi=function(t,r,a,s,o){if(t!==Wxn?Kxn(r,t,xC):RNi(Gx,xC),Kxn(r,a,Gx),Yxn=xC.nx*Gx.ny-xC.ny*Gx.nx,jxn=xC.nx*Gx.nx-xC.ny*-Gx.ny,Q6=Math.asin(Math.max(-1,Math.min(1,Yxn))),Math.abs(Q6)<1e-6){dct=r.x,fct=r.y,OB=XH=0;return}$B=1,kxe=!1,jxn<0?Q6<0?Q6=Math.PI+Q6:(Q6=Math.PI-Q6,$B=-1,kxe=!0):Q6>0&&($B=-1,kxe=!0),r.radius!==void 0?XH=r.radius:XH=s,_B=Q6/2,Fwe=Math.min(xC.len/2,Gx.len/2),o?(mC=Math.abs(Math.cos(_B)*XH/Math.sin(_B)),mC>Fwe?(mC=Fwe,OB=Math.abs(mC*Math.sin(_B)/Math.cos(_B))):OB=XH):(mC=Math.min(Fwe,XH),OB=Math.abs(mC*Math.sin(_B)/Math.cos(_B))),pct=r.x+Gx.nx*mC,gct=r.y+Gx.ny*mC,dct=pct-Gx.ny*OB*$B,fct=gct+Gx.nx*OB*$B,yVn=r.x+xC.nx*mC,vVn=r.y+xC.ny*mC,Wxn=r};function _Vn(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function Ogt(e,t,r,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return a===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(INi(e,t,r,a,s),{cx:dct,cy:fct,radius:OB,startX:yVn,startY:vVn,stopX:pct,stopY:gct,startAngle:xC.ang+Math.PI/2*$B,endAngle:Gx.ang-Math.PI/2*$B,counterClockwise:kxe})}var Xoe=.01,NNi=Math.sqrt(2*Xoe),Lb={};Lb.findMidptPtsEtc=function(e,t){var r=t.posPts,a=t.intersectionPts,s=t.vectorNormInverse,o,u=e.pstyle("source-endpoint"),h=e.pstyle("target-endpoint"),f=u.units!=null&&h.units!=null,p=function(P,M,F,U){var $=U-M,G=F-P,B=Math.sqrt(G*G+$*$);return{x:-$/B,y:G/B}},m=e.pstyle("edge-distances").value;switch(m){case"node-position":o=r;break;case"intersection":o=a;break;case"endpoints":{if(f){var b=this.manualEndptToPx(e.source()[0],u),_=S1(b,2),w=_[0],S=_[1],C=this.manualEndptToPx(e.target()[0],h),A=S1(C,2),k=A[0],I=A[1],N={x1:w,y1:S,x2:k,y2:I};s=p(w,S,k,I),o=N}else Uu("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint.  Falling back on edge-distances:intersection (default).")),o=a;break}}return{midptPts:o,vectorNormInverse:s}};Lb.findHaystackPoints=function(e){for(var t=0;t<e.length;t++){var r=e[t],a=r._private,s=a.rscratch;if(!s.haystack){var o=Math.random()*2*Math.PI;s.source={x:Math.cos(o),y:Math.sin(o)},o=Math.random()*2*Math.PI,s.target={x:Math.cos(o),y:Math.sin(o)}}var u=a.source,h=a.target,f=u.position(),p=h.position(),m=u.width(),b=h.width(),_=u.height(),w=h.height(),S=r.pstyle("haystack-radius").value,C=S/2;s.haystackPts=s.allpts=[s.source.x*m*C+f.x,s.source.y*_*C+f.y,s.target.x*b*C+p.x,s.target.y*w*C+p.y],s.midX=(s.allpts[0]+s.allpts[2])/2,s.midY=(s.allpts[1]+s.allpts[3])/2,s.edgeType="haystack",s.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}};Lb.findSegmentsPoints=function(e,t){var r=e._private.rscratch,a=e.pstyle("segment-weights"),s=e.pstyle("segment-distances"),o=e.pstyle("segment-radii"),u=e.pstyle("radius-type"),h=Math.min(a.pfValue.length,s.pfValue.length),f=o.pfValue[o.pfValue.length-1],p=u.pfValue[u.pfValue.length-1];r.edgeType="segments",r.segpts=[],r.radii=[],r.isArcRadius=[];for(var m=0;m<h;m++){var b=a.pfValue[m],_=s.pfValue[m],w=1-b,S=b,C=this.findMidptPtsEtc(e,t),A=C.midptPts,k=C.vectorNormInverse,I={x:A.x1*w+A.x2*S,y:A.y1*w+A.y2*S};r.segpts.push(I.x+k.x*_,I.y+k.y*_),r.radii.push(o.pfValue[m]!==void 0?o.pfValue[m]:f),r.isArcRadius.push((u.pfValue[m]!==void 0?u.pfValue[m]:p)==="arc-radius")}};Lb.findLoopPoints=function(e,t,r,a){var s=e._private.rscratch,o=t.dirCounts,u=t.srcPos,h=e.pstyle("control-point-distances"),f=h?h.pfValue[0]:void 0,p=e.pstyle("loop-direction").pfValue,m=e.pstyle("loop-sweep").pfValue,b=e.pstyle("control-point-step-size").pfValue;s.edgeType="self";var _=r,w=b;a&&(_=0,w=f);var S=p-Math.PI/2,C=S-m/2,A=S+m/2,k=p+"_"+m;_=o[k]===void 0?o[k]=0:++o[k],s.ctrlpts=[u.x+Math.cos(C)*1.4*w*(_/3+1),u.y+Math.sin(C)*1.4*w*(_/3+1),u.x+Math.cos(A)*1.4*w*(_/3+1),u.y+Math.sin(A)*1.4*w*(_/3+1)]};Lb.findCompoundLoopPoints=function(e,t,r,a){var s=e._private.rscratch;s.edgeType="compound";var o=t.srcPos,u=t.tgtPos,h=t.srcW,f=t.srcH,p=t.tgtW,m=t.tgtH,b=e.pstyle("control-point-step-size").pfValue,_=e.pstyle("control-point-distances"),w=_?_.pfValue[0]:void 0,S=r,C=b;a&&(S=0,C=w);var A=50,k={x:o.x-h/2,y:o.y-f/2},I={x:u.x-p/2,y:u.y-m/2},N={x:Math.min(k.x,I.x),y:Math.min(k.y,I.y)},L=.5,P=Math.max(L,Math.log(h*Xoe)),M=Math.max(L,Math.log(p*Xoe));s.ctrlpts=[N.x,N.y-(1+Math.pow(A,1.12)/100)*C*(S/3+1)*P,N.x-(1+Math.pow(A,1.12)/100)*C*(S/3+1)*M,N.y]};Lb.findStraightEdgePoints=function(e){e._private.rscratch.edgeType="straight"};Lb.findBezierPoints=function(e,t,r,a,s){var o=e._private.rscratch,u=e.pstyle("control-point-step-size").pfValue,h=e.pstyle("control-point-distances"),f=e.pstyle("control-point-weights"),p=h&&f?Math.min(h.value.length,f.value.length):1,m=h?h.pfValue[0]:void 0,b=f.value[0],_=a;o.edgeType=_?"multibezier":"bezier",o.ctrlpts=[];for(var w=0;w<p;w++){var S=(.5-t.eles.length/2+r)*u*(s?-1:1),C=void 0,A=vgt(S);_&&(m=h?h.pfValue[w]:u,b=f.value[w]),a?C=m:C=m!==void 0?A*m:void 0;var k=C!==void 0?C:S,I=1-b,N=b,L=this.findMidptPtsEtc(e,t),P=L.midptPts,M=L.vectorNormInverse,F={x:P.x1*I+P.x2*N,y:P.y1*I+P.y2*N};o.ctrlpts.push(F.x+M.x*k,F.y+M.y*k)}};Lb.findTaxiPoints=function(e,t){var r=e._private.rscratch;r.edgeType="segments";var a="vertical",s="horizontal",o="leftward",u="rightward",h="downward",f="upward",p="auto",m=t.posPts,b=t.srcW,_=t.srcH,w=t.tgtW,S=t.tgtH,C=e.pstyle("edge-distances").value,A=C!=="node-position",k=e.pstyle("taxi-direction").value,I=k,N=e.pstyle("taxi-turn"),L=N.units==="%",P=N.pfValue,M=P<0,F=e.pstyle("taxi-turn-min-distance").pfValue,U=A?(b+w)/2:0,$=A?(_+S)/2:0,G=m.x2-m.x1,B=m.y2-m.y1,Z=function(fe,Qe){return fe>0?Math.max(fe-Qe,0):Math.min(fe+Qe,0)},z=Z(G,U),Y=Z(B,$),W=!1;I===p?k=Math.abs(z)>Math.abs(Y)?s:a:I===f||I===h?(k=a,W=!0):(I===o||I===u)&&(k=s,W=!0);var Q=k===a,V=Q?Y:z,j=Q?B:G,ee=vgt(j),te=!1;!(W&&(L||M))&&(I===h&&j<0||I===f&&j>0||I===o&&j>0||I===u&&j<0)&&(ee*=-1,V=ee*Math.abs(V),te=!0);var ne;if(L){var se=P<0?1+P:P;ne=se*V}else{var ie=P<0?V:0;ne=ie+P*ee}var ge=function(fe){return Math.abs(fe)<F||Math.abs(fe)>=Math.abs(V)},ce=ge(ne),be=ge(Math.abs(V)-Math.abs(ne)),ve=ce||be;if(ve&&!te)if(Q){var De=Math.abs(j)<=_/2,ye=Math.abs(G)<=w/2;if(De){var Ee=(m.x1+m.x2)/2,he=m.y1,we=m.y2;r.segpts=[Ee,he,Ee,we]}else if(ye){var Ce=(m.y1+m.y2)/2,Ie=m.x1,Le=m.x2;r.segpts=[Ie,Ce,Le,Ce]}else r.segpts=[m.x1,m.y2]}else{var Fe=Math.abs(j)<=b/2,Ve=Math.abs(B)<=S/2;if(Fe){var Oe=(m.y1+m.y2)/2,Dt=m.x1,ot=m.x2;r.segpts=[Dt,Oe,ot,Oe]}else if(Ve){var sn=(m.x1+m.x2)/2,Kt=m.y1,Ft=m.y2;r.segpts=[sn,Kt,sn,Ft]}else r.segpts=[m.x2,m.y1]}else if(Q){var Je=m.y1+ne+(A?_/2*ee:0),ht=m.x1,et=m.x2;r.segpts=[ht,Je,et,Je]}else{var qe=m.x1+ne+(A?b/2*ee:0),He=m.y1,Ge=m.y2;r.segpts=[qe,He,qe,Ge]}if(r.isRound){var Ye=e.pstyle("taxi-radius").value,Ae=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(Ye),r.isArcRadius=new Array(r.segpts.length/2).fill(Ae)}};Lb.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var a=t.srcPos,s=t.tgtPos,o=t.srcW,u=t.srcH,h=t.tgtW,f=t.tgtH,p=t.srcShape,m=t.tgtShape,b=t.srcCornerRadius,_=t.tgtCornerRadius,w=t.srcRs,S=t.tgtRs,C=!aa(r.startX)||!aa(r.startY),A=!aa(r.arrowStartX)||!aa(r.arrowStartY),k=!aa(r.endX)||!aa(r.endY),I=!aa(r.arrowEndX)||!aa(r.arrowEndY),N=3,L=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,P=N*L,M=XF({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),F=M<P,U=XF({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),$=U<P,G=!1;if(C||A||F){G=!0;var B={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},Z=Math.sqrt(B.x*B.x+B.y*B.y),z={x:B.x/Z,y:B.y/Z},Y=Math.max(o,u),W={x:r.ctrlpts[0]+z.x*2*Y,y:r.ctrlpts[1]+z.y*2*Y},Q=p.intersectLine(a.x,a.y,o,u,W.x,W.y,0,b,w);F?(r.ctrlpts[0]=r.ctrlpts[0]+z.x*(P-M),r.ctrlpts[1]=r.ctrlpts[1]+z.y*(P-M)):(r.ctrlpts[0]=Q[0]+z.x*P,r.ctrlpts[1]=Q[1]+z.y*P)}if(k||I||$){G=!0;var V={x:r.ctrlpts[0]-s.x,y:r.ctrlpts[1]-s.y},j=Math.sqrt(V.x*V.x+V.y*V.y),ee={x:V.x/j,y:V.y/j},te=Math.max(o,u),ne={x:r.ctrlpts[0]+ee.x*2*te,y:r.ctrlpts[1]+ee.y*2*te},se=m.intersectLine(s.x,s.y,h,f,ne.x,ne.y,0,_,S);$?(r.ctrlpts[0]=r.ctrlpts[0]+ee.x*(P-U),r.ctrlpts[1]=r.ctrlpts[1]+ee.y*(P-U)):(r.ctrlpts[0]=se[0]+ee.x*P,r.ctrlpts[1]=se[1]+ee.y*P)}G&&this.findEndpoints(e)}};Lb.storeAllpts=function(e){var t=e._private.rscratch;if(t.edgeType==="multibezier"||t.edgeType==="bezier"||t.edgeType==="self"||t.edgeType==="compound"){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var r=0;r+1<t.ctrlpts.length;r+=2)t.allpts.push(t.ctrlpts[r],t.ctrlpts[r+1]),r+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[r]+t.ctrlpts[r+2])/2,(t.ctrlpts[r+1]+t.ctrlpts[r+3])/2);t.allpts.push(t.endX,t.endY);var a,s;t.ctrlpts.length/2%2===0?(a=t.allpts.length/2-1,t.midX=t.allpts[a],t.midY=t.allpts[a+1]):(a=t.allpts.length/2-3,s=.5,t.midX=_g(t.allpts[a],t.allpts[a+2],t.allpts[a+4],s),t.midY=_g(t.allpts[a+1],t.allpts[a+3],t.allpts[a+5],s))}else if(t.edgeType==="straight")t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if(t.edgeType==="segments"){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var o=2;o+3<t.allpts.length;o+=2){var u=t.radii[o/2-1],h=t.isArcRadius[o/2-1];t.roundCorners.push(Ogt({x:t.allpts[o-2],y:t.allpts[o-1]},{x:t.allpts[o],y:t.allpts[o+1],radius:u},{x:t.allpts[o+2],y:t.allpts[o+3]},u,h))}}if(t.segpts.length%4===0){var f=t.segpts.length/2,p=f-2;t.midX=(t.segpts[p]+t.segpts[f])/2,t.midY=(t.segpts[p+1]+t.segpts[f+1])/2}else{var m=t.segpts.length/2-1;if(!t.isRound)t.midX=t.segpts[m],t.midY=t.segpts[m+1];else{var b={x:t.segpts[m],y:t.segpts[m+1]},_=t.roundCorners[m/2];if(_.radius===0){var w={x:t.segpts[m+2],y:t.segpts[m+3]};t.midX=b.x,t.midY=b.y,t.midVector=[b.y-w.y,w.x-b.x]}else{var S=[b.x-_.cx,b.y-_.cy],C=_.radius/Math.sqrt(Math.pow(S[0],2)+Math.pow(S[1],2));S=S.map(function(A){return A*C}),t.midX=_.cx+S[0],t.midY=_.cy+S[1],t.midVector=S}}}}};Lb.checkForInvalidEdgeWarning=function(e){var t=e[0]._private.rscratch;t.nodesOverlap||aa(t.startX)&&aa(t.startY)&&aa(t.endX)&&aa(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,Uu("Edge `"+e.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."))};Lb.findEdgeControlPoints=function(e){var t=this;if(!(!e||e.length===0)){for(var r=this,a=r.cy,s=a.hasCompoundNodes(),o=new k7,u=function($,G){return[].concat($3e($),[G?1:0]).join("-")},h=[],f=[],p=0;p<e.length;p++){var m=e[p],b=m._private,_=m.pstyle("curve-style").value;if(!(m.removed()||!m.takesUpSpace())){if(_==="haystack"){f.push(m);continue}var w=_==="unbundled-bezier"||mO(_,"segments")||_==="straight"||_==="straight-triangle"||mO(_,"taxi"),S=_==="unbundled-bezier"||_==="bezier",C=b.source,A=b.target,k=C.poolIndex(),I=A.poolIndex(),N=[k,I].sort(),L=u(N,w),P=o.get(L);P==null&&(P={eles:[]},h.push({pairId:N,edgeIsUnbundled:w}),o.set(L,P)),P.eles.push(m),w&&(P.hasUnbundled=!0),S&&(P.hasBezier=!0)}}for(var M=function(){var $=h[F],G=$.pairId,B=$.edgeIsUnbundled,Z=u(G,B),z=o.get(Z),Y;if(!z.hasUnbundled){var W=z.eles[0].parallelEdges().filter(function(Ae){return Ae.isBundledBezier()});bgt(z.eles),W.forEach(function(Ae){return z.eles.push(Ae)}),z.eles.sort(function(Ae,Xe){return Ae.poolIndex()-Xe.poolIndex()})}var Q=z.eles[0],V=Q.source(),j=Q.target();if(V.poolIndex()>j.poolIndex()){var ee=V;V=j,j=ee}var te=z.srcPos=V.position(),ne=z.tgtPos=j.position(),se=z.srcW=V.outerWidth(),ie=z.srcH=V.outerHeight(),ge=z.tgtW=j.outerWidth(),ce=z.tgtH=j.outerHeight(),be=z.srcShape=r.nodeShapes[t.getNodeShape(V)],ve=z.tgtShape=r.nodeShapes[t.getNodeShape(j)],De=z.srcCornerRadius=V.pstyle("corner-radius").value==="auto"?"auto":V.pstyle("corner-radius").pfValue,ye=z.tgtCornerRadius=j.pstyle("corner-radius").value==="auto"?"auto":j.pstyle("corner-radius").pfValue,Ee=z.tgtRs=j._private.rscratch,he=z.srcRs=V._private.rscratch;z.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var we=0;we<z.eles.length;we++){var Ce=z.eles[we],Ie=Ce[0]._private.rscratch,Le=Ce.pstyle("curve-style").value,Fe=Le==="unbundled-bezier"||mO(Le,"segments")||mO(Le,"taxi"),Ve=!V.same(Ce.source());if(!z.calculatedIntersection&&V!==j&&(z.hasBezier||z.hasUnbundled)){z.calculatedIntersection=!0;var Oe=be.intersectLine(te.x,te.y,se,ie,ne.x,ne.y,0,De,he),Dt=z.srcIntn=Oe,ot=ve.intersectLine(ne.x,ne.y,ge,ce,te.x,te.y,0,ye,Ee),sn=z.tgtIntn=ot,Kt=z.intersectionPts={x1:Oe[0],x2:ot[0],y1:Oe[1],y2:ot[1]},Ft=z.posPts={x1:te.x,x2:ne.x,y1:te.y,y2:ne.y},Je=ot[1]-Oe[1],ht=ot[0]-Oe[0],et=Math.sqrt(ht*ht+Je*Je);aa(et)&&et>=NNi||(et=Math.sqrt(Math.max(ht*ht,Xoe)+Math.max(Je*Je,Xoe)));var qe=z.vector={x:ht,y:Je},He=z.vectorNorm={x:qe.x/et,y:qe.y/et},Ge={x:-He.y,y:He.x};z.nodesOverlap=!aa(et)||ve.checkPoint(Oe[0],Oe[1],0,ge,ce,ne.x,ne.y,ye,Ee)||be.checkPoint(ot[0],ot[1],0,se,ie,te.x,te.y,De,he),z.vectorNormInverse=Ge,Y={nodesOverlap:z.nodesOverlap,dirCounts:z.dirCounts,calculatedIntersection:!0,hasBezier:z.hasBezier,hasUnbundled:z.hasUnbundled,eles:z.eles,srcPos:ne,srcRs:Ee,tgtPos:te,tgtRs:he,srcW:ge,srcH:ce,tgtW:se,tgtH:ie,srcIntn:sn,tgtIntn:Dt,srcShape:ve,tgtShape:be,posPts:{x1:Ft.x2,y1:Ft.y2,x2:Ft.x1,y2:Ft.y1},intersectionPts:{x1:Kt.x2,y1:Kt.y2,x2:Kt.x1,y2:Kt.y1},vector:{x:-qe.x,y:-qe.y},vectorNorm:{x:-He.x,y:-He.y},vectorNormInverse:{x:-Ge.x,y:-Ge.y}}}var Ye=Ve?Y:z;Ie.nodesOverlap=Ye.nodesOverlap,Ie.srcIntn=Ye.srcIntn,Ie.tgtIntn=Ye.tgtIntn,Ie.isRound=Le.startsWith("round"),s&&(V.isParent()||V.isChild()||j.isParent()||j.isChild())&&(V.parents().anySame(j)||j.parents().anySame(V)||V.same(j)&&V.isParent())?t.findCompoundLoopPoints(Ce,Ye,we,Fe):V===j?t.findLoopPoints(Ce,Ye,we,Fe):Le.endsWith("segments")?t.findSegmentsPoints(Ce,Ye):Le.endsWith("taxi")?t.findTaxiPoints(Ce,Ye):Le==="straight"||!Fe&&z.eles.length%2===1&&we===Math.floor(z.eles.length/2)?t.findStraightEdgePoints(Ce):t.findBezierPoints(Ce,Ye,we,Fe,Ve),t.findEndpoints(Ce),t.tryToCorrectInvalidPoints(Ce,Ye),t.checkForInvalidEdgeWarning(Ce),t.storeAllpts(Ce),t.storeEdgeProjections(Ce),t.calculateArrowAngles(Ce),t.recalculateEdgeLabelProjections(Ce),t.calculateLabelAngles(Ce)}},F=0;F<h.length;F++)M();this.findHaystackPoints(f)}};function wVn(e){var t=[];if(e!=null){for(var r=0;r<e.length;r+=2){var a=e[r],s=e[r+1];t.push({x:a,y:s})}return t}}Lb.getSegmentPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var r=t.edgeType;if(r==="segments")return wVn(t.segpts)};Lb.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var r=t.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return wVn(t.ctrlpts)};Lb.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}};var Ice={};Ice.manualEndptToPx=function(e,t){var r=this,a=e.position(),s=e.outerWidth(),o=e.outerHeight(),u=e._private.rscratch;if(t.value.length===2){var h=[t.pfValue[0],t.pfValue[1]];return t.units[0]==="%"&&(h[0]=h[0]*s),t.units[1]==="%"&&(h[1]=h[1]*o),h[0]+=a.x,h[1]+=a.y,h}else{var f=t.pfValue[0];f=-Math.PI/2+f;var p=2*Math.max(s,o),m=[a.x+Math.cos(f)*p,a.y+Math.sin(f)*p];return r.nodeShapes[this.getNodeShape(e)].intersectLine(a.x,a.y,s,o,m[0],m[1],0,e.pstyle("corner-radius").value==="auto"?"auto":e.pstyle("corner-radius").pfValue,u)}};Ice.findEndpoints=function(e){var t,r,a,s,o=this,u,h=e.source()[0],f=e.target()[0],p=h.position(),m=f.position(),b=e.pstyle("target-arrow-shape").value,_=e.pstyle("source-arrow-shape").value,w=e.pstyle("target-distance-from-node").pfValue,S=e.pstyle("source-distance-from-node").pfValue,C=h._private.rscratch,A=f._private.rscratch,k=e.pstyle("curve-style").value,I=e._private.rscratch,N=I.edgeType,L=mO(k,"taxi"),P=N==="self"||N==="compound",M=N==="bezier"||N==="multibezier"||P,F=N!=="bezier",U=N==="straight"||N==="segments",$=N==="segments",G=M||F||U,B=P||L,Z=e.pstyle("source-endpoint"),z=B?"outside-to-node":Z.value,Y=h.pstyle("corner-radius").value==="auto"?"auto":h.pstyle("corner-radius").pfValue,W=e.pstyle("target-endpoint"),Q=B?"outside-to-node":W.value,V=f.pstyle("corner-radius").value==="auto"?"auto":f.pstyle("corner-radius").pfValue;I.srcManEndpt=Z,I.tgtManEndpt=W;var j,ee,te,ne,se=(t=(W==null||(r=W.pfValue)===null||r===void 0?void 0:r.length)===2?W.pfValue:null)!==null&&t!==void 0?t:[0,0],ie=(a=(Z==null||(s=Z.pfValue)===null||s===void 0?void 0:s.length)===2?Z.pfValue:null)!==null&&a!==void 0?a:[0,0];if(M){var ge=[I.ctrlpts[0],I.ctrlpts[1]],ce=F?[I.ctrlpts[I.ctrlpts.length-2],I.ctrlpts[I.ctrlpts.length-1]]:ge;j=ce,ee=ge}else if(U){var be=$?I.segpts.slice(0,2):[m.x+se[0],m.y+se[1]],ve=$?I.segpts.slice(I.segpts.length-2):[p.x+ie[0],p.y+ie[1]];j=ve,ee=be}if(Q==="inside-to-node")u=[m.x,m.y];else if(W.units)u=this.manualEndptToPx(f,W);else if(Q==="outside-to-line")u=I.tgtIntn;else if(Q==="outside-to-node"||Q==="outside-to-node-or-label"?te=j:(Q==="outside-to-line"||Q==="outside-to-line-or-label")&&(te=[p.x,p.y]),u=o.nodeShapes[this.getNodeShape(f)].intersectLine(m.x,m.y,f.outerWidth(),f.outerHeight(),te[0],te[1],0,V,A),Q==="outside-to-node-or-label"||Q==="outside-to-line-or-label"){var De=f._private.rscratch,ye=De.labelWidth,Ee=De.labelHeight,he=De.labelX,we=De.labelY,Ce=ye/2,Ie=Ee/2,Le=f.pstyle("text-valign").value;Le==="top"?we-=Ie:Le==="bottom"&&(we+=Ie);var Fe=f.pstyle("text-halign").value;Fe==="left"?he-=Ce:Fe==="right"&&(he+=Ce);var Ve=Voe(te[0],te[1],[he-Ce,we-Ie,he+Ce,we-Ie,he+Ce,we+Ie,he-Ce,we+Ie],m.x,m.y);if(Ve.length>0){var Oe=p,Dt=NB(Oe,LV(u)),ot=NB(Oe,LV(Ve)),sn=Dt;if(ot<Dt&&(u=Ve,sn=ot),Ve.length>2){var Kt=NB(Oe,{x:Ve[2],y:Ve[3]});Kt<sn&&(u=[Ve[2],Ve[3]])}}}var Ft=Nwe(u,j,o.arrowShapes[b].spacing(e)+w),Je=Nwe(u,j,o.arrowShapes[b].gap(e)+w);if(I.endX=Je[0],I.endY=Je[1],I.arrowEndX=Ft[0],I.arrowEndY=Ft[1],z==="inside-to-node")u=[p.x,p.y];else if(Z.units)u=this.manualEndptToPx(h,Z);else if(z==="outside-to-line")u=I.srcIntn;else if(z==="outside-to-node"||z==="outside-to-node-or-label"?ne=ee:(z==="outside-to-line"||z==="outside-to-line-or-label")&&(ne=[m.x,m.y]),u=o.nodeShapes[this.getNodeShape(h)].intersectLine(p.x,p.y,h.outerWidth(),h.outerHeight(),ne[0],ne[1],0,Y,C),z==="outside-to-node-or-label"||z==="outside-to-line-or-label"){var ht=h._private.rscratch,et=ht.labelWidth,qe=ht.labelHeight,He=ht.labelX,Ge=ht.labelY,Ye=et/2,Ae=qe/2,Xe=h.pstyle("text-valign").value;Xe==="top"?Ge-=Ae:Xe==="bottom"&&(Ge+=Ae);var fe=h.pstyle("text-halign").value;fe==="left"?He-=Ye:fe==="right"&&(He+=Ye);var Qe=Voe(ne[0],ne[1],[He-Ye,Ge-Ae,He+Ye,Ge-Ae,He+Ye,Ge+Ae,He-Ye,Ge+Ae],p.x,p.y);if(Qe.length>0){var Ke=m,mt=NB(Ke,LV(u)),lt=NB(Ke,LV(Qe)),$t=mt;if(lt<mt&&(u=[Qe[0],Qe[1]],$t=lt),Qe.length>2){var Ut=NB(Ke,{x:Qe[2],y:Qe[3]});Ut<$t&&(u=[Qe[2],Qe[3]])}}}var Jt=Nwe(u,ee,o.arrowShapes[_].spacing(e)+S),wn=Nwe(u,ee,o.arrowShapes[_].gap(e)+S);I.startX=wn[0],I.startY=wn[1],I.arrowStartX=Jt[0],I.arrowStartY=Jt[1],G&&(!aa(I.startX)||!aa(I.startY)||!aa(I.endX)||!aa(I.endY)?I.badLine=!0:I.badLine=!1)};Ice.getSourceEndpoint=function(e){var t=e[0]._private.rscratch;switch(this.recalculateRenderedStyle(e),t.edgeType){case"haystack":return{x:t.haystackPts[0],y:t.haystackPts[1]};default:return{x:t.arrowStartX,y:t.arrowStartY}}};Ice.getTargetEndpoint=function(e){var t=e[0]._private.rscratch;switch(this.recalculateRenderedStyle(e),t.edgeType){case"haystack":return{x:t.haystackPts[2],y:t.haystackPts[3]};default:return{x:t.arrowEndX,y:t.arrowEndY}}};var Lgt={};function ONi(e,t,r){for(var a=function(p,m,b,_){return _g(p,m,b,_)},s=t._private,o=s.rstyle.bezierPts,u=0;u<e.bezierProjPcts.length;u++){var h=e.bezierProjPcts[u];o.push({x:a(r[0],r[2],r[4],h),y:a(r[1],r[3],r[5],h)})}}Lgt.storeEdgeProjections=function(e){var t=e._private,r=t.rscratch,a=r.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){t.rstyle.bezierPts=[];for(var s=0;s+5<r.allpts.length;s+=4)ONi(this,e,r.allpts.slice(s,s+6))}else if(a==="segments")for(var o=t.rstyle.linePts=[],s=0;s+1<r.allpts.length;s+=2)o.push({x:r.allpts[s],y:r.allpts[s+1]});else if(a==="haystack"){var u=r.haystackPts;t.rstyle.haystackPts=[{x:u[0],y:u[1]},{x:u[2],y:u[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth};Lgt.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)};var BA={};BA.recalculateNodeLabelProjection=function(e){var t=e.pstyle("label").strValue;if(!a9(t)){var r,a,s=e._private,o=e.width(),u=e.height(),h=e.padding(),f=e.position(),p=e.pstyle("text-halign").strValue,m=e.pstyle("text-valign").strValue,b=s.rscratch,_=s.rstyle;switch(p){case"left":r=f.x-o/2-h;break;case"right":r=f.x+o/2+h;break;default:r=f.x}switch(m){case"top":a=f.y-u/2-h;break;case"bottom":a=f.y+u/2+h;break;default:a=f.y}b.labelX=r,b.labelY=a,_.labelX=r,_.labelY=a,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}};var EVn=function(t,r){var a=Math.atan(r/t);return t===0&&a<0&&(a=a*-1),a},xVn=function(t,r){var a=r.x-t.x,s=r.y-t.y;return EVn(a,s)},LNi=function(t,r,a,s){var o=Hoe(0,s-.001,1),u=Hoe(0,s+.001,1),h=tY(t,r,a,o),f=tY(t,r,a,u);return xVn(h,f)};BA.recalculateEdgeLabelProjections=function(e){var t,r=e._private,a=r.rscratch,s=this,o={mid:e.pstyle("label").strValue,source:e.pstyle("source-label").strValue,target:e.pstyle("target-label").strValue};if(o.mid||o.source||o.target){t={x:a.midX,y:a.midY};var u=function(b,_,w){g7(r.rscratch,b,_,w),g7(r.rstyle,b,_,w)};u("labelX",null,t.x),u("labelY",null,t.y);var h=EVn(a.midDispX,a.midDispY);u("labelAutoAngle",null,h);var f=function(){if(f.cache)return f.cache;for(var b=[],_=0;_+5<a.allpts.length;_+=4){var w={x:a.allpts[_],y:a.allpts[_+1]},S={x:a.allpts[_+2],y:a.allpts[_+3]},C={x:a.allpts[_+4],y:a.allpts[_+5]};b.push({p0:w,p1:S,p2:C,startDist:0,length:0,segments:[]})}var A=r.rstyle.bezierPts,k=s.bezierProjPcts.length;function I(F,U,$,G,B){var Z=XF(U,$),z=F.segments[F.segments.length-1],Y={p0:U,p1:$,t0:G,t1:B,startDist:z?z.startDist+z.length:0,length:Z};F.segments.push(Y),F.length+=Z}for(var N=0;N<b.length;N++){var L=b[N],P=b[N-1];P&&(L.startDist=P.startDist+P.length),I(L,L.p0,A[N*k],0,s.bezierProjPcts[0]);for(var M=0;M<k-1;M++)I(L,A[N*k+M],A[N*k+M+1],s.bezierProjPcts[M],s.bezierProjPcts[M+1]);I(L,A[N*k+k-1],L.p2,s.bezierProjPcts[k-1],1)}return f.cache=b},p=function(b){var _,w=b==="source";if(o[b]){var S=e.pstyle(b+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var C=f(),A,k=0,I=0,N=0;N<C.length;N++){for(var L=C[w?N:C.length-1-N],P=0;P<L.segments.length;P++){var M=L.segments[w?P:L.segments.length-1-P],F=N===C.length-1&&P===L.segments.length-1;if(k=I,I+=M.length,I>=S||F){A={cp:L,segment:M};break}}if(A)break}var U=A.cp,$=A.segment,G=(S-k)/$.length,B=$.t1-$.t0,Z=w?$.t0+B*G:$.t1-B*G;Z=Hoe(0,Z,1),t=tY(U.p0,U.p1,U.p2,Z),_=LNi(U.p0,U.p1,U.p2,Z);break}case"straight":case"segments":case"haystack":{for(var z=0,Y,W,Q,V,j=a.allpts.length,ee=0;ee+3<j&&(w?(Q={x:a.allpts[ee],y:a.allpts[ee+1]},V={x:a.allpts[ee+2],y:a.allpts[ee+3]}):(Q={x:a.allpts[j-2-ee],y:a.allpts[j-1-ee]},V={x:a.allpts[j-4-ee],y:a.allpts[j-3-ee]}),Y=XF(Q,V),W=z,z+=Y,!(z>=S));ee+=2);var te=S-W,ne=te/Y;ne=Hoe(0,ne,1),t=tRi(Q,V,ne),_=xVn(Q,V);break}}u("labelX",b,t.x),u("labelY",b,t.y),u("labelAutoAngle",b,_)}};p("source"),p("target"),this.applyLabelDimensions(e)}};BA.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))};BA.applyPrefixedLabelDimensions=function(e,t){var r=e._private,a=this.getLabelText(e,t),s=KF(a,e._private.labelDimsKey);if(F2(r.rscratch,"prefixedLabelDimsKey",t)!==s){g7(r.rscratch,"prefixedLabelDimsKey",t,s);var o=this.calculateLabelDimensions(e,a),u=e.pstyle("line-height").pfValue,h=e.pstyle("text-wrap").strValue,f=F2(r.rscratch,"labelWrapCachedLines",t)||[],p=h!=="wrap"?1:Math.max(f.length,1),m=o.height/p,b=m*u,_=o.width,w=o.height+(p-1)*(u-1)*m;g7(r.rstyle,"labelWidth",t,_),g7(r.rscratch,"labelWidth",t,_),g7(r.rstyle,"labelHeight",t,w),g7(r.rscratch,"labelHeight",t,w),g7(r.rscratch,"labelLineHeight",t,b)}};BA.getLabelText=function(e,t){var r=e._private,a=t?t+"-":"",s=e.pstyle(a+"label").strValue,o=e.pstyle("text-transform").value,u=function(ie,ge){return ge?(g7(r.rscratch,ie,t,ge),ge):F2(r.rscratch,ie,t)};if(!s)return"";o=="none"||(o=="uppercase"?s=s.toUpperCase():o=="lowercase"&&(s=s.toLowerCase()));var h=e.pstyle("text-wrap").value;if(h==="wrap"){var f=u("labelKey");if(f!=null&&u("labelWrapKey")===f)return u("labelWrapCachedText");for(var p="​",m=s.split(`
`),b=e.pstyle("text-max-width").pfValue,_=e.pstyle("text-overflow-wrap").value,w=_==="anywhere",S=[],C=/[\s\u200b]+|$/g,A=0;A<m.length;A++){var k=m[A],I=this.calculateLabelDimensions(e,k),N=I.width;if(w){var L=k.split("").join(p);k=L}if(N>b){var P=k.matchAll(C),M="",F=0,U=W2(P),$;try{for(U.s();!($=U.n()).done;){var G=$.value,B=G[0],Z=k.substring(F,G.index);F=G.index+B.length;var z=M.length===0?Z:M+Z+B,Y=this.calculateLabelDimensions(e,z),W=Y.width;W<=b?M+=Z+B:(M&&S.push(M),M=Z+B)}}catch(se){U.e(se)}finally{U.f()}M.match(/^[\s\u200b]+$/)||S.push(M)}else S.push(k)}u("labelWrapCachedLines",S),s=u("labelWrapCachedText",S.join(`
`)),u("labelWrapKey",f)}else if(h==="ellipsis"){var Q=e.pstyle("text-max-width").pfValue,V="",j="…",ee=!1;if(this.calculateLabelDimensions(e,s).width<Q)return s;for(var te=0;te<s.length;te++){var ne=this.calculateLabelDimensions(e,V+s[te]+j).width;if(ne>Q)break;V+=s[te],te===s.length-1&&(ee=!0)}return ee||(V+=j),V}return s};BA.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t};BA.calculateLabelDimensions=function(e,t){var r=this,a=r.cy.window(),s=a.document,o=0,u=e.pstyle("font-style").strValue,h=e.pstyle("font-size").pfValue,f=e.pstyle("font-family").strValue,p=e.pstyle("font-weight").strValue,m=this.labelCalcCanvas,b=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=s.createElement("canvas"),b=this.labelCalcCanvasContext=m.getContext("2d");var _=m.style;_.position="absolute",_.left="-9999px",_.top="-9999px",_.zIndex="-1",_.visibility="hidden",_.pointerEvents="none"}b.font="".concat(u," ").concat(p," ").concat(h,"px ").concat(f);for(var w=0,S=0,C=t.split(`
`),A=0;A<C.length;A++){var k=C[A],I=b.measureText(k),N=Math.ceil(I.width),L=h;w=Math.max(N,w),S+=L}return w+=o,S+=o,{width:w,height:S}};BA.calculateLabelAngle=function(e,t){var r=e._private,a=r.rscratch,s=e.isEdge(),o=t?t+"-":"",u=e.pstyle(o+"text-rotation"),h=u.strValue;return h==="none"?0:s&&h==="autorotate"?a.labelAutoAngle:h==="autorotate"?0:u.pfValue};BA.calculateLabelAngles=function(e){var t=this,r=e.isEdge(),a=e._private,s=a.rscratch;s.labelAngle=t.calculateLabelAngle(e),r&&(s.sourceLabelAngle=t.calculateLabelAngle(e,"source"),s.targetLabelAngle=t.calculateLabelAngle(e,"target"))};var SVn={},Xxn=28,Qxn=!1;SVn.getNodeShape=function(e){var t=this,r=e.pstyle("shape").value;if(r==="cutrectangle"&&(e.width()<Xxn||e.height()<Xxn))return Qxn||(Uu("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),Qxn=!0),"rectangle";if(e.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=e.pstyle("shape-polygon-points").value;return t.nodeShapes.makePolygon(a).name}return r};var bke={};bke.registerCalculationListeners=function(){var e=this.cy,t=e.collection(),r=this,a=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(u),h)for(var f=0;f<u.length;f++){var p=u[f],m=p._private,b=m.rstyle;b.clean=!1,b.cleanConnected=!1}};r.binder(e).on("bounds.* dirty.*",function(u){var h=u.target;a(h)}).on("style.* background.*",function(u){var h=u.target;a(h,!1)});var s=function(u){if(u){var h=r.onUpdateEleCalcsFns;t.cleanStyle();for(var f=0;f<t.length;f++){var p=t[f],m=p._private.rstyle;p.isNode()&&!m.cleanConnected&&(a(p.connectedEdges()),m.cleanConnected=!0)}if(h)for(var b=0;b<h.length;b++){var _=h[b];_(u,t)}r.recalculateRenderedStyle(t),t=e.collection()}};r.flushRenderedStyleQueue=function(){s(!0)},r.beforeRender(s,r.beforeRenderPriorities.eleCalcs)};bke.onUpdateEleCalcs=function(e){var t=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];t.push(e)};bke.recalculateRenderedStyle=function(e,t){var r=function(L){return L._private.rstyle.cleanConnected};if(e.length!==0){var a=[],s=[];if(!this.destroyed){t===void 0&&(t=!0);for(var o=0;o<e.length;o++){var u=e[o],h=u._private,f=h.rstyle;u.isEdge()&&(!r(u.source())||!r(u.target()))&&(f.clean=!1),u.isEdge()&&u.isBundledBezier()&&u.parallelEdges().some(function(N){return!N._private.rstyle.clean&&N.isBundledBezier()})&&(f.clean=!1),!(t&&f.clean||u.removed())&&u.pstyle("display").value!=="none"&&(h.group==="nodes"?s.push(u):a.push(u),f.clean=!0)}for(var p=0;p<s.length;p++){var m=s[p],b=m._private,_=b.rstyle,w=m.position();this.recalculateNodeLabelProjection(m),_.nodeX=w.x,_.nodeY=w.y,_.nodeW=m.pstyle("width").pfValue,_.nodeH=m.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var S=0;S<a.length;S++){var C=a[S],A=C._private,k=A.rstyle,I=A.rscratch;k.srcX=I.arrowStartX,k.srcY=I.arrowStartY,k.tgtX=I.arrowEndX,k.tgtY=I.arrowEndY,k.midX=I.midX,k.midY=I.midY,k.labelAngle=I.labelAngle,k.sourceLabelAngle=I.sourceLabelAngle,k.targetLabelAngle=I.targetLabelAngle}}}};var yke={};yke.updateCachedGrabbedEles=function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],r=0;r<e.length;r++){var a=e[r],s=a._private.rscratch;a.grabbed()&&!a.isParent()?t.push(a):s.inDragLayer?e.drag.push(a):e.nondrag.push(a)}for(var r=0;r<t.length;r++){var a=t[r];e.drag.push(a)}}};yke.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};yke.getCachedZSortedEles=function(e){if(e||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(aVn),t.interactive=t.filter(function(r){return r.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t};var TVn={};[F$,K3e,Lb,Ice,Lgt,BA,SVn,bke,yke].forEach(function(e){eo(TVn,e)});var CVn={};CVn.getCachedImage=function(e,t,r){var a=this,s=a.imageCache=a.imageCache||{},o=s[e];if(o)return o.image.complete||o.image.addEventListener("load",r),o.image;o=s[e]=s[e]||{};var u=o.image=new Image;u.addEventListener("load",r),u.addEventListener("error",function(){u.error=!0});var h="data:",f=e.substring(0,h.length).toLowerCase()===h;return f||(t=t==="null"?null:t,u.crossOrigin=t),u.src=e,u};var ZW={};ZW.registerBinding=function(e,t,r,a){var s=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var o=[],u=0;u<e.length;u++){var h=e[u];if(h!==void 0){var f=this.binder(h);o.push(f.on.apply(f,s))}}return o}var f=this.binder(e);return f.on.apply(f,s)};ZW.binder=function(e){var t=this,r=t.cy.window(),a=e===r||e===r.document||e===r.document.body||V6i(e);if(t.supportsPassiveEvents==null){var s=!1;try{var o=Object.defineProperty({},"passive",{get:function(){return s=!0,!0}});r.addEventListener("test",null,o)}catch{}t.supportsPassiveEvents=s}var u=function(f,p,m){var b=Array.prototype.slice.call(arguments);return a&&t.supportsPassiveEvents&&(b[2]={capture:m??!1,passive:!1,once:!1}),t.bindings.push({target:e,args:b}),(e.addEventListener||e.on).apply(e,b),this};return{on:u,addEventListener:u,addListener:u,bind:u}};ZW.nodeIsDraggable=function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()};ZW.nodeIsGrabbable=function(e){return this.nodeIsDraggable(e)&&e.interactive()};ZW.load=function(){var e=this,t=e.cy.window(),r=function(fe){return fe.selected()},a=function(fe){var Qe=fe.getRootNode();if(Qe&&Qe.nodeType===11&&Qe.host!==void 0)return Qe},s=function(fe,Qe,Ke,mt){fe==null&&(fe=e.cy);for(var lt=0;lt<Qe.length;lt++){var $t=Qe[lt];fe.emit({originalEvent:Ke,type:$t,position:mt})}},o=function(fe){return fe.shiftKey||fe.metaKey||fe.ctrlKey},u=function(fe,Qe){var Ke=!0;if(e.cy.hasCompoundNodes()&&fe&&fe.pannable())for(var mt=0;Qe&&mt<Qe.length;mt++){var fe=Qe[mt];if(fe.isNode()&&fe.isParent()&&!fe.pannable()){Ke=!1;break}}else Ke=!0;return Ke},h=function(fe){fe[0]._private.grabbed=!0},f=function(fe){fe[0]._private.grabbed=!1},p=function(fe){fe[0]._private.rscratch.inDragLayer=!0},m=function(fe){fe[0]._private.rscratch.inDragLayer=!1},b=function(fe){fe[0]._private.rscratch.isGrabTarget=!0},_=function(fe){fe[0]._private.rscratch.isGrabTarget=!1},w=function(fe,Qe){var Ke=Qe.addToList,mt=Ke.has(fe);!mt&&fe.grabbable()&&!fe.locked()&&(Ke.merge(fe),h(fe))},S=function(fe,Qe){if(fe.cy().hasCompoundNodes()&&!(Qe.inDragLayer==null&&Qe.addToList==null)){var Ke=fe.descendants();Qe.inDragLayer&&(Ke.forEach(p),Ke.connectedEdges().forEach(p)),Qe.addToList&&w(Ke,Qe)}},C=function(fe,Qe){Qe=Qe||{};var Ke=fe.cy().hasCompoundNodes();Qe.inDragLayer&&(fe.forEach(p),fe.neighborhood().stdFilter(function(mt){return!Ke||mt.isEdge()}).forEach(p)),Qe.addToList&&fe.forEach(function(mt){w(mt,Qe)}),S(fe,Qe),I(fe,{inDragLayer:Qe.inDragLayer}),e.updateCachedGrabbedEles()},A=C,k=function(fe){fe&&(e.getCachedZSortedEles().forEach(function(Qe){f(Qe),m(Qe),_(Qe)}),e.updateCachedGrabbedEles())},I=function(fe,Qe){if(!(Qe.inDragLayer==null&&Qe.addToList==null)&&fe.cy().hasCompoundNodes()){var Ke=fe.ancestors().orphans();if(!Ke.same(fe)){var mt=Ke.descendants().spawnSelf().merge(Ke).unmerge(fe).unmerge(fe.descendants()),lt=mt.connectedEdges();Qe.inDragLayer&&(lt.forEach(p),mt.forEach(p)),Qe.addToList&&mt.forEach(function($t){w($t,Qe)})}}},N=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},L=typeof MutationObserver<"u",P=typeof ResizeObserver<"u";L?(e.removeObserver=new MutationObserver(function(Xe){for(var fe=0;fe<Xe.length;fe++){var Qe=Xe[fe],Ke=Qe.removedNodes;if(Ke)for(var mt=0;mt<Ke.length;mt++){var lt=Ke[mt];if(lt===e.container){e.destroy();break}}}}),e.container.parentNode&&e.removeObserver.observe(e.container.parentNode,{childList:!0})):e.registerBinding(e.container,"DOMNodeRemoved",function(Xe){e.destroy()});var M=Cce(function(){e.cy.resize()},100);L&&(e.styleObserver=new MutationObserver(M),e.styleObserver.observe(e.container,{attributes:!0})),e.registerBinding(t,"resize",M),P&&(e.resizeObserver=new ResizeObserver(M),e.resizeObserver.observe(e.container));var F=function(fe,Qe){for(;fe!=null;)Qe(fe),fe=fe.parentNode},U=function(){e.invalidateContainerClientCoordsCache()};F(e.container,function(Xe){e.registerBinding(Xe,"transitionend",U),e.registerBinding(Xe,"animationend",U),e.registerBinding(Xe,"scroll",U)}),e.registerBinding(e.container,"contextmenu",function(Xe){Xe.preventDefault()});var $=function(){return e.selection[4]!==0},G=function(fe){for(var Qe=e.findContainerClientCoords(),Ke=Qe[0],mt=Qe[1],lt=Qe[2],$t=Qe[3],Ut=fe.touches?fe.touches:[fe],Jt=!1,wn=0;wn<Ut.length;wn++){var Vn=Ut[wn];if(Ke<=Vn.clientX&&Vn.clientX<=Ke+lt&&mt<=Vn.clientY&&Vn.clientY<=mt+$t){Jt=!0;break}}if(!Jt)return!1;for(var Wn=e.container,Dn=fe.target,zn=Dn.parentNode,vn=!1;zn;){if(zn===Wn){vn=!0;break}zn=zn.parentNode}return!!vn};e.registerBinding(e.container,"mousedown",function(fe){if(G(fe)&&!(e.hoverData.which===1&&fe.which!==1)){fe.preventDefault(),N(),e.hoverData.capture=!0,e.hoverData.which=fe.which;var Qe=e.cy,Ke=[fe.clientX,fe.clientY],mt=e.projectIntoViewport(Ke[0],Ke[1]),lt=e.selection,$t=e.findNearestElements(mt[0],mt[1],!0,!1),Ut=$t[0],Jt=e.dragData.possibleDragElements;e.hoverData.mdownPos=mt,e.hoverData.mdownGPos=Ke;var wn=function(Cn){return{originalEvent:fe,type:Cn,position:{x:mt[0],y:mt[1]}}},Vn=function(){e.hoverData.tapholdCancelled=!1,clearTimeout(e.hoverData.tapholdTimeout),e.hoverData.tapholdTimeout=setTimeout(function(){if(!e.hoverData.tapholdCancelled){var Cn=e.hoverData.down;Cn?Cn.emit(wn("taphold")):Qe.emit(wn("taphold"))}},e.tapholdDuration)};if(fe.which==3){e.hoverData.cxtStarted=!0;var Wn={originalEvent:fe,type:"cxttapstart",position:{x:mt[0],y:mt[1]}};Ut?(Ut.activate(),Ut.emit(Wn),e.hoverData.down=Ut):Qe.emit(Wn),e.hoverData.downTime=new Date().getTime(),e.hoverData.cxtDragged=!1}else if(fe.which==1){Ut&&Ut.activate();{if(Ut!=null&&e.nodeIsGrabbable(Ut)){var Dn=function(Cn){Cn.emit(wn("grab"))};if(b(Ut),!Ut.selected())Jt=e.dragData.possibleDragElements=Qe.collection(),A(Ut,{addToList:Jt}),Ut.emit(wn("grabon")).emit(wn("grab"));else{Jt=e.dragData.possibleDragElements=Qe.collection();var zn=Qe.$(function(vn){return vn.isNode()&&vn.selected()&&e.nodeIsGrabbable(vn)});C(zn,{addToList:Jt}),Ut.emit(wn("grabon")),zn.forEach(Dn)}e.redrawHint("eles",!0),e.redrawHint("drag",!0)}e.hoverData.down=Ut,e.hoverData.downs=$t,e.hoverData.downTime=new Date().getTime()}s(Ut,["mousedown","tapstart","vmousedown"],fe,{x:mt[0],y:mt[1]}),Ut==null?(lt[4]=1,e.data.bgActivePosistion={x:mt[0],y:mt[1]},e.redrawHint("select",!0),e.redraw()):Ut.pannable()&&(lt[4]=1),Vn()}lt[0]=lt[2]=mt[0],lt[1]=lt[3]=mt[1]}},!1);var B=a(e.container);e.registerBinding([t,B],"mousemove",function(fe){var Qe=e.hoverData.capture;if(!(!Qe&&!G(fe))){var Ke=!1,mt=e.cy,lt=mt.zoom(),$t=[fe.clientX,fe.clientY],Ut=e.projectIntoViewport($t[0],$t[1]),Jt=e.hoverData.mdownPos,wn=e.hoverData.mdownGPos,Vn=e.selection,Wn=null;!e.hoverData.draggingEles&&!e.hoverData.dragging&&!e.hoverData.selecting&&(Wn=e.findNearestElement(Ut[0],Ut[1],!0,!1));var Dn=e.hoverData.last,zn=e.hoverData.down,vn=[Ut[0]-Vn[2],Ut[1]-Vn[3]],Cn=e.dragData.possibleDragElements,Ar;if(wn){var ur=$t[0]-wn[0],On=ur*ur,Ir=$t[1]-wn[1],Ln=Ir*Ir,pr=On+Ln;e.hoverData.isOverThresholdDrag=Ar=pr>=e.desktopTapThreshold2}var Cr=o(fe);Ar&&(e.hoverData.tapholdCancelled=!0);var Zr=function(){var Pt=e.hoverData.dragDelta=e.hoverData.dragDelta||[];Pt.length===0?(Pt.push(vn[0]),Pt.push(vn[1])):(Pt[0]+=vn[0],Pt[1]+=vn[1])};Ke=!0,s(Wn,["mousemove","vmousemove","tapdrag"],fe,{x:Ut[0],y:Ut[1]});var Pr=function(Pt){return{originalEvent:fe,type:Pt,position:{x:Ut[0],y:Ut[1]}}},Ci=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||mt.emit(Pr("boxstart")),Vn[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(Ar){var ds=Pr("cxtdrag");zn?zn.emit(ds):mt.emit(ds),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||Wn!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(Pr("cxtdragout")),e.hoverData.cxtOver=Wn,Wn&&Wn.emit(Pr("cxtdragover")))}}else if(e.hoverData.dragging){if(Ke=!0,mt.panningEnabled()&&mt.userPanningEnabled()){var ta;if(e.hoverData.justStartedPan){var Os=e.hoverData.mdownPos;ta={x:(Ut[0]-Os[0])*lt,y:(Ut[1]-Os[1])*lt},e.hoverData.justStartedPan=!1}else ta={x:vn[0]*lt,y:vn[1]*lt};mt.panBy(ta),mt.emit(Pr("dragpan")),e.hoverData.dragged=!0}Ut=e.projectIntoViewport(fe.clientX,fe.clientY)}else if(Vn[4]==1&&(zn==null||zn.pannable())){if(Ar){if(!e.hoverData.dragging&&mt.boxSelectionEnabled()&&(Cr||!mt.panningEnabled()||!mt.userPanningEnabled()))Ci();else if(!e.hoverData.selecting&&mt.panningEnabled()&&mt.userPanningEnabled()){var uo=u(zn,e.hoverData.downs);uo&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,Vn[4]=0,e.data.bgActivePosistion=LV(Jt),e.redrawHint("select",!0),e.redraw())}zn&&zn.pannable()&&zn.active()&&zn.unactivate()}}else{if(zn&&zn.pannable()&&zn.active()&&zn.unactivate(),(!zn||!zn.grabbed())&&Wn!=Dn&&(Dn&&s(Dn,["mouseout","tapdragout"],fe,{x:Ut[0],y:Ut[1]}),Wn&&s(Wn,["mouseover","tapdragover"],fe,{x:Ut[0],y:Ut[1]}),e.hoverData.last=Wn),zn)if(Ar){if(mt.boxSelectionEnabled()&&Cr)zn&&zn.grabbed()&&(k(Cn),zn.emit(Pr("freeon")),Cn.emit(Pr("free")),e.dragData.didDrag&&(zn.emit(Pr("dragfreeon")),Cn.emit(Pr("dragfree")))),Ci();else if(zn&&zn.grabbed()&&e.nodeIsDraggable(zn)){var Ls=!e.dragData.didDrag;Ls&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||C(Cn,{inDragLayer:!0});var La={x:0,y:0};if(aa(vn[0])&&aa(vn[1])&&(La.x+=vn[0],La.y+=vn[1],Ls)){var to=e.hoverData.dragDelta;to&&aa(to[0])&&aa(to[1])&&(La.x+=to[0],La.y+=to[1])}e.hoverData.draggingEles=!0,Cn.silentShift(La).emit(Pr("position")).emit(Pr("drag")),e.redrawHint("drag",!0),e.redraw()}}else Zr();Ke=!0}if(Vn[2]=Ut[0],Vn[3]=Ut[1],Ke)return fe.stopPropagation&&fe.stopPropagation(),fe.preventDefault&&fe.preventDefault(),!1}},!1);var Z,z,Y;e.registerBinding(t,"mouseup",function(fe){if(!(e.hoverData.which===1&&fe.which!==1&&e.hoverData.capture)){var Qe=e.hoverData.capture;if(Qe){e.hoverData.capture=!1;var Ke=e.cy,mt=e.projectIntoViewport(fe.clientX,fe.clientY),lt=e.selection,$t=e.findNearestElement(mt[0],mt[1],!0,!1),Ut=e.dragData.possibleDragElements,Jt=e.hoverData.down,wn=o(fe);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,Jt&&Jt.unactivate();var Vn=function(ur){return{originalEvent:fe,type:ur,position:{x:mt[0],y:mt[1]}}};if(e.hoverData.which===3){var Wn=Vn("cxttapend");if(Jt?Jt.emit(Wn):Ke.emit(Wn),!e.hoverData.cxtDragged){var Dn=Vn("cxttap");Jt?Jt.emit(Dn):Ke.emit(Dn)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(s($t,["mouseup","tapend","vmouseup"],fe,{x:mt[0],y:mt[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(s(Jt,["click","tap","vclick"],fe,{x:mt[0],y:mt[1]}),z=!1,fe.timeStamp-Y<=Ke.multiClickDebounceTime()?(Z&&clearTimeout(Z),z=!0,Y=null,s(Jt,["dblclick","dbltap","vdblclick"],fe,{x:mt[0],y:mt[1]})):(Z=setTimeout(function(){z||s(Jt,["oneclick","onetap","voneclick"],fe,{x:mt[0],y:mt[1]})},Ke.multiClickDebounceTime()),Y=fe.timeStamp)),Jt==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!o(fe)&&(Ke.$(r).unselect(["tapunselect"]),Ut.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=Ut=Ke.collection()),$t==Jt&&!e.dragData.didDrag&&!e.hoverData.selecting&&$t!=null&&$t._private.selectable&&(e.hoverData.dragging||(Ke.selectionType()==="additive"||wn?$t.selected()?$t.unselect(["tapunselect"]):$t.select(["tapselect"]):wn||(Ke.$(r).unmerge($t).unselect(["tapunselect"]),$t.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var zn=Ke.collection(e.getAllInBox(lt[0],lt[1],lt[2],lt[3]));e.redrawHint("select",!0),zn.length>0&&e.redrawHint("eles",!0),Ke.emit(Vn("boxend"));var vn=function(ur){return ur.selectable()&&!ur.selected()};Ke.selectionType()==="additive"||wn||Ke.$(r).unmerge(zn).unselect(),zn.emit(Vn("box")).stdFilter(vn).select().emit(Vn("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!lt[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var Cn=Jt&&Jt.grabbed();k(Ut),Cn&&(Jt.emit(Vn("freeon")),Ut.emit(Vn("free")),e.dragData.didDrag&&(Jt.emit(Vn("dragfreeon")),Ut.emit(Vn("dragfree"))))}}lt[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}}},!1);var W=[],Q=4,V,j=1e5,ee=function(fe,Qe){for(var Ke=0;Ke<fe.length;Ke++)if(fe[Ke]%Qe!==0)return!1;return!0},te=function(fe){for(var Qe=Math.abs(fe[0]),Ke=1;Ke<fe.length;Ke++)if(Math.abs(fe[Ke])!==Qe)return!1;return!0},ne=function(fe){var Qe=!1,Ke=fe.deltaY;if(Ke==null&&(fe.wheelDeltaY!=null?Ke=fe.wheelDeltaY/4:fe.wheelDelta!=null&&(Ke=fe.wheelDelta/4)),Ke!==0){if(V==null)if(W.length>=Q){var mt=W;if(V=ee(mt,5),!V){var lt=Math.abs(mt[0]);V=te(mt)&&lt>5}if(V)for(var $t=0;$t<mt.length;$t++)j=Math.min(Math.abs(mt[$t]),j)}else W.push(Ke),Qe=!0;else V&&(j=Math.min(Math.abs(Ke),j));if(!e.scrollingPage){var Ut=e.cy,Jt=Ut.zoom(),wn=Ut.pan(),Vn=e.projectIntoViewport(fe.clientX,fe.clientY),Wn=[Vn[0]*Jt+wn.x,Vn[1]*Jt+wn.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||$()){fe.preventDefault();return}if(Ut.panningEnabled()&&Ut.userPanningEnabled()&&Ut.zoomingEnabled()&&Ut.userZoomingEnabled()){fe.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var Dn;Qe&&Math.abs(Ke)>5&&(Ke=vgt(Ke)*5),Dn=Ke/-250,V&&(Dn/=j,Dn*=3),Dn=Dn*e.wheelSensitivity;var zn=fe.deltaMode===1;zn&&(Dn*=33);var vn=Ut.zoom()*Math.pow(10,Dn);fe.type==="gesturechange"&&(vn=e.gestureStartZoom*fe.scale),Ut.zoom({level:vn,renderedPosition:{x:Wn[0],y:Wn[1]}}),Ut.emit({type:fe.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:fe,position:{x:Vn[0],y:Vn[1]}})}}}};e.registerBinding(e.container,"wheel",ne,!0),e.registerBinding(t,"scroll",function(fe){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(fe){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||fe.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(Xe){e.hasTouchStarted||ne(Xe)},!0),e.registerBinding(e.container,"mouseout",function(fe){var Qe=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseout",position:{x:Qe[0],y:Qe[1]}})},!1),e.registerBinding(e.container,"mouseover",function(fe){var Qe=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseover",position:{x:Qe[0],y:Qe[1]}})},!1);var se,ie,ge,ce,be,ve,De,ye,Ee,he,we,Ce,Ie,Le=function(fe,Qe,Ke,mt){return Math.sqrt((Ke-fe)*(Ke-fe)+(mt-Qe)*(mt-Qe))},Fe=function(fe,Qe,Ke,mt){return(Ke-fe)*(Ke-fe)+(mt-Qe)*(mt-Qe)},Ve;e.registerBinding(e.container,"touchstart",Ve=function(fe){if(e.hasTouchStarted=!0,!!G(fe)){N(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var Qe=e.cy,Ke=e.touchData.now,mt=e.touchData.earlier;if(fe.touches[0]){var lt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);Ke[0]=lt[0],Ke[1]=lt[1]}if(fe.touches[1]){var lt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);Ke[2]=lt[0],Ke[3]=lt[1]}if(fe.touches[2]){var lt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);Ke[4]=lt[0],Ke[5]=lt[1]}var $t=function(Cr){return{originalEvent:fe,type:Cr,position:{x:Ke[0],y:Ke[1]}}};if(fe.touches[1]){e.touchData.singleTouchMoved=!0,k(e.dragData.touchDragEles);var Ut=e.findContainerClientCoords();Ee=Ut[0],he=Ut[1],we=Ut[2],Ce=Ut[3],se=fe.touches[0].clientX-Ee,ie=fe.touches[0].clientY-he,ge=fe.touches[1].clientX-Ee,ce=fe.touches[1].clientY-he,Ie=0<=se&&se<=we&&0<=ge&&ge<=we&&0<=ie&&ie<=Ce&&0<=ce&&ce<=Ce;var Jt=Qe.pan(),wn=Qe.zoom();be=Le(se,ie,ge,ce),ve=Fe(se,ie,ge,ce),De=[(se+ge)/2,(ie+ce)/2],ye=[(De[0]-Jt.x)/wn,(De[1]-Jt.y)/wn];var Vn=200,Wn=Vn*Vn;if(ve<Wn&&!fe.touches[2]){var Dn=e.findNearestElement(Ke[0],Ke[1],!0,!0),zn=e.findNearestElement(Ke[2],Ke[3],!0,!0);Dn&&Dn.isNode()?(Dn.activate().emit($t("cxttapstart")),e.touchData.start=Dn):zn&&zn.isNode()?(zn.activate().emit($t("cxttapstart")),e.touchData.start=zn):Qe.emit($t("cxttapstart")),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(fe.touches[2])Qe.boxSelectionEnabled()&&fe.preventDefault();else if(!fe.touches[1]){if(fe.touches[0]){var vn=e.findNearestElements(Ke[0],Ke[1],!0,!0),Cn=vn[0];if(Cn!=null&&(Cn.activate(),e.touchData.start=Cn,e.touchData.starts=vn,e.nodeIsGrabbable(Cn))){var Ar=e.dragData.touchDragEles=Qe.collection(),ur=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),Cn.selected()?(ur=Qe.$(function(pr){return pr.selected()&&e.nodeIsGrabbable(pr)}),C(ur,{addToList:Ar})):A(Cn,{addToList:Ar}),b(Cn),Cn.emit($t("grabon")),ur?ur.forEach(function(pr){pr.emit($t("grab"))}):Cn.emit($t("grab"))}s(Cn,["touchstart","tapstart","vmousedown"],fe,{x:Ke[0],y:Ke[1]}),Cn==null&&(e.data.bgActivePosistion={x:lt[0],y:lt[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&s(e.touchData.start,["taphold"],fe,{x:Ke[0],y:Ke[1]})},e.tapholdDuration)}}if(fe.touches.length>=1){for(var On=e.touchData.startPosition=[null,null,null,null,null,null],Ir=0;Ir<Ke.length;Ir++)On[Ir]=mt[Ir]=Ke[Ir];var Ln=fe.touches[0];e.touchData.startGPosition=[Ln.clientX,Ln.clientY]}}},!1);var Oe;e.registerBinding(t,"touchmove",Oe=function(fe){var Qe=e.touchData.capture;if(!(!Qe&&!G(fe))){var Ke=e.selection,mt=e.cy,lt=e.touchData.now,$t=e.touchData.earlier,Ut=mt.zoom();if(fe.touches[0]){var Jt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);lt[0]=Jt[0],lt[1]=Jt[1]}if(fe.touches[1]){var Jt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);lt[2]=Jt[0],lt[3]=Jt[1]}if(fe.touches[2]){var Jt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);lt[4]=Jt[0],lt[5]=Jt[1]}var wn=function(eE){return{originalEvent:fe,type:eE,position:{x:lt[0],y:lt[1]}}},Vn=e.touchData.startGPosition,Wn;if(Qe&&fe.touches[0]&&Vn){for(var Dn=[],zn=0;zn<lt.length;zn++)Dn[zn]=lt[zn]-$t[zn];var vn=fe.touches[0].clientX-Vn[0],Cn=vn*vn,Ar=fe.touches[0].clientY-Vn[1],ur=Ar*Ar,On=Cn+ur;Wn=On>=e.touchTapThreshold2}if(Qe&&e.touchData.cxt){fe.preventDefault();var Ir=fe.touches[0].clientX-Ee,Ln=fe.touches[0].clientY-he,pr=fe.touches[1].clientX-Ee,Cr=fe.touches[1].clientY-he,Zr=Fe(Ir,Ln,pr,Cr),Pr=Zr/ve,Ci=150,ds=Ci*Ci,ta=1.5,Os=ta*ta;if(Pr>=Os||Zr>=ds){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var uo=wn("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(uo),e.touchData.start=null):mt.emit(uo)}}if(Qe&&e.touchData.cxt){var uo=wn("cxtdrag");e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(uo):mt.emit(uo),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var Ls=e.findNearestElement(lt[0],lt[1],!0,!0);(!e.touchData.cxtOver||Ls!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(wn("cxtdragout")),e.touchData.cxtOver=Ls,Ls&&Ls.emit(wn("cxtdragover")))}else if(Qe&&fe.touches[2]&&mt.boxSelectionEnabled())fe.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||mt.emit(wn("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,Ke[4]=1,!Ke||Ke.length===0||Ke[0]===void 0?(Ke[0]=(lt[0]+lt[2]+lt[4])/3,Ke[1]=(lt[1]+lt[3]+lt[5])/3,Ke[2]=(lt[0]+lt[2]+lt[4])/3+1,Ke[3]=(lt[1]+lt[3]+lt[5])/3+1):(Ke[2]=(lt[0]+lt[2]+lt[4])/3,Ke[3]=(lt[1]+lt[3]+lt[5])/3),e.redrawHint("select",!0),e.redraw();else if(Qe&&fe.touches[1]&&!e.touchData.didSelect&&mt.zoomingEnabled()&&mt.panningEnabled()&&mt.userZoomingEnabled()&&mt.userPanningEnabled()){fe.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var La=e.dragData.touchDragEles;if(La){e.redrawHint("drag",!0);for(var to=0;to<La.length;to++){var Fi=La[to]._private;Fi.grabbed=!1,Fi.rscratch.inDragLayer=!1}}var Pt=e.touchData.start,Ir=fe.touches[0].clientX-Ee,Ln=fe.touches[0].clientY-he,pr=fe.touches[1].clientX-Ee,Cr=fe.touches[1].clientY-he,St=Le(Ir,Ln,pr,Cr),Un=St/be;if(Ie){var Hr=Ir-se,za=Ln-ie,Rs=pr-ge,Vr=Cr-ce,Ii=(Hr+Rs)/2,Pa=(za+Vr)/2,Or=mt.zoom(),no=Or*Un,dt=mt.pan(),Wi=ye[0]*Or+dt.x,Tt=ye[1]*Or+dt.y,xr={x:-no/Or*(Wi-dt.x-Ii)+Wi,y:-no/Or*(Tt-dt.y-Pa)+Tt};if(Pt&&Pt.active()){var La=e.dragData.touchDragEles;k(La),e.redrawHint("drag",!0),e.redrawHint("eles",!0),Pt.unactivate().emit(wn("freeon")),La.emit(wn("free")),e.dragData.didDrag&&(Pt.emit(wn("dragfreeon")),La.emit(wn("dragfree")))}mt.viewport({zoom:no,pan:xr,cancelOnFailedZoom:!0}),mt.emit(wn("pinchzoom")),be=St,se=Ir,ie=Ln,ge=pr,ce=Cr,e.pinching=!0}if(fe.touches[0]){var Jt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);lt[0]=Jt[0],lt[1]=Jt[1]}if(fe.touches[1]){var Jt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);lt[2]=Jt[0],lt[3]=Jt[1]}if(fe.touches[2]){var Jt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);lt[4]=Jt[0],lt[5]=Jt[1]}}else if(fe.touches[0]&&!e.touchData.didSelect){var qs=e.touchData.start,Rt=e.touchData.last,Ls;if(!e.hoverData.draggingEles&&!e.swipePanning&&(Ls=e.findNearestElement(lt[0],lt[1],!0,!0)),Qe&&qs!=null&&fe.preventDefault(),Qe&&qs!=null&&e.nodeIsDraggable(qs))if(Wn){var La=e.dragData.touchDragEles,Bb=!e.dragData.didDrag;Bb&&C(La,{inDragLayer:!0}),e.dragData.didDrag=!0;var Gt={x:0,y:0};if(aa(Dn[0])&&aa(Dn[1])&&(Gt.x+=Dn[0],Gt.y+=Dn[1],Bb)){e.redrawHint("eles",!0);var Ds=e.touchData.dragDelta;Ds&&aa(Ds[0])&&aa(Ds[1])&&(Gt.x+=Ds[0],Gt.y+=Ds[1])}e.hoverData.draggingEles=!0,La.silentShift(Gt).emit(wn("position")).emit(wn("drag")),e.redrawHint("drag",!0),e.touchData.startPosition[0]==$t[0]&&e.touchData.startPosition[1]==$t[1]&&e.redrawHint("eles",!0),e.redraw()}else{var Ds=e.touchData.dragDelta=e.touchData.dragDelta||[];Ds.length===0?(Ds.push(Dn[0]),Ds.push(Dn[1])):(Ds[0]+=Dn[0],Ds[1]+=Dn[1])}if(s(qs||Ls,["touchmove","tapdrag","vmousemove"],fe,{x:lt[0],y:lt[1]}),(!qs||!qs.grabbed())&&Ls!=Rt&&(Rt&&Rt.emit(wn("tapdragout")),Ls&&Ls.emit(wn("tapdragover"))),e.touchData.last=Ls,Qe)for(var to=0;to<lt.length;to++)lt[to]&&e.touchData.startPosition[to]&&Wn&&(e.touchData.singleTouchMoved=!0);if(Qe&&(qs==null||qs.pannable())&&mt.panningEnabled()&&mt.userPanningEnabled()){var Lm=u(qs,e.touchData.starts);Lm&&(fe.preventDefault(),e.data.bgActivePosistion||(e.data.bgActivePosistion=LV(e.touchData.startPosition)),e.swipePanning?(mt.panBy({x:Dn[0]*Ut,y:Dn[1]*Ut}),mt.emit(wn("dragpan"))):Wn&&(e.swipePanning=!0,mt.panBy({x:vn*Ut,y:Ar*Ut}),mt.emit(wn("dragpan")),qs&&(qs.unactivate(),e.redrawHint("select",!0),e.touchData.start=null)));var Jt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);lt[0]=Jt[0],lt[1]=Jt[1]}}for(var zn=0;zn<lt.length;zn++)$t[zn]=lt[zn];Qe&&fe.touches.length>0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1);var Dt;e.registerBinding(t,"touchcancel",Dt=function(fe){var Qe=e.touchData.start;e.touchData.capture=!1,Qe&&Qe.unactivate()});var ot,sn,Kt,Ft;if(e.registerBinding(t,"touchend",ot=function(fe){var Qe=e.touchData.start,Ke=e.touchData.capture;if(Ke)fe.touches.length===0&&(e.touchData.capture=!1),fe.preventDefault();else return;var mt=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var lt=e.cy,$t=lt.zoom(),Ut=e.touchData.now,Jt=e.touchData.earlier;if(fe.touches[0]){var wn=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);Ut[0]=wn[0],Ut[1]=wn[1]}if(fe.touches[1]){var wn=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);Ut[2]=wn[0],Ut[3]=wn[1]}if(fe.touches[2]){var wn=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);Ut[4]=wn[0],Ut[5]=wn[1]}var Vn=function(ds){return{originalEvent:fe,type:ds,position:{x:Ut[0],y:Ut[1]}}};Qe&&Qe.unactivate();var Wn;if(e.touchData.cxt){if(Wn=Vn("cxttapend"),Qe?Qe.emit(Wn):lt.emit(Wn),!e.touchData.cxtDragged){var Dn=Vn("cxttap");Qe?Qe.emit(Dn):lt.emit(Dn)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!fe.touches[2]&&lt.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var zn=lt.collection(e.getAllInBox(mt[0],mt[1],mt[2],mt[3]));mt[0]=void 0,mt[1]=void 0,mt[2]=void 0,mt[3]=void 0,mt[4]=0,e.redrawHint("select",!0),lt.emit(Vn("boxend"));var vn=function(ds){return ds.selectable()&&!ds.selected()};zn.emit(Vn("box")).stdFilter(vn).select().emit(Vn("boxselect")),zn.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(Qe!=null&&Qe.unactivate(),fe.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!fe.touches[1]){if(!fe.touches[0]){if(!fe.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Cn=e.dragData.touchDragEles;if(Qe!=null){var Ar=Qe._private.grabbed;k(Cn),e.redrawHint("drag",!0),e.redrawHint("eles",!0),Ar&&(Qe.emit(Vn("freeon")),Cn.emit(Vn("free")),e.dragData.didDrag&&(Qe.emit(Vn("dragfreeon")),Cn.emit(Vn("dragfree")))),s(Qe,["touchend","tapend","vmouseup","tapdragout"],fe,{x:Ut[0],y:Ut[1]}),Qe.unactivate(),e.touchData.start=null}else{var ur=e.findNearestElement(Ut[0],Ut[1],!0,!0);s(ur,["touchend","tapend","vmouseup","tapdragout"],fe,{x:Ut[0],y:Ut[1]})}var On=e.touchData.startPosition[0]-Ut[0],Ir=On*On,Ln=e.touchData.startPosition[1]-Ut[1],pr=Ln*Ln,Cr=Ir+pr,Zr=Cr*$t*$t;e.touchData.singleTouchMoved||(Qe||lt.$(":selected").unselect(["tapunselect"]),s(Qe,["tap","vclick"],fe,{x:Ut[0],y:Ut[1]}),sn=!1,fe.timeStamp-Ft<=lt.multiClickDebounceTime()?(Kt&&clearTimeout(Kt),sn=!0,Ft=null,s(Qe,["dbltap","vdblclick"],fe,{x:Ut[0],y:Ut[1]})):(Kt=setTimeout(function(){sn||s(Qe,["onetap","voneclick"],fe,{x:Ut[0],y:Ut[1]})},lt.multiClickDebounceTime()),Ft=fe.timeStamp)),Qe!=null&&!e.dragData.didDrag&&Qe._private.selectable&&Zr<e.touchTapThreshold2&&!e.pinching&&(lt.selectionType()==="single"?(lt.$(r).unmerge(Qe).unselect(["tapunselect"]),Qe.select(["tapselect"])):Qe.selected()?Qe.unselect(["tapunselect"]):Qe.select(["tapselect"]),e.redrawHint("eles",!0)),e.touchData.singleTouchMoved=!0}}}for(var Pr=0;Pr<Ut.length;Pr++)Jt[Pr]=Ut[Pr];e.dragData.didDrag=!1,fe.touches.length===0&&(e.touchData.dragDelta=[],e.touchData.startPosition=[null,null,null,null,null,null],e.touchData.startGPosition=null,e.touchData.didSelect=!1),fe.touches.length<2&&(fe.touches.length===1&&(e.touchData.startGPosition=[fe.touches[0].clientX,fe.touches[0].clientY]),e.pinching=!1,e.redrawHint("eles",!0),e.redraw())},!1),typeof TouchEvent>"u"){var Je=[],ht=function(fe){return{clientX:fe.clientX,clientY:fe.clientY,force:1,identifier:fe.pointerId,pageX:fe.pageX,pageY:fe.pageY,radiusX:fe.width/2,radiusY:fe.height/2,screenX:fe.screenX,screenY:fe.screenY,target:fe.target}},et=function(fe){return{event:fe,touch:ht(fe)}},qe=function(fe){Je.push(et(fe))},He=function(fe){for(var Qe=0;Qe<Je.length;Qe++){var Ke=Je[Qe];if(Ke.event.pointerId===fe.pointerId){Je.splice(Qe,1);return}}},Ge=function(fe){var Qe=Je.filter(function(Ke){return Ke.event.pointerId===fe.pointerId})[0];Qe.event=fe,Qe.touch=ht(fe)},Ye=function(fe){fe.touches=Je.map(function(Qe){return Qe.touch})},Ae=function(fe){return fe.pointerType==="mouse"||fe.pointerType===4};e.registerBinding(e.container,"pointerdown",function(Xe){Ae(Xe)||(Xe.preventDefault(),qe(Xe),Ye(Xe),Ve(Xe))}),e.registerBinding(e.container,"pointerup",function(Xe){Ae(Xe)||(He(Xe),Ye(Xe),ot(Xe))}),e.registerBinding(e.container,"pointercancel",function(Xe){Ae(Xe)||(He(Xe),Ye(Xe),Dt(Xe))}),e.registerBinding(e.container,"pointermove",function(Xe){Ae(Xe)||(Xe.preventDefault(),Ge(Xe),Ye(Xe),Oe(Xe))})}};var SR={};SR.generatePolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:function(a,s,o,u,h,f){this.renderer.nodeShapeImpl("polygon",a,s,o,u,h,this.points)},intersectLine:function(a,s,o,u,h,f,p,m){return Voe(h,f,this.points,a,s,o/2,u/2,p)},checkPoint:function(a,s,o,u,h,f,p,m){return uR(a,s,this.points,f,p,u,h,[0,-1],o)},hasMiterBounds:e!=="rectangle",miterBounds:function(a,s,o,u,h,f){return oRi(this.points,a,s,o,u,h)}}};SR.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(t,r,a,s,o,u){this.renderer.nodeShapeImpl(this.name,t,r,a,s,o)},intersectLine:function(t,r,a,s,o,u,h,f){return gRi(o,u,t,r,a/2+h,s/2+h)},checkPoint:function(t,r,a,s,o,u,h,f){return sF(t,r,s,o,u,h,a)}}};SR.generateRoundPolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:function(a,s,o,u,h,f,p){if(f[p]!==void 0&&f[p+"-cx"]===a&&f[p+"-cy"]===s)return f[p];f[p]=new Array(t.length/2),f[p+"-cx"]=a,f[p+"-cy"]=s;var m=o/2,b=u/2;h=h==="auto"?AHn(o,u):h;for(var _=new Array(t.length/2),w=0;w<t.length/2;w++)_[w]={x:a+m*t[w*2],y:s+b*t[w*2+1]};var S,C,A,k,I=_.length;for(C=_[I-1],S=0;S<I;S++)A=_[S%I],k=_[(S+1)%I],f[p][S]=Ogt(C,A,k,h),C=A,A=k;return f[p]},draw:function(a,s,o,u,h,f,p){this.renderer.nodeShapeImpl("round-polygon",a,s,o,u,h,this.points,this.getOrCreateCorners(s,o,u,h,f,p,"drawCorners"))},intersectLine:function(a,s,o,u,h,f,p,m,b){return bRi(h,f,this.points,a,s,o,u,p,this.getOrCreateCorners(a,s,o,u,m,b,"corners"))},checkPoint:function(a,s,o,u,h,f,p,m,b){return pRi(a,s,this.points,f,p,u,h,this.getOrCreateCorners(f,p,u,h,m,b,"corners"))}}};SR.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Gy(4,0),draw:function(t,r,a,s,o,u){this.renderer.nodeShapeImpl(this.name,t,r,a,s,o,this.points,u)},intersectLine:function(t,r,a,s,o,u,h,f){return THn(o,u,t,r,a,s,h,f)},checkPoint:function(t,r,a,s,o,u,h,f){var p=s/2,m=o/2;f=f==="auto"?o9(s,o):f,f=Math.min(p,m,f);var b=f*2;return!!(uR(t,r,this.points,u,h,s,o-b,[0,-1],a)||uR(t,r,this.points,u,h,s-b,o,[0,-1],a)||sF(t,r,b,b,u-p+f,h-m+f,a)||sF(t,r,b,b,u+p-f,h-m+f,a)||sF(t,r,b,b,u+p-f,h+m-f,a)||sF(t,r,b,b,u-p+f,h+m-f,a))}}};SR.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:wgt(),points:Gy(4,0),draw:function(t,r,a,s,o,u){this.renderer.nodeShapeImpl(this.name,t,r,a,s,o,null,u)},generateCutTrianglePts:function(t,r,a,s,o){var u=o==="auto"?this.cornerLength:o,h=r/2,f=t/2,p=a-f,m=a+f,b=s-h,_=s+h;return{topLeft:[p,b+u,p+u,b,p+u,b+u],topRight:[m-u,b,m,b+u,m-u,b+u],bottomRight:[m,_-u,m-u,_,m-u,_-u],bottomLeft:[p+u,_,p,_-u,p+u,_-u]}},intersectLine:function(t,r,a,s,o,u,h,f){var p=this.generateCutTrianglePts(a+2*h,s+2*h,t,r,f),m=[].concat.apply([],[p.topLeft.splice(0,4),p.topRight.splice(0,4),p.bottomRight.splice(0,4),p.bottomLeft.splice(0,4)]);return Voe(o,u,m,t,r)},checkPoint:function(t,r,a,s,o,u,h,f){var p=f==="auto"?this.cornerLength:f;if(uR(t,r,this.points,u,h,s,o-2*p,[0,-1],a)||uR(t,r,this.points,u,h,s-2*p,o,[0,-1],a))return!0;var m=this.generateCutTrianglePts(s,o,u,h);return $2(t,r,m.topLeft)||$2(t,r,m.topRight)||$2(t,r,m.bottomRight)||$2(t,r,m.bottomLeft)}}};SR.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Gy(4,0),draw:function(t,r,a,s,o,u){this.renderer.nodeShapeImpl(this.name,t,r,a,s,o)},intersectLine:function(t,r,a,s,o,u,h,f){var p=.15,m=.5,b=.85,_=this.generateBarrelBezierPts(a+2*h,s+2*h,t,r),w=function(A){var k=tY({x:A[0],y:A[1]},{x:A[2],y:A[3]},{x:A[4],y:A[5]},p),I=tY({x:A[0],y:A[1]},{x:A[2],y:A[3]},{x:A[4],y:A[5]},m),N=tY({x:A[0],y:A[1]},{x:A[2],y:A[3]},{x:A[4],y:A[5]},b);return[A[0],A[1],k.x,k.y,I.x,I.y,N.x,N.y,A[4],A[5]]},S=[].concat(w(_.topLeft),w(_.topRight),w(_.bottomRight),w(_.bottomLeft));return Voe(o,u,S,t,r)},generateBarrelBezierPts:function(t,r,a,s){var o=r/2,u=t/2,h=a-u,f=a+u,p=s-o,m=s+o,b=rct(t,r),_=b.heightOffset,w=b.widthOffset,S=b.ctrlPtOffsetPct*t,C={topLeft:[h,p+_,h+S,p,h+w,p],topRight:[f-w,p,f-S,p,f,p+_],bottomRight:[f,m-_,f-S,m,f-w,m],bottomLeft:[h+w,m,h+S,m,h,m-_]};return C.topLeft.isTop=!0,C.topRight.isTop=!0,C.bottomLeft.isBottom=!0,C.bottomRight.isBottom=!0,C},checkPoint:function(t,r,a,s,o,u,h,f){var p=rct(s,o),m=p.heightOffset,b=p.widthOffset;if(uR(t,r,this.points,u,h,s,o-2*m,[0,-1],a)||uR(t,r,this.points,u,h,s-2*b,o,[0,-1],a))return!0;for(var _=this.generateBarrelBezierPts(s,o,u,h),w=function(U,$,G){var B=G[4],Z=G[2],z=G[0],Y=G[5],W=G[1],Q=Math.min(B,z),V=Math.max(B,z),j=Math.min(Y,W),ee=Math.max(Y,W);if(Q<=U&&U<=V&&j<=$&&$<=ee){var te=yRi(B,Z,z),ne=uRi(te[0],te[1],te[2],U),se=ne.filter(function(ie){return 0<=ie&&ie<=1});if(se.length>0)return se[0]}return null},S=Object.keys(_),C=0;C<S.length;C++){var A=S[C],k=_[A],I=w(t,r,k);if(I!=null){var N=k[5],L=k[3],P=k[1],M=_g(N,L,P,I);if(k.isTop&&M<=r||k.isBottom&&r<=M)return!0}}return!1}}};SR.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Gy(4,0),draw:function(t,r,a,s,o,u){this.renderer.nodeShapeImpl(this.name,t,r,a,s,o,this.points,u)},intersectLine:function(t,r,a,s,o,u,h,f){var p=t-(a/2+h),m=r-(s/2+h),b=m,_=t+(a/2+h),w=yO(o,u,t,r,p,m,_,b,!1);return w.length>0?w:THn(o,u,t,r,a,s,h,f)},checkPoint:function(t,r,a,s,o,u,h,f){f=f==="auto"?o9(s,o):f;var p=2*f;if(uR(t,r,this.points,u,h,s,o-p,[0,-1],a)||uR(t,r,this.points,u,h,s-p,o,[0,-1],a))return!0;var m=s/2+2*a,b=o/2+2*a,_=[u-m,h-b,u-m,h,u+m,h,u+m,h-b];return!!($2(t,r,_)||sF(t,r,p,p,u+s/2-f,h+o/2-f,a)||sF(t,r,p,p,u-s/2+f,h+o/2-f,a))}}};SR.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Gy(3,0)),this.generateRoundPolygon("round-triangle",Gy(3,0)),this.generatePolygon("rectangle",Gy(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Gy(5,0)),this.generateRoundPolygon("round-pentagon",Gy(5,0)),this.generatePolygon("hexagon",Gy(6,0)),this.generateRoundPolygon("round-hexagon",Gy(6,0)),this.generatePolygon("heptagon",Gy(7,0)),this.generateRoundPolygon("round-heptagon",Gy(7,0)),this.generatePolygon("octagon",Gy(8,0)),this.generateRoundPolygon("round-octagon",Gy(8,0));var a=new Array(20);{var s=nct(5,0),o=nct(5,Math.PI/5),u=.5*(3-Math.sqrt(5));u*=1.57;for(var h=0;h<o.length/2;h++)o[h*2]*=u,o[h*2+1]*=u;for(var h=0;h<20/4;h++)a[h*4]=s[h*2],a[h*4+1]=s[h*2+1],a[h*4+2]=o[h*2],a[h*4+3]=o[h*2+1]}a=CHn(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var f=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",f),this.generateRoundPolygon("round-tag",f)}e.makePolygon=function(p){var m=p.join("$"),b="polygon-"+m,_;return(_=this[b])?_:t.generatePolygon(b,p)}};var Nce={};Nce.timeToRender=function(){return this.redrawTotalTime/this.redrawCount};Nce.redraw=function(e){e=e||wHn();var t=this;t.averageRedrawTime===void 0&&(t.averageRedrawTime=0),t.lastRedrawTime===void 0&&(t.lastRedrawTime=0),t.lastDrawTime===void 0&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=e};Nce.beforeRender=function(e,t){if(!this.destroyed){t==null&&jd("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:e,priority:t}),r.sort(function(a,s){return s.priority-a.priority})}};var Zxn=function(t,r,a){for(var s=t.beforeRenderCallbacks,o=0;o<s.length;o++)s[o].fn(r,a)};Nce.startRenderLoop=function(){var e=this,t=e.cy;if(!e.renderLoopStarted){e.renderLoopStarted=!0;var r=function(s){if(!e.destroyed){if(!t.batching())if(e.requestedFrame&&!e.skipFrame){Zxn(e,!0,s);var o=cR();e.render(e.renderOptions);var u=e.lastDrawTime=cR();e.averageRedrawTime===void 0&&(e.averageRedrawTime=u-o),e.redrawCount===void 0&&(e.redrawCount=0),e.redrawCount++,e.redrawTotalTime===void 0&&(e.redrawTotalTime=0);var h=u-o;e.redrawTotalTime+=h,e.lastRedrawTime=h,e.averageRedrawTime=e.averageRedrawTime/2+h/2,e.requestedFrame=!1}else Zxn(e,!1,s);e.skipFrame=!1,z3e(r)}};z3e(r)}};var DNi=function(t){this.init(t)},AVn=DNi,JW=AVn.prototype;JW.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"];JW.init=function(e){var t=this;t.options=e,t.cy=e.cy;var r=t.container=e.cy.container(),a=t.cy.window();if(a){var s=a.document,o=s.head,u="__________cytoscape_stylesheet",h="__________cytoscape_container",f=s.getElementById(u)!=null;if(r.className.indexOf(h)<0&&(r.className=(r.className||"")+" "+h),!f){var p=s.createElement("style");p.id=u,p.textContent="."+h+" { position: relative; }",o.insertBefore(p,o.children[0])}var m=a.getComputedStyle(r),b=m.getPropertyValue("position");b==="static"&&Uu("A Cytoscape container has style position:static and so can not use UI extensions properly")}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.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]},t.redraws=0,t.showFps=e.showFps,t.debug=e.debug,t.webgl=e.webgl,t.hideEdgesOnViewport=e.hideEdgesOnViewport,t.textureOnViewport=e.textureOnViewport,t.wheelSensitivity=e.wheelSensitivity,t.motionBlurEnabled=e.motionBlur,t.forcedPixelRatio=aa(e.pixelRatio)?e.pixelRatio:null,t.motionBlur=e.motionBlur,t.motionBlurOpacity=e.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=e.desktopTapThreshold,t.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,t.touchTapThreshold=e.touchTapThreshold,t.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()};JW.notify=function(e,t){var r=this,a=r.cy;if(!this.destroyed){if(e==="init"){r.load();return}if(e==="destroy"){r.destroy();return}(e==="add"||e==="remove"||e==="move"&&a.hasCompoundNodes()||e==="load"||e==="zorder"||e==="mount")&&r.invalidateCachedZSortedEles(),e==="viewport"&&r.redrawHint("select",!0),e==="gc"&&r.redrawHint("gc",!0),(e==="load"||e==="resize"||e==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}};JW.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var r=e.bindings[t],a=r,s=a.target;(s.off||s.removeEventListener).apply(s,a.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch{}};JW.isHeadless=function(){return!1};[Ngt,TVn,CVn,ZW,SR,Nce].forEach(function(e){eo(JW,e)});var cit=1e3/60,kVn={setupDequeueing:function(t){return function(){var a=this,s=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var o=Cce(function(){s.redrawHint("eles",!0),s.redrawHint("drag",!0),s.redraw()},t.deqRedrawThreshold),u=function(p,m){var b=cR(),_=s.averageRedrawTime,w=s.lastRedrawTime,S=[],C=s.cy.extent(),A=s.getPixelRatio();for(p||s.flushRenderedStyleQueue();;){var k=cR(),I=k-b,N=k-m;if(w<cit){var L=cit-(p?_:0);if(N>=t.deqFastCost*L)break}else if(p){if(I>=t.deqCost*w||I>=t.deqAvgCost*_)break}else if(N>=t.deqNoDrawCost*cit)break;var P=t.deq(a,A,C);if(P.length>0)for(var M=0;M<P.length;M++)S.push(P[M]);else break}S.length>0&&(t.onDeqd(a,S),!p&&t.shouldRedraw(a,S,A,C)&&o())},h=t.priority||mgt;s.beforeRender(u,h(a))}}}},MNi=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G3e;V9(this,e),this.idsByKey=new k7,this.keyForId=new k7,this.cachesByLvl=new k7,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=r}return Y9(e,[{key:"getIdsFor",value:function(r){r==null&&jd("Can not get id list for null key");var a=this.idsByKey,s=this.idsByKey.get(r);return s||(s=new WW,a.set(r,s)),s}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),s=this.keyForId.get(a),o=this.getKey(r);this.deleteIdForKey(s,a),this.addIdForKey(o,a),this.keyForId.set(a,o)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),s=this.keyForId.get(a);this.deleteIdForKey(s,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),s=this.keyForId.get(a),o=this.getKey(r);return s!==o}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,s=this.lvls,o=a.get(r);return o||(o=new k7,a.set(r,o),s.push(r)),o}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var s=this.getKey(r),o=this.getCache(s,a);return o!=null&&this.updateKeyMappingFor(r),o}},{key:"getForCachedKey",value:function(r,a){var s=this.keyForId.get(r.id()),o=this.getCache(s,a);return o}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var s=this.getKey(r);return this.hasCache(s,a)}},{key:"setCache",value:function(r,a,s){s.key=r,this.getCachesAt(a).set(r,s)}},{key:"set",value:function(r,a,s){var o=this.getKey(r);this.setCache(o,a,s),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var s=this.getKey(r);this.deleteCache(s,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(s){return a.deleteCache(r,s)})}},{key:"invalidate",value:function(r){var a=r.id(),s=this.keyForId.get(a);this.deleteKeyMappingFor(r);var o=this.doesEleInvalidateKey(r);return o&&this.invalidateKey(s),o||this.getNumberOfIdsForKey(s)===0}}])}(),Jxn=25,$we=50,Rxe=-4,mct=3,RVn=7.99,PNi=8,BNi=1024,FNi=1024,$Ni=1024,UNi=.2,zNi=.8,GNi=10,qNi=.15,HNi=.1,VNi=.9,YNi=.9,jNi=100,WNi=1,MV={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},KNi=Nm({getKey:null,doesEleInvalidateKey:G3e,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:yHn,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Wie=function(t,r){var a=this;a.renderer=t,a.onDequeues=[];var s=KNi(r);eo(a,s),a.lookup=new MNi(s.getKey,s.doesEleInvalidateKey),a.setupDequeueing()},$p=Wie.prototype;$p.reasons=MV;$p.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]};$p.getRetiredTextureQueue=function(e){var t=this,r=t.eleImgCaches.retired=t.eleImgCaches.retired||{},a=r[e]=r[e]||[];return a};$p.getElementQueue=function(){var e=this,t=e.eleCacheQueue=e.eleCacheQueue||new Ace(function(r,a){return a.reqs-r.reqs});return t};$p.getElementKeyToQueue=function(){var e=this,t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t};$p.getElement=function(e,t,r,a,s){var o=this,u=this.renderer,h=u.cy.zoom(),f=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!o.allowEdgeTxrCaching&&e.isEdge()||!o.allowParentTxrCaching&&e.isParent())return null;if(a==null&&(a=Math.ceil(ygt(h*r))),a<Rxe)a=Rxe;else if(h>=RVn||a>mct)return null;var p=Math.pow(2,a),m=t.h*p,b=t.w*p,_=u.eleTextBiggerThanMin(e,p);if(!this.isVisible(e,_))return null;var w=f.get(e,a);if(w&&w.invalidated&&(w.invalidated=!1,w.texture.invalidatedWidth-=w.width),w)return w;var S;if(m<=Jxn?S=Jxn:m<=$we?S=$we:S=Math.ceil(m/$we)*$we,m>$Ni||b>FNi)return null;var C=o.getTextureQueue(S),A=C[C.length-2],k=function(){return o.recycleTexture(S,b)||o.addTexture(S,b)};A||(A=C[C.length-1]),A||(A=k()),A.width-A.usedWidth<b&&(A=k());for(var I=function(Q){return Q&&Q.scaledLabelShown===_},N=s&&s===MV.dequeue,L=s&&s===MV.highQuality,P=s&&s===MV.downscale,M,F=a+1;F<=mct;F++){var U=f.get(e,F);if(U){M=U;break}}var $=M&&M.level===a+1?M:null,G=function(){A.context.drawImage($.texture.canvas,$.x,0,$.width,$.height,A.usedWidth,0,b,m)};if(A.context.setTransform(1,0,0,1,0,0),A.context.clearRect(A.usedWidth,0,b,S),I($))G();else if(I(M))if(L){for(var B=M.level;B>a;B--)$=o.getElement(e,t,r,B,MV.downscale);G()}else return o.queueElement(e,M.level-1),M;else{var Z;if(!N&&!L&&!P)for(var z=a-1;z>=Rxe;z--){var Y=f.get(e,z);if(Y){Z=Y;break}}if(I(Z))return o.queueElement(e,a),Z;A.context.translate(A.usedWidth,0),A.context.scale(p,p),this.drawElement(A.context,e,t,_,!1),A.context.scale(1/p,1/p),A.context.translate(-A.usedWidth,0)}return w={x:A.usedWidth,texture:A,level:a,scale:p,width:b,height:m,scaledLabelShown:_},A.usedWidth+=Math.ceil(b+PNi),A.eleCaches.push(w),f.set(e,a,w),o.checkTextureFullness(A),w};$p.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])};$p.invalidateElement=function(e){var t=this,r=t.lookup,a=[],s=r.isInvalid(e);if(s){for(var o=Rxe;o<=mct;o++){var u=r.getForCachedKey(e,o);u&&a.push(u)}var h=r.invalidate(e);if(h)for(var f=0;f<a.length;f++){var p=a[f],m=p.texture;m.invalidatedWidth+=p.width,p.invalidated=!0,t.checkTextureUtility(m)}t.removeFromQueue(e)}};$p.checkTextureUtility=function(e){e.invalidatedWidth>=UNi*e.width&&this.retireTexture(e)};$p.checkTextureFullness=function(e){var t=this,r=t.getTextureQueue(e.height);e.usedWidth/e.width>zNi&&e.fullnessChecks>=GNi?s9(r,e):e.fullnessChecks++};$p.retireTexture=function(e){var t=this,r=e.height,a=t.getTextureQueue(r),s=this.lookup;s9(a,e),e.retired=!0;for(var o=e.eleCaches,u=0;u<o.length;u++){var h=o[u];s.deleteCache(h.key,h.level)}bgt(o);var f=t.getRetiredTextureQueue(r);f.push(e)};$p.addTexture=function(e,t){var r=this,a=r.getTextureQueue(e),s={};return a.push(s),s.eleCaches=[],s.height=e,s.width=Math.max(BNi,t),s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,s.canvas=r.renderer.makeOffscreenCanvas(s.width,s.height),s.context=s.canvas.getContext("2d"),s};$p.recycleTexture=function(e,t){for(var r=this,a=r.getTextureQueue(e),s=r.getRetiredTextureQueue(e),o=0;o<s.length;o++){var u=s[o];if(u.width>=t)return u.retired=!1,u.usedWidth=0,u.invalidatedWidth=0,u.fullnessChecks=0,bgt(u.eleCaches),u.context.setTransform(1,0,0,1,0,0),u.context.clearRect(0,0,u.width,u.height),s9(s,u),a.push(u),u}};$p.queueElement=function(e,t){var r=this,a=r.getElementQueue(),s=r.getElementKeyToQueue(),o=this.getKey(e),u=s[o];if(u)u.level=Math.max(u.level,t),u.eles.merge(e),u.reqs++,a.updateItem(u);else{var h={eles:e.spawn().merge(e),level:t,reqs:1,key:o};a.push(h),s[o]=h}};$p.dequeue=function(e){for(var t=this,r=t.getElementQueue(),a=t.getElementKeyToQueue(),s=[],o=t.lookup,u=0;u<WNi&&r.size()>0;u++){var h=r.pop(),f=h.key,p=h.eles[0],m=o.hasCache(p,h.level);if(a[f]=null,m)continue;s.push(h);var b=t.getBoundingBox(p);t.getElement(p,b,e,h.level,MV.dequeue)}return s};$p.removeFromQueue=function(e){var t=this,r=t.getElementQueue(),a=t.getElementKeyToQueue(),s=this.getKey(e),o=a[s];o!=null&&(o.eles.length===1?(o.reqs=ggt,r.updateItem(o),r.pop(),a[s]=null):o.eles.unmerge(e))};$p.onDequeue=function(e){this.onDequeues.push(e)};$p.offDequeue=function(e){s9(this.onDequeues,e)};$p.setupDequeueing=kVn.setupDequeueing({deqRedrawThreshold:jNi,deqCost:qNi,deqAvgCost:HNi,deqNoDrawCost:VNi,deqFastCost:YNi,deq:function(t,r,a){return t.dequeue(r,a)},onDeqd:function(t,r){for(var a=0;a<t.onDequeues.length;a++){var s=t.onDequeues[a];s(r)}},shouldRedraw:function(t,r,a,s){for(var o=0;o<r.length;o++)for(var u=r[o].eles,h=0;h<u.length;h++){var f=u[h].boundingBox();if(_gt(f,s))return!0}return!1},priority:function(t){return t.renderer.beforeRenderPriorities.eleTxrDeq}});var XNi=1,Tse=-4,X3e=2,QNi=3.99,ZNi=50,JNi=50,eOi=.15,tOi=.1,nOi=.9,rOi=.9,iOi=1,eSn=250,aOi=4e3*4e3,tSn=32767,sOi=!0,IVn=function(t){var r=this,a=r.renderer=t,s=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=cR()-2*eSn,r.skipping=!1,r.eleTxrDeqs=s.collection(),r.scheduleElementRefinement=Cce(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},JNi),a.beforeRender(function(u,h){h-r.lastInvalidationTime<=eSn?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var o=function(h,f){return f.reqs-h.reqs};r.layersQueue=new Ace(o),r.setupDequeueing()},Om=IVn.prototype,nSn=0,oOi=Math.pow(2,53)-1;Om.makeLayer=function(e,t){var r=Math.pow(2,t),a=Math.ceil(e.w*r),s=Math.ceil(e.h*r),o=this.renderer.makeOffscreenCanvas(a,s),u={id:nSn=++nSn%oOi,bb:e,level:t,width:a,height:s,canvas:o,context:o.getContext("2d"),eles:[],elesQueue:[],reqs:0},h=u.context,f=-u.bb.x1,p=-u.bb.y1;return h.scale(r,r),h.translate(f,p),u};Om.getLayers=function(e,t,r){var a=this,s=a.renderer,o=s.cy,u=o.zoom(),h=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(ygt(u*t)),r<Tse)r=Tse;else if(u>=QNi||r>X3e)return null}a.validateLayersElesOrdering(r,e);var f=a.layersByLevel,p=Math.pow(2,r),m=f[r]=f[r]||[],b,_=a.levelIsComplete(r,e),w,S=function(){var G=function(W){if(a.validateLayersElesOrdering(W,e),a.levelIsComplete(W,e))return w=f[W],!0},B=function(W){if(!w)for(var Q=r+W;Tse<=Q&&Q<=X3e&&!G(Q);Q+=W);};B(1),B(-1);for(var Z=m.length-1;Z>=0;Z--){var z=m[Z];z.invalid&&s9(m,z)}};if(!_)S();else return m;var C=function(){if(!b){b=uv();for(var G=0;G<e.length;G++)iRi(b,e[G].boundingBox())}return b},A=function(G){G=G||{};var B=G.after;C();var Z=Math.ceil(b.w*p),z=Math.ceil(b.h*p);if(Z>tSn||z>tSn)return null;var Y=Z*z;if(Y>aOi)return null;var W=a.makeLayer(b,r);if(B!=null){var Q=m.indexOf(B)+1;m.splice(Q,0,W)}else(G.insert===void 0||G.insert)&&m.unshift(W);return W};if(a.skipping&&!h)return null;for(var k=null,I=e.length/XNi,N=!h,L=0;L<e.length;L++){var P=e[L],M=P._private.rscratch,F=M.imgLayerCaches=M.imgLayerCaches||{},U=F[r];if(U){k=U;continue}if((!k||k.eles.length>=I||!SHn(k.bb,P.boundingBox()))&&(k=A({insert:!0,after:k}),!k))return null;w||N?a.queueLayer(k,P):a.drawEleInLayer(k,P,r,t),k.eles.push(P),F[r]=k}return w||(N?null:m)};Om.getEleLevelForLayerLevel=function(e,t){return e};Om.drawEleInLayer=function(e,t,r,a){var s=this,o=this.renderer,u=e.context,h=t.boundingBox();h.w===0||h.h===0||!t.visible()||(r=s.getEleLevelForLayerLevel(r,a),o.setImgSmoothing(u,!1),o.drawCachedElement(u,t,null,null,r,sOi),o.setImgSmoothing(u,!0))};Om.levelIsComplete=function(e,t){var r=this,a=r.layersByLevel[e];if(!a||a.length===0)return!1;for(var s=0,o=0;o<a.length;o++){var u=a[o];if(u.reqs>0||u.invalid)return!1;s+=u.eles.length}return s===t.length};Om.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(r)for(var a=0;a<r.length;a++){for(var s=r[a],o=-1,u=0;u<t.length;u++)if(s.eles[0]===t[u]){o=u;break}if(o<0){this.invalidateLayer(s);continue}for(var h=o,u=0;u<s.eles.length;u++)if(s.eles[u]!==t[h+u]){this.invalidateLayer(s);break}}};Om.updateElementsInLayers=function(e,t){for(var r=this,a=Ece(e[0]),s=0;s<e.length;s++)for(var o=a?null:e[s],u=a?e[s]:e[s].ele,h=u._private.rscratch,f=h.imgLayerCaches=h.imgLayerCaches||{},p=Tse;p<=X3e;p++){var m=f[p];m&&(o&&r.getEleLevelForLayerLevel(m.level)!==o.level||t(m,u,o))}};Om.haveLayers=function(){for(var e=this,t=!1,r=Tse;r<=X3e;r++){var a=e.layersByLevel[r];if(a&&a.length>0){t=!0;break}}return t};Om.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=cR(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,function(a,s,o){t.invalidateLayer(a)}))};Om.invalidateLayer=function(e){if(this.lastInvalidationTime=cR(),!e.invalid){var t=e.level,r=e.eles,a=this.layersByLevel[t];s9(a,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var s=0;s<r.length;s++){var o=r[s]._private.rscratch.imgLayerCaches;o&&(o[t]=null)}}};Om.refineElementTextures=function(e){var t=this;t.updateElementsInLayers(e,function(a,s,o){var u=a.replacement;if(u||(u=a.replacement=t.makeLayer(a.bb,a.level),u.replaces=a,u.eles=a.eles),!u.reqs)for(var h=0;h<u.eles.length;h++)t.queueLayer(u,u.eles[h])})};Om.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()};Om.queueLayer=function(e,t){var r=this,a=r.layersQueue,s=e.elesQueue,o=s.hasId=s.hasId||{};if(!e.replacement){if(t){if(o[t.id()])return;s.push(t),o[t.id()]=!0}e.reqs?(e.reqs++,a.updateItem(e)):(e.reqs=1,a.push(e))}};Om.dequeue=function(e){for(var t=this,r=t.layersQueue,a=[],s=0;s<iOi&&r.size()!==0;){var o=r.peek();if(o.replacement){r.pop();continue}if(o.replaces&&o!==o.replaces.replacement){r.pop();continue}if(o.invalid){r.pop();continue}var u=o.elesQueue.shift();u&&(t.drawEleInLayer(o,u,o.level,e),s++),a.length===0&&a.push(!0),o.elesQueue.length===0&&(r.pop(),o.reqs=0,o.replaces&&t.applyLayerReplacement(o),t.requestRedraw())}return a};Om.applyLayerReplacement=function(e){var t=this,r=t.layersByLevel[e.level],a=e.replaces,s=r.indexOf(a);if(!(s<0||a.invalid)){r[s]=e;for(var o=0;o<e.eles.length;o++){var u=e.eles[o]._private,h=u.imgLayerCaches=u.imgLayerCaches||{};h&&(h[e.level]=e)}t.requestRedraw()}};Om.requestRedraw=Cce(function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()},100);Om.setupDequeueing=kVn.setupDequeueing({deqRedrawThreshold:ZNi,deqCost:eOi,deqAvgCost:tOi,deqNoDrawCost:nOi,deqFastCost:rOi,deq:function(t,r){return t.dequeue(r)},onDeqd:mgt,shouldRedraw:yHn,priority:function(t){return t.renderer.beforeRenderPriorities.lyrTxrDeq}});var NVn={},rSn;function lOi(e,t){for(var r=0;r<t.length;r++){var a=t[r];e.lineTo(a.x,a.y)}}function cOi(e,t,r){for(var a,s=0;s<t.length;s++){var o=t[s];s===0&&(a=o),e.lineTo(o.x,o.y)}e.quadraticCurveTo(r.x,r.y,a.x,a.y)}function iSn(e,t,r){e.beginPath&&e.beginPath();for(var a=t,s=0;s<a.length;s++){var o=a[s];e.lineTo(o.x,o.y)}var u=r,h=r[0];e.moveTo(h.x,h.y);for(var s=1;s<u.length;s++){var o=u[s];e.lineTo(o.x,o.y)}e.closePath&&e.closePath()}function uOi(e,t,r,a,s){e.beginPath&&e.beginPath(),e.arc(r,a,s,0,Math.PI*2,!1);var o=t,u=o[0];e.moveTo(u.x,u.y);for(var h=0;h<o.length;h++){var f=o[h];e.lineTo(f.x,f.y)}e.closePath&&e.closePath()}function hOi(e,t,r,a){e.arc(t,r,a,0,Math.PI*2,!1)}NVn.arrowShapeImpl=function(e){return(rSn||(rSn={polygon:lOi,"triangle-backcurve":cOi,"triangle-tee":iSn,"circle-triangle":uOi,"triangle-cross":iSn,circle:hOi}))[e]};var FA={};FA.drawElement=function(e,t,r,a,s,o){var u=this;t.isNode()?u.drawNode(e,t,r,a,s,o):u.drawEdge(e,t,r,a,s,o)};FA.drawElementOverlay=function(e,t){var r=this;t.isNode()?r.drawNodeOverlay(e,t):r.drawEdgeOverlay(e,t)};FA.drawElementUnderlay=function(e,t){var r=this;t.isNode()?r.drawNodeUnderlay(e,t):r.drawEdgeUnderlay(e,t)};FA.drawCachedElementPortion=function(e,t,r,a,s,o,u,h){var f=this,p=r.getBoundingBox(t);if(!(p.w===0||p.h===0)){var m=r.getElement(t,p,a,s,o);if(m!=null){var b=h(f,t);if(b===0)return;var _=u(f,t),w=p.x1,S=p.y1,C=p.w,A=p.h,k,I,N,L,P;if(_!==0){var M=r.getRotationPoint(t);N=M.x,L=M.y,e.translate(N,L),e.rotate(_),P=f.getImgSmoothing(e),P||f.setImgSmoothing(e,!0);var F=r.getRotationOffset(t);k=F.x,I=F.y}else k=w,I=S;var U;b!==1&&(U=e.globalAlpha,e.globalAlpha=U*b),e.drawImage(m.texture.canvas,m.x,0,m.width,m.height,k,I,C,A),b!==1&&(e.globalAlpha=U),_!==0&&(e.rotate(-_),e.translate(-N,-L),P||f.setImgSmoothing(e,!1))}else r.drawElement(e,t)}};var dOi=function(){return 0},fOi=function(t,r){return t.getTextAngle(r,null)},pOi=function(t,r){return t.getTextAngle(r,"source")},gOi=function(t,r){return t.getTextAngle(r,"target")},mOi=function(t,r){return r.effectiveOpacity()},uit=function(t,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};FA.drawCachedElement=function(e,t,r,a,s,o){var u=this,h=u.data,f=h.eleTxrCache,p=h.lblTxrCache,m=h.slbTxrCache,b=h.tlbTxrCache,_=t.boundingBox(),w=o===!0?f.reasons.highQuality:null;if(!(_.w===0||_.h===0||!t.visible())&&(!a||_gt(_,a))){var S=t.isEdge(),C=t.element()._private.rscratch.badLine;u.drawElementUnderlay(e,t),u.drawCachedElementPortion(e,t,f,r,s,w,dOi,mOi),(!S||!C)&&u.drawCachedElementPortion(e,t,p,r,s,w,fOi,uit),S&&!C&&(u.drawCachedElementPortion(e,t,m,r,s,w,pOi,uit),u.drawCachedElementPortion(e,t,b,r,s,w,gOi,uit)),u.drawElementOverlay(e,t)}};FA.drawElements=function(e,t){for(var r=this,a=0;a<t.length;a++){var s=t[a];r.drawElement(e,s)}};FA.drawCachedElements=function(e,t,r,a){for(var s=this,o=0;o<t.length;o++){var u=t[o];s.drawCachedElement(e,u,r,a)}};FA.drawCachedNodes=function(e,t,r,a){for(var s=this,o=0;o<t.length;o++){var u=t[o];u.isNode()&&s.drawCachedElement(e,u,r,a)}};FA.drawLayeredElements=function(e,t,r,a){var s=this,o=s.data.lyrTxrCache.getLayers(t,r);if(o)for(var u=0;u<o.length;u++){var h=o[u],f=h.bb;f.w===0||f.h===0||e.drawImage(h.canvas,f.x1,f.y1,f.w,f.h)}else s.drawCachedElements(e,t,r,a)};var TR={};TR.drawEdge=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,u=this,h=t._private.rscratch;if(!(o&&!t.visible())&&!(h.badLine||h.allpts==null||isNaN(h.allpts[0]))){var f;r&&(f=r,e.translate(-f.x1,-f.y1));var p=o?t.pstyle("opacity").value:1,m=o?t.pstyle("line-opacity").value:1,b=t.pstyle("curve-style").value,_=t.pstyle("line-style").value,w=t.pstyle("width").pfValue,S=t.pstyle("line-cap").value,C=t.pstyle("line-outline-width").value,A=t.pstyle("line-outline-color").value,k=p*m,I=p*m,N=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k;b==="straight-triangle"?(u.eleStrokeStyle(e,t,W),u.drawEdgeTrianglePath(t,e,h.allpts)):(e.lineWidth=w,e.lineCap=S,u.eleStrokeStyle(e,t,W),u.drawEdgePath(t,e,h.allpts,_),e.lineCap="butt")},L=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k;if(e.lineWidth=w+C,e.lineCap=S,C>0)u.colorStrokeStyle(e,A[0],A[1],A[2],W);else{e.lineCap="butt";return}b==="straight-triangle"?u.drawEdgeTrianglePath(t,e,h.allpts):(u.drawEdgePath(t,e,h.allpts,_),e.lineCap="butt")},P=function(){s&&u.drawEdgeOverlay(e,t)},M=function(){s&&u.drawEdgeUnderlay(e,t)},F=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;u.drawArrowheads(e,t,W)},U=function(){u.drawElementText(e,t,null,a)};e.lineJoin="round";var $=t.pstyle("ghost").value==="yes";if($){var G=t.pstyle("ghost-offset-x").pfValue,B=t.pstyle("ghost-offset-y").pfValue,Z=t.pstyle("ghost-opacity").value,z=k*Z;e.translate(G,B),N(z),F(z),e.translate(-G,-B)}else L();M(),N(),F(),P(),U(),r&&e.translate(f.x1,f.y1)}};var OVn=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(r,a){if(a.visible()){var s=a.pstyle("".concat(t,"-opacity")).value;if(s!==0){var o=this,u=o.usePaths(),h=a._private.rscratch,f=a.pstyle("".concat(t,"-padding")).pfValue,p=2*f,m=a.pstyle("".concat(t,"-color")).value;r.lineWidth=p,h.edgeType==="self"&&!u?r.lineCap="butt":r.lineCap="round",o.colorStrokeStyle(r,m[0],m[1],m[2],s),o.drawEdgePath(a,r,h.allpts,"solid")}}}};TR.drawEdgeOverlay=OVn("overlay");TR.drawEdgeUnderlay=OVn("underlay");TR.drawEdgePath=function(e,t,r,a){var s=e._private.rscratch,o=t,u,h=!1,f=this.usePaths(),p=e.pstyle("line-dash-pattern").pfValue,m=e.pstyle("line-dash-offset").pfValue;if(f){var b=r.join("$"),_=s.pathCacheKey&&s.pathCacheKey===b;_?(u=t=s.pathCache,h=!0):(u=t=new Path2D,s.pathCacheKey=b,s.pathCache=u)}if(o.setLineDash)switch(a){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(p),o.lineDashOffset=m;break;case"solid":o.setLineDash([]);break}if(!h&&!s.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(r[0],r[1]),s.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var w=2;w+3<r.length;w+=4)t.quadraticCurveTo(r[w],r[w+1],r[w+2],r[w+3]);break;case"straight":case"haystack":for(var S=2;S+1<r.length;S+=2)t.lineTo(r[S],r[S+1]);break;case"segments":if(s.isRound){var C=W2(s.roundCorners),A;try{for(C.s();!(A=C.n()).done;){var k=A.value;_Vn(t,k)}}catch(N){C.e(N)}finally{C.f()}t.lineTo(r[r.length-2],r[r.length-1])}else for(var I=2;I+1<r.length;I+=2)t.lineTo(r[I],r[I+1]);break}t=o,f?t.stroke(u):t.stroke(),t.setLineDash&&t.setLineDash([])};TR.drawEdgeTrianglePath=function(e,t,r){t.fillStyle=t.strokeStyle;for(var a=e.pstyle("width").pfValue,s=0;s+1<r.length;s+=2){var o=[r[s+2]-r[s],r[s+3]-r[s+1]],u=Math.sqrt(o[0]*o[0]+o[1]*o[1]),h=[o[1]/u,-o[0]/u],f=[h[0]*a/2,h[1]*a/2];t.beginPath(),t.moveTo(r[s]-f[0],r[s+1]-f[1]),t.lineTo(r[s]+f[0],r[s+1]+f[1]),t.lineTo(r[s+2],r[s+3]),t.closePath(),t.fill()}};TR.drawArrowheads=function(e,t,r){var a=t._private.rscratch,s=a.edgeType==="haystack";s||this.drawArrowhead(e,t,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(e,t,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(e,t,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),s||this.drawArrowhead(e,t,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)};TR.drawArrowhead=function(e,t,r,a,s,o,u){if(!(isNaN(a)||a==null||isNaN(s)||s==null||isNaN(o)||o==null)){var h=this,f=t.pstyle(r+"-arrow-shape").value;if(f!=="none"){var p=t.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",m=t.pstyle(r+"-arrow-fill").value,b=t.pstyle("width").pfValue,_=t.pstyle(r+"-arrow-width"),w=_.value==="match-line"?b:_.pfValue;_.units==="%"&&(w*=b);var S=t.pstyle("opacity").value;u===void 0&&(u=S);var C=e.globalCompositeOperation;(u!==1||m==="hollow")&&(e.globalCompositeOperation="destination-out",h.colorFillStyle(e,255,255,255,1),h.colorStrokeStyle(e,255,255,255,1),h.drawArrowShape(t,e,p,b,f,w,a,s,o),e.globalCompositeOperation=C);var A=t.pstyle(r+"-arrow-color").value;h.colorFillStyle(e,A[0],A[1],A[2],u),h.colorStrokeStyle(e,A[0],A[1],A[2],u),h.drawArrowShape(t,e,m,b,f,w,a,s,o)}}};TR.drawArrowShape=function(e,t,r,a,s,o,u,h,f){var p=this,m=this.usePaths()&&s!=="triangle-cross",b=!1,_,w=t,S={x:u,y:h},C=e.pstyle("arrow-scale").value,A=this.getArrowWidth(a,C),k=p.arrowShapes[s];if(m){var I=p.arrowPathCache=p.arrowPathCache||[],N=KF(s),L=I[N];L!=null?(_=t=L,b=!0):(_=t=new Path2D,I[N]=_)}b||(t.beginPath&&t.beginPath(),m?k.draw(t,1,0,{x:0,y:0},1):k.draw(t,A,f,S,a),t.closePath&&t.closePath()),t=w,m&&(t.translate(u,h),t.rotate(f),t.scale(A,A)),(r==="filled"||r==="both")&&(m?t.fill(_):t.fill()),(r==="hollow"||r==="both")&&(t.lineWidth=o/(m?A:1),t.lineJoin="miter",m?t.stroke(_):t.stroke()),m&&(t.scale(1/A,1/A),t.rotate(-f),t.translate(-u,-h))};var Dgt={};Dgt.safeDrawImage=function(e,t,r,a,s,o,u,h,f,p){if(!(s<=0||o<=0||f<=0||p<=0))try{e.drawImage(t,r,a,s,o,u,h,f,p)}catch(m){Uu(m)}};Dgt.drawInscribedImage=function(e,t,r,a,s){var o=this,u=r.position(),h=u.x,f=u.y,p=r.cy().style(),m=p.getIndexedStyle.bind(p),b=m(r,"background-fit","value",a),_=m(r,"background-repeat","value",a),w=r.width(),S=r.height(),C=r.padding()*2,A=w+(m(r,"background-width-relative-to","value",a)==="inner"?0:C),k=S+(m(r,"background-height-relative-to","value",a)==="inner"?0:C),I=r._private.rscratch,N=m(r,"background-clip","value",a),L=N==="node",P=m(r,"background-image-opacity","value",a)*s,M=m(r,"background-image-smoothing","value",a),F=r.pstyle("corner-radius").value;F!=="auto"&&(F=r.pstyle("corner-radius").pfValue);var U=t.width||t.cachedW,$=t.height||t.cachedH;(U==null||$==null)&&(document.body.appendChild(t),U=t.cachedW=t.width||t.offsetWidth,$=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var G=U,B=$;if(m(r,"background-width","value",a)!=="auto"&&(m(r,"background-width","units",a)==="%"?G=m(r,"background-width","pfValue",a)*A:G=m(r,"background-width","pfValue",a)),m(r,"background-height","value",a)!=="auto"&&(m(r,"background-height","units",a)==="%"?B=m(r,"background-height","pfValue",a)*k:B=m(r,"background-height","pfValue",a)),!(G===0||B===0)){if(b==="contain"){var Z=Math.min(A/G,k/B);G*=Z,B*=Z}else if(b==="cover"){var Z=Math.max(A/G,k/B);G*=Z,B*=Z}var z=h-A/2,Y=m(r,"background-position-x","units",a),W=m(r,"background-position-x","pfValue",a);Y==="%"?z+=(A-G)*W:z+=W;var Q=m(r,"background-offset-x","units",a),V=m(r,"background-offset-x","pfValue",a);Q==="%"?z+=(A-G)*V:z+=V;var j=f-k/2,ee=m(r,"background-position-y","units",a),te=m(r,"background-position-y","pfValue",a);ee==="%"?j+=(k-B)*te:j+=te;var ne=m(r,"background-offset-y","units",a),se=m(r,"background-offset-y","pfValue",a);ne==="%"?j+=(k-B)*se:j+=se,I.pathCache&&(z-=h,j-=f,h=0,f=0);var ie=e.globalAlpha;e.globalAlpha=P;var ge=o.getImgSmoothing(e),ce=!1;if(M==="no"&&ge?(o.setImgSmoothing(e,!1),ce=!0):M==="yes"&&!ge&&(o.setImgSmoothing(e,!0),ce=!0),_==="no-repeat")L&&(e.save(),I.pathCache?e.clip(I.pathCache):(o.nodeShapes[o.getNodeShape(r)].draw(e,h,f,A,k,F,I),e.clip())),o.safeDrawImage(e,t,0,0,U,$,z,j,G,B),L&&e.restore();else{var be=e.createPattern(t,_);e.fillStyle=be,o.nodeShapes[o.getNodeShape(r)].draw(e,h,f,A,k,F,I),e.translate(z,j),e.fill(),e.translate(-z,-j)}e.globalAlpha=ie,ce&&o.setImgSmoothing(e,ge)}};var $$={};$$.eleTextBiggerThanMin=function(e,t){if(!t){var r=e.cy().zoom(),a=this.getPixelRatio(),s=Math.ceil(ygt(r*a));t=Math.pow(2,s)}var o=e.pstyle("font-size").pfValue*t,u=e.pstyle("min-zoomed-font-size").pfValue;return!(o<u)};$$.drawElementText=function(e,t,r,a,s){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,u=this;if(a==null){if(o&&!u.eleTextBiggerThanMin(t))return}else if(a===!1)return;if(t.isNode()){var h=t.pstyle("label");if(!h||!h.value)return;var f=u.getLabelJustification(t);e.textAlign=f,e.textBaseline="bottom"}else{var p=t.element()._private.rscratch.badLine,m=t.pstyle("label"),b=t.pstyle("source-label"),_=t.pstyle("target-label");if(p||(!m||!m.value)&&(!b||!b.value)&&(!_||!_.value))return;e.textAlign="center",e.textBaseline="bottom"}var w=!r,S;r&&(S=r,e.translate(-S.x1,-S.y1)),s==null?(u.drawText(e,t,null,w,o),t.isEdge()&&(u.drawText(e,t,"source",w,o),u.drawText(e,t,"target",w,o))):u.drawText(e,t,s,w,o),r&&e.translate(S.x1,S.y1)};$$.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(t=this.fontCaches[r],t.context===e)return t;return t={context:e},this.fontCaches.push(t),t};$$.setupTextStyle=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=t.pstyle("font-style").strValue,s=t.pstyle("font-size").pfValue+"px",o=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,h=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,f=t.pstyle("text-outline-opacity").value*h,p=t.pstyle("color").value,m=t.pstyle("text-outline-color").value;e.font=a+" "+u+" "+s+" "+o,e.lineJoin="round",this.colorFillStyle(e,p[0],p[1],p[2],h),this.colorStrokeStyle(e,m[0],m[1],m[2],f)};function bOi(e,t,r,a,s){var o=Math.min(a,s),u=o/2,h=t+a/2,f=r+s/2;e.beginPath(),e.arc(h,f,u,0,Math.PI*2),e.closePath()}function aSn(e,t,r,a,s){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,u=Math.min(o,a/2,s/2);e.beginPath(),e.moveTo(t+u,r),e.lineTo(t+a-u,r),e.quadraticCurveTo(t+a,r,t+a,r+u),e.lineTo(t+a,r+s-u),e.quadraticCurveTo(t+a,r+s,t+a-u,r+s),e.lineTo(t+u,r+s),e.quadraticCurveTo(t,r+s,t,r+s-u),e.lineTo(t,r+u),e.quadraticCurveTo(t,r,t+u,r),e.closePath()}$$.getTextAngle=function(e,t){var r,a=e._private,s=a.rscratch,o=t?t+"-":"",u=e.pstyle(o+"text-rotation");if(u.strValue==="autorotate"){var h=F2(s,"labelAngle",t);r=e.isEdge()?h:0}else u.strValue==="none"?r=0:r=u.pfValue;return r};$$.drawText=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=t._private,u=o.rscratch,h=s?t.effectiveOpacity():1;if(!(s&&(h===0||t.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var f=F2(u,"labelX",r),p=F2(u,"labelY",r),m,b,_=this.getLabelText(t,r);if(_!=null&&_!==""&&!isNaN(f)&&!isNaN(p)){this.setupTextStyle(e,t,s);var w=r?r+"-":"",S=F2(u,"labelWidth",r),C=F2(u,"labelHeight",r),A=t.pstyle(w+"text-margin-x").pfValue,k=t.pstyle(w+"text-margin-y").pfValue,I=t.isEdge(),N=t.pstyle("text-halign").value,L=t.pstyle("text-valign").value;I&&(N="center",L="center"),f+=A,p+=k;var P;switch(a?P=this.getTextAngle(t,r):P=0,P!==0&&(m=f,b=p,e.translate(m,b),e.rotate(P),f=0,p=0),L){case"top":break;case"center":p+=C/2;break;case"bottom":p+=C;break}var M=t.pstyle("text-background-opacity").value,F=t.pstyle("text-border-opacity").value,U=t.pstyle("text-border-width").pfValue,$=t.pstyle("text-background-padding").pfValue,G=t.pstyle("text-background-shape").strValue,B=G==="round-rectangle"||G==="roundrectangle",Z=G==="circle",z=2;if(M>0||U>0&&F>0){var Y=e.fillStyle,W=e.strokeStyle,Q=e.lineWidth,V=t.pstyle("text-background-color").value,j=t.pstyle("text-border-color").value,ee=t.pstyle("text-border-style").value,te=M>0,ne=U>0&&F>0,se=f-$;switch(N){case"left":se-=S;break;case"center":se-=S/2;break}var ie=p-C-$,ge=S+2*$,ce=C+2*$;if(te&&(e.fillStyle="rgba(".concat(V[0],",").concat(V[1],",").concat(V[2],",").concat(M*h,")")),ne&&(e.strokeStyle="rgba(".concat(j[0],",").concat(j[1],",").concat(j[2],",").concat(F*h,")"),e.lineWidth=U,e.setLineDash))switch(ee){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=U/4,e.setLineDash([]);break;case"solid":default:e.setLineDash([]);break}if(B?(e.beginPath(),aSn(e,se,ie,ge,ce,z)):Z?(e.beginPath(),bOi(e,se,ie,ge,ce)):(e.beginPath(),e.rect(se,ie,ge,ce)),te&&e.fill(),ne&&e.stroke(),ne&&ee==="double"){var be=U/2;e.beginPath(),B?aSn(e,se+be,ie+be,ge-2*be,ce-2*be,z):e.rect(se+be,ie+be,ge-2*be,ce-2*be),e.stroke()}e.fillStyle=Y,e.strokeStyle=W,e.lineWidth=Q,e.setLineDash&&e.setLineDash([])}var ve=2*t.pstyle("text-outline-width").pfValue;if(ve>0&&(e.lineWidth=ve),t.pstyle("text-wrap").value==="wrap"){var De=F2(u,"labelWrapCachedLines",r),ye=F2(u,"labelLineHeight",r),Ee=S/2,he=this.getLabelJustification(t);switch(he==="auto"||(N==="left"?he==="left"?f+=-S:he==="center"&&(f+=-Ee):N==="center"?he==="left"?f+=-Ee:he==="right"&&(f+=Ee):N==="right"&&(he==="center"?f+=Ee:he==="right"&&(f+=S))),L){case"top":p-=(De.length-1)*ye;break;case"center":case"bottom":p-=(De.length-1)*ye;break}for(var we=0;we<De.length;we++)ve>0&&e.strokeText(De[we],f,p),e.fillText(De[we],f,p),p+=ye}else ve>0&&e.strokeText(_,f,p),e.fillText(_,f,p);P!==0&&(e.rotate(-P),e.translate(-m,-b))}}};var W9={};W9.drawNode=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,u=this,h,f,p=t._private,m=p.rscratch,b=t.position();if(!(!aa(b.x)||!aa(b.y))&&!(o&&!t.visible())){var _=o?t.effectiveOpacity():1,w=u.usePaths(),S,C=!1,A=t.padding();h=t.width()+2*A,f=t.height()+2*A;var k;r&&(k=r,e.translate(-k.x1,-k.y1));for(var I=t.pstyle("background-image"),N=I.value,L=new Array(N.length),P=new Array(N.length),M=0,F=0;F<N.length;F++){var U=N[F],$=L[F]=U!=null&&U!=="none";if($){var G=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",F);M++,P[F]=u.getCachedImage(U,G,function(){p.backgroundTimestamp=Date.now(),t.emitAndNotify("background")})}}var B=t.pstyle("background-blacken").value,Z=t.pstyle("border-width").pfValue,z=t.pstyle("background-opacity").value*_,Y=t.pstyle("border-color").value,W=t.pstyle("border-style").value,Q=t.pstyle("border-join").value,V=t.pstyle("border-cap").value,j=t.pstyle("border-position").value,ee=t.pstyle("border-dash-pattern").pfValue,te=t.pstyle("border-dash-offset").pfValue,ne=t.pstyle("border-opacity").value*_,se=t.pstyle("outline-width").pfValue,ie=t.pstyle("outline-color").value,ge=t.pstyle("outline-style").value,ce=t.pstyle("outline-opacity").value*_,be=t.pstyle("outline-offset").value,ve=t.pstyle("corner-radius").value;ve!=="auto"&&(ve=t.pstyle("corner-radius").pfValue);var De=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z;u.eleFillStyle(e,t,Ae)},ye=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;u.colorStrokeStyle(e,Y[0],Y[1],Y[2],Ae)},Ee=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce;u.colorStrokeStyle(e,ie[0],ie[1],ie[2],Ae)},he=function(Ae,Xe,fe,Qe){var Ke=u.nodePathCache=u.nodePathCache||[],mt=bHn(fe==="polygon"?fe+","+Qe.join(","):fe,""+Xe,""+Ae,""+ve),lt=Ke[mt],$t,Ut=!1;return lt!=null?($t=lt,Ut=!0,m.pathCache=$t):($t=new Path2D,Ke[mt]=m.pathCache=$t),{path:$t,cacheHit:Ut}},we=t.pstyle("shape").strValue,Ce=t.pstyle("shape-polygon-points").pfValue;if(w){e.translate(b.x,b.y);var Ie=he(h,f,we,Ce);S=Ie.path,C=Ie.cacheHit}var Le=function(){if(!C){var Ae=b;w&&(Ae={x:0,y:0}),u.nodeShapes[u.getNodeShape(t)].draw(S||e,Ae.x,Ae.y,h,f,ve,m)}w?e.fill(S):e.fill()},Fe=function(){for(var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fe=p.backgrounding,Qe=0,Ke=0;Ke<P.length;Ke++){var mt=t.cy().style().getIndexedStyle(t,"background-image-containment","value",Ke);if(Xe&&mt==="over"||!Xe&&mt==="inside"){Qe++;continue}L[Ke]&&P[Ke].complete&&!P[Ke].error&&(Qe++,u.drawInscribedImage(e,P[Ke],t,Ke,Ae))}p.backgrounding=Qe!==M,fe!==p.backgrounding&&t.updateStyle(!1)},Ve=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;u.hasPie(t)&&(u.drawPie(e,t,Xe),Ae&&(w||u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m)))},Oe=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;u.hasStripe(t)&&(e.save(),w?e.clip(m.pathCache):(u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m),e.clip()),u.drawStripe(e,t,Xe),e.restore(),Ae&&(w||u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m)))},Dt=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,Xe=(B>0?B:-B)*Ae,fe=B>0?0:255;B!==0&&(u.colorFillStyle(e,fe,fe,fe,Xe),w?e.fill(S):e.fill())},ot=function(){if(Z>0){if(e.lineWidth=Z,e.lineCap=V,e.lineJoin=Q,e.setLineDash)switch(W){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(ee),e.lineDashOffset=te;break;case"solid":case"double":e.setLineDash([]);break}if(j!=="center"){if(e.save(),e.lineWidth*=2,j==="inside")w?e.clip(S):e.clip();else{var Ae=new Path2D;Ae.rect(-h/2-Z,-f/2-Z,h+2*Z,f+2*Z),Ae.addPath(S),e.clip(Ae,"evenodd")}w?e.stroke(S):e.stroke(),e.restore()}else w?e.stroke(S):e.stroke();if(W==="double"){e.lineWidth=Z/3;var Xe=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",w?e.stroke(S):e.stroke(),e.globalCompositeOperation=Xe}e.setLineDash&&e.setLineDash([])}},sn=function(){if(se>0){if(e.lineWidth=se,e.lineCap="butt",e.setLineDash)switch(ge){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var Ae=b;w&&(Ae={x:0,y:0});var Xe=u.getNodeShape(t),fe=Z;j==="inside"&&(fe=0),j==="outside"&&(fe*=2);var Qe=(h+fe+(se+be))/h,Ke=(f+fe+(se+be))/f,mt=h*Qe,lt=f*Ke,$t=u.nodeShapes[Xe].points,Ut;if(w){var Jt=he(mt,lt,Xe,$t);Ut=Jt.path}if(Xe==="ellipse")u.drawEllipsePath(Ut||e,Ae.x,Ae.y,mt,lt);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Xe)){var wn=0,Vn=0,Wn=0;Xe==="round-diamond"?wn=(fe+be+se)*1.4:Xe==="round-heptagon"?(wn=(fe+be+se)*1.075,Wn=-(fe/2+be+se)/35):Xe==="round-hexagon"?wn=(fe+be+se)*1.12:Xe==="round-pentagon"?(wn=(fe+be+se)*1.13,Wn=-(fe/2+be+se)/15):Xe==="round-tag"?(wn=(fe+be+se)*1.12,Vn=(fe/2+se+be)*.07):Xe==="round-triangle"&&(wn=(fe+be+se)*(Math.PI/2),Wn=-(fe+be/2+se)/Math.PI),wn!==0&&(Qe=(h+wn)/h,mt=h*Qe,["round-hexagon","round-tag"].includes(Xe)||(Ke=(f+wn)/f,lt=f*Ke)),ve=ve==="auto"?AHn(mt,lt):ve;for(var Dn=mt/2,zn=lt/2,vn=ve+(fe+se+be)/2,Cn=new Array($t.length/2),Ar=new Array($t.length/2),ur=0;ur<$t.length/2;ur++)Cn[ur]={x:Ae.x+Vn+Dn*$t[ur*2],y:Ae.y+Wn+zn*$t[ur*2+1]};var On,Ir,Ln,pr,Cr=Cn.length;for(Ir=Cn[Cr-1],On=0;On<Cr;On++)Ln=Cn[On%Cr],pr=Cn[(On+1)%Cr],Ar[On]=Ogt(Ir,Ln,pr,vn),Ir=Ln,Ln=pr;u.drawRoundPolygonPath(Ut||e,Ae.x+Vn,Ae.y+Wn,h*Qe,f*Ke,$t,Ar)}else if(["roundrectangle","round-rectangle"].includes(Xe))ve=ve==="auto"?o9(mt,lt):ve,u.drawRoundRectanglePath(Ut||e,Ae.x,Ae.y,mt,lt,ve+(fe+se+be)/2);else if(["cutrectangle","cut-rectangle"].includes(Xe))ve=ve==="auto"?wgt():ve,u.drawCutRectanglePath(Ut||e,Ae.x,Ae.y,mt,lt,null,ve+(fe+se+be)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(Xe))ve=ve==="auto"?o9(mt,lt):ve,u.drawBottomRoundRectanglePath(Ut||e,Ae.x,Ae.y,mt,lt,ve+(fe+se+be)/2);else if(Xe==="barrel")u.drawBarrelPath(Ut||e,Ae.x,Ae.y,mt,lt);else if(Xe.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(Xe)){var Zr=(fe+se+be)/h;$t=q3e(H3e($t,Zr)),u.drawPolygonPath(Ut||e,Ae.x,Ae.y,h,f,$t)}else{var Pr=(fe+se+be)/h;$t=q3e(H3e($t,-Pr)),u.drawPolygonPath(Ut||e,Ae.x,Ae.y,h,f,$t)}if(w?e.stroke(Ut):e.stroke(),ge==="double"){e.lineWidth=fe/3;var Ci=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",w?e.stroke(Ut):e.stroke(),e.globalCompositeOperation=Ci}e.setLineDash&&e.setLineDash([])}},Kt=function(){s&&u.drawNodeOverlay(e,t,b,h,f)},Ft=function(){s&&u.drawNodeUnderlay(e,t,b,h,f)},Je=function(){u.drawElementText(e,t,null,a)},ht=t.pstyle("ghost").value==="yes";if(ht){var et=t.pstyle("ghost-offset-x").pfValue,qe=t.pstyle("ghost-offset-y").pfValue,He=t.pstyle("ghost-opacity").value,Ge=He*_;e.translate(et,qe),Ee(),sn(),De(He*z),Le(),Fe(Ge,!0),ye(He*ne),ot(),Ve(B!==0||Z!==0),Oe(B!==0||Z!==0),Fe(Ge,!1),Dt(Ge),e.translate(-et,-qe)}w&&e.translate(-b.x,-b.y),Ft(),w&&e.translate(b.x,b.y),Ee(),sn(),De(),Le(),Fe(_,!0),ye(),ot(),Ve(B!==0||Z!==0),Oe(B!==0||Z!==0),Fe(_,!1),Dt(),w&&e.translate(-b.x,-b.y),Je(),Kt(),r&&e.translate(k.x1,k.y1)}};var LVn=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(r,a,s,o,u){var h=this;if(a.visible()){var f=a.pstyle("".concat(t,"-padding")).pfValue,p=a.pstyle("".concat(t,"-opacity")).value,m=a.pstyle("".concat(t,"-color")).value,b=a.pstyle("".concat(t,"-shape")).value,_=a.pstyle("".concat(t,"-corner-radius")).value;if(p>0){if(s=s||a.position(),o==null||u==null){var w=a.padding();o=a.width()+2*w,u=a.height()+2*w}h.colorFillStyle(r,m[0],m[1],m[2],p),h.nodeShapes[b].draw(r,s.x,s.y,o+f*2,u+f*2,_),r.fill()}}}};W9.drawNodeOverlay=LVn("overlay");W9.drawNodeUnderlay=LVn("underlay");W9.hasPie=function(e){return e=e[0],e._private.hasPie};W9.hasStripe=function(e){return e=e[0],e._private.hasStripe};W9.drawPie=function(e,t,r,a){t=t[0],a=a||t.position();var s=t.cy().style(),o=t.pstyle("pie-size"),u=t.pstyle("pie-hole"),h=t.pstyle("pie-start-angle").pfValue,f=a.x,p=a.y,m=t.width(),b=t.height(),_=Math.min(m,b)/2,w,S=0,C=this.usePaths();if(C&&(f=0,p=0),o.units==="%"?_=_*o.pfValue:o.pfValue!==void 0&&(_=o.pfValue/2),u.units==="%"?w=_*u.pfValue:u.pfValue!==void 0&&(w=u.pfValue/2),!(w>=_))for(var A=1;A<=s.pieBackgroundN;A++){var k=t.pstyle("pie-"+A+"-background-size").value,I=t.pstyle("pie-"+A+"-background-color").value,N=t.pstyle("pie-"+A+"-background-opacity").value*r,L=k/100;L+S>1&&(L=1-S);var P=1.5*Math.PI+2*Math.PI*S;P+=h;var M=2*Math.PI*L,F=P+M;k===0||S>=1||S+L>1||(w===0?(e.beginPath(),e.moveTo(f,p),e.arc(f,p,_,P,F),e.closePath()):(e.beginPath(),e.arc(f,p,_,P,F),e.arc(f,p,w,F,P,!0),e.closePath()),this.colorFillStyle(e,I[0],I[1],I[2],N),e.fill(),S+=L)}};W9.drawStripe=function(e,t,r,a){t=t[0],a=a||t.position();var s=t.cy().style(),o=a.x,u=a.y,h=t.width(),f=t.height(),p=0,m=this.usePaths();e.save();var b=t.pstyle("stripe-direction").value,_=t.pstyle("stripe-size");switch(b){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var w=h,S=f;_.units==="%"?(w=w*_.pfValue,S=S*_.pfValue):_.pfValue!==void 0&&(w=_.pfValue,S=_.pfValue),m&&(o=0,u=0),u-=w/2,o-=S/2;for(var C=1;C<=s.stripeBackgroundN;C++){var A=t.pstyle("stripe-"+C+"-background-size").value,k=t.pstyle("stripe-"+C+"-background-color").value,I=t.pstyle("stripe-"+C+"-background-opacity").value*r,N=A/100;N+p>1&&(N=1-p),!(A===0||p>=1||p+N>1)&&(e.beginPath(),e.rect(o,u+S*p,w,S*N),e.closePath(),this.colorFillStyle(e,k[0],k[1],k[2],I),e.fill(),p+=N)}e.restore()};var _v={},yOi=100;_v.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r};_v.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],r=!0,a,s=0;s<t.length;s++)if(a=t[s],a.context===e){r=!1;break}return r&&(a={context:e},t.push(a)),a};_v.createGradientStyleFor=function(e,t,r,a,s){var o,u=this.usePaths(),h=r.pstyle(t+"-gradient-stop-colors").value,f=r.pstyle(t+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var p=r.sourceEndpoint(),m=r.targetEndpoint(),b=r.midpoint(),_=XF(p,b),w=XF(m,b);o=e.createRadialGradient(b.x,b.y,0,b.x,b.y,Math.max(_,w))}else{var S=u?{x:0,y:0}:r.position(),C=r.paddedWidth(),A=r.paddedHeight();o=e.createRadialGradient(S.x,S.y,0,S.x,S.y,Math.max(C,A))}else if(r.isEdge()){var k=r.sourceEndpoint(),I=r.targetEndpoint();o=e.createLinearGradient(k.x,k.y,I.x,I.y)}else{var N=u?{x:0,y:0}:r.position(),L=r.paddedWidth(),P=r.paddedHeight(),M=L/2,F=P/2,U=r.pstyle("background-gradient-direction").value;switch(U){case"to-bottom":o=e.createLinearGradient(N.x,N.y-F,N.x,N.y+F);break;case"to-top":o=e.createLinearGradient(N.x,N.y+F,N.x,N.y-F);break;case"to-left":o=e.createLinearGradient(N.x+M,N.y,N.x-M,N.y);break;case"to-right":o=e.createLinearGradient(N.x-M,N.y,N.x+M,N.y);break;case"to-bottom-right":case"to-right-bottom":o=e.createLinearGradient(N.x-M,N.y-F,N.x+M,N.y+F);break;case"to-top-right":case"to-right-top":o=e.createLinearGradient(N.x-M,N.y+F,N.x+M,N.y-F);break;case"to-bottom-left":case"to-left-bottom":o=e.createLinearGradient(N.x+M,N.y-F,N.x-M,N.y+F);break;case"to-top-left":case"to-left-top":o=e.createLinearGradient(N.x+M,N.y+F,N.x-M,N.y-F);break}}if(!o)return null;for(var $=f.length===h.length,G=h.length,B=0;B<G;B++)o.addColorStop($?f[B]:B/(G-1),"rgba("+h[B][0]+","+h[B][1]+","+h[B][2]+","+s+")");return o};_v.gradientFillStyle=function(e,t,r,a){var s=this.createGradientStyleFor(e,"background",t,r,a);if(!s)return null;e.fillStyle=s};_v.colorFillStyle=function(e,t,r,a,s){e.fillStyle="rgba("+t+","+r+","+a+","+s+")"};_v.eleFillStyle=function(e,t,r){var a=t.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(e,t,a,r);else{var s=t.pstyle("background-color").value;this.colorFillStyle(e,s[0],s[1],s[2],r)}};_v.gradientStrokeStyle=function(e,t,r,a){var s=this.createGradientStyleFor(e,"line",t,r,a);if(!s)return null;e.strokeStyle=s};_v.colorStrokeStyle=function(e,t,r,a,s){e.strokeStyle="rgba("+t+","+r+","+a+","+s+")"};_v.eleStrokeStyle=function(e,t,r){var a=t.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(e,t,a,r);else{var s=t.pstyle("line-color").value;this.colorStrokeStyle(e,s[0],s[1],s[2],r)}};_v.matchCanvasSize=function(e){var t=this,r=t.data,a=t.findContainerClientCoords(),s=a[2],o=a[3],u=t.getPixelRatio(),h=t.motionBlurPxRatio;(e===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]||e===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG])&&(u=h);var f=s*u,p=o*u,m;if(!(f===t.canvasWidth&&p===t.canvasHeight)){t.fontCaches=null;var b=r.canvasContainer;b.style.width=s+"px",b.style.height=o+"px";for(var _=0;_<t.CANVAS_LAYERS;_++)m=r.canvases[_],m.width=f,m.height=p,m.style.width=s+"px",m.style.height=o+"px";for(var _=0;_<t.BUFFER_COUNT;_++)m=r.bufferCanvases[_],m.width=f,m.height=p,m.style.width=s+"px",m.style.height=o+"px";t.textureMult=1,u<=1&&(m=r.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,m.width=f*t.textureMult,m.height=p*t.textureMult),t.canvasWidth=f,t.canvasHeight=p,t.pixelRatio=u}};_v.renderTo=function(e,t,r,a){this.render({forcedContext:e,forcedZoom:t,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})};_v.clearCanvas=function(){var e=this,t=e.data;function r(a){a.clearRect(0,0,e.canvasWidth,e.canvasHeight)}r(t.contexts[e.NODE]),r(t.contexts[e.DRAG])};_v.render=function(e){var t=this;e=e||wHn();var r=t.cy,a=e.forcedContext,s=e.drawAllLayers,o=e.drawOnlyNodeLayer,u=e.forcedZoom,h=e.forcedPan,f=e.forcedPxRatio===void 0?this.getPixelRatio():e.forcedPxRatio,p=t.data,m=p.canvasNeedsRedraw,b=t.textureOnViewport&&!a&&(t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming),_=e.motionBlur!==void 0?e.motionBlur:t.motionBlur,w=t.motionBlurPxRatio,S=r.hasCompoundNodes(),C=t.hoverData.draggingEles,A=!!(t.hoverData.selecting||t.touchData.selecting);_=_&&!a&&t.motionBlurEnabled&&!A;var k=_;a||(t.prevPxRatio!==f&&(t.invalidateContainerClientCoordsCache(),t.matchCanvasSize(t.container),t.redrawHint("eles",!0),t.redrawHint("drag",!0)),t.prevPxRatio=f),!a&&t.motionBlurTimeout&&clearTimeout(t.motionBlurTimeout),_&&(t.mbFrames==null&&(t.mbFrames=0),t.mbFrames++,t.mbFrames<3&&(k=!1),t.mbFrames>t.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!b&&(m[t.NODE]=!0,m[t.SELECT_BOX]=!0);var I=r.style(),N=r.zoom(),L=u!==void 0?u:N,P=r.pan(),M={x:P.x,y:P.y},F={zoom:N,pan:{x:P.x,y:P.y}},U=t.prevViewport,$=U===void 0||F.zoom!==U.zoom||F.pan.x!==U.pan.x||F.pan.y!==U.pan.y;!$&&!(C&&!S)&&(t.motionBlurPxRatio=1),h&&(M=h),L*=f,M.x*=f,M.y*=f;var G=t.getCachedZSortedEles();function B(ye,Ee,he,we,Ce){var Ie=ye.globalCompositeOperation;ye.globalCompositeOperation="destination-out",t.colorFillStyle(ye,255,255,255,t.motionBlurTransparency),ye.fillRect(Ee,he,we,Ce),ye.globalCompositeOperation=Ie}function Z(ye,Ee){var he,we,Ce,Ie;!t.clearingMotionBlur&&(ye===p.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||ye===p.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(he={x:P.x*w,y:P.y*w},we=N*w,Ce=t.canvasWidth*w,Ie=t.canvasHeight*w):(he=M,we=L,Ce=t.canvasWidth,Ie=t.canvasHeight),ye.setTransform(1,0,0,1,0,0),Ee==="motionBlur"?B(ye,0,0,Ce,Ie):!a&&(Ee===void 0||Ee)&&ye.clearRect(0,0,Ce,Ie),s||(ye.translate(he.x,he.y),ye.scale(we,we)),h&&ye.translate(h.x,h.y),u&&ye.scale(u,u)}if(b||(t.textureDrawLastFrame=!1),b){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=r.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var z=t.data.bufferContexts[t.TEXTURE_BUFFER];z.setTransform(1,0,0,1,0,0),z.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:z,drawOnlyNodeLayer:!0,forcedPxRatio:f*t.textureMult});var F=t.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:t.canvasWidth,height:t.canvasHeight};F.mpan={x:(0-F.pan.x)/F.zoom,y:(0-F.pan.y)/F.zoom}}m[t.DRAG]=!1,m[t.NODE]=!1;var Y=p.contexts[t.NODE],W=t.textureCache.texture,F=t.textureCache.viewport;Y.setTransform(1,0,0,1,0,0),_?B(Y,0,0,F.width,F.height):Y.clearRect(0,0,F.width,F.height);var Q=I.core("outside-texture-bg-color").value,V=I.core("outside-texture-bg-opacity").value;t.colorFillStyle(Y,Q[0],Q[1],Q[2],V),Y.fillRect(0,0,F.width,F.height);var N=r.zoom();Z(Y,!1),Y.clearRect(F.mpan.x,F.mpan.y,F.width/F.zoom/f,F.height/F.zoom/f),Y.drawImage(W,F.mpan.x,F.mpan.y,F.width/F.zoom/f,F.height/F.zoom/f)}else t.textureOnViewport&&!a&&(t.textureCache=null);var j=r.extent(),ee=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),te=t.hideEdgesOnViewport&&ee,ne=[];if(ne[t.NODE]=!m[t.NODE]&&_&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,ne[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),ne[t.DRAG]=!m[t.DRAG]&&_&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,ne[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),m[t.NODE]||s||o||ne[t.NODE]){var se=_&&!ne[t.NODE]&&w!==1,Y=a||(se?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:p.contexts[t.NODE]),ie=_&&!se?"motionBlur":void 0;Z(Y,ie),te?t.drawCachedNodes(Y,G.nondrag,f,j):t.drawLayeredElements(Y,G.nondrag,f,j),t.debug&&t.drawDebugPoints(Y,G.nondrag),!s&&!_&&(m[t.NODE]=!1)}if(!o&&(m[t.DRAG]||s||ne[t.DRAG])){var se=_&&!ne[t.DRAG]&&w!==1,Y=a||(se?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:p.contexts[t.DRAG]);Z(Y,_&&!se?"motionBlur":void 0),te?t.drawCachedNodes(Y,G.drag,f,j):t.drawCachedElements(Y,G.drag,f,j),t.debug&&t.drawDebugPoints(Y,G.drag),!s&&!_&&(m[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,Z),_&&w!==1){var ge=p.contexts[t.NODE],ce=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],be=p.contexts[t.DRAG],ve=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],De=function(Ee,he,we){Ee.setTransform(1,0,0,1,0,0),we||!k?Ee.clearRect(0,0,t.canvasWidth,t.canvasHeight):B(Ee,0,0,t.canvasWidth,t.canvasHeight);var Ce=w;Ee.drawImage(he,0,0,t.canvasWidth*Ce,t.canvasHeight*Ce,0,0,t.canvasWidth,t.canvasHeight)};(m[t.NODE]||ne[t.NODE])&&(De(ge,ce,ne[t.NODE]),m[t.NODE]=!1),(m[t.DRAG]||ne[t.DRAG])&&(De(be,ve,ne[t.DRAG]),m[t.DRAG]=!1)}t.prevViewport=F,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),_&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!b,t.mbFrames=0,m[t.NODE]=!0,m[t.DRAG]=!0,t.redraw()},yOi)),a||r.emit("render")};var iie;_v.drawSelectionRectangle=function(e,t){var r=this,a=r.cy,s=r.data,o=a.style(),u=e.drawOnlyNodeLayer,h=e.drawAllLayers,f=s.canvasNeedsRedraw,p=e.forcedContext;if(r.showFps||!u&&f[r.SELECT_BOX]&&!h){var m=p||s.contexts[r.SELECT_BOX];if(t(m),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var b=r.cy.zoom(),_=o.core("selection-box-border-width").value/b;m.lineWidth=_,m.fillStyle="rgba("+o.core("selection-box-color").value[0]+","+o.core("selection-box-color").value[1]+","+o.core("selection-box-color").value[2]+","+o.core("selection-box-opacity").value+")",m.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),_>0&&(m.strokeStyle="rgba("+o.core("selection-box-border-color").value[0]+","+o.core("selection-box-border-color").value[1]+","+o.core("selection-box-border-color").value[2]+","+o.core("selection-box-opacity").value+")",m.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(s.bgActivePosistion&&!r.hoverData.selecting){var b=r.cy.zoom(),w=s.bgActivePosistion;m.fillStyle="rgba("+o.core("active-bg-color").value[0]+","+o.core("active-bg-color").value[1]+","+o.core("active-bg-color").value[2]+","+o.core("active-bg-opacity").value+")",m.beginPath(),m.arc(w.x,w.y,o.core("active-bg-size").pfValue/b,0,2*Math.PI),m.fill()}var S=r.lastRedrawTime;if(r.showFps&&S){S=Math.round(S);var C=Math.round(1e3/S),A="1 frame = "+S+" ms = "+C+" fps";if(m.setTransform(1,0,0,1,0,0),m.fillStyle="rgba(255, 0, 0, 0.75)",m.strokeStyle="rgba(255, 0, 0, 0.75)",m.font="30px Arial",!iie){var k=m.measureText(A);iie=k.actualBoundingBoxAscent}m.fillText(A,0,iie);var I=60;m.strokeRect(0,iie+10,250,20),m.fillRect(0,iie+10,250*Math.min(C/I,1),20)}h||(f[r.SELECT_BOX]=!1)}};function sSn(e,t,r){var a=e.createShader(t);if(e.shaderSource(a,r),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(a));return a}function vOi(e,t,r){var a=sSn(e,e.VERTEX_SHADER,t),s=sSn(e,e.FRAGMENT_SHADER,r),o=e.createProgram();if(e.attachShader(o,a),e.attachShader(o,s),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error("Could not initialize shaders");return o}function _Oi(e,t,r){r===void 0&&(r=t);var a=e.makeOffscreenCanvas(t,r),s=a.context=a.getContext("2d");return a.clear=function(){return s.clearRect(0,0,a.width,a.height)},a.clear(),a}function Mgt(e){var t=e.pixelRatio,r=e.cy.zoom(),a=e.cy.pan();return{zoom:r*t,pan:{x:a.x*t,y:a.y*t}}}function wOi(e){var t=e.pixelRatio,r=e.cy.zoom();return r*t}function EOi(e,t,r,a,s){var o=a*r+t.x,u=s*r+t.y;return u=Math.round(e.canvasHeight-u),[o,u]}function xOi(e){return e.pstyle("background-fill").value!=="solid"||e.pstyle("background-image").strValue!=="none"?!1:e.pstyle("border-width").value===0||e.pstyle("border-opacity").value===0?!0:e.pstyle("border-style").value==="solid"}function SOi(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function wB(e,t,r){var a=e[0]/255,s=e[1]/255,o=e[2]/255,u=t,h=r||new Array(4);return h[0]=a*u,h[1]=s*u,h[2]=o*u,h[3]=u,h}function QH(e,t){var r=t||new Array(4);return r[0]=(e>>0&255)/255,r[1]=(e>>8&255)/255,r[2]=(e>>16&255)/255,r[3]=(e>>24&255)/255,r}function TOi(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function COi(e,t){var r=e.createTexture();return r.buffer=function(a){e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},r.deleteTexture=function(){e.deleteTexture(r)},r}function DVn(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function MVn(e,t,r){switch(t){case e.FLOAT:return new Float32Array(r);case e.INT:return new Int32Array(r)}}function AOi(e,t,r,a,s,o){switch(t){case e.FLOAT:return new Float32Array(r.buffer,o*a,s);case e.INT:return new Int32Array(r.buffer,o*a,s)}}function kOi(e,t,r,a){var s=DVn(e,t),o=S1(s,2),u=o[0],h=o[1],f=MVn(e,h,a),p=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,p),e.bufferData(e.ARRAY_BUFFER,f,e.STATIC_DRAW),h===e.FLOAT?e.vertexAttribPointer(r,u,h,!1,0,0):h===e.INT&&e.vertexAttribIPointer(r,u,h,0,0),e.enableVertexAttribArray(r),e.bindBuffer(e.ARRAY_BUFFER,null),p}function bC(e,t,r,a){var s=DVn(e,r),o=S1(s,3),u=o[0],h=o[1],f=o[2],p=MVn(e,h,t*u),m=u*f,b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,b),e.bufferData(e.ARRAY_BUFFER,t*m,e.DYNAMIC_DRAW),e.enableVertexAttribArray(a),h===e.FLOAT?e.vertexAttribPointer(a,u,h,!1,m,0):h===e.INT&&e.vertexAttribIPointer(a,u,h,m,0),e.vertexAttribDivisor(a,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var _=new Array(t),w=0;w<t;w++)_[w]=AOi(e,h,p,m,u,w);return b.dataArray=p,b.stride=m,b.size=u,b.getView=function(S){return _[S]},b.setPoint=function(S,C,A){var k=_[S];k[0]=C,k[1]=A},b.bufferSubData=function(S){e.bindBuffer(e.ARRAY_BUFFER,b),S?e.bufferSubData(e.ARRAY_BUFFER,0,p,0,S*u):e.bufferSubData(e.ARRAY_BUFFER,0,p)},b}function ROi(e,t,r){for(var a=9,s=new Float32Array(t*a),o=new Array(t),u=0;u<t;u++){var h=u*a*4;o[u]=new Float32Array(s.buffer,h,a)}var f=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,f),e.bufferData(e.ARRAY_BUFFER,s.byteLength,e.DYNAMIC_DRAW);for(var p=0;p<3;p++){var m=r+p;e.enableVertexAttribArray(m),e.vertexAttribPointer(m,3,e.FLOAT,!1,3*12,p*12),e.vertexAttribDivisor(m,1)}return e.bindBuffer(e.ARRAY_BUFFER,null),f.getMatrixView=function(b){return o[b]},f.setData=function(b,_){o[_].set(b,0)},f.bufferSubData=function(){e.bindBuffer(e.ARRAY_BUFFER,f),e.bufferSubData(e.ARRAY_BUFFER,0,s)},f}function IOi(e){var t=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,t);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),e.bindFramebuffer(e.FRAMEBUFFER,null),t.setFramebufferAttachmentSizes=function(a,s){e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,s,0,e.RGBA,e.UNSIGNED_BYTE,null)},t}var oSn=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});function hit(){var e=new oSn(9);return oSn!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function lSn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function NOi(e,t,r){var a=t[0],s=t[1],o=t[2],u=t[3],h=t[4],f=t[5],p=t[6],m=t[7],b=t[8],_=r[0],w=r[1],S=r[2],C=r[3],A=r[4],k=r[5],I=r[6],N=r[7],L=r[8];return e[0]=_*a+w*u+S*p,e[1]=_*s+w*h+S*m,e[2]=_*o+w*f+S*b,e[3]=C*a+A*u+k*p,e[4]=C*s+A*h+k*m,e[5]=C*o+A*f+k*b,e[6]=I*a+N*u+L*p,e[7]=I*s+N*h+L*m,e[8]=I*o+N*f+L*b,e}function Ixe(e,t,r){var a=t[0],s=t[1],o=t[2],u=t[3],h=t[4],f=t[5],p=t[6],m=t[7],b=t[8],_=r[0],w=r[1];return e[0]=a,e[1]=s,e[2]=o,e[3]=u,e[4]=h,e[5]=f,e[6]=_*a+w*u+p,e[7]=_*s+w*h+m,e[8]=_*o+w*f+b,e}function cSn(e,t,r){var a=t[0],s=t[1],o=t[2],u=t[3],h=t[4],f=t[5],p=t[6],m=t[7],b=t[8],_=Math.sin(r),w=Math.cos(r);return e[0]=w*a+_*u,e[1]=w*s+_*h,e[2]=w*o+_*f,e[3]=w*u-_*a,e[4]=w*h-_*s,e[5]=w*f-_*o,e[6]=p,e[7]=m,e[8]=b,e}function bct(e,t,r){var a=r[0],s=r[1];return e[0]=a*t[0],e[1]=a*t[1],e[2]=a*t[2],e[3]=s*t[3],e[4]=s*t[4],e[5]=s*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function OOi(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}var LOi=function(){function e(t,r,a,s){V9(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=r,this.texRows=a,this.texHeight=Math.floor(r/a),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=s(t,r,r),this.scratch=s(t,r,this.texHeight,"scratch")}return Y9(e,[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(r){var a=r.w,s=r.h,o=this.texHeight,u=this.texSize,h=o/s,f=a*h,p=s*h;return f>u&&(h=u/a,f=a*h,p=s*h),{scale:h,texW:f,texH:p}}},{key:"draw",value:function(r,a,s){var o=this;if(this.locked)throw new Error("can't draw, atlas is locked");var u=this.texSize,h=this.texRows,f=this.texHeight,p=this.getScale(a),m=p.scale,b=p.texW,_=p.texH,w=function(N,L){if(s&&L){var P=L.context,M=N.x,F=N.row,U=M,$=f*F;P.save(),P.translate(U,$),P.scale(m,m),s(P,a),P.restore()}},S=[null,null],C=function(){w(o.freePointer,o.canvas),S[0]={x:o.freePointer.x,y:o.freePointer.row*f,w:b,h:_},S[1]={x:o.freePointer.x+b,y:o.freePointer.row*f,w:0,h:_},o.freePointer.x+=b,o.freePointer.x==u&&(o.freePointer.x=0,o.freePointer.row++)},A=function(){var N=o.scratch,L=o.canvas;N.clear(),w({x:0,row:0},N);var P=u-o.freePointer.x,M=b-P,F=f;{var U=o.freePointer.x,$=o.freePointer.row*f,G=P;L.context.drawImage(N,0,0,G,F,U,$,G,F),S[0]={x:U,y:$,w:G,h:_}}{var B=P,Z=(o.freePointer.row+1)*f,z=M;L&&L.context.drawImage(N,B,0,z,F,0,Z,z,F),S[1]={x:0,y:Z,w:z,h:_}}o.freePointer.x=M,o.freePointer.row++},k=function(){o.freePointer.x=0,o.freePointer.row++};if(this.freePointer.x+b<=u)C();else{if(this.freePointer.row>=h-1)return!1;this.freePointer.x===u?(k(),C()):this.enableWrapping?A():(k(),C())}return this.keyToLocation.set(r,S),this.needsBuffer=!0,S}},{key:"getOffsets",value:function(r){return this.keyToLocation.get(r)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(r){if(this.locked)return!1;var a=this.texSize,s=this.texRows,o=this.getScale(r),u=o.texW;return this.freePointer.x+u>a?this.freePointer.row<s-1:!0}},{key:"bufferIfNeeded",value:function(r){this.texture||(this.texture=COi(r,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))}},{key:"dispose",value:function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0}}])}(),DOi=function(){function e(t,r,a,s){V9(this,e),this.r=t,this.texSize=r,this.texRows=a,this.createTextureCanvas=s,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set}return Y9(e,[{key:"getKeys",value:function(){return new Set(this.styleKeyToAtlas.keys())}},{key:"_createAtlas",value:function(){var r=this.r,a=this.texSize,s=this.texRows,o=this.createTextureCanvas;return new LOi(r,a,s,o)}},{key:"_getScratchCanvas",value:function(){if(!this.scratch){var r=this.r,a=this.texSize,s=this.texRows,o=this.createTextureCanvas,u=Math.floor(a/s);this.scratch=o(r,a,u,"scratch")}return this.scratch}},{key:"draw",value:function(r,a,s){var o=this.styleKeyToAtlas.get(r);return o||(o=this.atlases[this.atlases.length-1],(!o||!o.canFit(a))&&(o&&o.lock(),o=this._createAtlas(),this.atlases.push(o)),o.draw(r,a,s),this.styleKeyToAtlas.set(r,o)),o}},{key:"getAtlas",value:function(r){return this.styleKeyToAtlas.get(r)}},{key:"hasAtlas",value:function(r){return this.styleKeyToAtlas.has(r)}},{key:"markKeyForGC",value:function(r){this.markedKeys.add(r)}},{key:"gc",value:function(){var r=this,a=this.markedKeys;if(a.size===0){console.log("nothing to garbage collect");return}var s=[],o=new Map,u=null,h=W2(this.atlases),f;try{var p=function(){var b=f.value,_=b.getKeys(),w=MOi(a,_);if(w.size===0)return s.push(b),_.forEach(function(P){return o.set(P,b)}),1;u||(u=r._createAtlas(),s.push(u));var S=W2(_),C;try{for(S.s();!(C=S.n()).done;){var A=C.value;if(!w.has(A)){var k=b.getOffsets(A),I=S1(k,2),N=I[0],L=I[1];u.canFit({w:N.w+L.w,h:N.h})||(u.lock(),u=r._createAtlas(),s.push(u)),b.canvas&&(r._copyTextureToNewAtlas(A,b,u),o.set(A,u))}}}catch(P){S.e(P)}finally{S.f()}b.dispose()};for(h.s();!(f=h.n()).done;)p()}catch(m){h.e(m)}finally{h.f()}this.atlases=s,this.styleKeyToAtlas=o,this.markedKeys=new Set}},{key:"_copyTextureToNewAtlas",value:function(r,a,s){var o=a.getOffsets(r),u=S1(o,2),h=u[0],f=u[1];if(f.w===0)s.draw(r,h,function(_){_.drawImage(a.canvas,h.x,h.y,h.w,h.h,0,0,h.w,h.h)});else{var p=this._getScratchCanvas();p.clear(),p.context.drawImage(a.canvas,h.x,h.y,h.w,h.h,0,0,h.w,h.h),p.context.drawImage(a.canvas,f.x,f.y,f.w,f.h,h.w,0,f.w,f.h);var m=h.w+f.w,b=h.h;s.draw(r,{w:m,h:b},function(_){_.drawImage(p,0,0,m,b,0,0,m,b)})}}},{key:"getCounts",value:function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}}}])}();function MOi(e,t){return e.intersection?e.intersection(t):new Set($3e(e).filter(function(r){return t.has(r)}))}var POi=function(){function e(t,r){V9(this,e),this.r=t,this.globalOptions=r,this.atlasSize=r.webglTexSize,this.maxAtlasesPerBatch=r.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map}return Y9(e,[{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"addAtlasCollection",value:function(r,a){var s=this.globalOptions,o=s.webglTexSize,u=s.createTextureCanvas,h=a.texRows,f=this._cacheScratchCanvas(u),p=new DOi(this.r,o,h,f);this.collections.set(r,p)}},{key:"addRenderType",value:function(r,a){var s=a.collection;if(!this.collections.has(s))throw new Error("invalid atlas collection name '".concat(s,"'"));var o=this.collections.get(s),u=eo({type:r,atlasCollection:o},a);this.renderTypes.set(r,u)}},{key:"getRenderTypeOpts",value:function(r){return this.renderTypes.get(r)}},{key:"getAtlasCollection",value:function(r){return this.collections.get(r)}},{key:"_cacheScratchCanvas",value:function(r){var a=-1,s=-1,o=null;return function(u,h,f,p){return p?((!o||h!=a||f!=s)&&(a=h,s=f,o=r(u,h,f)),o):r(u,h,f)}}},{key:"_key",value:function(r,a){return"".concat(r,"-").concat(a)}},{key:"invalidate",value:function(r){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.forceRedraw,u=o===void 0?!1:o,h=s.filterEle,f=h===void 0?function(){return!0}:h,p=s.filterType,m=p===void 0?function(){return!0}:p,b=!1,_=!1,w=W2(r),S;try{for(w.s();!(S=w.n()).done;){var C=S.value;if(f(C)){var A=W2(this.renderTypes.values()),k;try{var I=function(){var L=k.value,P=L.type;if(m(P)){var M=a.collections.get(L.collection),F=L.getKey(C),U=Array.isArray(F)?F:[F];if(u)U.forEach(function(Z){return M.markKeyForGC(Z)}),_=!0;else{var $=L.getID?L.getID(C):C.id(),G=a._key(P,$),B=a.typeAndIdToKey.get(G);B!==void 0&&!SOi(U,B)&&(b=!0,a.typeAndIdToKey.delete(G),B.forEach(function(Z){return M.markKeyForGC(Z)}))}}};for(A.s();!(k=A.n()).done;)I()}catch(N){A.e(N)}finally{A.f()}}}}catch(N){w.e(N)}finally{w.f()}return _&&(this.gc(),b=!1),b}},{key:"gc",value:function(){var r=W2(this.collections.values()),a;try{for(r.s();!(a=r.n()).done;){var s=a.value;s.gc()}}catch(o){r.e(o)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,a,s,o){var u=this.renderTypes.get(a),h=this.collections.get(u.collection),f=!1,p=h.draw(o,s,function(_){u.drawClipped?(_.save(),_.beginPath(),_.rect(0,0,s.w,s.h),_.clip(),u.drawElement(_,r,s,!0,!0),_.restore()):u.drawElement(_,r,s,!0,!0),f=!0});if(f){var m=u.getID?u.getID(r):r.id(),b=this._key(a,m);this.typeAndIdToKey.has(b)?this.typeAndIdToKey.get(b).push(o):this.typeAndIdToKey.set(b,[o])}return p}},{key:"getAtlasInfo",value:function(r,a){var s=this,o=this.renderTypes.get(a),u=o.getKey(r),h=Array.isArray(u)?u:[u];return h.map(function(f){var p=o.getBoundingBox(r,f),m=s.getOrCreateAtlas(r,a,p,f),b=m.getOffsets(f),_=S1(b,2),w=_[0],S=_[1];return{atlas:m,tex:w,tex1:w,tex2:S,bb:p}})}},{key:"getDebugInfo",value:function(){var r=[],a=W2(this.collections),s;try{for(a.s();!(s=a.n()).done;){var o=S1(s.value,2),u=o[0],h=o[1],f=h.getCounts(),p=f.keyCount,m=f.atlasCount;r.push({type:u,keyCount:p,atlasCount:m})}}catch(b){a.e(b)}finally{a.f()}return r}}])}(),BOi=function(){function e(t){V9(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return Y9(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(r,a){return a})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(r){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(r):!0}},{key:"getAtlasIndexForBatch",value:function(r){var a=this.batchAtlases.indexOf(r);if(a<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(r),a=this.batchAtlases.length-1}return a}}])}(),FOi=`
  float circleSD(vec2 p, float r) {
    return distance(vec2(0), p) - r; // signed distance
  }
`,$Oi=`
  float rectangleSD(vec2 p, vec2 b) {
    vec2 d = abs(p)-b;
    return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);
  }
`,UOi=`
  float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {
    cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;
    cr.x  = (p.y > 0.0) ? cr.x  : cr.y;
    vec2 q = abs(p) - b + cr.x;
    return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;
  }
`,zOi=`
  float ellipseSD(vec2 p, vec2 ab) {
    p = abs( p ); // symmetry

    // find root with Newton solver
    vec2 q = ab*(p-ab);
    float w = (q.x<q.y)? 1.570796327 : 0.0;
    for( int i=0; i<5; i++ ) {
      vec2 cs = vec2(cos(w),sin(w));
      vec2 u = ab*vec2( cs.x,cs.y);
      vec2 v = ab*vec2(-cs.y,cs.x);
      w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v));
    }
    
    // compute final point and distance
    float d = length(p-ab*vec2(cos(w),sin(w)));
    
    // return signed distance
    return (dot(p/ab,p/ab)>1.0) ? d : -d;
  }
`,Cse={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},Q3e={IGNORE:1,USE_BB:2},dit=0,uSn=1,hSn=2,fit=3,ZH=4,Uwe=5,aie=6,sie=7,GOi=function(){function e(t,r,a){V9(this,e),this.r=t,this.gl=r,this.maxInstances=a.webglBatchSize,this.atlasSize=a.webglTexSize,this.bgColor=a.bgColor,this.debug=a.webglDebug,this.batchDebugInfo=[],a.enableWrapping=!0,a.createTextureCanvas=_Oi,this.atlasManager=new POi(t,a),this.batchManager=new BOi(a),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Cse.SCREEN),this.pickingProgram=this._createShaderProgram(Cse.PICKING),this.vao=this._createVAO()}return Y9(e,[{key:"addAtlasCollection",value:function(r,a){this.atlasManager.addAtlasCollection(r,a)}},{key:"addTextureAtlasRenderType",value:function(r,a){this.atlasManager.addRenderType(r,a)}},{key:"addSimpleShapeRenderType",value:function(r,a){this.simpleShapeOptions.set(r,a)}},{key:"invalidate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.type,o=this.atlasManager;return s?o.invalidate(r,{filterType:function(h){return h===s},forceRedraw:!0}):o.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var a=this.gl,s=`#version 300 es
      precision highp float;

      uniform mat3 uPanZoomMatrix;
      uniform int  uAtlasSize;
      
      // instanced
      in vec2 aPosition; // a vertex from the unit square
      
      in mat3 aTransform; // used to transform verticies, eg into a bounding box
      in int aVertType; // the type of thing we are rendering

      // the z-index that is output when using picking mode
      in vec4 aIndex;
      
      // For textures
      in int aAtlasId; // which shader unit/atlas to use
      in vec4 aTex; // x/y/w/h of texture in atlas

      // for edges
      in vec4 aPointAPointB;
      in vec4 aPointCPointD;
      in vec2 aLineWidth; // also used for node border width

      // simple shapes
      in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]
      in vec4 aColor; // also used for edges
      in vec4 aBorderColor; // aLineWidth is used for border width

      // output values passed to the fragment shader
      out vec2 vTexCoord;
      out vec4 vColor;
      out vec2 vPosition;
      // flat values are not interpolated
      flat out int vAtlasId; 
      flat out int vVertType;
      flat out vec2 vTopRight;
      flat out vec2 vBotLeft;
      flat out vec4 vCornerRadius;
      flat out vec4 vBorderColor;
      flat out vec2 vBorderWidth;
      flat out vec4 vIndex;
      
      void main(void) {
        int vid = gl_VertexID;
        vec2 position = aPosition; // TODO make this a vec3, simplifies some code below

        if(aVertType == `.concat(dit,`) {
          float texX = aTex.x; // texture coordinates
          float texY = aTex.y;
          float texW = aTex.z;
          float texH = aTex.w;

          if(vid == 1 || vid == 2 || vid == 4) {
            texX += texW;
          }
          if(vid == 2 || vid == 4 || vid == 5) {
            texY += texH;
          }

          float d = float(uAtlasSize);
          vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
        }
        else if(aVertType == `).concat(ZH," || aVertType == ").concat(sie,` 
             || aVertType == `).concat(Uwe," || aVertType == ").concat(aie,`) { // simple shapes

          // the bounding box is needed by the fragment shader
          vBotLeft  = (aTransform * vec3(0, 0, 1)).xy; // flat
          vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat
          vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated

          // calculations are done in the fragment shader, just pass these along
          vColor = aColor;
          vCornerRadius = aCornerRadius;
          vBorderColor = aBorderColor;
          vBorderWidth = aLineWidth;

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
        }
        else if(aVertType == `).concat(uSn,`) {
          vec2 source = aPointAPointB.xy;
          vec2 target = aPointAPointB.zw;

          // adjust the geometry so that the line is centered on the edge
          position.y = position.y - 0.5;

          // stretch the unit square into a long skinny rectangle
          vec2 xBasis = target - source;
          vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));
          vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;

          gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);
          vColor = aColor;
        } 
        else if(aVertType == `).concat(hSn,`) {
          vec2 pointA = aPointAPointB.xy;
          vec2 pointB = aPointAPointB.zw;
          vec2 pointC = aPointCPointD.xy;
          vec2 pointD = aPointCPointD.zw;

          // adjust the geometry so that the line is centered on the edge
          position.y = position.y - 0.5;

          vec2 p0, p1, p2, pos;
          if(position.x == 0.0) { // The left side of the unit square
            p0 = pointA;
            p1 = pointB;
            p2 = pointC;
            pos = position;
          } else { // The right side of the unit square, use same approach but flip the geometry upside down
            p0 = pointD;
            p1 = pointC;
            p2 = pointB;
            pos = vec2(0.0, -position.y);
          }

          vec2 p01 = p1 - p0;
          vec2 p12 = p2 - p1;
          vec2 p21 = p1 - p2;

          // Find the normal vector.
          vec2 tangent = normalize(normalize(p12) + normalize(p01));
          vec2 normal = vec2(-tangent.y, tangent.x);

          // Find the vector perpendicular to p0 -> p1.
          vec2 p01Norm = normalize(vec2(-p01.y, p01.x));

          // Determine the bend direction.
          float sigma = sign(dot(p01 + p21, normal));
          float width = aLineWidth[0];

          if(sign(pos.y) == -sigma) {
            // This is an intersecting vertex. Adjust the position so that there's no overlap.
            vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);
            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
          } else {
            // This is a non-intersecting vertex. Treat it like a mitre join.
            vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);
            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);
          }

          vColor = aColor;
        } 
        else if(aVertType == `).concat(fit,` && vid < 3) {
          // massage the first triangle into an edge arrow
          if(vid == 0)
            position = vec2(-0.15, -0.3);
          if(vid == 1)
            position = vec2(  0.0,  0.0);
          if(vid == 2)
            position = vec2( 0.15, -0.3);

          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
          vColor = aColor;
        }
        else {
          gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space
        }

        vAtlasId = aAtlasId;
        vVertType = aVertType;
        vIndex = aIndex;
      }
    `),o=this.batchManager.getIndexArray(),u=`#version 300 es
      precision highp float;

      // declare texture unit for each texture atlas in the batch
      `.concat(o.map(function(p){return"uniform sampler2D uTexture".concat(p,";")}).join(`
	`),`

      uniform vec4 uBGColor;
      uniform float uZoom;

      in vec2 vTexCoord;
      in vec4 vColor;
      in vec2 vPosition; // model coordinates

      flat in int vAtlasId;
      flat in vec4 vIndex;
      flat in int vVertType;
      flat in vec2 vTopRight;
      flat in vec2 vBotLeft;
      flat in vec4 vCornerRadius;
      flat in vec4 vBorderColor;
      flat in vec2 vBorderWidth;

      out vec4 outColor;

      `).concat(FOi,`
      `).concat($Oi,`
      `).concat(UOi,`
      `).concat(zOi,`

      vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha
        return vec4( 
          top.rgb + (bot.rgb * (1.0 - top.a)),
          top.a   + (bot.a   * (1.0 - top.a)) 
        );
      }

      vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance
        // scale to the zoom level so that borders don't look blurry when zoomed in
        // note 1.5 is an aribitrary value chosen because it looks good
        return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); 
      }

      void main(void) {
        if(vVertType == `).concat(dit,`) {
          // look up the texel from the texture unit
          `).concat(o.map(function(p){return"if(vAtlasId == ".concat(p,") outColor = texture(uTexture").concat(p,", vTexCoord);")}).join(`
	else `),`
        } 
        else if(vVertType == `).concat(fit,`) {
          // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';
          outColor = blend(vColor, uBGColor);
          outColor.a = 1.0; // make opaque, masks out line under arrow
        }
        else if(vVertType == `).concat(ZH,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border
          outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done
        }
        else if(vVertType == `).concat(ZH," || vVertType == ").concat(sie,` 
          || vVertType == `).concat(Uwe," || vVertType == ").concat(aie,`) { // use SDF

          float outerBorder = vBorderWidth[0];
          float innerBorder = vBorderWidth[1];
          float borderPadding = outerBorder * 2.0;
          float w = vTopRight.x - vBotLeft.x - borderPadding;
          float h = vTopRight.y - vBotLeft.y - borderPadding;
          vec2 b = vec2(w/2.0, h/2.0); // half width, half height
          vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center

          float d; // signed distance
          if(vVertType == `).concat(ZH,`) {
            d = rectangleSD(p, b);
          } else if(vVertType == `).concat(sie,` && w == h) {
            d = circleSD(p, b.x); // faster than ellipse
          } else if(vVertType == `).concat(sie,`) {
            d = ellipseSD(p, b);
          } else {
            d = roundRectangleSD(p, b, vCornerRadius.wzyx);
          }

          // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling
          // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box
          if(d > 0.0) {
            if(d > outerBorder) {
              discard;
            } else {
              outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);
            }
          } else {
            if(d > innerBorder) {
              vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;
              vec4 innerBorderColor = blend(vBorderColor, vColor);
              outColor = distInterp(innerBorderColor, outerColor, d);
            } 
            else {
              vec4 outerColor;
              if(innerBorder == 0.0 && outerBorder == 0.0) {
                outerColor = vec4(0);
              } else if(innerBorder == 0.0) {
                outerColor = vBorderColor;
              } else {
                outerColor = blend(vBorderColor, vColor);
              }
              outColor = distInterp(vColor, outerColor, d - innerBorder);
            }
          }
        }
        else {
          outColor = vColor;
        }

        `).concat(r.picking?`if(outColor.a == 0.0) discard;
             else outColor = vIndex;`:"",`
      }
    `),h=vOi(a,s,u);h.aPosition=a.getAttribLocation(h,"aPosition"),h.aIndex=a.getAttribLocation(h,"aIndex"),h.aVertType=a.getAttribLocation(h,"aVertType"),h.aTransform=a.getAttribLocation(h,"aTransform"),h.aAtlasId=a.getAttribLocation(h,"aAtlasId"),h.aTex=a.getAttribLocation(h,"aTex"),h.aPointAPointB=a.getAttribLocation(h,"aPointAPointB"),h.aPointCPointD=a.getAttribLocation(h,"aPointCPointD"),h.aLineWidth=a.getAttribLocation(h,"aLineWidth"),h.aColor=a.getAttribLocation(h,"aColor"),h.aCornerRadius=a.getAttribLocation(h,"aCornerRadius"),h.aBorderColor=a.getAttribLocation(h,"aBorderColor"),h.uPanZoomMatrix=a.getUniformLocation(h,"uPanZoomMatrix"),h.uAtlasSize=a.getUniformLocation(h,"uAtlasSize"),h.uBGColor=a.getUniformLocation(h,"uBGColor"),h.uZoom=a.getUniformLocation(h,"uZoom"),h.uTextures=[];for(var f=0;f<this.batchManager.getMaxAtlasesPerBatch();f++)h.uTextures.push(a.getUniformLocation(h,"uTexture".concat(f)));return h}},{key:"_createVAO",value:function(){var r=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=r.length/2;var a=this.maxInstances,s=this.gl,o=this.program,u=s.createVertexArray();return s.bindVertexArray(u),kOi(s,"vec2",o.aPosition,r),this.transformBuffer=ROi(s,a,o.aTransform),this.indexBuffer=bC(s,a,"vec4",o.aIndex),this.vertTypeBuffer=bC(s,a,"int",o.aVertType),this.atlasIdBuffer=bC(s,a,"int",o.aAtlasId),this.texBuffer=bC(s,a,"vec4",o.aTex),this.pointAPointBBuffer=bC(s,a,"vec4",o.aPointAPointB),this.pointCPointDBuffer=bC(s,a,"vec4",o.aPointCPointD),this.lineWidthBuffer=bC(s,a,"vec2",o.aLineWidth),this.colorBuffer=bC(s,a,"vec4",o.aColor),this.cornerRadiusBuffer=bC(s,a,"vec4",o.aCornerRadius),this.borderColorBuffer=bC(s,a,"vec4",o.aBorderColor),s.bindVertexArray(null),u}},{key:"buffers",get:function(){var r=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(a){return mO(a,"Buffer")}).map(function(a){return r[a]})),this._buffers}},{key:"startFrame",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cse.SCREEN;this.panZoomMatrix=r,this.renderTarget=a,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,a){return r.visible()?a&&a.isVisible?a.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,a,s){var o=this.atlasManager,u=this.batchManager,h=o.getRenderTypeOpts(s);if(this._isVisible(r,h)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&h.getTexPickingMode){var f=h.getTexPickingMode(r);if(f===Q3e.IGNORE)return;if(f==Q3e.USE_BB){this.drawPickingRectangle(r,a,s);return}}var p=o.getAtlasInfo(r,s),m=W2(p),b;try{for(m.s();!(b=m.n()).done;){var _=b.value,w=_.atlas,S=_.tex1,C=_.tex2;u.canAddToCurrentBatch(w)||this.endBatch();for(var A=u.getAtlasIndexForBatch(w),k=0,I=[[S,!0],[C,!1]];k<I.length;k++){var N=S1(I[k],2),L=N[0],P=N[1];if(L.w!=0){var M=this.instanceCount;this.vertTypeBuffer.getView(M)[0]=dit;var F=this.indexBuffer.getView(M);QH(a,F);var U=this.atlasIdBuffer.getView(M);U[0]=A;var $=this.texBuffer.getView(M);$[0]=L.x,$[1]=L.y,$[2]=L.w,$[3]=L.h;var G=this.transformBuffer.getMatrixView(M);this.setTransformMatrix(r,G,h,_,P),this.instanceCount++,P||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(B){m.e(B)}finally{m.f()}}}},{key:"setTransformMatrix",value:function(r,a,s,o){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=0;if(s.shapeProps&&s.shapeProps.padding&&(h=r.pstyle(s.shapeProps.padding).pfValue),o){var f=o.bb,p=o.tex1,m=o.tex2,b=p.w/(p.w+m.w);u||(b=1-b);var _=this._getAdjustedBB(f,h,u,b);this._applyTransformMatrix(a,_,s,r)}else{var w=s.getBoundingBox(r),S=this._getAdjustedBB(w,h,!0,1);this._applyTransformMatrix(a,S,s,r)}}},{key:"_applyTransformMatrix",value:function(r,a,s,o){var u,h;lSn(r);var f=s.getRotation?s.getRotation(o):0;if(f!==0){var p=s.getRotationPoint(o),m=p.x,b=p.y;Ixe(r,r,[m,b]),cSn(r,r,f);var _=s.getRotationOffset(o);u=_.x+(a.xOffset||0),h=_.y+(a.yOffset||0)}else u=a.x1,h=a.y1;Ixe(r,r,[u,h]),bct(r,r,[a.w,a.h])}},{key:"_getAdjustedBB",value:function(r,a,s,o){var u=r.x1,h=r.y1,f=r.w,p=r.h,m=r.yOffset;a&&(u-=a,h-=a,f+=2*a,p+=2*a);var b=0,_=f*o;return s&&o<1?f=_:!s&&o<1&&(b=f-_,u+=b,f=_),{x1:u,y1:h,w:f,h:p,xOffset:b,yOffset:m}}},{key:"drawPickingRectangle",value:function(r,a,s){var o=this.atlasManager.getRenderTypeOpts(s),u=this.instanceCount;this.vertTypeBuffer.getView(u)[0]=ZH;var h=this.indexBuffer.getView(u);QH(a,h);var f=this.colorBuffer.getView(u);wB([0,0,0],1,f);var p=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(r,p,o),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,a,s){var o=this.simpleShapeOptions.get(s);if(this._isVisible(r,o)){var u=o.shapeProps,h=this._getVertTypeForShape(r,u.shape);if(h===void 0||o.isSimple&&!o.isSimple(r)){this.drawTexture(r,a,s);return}var f=this.instanceCount;if(this.vertTypeBuffer.getView(f)[0]=h,h===Uwe||h===aie){var p=o.getBoundingBox(r),m=this._getCornerRadius(r,u.radius,p),b=this.cornerRadiusBuffer.getView(f);b[0]=m,b[1]=m,b[2]=m,b[3]=m,h===aie&&(b[0]=0,b[2]=0)}var _=this.indexBuffer.getView(f);QH(a,_);var w=r.pstyle(u.color).value,S=r.pstyle(u.opacity).value,C=this.colorBuffer.getView(f);wB(w,S,C);var A=this.lineWidthBuffer.getView(f);if(A[0]=0,A[1]=0,u.border){var k=r.pstyle("border-width").value;if(k>0){var I=r.pstyle("border-color").value,N=r.pstyle("border-opacity").value,L=this.borderColorBuffer.getView(f);wB(I,N,L);var P=r.pstyle("border-position").value;if(P==="inside")A[0]=0,A[1]=-k;else if(P==="outside")A[0]=k,A[1]=0;else{var M=k/2;A[0]=M,A[1]=-M}}}var F=this.transformBuffer.getMatrixView(f);this.setTransformMatrix(r,F,o),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,a){var s=r.pstyle(a).value;switch(s){case"rectangle":return ZH;case"ellipse":return sie;case"roundrectangle":case"round-rectangle":return Uwe;case"bottom-round-rectangle":return aie;default:return}}},{key:"_getCornerRadius",value:function(r,a,s){var o=s.w,u=s.h;if(r.pstyle(a).value==="auto")return o9(o,u);var h=r.pstyle(a).pfValue,f=o/2,p=u/2;return Math.min(h,p,f)}},{key:"drawEdgeArrow",value:function(r,a,s){if(r.visible()){var o=r._private.rscratch,u,h,f;if(s==="source"?(u=o.arrowStartX,h=o.arrowStartY,f=o.srcArrowAngle):(u=o.arrowEndX,h=o.arrowEndY,f=o.tgtArrowAngle),!(isNaN(u)||u==null||isNaN(h)||h==null||isNaN(f)||f==null)){var p=r.pstyle(s+"-arrow-shape").value;if(p!=="none"){var m=r.pstyle(s+"-arrow-color").value,b=r.pstyle("opacity").value,_=r.pstyle("line-opacity").value,w=b*_,S=r.pstyle("width").pfValue,C=r.pstyle("arrow-scale").value,A=this.r.getArrowWidth(S,C),k=this.instanceCount,I=this.transformBuffer.getMatrixView(k);lSn(I),Ixe(I,I,[u,h]),bct(I,I,[A,A]),cSn(I,I,f),this.vertTypeBuffer.getView(k)[0]=fit;var N=this.indexBuffer.getView(k);QH(a,N);var L=this.colorBuffer.getView(k);wB(m,w,L),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,a){if(r.visible()){var s=this._getEdgePoints(r);if(s){var o=r.pstyle("opacity").value,u=r.pstyle("line-opacity").value,h=r.pstyle("width").pfValue,f=r.pstyle("line-color").value,p=o*u;if(s.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),s.length==4){var m=this.instanceCount;this.vertTypeBuffer.getView(m)[0]=uSn;var b=this.indexBuffer.getView(m);QH(a,b);var _=this.colorBuffer.getView(m);wB(f,p,_);var w=this.lineWidthBuffer.getView(m);w[0]=h;var S=this.pointAPointBBuffer.getView(m);S[0]=s[0],S[1]=s[1],S[2]=s[2],S[3]=s[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var C=0;C<s.length-2;C+=2){var A=this.instanceCount;this.vertTypeBuffer.getView(A)[0]=hSn;var k=this.indexBuffer.getView(A);QH(a,k);var I=this.colorBuffer.getView(A);wB(f,p,I);var N=this.lineWidthBuffer.getView(A);N[0]=h;var L=s[C-2],P=s[C-1],M=s[C],F=s[C+1],U=s[C+2],$=s[C+3],G=s[C+4],B=s[C+5];C==0&&(L=2*M-U+.001,P=2*F-$+.001),C==s.length-4&&(G=2*U-M+.001,B=2*$-F+.001);var Z=this.pointAPointBBuffer.getView(A);Z[0]=L,Z[1]=P,Z[2]=M,Z[3]=F;var z=this.pointCPointDBuffer.getView(A);z[0]=U,z[1]=$,z[2]=G,z[3]=B,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var a=r._private.rscratch;return!(a.badLine||a.allpts==null||isNaN(a.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var a=r._private.rscratch;if(this._isValidEdge(r)){var s=a.allpts;if(s.length==4)return s;var o=this._getNumSegments(r);return this._getCurveSegmentPoints(s,o)}}},{key:"_getNumSegments",value:function(r){var a=15;return Math.min(Math.max(a,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,a){if(r.length==4)return r;for(var s=Array((a+1)*2),o=0;o<=a;o++)if(o==0)s[0]=r[0],s[1]=r[1];else if(o==a)s[o*2]=r[r.length-2],s[o*2+1]=r[r.length-1];else{var u=o/a;this._setCurvePoint(r,u,s,o*2)}return s}},{key:"_setCurvePoint",value:function(r,a,s,o){if(r.length<=2)s[o]=r[0],s[o+1]=r[1];else{for(var u=Array(r.length-2),h=0;h<u.length;h+=2){var f=(1-a)*r[h]+a*r[h+2],p=(1-a)*r[h+1]+a*r[h+3];u[h]=f,u[h+1]=p}return this._setCurvePoint(u,a,s,o)}}},{key:"endBatch",value:function(){var r=this.gl,a=this.vao,s=this.vertexCount,o=this.instanceCount;if(o!==0){var u=this.renderTarget.picking?this.pickingProgram:this.program;r.useProgram(u),r.bindVertexArray(a);var h=W2(this.buffers),f;try{for(h.s();!(f=h.n()).done;){var p=f.value;p.bufferSubData(o)}}catch(S){h.e(S)}finally{h.f()}for(var m=this.batchManager.getAtlases(),b=0;b<m.length;b++)m[b].bufferIfNeeded(r);for(var _=0;_<m.length;_++)r.activeTexture(r.TEXTURE0+_),r.bindTexture(r.TEXTURE_2D,m[_].texture),r.uniform1i(u.uTextures[_],_);r.uniform1f(u.uZoom,wOi(this.r)),r.uniformMatrix3fv(u.uPanZoomMatrix,!1,this.panZoomMatrix),r.uniform1i(u.uAtlasSize,this.batchManager.getAtlasSize());var w=wB(this.bgColor,1);r.uniform4fv(u.uBGColor,w),r.drawArraysInstanced(r.TRIANGLES,0,s,o),r.bindVertexArray(null),r.bindTexture(r.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:o,atlasCount:m.length}),this.startBatch()}}},{key:"getDebugInfo",value:function(){var r=this.atlasManager.getDebugInfo(),a=r.reduce(function(u,h){return u+h.atlasCount},0),s=this.batchDebugInfo,o=s.reduce(function(u,h){return u+h.count},0);return{atlasInfo:r,totalAtlases:a,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:s.length,batchInfo:s,totalInstances:o}}}])}(),PVn={};PVn.initWebgl=function(e,t){var r=this,a=r.data.contexts[r.WEBGL];e.bgColor=qOi(r),e.webglTexSize=Math.min(e.webglTexSize,a.getParameter(a.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,a.getParameter(a.MAX_TEXTURE_IMAGE_UNITS)),r.webglDebug=e.webglDebug,r.webglDebugShowAtlases=e.webglDebugShowAtlases,r.pickingFrameBuffer=IOi(a),r.pickingFrameBuffer.needsDraw=!0,r.drawing=new GOi(r,a,e);var s=function(b){return function(_){return r.getTextAngle(_,b)}},o=function(b){return function(_){var w=_.pstyle(b);return w&&w.value}},u=function(b){return function(_){return _.pstyle("".concat(b,"-opacity")).value>0}},h=function(b){var _=b.pstyle("text-events").strValue==="yes";return _?Q3e.USE_BB:Q3e.IGNORE},f=function(b){var _=b.position(),w=_.x,S=_.y,C=b.outerWidth(),A=b.outerHeight();return{w:C,h:A,x1:w-C/2,y1:S-A/2}};r.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:f,isSimple:xOi,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:f,isVisible:u("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:f,isVisible:u("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getLabelKey,null),getBoundingBox:git(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:s(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:o("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getSourceLabelKey,"source"),getBoundingBox:git(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:s("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:o("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getTargetLabelKey,"target"),getBoundingBox:git(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:s("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:o("target-label")});var p=Cce(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(m,b){var _=!1;b&&b.length>0&&(_|=r.drawing.invalidate(b)),_&&p()}),HOi(r)};function qOi(e){var t=e.cy.container(),r=t&&t.style&&t.style.backgroundColor||"white";return uHn(r)}function BVn(e,t){var r=e._private.rscratch;return F2(r,"labelWrapCachedLines",t)||[]}var pit=function(t,r){return function(a){var s=t(a),o=BVn(a,r);return o.length>1?o.map(function(u,h){return"".concat(s,"_").concat(h)}):s}},git=function(t,r){return function(a,s){var o=t(a);if(typeof s=="string"){var u=s.indexOf("_");if(u>0){var h=Number(s.substring(u+1)),f=BVn(a,r),p=o.h/f.length,m=p*h,b=o.y1+m;return{x1:o.x1,w:o.w,y1:b,h:p,yOffset:m}}}return o}};function HOi(e){{var t=e.render;e.render=function(o){o=o||{};var u=e.cy;e.webgl&&(u.zoom()>RVn?(VOi(e),t.call(e,o)):(YOi(e),$Vn(e,o,Cse.SCREEN)))}}{var r=e.matchCanvasSize;e.matchCanvasSize=function(o){r.call(e,o),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(o,u,h,f){return ZOi(e,o,u)};{var a=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){a.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var s=e.notify;e.notify=function(o,u){s.call(e,o,u),o==="viewport"||o==="bounds"?e.pickingFrameBuffer.needsDraw=!0:o==="background"&&e.drawing.invalidate(u,{type:"node-body"})}}}function VOi(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function YOi(e){var t=function(a){a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.canvasWidth,e.canvasHeight),a.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function jOi(e){var t=e.canvasWidth,r=e.canvasHeight,a=Mgt(e),s=a.pan,o=a.zoom,u=hit();Ixe(u,u,[s.x,s.y]),bct(u,u,[o,o]);var h=hit();OOi(h,t,r);var f=hit();return NOi(f,h,u),f}function FVn(e,t){var r=e.canvasWidth,a=e.canvasHeight,s=Mgt(e),o=s.pan,u=s.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r,a),t.translate(o.x,o.y),t.scale(u,u)}function WOi(e,t){e.drawSelectionRectangle(t,function(r){return FVn(e,r)})}function KOi(e){var t=e.data.contexts[e.NODE];t.save(),FVn(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function XOi(e){var t=function(s,o,u){for(var h=s.atlasManager.getAtlasCollection(o),f=e.data.contexts[e.NODE],p=h.atlases,m=0;m<p.length;m++){var b=p[m],_=b.canvas;if(_){var w=_.width,S=_.height,C=w*m,A=_.height*u,k=.4;f.save(),f.scale(k,k),f.drawImage(_,C,A),f.strokeStyle="black",f.rect(C,A,w,S),f.stroke(),f.restore()}}},r=0;t(e.drawing,"node",r++),t(e.drawing,"label",r++)}function QOi(e,t,r,a,s){var o,u,h,f,p=Mgt(e),m=p.pan,b=p.zoom;{var _=EOi(e,m,b,t,r),w=S1(_,2),S=w[0],C=w[1],A=6;o=S-A/2,u=C-A/2,h=A,f=A}if(h===0||f===0)return[];var k=e.data.contexts[e.WEBGL];k.bindFramebuffer(k.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(k.viewport(0,0,k.canvas.width,k.canvas.height),$Vn(e,null,Cse.PICKING),e.pickingFrameBuffer.needsDraw=!1);var I=h*f,N=new Uint8Array(I*4);k.readPixels(o,u,h,f,k.RGBA,k.UNSIGNED_BYTE,N),k.bindFramebuffer(k.FRAMEBUFFER,null);for(var L=new Set,P=0;P<I;P++){var M=N.slice(P*4,P*4+4),F=TOi(M)-1;F>=0&&L.add(F)}return L}function ZOi(e,t,r){var a=QOi(e,t,r),s=e.getCachedZSortedEles(),o,u,h=W2(a),f;try{for(h.s();!(f=h.n()).done;){var p=f.value,m=s[p];if(!o&&m.isNode()&&(o=m),!u&&m.isEdge()&&(u=m),o&&u)break}}catch(b){h.e(b)}finally{h.f()}return[o,u].filter(Boolean)}function mit(e,t,r){var a=e.drawing;t+=1,r.isNode()?(a.drawNode(r,t,"node-underlay"),a.drawNode(r,t,"node-body"),a.drawTexture(r,t,"label"),a.drawNode(r,t,"node-overlay")):(a.drawEdgeLine(r,t),a.drawEdgeArrow(r,t,"source"),a.drawEdgeArrow(r,t,"target"),a.drawTexture(r,t,"label"),a.drawTexture(r,t,"edge-source-label"),a.drawTexture(r,t,"edge-target-label"))}function $Vn(e,t,r){var a;e.webglDebug&&(a=performance.now());var s=e.drawing,o=0;if(r.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&WOi(e,t),e.data.canvasNeedsRedraw[e.NODE]||r.picking){var u=e.data.contexts[e.WEBGL];r.screen?(u.clearColor(0,0,0,0),u.enable(u.BLEND),u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA)):u.disable(u.BLEND),u.clear(u.COLOR_BUFFER_BIT|u.DEPTH_BUFFER_BIT),u.viewport(0,0,u.canvas.width,u.canvas.height);var h=jOi(e),f=e.getCachedZSortedEles();if(o=f.length,s.startFrame(h,r),r.screen){for(var p=0;p<f.nondrag.length;p++)mit(e,p,f.nondrag[p]);for(var m=0;m<f.drag.length;m++)mit(e,m,f.drag[m])}else if(r.picking)for(var b=0;b<f.length;b++)mit(e,b,f[b]);s.endFrame(),r.screen&&e.webglDebugShowAtlases&&(KOi(e),XOi(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var _=performance.now(),w=!1,S=Math.ceil(_-a),C=s.getDebugInfo(),A=["".concat(o," elements"),"".concat(C.totalInstances," instances"),"".concat(C.batchCount," batches"),"".concat(C.totalAtlases," atlases"),"".concat(C.wrappedCount," wrapped textures"),"".concat(C.simpleCount," simple shapes")].join(", ");if(w)console.log("WebGL (".concat(r.name,") - time ").concat(S,"ms, ").concat(A));else{console.log("WebGL (".concat(r.name,") - frame time ").concat(S,"ms")),console.log("Totals:"),console.log("  ".concat(A)),console.log("Texture Atlases Used:");var k=C.atlasInfo,I=W2(k),N;try{for(I.s();!(N=I.n()).done;){var L=N.value;console.log("  ".concat(L.type,": ").concat(L.keyCount," keys, ").concat(L.atlasCount," atlases"))}}catch(P){I.e(P)}finally{I.f()}console.log("")}}e.data.gc&&(console.log("Garbage Collect!"),e.data.gc=!1,s.gc())}var K9={};K9.drawPolygonPath=function(e,t,r,a,s,o){var u=a/2,h=s/2;e.beginPath&&e.beginPath(),e.moveTo(t+u*o[0],r+h*o[1]);for(var f=1;f<o.length/2;f++)e.lineTo(t+u*o[f*2],r+h*o[f*2+1]);e.closePath()};K9.drawRoundPolygonPath=function(e,t,r,a,s,o,u){u.forEach(function(h){return _Vn(e,h)}),e.closePath()};K9.drawRoundRectanglePath=function(e,t,r,a,s,o){var u=a/2,h=s/2,f=o==="auto"?o9(a,s):Math.min(o,h,u);e.beginPath&&e.beginPath(),e.moveTo(t,r-h),e.arcTo(t+u,r-h,t+u,r,f),e.arcTo(t+u,r+h,t,r+h,f),e.arcTo(t-u,r+h,t-u,r,f),e.arcTo(t-u,r-h,t,r-h,f),e.lineTo(t,r-h),e.closePath()};K9.drawBottomRoundRectanglePath=function(e,t,r,a,s,o){var u=a/2,h=s/2,f=o==="auto"?o9(a,s):o;e.beginPath&&e.beginPath(),e.moveTo(t,r-h),e.lineTo(t+u,r-h),e.lineTo(t+u,r),e.arcTo(t+u,r+h,t,r+h,f),e.arcTo(t-u,r+h,t-u,r,f),e.lineTo(t-u,r-h),e.lineTo(t,r-h),e.closePath()};K9.drawCutRectanglePath=function(e,t,r,a,s,o,u){var h=a/2,f=s/2,p=u==="auto"?wgt():u;e.beginPath&&e.beginPath(),e.moveTo(t-h+p,r-f),e.lineTo(t+h-p,r-f),e.lineTo(t+h,r-f+p),e.lineTo(t+h,r+f-p),e.lineTo(t+h-p,r+f),e.lineTo(t-h+p,r+f),e.lineTo(t-h,r+f-p),e.lineTo(t-h,r-f+p),e.closePath()};K9.drawBarrelPath=function(e,t,r,a,s){var o=a/2,u=s/2,h=t-o,f=t+o,p=r-u,m=r+u,b=rct(a,s),_=b.widthOffset,w=b.heightOffset,S=b.ctrlPtOffsetPct*_;e.beginPath&&e.beginPath(),e.moveTo(h,p+w),e.lineTo(h,m-w),e.quadraticCurveTo(h+S,m,h+_,m),e.lineTo(f-_,m),e.quadraticCurveTo(f-S,m,f,m-w),e.lineTo(f,p+w),e.quadraticCurveTo(f-S,p,f-_,p),e.lineTo(h+_,p),e.quadraticCurveTo(h+S,p,h,p+w),e.closePath()};var dSn=Math.sin(0),fSn=Math.cos(0),yct={},vct={},UVn=Math.PI/40;for(var JH=0*Math.PI;JH<2*Math.PI;JH+=UVn)yct[JH]=Math.sin(JH),vct[JH]=Math.cos(JH);K9.drawEllipsePath=function(e,t,r,a,s){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,r,a/2,s/2,0,0,2*Math.PI);else for(var o,u,h=a/2,f=s/2,p=0*Math.PI;p<2*Math.PI;p+=UVn)o=t-h*yct[p]*dSn+h*vct[p]*fSn,u=r+f*vct[p]*dSn+f*yct[p]*fSn,p===0?e.moveTo(o,u):e.lineTo(o,u);e.closePath()};var Oce={};Oce.createBuffer=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,[r,r.getContext("2d")]};Oce.bufferCanvasImage=function(e){var t=this.cy,r=t.mutableElements(),a=r.boundingBox(),s=this.findContainerClientCoords(),o=e.full?Math.ceil(a.w):s[2],u=e.full?Math.ceil(a.h):s[3],h=aa(e.maxWidth)||aa(e.maxHeight),f=this.getPixelRatio(),p=1;if(e.scale!==void 0)o*=e.scale,u*=e.scale,p=e.scale;else if(h){var m=1/0,b=1/0;aa(e.maxWidth)&&(m=p*e.maxWidth/o),aa(e.maxHeight)&&(b=p*e.maxHeight/u),p=Math.min(m,b),o*=p,u*=p}h||(o*=f,u*=f,p*=f);var _=document.createElement("canvas");_.width=o,_.height=u,_.style.width=o+"px",_.style.height=u+"px";var w=_.getContext("2d");if(o>0&&u>0){w.clearRect(0,0,o,u),w.globalCompositeOperation="source-over";var S=this.getCachedZSortedEles();if(e.full)w.translate(-a.x1*p,-a.y1*p),w.scale(p,p),this.drawElements(w,S),w.scale(1/p,1/p),w.translate(a.x1*p,a.y1*p);else{var C=t.pan(),A={x:C.x*p,y:C.y*p};p*=t.zoom(),w.translate(A.x,A.y),w.scale(p,p),this.drawElements(w,S),w.scale(1/p,1/p),w.translate(-A.x,-A.y)}e.bg&&(w.globalCompositeOperation="destination-over",w.fillStyle=e.bg,w.rect(0,0,o,u),w.fill())}return _};function JOi(e,t){for(var r=atob(e),a=new ArrayBuffer(r.length),s=new Uint8Array(a),o=0;o<r.length;o++)s[o]=r.charCodeAt(o);return new Blob([a],{type:t})}function pSn(e){var t=e.indexOf(",");return e.substr(t+1)}function zVn(e,t,r){var a=function(){return t.toDataURL(r,e.quality)};switch(e.output){case"blob-promise":return new KW(function(s,o){try{t.toBlob(function(u){u!=null?s(u):o(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,e.quality)}catch(u){o(u)}});case"blob":return JOi(pSn(a()),r);case"base64":return pSn(a());case"base64uri":default:return a()}}Oce.png=function(e){return zVn(e,this.bufferCanvasImage(e),"image/png")};Oce.jpg=function(e){return zVn(e,this.bufferCanvasImage(e),"image/jpeg")};var GVn={};GVn.nodeShapeImpl=function(e,t,r,a,s,o,u,h){switch(e){case"ellipse":return this.drawEllipsePath(t,r,a,s,o);case"polygon":return this.drawPolygonPath(t,r,a,s,o,u);case"round-polygon":return this.drawRoundPolygonPath(t,r,a,s,o,u,h);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,r,a,s,o,h);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,r,a,s,o,u,h);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,r,a,s,o,h);case"barrel":return this.drawBarrelPath(t,r,a,s,o)}};var e9i=qVn,Vl=qVn.prototype;Vl.CANVAS_LAYERS=3;Vl.SELECT_BOX=0;Vl.DRAG=1;Vl.NODE=2;Vl.WEBGL=3;Vl.CANVAS_TYPES=["2d","2d","2d","webgl2"];Vl.BUFFER_COUNT=3;Vl.TEXTURE_BUFFER=0;Vl.MOTIONBLUR_BUFFER_NODE=1;Vl.MOTIONBLUR_BUFFER_DRAG=2;function qVn(e){var t=this,r=t.cy.window(),a=r.document;e.webgl&&(Vl.CANVAS_LAYERS=t.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),t.data={canvases:new Array(Vl.CANVAS_LAYERS),contexts:new Array(Vl.CANVAS_LAYERS),canvasNeedsRedraw:new Array(Vl.CANVAS_LAYERS),bufferCanvases:new Array(Vl.BUFFER_COUNT),bufferContexts:new Array(Vl.CANVAS_LAYERS)};var s="-webkit-tap-highlight-color",o="rgba(0,0,0,0)";t.data.canvasContainer=a.createElement("div");var u=t.data.canvasContainer.style;t.data.canvasContainer.style[s]=o,u.position="relative",u.zIndex="0",u.overflow="hidden";var h=e.cy.container();h.appendChild(t.data.canvasContainer),h.style[s]=o;var f={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};W6i()&&(f["-ms-touch-action"]="none",f["touch-action"]="none");for(var p=0;p<Vl.CANVAS_LAYERS;p++){var m=t.data.canvases[p]=a.createElement("canvas"),b=Vl.CANVAS_TYPES[p];t.data.contexts[p]=m.getContext(b),t.data.contexts[p]||jd("Could not create canvas of type "+b),Object.keys(f).forEach(function(ye){m.style[ye]=f[ye]}),m.style.position="absolute",m.setAttribute("data-id","layer"+p),m.style.zIndex=String(Vl.CANVAS_LAYERS-p),t.data.canvasContainer.appendChild(m),t.data.canvasNeedsRedraw[p]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[Vl.NODE].setAttribute("data-id","layer"+Vl.NODE+"-node"),t.data.canvases[Vl.SELECT_BOX].setAttribute("data-id","layer"+Vl.SELECT_BOX+"-selectbox"),t.data.canvases[Vl.DRAG].setAttribute("data-id","layer"+Vl.DRAG+"-drag"),t.data.canvases[Vl.WEBGL]&&t.data.canvases[Vl.WEBGL].setAttribute("data-id","layer"+Vl.WEBGL+"-webgl");for(var p=0;p<Vl.BUFFER_COUNT;p++)t.data.bufferCanvases[p]=a.createElement("canvas"),t.data.bufferContexts[p]=t.data.bufferCanvases[p].getContext("2d"),t.data.bufferCanvases[p].style.position="absolute",t.data.bufferCanvases[p].setAttribute("data-id","buffer"+p),t.data.bufferCanvases[p].style.zIndex=String(-p-1),t.data.bufferCanvases[p].style.visibility="hidden";t.pathsEnabled=!0;var _=uv(),w=function(Ee){return{x:(Ee.x1+Ee.x2)/2,y:(Ee.y1+Ee.y2)/2}},S=function(Ee){return{x:-Ee.w/2,y:-Ee.h/2}},C=function(Ee){var he=Ee[0]._private,we=he.oldBackgroundTimestamp===he.backgroundTimestamp;return!we},A=function(Ee){return Ee[0]._private.nodeKey},k=function(Ee){return Ee[0]._private.labelStyleKey},I=function(Ee){return Ee[0]._private.sourceLabelStyleKey},N=function(Ee){return Ee[0]._private.targetLabelStyleKey},L=function(Ee,he,we,Ce,Ie){return t.drawElement(Ee,he,we,!1,!1,Ie)},P=function(Ee,he,we,Ce,Ie){return t.drawElementText(Ee,he,we,Ce,"main",Ie)},M=function(Ee,he,we,Ce,Ie){return t.drawElementText(Ee,he,we,Ce,"source",Ie)},F=function(Ee,he,we,Ce,Ie){return t.drawElementText(Ee,he,we,Ce,"target",Ie)},U=function(Ee){return Ee.boundingBox(),Ee[0]._private.bodyBounds},$=function(Ee){return Ee.boundingBox(),Ee[0]._private.labelBounds.main||_},G=function(Ee){return Ee.boundingBox(),Ee[0]._private.labelBounds.source||_},B=function(Ee){return Ee.boundingBox(),Ee[0]._private.labelBounds.target||_},Z=function(Ee,he){return he},z=function(Ee){return w(U(Ee))},Y=function(Ee,he,we){var Ce=Ee?Ee+"-":"";return{x:he.x+we.pstyle(Ce+"text-margin-x").pfValue,y:he.y+we.pstyle(Ce+"text-margin-y").pfValue}},W=function(Ee,he,we){var Ce=Ee[0]._private.rscratch;return{x:Ce[he],y:Ce[we]}},Q=function(Ee){return Y("",W(Ee,"labelX","labelY"),Ee)},V=function(Ee){return Y("source",W(Ee,"sourceLabelX","sourceLabelY"),Ee)},j=function(Ee){return Y("target",W(Ee,"targetLabelX","targetLabelY"),Ee)},ee=function(Ee){return S(U(Ee))},te=function(Ee){return S(G(Ee))},ne=function(Ee){return S(B(Ee))},se=function(Ee){var he=$(Ee),we=S($(Ee));if(Ee.isNode()){switch(Ee.pstyle("text-halign").value){case"left":we.x=-he.w-(he.leftPad||0);break;case"right":we.x=-(he.rightPad||0);break}switch(Ee.pstyle("text-valign").value){case"top":we.y=-he.h-(he.topPad||0);break;case"bottom":we.y=-(he.botPad||0);break}}return we},ie=t.data.eleTxrCache=new Wie(t,{getKey:A,doesEleInvalidateKey:C,drawElement:L,getBoundingBox:U,getRotationPoint:z,getRotationOffset:ee,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),ge=t.data.lblTxrCache=new Wie(t,{getKey:k,drawElement:P,getBoundingBox:$,getRotationPoint:Q,getRotationOffset:se,isVisible:Z}),ce=t.data.slbTxrCache=new Wie(t,{getKey:I,drawElement:M,getBoundingBox:G,getRotationPoint:V,getRotationOffset:te,isVisible:Z}),be=t.data.tlbTxrCache=new Wie(t,{getKey:N,drawElement:F,getBoundingBox:B,getRotationPoint:j,getRotationOffset:ne,isVisible:Z}),ve=t.data.lyrTxrCache=new IVn(t);t.onUpdateEleCalcs(function(Ee,he){ie.invalidateElements(he),ge.invalidateElements(he),ce.invalidateElements(he),be.invalidateElements(he),ve.invalidateElements(he);for(var we=0;we<he.length;we++){var Ce=he[we]._private;Ce.oldBackgroundTimestamp=Ce.backgroundTimestamp}});var De=function(Ee){for(var he=0;he<Ee.length;he++)ve.enqueueElementRefinement(Ee[he].ele)};ie.onDequeue(De),ge.onDequeue(De),ce.onDequeue(De),be.onDequeue(De),e.webgl&&t.initWebgl(e,{getStyleKey:A,getLabelKey:k,getSourceLabelKey:I,getTargetLabelKey:N,drawElement:L,drawLabel:P,drawSourceLabel:M,drawTargetLabel:F,getElementBox:U,getLabelBox:$,getSourceLabelBox:G,getTargetLabelBox:B,getElementRotationPoint:z,getElementRotationOffset:ee,getLabelRotationPoint:Q,getSourceLabelRotationPoint:V,getTargetLabelRotationPoint:j,getLabelRotationOffset:se,getSourceLabelRotationOffset:te,getTargetLabelRotationOffset:ne})}Vl.redrawHint=function(e,t){var r=this;switch(e){case"eles":r.data.canvasNeedsRedraw[Vl.NODE]=t;break;case"drag":r.data.canvasNeedsRedraw[Vl.DRAG]=t;break;case"select":r.data.canvasNeedsRedraw[Vl.SELECT_BOX]=t;break;case"gc":r.data.gc=!0;break}};var t9i=typeof Path2D<"u";Vl.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e};Vl.usePaths=function(){return t9i&&this.pathsEnabled};Vl.setImgSmoothing=function(e,t){e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)};Vl.getImgSmoothing=function(e){return e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled};Vl.makeOffscreenCanvas=function(e,t){var r;if((typeof OffscreenCanvas>"u"?"undefined":Dp(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(e,t);else{var a=this.cy.window(),s=a.document;r=s.createElement("canvas"),r.width=e,r.height=t}return r};[NVn,FA,TR,Dgt,$$,W9,_v,PVn,K9,Oce,GVn].forEach(function(e){eo(Vl,e)});var n9i=[{name:"null",impl:bVn},{name:"base",impl:AVn},{name:"canvas",impl:e9i}],r9i=[{type:"layout",extensions:kNi},{type:"renderer",extensions:n9i}],HVn={},VVn={};function YVn(e,t,r){var a=r,s=function(U){Uu("Can not register `"+t+"` for `"+e+"` since `"+U+"` already exists in the prototype and can not be overridden")};if(e==="core"){if(Koe.prototype[t])return s(t);Koe.prototype[t]=r}else if(e==="collection"){if(Cm.prototype[t])return s(t);Cm.prototype[t]=r}else if(e==="layout"){for(var o=function(U){this.options=U,r.call(this,U),Vc(this._private)||(this._private={}),this._private.cy=U.cy,this._private.listeners=[],this.createEmitter()},u=o.prototype=Object.create(r.prototype),h=[],f=0;f<h.length;f++){var p=h[f];u[p]=u[p]||function(){return this}}u.start&&!u.run?u.run=function(){return this.start(),this}:!u.start&&u.run&&(u.start=function(){return this.run(),this});var m=r.prototype.stop;u.stop=function(){var F=this.options;if(F&&F.animate){var U=this.animations;if(U)for(var $=0;$<U.length;$++)U[$].stop()}return m?m.call(this):this.emit("layoutstop"),this},u.destroy||(u.destroy=function(){return this}),u.cy=function(){return this._private.cy};var b=function(U){return U._private.cy},_={addEventFields:function(U,$){$.layout=U,$.cy=b(U),$.target=U},bubble:function(){return!0},parent:function(U){return b(U)}};eo(u,{createEmitter:function(){return this._private.emitter=new hke(_,this),this},emitter:function(){return this._private.emitter},on:function(U,$){return this.emitter().on(U,$),this},one:function(U,$){return this.emitter().one(U,$),this},once:function(U,$){return this.emitter().one(U,$),this},removeListener:function(U,$){return this.emitter().removeListener(U,$),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(U,$){return this.emitter().emit(U,$),this}}),Fu.eventAliasesOn(u),a=o}else if(e==="renderer"&&t!=="null"&&t!=="base"){var w=jVn("renderer","base"),S=w.prototype,C=r,A=r.prototype,k=function(){w.apply(this,arguments),C.apply(this,arguments)},I=k.prototype;for(var N in S){var L=S[N],P=A[N]!=null;if(P)return s(N);I[N]=L}for(var M in A)I[M]=A[M];S.clientFunctions.forEach(function(F){I[F]=I[F]||function(){jd("Renderer does not implement `renderer."+F+"()` on its prototype")}}),a=k}else if(e==="__proto__"||e==="constructor"||e==="prototype")return jd(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return hHn({map:HVn,keys:[e,t],value:a})}function jVn(e,t){return dHn({map:HVn,keys:[e,t]})}function i9i(e,t,r,a,s){return hHn({map:VVn,keys:[e,t,r,a],value:s})}function a9i(e,t,r,a){return dHn({map:VVn,keys:[e,t,r,a]})}var _ct=function(){if(arguments.length===2)return jVn.apply(null,arguments);if(arguments.length===3)return YVn.apply(null,arguments);if(arguments.length===4)return a9i.apply(null,arguments);if(arguments.length===5)return i9i.apply(null,arguments);jd("Invalid extension access syntax")};Koe.prototype.extension=_ct;r9i.forEach(function(e){e.extensions.forEach(function(t){YVn(e.type,t.name,t.impl)})});var Z3e=function(){if(!(this instanceof Z3e))return new Z3e;this.length=0},JF=Z3e.prototype;JF.instanceString=function(){return"stylesheet"};JF.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this};JF.css=function(e,t){var r=this.length-1;if(Ns(e))this[r].properties.push({name:e,value:t});else if(Vc(e))for(var a=e,s=Object.keys(a),o=0;o<s.length;o++){var u=s[o],h=a[u];if(h!=null){var f=kg.properties[u]||kg.properties[tke(u)];if(f!=null){var p=f.name,m=h;this[r].properties.push({name:p,value:m})}}}return this};JF.style=JF.css;JF.generateStyle=function(e){var t=new kg(e);return this.appendToStyle(t)};JF.appendToStyle=function(e){for(var t=0;t<this.length;t++){var r=this[t],a=r.selector,s=r.properties;e.selector(a);for(var o=0;o<s.length;o++){var u=s[o];e.css(u.name,u.value)}}return e};var s9i="3.33.1",CS=function(t){if(t===void 0&&(t={}),Vc(t))return new Koe(t);if(Ns(t))return _ct.apply(_ct,arguments)};CS.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(CS),e.apply(null,t),this};CS.warnings=function(e){return vHn(e)};CS.version=s9i;CS.stylesheet=CS.Stylesheet=Z3e;var WVn={exports:{}},bit={exports:{}},yit={exports:{}},gSn;function o9i(){return gSn||(gSn=1,function(e,t){(function(a,s){e.exports=s()})(ml,function(){return function(r){var a={};function s(o){if(a[o])return a[o].exports;var u=a[o]={i:o,l:!1,exports:{}};return r[o].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=r,s.c=a,s.i=function(o){return o},s.d=function(o,u,h){s.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:h})},s.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(u,"a",u),u},s.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},s.p="",s(s.s=26)}([function(r,a,s){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,r.exports=o},function(r,a,s){var o=s(2),u=s(8),h=s(9);function f(m,b,_){o.call(this,_),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=_,this.bendpoints=[],this.source=m,this.target=b}f.prototype=Object.create(o.prototype);for(var p in o)f[p]=o[p];f.prototype.getSource=function(){return this.source},f.prototype.getTarget=function(){return this.target},f.prototype.isInterGraph=function(){return this.isInterGraph},f.prototype.getLength=function(){return this.length},f.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},f.prototype.getBendpoints=function(){return this.bendpoints},f.prototype.getLca=function(){return this.lca},f.prototype.getSourceInLca=function(){return this.sourceInLca},f.prototype.getTargetInLca=function(){return this.targetInLca},f.prototype.getOtherEnd=function(m){if(this.source===m)return this.target;if(this.target===m)return this.source;throw"Node is not incident with this edge"},f.prototype.getOtherEndInGraph=function(m,b){for(var _=this.getOtherEnd(m),w=b.getGraphManager().getRoot();;){if(_.getOwner()==b)return _;if(_.getOwner()==w)break;_=_.getOwner().getParent()}return null},f.prototype.updateLength=function(){var m=new Array(4);this.isOverlapingSourceAndTarget=u.getIntersection(this.target.getRect(),this.source.getRect(),m),this.isOverlapingSourceAndTarget||(this.lengthX=m[0]-m[2],this.lengthY=m[1]-m[3],Math.abs(this.lengthX)<1&&(this.lengthX=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},f.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=f},function(r,a,s){function o(u){this.vGraphObject=u}r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(13),f=s(0),p=s(16),m=s(4);function b(w,S,C,A){C==null&&A==null&&(A=S),o.call(this,A),w.graphManager!=null&&(w=w.graphManager),this.estimatedSize=u.MIN_VALUE,this.inclusionTreeDepth=u.MAX_VALUE,this.vGraphObject=A,this.edges=[],this.graphManager=w,C!=null&&S!=null?this.rect=new h(S.x,S.y,C.width,C.height):this.rect=new h}b.prototype=Object.create(o.prototype);for(var _ in o)b[_]=o[_];b.prototype.getEdges=function(){return this.edges},b.prototype.getChild=function(){return this.child},b.prototype.getOwner=function(){return this.owner},b.prototype.getWidth=function(){return this.rect.width},b.prototype.setWidth=function(w){this.rect.width=w},b.prototype.getHeight=function(){return this.rect.height},b.prototype.setHeight=function(w){this.rect.height=w},b.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},b.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},b.prototype.getCenter=function(){return new m(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},b.prototype.getLocation=function(){return new m(this.rect.x,this.rect.y)},b.prototype.getRect=function(){return this.rect},b.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},b.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},b.prototype.setRect=function(w,S){this.rect.x=w.x,this.rect.y=w.y,this.rect.width=S.width,this.rect.height=S.height},b.prototype.setCenter=function(w,S){this.rect.x=w-this.rect.width/2,this.rect.y=S-this.rect.height/2},b.prototype.setLocation=function(w,S){this.rect.x=w,this.rect.y=S},b.prototype.moveBy=function(w,S){this.rect.x+=w,this.rect.y+=S},b.prototype.getEdgeListToNode=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(A.target==w){if(A.source!=C)throw"Incorrect edge source!";S.push(A)}}),S},b.prototype.getEdgesBetween=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(!(A.source==C||A.target==C))throw"Incorrect edge source and/or target";(A.target==w||A.source==w)&&S.push(A)}),S},b.prototype.getNeighborsList=function(){var w=new Set,S=this;return S.edges.forEach(function(C){if(C.source==S)w.add(C.target);else{if(C.target!=S)throw"Incorrect incidency!";w.add(C.source)}}),w},b.prototype.withChildren=function(){var w=new Set,S,C;if(w.add(this),this.child!=null)for(var A=this.child.getNodes(),k=0;k<A.length;k++)S=A[k],C=S.withChildren(),C.forEach(function(I){w.add(I)});return w},b.prototype.getNoOfChildren=function(){var w=0,S;if(this.child==null)w=1;else for(var C=this.child.getNodes(),A=0;A<C.length;A++)S=C[A],w+=S.getNoOfChildren();return w==0&&(w=1),w},b.prototype.getEstimatedSize=function(){if(this.estimatedSize==u.MIN_VALUE)throw"assert failed";return this.estimatedSize},b.prototype.calcEstimatedSize=function(){return this.child==null?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)},b.prototype.scatter=function(){var w,S,C=-f.INITIAL_WORLD_BOUNDARY,A=f.INITIAL_WORLD_BOUNDARY;w=f.WORLD_CENTER_X+p.nextDouble()*(A-C)+C;var k=-f.INITIAL_WORLD_BOUNDARY,I=f.INITIAL_WORLD_BOUNDARY;S=f.WORLD_CENTER_Y+p.nextDouble()*(I-k)+k,this.rect.x=w,this.rect.y=S},b.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var w=this.getChild();if(w.updateBounds(!0),this.rect.x=w.getLeft(),this.rect.y=w.getTop(),this.setWidth(w.getRight()-w.getLeft()),this.setHeight(w.getBottom()-w.getTop()),f.NODE_DIMENSIONS_INCLUDE_LABELS){var S=w.getRight()-w.getLeft(),C=w.getBottom()-w.getTop();this.labelWidth>S&&(this.rect.x-=(this.labelWidth-S)/2,this.setWidth(this.labelWidth)),this.labelHeight>C&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-C)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-C),this.setHeight(this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==u.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(w){var S=this.rect.x;S>f.WORLD_BOUNDARY?S=f.WORLD_BOUNDARY:S<-f.WORLD_BOUNDARY&&(S=-f.WORLD_BOUNDARY);var C=this.rect.y;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var A=new m(S,C),k=w.inverseTransformPoint(A);this.setLocation(k.x,k.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b},function(r,a,s){function o(u,h){u==null&&h==null?(this.x=0,this.y=0):(this.x=u,this.y=h)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(u){this.x=u},o.prototype.setY=function(u){this.y=u},o.prototype.getDifference=function(u){return new DimensionD(this.x-u.x,this.y-u.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(u){return this.x+=u.width,this.y+=u.height,this},r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(0),f=s(6),p=s(3),m=s(1),b=s(13),_=s(12),w=s(11);function S(A,k,I){o.call(this,I),this.estimatedSize=u.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=A,k!=null&&k instanceof f?this.graphManager=k:k!=null&&k instanceof Layout&&(this.graphManager=k.graphManager)}S.prototype=Object.create(o.prototype);for(var C in o)S[C]=o[C];S.prototype.getNodes=function(){return this.nodes},S.prototype.getEdges=function(){return this.edges},S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getParent=function(){return this.parent},S.prototype.getLeft=function(){return this.left},S.prototype.getRight=function(){return this.right},S.prototype.getTop=function(){return this.top},S.prototype.getBottom=function(){return this.bottom},S.prototype.isConnected=function(){return this.isConnected},S.prototype.add=function(A,k,I){if(k==null&&I==null){var N=A;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(N)>-1)throw"Node already in graph!";return N.owner=this,this.getNodes().push(N),N}else{var L=A;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(I)>-1))throw"Source or target not in graph!";if(!(k.owner==I.owner&&k.owner==this))throw"Both owners must be this graph!";return k.owner!=I.owner?null:(L.source=k,L.target=I,L.isInterGraph=!1,this.getEdges().push(L),k.edges.push(L),I!=k&&I.edges.push(L),L)}},S.prototype.remove=function(A){var k=A;if(A instanceof p){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var I=k.edges.slice(),N,L=I.length,P=0;P<L;P++)N=I[P],N.isInterGraph?this.graphManager.remove(N):N.source.owner.remove(N);var M=this.nodes.indexOf(k);if(M==-1)throw"Node not in owner node list!";this.nodes.splice(M,1)}else if(A instanceof m){var N=A;if(N==null)throw"Edge is null!";if(!(N.source!=null&&N.target!=null))throw"Source and/or target is null!";if(!(N.source.owner!=null&&N.target.owner!=null&&N.source.owner==this&&N.target.owner==this))throw"Source and/or target owner is invalid!";var F=N.source.edges.indexOf(N),U=N.target.edges.indexOf(N);if(!(F>-1&&U>-1))throw"Source and/or target doesn't know this edge!";N.source.edges.splice(F,1),N.target!=N.source&&N.target.edges.splice(U,1);var M=N.source.owner.getEdges().indexOf(N);if(M==-1)throw"Not in owner's edge list!";N.source.owner.getEdges().splice(M,1)}},S.prototype.updateLeftTop=function(){for(var A=u.MAX_VALUE,k=u.MAX_VALUE,I,N,L,P=this.getNodes(),M=P.length,F=0;F<M;F++){var U=P[F];I=U.getTop(),N=U.getLeft(),A>I&&(A=I),k>N&&(k=N)}return A==u.MAX_VALUE?null:(P[0].getParent().paddingLeft!=null?L=P[0].getParent().paddingLeft:L=this.margin,this.left=k-L,this.top=A-L,new _(this.left,this.top))},S.prototype.updateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$,G=this.nodes,B=G.length,Z=0;Z<B;Z++){var z=G[Z];A&&z.child!=null&&z.updateBounds(),P=z.getLeft(),M=z.getRight(),F=z.getTop(),U=z.getBottom(),k>P&&(k=P),I<M&&(I=M),N>F&&(N=F),L<U&&(L=U)}var Y=new b(k,N,I-k,L-N);k==u.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),G[0].getParent().paddingLeft!=null?$=G[0].getParent().paddingLeft:$=this.margin,this.left=Y.x-$,this.right=Y.x+Y.width+$,this.top=Y.y-$,this.bottom=Y.y+Y.height+$},S.calculateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$=A.length,G=0;G<$;G++){var B=A[G];P=B.getLeft(),M=B.getRight(),F=B.getTop(),U=B.getBottom(),k>P&&(k=P),I<M&&(I=M),N>F&&(N=F),L<U&&(L=U)}var Z=new b(k,N,I-k,L-N);return Z},S.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},S.prototype.getEstimatedSize=function(){if(this.estimatedSize==u.MIN_VALUE)throw"assert failed";return this.estimatedSize},S.prototype.calcEstimatedSize=function(){for(var A=0,k=this.nodes,I=k.length,N=0;N<I;N++){var L=k[N];A+=L.calcEstimatedSize()}return A==0?this.estimatedSize=h.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=A/Math.sqrt(this.nodes.length),this.estimatedSize},S.prototype.updateConnected=function(){var A=this;if(this.nodes.length==0){this.isConnected=!0;return}var k=new w,I=new Set,N=this.nodes[0],L,P,M=N.withChildren();for(M.forEach(function(Z){k.push(Z),I.add(Z)});k.length!==0;){N=k.shift(),L=N.getEdges();for(var F=L.length,U=0;U<F;U++){var $=L[U];if(P=$.getOtherEndInGraph(N,this),P!=null&&!I.has(P)){var G=P.withChildren();G.forEach(function(Z){k.push(Z),I.add(Z)})}}}if(this.isConnected=!1,I.size>=this.nodes.length){var B=0;I.forEach(function(Z){Z.owner==A&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},r.exports=S},function(r,a,s){var o,u=s(1);function h(f){o=s(5),this.layout=f,this.graphs=[],this.edges=[]}h.prototype.addRoot=function(){var f=this.layout.newGraph(),p=this.layout.newNode(null),m=this.add(f,p);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,p,m,b,_){if(m==null&&b==null&&_==null){if(f==null)throw"Graph is null!";if(p==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(p.child!=null)throw"Already has a child!";return f.parent=p,p.child=f,f}else{_=m,b=p,m=f;var w=b.getOwner(),S=_.getOwner();if(!(w!=null&&w.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(S!=null&&S.getGraphManager()==this))throw"Target not in this graph mgr!";if(w==S)return m.isInterGraph=!1,w.add(m,b,_);if(m.isInterGraph=!0,m.source=b,m.target=_,this.edges.indexOf(m)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(m),!(m.source!=null&&m.target!=null))throw"Edge source and/or target is null!";if(!(m.source.edges.indexOf(m)==-1&&m.target.edges.indexOf(m)==-1))throw"Edge already in source and/or target incidency list!";return m.source.edges.push(m),m.target.edges.push(m),m}},h.prototype.remove=function(f){if(f instanceof o){var p=f;if(p.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(p==this.rootGraph||p.parent!=null&&p.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(p.getEdges());for(var b,_=m.length,w=0;w<_;w++)b=m[w],p.remove(b);var S=[];S=S.concat(p.getNodes());var C;_=S.length;for(var w=0;w<_;w++)C=S[w],p.remove(C);p==this.rootGraph&&this.setRootGraph(null);var A=this.graphs.indexOf(p);this.graphs.splice(A,1),p.parent=null}else if(f instanceof u){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var A=b.source.edges.indexOf(b);if(b.source.edges.splice(A,1),A=b.target.edges.indexOf(b),b.target.edges.splice(A,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var A=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(A,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],p=this.getGraphs(),m=p.length,b=0;b<m;b++)f=f.concat(p[b].getNodes());this.allNodes=f}return this.allNodes},h.prototype.resetAllNodes=function(){this.allNodes=null},h.prototype.resetAllEdges=function(){this.allEdges=null},h.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},h.prototype.getAllEdges=function(){if(this.allEdges==null){var f=[],p=this.getGraphs();p.length;for(var m=0;m<p.length;m++)f=f.concat(p[m].getEdges());f=f.concat(this.edges),this.allEdges=f}return this.allEdges},h.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},h.prototype.setAllNodesToApplyGravitation=function(f){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=f},h.prototype.getRoot=function(){return this.rootGraph},h.prototype.setRootGraph=function(f){if(f.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=f,f.parent==null&&(f.parent=this.layout.newNode("Root node"))},h.prototype.getLayout=function(){return this.layout},h.prototype.isOneAncestorOfOther=function(f,p){if(!(f!=null&&p!=null))throw"assert failed";if(f==p)return!0;var m=f.getOwner(),b;do{if(b=m.getParent(),b==null)break;if(b==p)return!0;if(m=b.getOwner(),m==null)break}while(!0);m=p.getOwner();do{if(b=m.getParent(),b==null)break;if(b==f)return!0;if(m=b.getOwner(),m==null)break}while(!0);return!1},h.prototype.calcLowestCommonAncestors=function(){for(var f,p,m,b,_,w=this.getAllEdges(),S=w.length,C=0;C<S;C++){if(f=w[C],p=f.source,m=f.target,f.lca=null,f.sourceInLca=p,f.targetInLca=m,p==m){f.lca=p.getOwner();continue}for(b=p.getOwner();f.lca==null;){for(f.targetInLca=m,_=m.getOwner();f.lca==null;){if(_==b){f.lca=_;break}if(_==this.rootGraph)break;if(f.lca!=null)throw"assert failed";f.targetInLca=_.getParent(),_=f.targetInLca.getOwner()}if(b==this.rootGraph)break;f.lca==null&&(f.sourceInLca=b.getParent(),b=f.sourceInLca.getOwner())}if(f.lca==null)throw"assert failed"}},h.prototype.calcLowestCommonAncestor=function(f,p){if(f==p)return f.getOwner();var m=f.getOwner();do{if(m==null)break;var b=p.getOwner();do{if(b==null)break;if(b==m)return b;b=b.getParent().getOwner()}while(!0);m=m.getParent().getOwner()}while(!0);return m},h.prototype.calcInclusionTreeDepths=function(f,p){f==null&&p==null&&(f=this.rootGraph,p=1);for(var m,b=f.getNodes(),_=b.length,w=0;w<_;w++)m=b[w],m.inclusionTreeDepth=p,m.child!=null&&this.calcInclusionTreeDepths(m.child,p+1)},h.prototype.includesInvalidEdge=function(){for(var f,p=this.edges.length,m=0;m<p;m++)if(f=this.edges[m],this.isOneAncestorOfOther(f.source,f.target))return!0;return!1},r.exports=h},function(r,a,s){var o=s(0);function u(){}for(var h in o)u[h]=o[h];u.MAX_ITERATIONS=2500,u.DEFAULT_EDGE_LENGTH=50,u.DEFAULT_SPRING_STRENGTH=.45,u.DEFAULT_REPULSION_STRENGTH=4500,u.DEFAULT_GRAVITY_STRENGTH=.4,u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,u.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,u.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,u.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,u.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,u.COOLING_ADAPTATION_FACTOR=.33,u.ADAPTATION_LOWER_NODE_LIMIT=1e3,u.ADAPTATION_UPPER_NODE_LIMIT=5e3,u.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,u.MAX_NODE_DISPLACEMENT=u.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,u.CONVERGENCE_CHECK_PERIOD=100,u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,u.MIN_EDGE_LENGTH=1,u.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=u},function(r,a,s){var o=s(12);function u(){}u.calcSeparationAmount=function(h,f,p,m){if(!h.intersects(f))throw"assert failed";var b=new Array(2);this.decideDirectionsForOverlappingNodes(h,f,b),p[0]=Math.min(h.getRight(),f.getRight())-Math.max(h.x,f.x),p[1]=Math.min(h.getBottom(),f.getBottom())-Math.max(h.y,f.y),h.getX()<=f.getX()&&h.getRight()>=f.getRight()?p[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(p[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?p[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(p[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var _=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(_=1);var w=_*p[0],S=p[1]/_;p[0]<S?S=p[0]:w=p[1],p[0]=-1*b[0]*(S/2+m),p[1]=-1*b[1]*(w/2+m)},u.decideDirectionsForOverlappingNodes=function(h,f,p){h.getCenterX()<f.getCenterX()?p[0]=-1:p[0]=1,h.getCenterY()<f.getCenterY()?p[1]=-1:p[1]=1},u.getIntersection2=function(h,f,p){var m=h.getCenterX(),b=h.getCenterY(),_=f.getCenterX(),w=f.getCenterY();if(h.intersects(f))return p[0]=m,p[1]=b,p[2]=_,p[3]=w,!0;var S=h.getX(),C=h.getY(),A=h.getRight(),k=h.getX(),I=h.getBottom(),N=h.getRight(),L=h.getWidthHalf(),P=h.getHeightHalf(),M=f.getX(),F=f.getY(),U=f.getRight(),$=f.getX(),G=f.getBottom(),B=f.getRight(),Z=f.getWidthHalf(),z=f.getHeightHalf(),Y=!1,W=!1;if(m===_){if(b>w)return p[0]=m,p[1]=C,p[2]=_,p[3]=G,!1;if(b<w)return p[0]=m,p[1]=I,p[2]=_,p[3]=F,!1}else if(b===w){if(m>_)return p[0]=S,p[1]=b,p[2]=U,p[3]=w,!1;if(m<_)return p[0]=A,p[1]=b,p[2]=M,p[3]=w,!1}else{var Q=h.height/h.width,V=f.height/f.width,j=(w-b)/(_-m),ee=void 0,te=void 0,ne=void 0,se=void 0,ie=void 0,ge=void 0;if(-Q===j?m>_?(p[0]=k,p[1]=I,Y=!0):(p[0]=A,p[1]=C,Y=!0):Q===j&&(m>_?(p[0]=S,p[1]=C,Y=!0):(p[0]=N,p[1]=I,Y=!0)),-V===j?_>m?(p[2]=$,p[3]=G,W=!0):(p[2]=U,p[3]=F,W=!0):V===j&&(_>m?(p[2]=M,p[3]=F,W=!0):(p[2]=B,p[3]=G,W=!0)),Y&&W)return!1;if(m>_?b>w?(ee=this.getCardinalDirection(Q,j,4),te=this.getCardinalDirection(V,j,2)):(ee=this.getCardinalDirection(-Q,j,3),te=this.getCardinalDirection(-V,j,1)):b>w?(ee=this.getCardinalDirection(-Q,j,1),te=this.getCardinalDirection(-V,j,3)):(ee=this.getCardinalDirection(Q,j,2),te=this.getCardinalDirection(V,j,4)),!Y)switch(ee){case 1:se=C,ne=m+-P/j,p[0]=ne,p[1]=se;break;case 2:ne=N,se=b+L*j,p[0]=ne,p[1]=se;break;case 3:se=I,ne=m+P/j,p[0]=ne,p[1]=se;break;case 4:ne=k,se=b+-L*j,p[0]=ne,p[1]=se;break}if(!W)switch(te){case 1:ge=F,ie=_+-z/j,p[2]=ie,p[3]=ge;break;case 2:ie=B,ge=w+Z*j,p[2]=ie,p[3]=ge;break;case 3:ge=G,ie=_+z/j,p[2]=ie,p[3]=ge;break;case 4:ie=$,ge=w+-Z*j,p[2]=ie,p[3]=ge;break}}return!1},u.getCardinalDirection=function(h,f,p){return h>f?p:1+p%4},u.getIntersection=function(h,f,p,m){if(m==null)return this.getIntersection2(h,f,p);var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=void 0,L=void 0,P=void 0,M=void 0,F=void 0,U=void 0,$=void 0,G=void 0,B=void 0;return P=S-_,F=b-w,$=w*_-b*S,M=I-A,U=C-k,G=k*A-C*I,B=P*U-M*F,B===0?null:(N=(F*G-U*$)/B,L=(M*$-P*G)/B,new o(N,L))},u.angleOfVector=function(h,f,p,m){var b=void 0;return h!==p?(b=Math.atan((m-f)/(p-h)),p<h?b+=Math.PI:m<f&&(b+=this.TWO_PI)):m<f?b=this.ONE_AND_HALF_PI:b=this.HALF_PI,b},u.doIntersect=function(h,f,p,m){var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=(w-b)*(I-A)-(k-C)*(S-_);if(N===0)return!1;var L=((I-A)*(k-b)+(C-k)*(I-_))/N,P=((_-S)*(k-b)+(w-b)*(I-_))/N;return 0<L&&L<1&&0<P&&P<1},u.HALF_PI=.5*Math.PI,u.ONE_AND_HALF_PI=1.5*Math.PI,u.TWO_PI=2*Math.PI,u.THREE_PI=3*Math.PI,r.exports=u},function(r,a,s){function o(){}o.sign=function(u){return u>0?1:u<0?-1:0},o.floor=function(u){return u<0?Math.ceil(u):Math.floor(u)},o.ceil=function(u){return u<0?Math.floor(u):Math.ceil(u)},r.exports=o},function(r,a,s){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,r.exports=o},function(r,a,s){var o=function(){function b(_,w){for(var S=0;S<w.length;S++){var C=w[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,w,S){return w&&b(_.prototype,w),S&&b(_,S),_}}();function u(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var h=function(_){return{value:_,next:null,prev:null}},f=function(_,w,S,C){return _!==null?_.next=w:C.head=w,S!==null?S.prev=w:C.tail=w,w.prev=_,w.next=S,C.length++,w},p=function(_,w){var S=_.prev,C=_.next;return S!==null?S.next=C:w.head=C,C!==null?C.prev=S:w.tail=S,_.prev=_.next=null,w.length--,_},m=function(){function b(_){var w=this;u(this,b),this.length=0,this.head=null,this.tail=null,_!=null&&_.forEach(function(S){return w.push(S)})}return o(b,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(w,S){return f(S.prev,h(w),S,this)}},{key:"insertAfter",value:function(w,S){return f(S,h(w),S.next,this)}},{key:"insertNodeBefore",value:function(w,S){return f(S.prev,w,S,this)}},{key:"insertNodeAfter",value:function(w,S){return f(S,w,S.next,this)}},{key:"push",value:function(w){return f(this.tail,h(w),null,this)}},{key:"unshift",value:function(w){return f(null,h(w),this.head,this)}},{key:"remove",value:function(w){return p(w,this)}},{key:"pop",value:function(){return p(this.tail,this).value}},{key:"popNode",value:function(){return p(this.tail,this)}},{key:"shift",value:function(){return p(this.head,this).value}},{key:"shiftNode",value:function(){return p(this.head,this)}},{key:"get_object_at",value:function(w){if(w<=this.length()){for(var S=1,C=this.head;S<w;)C=C.next,S++;return C.value}}},{key:"set_object_at",value:function(w,S){if(w<=this.length()){for(var C=1,A=this.head;C<w;)A=A.next,C++;A.value=S}}}]),b}();r.exports=m},function(r,a,s){function o(u,h,f){this.x=null,this.y=null,u==null&&h==null&&f==null?(this.x=0,this.y=0):typeof u=="number"&&typeof h=="number"&&f==null?(this.x=u,this.y=h):u.constructor.name=="Point"&&h==null&&f==null&&(f=u,this.x=f.x,this.y=f.y)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.getLocation=function(){return new o(this.x,this.y)},o.prototype.setLocation=function(u,h,f){u.constructor.name=="Point"&&h==null&&f==null?(f=u,this.setLocation(f.x,f.y)):typeof u=="number"&&typeof h=="number"&&f==null&&(parseInt(u)==u&&parseInt(h)==h?this.move(u,h):(this.x=Math.floor(u+.5),this.y=Math.floor(h+.5)))},o.prototype.move=function(u,h){this.x=u,this.y=h},o.prototype.translate=function(u,h){this.x+=u,this.y+=h},o.prototype.equals=function(u){if(u.constructor.name=="Point"){var h=u;return this.x==h.x&&this.y==h.y}return this==u},o.prototype.toString=function(){return new o().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=o},function(r,a,s){function o(u,h,f,p){this.x=0,this.y=0,this.width=0,this.height=0,u!=null&&h!=null&&f!=null&&p!=null&&(this.x=u,this.y=h,this.width=f,this.height=p)}o.prototype.getX=function(){return this.x},o.prototype.setX=function(u){this.x=u},o.prototype.getY=function(){return this.y},o.prototype.setY=function(u){this.y=u},o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(u){this.width=u},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(u){this.height=u},o.prototype.getRight=function(){return this.x+this.width},o.prototype.getBottom=function(){return this.y+this.height},o.prototype.intersects=function(u){return!(this.getRight()<u.x||this.getBottom()<u.y||u.getRight()<this.x||u.getBottom()<this.y)},o.prototype.getCenterX=function(){return this.x+this.width/2},o.prototype.getMinX=function(){return this.getX()},o.prototype.getMaxX=function(){return this.getX()+this.width},o.prototype.getCenterY=function(){return this.y+this.height/2},o.prototype.getMinY=function(){return this.getY()},o.prototype.getMaxY=function(){return this.getY()+this.height},o.prototype.getWidthHalf=function(){return this.width/2},o.prototype.getHeightHalf=function(){return this.height/2},r.exports=o},function(r,a,s){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function u(){}u.lastID=0,u.createID=function(h){return u.isPrimitive(h)?h:(h.uniqueID!=null||(h.uniqueID=u.getString(),u.lastID++),h.uniqueID)},u.getString=function(h){return h==null&&(h=u.lastID),"Object#"+h},u.isPrimitive=function(h){var f=typeof h>"u"?"undefined":o(h);return h==null||f!="object"&&f!="function"},r.exports=u},function(r,a,s){function o(C){if(Array.isArray(C)){for(var A=0,k=Array(C.length);A<C.length;A++)k[A]=C[A];return k}else return Array.from(C)}var u=s(0),h=s(6),f=s(3),p=s(1),m=s(5),b=s(4),_=s(17),w=s(27);function S(C){w.call(this),this.layoutQuality=u.QUALITY,this.createBendsAsNeeded=u.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=u.DEFAULT_INCREMENTAL,this.animationOnLayout=u.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=u.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=u.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=u.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new h(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,C!=null&&(this.isRemoteUse=C)}S.RANDOM_SEED=1,S.prototype=Object.create(w.prototype),S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},S.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},S.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},S.prototype.newGraphManager=function(){var C=new h(this);return this.graphManager=C,C},S.prototype.newGraph=function(C){return new m(null,this.graphManager,C)},S.prototype.newNode=function(C){return new f(this.graphManager,C)},S.prototype.newEdge=function(C){return new p(null,null,C)},S.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},S.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var C;return this.checkLayoutSuccess()?C=!1:C=this.layout(),u.ANIMATE==="during"?!1:(C&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,C)},S.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},S.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var C=this.graphManager.getAllEdges(),A=0;A<C.length;A++)C[A];for(var k=this.graphManager.getRoot().getNodes(),A=0;A<k.length;A++)k[A];this.update(this.graphManager.getRoot())}},S.prototype.update=function(C){if(C==null)this.update2();else if(C instanceof f){var A=C;if(A.getChild()!=null)for(var k=A.getChild().getNodes(),I=0;I<k.length;I++)update(k[I]);if(A.vGraphObject!=null){var N=A.vGraphObject;N.update(A)}}else if(C instanceof p){var L=C;if(L.vGraphObject!=null){var P=L.vGraphObject;P.update(L)}}else if(C instanceof m){var M=C;if(M.vGraphObject!=null){var F=M.vGraphObject;F.update(M)}}},S.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=u.QUALITY,this.animationDuringLayout=u.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=u.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=u.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=u.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=u.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=u.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},S.prototype.transform=function(C){if(C==null)this.transform(new b(0,0));else{var A=new _,k=this.graphManager.getRoot().updateLeftTop();if(k!=null){A.setWorldOrgX(C.x),A.setWorldOrgY(C.y),A.setDeviceOrgX(k.x),A.setDeviceOrgY(k.y);for(var I=this.getAllNodes(),N,L=0;L<I.length;L++)N=I[L],N.transform(A)}}},S.prototype.positionNodesRandomly=function(C){if(C==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var A,k,I=C.getNodes(),N=0;N<I.length;N++)A=I[N],k=A.getChild(),k==null||k.getNodes().length==0?A.scatter():(this.positionNodesRandomly(k),A.updateBounds())},S.prototype.getFlatForest=function(){for(var C=[],A=!0,k=this.graphManager.getRoot().getNodes(),I=!0,N=0;N<k.length;N++)k[N].getChild()!=null&&(I=!1);if(!I)return C;var L=new Set,P=[],M=new Map,F=[];for(F=F.concat(k);F.length>0&&A;){for(P.push(F[0]);P.length>0&&A;){var U=P[0];P.splice(0,1),L.add(U);for(var $=U.getEdges(),N=0;N<$.length;N++){var G=$[N].getOtherEnd(U);if(M.get(U)!=G)if(!L.has(G))P.push(G),M.set(G,U);else{A=!1;break}}}if(!A)C=[];else{var B=[].concat(o(L));C.push(B);for(var N=0;N<B.length;N++){var Z=B[N],z=F.indexOf(Z);z>-1&&F.splice(z,1)}L=new Set,M=new Map}}return C},S.prototype.createDummyNodesForBendpoints=function(C){for(var A=[],k=C.source,I=this.graphManager.calcLowestCommonAncestor(C.source,C.target),N=0;N<C.bendpoints.length;N++){var L=this.newNode(null);L.setRect(new Point(0,0),new Dimension(1,1)),I.add(L);var P=this.newEdge(null);this.graphManager.add(P,k,L),A.add(L),k=L}var P=this.newEdge(null);return this.graphManager.add(P,k,C.target),this.edgeToDummyNodes.set(C,A),C.isInterGraph()?this.graphManager.remove(C):I.remove(C),A},S.prototype.createBendpointsFromDummyNodes=function(){var C=[];C=C.concat(this.graphManager.getAllEdges()),C=[].concat(o(this.edgeToDummyNodes.keys())).concat(C);for(var A=0;A<C.length;A++){var k=C[A];if(k.bendpoints.length>0){for(var I=this.edgeToDummyNodes.get(k),N=0;N<I.length;N++){var L=I[N],P=new b(L.getCenterX(),L.getCenterY()),M=k.bendpoints.get(N);M.x=P.x,M.y=P.y,L.getOwner().remove(L)}this.graphManager.add(k,k.source,k.target)}}},S.transform=function(C,A,k,I){if(k!=null&&I!=null){var N=A;if(C<=50){var L=A/k;N-=(A-L)/50*(50-C)}else{var P=A*I;N+=(P-A)/50*(C-50)}return N}else{var M,F;return C<=50?(M=9*A/500,F=A/10):(M=9*A/50,F=-8*A),M*C+F}},S.findCenterOfTree=function(C){var A=[];A=A.concat(C);var k=[],I=new Map,N=!1,L=null;(A.length==1||A.length==2)&&(N=!0,L=A[0]);for(var P=0;P<A.length;P++){var M=A[P],F=M.getNeighborsList().size;I.set(M,M.getNeighborsList().size),F==1&&k.push(M)}var U=[];for(U=U.concat(k);!N;){var $=[];$=$.concat(U),U=[];for(var P=0;P<A.length;P++){var M=A[P],G=A.indexOf(M);G>=0&&A.splice(G,1);var B=M.getNeighborsList();B.forEach(function(Y){if(k.indexOf(Y)<0){var W=I.get(Y),Q=W-1;Q==1&&U.push(Y),I.set(Y,Q)}})}k=k.concat(U),(A.length==1||A.length==2)&&(N=!0,L=A[0])}return L},S.prototype.setGraphManager=function(C){this.graphManager=C},r.exports=S},function(r,a,s){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},r.exports=o},function(r,a,s){var o=s(4);function u(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}u.prototype.getWorldOrgX=function(){return this.lworldOrgX},u.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},u.prototype.getWorldOrgY=function(){return this.lworldOrgY},u.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},u.prototype.getWorldExtX=function(){return this.lworldExtX},u.prototype.setWorldExtX=function(h){this.lworldExtX=h},u.prototype.getWorldExtY=function(){return this.lworldExtY},u.prototype.setWorldExtY=function(h){this.lworldExtY=h},u.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},u.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},u.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},u.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},u.prototype.getDeviceExtX=function(){return this.ldeviceExtX},u.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},u.prototype.getDeviceExtY=function(){return this.ldeviceExtY},u.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},u.prototype.transformX=function(h){var f=0,p=this.lworldExtX;return p!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/p),f},u.prototype.transformY=function(h){var f=0,p=this.lworldExtY;return p!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/p),f},u.prototype.inverseTransformX=function(h){var f=0,p=this.ldeviceExtX;return p!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/p),f},u.prototype.inverseTransformY=function(h){var f=0,p=this.ldeviceExtY;return p!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/p),f},u.prototype.inverseTransformPoint=function(h){var f=new o(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=u},function(r,a,s){function o(w){if(Array.isArray(w)){for(var S=0,C=Array(w.length);S<w.length;S++)C[S]=w[S];return C}else return Array.from(w)}var u=s(15),h=s(7),f=s(0),p=s(8),m=s(9);function b(){u.call(this),this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.springConstant=h.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=h.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=h.MAX_ITERATIONS}b.prototype=Object.create(u.prototype);for(var _ in u)b[_]=u[_];b.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},b.prototype.calcIdealEdgeLengths=function(){for(var w,S,C,A,k,I,N=this.getGraphManager().getAllEdges(),L=0;L<N.length;L++)w=N[L],w.idealLength=this.idealEdgeLength,w.isInterGraph&&(C=w.getSource(),A=w.getTarget(),k=w.getSourceInLca().getEstimatedSize(),I=w.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(w.idealLength+=k+I-2*f.SIMPLE_NODE_SIZE),S=w.getLca().getInclusionTreeDepth(),w.idealLength+=h.DEFAULT_EDGE_LENGTH*h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(C.getInclusionTreeDepth()+A.getInclusionTreeDepth()-2*S))},b.prototype.initSpringEmbedder=function(){var w=this.getAllNodes().length;this.incremental?(w>h.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(w>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var w=this.getAllEdges(),S,C=0;C<w.length;C++)S=w[C],this.calcSpringForce(S,S.idealLength)},b.prototype.calcRepulsionForces=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C,A,k,I,N=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&w&&this.updateGrid(),L=new Set,C=0;C<N.length;C++)k=N[C],this.calculateRepulsionForceOfANode(k,L,w,S),L.add(k);else for(C=0;C<N.length;C++)for(k=N[C],A=C+1;A<N.length;A++)I=N[A],k.getOwner()==I.getOwner()&&this.calcRepulsionForce(k,I)},b.prototype.calcGravitationalForces=function(){for(var w,S=this.getAllNodesToApplyGravitation(),C=0;C<S.length;C++)w=S[C],this.calcGravitationalForce(w)},b.prototype.moveNodes=function(){for(var w=this.getAllNodes(),S,C=0;C<w.length;C++)S=w[C],S.move()},b.prototype.calcSpringForce=function(w,S){var C=w.getSource(),A=w.getTarget(),k,I,N,L;if(this.uniformLeafNodeSizes&&C.getChild()==null&&A.getChild()==null)w.updateLengthSimple();else if(w.updateLength(),w.isOverlapingSourceAndTarget)return;k=w.getLength(),k!=0&&(I=this.springConstant*(k-S),N=I*(w.lengthX/k),L=I*(w.lengthY/k),C.springForceX+=N,C.springForceY+=L,A.springForceX-=N,A.springForceY-=L)},b.prototype.calcRepulsionForce=function(w,S){var C=w.getRect(),A=S.getRect(),k=new Array(2),I=new Array(4),N,L,P,M,F,U,$;if(C.intersects(A)){p.calcSeparationAmount(C,A,k,h.DEFAULT_EDGE_LENGTH/2),U=2*k[0],$=2*k[1];var G=w.noOfChildren*S.noOfChildren/(w.noOfChildren+S.noOfChildren);w.repulsionForceX-=G*U,w.repulsionForceY-=G*$,S.repulsionForceX+=G*U,S.repulsionForceY+=G*$}else this.uniformLeafNodeSizes&&w.getChild()==null&&S.getChild()==null?(N=A.getCenterX()-C.getCenterX(),L=A.getCenterY()-C.getCenterY()):(p.getIntersection(C,A,I),N=I[2]-I[0],L=I[3]-I[1]),Math.abs(N)<h.MIN_REPULSION_DIST&&(N=m.sign(N)*h.MIN_REPULSION_DIST),Math.abs(L)<h.MIN_REPULSION_DIST&&(L=m.sign(L)*h.MIN_REPULSION_DIST),P=N*N+L*L,M=Math.sqrt(P),F=this.repulsionConstant*w.noOfChildren*S.noOfChildren/P,U=F*N/M,$=F*L/M,w.repulsionForceX-=U,w.repulsionForceY-=$,S.repulsionForceX+=U,S.repulsionForceY+=$},b.prototype.calcGravitationalForce=function(w){var S,C,A,k,I,N,L,P;S=w.getOwner(),C=(S.getRight()+S.getLeft())/2,A=(S.getTop()+S.getBottom())/2,k=w.getCenterX()-C,I=w.getCenterY()-A,N=Math.abs(k)+w.getWidth()/2,L=Math.abs(I)+w.getHeight()/2,w.getOwner()==this.graphManager.getRoot()?(P=S.getEstimatedSize()*this.gravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k,w.gravitationForceY=-this.gravityConstant*I)):(P=S.getEstimatedSize()*this.compoundGravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,w.gravitationForceY=-this.gravityConstant*I*this.compoundGravityConstant))},b.prototype.isConverged=function(){var w,S=!1;return this.totalIterations>this.maxIterations/3&&(S=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),w=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,w||S},b.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},b.prototype.calcNoOfChildrenForAllNodes=function(){for(var w,S=this.graphManager.getAllNodes(),C=0;C<S.length;C++)w=S[C],w.noOfChildren=w.getNoOfChildren()},b.prototype.calcGrid=function(w){var S=0,C=0;S=parseInt(Math.ceil((w.getRight()-w.getLeft())/this.repulsionRange)),C=parseInt(Math.ceil((w.getBottom()-w.getTop())/this.repulsionRange));for(var A=new Array(S),k=0;k<S;k++)A[k]=new Array(C);for(var k=0;k<S;k++)for(var I=0;I<C;I++)A[k][I]=new Array;return A},b.prototype.addNodeToGrid=function(w,S,C){var A=0,k=0,I=0,N=0;A=parseInt(Math.floor((w.getRect().x-S)/this.repulsionRange)),k=parseInt(Math.floor((w.getRect().width+w.getRect().x-S)/this.repulsionRange)),I=parseInt(Math.floor((w.getRect().y-C)/this.repulsionRange)),N=parseInt(Math.floor((w.getRect().height+w.getRect().y-C)/this.repulsionRange));for(var L=A;L<=k;L++)for(var P=I;P<=N;P++)this.grid[L][P].push(w),w.setGridCoordinates(A,k,I,N)},b.prototype.updateGrid=function(){var w,S,C=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),w=0;w<C.length;w++)S=C[w],this.addNodeToGrid(S,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},b.prototype.calculateRepulsionForceOfANode=function(w,S,C,A){if(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&C||A){var k=new Set;w.surrounding=new Array;for(var I,N=this.grid,L=w.startX-1;L<w.finishX+2;L++)for(var P=w.startY-1;P<w.finishY+2;P++)if(!(L<0||P<0||L>=N.length||P>=N[0].length)){for(var M=0;M<N[L][P].length;M++)if(I=N[L][P][M],!(w.getOwner()!=I.getOwner()||w==I)&&!S.has(I)&&!k.has(I)){var F=Math.abs(w.getCenterX()-I.getCenterX())-(w.getWidth()/2+I.getWidth()/2),U=Math.abs(w.getCenterY()-I.getCenterY())-(w.getHeight()/2+I.getHeight()/2);F<=this.repulsionRange&&U<=this.repulsionRange&&k.add(I)}}w.surrounding=[].concat(o(k))}for(L=0;L<w.surrounding.length;L++)this.calcRepulsionForce(w,w.surrounding[L])},b.prototype.calcRepulsionRange=function(){return 0},r.exports=b},function(r,a,s){var o=s(1),u=s(7);function h(p,m,b){o.call(this,p,m,b),this.idealLength=u.DEFAULT_EDGE_LENGTH}h.prototype=Object.create(o.prototype);for(var f in o)h[f]=o[f];r.exports=h},function(r,a,s){var o=s(3);function u(f,p,m,b){o.call(this,f,p,m,b),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=[]}u.prototype=Object.create(o.prototype);for(var h in o)u[h]=o[h];u.prototype.setGridCoordinates=function(f,p,m,b){this.startX=f,this.finishX=p,this.startY=m,this.finishY=b},r.exports=u},function(r,a,s){function o(u,h){this.width=0,this.height=0,u!==null&&h!==null&&(this.height=h,this.width=u)}o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(u){this.width=u},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(u){this.height=u},r.exports=o},function(r,a,s){var o=s(14);function u(){this.map={},this.keys=[]}u.prototype.put=function(h,f){var p=o.createID(h);this.contains(p)||(this.map[p]=f,this.keys.push(h))},u.prototype.contains=function(h){return o.createID(h),this.map[h]!=null},u.prototype.get=function(h){var f=o.createID(h);return this.map[f]},u.prototype.keySet=function(){return this.keys},r.exports=u},function(r,a,s){var o=s(14);function u(){this.set={}}u.prototype.add=function(h){var f=o.createID(h);this.contains(f)||(this.set[f]=h)},u.prototype.remove=function(h){delete this.set[o.createID(h)]},u.prototype.clear=function(){this.set={}},u.prototype.contains=function(h){return this.set[o.createID(h)]==h},u.prototype.isEmpty=function(){return this.size()===0},u.prototype.size=function(){return Object.keys(this.set).length},u.prototype.addAllTo=function(h){for(var f=Object.keys(this.set),p=f.length,m=0;m<p;m++)h.push(this.set[f[m]])},u.prototype.size=function(){return Object.keys(this.set).length},u.prototype.addAll=function(h){for(var f=h.length,p=0;p<f;p++){var m=h[p];this.add(m)}},r.exports=u},function(r,a,s){var o=function(){function p(m,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,b,_){return b&&p(m.prototype,b),_&&p(m,_),m}}();function u(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var h=s(11),f=function(){function p(m,b){u(this,p),(b!==null||b!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var _=void 0;m instanceof h?_=m.size():_=m.length,this._quicksort(m,0,_-1)}return o(p,[{key:"_quicksort",value:function(b,_,w){if(_<w){var S=this._partition(b,_,w);this._quicksort(b,_,S),this._quicksort(b,S+1,w)}}},{key:"_partition",value:function(b,_,w){for(var S=this._get(b,_),C=_,A=w;;){for(;this.compareFunction(S,this._get(b,A));)A--;for(;this.compareFunction(this._get(b,C),S);)C++;if(C<A)this._swap(b,C,A),C++,A--;else return A}}},{key:"_get",value:function(b,_){return b instanceof h?b.get_object_at(_):b[_]}},{key:"_set",value:function(b,_,w){b instanceof h?b.set_object_at(_,w):b[_]=w}},{key:"_swap",value:function(b,_,w){var S=this._get(b,_);this._set(b,_,this._get(b,w)),this._set(b,w,S)}},{key:"_defaultCompareFunction",value:function(b,_){return _>b}}]),p}();r.exports=f},function(r,a,s){var o=function(){function f(p,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,_.key,_)}}return function(p,m,b){return m&&f(p.prototype,m),b&&f(p,b),p}}();function u(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}var h=function(){function f(p,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;u(this,f),this.sequence1=p,this.sequence2=m,this.match_score=b,this.mismatch_penalty=_,this.gap_penalty=w,this.iMax=p.length+1,this.jMax=m.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 A=0;A<this.iMax;A++){this.tracebackGrid[A]=new Array(this.jMax);for(var k=0;k<this.jMax;k++)this.tracebackGrid[A][k]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return o(f,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var m=1;m<this.jMax;m++)this.grid[0][m]=this.grid[0][m-1]+this.gap_penalty,this.tracebackGrid[0][m]=[!1,!1,!0];for(var b=1;b<this.iMax;b++)this.grid[b][0]=this.grid[b-1][0]+this.gap_penalty,this.tracebackGrid[b][0]=[!1,!0,!1];for(var _=1;_<this.iMax;_++)for(var w=1;w<this.jMax;w++){var S=void 0;this.sequence1[_-1]===this.sequence2[w-1]?S=this.grid[_-1][w-1]+this.match_score:S=this.grid[_-1][w-1]+this.mismatch_penalty;var C=this.grid[_-1][w]+this.gap_penalty,A=this.grid[_][w-1]+this.gap_penalty,k=[S,C,A],I=this.arrayAllMaxIndexes(k);this.grid[_][w]=k[I[0]],this.tracebackGrid[_][w]=[I.includes(0),I.includes(1),I.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var m=[];for(m.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});m[0];){var b=m[0],_=this.tracebackGrid[b.pos[0]][b.pos[1]];_[0]&&m.push({pos:[b.pos[0]-1,b.pos[1]-1],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),_[1]&&m.push({pos:[b.pos[0]-1,b.pos[1]],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:"-"+b.seq2}),_[2]&&m.push({pos:[b.pos[0],b.pos[1]-1],seq1:"-"+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),b.pos[0]===0&&b.pos[1]===0&&this.alignments.push({sequence1:b.seq1,sequence2:b.seq2}),m.shift()}return this.alignments}},{key:"getAllIndexes",value:function(m,b){for(var _=[],w=-1;(w=m.indexOf(b,w+1))!==-1;)_.push(w);return _}},{key:"arrayAllMaxIndexes",value:function(m){return this.getAllIndexes(m,Math.max.apply(null,m))}}]),f}();r.exports=h},function(r,a,s){var o=function(){};o.FDLayout=s(18),o.FDLayoutConstants=s(7),o.FDLayoutEdge=s(19),o.FDLayoutNode=s(20),o.DimensionD=s(21),o.HashMap=s(22),o.HashSet=s(23),o.IGeometry=s(8),o.IMath=s(9),o.Integer=s(10),o.Point=s(12),o.PointD=s(4),o.RandomSeed=s(16),o.RectangleD=s(13),o.Transform=s(17),o.UniqueIDGeneretor=s(14),o.Quicksort=s(24),o.LinkedList=s(11),o.LGraphObject=s(2),o.LGraph=s(5),o.LEdge=s(1),o.LGraphManager=s(6),o.LNode=s(3),o.Layout=s(15),o.LayoutConstants=s(0),o.NeedlemanWunsch=s(25),r.exports=o},function(r,a,s){function o(){this.listeners=[]}var u=o.prototype;u.addListener=function(h,f){this.listeners.push({event:h,callback:f})},u.removeListener=function(h,f){for(var p=this.listeners.length;p>=0;p--){var m=this.listeners[p];m.event===h&&m.callback===f&&this.listeners.splice(p,1)}},u.emit=function(h,f){for(var p=0;p<this.listeners.length;p++){var m=this.listeners[p];h===m.event&&m.callback(f)}},r.exports=o}])})}(yit)),yit.exports}var mSn;function l9i(){return mSn||(mSn=1,function(e,t){(function(a,s){e.exports=s(o9i())})(ml,function(r){return function(a){var s={};function o(u){if(s[u])return s[u].exports;var h=s[u]={i:u,l:!1,exports:{}};return a[u].call(h.exports,h,h.exports,o),h.l=!0,h.exports}return o.m=a,o.c=s,o.i=function(u){return u},o.d=function(u,h,f){o.o(u,h)||Object.defineProperty(u,h,{configurable:!1,enumerable:!0,get:f})},o.n=function(u){var h=u&&u.__esModule?function(){return u.default}:function(){return u};return o.d(h,"a",h),h},o.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},o.p="",o(o.s=7)}([function(a,s){a.exports=r},function(a,s,o){var u=o(0).FDLayoutConstants;function h(){}for(var f in u)h[f]=u[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TREE_REDUCTION_ON_INCREMENTAL=!1,a.exports=h},function(a,s,o){var u=o(0).FDLayoutEdge;function h(p,m,b){u.call(this,p,m,b)}h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},function(a,s,o){var u=o(0).LGraph;function h(p,m,b){u.call(this,p,m,b)}h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},function(a,s,o){var u=o(0).LGraphManager;function h(p){u.call(this,p)}h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},function(a,s,o){var u=o(0).FDLayoutNode,h=o(0).IMath;function f(m,b,_,w){u.call(this,m,b,_,w)}f.prototype=Object.create(u.prototype);for(var p in u)f[p]=u[p];f.prototype.move=function(){var m=this.graphManager.getLayout();this.displacementX=m.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=m.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementX=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementY=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),m.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},f.prototype.propogateDisplacementToChildren=function(m,b){for(var _=this.getChild().getNodes(),w,S=0;S<_.length;S++)w=_[S],w.getChild()==null?(w.moveBy(m,b),w.displacementX+=m,w.displacementY+=b):w.propogateDisplacementToChildren(m,b)},f.prototype.setPred1=function(m){this.pred1=m},f.prototype.getPred1=function(){return pred1},f.prototype.getPred2=function(){return pred2},f.prototype.setNext=function(m){this.next=m},f.prototype.getNext=function(){return next},f.prototype.setProcessed=function(m){this.processed=m},f.prototype.isProcessed=function(){return processed},a.exports=f},function(a,s,o){var u=o(0).FDLayout,h=o(4),f=o(3),p=o(5),m=o(2),b=o(1),_=o(0).FDLayoutConstants,w=o(0).LayoutConstants,S=o(0).Point,C=o(0).PointD,A=o(0).Layout,k=o(0).Integer,I=o(0).IGeometry,N=o(0).LGraph,L=o(0).Transform;function P(){u.call(this),this.toBeTiled={}}P.prototype=Object.create(u.prototype);for(var M in u)P[M]=u[M];P.prototype.newGraphManager=function(){var F=new h(this);return this.graphManager=F,F},P.prototype.newGraph=function(F){return new f(null,this.graphManager,F)},P.prototype.newNode=function(F){return new p(this.graphManager,F)},P.prototype.newEdge=function(F){return new m(null,null,F)},P.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.isSubLayout||(b.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=b.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=b.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=_.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=_.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=_.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=_.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=_.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=_.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/_.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=_.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},P.prototype.layout=function(){var F=w.DEFAULT_CREATE_BENDS_AS_NEEDED;return F&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},P.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){if(b.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var U=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(Z){return U.has(Z)});this.graphManager.setAllNodesToApplyGravitation($)}}else{var F=this.getFlatForest();if(F.length>0)this.positionNodesRadially(F);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var U=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(G){return U.has(G)});this.graphManager.setAllNodesToApplyGravitation($),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},P.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%_.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(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 F=new Set(this.getAllNodes()),U=this.nodesWithGravity.filter(function(B){return F.has(B)});this.graphManager.setAllNodesToApplyGravitation(U),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=_.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=_.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var $=!this.isTreeGrowing&&!this.isGrowthFinished,G=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces($,G),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},P.prototype.getPositionsData=function(){for(var F=this.graphManager.getAllNodes(),U={},$=0;$<F.length;$++){var G=F[$].rect,B=F[$].id;U[B]={id:B,x:G.getCenterX(),y:G.getCenterY(),w:G.width,h:G.height}}return U},P.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var F=!1;if(_.ANIMATE==="during")this.emit("layoutstarted");else{for(;!F;)F=this.tick();this.graphManager.updateBounds()}},P.prototype.calculateNodesToApplyGravitationTo=function(){var F=[],U,$=this.graphManager.getGraphs(),G=$.length,B;for(B=0;B<G;B++)U=$[B],U.updateConnected(),U.isConnected||(F=F.concat(U.getNodes()));return F},P.prototype.createBendpoints=function(){var F=[];F=F.concat(this.graphManager.getAllEdges());var U=new Set,$;for($=0;$<F.length;$++){var G=F[$];if(!U.has(G)){var B=G.getSource(),Z=G.getTarget();if(B==Z)G.getBendpoints().push(new C),G.getBendpoints().push(new C),this.createDummyNodesForBendpoints(G),U.add(G);else{var z=[];if(z=z.concat(B.getEdgeListToNode(Z)),z=z.concat(Z.getEdgeListToNode(B)),!U.has(z[0])){if(z.length>1){var Y;for(Y=0;Y<z.length;Y++){var W=z[Y];W.getBendpoints().push(new C),this.createDummyNodesForBendpoints(W)}}z.forEach(function(Q){U.add(Q)})}}}if(U.size==F.length)break}},P.prototype.positionNodesRadially=function(F){for(var U=new S(0,0),$=Math.ceil(Math.sqrt(F.length)),G=0,B=0,Z=0,z=new C(0,0),Y=0;Y<F.length;Y++){Y%$==0&&(Z=0,B=G,Y!=0&&(B+=b.DEFAULT_COMPONENT_SEPERATION),G=0);var W=F[Y],Q=A.findCenterOfTree(W);U.x=Z,U.y=B,z=P.radialLayout(W,Q,U),z.y>G&&(G=Math.floor(z.y)),Z=Math.floor(z.x+b.DEFAULT_COMPONENT_SEPERATION)}this.transform(new C(w.WORLD_CENTER_X-z.x/2,w.WORLD_CENTER_Y-z.y/2))},P.radialLayout=function(F,U,$){var G=Math.max(this.maxDiagonalInTree(F),b.DEFAULT_RADIAL_SEPARATION);P.branchRadialLayout(U,null,0,359,0,G);var B=N.calculateBounds(F),Z=new L;Z.setDeviceOrgX(B.getMinX()),Z.setDeviceOrgY(B.getMinY()),Z.setWorldOrgX($.x),Z.setWorldOrgY($.y);for(var z=0;z<F.length;z++){var Y=F[z];Y.transform(Z)}var W=new C(B.getMaxX(),B.getMaxY());return Z.inverseTransformPoint(W)},P.branchRadialLayout=function(F,U,$,G,B,Z){var z=(G-$+1)/2;z<0&&(z+=180);var Y=(z+$)%360,W=Y*I.TWO_PI/360,Q=B*Math.cos(W),V=B*Math.sin(W);F.setCenter(Q,V);var j=[];j=j.concat(F.getEdges());var ee=j.length;U!=null&&ee--;for(var te=0,ne=j.length,se,ie=F.getEdgesBetween(U);ie.length>1;){var ge=ie[0];ie.splice(0,1);var ce=j.indexOf(ge);ce>=0&&j.splice(ce,1),ne--,ee--}U!=null?se=(j.indexOf(ie[0])+1)%ne:se=0;for(var be=Math.abs(G-$)/ee,ve=se;te!=ee;ve=++ve%ne){var De=j[ve].getOtherEnd(F);if(De!=U){var ye=($+te*be)%360,Ee=(ye+be)%360;P.branchRadialLayout(De,F,ye,Ee,B+Z,Z),te++}}},P.maxDiagonalInTree=function(F){for(var U=k.MIN_VALUE,$=0;$<F.length;$++){var G=F[$],B=G.getDiagonal();B>U&&(U=B)}return U},P.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},P.prototype.groupZeroDegreeMembers=function(){var F=this,U={};this.memberGroups={},this.idToDummyNode={};for(var $=[],G=this.graphManager.getAllNodes(),B=0;B<G.length;B++){var Z=G[B],z=Z.getParent();this.getNodeDegreeWithChildren(Z)===0&&(z.id==null||!this.getToBeTiled(z))&&$.push(Z)}for(var B=0;B<$.length;B++){var Z=$[B],Y=Z.getParent().id;typeof U[Y]>"u"&&(U[Y]=[]),U[Y]=U[Y].concat(Z)}Object.keys(U).forEach(function(W){if(U[W].length>1){var Q="DummyCompound_"+W;F.memberGroups[Q]=U[W];var V=U[W][0].getParent(),j=new p(F.graphManager);j.id=Q,j.paddingLeft=V.paddingLeft||0,j.paddingRight=V.paddingRight||0,j.paddingBottom=V.paddingBottom||0,j.paddingTop=V.paddingTop||0,F.idToDummyNode[Q]=j;var ee=F.getGraphManager().add(F.newGraph(),j),te=V.getChild();te.add(j);for(var ne=0;ne<U[W].length;ne++){var se=U[W][ne];te.remove(se),ee.add(se)}}})},P.prototype.clearCompounds=function(){var F={},U={};this.performDFSOnCompounds();for(var $=0;$<this.compoundOrder.length;$++)U[this.compoundOrder[$].id]=this.compoundOrder[$],F[this.compoundOrder[$].id]=[].concat(this.compoundOrder[$].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[$].getChild()),this.compoundOrder[$].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(F,U)},P.prototype.clearZeroDegreeMembers=function(){var F=this,U=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function($){var G=F.idToDummyNode[$];U[$]=F.tileNodes(F.memberGroups[$],G.paddingLeft+G.paddingRight),G.rect.width=U[$].width,G.rect.height=U[$].height})},P.prototype.repopulateCompounds=function(){for(var F=this.compoundOrder.length-1;F>=0;F--){var U=this.compoundOrder[F],$=U.id,G=U.paddingLeft,B=U.paddingTop;this.adjustLocations(this.tiledMemberPack[$],U.rect.x,U.rect.y,G,B)}},P.prototype.repopulateZeroDegreeMembers=function(){var F=this,U=this.tiledZeroDegreePack;Object.keys(U).forEach(function($){var G=F.idToDummyNode[$],B=G.paddingLeft,Z=G.paddingTop;F.adjustLocations(U[$],G.rect.x,G.rect.y,B,Z)})},P.prototype.getToBeTiled=function(F){var U=F.id;if(this.toBeTiled[U]!=null)return this.toBeTiled[U];var $=F.getChild();if($==null)return this.toBeTiled[U]=!1,!1;for(var G=$.getNodes(),B=0;B<G.length;B++){var Z=G[B];if(this.getNodeDegree(Z)>0)return this.toBeTiled[U]=!1,!1;if(Z.getChild()==null){this.toBeTiled[Z.id]=!1;continue}if(!this.getToBeTiled(Z))return this.toBeTiled[U]=!1,!1}return this.toBeTiled[U]=!0,!0},P.prototype.getNodeDegree=function(F){F.id;for(var U=F.getEdges(),$=0,G=0;G<U.length;G++){var B=U[G];B.getSource().id!==B.getTarget().id&&($=$+1)}return $},P.prototype.getNodeDegreeWithChildren=function(F){var U=this.getNodeDegree(F);if(F.getChild()==null)return U;for(var $=F.getChild().getNodes(),G=0;G<$.length;G++){var B=$[G];U+=this.getNodeDegreeWithChildren(B)}return U},P.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},P.prototype.fillCompexOrderByDFS=function(F){for(var U=0;U<F.length;U++){var $=F[U];$.getChild()!=null&&this.fillCompexOrderByDFS($.getChild().getNodes()),this.getToBeTiled($)&&this.compoundOrder.push($)}},P.prototype.adjustLocations=function(F,U,$,G,B){U+=G,$+=B;for(var Z=U,z=0;z<F.rows.length;z++){var Y=F.rows[z];U=Z;for(var W=0,Q=0;Q<Y.length;Q++){var V=Y[Q];V.rect.x=U,V.rect.y=$,U+=V.rect.width+F.horizontalPadding,V.rect.height>W&&(W=V.rect.height)}$+=W+F.verticalPadding}},P.prototype.tileCompoundMembers=function(F,U){var $=this;this.tiledMemberPack=[],Object.keys(F).forEach(function(G){var B=U[G];$.tiledMemberPack[G]=$.tileNodes(F[G],B.paddingLeft+B.paddingRight),B.rect.width=$.tiledMemberPack[G].width,B.rect.height=$.tiledMemberPack[G].height})},P.prototype.tileNodes=function(F,U){var $=b.TILING_PADDING_VERTICAL,G=b.TILING_PADDING_HORIZONTAL,B={rows:[],rowWidth:[],rowHeight:[],width:0,height:U,verticalPadding:$,horizontalPadding:G};F.sort(function(Y,W){return Y.rect.width*Y.rect.height>W.rect.width*W.rect.height?-1:Y.rect.width*Y.rect.height<W.rect.width*W.rect.height?1:0});for(var Z=0;Z<F.length;Z++){var z=F[Z];B.rows.length==0?this.insertNodeToRow(B,z,0,U):this.canAddHorizontal(B,z.rect.width,z.rect.height)?this.insertNodeToRow(B,z,this.getShortestRowIndex(B),U):this.insertNodeToRow(B,z,B.rows.length,U),this.shiftToLastRow(B)}return B},P.prototype.insertNodeToRow=function(F,U,$,G){var B=G;if($==F.rows.length){var Z=[];F.rows.push(Z),F.rowWidth.push(B),F.rowHeight.push(0)}var z=F.rowWidth[$]+U.rect.width;F.rows[$].length>0&&(z+=F.horizontalPadding),F.rowWidth[$]=z,F.width<z&&(F.width=z);var Y=U.rect.height;$>0&&(Y+=F.verticalPadding);var W=0;Y>F.rowHeight[$]&&(W=F.rowHeight[$],F.rowHeight[$]=Y,W=F.rowHeight[$]-W),F.height+=W,F.rows[$].push(U)},P.prototype.getShortestRowIndex=function(F){for(var U=-1,$=Number.MAX_VALUE,G=0;G<F.rows.length;G++)F.rowWidth[G]<$&&(U=G,$=F.rowWidth[G]);return U},P.prototype.getLongestRowIndex=function(F){for(var U=-1,$=Number.MIN_VALUE,G=0;G<F.rows.length;G++)F.rowWidth[G]>$&&(U=G,$=F.rowWidth[G]);return U},P.prototype.canAddHorizontal=function(F,U,$){var G=this.getShortestRowIndex(F);if(G<0)return!0;var B=F.rowWidth[G];if(B+F.horizontalPadding+U<=F.width)return!0;var Z=0;F.rowHeight[G]<$&&G>0&&(Z=$+F.verticalPadding-F.rowHeight[G]);var z;F.width-B>=U+F.horizontalPadding?z=(F.height+Z)/(B+U+F.horizontalPadding):z=(F.height+Z)/F.width,Z=$+F.verticalPadding;var Y;return F.width<U?Y=(F.height+Z)/U:Y=(F.height+Z)/F.width,Y<1&&(Y=1/Y),z<1&&(z=1/z),z<Y},P.prototype.shiftToLastRow=function(F){var U=this.getLongestRowIndex(F),$=F.rowWidth.length-1,G=F.rows[U],B=G[G.length-1],Z=B.width+F.horizontalPadding;if(F.width-F.rowWidth[$]>Z&&U!=$){G.splice(-1,1),F.rows[$].push(B),F.rowWidth[U]=F.rowWidth[U]-Z,F.rowWidth[$]=F.rowWidth[$]+Z,F.width=F.rowWidth[instance.getLongestRowIndex(F)];for(var z=Number.MIN_VALUE,Y=0;Y<G.length;Y++)G[Y].height>z&&(z=G[Y].height);U>0&&(z+=F.verticalPadding);var W=F.rowHeight[U]+F.rowHeight[$];F.rowHeight[U]=z,F.rowHeight[$]<B.height+F.verticalPadding&&(F.rowHeight[$]=B.height+F.verticalPadding);var Q=F.rowHeight[U]+F.rowHeight[$];F.height+=Q-W,this.shiftToLastRow(F)}},P.prototype.tilingPreLayout=function(){b.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},P.prototype.tilingPostLayout=function(){b.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},P.prototype.reduceTrees=function(){for(var F=[],U=!0,$;U;){var G=this.graphManager.getAllNodes(),B=[];U=!1;for(var Z=0;Z<G.length;Z++)$=G[Z],$.getEdges().length==1&&!$.getEdges()[0].isInterGraph&&$.getChild()==null&&(B.push([$,$.getEdges()[0],$.getOwner()]),U=!0);if(U==!0){for(var z=[],Y=0;Y<B.length;Y++)B[Y][0].getEdges().length==1&&(z.push(B[Y]),B[Y][0].getOwner().remove(B[Y][0]));F.push(z),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=F},P.prototype.growTree=function(F){for(var U=F.length,$=F[U-1],G,B=0;B<$.length;B++)G=$[B],this.findPlaceforPrunedNode(G),G[2].add(G[0]),G[2].add(G[1],G[1].source,G[1].target);F.splice(F.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},P.prototype.findPlaceforPrunedNode=function(F){var U,$,G=F[0];G==F[1].source?$=F[1].target:$=F[1].source;var B=$.startX,Z=$.finishX,z=$.startY,Y=$.finishY,W=0,Q=0,V=0,j=0,ee=[W,V,Q,j];if(z>0)for(var te=B;te<=Z;te++)ee[0]+=this.grid[te][z-1].length+this.grid[te][z].length-1;if(Z<this.grid.length-1)for(var te=z;te<=Y;te++)ee[1]+=this.grid[Z+1][te].length+this.grid[Z][te].length-1;if(Y<this.grid[0].length-1)for(var te=B;te<=Z;te++)ee[2]+=this.grid[te][Y+1].length+this.grid[te][Y].length-1;if(B>0)for(var te=z;te<=Y;te++)ee[3]+=this.grid[B-1][te].length+this.grid[B][te].length-1;for(var ne=k.MAX_VALUE,se,ie,ge=0;ge<ee.length;ge++)ee[ge]<ne?(ne=ee[ge],se=1,ie=ge):ee[ge]==ne&&se++;if(se==3&&ne==0)ee[0]==0&&ee[1]==0&&ee[2]==0?U=1:ee[0]==0&&ee[1]==0&&ee[3]==0?U=0:ee[0]==0&&ee[2]==0&&ee[3]==0?U=3:ee[1]==0&&ee[2]==0&&ee[3]==0&&(U=2);else if(se==2&&ne==0){var ce=Math.floor(Math.random()*2);ee[0]==0&&ee[1]==0?ce==0?U=0:U=1:ee[0]==0&&ee[2]==0?ce==0?U=0:U=2:ee[0]==0&&ee[3]==0?ce==0?U=0:U=3:ee[1]==0&&ee[2]==0?ce==0?U=1:U=2:ee[1]==0&&ee[3]==0?ce==0?U=1:U=3:ce==0?U=2:U=3}else if(se==4&&ne==0){var ce=Math.floor(Math.random()*4);U=ce}else U=ie;U==0?G.setCenter($.getCenterX(),$.getCenterY()-$.getHeight()/2-_.DEFAULT_EDGE_LENGTH-G.getHeight()/2):U==1?G.setCenter($.getCenterX()+$.getWidth()/2+_.DEFAULT_EDGE_LENGTH+G.getWidth()/2,$.getCenterY()):U==2?G.setCenter($.getCenterX(),$.getCenterY()+$.getHeight()/2+_.DEFAULT_EDGE_LENGTH+G.getHeight()/2):G.setCenter($.getCenterX()-$.getWidth()/2-_.DEFAULT_EDGE_LENGTH-G.getWidth()/2,$.getCenterY())},a.exports=P},function(a,s,o){var u={};u.layoutBase=o(0),u.CoSEConstants=o(1),u.CoSEEdge=o(2),u.CoSEGraph=o(3),u.CoSEGraphManager=o(4),u.CoSELayout=o(6),u.CoSENode=o(5),a.exports=u}])})}(bit)),bit.exports}(function(e,t){(function(a,s){e.exports=s(l9i())})(ml,function(r){return function(a){var s={};function o(u){if(s[u])return s[u].exports;var h=s[u]={i:u,l:!1,exports:{}};return a[u].call(h.exports,h,h.exports,o),h.l=!0,h.exports}return o.m=a,o.c=s,o.i=function(u){return u},o.d=function(u,h,f){o.o(u,h)||Object.defineProperty(u,h,{configurable:!1,enumerable:!0,get:f})},o.n=function(u){var h=u&&u.__esModule?function(){return u.default}:function(){return u};return o.d(h,"a",h),h},o.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},o.p="",o(o.s=1)}([function(a,s){a.exports=r},function(a,s,o){var u=o(0).layoutBase.LayoutConstants,h=o(0).layoutBase.FDLayoutConstants,f=o(0).CoSEConstants,p=o(0).CoSELayout,m=o(0).CoSENode,b=o(0).layoutBase.PointD,_=o(0).layoutBase.DimensionD,w={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 S(I,N){var L={};for(var P in I)L[P]=I[P];for(var P in N)L[P]=N[P];return L}function C(I){this.options=S(w,I),A(this.options)}var A=function(N){N.nodeRepulsion!=null&&(f.DEFAULT_REPULSION_STRENGTH=h.DEFAULT_REPULSION_STRENGTH=N.nodeRepulsion),N.idealEdgeLength!=null&&(f.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=N.idealEdgeLength),N.edgeElasticity!=null&&(f.DEFAULT_SPRING_STRENGTH=h.DEFAULT_SPRING_STRENGTH=N.edgeElasticity),N.nestingFactor!=null&&(f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=N.nestingFactor),N.gravity!=null&&(f.DEFAULT_GRAVITY_STRENGTH=h.DEFAULT_GRAVITY_STRENGTH=N.gravity),N.numIter!=null&&(f.MAX_ITERATIONS=h.MAX_ITERATIONS=N.numIter),N.gravityRange!=null&&(f.DEFAULT_GRAVITY_RANGE_FACTOR=h.DEFAULT_GRAVITY_RANGE_FACTOR=N.gravityRange),N.gravityCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=N.gravityCompound),N.gravityRangeCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=N.gravityRangeCompound),N.initialEnergyOnIncremental!=null&&(f.DEFAULT_COOLING_FACTOR_INCREMENTAL=h.DEFAULT_COOLING_FACTOR_INCREMENTAL=N.initialEnergyOnIncremental),N.quality=="draft"?u.QUALITY=0:N.quality=="proof"?u.QUALITY=2:u.QUALITY=1,f.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=N.nodeDimensionsIncludeLabels,f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=!N.randomize,f.ANIMATE=h.ANIMATE=u.ANIMATE=N.animate,f.TILE=N.tile,f.TILING_PADDING_VERTICAL=typeof N.tilingPaddingVertical=="function"?N.tilingPaddingVertical.call():N.tilingPaddingVertical,f.TILING_PADDING_HORIZONTAL=typeof N.tilingPaddingHorizontal=="function"?N.tilingPaddingHorizontal.call():N.tilingPaddingHorizontal};C.prototype.run=function(){var I,N,L=this.options;this.idToLNode={};var P=this.layout=new p,M=this;M.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var F=P.newGraphManager();this.gm=F;var U=this.options.eles.nodes(),$=this.options.eles.edges();this.root=F.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(U),P);for(var G=0;G<$.length;G++){var B=$[G],Z=this.idToLNode[B.data("source")],z=this.idToLNode[B.data("target")];if(Z!==z&&Z.getEdgesBetween(z).length==0){var Y=F.add(P.newEdge(),Z,z);Y.id=B.id()}}var W=function(j,ee){typeof j=="number"&&(j=ee);var te=j.data("id"),ne=M.idToLNode[te];return{x:ne.getRect().getCenterX(),y:ne.getRect().getCenterY()}},Q=function V(){for(var j=function(){L.fit&&L.cy.fit(L.eles,L.padding),I||(I=!0,M.cy.one("layoutready",L.ready),M.cy.trigger({type:"layoutready",layout:M}))},ee=M.options.refresh,te,ne=0;ne<ee&&!te;ne++)te=M.stopped||M.layout.tick();if(te){P.checkLayoutSuccess()&&!P.isSubLayout&&P.doPostLayout(),P.tilingPostLayout&&P.tilingPostLayout(),P.isLayoutFinished=!0,M.options.eles.nodes().positions(W),j(),M.cy.one("layoutstop",M.options.stop),M.cy.trigger({type:"layoutstop",layout:M}),N&&cancelAnimationFrame(N),I=!1;return}var se=M.layout.getPositionsData();L.eles.nodes().positions(function(ie,ge){if(typeof ie=="number"&&(ie=ge),!ie.isParent()){for(var ce=ie.id(),be=se[ce],ve=ie;be==null&&(be=se[ve.data("parent")]||se["DummyCompound_"+ve.data("parent")],se[ce]=be,ve=ve.parent()[0],ve!=null););return be!=null?{x:be.x,y:be.y}:{x:ie.position("x"),y:ie.position("y")}}}),j(),N=requestAnimationFrame(V)};return P.addListener("layoutstarted",function(){M.options.animate==="during"&&(N=requestAnimationFrame(Q))}),P.runLayout(),this.options.animate!=="during"&&(M.options.eles.nodes().not(":parent").layoutPositions(M,M.options,W),I=!1),this},C.prototype.getTopMostNodes=function(I){for(var N={},L=0;L<I.length;L++)N[I[L].id()]=!0;var P=I.filter(function(M,F){typeof M=="number"&&(M=F);for(var U=M.parent()[0];U!=null;){if(N[U.id()])return!1;U=U.parent()[0]}return!0});return P},C.prototype.processChildrenList=function(I,N,L){for(var P=N.length,M=0;M<P;M++){var F=N[M],U=F.children(),$,G=F.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(F.outerWidth()!=null&&F.outerHeight()!=null?$=I.add(new m(L.graphManager,new b(F.position("x")-G.w/2,F.position("y")-G.h/2),new _(parseFloat(G.w),parseFloat(G.h)))):$=I.add(new m(this.graphManager)),$.id=F.data("id"),$.paddingLeft=parseInt(F.css("padding")),$.paddingTop=parseInt(F.css("padding")),$.paddingRight=parseInt(F.css("padding")),$.paddingBottom=parseInt(F.css("padding")),this.options.nodeDimensionsIncludeLabels&&F.isParent()){var B=F.boundingBox({includeLabels:!0,includeNodes:!1}).w,Z=F.boundingBox({includeLabels:!0,includeNodes:!1}).h,z=F.css("text-halign");$.labelWidth=B,$.labelHeight=Z,$.labelPos=z}if(this.idToLNode[F.data("id")]=$,isNaN($.rect.x)&&($.rect.x=0),isNaN($.rect.y)&&($.rect.y=0),U!=null&&U.length>0){var Y;Y=L.getGraphManager().add(L.newGraph(),$),this.processChildrenList(Y,U,L)}}},C.prototype.stop=function(){return this.stopped=!0,this};var k=function(N){N("layout","cose-bilkent",C)};typeof cytoscape<"u"&&k(cytoscape),a.exports=k}])})})(WVn);var c9i=WVn.exports;const KVn=O1(c9i);CS.use(KVn);function XVn(e,t){e.forEach(r=>{const a={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach(s=>{["id","label","height","width","padding","x","y"].includes(s)||(a[s]=r[s])}),t.add({group:"nodes",data:a,position:{x:r.x??0,y:r.y??0}})})}X(XVn,"addNodes");function QVn(e,t){e.forEach(r=>{const a={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(s=>{["id","start","end"].includes(s)||(a[s]=r[s])}),t.add({group:"edges",data:a})})}X(QVn,"addEdges");function ZVn(e){return new Promise(t=>{const r=gn("body").append("div").attr("id","cy").attr("style","display:none"),a=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),XVn(e.nodes,a),QVn(e.edges,a),a.nodes().forEach(function(o){o.layoutDimensions=()=>{const u=o.data();return{w:u.width,h:u.height}}});const s={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};a.layout(s).run(),a.ready(o=>{it.info("Cytoscape ready",o),t(a)})})}X(ZVn,"createCytoscapeInstance");function JVn(e){return e.nodes().map(t=>{const r=t.data(),a=t.position(),s={id:r.id,x:a.x,y:a.y};return Object.keys(r).forEach(o=>{o!=="id"&&(s[o]=r[o])}),s})}X(JVn,"extractPositionedNodes");function eYn(e){return e.edges().map(t=>{const r=t.data(),a=t._private.rscratch,s={id:r.id,source:r.source,target:r.target,startX:a.startX,startY:a.startY,midX:a.midX,midY:a.midY,endX:a.endX,endY:a.endY};return Object.keys(r).forEach(o=>{["id","source","target"].includes(o)||(s[o]=r[o])}),s})}X(eYn,"extractPositionedEdges");async function tYn(e,t){it.debug("Starting cose-bilkent layout algorithm");try{nYn(e);const r=await ZVn(e),a=JVn(r),s=eYn(r);return it.debug(`Layout completed: ${a.length} nodes, ${s.length} edges`),{nodes:a,edges:s}}catch(r){throw it.error("Error in cose-bilkent layout algorithm:",r),r}}X(tYn,"executeCoseBilkentLayout");function nYn(e){if(!e)throw new Error("Layout data is required");if(!e.config)throw new Error("Configuration is required in layout data");if(!e.rootNode)throw new Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw new Error("Edges array is required in layout data");return!0}X(nYn,"validateLayoutData");var u9i=X(async(e,t,{insertCluster:r,insertEdge:a,insertEdgeLabel:s,insertMarkers:o,insertNode:u,log:h,positionEdgeLabel:f},{algorithm:p})=>{const m={},b={},_=t.select("g");o(_,e.markers,e.type,e.diagramId);const w=_.insert("g").attr("class","subgraphs"),S=_.insert("g").attr("class","edgePaths"),C=_.insert("g").attr("class","edgeLabels"),A=_.insert("g").attr("class","nodes");h.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async N=>{if(N.isGroup){const L={...N};b[N.id]=L,m[N.id]=L,await r(w,N)}else{const L={...N};m[N.id]=L;const P=await u(A,N,{config:e.config,dir:e.direction||"TB"}),M=P.node().getBBox();L.width=M.width,L.height=M.height,L.domId=P,h.debug(`Node ${N.id} dimensions: ${M.width}x${M.height}`)}})),h.debug("Running cose-bilkent layout algorithm");const k={...e,nodes:e.nodes.map(N=>{const L=m[N.id];return{...N,width:L.width,height:L.height}})},I=await tYn(k,e.config);h.debug("Positioning nodes based on layout results"),I.nodes.forEach(N=>{const L=m[N.id];L!=null&&L.domId&&(L.domId.attr("transform",`translate(${N.x}, ${N.y})`),L.x=N.x,L.y=N.y,h.debug(`Positioned node ${L.id} at center (${N.x}, ${N.y})`))}),I.edges.forEach(N=>{const L=e.edges.find(P=>P.id===N.id);L&&(L.points=[{x:N.startX,y:N.startY},{x:N.midX,y:N.midY},{x:N.endX,y:N.endY}])}),h.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async N=>{await s(C,N);const L=m[N.start??""],P=m[N.end??""];if(L&&P){const M=I.edges.find(F=>F.id===N.id);if(M){h.debug("APA01 positionedEdge",M);const F={...N},U=a(S,F,b,e.type,L,P,e.diagramId);f(F,U)}else{const F={...N,points:[{x:L.x||0,y:L.y||0},{x:P.x||0,y:P.y||0}]},U=a(S,F,b,e.type,L,P,e.diagramId);f(F,U)}}})),h.debug("Cose-bilkent rendering completed")},"render"),h9i=u9i;const d9i=Object.freeze(Object.defineProperty({__proto__:null,render:h9i},Symbol.toStringTag,{value:"Module"}));var vke=X((e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class&&r.attr("class",t.class),r},"drawRect"),rYn=X((e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};vke(e,r).lower()},"drawBackgroundRect"),f9i=X((e,t)=>{const r=t.text.replace(DW," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},"drawText"),Pgt=X((e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const o=M9(a);s.attr("xlink:href",o)},"drawImage"),Bgt=X((e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const o=M9(a);s.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),Ww=X(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Fgt=X(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),J3e=function(){var e=X(function(Ft,Je,ht,et){for(ht=ht||{},et=Ft.length;et--;ht[Ft[et]]=Je);return ht},"o"),t=[1,24],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,63],h=[1,64],f=[1,65],p=[1,66],m=[1,67],b=[1,68],_=[1,69],w=[1,29],S=[1,30],C=[1,31],A=[1,32],k=[1,33],I=[1,34],N=[1,35],L=[1,36],P=[1,37],M=[1,38],F=[1,39],U=[1,40],$=[1,41],G=[1,42],B=[1,43],Z=[1,44],z=[1,45],Y=[1,46],W=[1,47],Q=[1,48],V=[1,50],j=[1,51],ee=[1,52],te=[1,53],ne=[1,54],se=[1,55],ie=[1,56],ge=[1,57],ce=[1,58],be=[1,59],ve=[1,60],De=[14,42],ye=[14,34,36,37,38,39,40,41,42,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,70,71,72,73,74],Ee=[12,14,34,36,37,38,39,40,41,42,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,70,71,72,73,74],he=[1,82],we=[1,83],Ce=[1,84],Ie=[1,85],Le=[12,14,42],Fe=[12,14,33,42],Ve=[12,14,33,42,76,77,79,80],Oe=[12,33],Dt=[34,36,37,38,39,40,41,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,70,71,72,73,74],ot={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:X(function(Je,ht,et,qe,He,Ge,Ye){var Ae=Ge.length-1;switch(He){case 3:qe.setDirection("TB");break;case 4:qe.setDirection("BT");break;case 5:qe.setDirection("RL");break;case 6:qe.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:qe.setC4Type(Ge[Ae-3]);break;case 19:qe.setTitle(Ge[Ae].substring(6)),this.$=Ge[Ae].substring(6);break;case 20:qe.setAccDescription(Ge[Ae].substring(15)),this.$=Ge[Ae].substring(15);break;case 21:this.$=Ge[Ae].trim(),qe.setTitle(this.$);break;case 22:case 23:this.$=Ge[Ae].trim(),qe.setAccDescription(this.$);break;case 28:Ge[Ae].splice(2,0,"ENTERPRISE"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 29:Ge[Ae].splice(2,0,"SYSTEM"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 30:qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 31:Ge[Ae].splice(2,0,"CONTAINER"),qe.addContainerBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 32:qe.addDeploymentNode("node",...Ge[Ae]),this.$=Ge[Ae];break;case 33:qe.addDeploymentNode("nodeL",...Ge[Ae]),this.$=Ge[Ae];break;case 34:qe.addDeploymentNode("nodeR",...Ge[Ae]),this.$=Ge[Ae];break;case 35:qe.popBoundaryParseStack();break;case 39:qe.addPersonOrSystem("person",...Ge[Ae]),this.$=Ge[Ae];break;case 40:qe.addPersonOrSystem("external_person",...Ge[Ae]),this.$=Ge[Ae];break;case 41:qe.addPersonOrSystem("system",...Ge[Ae]),this.$=Ge[Ae];break;case 42:qe.addPersonOrSystem("system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 43:qe.addPersonOrSystem("system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 44:qe.addPersonOrSystem("external_system",...Ge[Ae]),this.$=Ge[Ae];break;case 45:qe.addPersonOrSystem("external_system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 46:qe.addPersonOrSystem("external_system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 47:qe.addContainer("container",...Ge[Ae]),this.$=Ge[Ae];break;case 48:qe.addContainer("container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 49:qe.addContainer("container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 50:qe.addContainer("external_container",...Ge[Ae]),this.$=Ge[Ae];break;case 51:qe.addContainer("external_container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 52:qe.addContainer("external_container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 53:qe.addComponent("component",...Ge[Ae]),this.$=Ge[Ae];break;case 54:qe.addComponent("component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 55:qe.addComponent("component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 56:qe.addComponent("external_component",...Ge[Ae]),this.$=Ge[Ae];break;case 57:qe.addComponent("external_component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 58:qe.addComponent("external_component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 60:qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 61:qe.addRel("birel",...Ge[Ae]),this.$=Ge[Ae];break;case 62:qe.addRel("rel_u",...Ge[Ae]),this.$=Ge[Ae];break;case 63:qe.addRel("rel_d",...Ge[Ae]),this.$=Ge[Ae];break;case 64:qe.addRel("rel_l",...Ge[Ae]),this.$=Ge[Ae];break;case 65:qe.addRel("rel_r",...Ge[Ae]),this.$=Ge[Ae];break;case 66:qe.addRel("rel_b",...Ge[Ae]),this.$=Ge[Ae];break;case 67:Ge[Ae].splice(0,1),qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 68:qe.updateElStyle("update_el_style",...Ge[Ae]),this.$=Ge[Ae];break;case 69:qe.updateRelStyle("update_rel_style",...Ge[Ae]),this.$=Ge[Ae];break;case 70:qe.updateLayoutConfig("update_layout_config",...Ge[Ae]),this.$=Ge[Ae];break;case 71:this.$=[Ge[Ae]];break;case 72:Ge[Ae].unshift(Ge[Ae-1]),this.$=Ge[Ae];break;case 73:case 75:this.$=Ge[Ae].trim();break;case 74:let Xe={};Xe[Ge[Ae-1].trim()]=Ge[Ae].trim(),this.$=Xe;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:70,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:71,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:72,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:73,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{14:[1,74]},e(De,[2,13],{43:23,29:49,30:61,32:62,20:75,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(De,[2,14]),e(ye,[2,16],{12:[1,76]}),e(De,[2,36],{12:[1,77]}),e(Ee,[2,19]),e(Ee,[2,20]),{25:[1,78]},{27:[1,79]},e(Ee,[2,23]),{35:80,75:81,76:he,77:we,79:Ce,80:Ie},{35:86,75:81,76:he,77:we,79:Ce,80:Ie},{35:87,75:81,76:he,77:we,79:Ce,80:Ie},{35:88,75:81,76:he,77:we,79:Ce,80:Ie},{35:89,75:81,76:he,77:we,79:Ce,80:Ie},{35:90,75:81,76:he,77:we,79:Ce,80:Ie},{35:91,75:81,76:he,77:we,79:Ce,80:Ie},{35:92,75:81,76:he,77:we,79:Ce,80:Ie},{35:93,75:81,76:he,77:we,79:Ce,80:Ie},{35:94,75:81,76:he,77:we,79:Ce,80:Ie},{35:95,75:81,76:he,77:we,79:Ce,80:Ie},{35:96,75:81,76:he,77:we,79:Ce,80:Ie},{35:97,75:81,76:he,77:we,79:Ce,80:Ie},{35:98,75:81,76:he,77:we,79:Ce,80:Ie},{35:99,75:81,76:he,77:we,79:Ce,80:Ie},{35:100,75:81,76:he,77:we,79:Ce,80:Ie},{35:101,75:81,76:he,77:we,79:Ce,80:Ie},{35:102,75:81,76:he,77:we,79:Ce,80:Ie},{35:103,75:81,76:he,77:we,79:Ce,80:Ie},{35:104,75:81,76:he,77:we,79:Ce,80:Ie},e(Le,[2,59]),{35:105,75:81,76:he,77:we,79:Ce,80:Ie},{35:106,75:81,76:he,77:we,79:Ce,80:Ie},{35:107,75:81,76:he,77:we,79:Ce,80:Ie},{35:108,75:81,76:he,77:we,79:Ce,80:Ie},{35:109,75:81,76:he,77:we,79:Ce,80:Ie},{35:110,75:81,76:he,77:we,79:Ce,80:Ie},{35:111,75:81,76:he,77:we,79:Ce,80:Ie},{35:112,75:81,76:he,77:we,79:Ce,80:Ie},{35:113,75:81,76:he,77:we,79:Ce,80:Ie},{35:114,75:81,76:he,77:we,79:Ce,80:Ie},{35:115,75:81,76:he,77:we,79:Ce,80:Ie},{20:116,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:we,79:Ce,80:Ie},{35:120,75:81,76:he,77:we,79:Ce,80:Ie},{35:121,75:81,76:he,77:we,79:Ce,80:Ie},{35:122,75:81,76:he,77:we,79:Ce,80:Ie},{35:123,75:81,76:he,77:we,79:Ce,80:Ie},{35:124,75:81,76:he,77:we,79:Ce,80:Ie},{35:125,75:81,76:he,77:we,79:Ce,80:Ie},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(De,[2,15]),e(ye,[2,17],{21:22,19:130,22:t,23:r,24:a,26:s,28:o}),e(De,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:a,26:s,28:o,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(Ee,[2,21]),e(Ee,[2,22]),e(Le,[2,39]),e(Fe,[2,71],{75:81,35:132,76:he,77:we,79:Ce,80:Ie}),e(Ve,[2,73]),{78:[1,133]},e(Ve,[2,75]),e(Ve,[2,76]),e(Le,[2,40]),e(Le,[2,41]),e(Le,[2,42]),e(Le,[2,43]),e(Le,[2,44]),e(Le,[2,45]),e(Le,[2,46]),e(Le,[2,47]),e(Le,[2,48]),e(Le,[2,49]),e(Le,[2,50]),e(Le,[2,51]),e(Le,[2,52]),e(Le,[2,53]),e(Le,[2,54]),e(Le,[2,55]),e(Le,[2,56]),e(Le,[2,57]),e(Le,[2,58]),e(Le,[2,60]),e(Le,[2,61]),e(Le,[2,62]),e(Le,[2,63]),e(Le,[2,64]),e(Le,[2,65]),e(Le,[2,66]),e(Le,[2,67]),e(Le,[2,68]),e(Le,[2,69]),e(Le,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Oe,[2,28]),e(Oe,[2,29]),e(Oe,[2,30]),e(Oe,[2,31]),e(Oe,[2,32]),e(Oe,[2,33]),e(Oe,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ye,[2,18]),e(De,[2,38]),e(Fe,[2,72]),e(Ve,[2,74]),e(Le,[2,24]),e(Le,[2,35]),e(Dt,[2,25]),e(Dt,[2,26],{12:[1,138]}),e(Dt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:X(function(Je,ht){if(ht.recoverable)this.trace(Je);else{var et=new Error(Je);throw et.hash=ht,et}},"parseError"),parse:X(function(Je){var ht=this,et=[0],qe=[],He=[null],Ge=[],Ye=this.table,Ae="",Xe=0,fe=0,Qe=2,Ke=1,mt=Ge.slice.call(arguments,1),lt=Object.create(this.lexer),$t={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&($t.yy[Ut]=this.yy[Ut]);lt.setInput(Je,$t.yy),$t.yy.lexer=lt,$t.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var Jt=lt.yylloc;Ge.push(Jt);var wn=lt.options&&lt.options.ranges;typeof $t.yy.parseError=="function"?this.parseError=$t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vn(Cr){et.length=et.length-2*Cr,He.length=He.length-Cr,Ge.length=Ge.length-Cr}X(Vn,"popStack");function Wn(){var Cr;return Cr=qe.pop()||lt.lex()||Ke,typeof Cr!="number"&&(Cr instanceof Array&&(qe=Cr,Cr=qe.pop()),Cr=ht.symbols_[Cr]||Cr),Cr}X(Wn,"lex");for(var Dn,zn,vn,Cn,Ar={},ur,On,Ir,Ln;;){if(zn=et[et.length-1],this.defaultActions[zn]?vn=this.defaultActions[zn]:((Dn===null||typeof Dn>"u")&&(Dn=Wn()),vn=Ye[zn]&&Ye[zn][Dn]),typeof vn>"u"||!vn.length||!vn[0]){var pr="";Ln=[];for(ur in Ye[zn])this.terminals_[ur]&&ur>Qe&&Ln.push("'"+this.terminals_[ur]+"'");lt.showPosition?pr="Parse error on line "+(Xe+1)+`:
`+lt.showPosition()+`
Expecting `+Ln.join(", ")+", got '"+(this.terminals_[Dn]||Dn)+"'":pr="Parse error on line "+(Xe+1)+": Unexpected "+(Dn==Ke?"end of input":"'"+(this.terminals_[Dn]||Dn)+"'"),this.parseError(pr,{text:lt.match,token:this.terminals_[Dn]||Dn,line:lt.yylineno,loc:Jt,expected:Ln})}if(vn[0]instanceof Array&&vn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zn+", token: "+Dn);switch(vn[0]){case 1:et.push(Dn),He.push(lt.yytext),Ge.push(lt.yylloc),et.push(vn[1]),Dn=null,fe=lt.yyleng,Ae=lt.yytext,Xe=lt.yylineno,Jt=lt.yylloc;break;case 2:if(On=this.productions_[vn[1]][1],Ar.$=He[He.length-On],Ar._$={first_line:Ge[Ge.length-(On||1)].first_line,last_line:Ge[Ge.length-1].last_line,first_column:Ge[Ge.length-(On||1)].first_column,last_column:Ge[Ge.length-1].last_column},wn&&(Ar._$.range=[Ge[Ge.length-(On||1)].range[0],Ge[Ge.length-1].range[1]]),Cn=this.performAction.apply(Ar,[Ae,fe,Xe,$t.yy,vn[1],He,Ge].concat(mt)),typeof Cn<"u")return Cn;On&&(et=et.slice(0,-1*On*2),He=He.slice(0,-1*On),Ge=Ge.slice(0,-1*On)),et.push(this.productions_[vn[1]][0]),He.push(Ar.$),Ge.push(Ar._$),Ir=Ye[et[et.length-2]][et[et.length-1]],et.push(Ir);break;case 3:return!0}}return!0},"parse")},sn=function(){var Ft={EOF:1,parseError:X(function(ht,et){if(this.yy.parser)this.yy.parser.parseError(ht,et);else throw new Error(ht)},"parseError"),setInput:X(function(Je,ht){return this.yy=ht||this.yy||{},this._input=Je,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},"setInput"),input:X(function(){var Je=this._input[0];this.yytext+=Je,this.yyleng++,this.offset++,this.match+=Je,this.matched+=Je;var ht=Je.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Je},"input"),unput:X(function(Je){var ht=Je.length,et=Je.split(/(?:\r\n?|\n)/g);this._input=Je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var qe=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),et.length-1&&(this.yylineno-=et.length-1);var He=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:et?(et.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-et.length].length-et[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Je){this.unput(this.match.slice(Je))},"less"),pastInput:X(function(){var Je=this.matched.substr(0,this.matched.length-this.match.length);return(Je.length>20?"...":"")+Je.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Je=this.match;return Je.length<20&&(Je+=this._input.substr(0,20-Je.length)),(Je.substr(0,20)+(Je.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Je=this.pastInput(),ht=new Array(Je.length+1).join("-");return Je+this.upcomingInput()+`
`+ht+"^"},"showPosition"),test_match:X(function(Je,ht){var et,qe,He;if(this.options.backtrack_lexer&&(He={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&&(He.yylloc.range=this.yylloc.range.slice(0))),qe=Je[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Je[0].length},this.yytext+=Je[0],this.match+=Je[0],this.matches=Je,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(Je[0].length),this.matched+=Je[0],et=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var Ge in He)this[Ge]=He[Ge];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Je,ht,et,qe;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),Ge=0;Ge<He.length;Ge++)if(et=this._input.match(this.rules[He[Ge]]),et&&(!ht||et[0].length>ht[0].length)){if(ht=et,qe=Ge,this.options.backtrack_lexer){if(Je=this.test_match(et,He[Ge]),Je!==!1)return Je;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(Je=this.test_match(ht,He[qe]),Je!==!1?Je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var ht=this.next();return ht||this.lex()},"lex"),begin:X(function(ht){this.conditionStack.push(ht)},"begin"),popState:X(function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},"topState"),pushState:X(function(ht){this.begin(ht)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(ht,et,qe,He){switch(qe){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,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,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ft}();ot.lexer=sn;function Kt(){this.yy={}}return X(Kt,"Parser"),Kt.prototype=ot,ot.Parser=Kt,new Kt}();J3e.parser=J3e;var p9i=J3e,cT=[],DO=[""],rv="global",J3="",wA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Qoe=[],$gt="",Ugt=!1,eTe=4,tTe=2,iYn,g9i=X(function(){return iYn},"getC4Type"),m9i=X(function(e){iYn=Ic(e,nn())},"setC4Type"),b9i=X(function(e,t,r,a,s,o,u,h,f){if(e==null||t===void 0||t===null||r===void 0||r===null||a===void 0||a===null)return;let p={};const m=Qoe.find(b=>b.from===t&&b.to===r);if(m?p=m:Qoe.push(p),p.type=e,p.from=t,p.to=r,p.label={text:a},s==null)p.techn={text:""};else if(typeof s=="object"){let[b,_]=Object.entries(s)[0];p[b]={text:_}}else p.techn={text:s};if(o==null)p.descr={text:""};else if(typeof o=="object"){let[b,_]=Object.entries(o)[0];p[b]={text:_}}else p.descr={text:o};if(typeof u=="object"){let[b,_]=Object.entries(u)[0];p[b]=_}else p.sprite=u;if(typeof h=="object"){let[b,_]=Object.entries(h)[0];p[b]=_}else p.tags=h;if(typeof f=="object"){let[b,_]=Object.entries(f)[0];p[b]=_}else p.link=f;p.wrap=X9()},"addRel"),y9i=X(function(e,t,r,a,s,o,u){if(t===null||r===null)return;let h={};const f=cT.find(p=>p.alias===t);if(f&&t===f.alias?h=f:(h.alias=t,cT.push(h)),r==null?h.label={text:""}:h.label={text:r},a==null)h.descr={text:""};else if(typeof a=="object"){let[p,m]=Object.entries(a)[0];h[p]={text:m}}else h.descr={text:a};if(typeof s=="object"){let[p,m]=Object.entries(s)[0];h[p]=m}else h.sprite=s;if(typeof o=="object"){let[p,m]=Object.entries(o)[0];h[p]=m}else h.tags=o;if(typeof u=="object"){let[p,m]=Object.entries(u)[0];h[p]=m}else h.link=u;h.typeC4Shape={text:e},h.parentBoundary=rv,h.wrap=X9()},"addPersonOrSystem"),v9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=cT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,cT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=X9(),f.typeC4Shape={text:e},f.parentBoundary=rv},"addContainer"),_9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=cT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,cT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=X9(),f.typeC4Shape={text:e},f.parentBoundary=rv},"addComponent"),w9i=X(function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=wA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,wA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"system"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=rv,o.wrap=X9(),J3=rv,rv=e,DO.push(J3)},"addPersonOrSystemBoundary"),E9i=X(function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=wA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,wA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"container"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=rv,o.wrap=X9(),J3=rv,rv=e,DO.push(J3)},"addContainerBoundary"),x9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=wA.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,wA.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.type={text:"node"};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.type={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.nodeType=e,f.parentBoundary=rv,f.wrap=X9(),J3=rv,rv=t,DO.push(J3)},"addDeploymentNode"),S9i=X(function(){rv=J3,DO.pop(),J3=DO.pop(),DO.push(J3)},"popBoundaryParseStack"),T9i=X(function(e,t,r,a,s,o,u,h,f,p,m){let b=cT.find(_=>_.alias===t);if(!(b===void 0&&(b=wA.find(_=>_.alias===t),b===void 0))){if(r!=null)if(typeof r=="object"){let[_,w]=Object.entries(r)[0];b[_]=w}else b.bgColor=r;if(a!=null)if(typeof a=="object"){let[_,w]=Object.entries(a)[0];b[_]=w}else b.fontColor=a;if(s!=null)if(typeof s=="object"){let[_,w]=Object.entries(s)[0];b[_]=w}else b.borderColor=s;if(o!=null)if(typeof o=="object"){let[_,w]=Object.entries(o)[0];b[_]=w}else b.shadowing=o;if(u!=null)if(typeof u=="object"){let[_,w]=Object.entries(u)[0];b[_]=w}else b.shape=u;if(h!=null)if(typeof h=="object"){let[_,w]=Object.entries(h)[0];b[_]=w}else b.sprite=h;if(f!=null)if(typeof f=="object"){let[_,w]=Object.entries(f)[0];b[_]=w}else b.techn=f;if(p!=null)if(typeof p=="object"){let[_,w]=Object.entries(p)[0];b[_]=w}else b.legendText=p;if(m!=null)if(typeof m=="object"){let[_,w]=Object.entries(m)[0];b[_]=w}else b.legendSprite=m}},"updateElStyle"),C9i=X(function(e,t,r,a,s,o,u){const h=Qoe.find(f=>f.from===t&&f.to===r);if(h!==void 0){if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.textColor=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.lineColor=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=parseInt(p)}else h.offsetX=parseInt(o);if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=parseInt(p)}else h.offsetY=parseInt(u)}},"updateRelStyle"),A9i=X(function(e,t,r){let a=eTe,s=tTe;if(typeof t=="object"){const o=Object.values(t)[0];a=parseInt(o)}else a=parseInt(t);if(typeof r=="object"){const o=Object.values(r)[0];s=parseInt(o)}else s=parseInt(r);a>=1&&(eTe=a),s>=1&&(tTe=s)},"updateLayoutConfig"),k9i=X(function(){return eTe},"getC4ShapeInRow"),R9i=X(function(){return tTe},"getC4BoundaryInRow"),I9i=X(function(){return rv},"getCurrentBoundaryParse"),N9i=X(function(){return J3},"getParentBoundaryParse"),aYn=X(function(e){return e==null?cT:cT.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),O9i=X(function(e){return cT.find(t=>t.alias===e)},"getC4Shape"),L9i=X(function(e){return Object.keys(aYn(e))},"getC4ShapeKeys"),sYn=X(function(e){return e==null?wA:wA.filter(t=>t.parentBoundary===e)},"getBoundaries"),D9i=sYn,M9i=X(function(){return Qoe},"getRels"),P9i=X(function(){return $gt},"getTitle"),B9i=X(function(e){Ugt=e},"setWrap"),X9=X(function(){return Ugt},"autoWrap"),F9i=X(function(){cT=[],wA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],J3="",rv="global",DO=[""],Qoe=[],DO=[""],$gt="",Ugt=!1,eTe=4,tTe=2},"clear"),$9i={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},U9i={FILLED:0,OPEN:1},z9i={LEFTOF:0,RIGHTOF:1,OVER:2},G9i=X(function(e){$gt=Ic(e,nn())},"setTitle"),wct={addPersonOrSystem:y9i,addPersonOrSystemBoundary:w9i,addContainer:v9i,addContainerBoundary:E9i,addComponent:_9i,addDeploymentNode:x9i,popBoundaryParseStack:S9i,addRel:b9i,updateElStyle:T9i,updateRelStyle:C9i,updateLayoutConfig:A9i,autoWrap:X9,setWrap:B9i,getC4ShapeArray:aYn,getC4Shape:O9i,getC4ShapeKeys:L9i,getBoundaries:sYn,getBoundarys:D9i,getCurrentBoundaryParse:I9i,getParentBoundaryParse:N9i,getRels:M9i,getTitle:P9i,getC4Type:g9i,getC4ShapeInRow:k9i,getC4BoundaryInRow:R9i,setAccTitle:N1,getAccTitle:Mp,getAccDescription:Bp,setAccDescription:Pp,getConfig:X(()=>nn().c4,"getConfig"),clear:F9i,LINETYPE:$9i,ARROWTYPE:U9i,PLACEMENT:z9i,setTitle:G9i,setC4Type:m9i},zgt=X(function(e,t){return vke(e,t)},"drawRect"),oYn=X(function(e,t,r,a,s,o){const u=e.append("image");u.attr("width",t),u.attr("height",r),u.attr("x",a),u.attr("y",s);let h=o.startsWith("data:image/png;base64")?o:M9(o);u.attr("xlink:href",h)},"drawImage"),q9i=X((e,t,r)=>{const a=e.append("g");let s=0;for(let o of t){let u=o.textColor?o.textColor:"#444444",h=o.lineColor?o.lineColor:"#444444",f=o.offsetX?parseInt(o.offsetX):0,p=o.offsetY?parseInt(o.offsetY):0,m="";if(s===0){let _=a.append("line");_.attr("x1",o.startPoint.x),_.attr("y1",o.startPoint.y),_.attr("x2",o.endPoint.x),_.attr("y2",o.endPoint.y),_.attr("stroke-width","1"),_.attr("stroke",h),_.style("fill","none"),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)"),s=-1}else{let _=a.append("path");_.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)")}let b=r.messageFont();R7(r)(o.label.text,a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+p,o.label.width,o.label.height,{fill:u},b),o.techn&&o.techn.text!==""&&(b=r.messageFont(),R7(r)("["+o.techn.text+"]",a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+p,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:u,"font-style":"italic"},b))}},"drawRels"),H9i=X(function(e,t,r){const a=e.append("g");let s=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",u=t.fontColor?t.fontColor:"black",h={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(h={"stroke-width":1});let f={x:t.x,y:t.y,fill:s,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:h};zgt(a,f);let p=r.boundaryFont();p.fontWeight="bold",p.fontSize=p.fontSize+2,p.fontColor=u,R7(r)(t.label.text,a,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},p),t.type&&t.type.text!==""&&(p=r.boundaryFont(),p.fontColor=u,R7(r)(t.type.text,a,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},p)),t.descr&&t.descr.text!==""&&(p=r.boundaryFont(),p.fontSize=p.fontSize-2,p.fontColor=u,R7(r)(t.descr.text,a,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},p))},"drawBoundary"),V9i=X(function(e,t,r){var b;let a=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],s=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],o=t.fontColor?t.fontColor:"#FFFFFF",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":u="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":u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const h=e.append("g");h.attr("class","person-man");const f=Ww();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":f.x=t.x,f.y=t.y,f.fill=a,f.width=t.width,f.height=t.height,f.stroke=s,f.rx=2.5,f.ry=2.5,f.attrs={"stroke-width":.5},zgt(h,f);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":h.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),h.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":h.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).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",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),h.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let p=eLi(r,t.typeC4Shape.text);switch(h.append("text").attr("fill",o).attr("font-family",p.fontFamily).attr("font-size",p.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":oYn(h,48,48,t.x+t.width/2-24,t.y+t.image.Y,u);break}let m=r[t.typeC4Shape.text+"Font"]();return m.fontWeight="bold",m.fontSize=m.fontSize+2,m.fontColor=o,R7(r)(t.label.text,h,t.x,t.y+t.label.Y,t.width,t.height,{fill:o},m),m=r[t.typeC4Shape.text+"Font"](),m.fontColor=o,t.techn&&((b=t.techn)==null?void 0:b.text)!==""?R7(r)(t.techn.text,h,t.x,t.y+t.techn.Y,t.width,t.height,{fill:o,"font-style":"italic"},m):t.type&&t.type.text!==""&&R7(r)(t.type.text,h,t.x,t.y+t.type.Y,t.width,t.height,{fill:o,"font-style":"italic"},m),t.descr&&t.descr.text!==""&&(m=r.personFont(),m.fontColor=o,R7(r)(t.descr.text,h,t.x,t.y+t.descr.Y,t.width,t.height,{fill:o},m)),t.height},"drawC4Shape"),Y9i=X(function(e){e.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")},"insertDatabaseIcon"),j9i=X(function(e){e.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")},"insertComputerIcon"),W9i=X(function(e){e.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")},"insertClockIcon"),K9i=X(function(e){e.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")},"insertArrowHead"),X9i=X(function(e){e.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")},"insertArrowEnd"),Q9i=X(function(e){e.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")},"insertArrowFilledHead"),Z9i=X(function(e){e.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)},"insertDynamicNumber"),J9i=X(function(e){const r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.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"),r.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")},"insertArrowCrossHead"),eLi=X((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),R7=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("text-anchor","middle").text(s);a(b,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b){const{fontSize:_,fontFamily:w,fontWeight:S}=b,C=s.split(Ti.lineBreakRegex);for(let A=0;A<C.length;A++){const k=A*_-_*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",_).style("font-weight",S).style("font-family",w);I.append("tspan").attr("dy",k).text(C[A]).attr("alignment-baseline","mathematical"),a(I,m)}}X(t,"byTspan");function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}X(r,"byFo");function a(s,o){for(const u in o)o.hasOwnProperty(u)&&s.attr(u,o[u])}return X(a,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),NC={drawRect:zgt,drawBoundary:H9i,drawC4Shape:V9i,drawRels:q9i,drawImage:oYn,insertArrowHead:K9i,insertArrowEnd:X9i,insertArrowFilledHead:Q9i,insertDynamicNumber:Z9i,insertArrowCrossHead:J9i,insertDatabaseIcon:Y9i,insertComputerIcon:j9i,insertClockIcon:W9i},nTe=0,rTe=0,lYn=4,Ect=2;J3e.yy=wct;var ls={},EY,cYn=(EY=class{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,xct(t.db.getConfig())}setData(t,r,a,s){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=s}updateVal(t,r,a,s){t[r]===void 0?t[r]=a:t[r]=s(a,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,a=r+t.width,s=this.nextData.starty+t.margin*2,o=s+t.height;(r>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>lYn)&&(r=this.nextData.startx+t.margin+ls.nextLinePaddingX,s=this.nextData.stopy+t.margin*2,this.nextData.stopx=a=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=s+t.height,this.nextData.cnt=1),t.x=r,t.y=s,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",s,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",o,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",s,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",o,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},xct(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},X(EY,"Bounds"),EY),xct=X(function(e){W0(ls,e),e.fontFamily&&(ls.personFontFamily=ls.systemFontFamily=ls.messageFontFamily=e.fontFamily),e.fontSize&&(ls.personFontSize=ls.systemFontSize=ls.messageFontSize=e.fontSize),e.fontWeight&&(ls.personFontWeight=ls.systemFontWeight=ls.messageFontWeight=e.fontWeight)},"setConf"),oie=X((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Nxe=X(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),tLi=X(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function lS(e,t,r,a,s){if(!t[e].width)if(r)t[e].text=nBn(t[e].text,s,a),t[e].textLines=t[e].text.split(Ti.lineBreakRegex).length,t[e].width=s,t[e].height=D4e(t[e].text,a);else{let o=t[e].text.split(Ti.lineBreakRegex);t[e].textLines=o.length;let u=0;t[e].height=0,t[e].width=0;for(const h of o)t[e].width=Math.max(nv(h,a),t[e].width),u=D4e(h,a),t[e].height=t[e].height+u}}X(lS,"calcC4ShapeTextWH");var uYn=X(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=ls.c4ShapeMargin-35;let a=t.wrap&&ls.wrap,s=Nxe(ls);s.fontSize=s.fontSize+2,s.fontWeight="bold";let o=nv(t.label.text,s);lS("label",t,a,s,o),NC.drawBoundary(e,t,ls)},"drawBoundary"),hYn=X(function(e,t,r,a){let s=0;for(const o of a){s=0;const u=r[o];let h=oie(ls,u.typeC4Shape.text);switch(h.fontSize=h.fontSize-2,u.typeC4Shape.width=nv("«"+u.typeC4Shape.text+"»",h),u.typeC4Shape.height=h.fontSize+2,u.typeC4Shape.Y=ls.c4ShapePadding,s=u.typeC4Shape.Y+u.typeC4Shape.height-4,u.image={width:0,height:0,Y:0},u.typeC4Shape.text){case"person":case"external_person":u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height;break}u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height);let f=u.wrap&&ls.wrap,p=ls.width-ls.c4ShapePadding*2,m=oie(ls,u.typeC4Shape.text);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",lS("label",u,f,m,p),u.label.Y=s+8,s=u.label.Y+u.label.height,u.type&&u.type.text!==""){u.type.text="["+u.type.text+"]";let w=oie(ls,u.typeC4Shape.text);lS("type",u,f,w,p),u.type.Y=s+5,s=u.type.Y+u.type.height}else if(u.techn&&u.techn.text!==""){u.techn.text="["+u.techn.text+"]";let w=oie(ls,u.techn.text);lS("techn",u,f,w,p),u.techn.Y=s+5,s=u.techn.Y+u.techn.height}let b=s,_=u.label.width;if(u.descr&&u.descr.text!==""){let w=oie(ls,u.typeC4Shape.text);lS("descr",u,f,w,p),u.descr.Y=s+20,s=u.descr.Y+u.descr.height,_=Math.max(u.label.width,u.descr.width),b=s-u.descr.textLines*5}_=_+ls.c4ShapePadding,u.width=Math.max(u.width||ls.width,_,ls.width),u.height=Math.max(u.height||ls.height,b,ls.height),u.margin=u.margin||ls.c4ShapeMargin,e.insert(u),NC.drawC4Shape(t,u,ls)}e.bumpLastMargin(ls.c4ShapeMargin)},"drawC4ShapeArray"),xY,Fx=(xY=class{constructor(t,r){this.x=t,this.y=r}},X(xY,"Point"),xY),bSn=X(function(e,t){let r=e.x,a=e.y,s=t.x,o=t.y,u=r+e.width/2,h=a+e.height/2,f=Math.abs(r-s),p=Math.abs(a-o),m=p/f,b=e.height/e.width,_=null;return a==o&&r<s?_=new Fx(r+e.width,h):a==o&&r>s?_=new Fx(r,h):r==s&&a<o?_=new Fx(u,a+e.height):r==s&&a>o&&(_=new Fx(u,a)),r>s&&a<o?b>=m?_=new Fx(r,h+m*e.width/2):_=new Fx(u-f/p*e.height/2,a+e.height):r<s&&a<o?b>=m?_=new Fx(r+e.width,h+m*e.width/2):_=new Fx(u+f/p*e.height/2,a+e.height):r<s&&a>o?b>=m?_=new Fx(r+e.width,h-m*e.width/2):_=new Fx(u+e.height/2*f/p,a):r>s&&a>o&&(b>=m?_=new Fx(r,h-e.width/2*m):_=new Fx(u-e.height/2*f/p,a)),_},"getIntersectPoint"),nLi=X(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=bSn(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let s=bSn(t,r);return{startPoint:a,endPoint:s}},"getIntersectPoints"),rLi=X(function(e,t,r,a){let s=0;for(let o of t){s=s+1;let u=o.wrap&&ls.wrap,h=tLi(ls);a.db.getC4Type()==="C4Dynamic"&&(o.label.text=s+": "+o.label.text);let p=nv(o.label.text,h);lS("label",o,u,h,p),o.techn&&o.techn.text!==""&&(p=nv(o.techn.text,h),lS("techn",o,u,h,p)),o.descr&&o.descr.text!==""&&(p=nv(o.descr.text,h),lS("descr",o,u,h,p));let m=r(o.from),b=r(o.to),_=nLi(m,b);o.startPoint=_.startPoint,o.endPoint=_.endPoint}NC.drawRels(e,t,ls)},"drawRels");function Ggt(e,t,r,a,s){let o=new cYn(s);o.data.widthLimit=r.data.widthLimit/Math.min(Ect,a.length);for(let[u,h]of a.entries()){let f=0;h.image={width:0,height:0,Y:0},h.sprite&&(h.image.width=48,h.image.height=48,h.image.Y=f,f=h.image.Y+h.image.height);let p=h.wrap&&ls.wrap,m=Nxe(ls);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",lS("label",h,p,m,o.data.widthLimit),h.label.Y=f+8,f=h.label.Y+h.label.height,h.type&&h.type.text!==""){h.type.text="["+h.type.text+"]";let S=Nxe(ls);lS("type",h,p,S,o.data.widthLimit),h.type.Y=f+5,f=h.type.Y+h.type.height}if(h.descr&&h.descr.text!==""){let S=Nxe(ls);S.fontSize=S.fontSize-2,lS("descr",h,p,S,o.data.widthLimit),h.descr.Y=f+20,f=h.descr.Y+h.descr.height}if(u==0||u%Ect===0){let S=r.data.startx+ls.diagramMarginX,C=r.data.stopy+ls.diagramMarginY+f;o.setData(S,S,C,C)}else{let S=o.data.stopx!==o.data.startx?o.data.stopx+ls.diagramMarginX:o.data.startx,C=o.data.starty;o.setData(S,S,C,C)}o.name=h.alias;let b=s.db.getC4ShapeArray(h.alias),_=s.db.getC4ShapeKeys(h.alias);_.length>0&&hYn(o,e,b,_),t=h.alias;let w=s.db.getBoundaries(t);w.length>0&&Ggt(e,t,o,w,s),h.alias!=="global"&&uYn(e,h,o),r.data.stopy=Math.max(o.data.stopy+ls.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(o.data.stopx+ls.c4ShapeMargin,r.data.stopx),nTe=Math.max(nTe,r.data.stopx),rTe=Math.max(rTe,r.data.stopy)}}X(Ggt,"drawInsideBoundary");var iLi=X(function(e,t,r,a){ls=nn().c4;const s=nn().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body");let h=a.db;a.db.setWrap(ls.wrap),lYn=h.getC4ShapeInRow(),Ect=h.getC4BoundaryInRow(),it.debug(`C:${JSON.stringify(ls,null,2)}`);const f=s==="sandbox"?u.select(`[id="${t}"]`):gn(`[id="${t}"]`);NC.insertComputerIcon(f),NC.insertDatabaseIcon(f),NC.insertClockIcon(f);let p=new cYn(a);p.setData(ls.diagramMarginX,ls.diagramMarginX,ls.diagramMarginY,ls.diagramMarginY),p.data.widthLimit=screen.availWidth,nTe=ls.diagramMarginX,rTe=ls.diagramMarginY;const m=a.db.getTitle();let b=a.db.getBoundaries("");Ggt(f,"",p,b,a),NC.insertArrowHead(f),NC.insertArrowEnd(f),NC.insertArrowCrossHead(f),NC.insertArrowFilledHead(f),rLi(f,a.db.getRels(),a.db.getC4Shape,a),p.data.stopx=nTe,p.data.stopy=rTe;const _=p.data;let S=_.stopy-_.starty+2*ls.diagramMarginY;const A=_.stopx-_.startx+2*ls.diagramMarginX;m&&f.append("text").text(m).attr("x",(_.stopx-_.startx)/2-4*ls.diagramMarginX).attr("y",_.starty+ls.diagramMarginY),yv(f,S,A,ls.useMaxWidth);const k=m?60:0;f.attr("viewBox",_.startx-ls.diagramMarginX+" -"+(ls.diagramMarginY+k)+" "+A+" "+(S+k)),it.debug("models:",_)},"draw"),ySn={drawPersonOrSystemArray:hYn,drawBoundary:uYn,setConf:xct,draw:iLi},aLi=X(e=>`.person {
    stroke: ${e.personBorder};
    fill: ${e.personBkg};
  }
`,"getStyles"),sLi=aLi,oLi={parser:p9i,db:wct,renderer:ySn,styles:sLi,init:X(({c4:e,wrap:t})=>{ySn.setConf(e),wct.setWrap(t)},"init")};const lLi=Object.freeze(Object.defineProperty({__proto__:null,diagram:oLi},Symbol.toStringTag,{value:"Module"}));var Lce=X(()=>`
  /* Font Awesome icon styling - consolidated */
  .label-icon {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
  }
  
  .node .label-icon path {
    fill: currentColor;
    stroke: revert;
    stroke-width: revert;
  }
`,"getIconStyles"),eK=X((e,t)=>{let r;return t==="sandbox"&&(r=gn("#i"+e)),gn(t==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement"),U$=X((e,t,r,a)=>{e.attr("class",r);const{width:s,height:o,x:u,y:h}=cLi(e,t);yv(e,o,s,a);const f=uLi(u,h,s,o,t);e.attr("viewBox",f),it.debug(`viewBox configured: ${f} with padding: ${t}`)},"setupViewPortForSVG"),cLi=X((e,t)=>{var a;const r=((a=e.node())==null?void 0:a.getBBox())||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),uLi=X((e,t,r,a,s)=>`${e-s} ${t-s} ${r} ${a}`,"createViewBox"),hLi="flowchart-",SY,dLi=(SY=class{constructor(){this.vertexCounter=0,this.config=nn(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=N1,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getAccTitle=Mp,this.getAccDescription=Bp,this.getDiagramTitle=P1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(t){return Ti.sanitizeText(t,this.config)}lookUpDomId(t){for(const r of this.vertices.values())if(r.id===t)return r.domId;return t}addVertex(t,r,a,s,o,u,h={},f){var w,S;if(!t||t.trim().length===0)return;let p;if(f!==void 0){let C;f.includes(`
`)?C=f+`
`:C=`{
`+f+`
}`,p=fAe(C,{schema:dAe})}const m=this.edges.find(C=>C.id===t);if(m){const C=p;(C==null?void 0:C.animate)!==void 0&&(m.animate=C.animate),(C==null?void 0:C.animation)!==void 0&&(m.animation=C.animation),(C==null?void 0:C.curve)!==void 0&&(m.interpolate=C.curve);return}let b,_=this.vertices.get(t);if(_===void 0&&(_={id:t,labelType:"text",domId:hLi+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,_)),this.vertexCounter++,r!==void 0?(this.config=nn(),b=this.sanitizeText(r.text.trim()),_.labelType=r.type,b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1)),_.text=b):_.text===void 0&&(_.text=t),a!==void 0&&(_.type=a),s!=null&&s.forEach(C=>{_.styles.push(C)}),o!=null&&o.forEach(C=>{_.classes.push(C)}),u!==void 0&&(_.dir=u),_.props===void 0?_.props=h:h!==void 0&&Object.assign(_.props,h),p!==void 0){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw new Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);if(!r$n(p.shape))throw new Error(`No such shape: ${p.shape}.`);_.type=p==null?void 0:p.shape}p!=null&&p.label&&(_.text=p==null?void 0:p.label),p!=null&&p.icon&&(_.icon=p==null?void 0:p.icon,!((w=p.label)!=null&&w.trim())&&_.text===t&&(_.text="")),p!=null&&p.form&&(_.form=p==null?void 0:p.form),p!=null&&p.pos&&(_.pos=p==null?void 0:p.pos),p!=null&&p.img&&(_.img=p==null?void 0:p.img,!((S=p.label)!=null&&S.trim())&&_.text===t&&(_.text="")),p!=null&&p.constraint&&(_.constraint=p.constraint),p.w&&(_.assetWidth=Number(p.w)),p.h&&(_.assetHeight=Number(p.h))}}addSingleLink(t,r,a,s){const h={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};it.info("abc78 Got edge...",h);const f=a.text;if(f!==void 0&&(h.text=this.sanitizeText(f.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"')&&(h.text=h.text.substring(1,h.text.length-1)),h.labelType=f.type),a!==void 0&&(h.type=a.type,h.stroke=a.stroke,h.length=a.length>10?10:a.length),s&&!this.edges.some(p=>p.id===s))h.id=s,h.isUserDefinedId=!0;else{const p=this.edges.filter(m=>m.start===h.start&&m.end===h.end);p.length===0?h.id=XV(h.start,h.end,{counter:0,prefix:"L"}):h.id=XV(h.start,h.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))it.info("Pushing edge..."),this.edges.push(h);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.

Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,r,a){const s=this.isLinkData(a)?a.id.replace("@",""):void 0;it.info("addLink",t,r,s);for(const o of t)for(const u of r){const h=o===t[t.length-1],f=u===r[0];h&&f?this.addSingleLink(o,u,a,s):this.addSingleLink(o,u,a,void 0)}}updateLinkInterpolate(t,r){t.forEach(a=>{a==="default"?this.edges.defaultInterpolate=r:this.edges[a].interpolate=r})}updateLink(t,r){t.forEach(a=>{var s,o,u,h,f,p;if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=r:(this.edges[a].style=r,(((o=(s=this.edges[a])==null?void 0:s.style)==null?void 0:o.length)??0)>0&&!((h=(u=this.edges[a])==null?void 0:u.style)!=null&&h.some(m=>m==null?void 0:m.startsWith("fill")))&&((p=(f=this.edges[a])==null?void 0:f.style)==null||p.push("fill:none")))})}addClass(t,r){const a=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(s=>{let o=this.classes.get(s);o===void 0&&(o={id:s,styles:[],textStyles:[]},this.classes.set(s,o)),a!=null&&a.forEach(u=>{if(/color/.exec(u)){const h=u.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(u)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,r){for(const a of t.split(",")){const s=this.vertices.get(a);s&&s.classes.push(r);const o=this.edges.find(h=>h.id===a);o&&o.classes.push(r);const u=this.subGraphLookup.get(a);u&&u.classes.push(r)}}setTooltip(t,r){if(r!==void 0){r=this.sanitizeText(r);for(const a of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,r)}}setClickFun(t,r,a){const s=this.lookUpDomId(t);if(nn().securityLevel!=="loose"||r===void 0)return;let o=[];if(typeof a=="string"){o=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<o.length;h++){let f=o[h].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),o[h]=f}}o.length===0&&o.push(t);const u=this.vertices.get(t);u&&(u.haveCallback=!0,this.funs.push(()=>{const h=document.querySelector(`[id="${s}"]`);h!==null&&h.addEventListener("click",()=>{Vo.runFunc(r,...o)},!1)}))}setLink(t,r,a){t.split(",").forEach(s=>{const o=this.vertices.get(s);o!==void 0&&(o.link=Vo.formatUrl(r,this.config),o.linkTarget=a)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,a){t.split(",").forEach(s=>{this.setClickFun(s,r,a)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(r=>{r(t)})}getDirection(){var t;return(t=this.direction)==null?void 0:t.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=gn(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(t).select("svg").selectAll("g.node").on("mouseover",o=>{var p;const u=gn(o.currentTarget);if(u.attr("title")===null)return;const f=(p=o.currentTarget)==null?void 0:p.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(u.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),u.classed("hover",!0)}).on("mouseout",o=>{r.transition().duration(500).style("opacity",0),gn(o.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=nn(),M1()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,a){let s=t.text.trim(),o=a.text;t===a&&/\s/.exec(a.text)&&(s=void 0);const h=X(_=>{const w={boolean:{},number:{},string:{}},S=[];let C;return{nodeList:_.filter(function(k){const I=typeof k;return k.stmt&&k.stmt==="dir"?(C=k.value,!1):k.trim()===""?!1:I in w?w[I].hasOwnProperty(k)?!1:w[I][k]=!0:S.includes(k)?!1:S.push(k)}),dir:C}},"uniq")(r.flat()),f=h.nodeList;let p=h.dir;const m=nn().flowchart??{};if(p=p??(m.inheritDir?this.getDirection()??nn().direction??void 0:void 0),this.version==="gen-1")for(let _=0;_<f.length;_++)f[_]=this.lookUpDomId(f[_]);s=s??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;const b={id:s,nodes:f,title:o.trim(),classes:[],dir:p,labelType:a.type};return it.info("Adding",b.id,b.nodes,b.dir),b.nodes=this.makeUniq(b,this.subGraphs).nodes,this.subGraphs.push(b),this.subGraphLookup.set(s,b),s}getPosForId(t){for(const[r,a]of this.subGraphs.entries())if(a.id===t)return r;return-1}indexNodes2(t,r){const a=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let s=0,o=1;for(;s<a.length;){const u=this.getPosForId(a[s]);if(u>=0){const h=this.indexNodes2(t,u);if(h.result)return{result:!0,count:o+h.count};o=o+h.count}s=s+1}return{result:!1,count:o}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let r=t.trim(),a="arrow_open";switch(r[0]){case"<":a="arrow_point",r=r.slice(1);break;case"x":a="arrow_cross",r=r.slice(1);break;case"o":a="arrow_circle",r=r.slice(1);break}let s="normal";return r.includes("=")&&(s="thick"),r.includes(".")&&(s="dotted"),{type:a,stroke:s}}countChar(t,r){const a=r.length;let s=0;for(let o=0;o<a;++o)r[o]===t&&++s;return s}destructEndLink(t){const r=t.trim();let a=r.slice(0,-1),s="arrow_open";switch(r.slice(-1)){case"x":s="arrow_cross",r.startsWith("x")&&(s="double_"+s,a=a.slice(1));break;case">":s="arrow_point",r.startsWith("<")&&(s="double_"+s,a=a.slice(1));break;case"o":s="arrow_circle",r.startsWith("o")&&(s="double_"+s,a=a.slice(1));break}let o="normal",u=a.length-1;a.startsWith("=")&&(o="thick"),a.startsWith("~")&&(o="invisible");const h=this.countChar(".",a);return h&&(o="dotted",u=h),{type:s,stroke:o,length:u}}destructLink(t,r){const a=this.destructEndLink(t);let s;if(r){if(s=this.destructStartLink(r),s.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(s.type==="arrow_open")s.type=a.type;else{if(s.type!==a.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return s.type==="double_arrow"&&(s.type="double_arrow_point"),s.length=a.length,s}return a}exists(t,r){for(const a of t)if(a.nodes.includes(r))return!0;return!1}makeUniq(t,r){const a=[];return t.nodes.forEach((s,o)=>{this.exists(r,s)||a.push(t.nodes[o])}),{nodes:a}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find(a=>a.id===r)}destructEdgeType(t){let r="none",a="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":a=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),a=r;break}return{arrowTypeStart:r,arrowTypeEnd:a}}addNodeFromVertex(t,r,a,s,o,u){var m;const h=a.get(t.id),f=s.get(t.id)??!1,p=this.findNode(r,t.id);if(p)p.cssStyles=t.styles,p.cssCompiledStyles=this.getCompiledStyles(t.classes),p.cssClasses=t.classes.join(" ");else{const b={id:t.id,label:t.text,labelStyle:"",parentId:h,padding:((m=o.flowchart)==null?void 0:m.padding)||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:u,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};f?r.push({...b,isGroup:!0,shape:"rect"}):r.push({...b,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let r=[];for(const a of t){const s=this.classes.get(a);s!=null&&s.styles&&(r=[...r,...s.styles??[]].map(o=>o.trim())),s!=null&&s.textStyles&&(r=[...r,...s.textStyles??[]].map(o=>o.trim()))}return r}getData(){const t=nn(),r=[],a=[],s=this.getSubGraphs(),o=new Map,u=new Map;for(let p=s.length-1;p>=0;p--){const m=s[p];m.nodes.length>0&&u.set(m.id,!0);for(const b of m.nodes)o.set(b,m.id)}for(let p=s.length-1;p>=0;p--){const m=s[p];r.push({id:m.id,label:m.title,labelStyle:"",parentId:o.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:t.look})}this.getVertices().forEach(p=>{this.addNodeFromVertex(p,r,o,u,t,t.look||"classic")});const f=this.getEdges();return f.forEach((p,m)=>{var C;const{arrowTypeStart:b,arrowTypeEnd:_}=this.destructEdgeType(p.type),w=[...f.defaultStyle??[]];p.style&&w.push(...p.style);const S={id:XV(p.start,p.end,{counter:m,prefix:"L"},p.id),isUserDefinedId:p.isUserDefinedId,start:p.start,end:p.end,type:p.type??"normal",label:p.text,labelpos:"c",thickness:p.stroke,minlen:p.length,classes:(p==null?void 0:p.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(p==null?void 0:p.stroke)==="invisible"||(p==null?void 0:p.type)==="arrow_open"?"none":b,arrowTypeEnd:(p==null?void 0:p.stroke)==="invisible"||(p==null?void 0:p.type)==="arrow_open"?"none":_,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(p.classes),labelStyle:w,style:w,pattern:p.stroke,look:t.look,animate:p.animate,animation:p.animation,curve:p.interpolate||this.edges.defaultInterpolate||((C=t.flowchart)==null?void 0:C.curve)};a.push(S)}),{nodes:r,edges:a,other:{},config:t}}defaultConfig(){return SLn.flowchart}},X(SY,"FlowDB"),SY),fLi=X(function(e,t){return t.db.getClasses()},"getClasses"),pLi=X(async function(e,t,r,a){var w;it.info("REF0:"),it.info("Drawing state diagram (v2)",t);const{securityLevel:s,flowchart:o,layout:u}=nn();let h;s==="sandbox"&&(h=gn("#i"+t));const f=s==="sandbox"?h.nodes()[0].contentDocument:document;it.debug("Before getData: ");const p=a.db.getData();it.debug("Data: ",p);const m=eK(t,s),b=a.db.getDirection();p.type=a.type,p.layoutAlgorithm=hce(u),p.layoutAlgorithm==="dagre"&&u==="elk"&&it.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),p.direction=b,p.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,p.rankSpacing=(o==null?void 0:o.rankSpacing)||50,p.markers=["point","circle","cross"],p.diagramId=t,it.debug("REF1:",p),await $W(p,m);const _=((w=p.config.flowchart)==null?void 0:w.diagramPadding)??8;Vo.insertTitle(m,"flowchartTitleText",(o==null?void 0:o.titleTopMargin)||0,a.db.getDiagramTitle()),U$(m,_,"flowchart",(o==null?void 0:o.useMaxWidth)||!1);for(const S of p.nodes){const C=gn(`#${t} [id="${S.id}"]`);if(!C||!S.link)continue;const A=f.createElementNS("http://www.w3.org/2000/svg","a");A.setAttributeNS("http://www.w3.org/2000/svg","class",S.cssClasses),A.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?A.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):S.linkTarget&&A.setAttributeNS("http://www.w3.org/2000/svg","target",S.linkTarget);const k=C.insert(function(){return A},":first-child"),I=C.select(".label-container");I&&k.append(function(){return I.node()});const N=C.select(".label");N&&k.append(function(){return N.node()})}},"draw"),gLi={getClasses:fLi,draw:pLi},Sct=function(){var e=X(function(no,dt,Wi,Tt){for(Wi=Wi||{},Tt=no.length;Tt--;Wi[no[Tt]]=dt);return Wi},"o"),t=[1,4],r=[1,3],a=[1,5],s=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],o=[2,2],u=[1,13],h=[1,14],f=[1,15],p=[1,16],m=[1,23],b=[1,25],_=[1,26],w=[1,27],S=[1,49],C=[1,48],A=[1,29],k=[1,30],I=[1,31],N=[1,32],L=[1,33],P=[1,44],M=[1,46],F=[1,42],U=[1,47],$=[1,43],G=[1,50],B=[1,45],Z=[1,51],z=[1,52],Y=[1,34],W=[1,35],Q=[1,36],V=[1,37],j=[1,57],ee=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],te=[1,61],ne=[1,60],se=[1,62],ie=[8,9,11,75,77,78],ge=[1,78],ce=[1,91],be=[1,96],ve=[1,95],De=[1,92],ye=[1,88],Ee=[1,94],he=[1,90],we=[1,97],Ce=[1,93],Ie=[1,98],Le=[1,89],Fe=[8,9,10,11,40,75,77,78],Ve=[8,9,10,11,40,46,75,77,78],Oe=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Dt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ot=[44,60,89,102,105,106,109,111,114,115,116],sn=[1,121],Kt=[1,122],Ft=[1,124],Je=[1,123],ht=[44,60,62,74,89,102,105,106,109,111,114,115,116],et=[1,133],qe=[1,147],He=[1,148],Ge=[1,149],Ye=[1,150],Ae=[1,135],Xe=[1,137],fe=[1,141],Qe=[1,142],Ke=[1,143],mt=[1,144],lt=[1,145],$t=[1,146],Ut=[1,151],Jt=[1,152],wn=[1,131],Vn=[1,132],Wn=[1,139],Dn=[1,134],zn=[1,138],vn=[1,136],Cn=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],Ar=[1,154],ur=[1,156],On=[8,9,11],Ir=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Ln=[1,176],pr=[1,172],Cr=[1,173],Zr=[1,177],Pr=[1,174],Ci=[1,175],ds=[77,116,119],ta=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Os=[10,106],uo=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ls=[1,247],La=[1,245],to=[1,249],Fi=[1,243],Pt=[1,244],St=[1,246],Un=[1,248],Hr=[1,250],za=[1,268],Rs=[8,9,11,106],Vr=[8,9,10,11,60,84,105,106,109,110,111,112],Ii={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:X(function(dt,Wi,Tt,xr,qs,Rt,Bb){var Gt=Rt.length-1;switch(qs){case 2:this.$=[];break;case 3:(!Array.isArray(Rt[Gt])||Rt[Gt].length>0)&&Rt[Gt-1].push(Rt[Gt]),this.$=Rt[Gt-1];break;case 4:case 183:this.$=Rt[Gt];break;case 11:xr.setDirection("TB"),this.$="TB";break;case 12:xr.setDirection(Rt[Gt-1]),this.$=Rt[Gt-1];break;case 27:this.$=Rt[Gt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=xr.addSubGraph(Rt[Gt-6],Rt[Gt-1],Rt[Gt-4]);break;case 34:this.$=xr.addSubGraph(Rt[Gt-3],Rt[Gt-1],Rt[Gt-3]);break;case 35:this.$=xr.addSubGraph(void 0,Rt[Gt-1],void 0);break;case 37:this.$=Rt[Gt].trim(),xr.setAccTitle(this.$);break;case 38:case 39:this.$=Rt[Gt].trim(),xr.setAccDescription(this.$);break;case 43:this.$=Rt[Gt-1]+Rt[Gt];break;case 44:this.$=Rt[Gt];break;case 45:xr.addVertex(Rt[Gt-1][Rt[Gt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt]),xr.addLink(Rt[Gt-3].stmt,Rt[Gt-1],Rt[Gt-2]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1].concat(Rt[Gt-3].nodes)};break;case 46:xr.addLink(Rt[Gt-2].stmt,Rt[Gt],Rt[Gt-1]),this.$={stmt:Rt[Gt],nodes:Rt[Gt].concat(Rt[Gt-2].nodes)};break;case 47:xr.addLink(Rt[Gt-3].stmt,Rt[Gt-1],Rt[Gt-2]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1].concat(Rt[Gt-3].nodes)};break;case 48:this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1]};break;case 49:xr.addVertex(Rt[Gt-1][Rt[Gt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1],shapeData:Rt[Gt]};break;case 50:this.$={stmt:Rt[Gt],nodes:Rt[Gt]};break;case 51:this.$=[Rt[Gt]];break;case 52:xr.addVertex(Rt[Gt-5][Rt[Gt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt-4]),this.$=Rt[Gt-5].concat(Rt[Gt]);break;case 53:this.$=Rt[Gt-4].concat(Rt[Gt]);break;case 54:this.$=Rt[Gt];break;case 55:this.$=Rt[Gt-2],xr.setClass(Rt[Gt-2],Rt[Gt]);break;case 56:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"square");break;case 57:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"doublecircle");break;case 58:this.$=Rt[Gt-5],xr.addVertex(Rt[Gt-5],Rt[Gt-2],"circle");break;case 59:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"ellipse");break;case 60:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"stadium");break;case 61:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"subroutine");break;case 62:this.$=Rt[Gt-7],xr.addVertex(Rt[Gt-7],Rt[Gt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Rt[Gt-5],Rt[Gt-3]]]));break;case 63:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"cylinder");break;case 64:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"round");break;case 65:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"diamond");break;case 66:this.$=Rt[Gt-5],xr.addVertex(Rt[Gt-5],Rt[Gt-2],"hexagon");break;case 67:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"odd");break;case 68:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"trapezoid");break;case 69:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"inv_trapezoid");break;case 70:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"lean_right");break;case 71:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"lean_left");break;case 72:this.$=Rt[Gt],xr.addVertex(Rt[Gt]);break;case 73:Rt[Gt-1].text=Rt[Gt],this.$=Rt[Gt-1];break;case 74:case 75:Rt[Gt-2].text=Rt[Gt-1],this.$=Rt[Gt-2];break;case 76:this.$=Rt[Gt];break;case 77:var Ds=xr.destructLink(Rt[Gt],Rt[Gt-2]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,text:Rt[Gt-1]};break;case 78:var Ds=xr.destructLink(Rt[Gt],Rt[Gt-2]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,text:Rt[Gt-1],id:Rt[Gt-3]};break;case 79:this.$={text:Rt[Gt],type:"text"};break;case 80:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 81:this.$={text:Rt[Gt],type:"string"};break;case 82:this.$={text:Rt[Gt],type:"markdown"};break;case 83:var Ds=xr.destructLink(Rt[Gt]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length};break;case 84:var Ds=xr.destructLink(Rt[Gt]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,id:Rt[Gt-1]};break;case 85:this.$=Rt[Gt-1];break;case 86:this.$={text:Rt[Gt],type:"text"};break;case 87:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 88:this.$={text:Rt[Gt],type:"string"};break;case 89:case 104:this.$={text:Rt[Gt],type:"markdown"};break;case 101:this.$={text:Rt[Gt],type:"text"};break;case 102:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 103:this.$={text:Rt[Gt],type:"text"};break;case 105:this.$=Rt[Gt-4],xr.addClass(Rt[Gt-2],Rt[Gt]);break;case 106:this.$=Rt[Gt-4],xr.setClass(Rt[Gt-2],Rt[Gt]);break;case 107:case 115:this.$=Rt[Gt-1],xr.setClickEvent(Rt[Gt-1],Rt[Gt]);break;case 108:case 116:this.$=Rt[Gt-3],xr.setClickEvent(Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-3],Rt[Gt]);break;case 109:this.$=Rt[Gt-2],xr.setClickEvent(Rt[Gt-2],Rt[Gt-1],Rt[Gt]);break;case 110:this.$=Rt[Gt-4],xr.setClickEvent(Rt[Gt-4],Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-4],Rt[Gt]);break;case 111:this.$=Rt[Gt-2],xr.setLink(Rt[Gt-2],Rt[Gt]);break;case 112:this.$=Rt[Gt-4],xr.setLink(Rt[Gt-4],Rt[Gt-2]),xr.setTooltip(Rt[Gt-4],Rt[Gt]);break;case 113:this.$=Rt[Gt-4],xr.setLink(Rt[Gt-4],Rt[Gt-2],Rt[Gt]);break;case 114:this.$=Rt[Gt-6],xr.setLink(Rt[Gt-6],Rt[Gt-4],Rt[Gt]),xr.setTooltip(Rt[Gt-6],Rt[Gt-2]);break;case 117:this.$=Rt[Gt-1],xr.setLink(Rt[Gt-1],Rt[Gt]);break;case 118:this.$=Rt[Gt-3],xr.setLink(Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-3],Rt[Gt]);break;case 119:this.$=Rt[Gt-3],xr.setLink(Rt[Gt-3],Rt[Gt-2],Rt[Gt]);break;case 120:this.$=Rt[Gt-5],xr.setLink(Rt[Gt-5],Rt[Gt-4],Rt[Gt]),xr.setTooltip(Rt[Gt-5],Rt[Gt-2]);break;case 121:this.$=Rt[Gt-4],xr.addVertex(Rt[Gt-2],void 0,void 0,Rt[Gt]);break;case 122:this.$=Rt[Gt-4],xr.updateLink([Rt[Gt-2]],Rt[Gt]);break;case 123:this.$=Rt[Gt-4],xr.updateLink(Rt[Gt-2],Rt[Gt]);break;case 124:this.$=Rt[Gt-8],xr.updateLinkInterpolate([Rt[Gt-6]],Rt[Gt-2]),xr.updateLink([Rt[Gt-6]],Rt[Gt]);break;case 125:this.$=Rt[Gt-8],xr.updateLinkInterpolate(Rt[Gt-6],Rt[Gt-2]),xr.updateLink(Rt[Gt-6],Rt[Gt]);break;case 126:this.$=Rt[Gt-6],xr.updateLinkInterpolate([Rt[Gt-4]],Rt[Gt]);break;case 127:this.$=Rt[Gt-6],xr.updateLinkInterpolate(Rt[Gt-4],Rt[Gt]);break;case 128:case 130:this.$=[Rt[Gt]];break;case 129:case 131:Rt[Gt-2].push(Rt[Gt]),this.$=Rt[Gt-2];break;case 133:this.$=Rt[Gt-1]+Rt[Gt];break;case 181:this.$=Rt[Gt];break;case 182:this.$=Rt[Gt-1]+""+Rt[Gt];break;case 184:this.$=Rt[Gt-1]+""+Rt[Gt];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:a},{1:[3]},e(s,o,{5:6}),{4:7,9:t,10:r,12:a},{4:8,9:t,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},e(s,[2,9]),e(s,[2,10]),e(s,[2,11]),{8:[1,54],9:[1,55],10:j,15:53,18:56},e(ee,[2,3]),e(ee,[2,4]),e(ee,[2,5]),e(ee,[2,6]),e(ee,[2,7]),e(ee,[2,8]),{8:te,9:ne,11:se,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:te,9:ne,11:se,21:67},{8:te,9:ne,11:se,21:68},{8:te,9:ne,11:se,21:69},{8:te,9:ne,11:se,21:70},{8:te,9:ne,11:se,21:71},{8:te,9:ne,10:[1,72],11:se,21:73},e(ee,[2,36]),{35:[1,74]},{37:[1,75]},e(ee,[2,39]),e(ie,[2,50],{18:76,39:77,10:j,40:ge}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:ce,44:be,60:ve,80:[1,86],89:De,95:[1,83],97:[1,84],101:85,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},e(ee,[2,185]),e(ee,[2,186]),e(ee,[2,187]),e(ee,[2,188]),e(Fe,[2,51]),e(Fe,[2,54],{46:[1,99]}),e(Ve,[2,72],{113:112,29:[1,100],44:S,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:C,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),e(Oe,[2,181]),e(Oe,[2,142]),e(Oe,[2,143]),e(Oe,[2,144]),e(Oe,[2,145]),e(Oe,[2,146]),e(Oe,[2,147]),e(Oe,[2,148]),e(Oe,[2,149]),e(Oe,[2,150]),e(Oe,[2,151]),e(Oe,[2,152]),e(s,[2,12]),e(s,[2,18]),e(s,[2,19]),{9:[1,113]},e(Dt,[2,26],{18:114,10:j}),e(ee,[2,27]),{42:115,43:38,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(ee,[2,40]),e(ee,[2,41]),e(ee,[2,42]),e(ot,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:sn,81:Kt,116:Ft,119:Je},{75:[1,125],77:[1,126]},e(ht,[2,83]),e(ee,[2,28]),e(ee,[2,29]),e(ee,[2,30]),e(ee,[2,31]),e(ee,[2,32]),{10:et,12:qe,14:He,27:Ge,28:127,32:Ye,44:Ae,60:Xe,75:fe,80:[1,129],81:[1,130],83:140,84:Qe,85:Ke,86:mt,87:lt,88:$t,89:Ut,90:Jt,91:128,105:wn,109:Vn,111:Wn,114:Dn,115:zn,116:vn},e(Cn,o,{5:153}),e(ee,[2,37]),e(ee,[2,38]),e(ie,[2,48],{44:Ar}),e(ie,[2,49],{18:155,10:j,40:ur}),e(Fe,[2,44]),{44:S,47:157,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{102:[1,158],103:159,105:[1,160]},{44:S,47:161,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{44:S,47:162,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(On,[2,115],{120:167,10:[1,166],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,117],{10:[1,168]}),e(Ir,[2,183]),e(Ir,[2,170]),e(Ir,[2,171]),e(Ir,[2,172]),e(Ir,[2,173]),e(Ir,[2,174]),e(Ir,[2,175]),e(Ir,[2,176]),e(Ir,[2,177]),e(Ir,[2,178]),e(Ir,[2,179]),e(Ir,[2,180]),{44:S,47:169,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{30:170,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:178,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:180,50:[1,179],67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:181,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:182,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:183,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{109:[1,184]},{30:185,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:186,65:[1,187],67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:188,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:189,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:190,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Oe,[2,182]),e(s,[2,20]),e(Dt,[2,25]),e(ie,[2,46],{39:191,18:192,10:j,40:ge}),e(ot,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{77:[1,196],79:197,116:Ft,119:Je},e(ds,[2,79]),e(ds,[2,81]),e(ds,[2,82]),e(ds,[2,168]),e(ds,[2,169]),{76:198,79:120,80:sn,81:Kt,116:Ft,119:Je},e(ht,[2,84]),{8:te,9:ne,10:et,11:se,12:qe,14:He,21:200,27:Ge,29:[1,199],32:Ye,44:Ae,60:Xe,75:fe,83:140,84:Qe,85:Ke,86:mt,87:lt,88:$t,89:Ut,90:Jt,91:201,105:wn,109:Vn,111:Wn,114:Dn,115:zn,116:vn},e(ta,[2,101]),e(ta,[2,103]),e(ta,[2,104]),e(ta,[2,157]),e(ta,[2,158]),e(ta,[2,159]),e(ta,[2,160]),e(ta,[2,161]),e(ta,[2,162]),e(ta,[2,163]),e(ta,[2,164]),e(ta,[2,165]),e(ta,[2,166]),e(ta,[2,167]),e(ta,[2,90]),e(ta,[2,91]),e(ta,[2,92]),e(ta,[2,93]),e(ta,[2,94]),e(ta,[2,95]),e(ta,[2,96]),e(ta,[2,97]),e(ta,[2,98]),e(ta,[2,99]),e(ta,[2,100]),{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,202],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},{10:j,18:203},{44:[1,204]},e(Fe,[2,43]),{10:[1,205],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{10:[1,206]},{10:[1,207],106:[1,208]},e(Os,[2,128]),{10:[1,209],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{10:[1,210],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{80:[1,211]},e(On,[2,109],{10:[1,212]}),e(On,[2,111],{10:[1,213]}),{80:[1,214]},e(Ir,[2,184]),{80:[1,215],98:[1,216]},e(Fe,[2,55],{113:112,44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),{31:[1,217],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(uo,[2,86]),e(uo,[2,88]),e(uo,[2,89]),e(uo,[2,153]),e(uo,[2,154]),e(uo,[2,155]),e(uo,[2,156]),{49:[1,219],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{30:220,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{51:[1,221],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{53:[1,222],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{55:[1,223],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{57:[1,224],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{60:[1,225]},{64:[1,226],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{66:[1,227],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{30:228,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{31:[1,229],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{67:Ln,69:[1,230],71:[1,231],82:218,116:Zr,117:Pr,118:Ci},{67:Ln,69:[1,233],71:[1,232],82:218,116:Zr,117:Pr,118:Ci},e(ie,[2,45],{18:155,10:j,40:ur}),e(ie,[2,47],{44:Ar}),e(ot,[2,75]),e(ot,[2,74]),{62:[1,234],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(ot,[2,77]),e(ds,[2,80]),{77:[1,235],79:197,116:Ft,119:Je},{30:236,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Cn,o,{5:237}),e(ta,[2,102]),e(ee,[2,35]),{43:238,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{10:j,18:239},{10:Ls,60:La,84:to,92:240,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:251,104:[1,252],105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:253,104:[1,254],105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{105:[1,255]},{10:Ls,60:La,84:to,92:256,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{44:S,47:257,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(On,[2,116]),e(On,[2,118],{10:[1,261]}),e(On,[2,119]),e(Ve,[2,56]),e(uo,[2,87]),e(Ve,[2,57]),{51:[1,262],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(Ve,[2,64]),e(Ve,[2,59]),e(Ve,[2,60]),e(Ve,[2,61]),{109:[1,263]},e(Ve,[2,63]),e(Ve,[2,65]),{66:[1,264],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(Ve,[2,67]),e(Ve,[2,68]),e(Ve,[2,70]),e(Ve,[2,69]),e(Ve,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ot,[2,78]),{31:[1,265],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,266],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},e(Fe,[2,53]),{43:267,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,121],{106:za}),e(Rs,[2,130],{108:269,10:Ls,60:La,84:to,105:Fi,109:Pt,110:St,111:Un,112:Hr}),e(Vr,[2,132]),e(Vr,[2,134]),e(Vr,[2,135]),e(Vr,[2,136]),e(Vr,[2,137]),e(Vr,[2,138]),e(Vr,[2,139]),e(Vr,[2,140]),e(Vr,[2,141]),e(On,[2,122],{106:za}),{10:[1,270]},e(On,[2,123],{106:za}),{10:[1,271]},e(Os,[2,129]),e(On,[2,105],{106:za}),e(On,[2,106],{113:112,44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),e(On,[2,110]),e(On,[2,112],{10:[1,272]}),e(On,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:te,9:ne,11:se,21:277},e(ee,[2,34]),e(Fe,[2,52]),{10:Ls,60:La,84:to,105:Fi,107:278,108:242,109:Pt,110:St,111:Un,112:Hr},e(Vr,[2,133]),{14:ce,44:be,60:ve,89:De,101:279,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},{14:ce,44:be,60:ve,89:De,101:280,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},{98:[1,281]},e(On,[2,120]),e(Ve,[2,58]),{30:282,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Ve,[2,66]),e(Cn,o,{5:283}),e(Rs,[2,131],{108:269,10:Ls,60:La,84:to,105:Fi,109:Pt,110:St,111:Un,112:Hr}),e(On,[2,126],{120:167,10:[1,284],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,127],{120:167,10:[1,285],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,114]),{31:[1,286],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,287],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},{10:Ls,60:La,84:to,92:288,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:289,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},e(Ve,[2,62]),e(ee,[2,33]),e(On,[2,124],{106:za}),e(On,[2,125],{106:za})],defaultActions:{},parseError:X(function(dt,Wi){if(Wi.recoverable)this.trace(dt);else{var Tt=new Error(dt);throw Tt.hash=Wi,Tt}},"parseError"),parse:X(function(dt){var Wi=this,Tt=[0],xr=[],qs=[null],Rt=[],Bb=this.table,Gt="",Ds=0,Lm=0,BS=2,eE=1,uL=Rt.slice.call(arguments,1),rd=Object.create(this.lexer),Fh={yy:{}};for(var Fb in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fb)&&(Fh.yy[Fb]=this.yy[Fb]);rd.setInput(dt,Fh.yy),Fh.yy.lexer=rd,Fh.yy.parser=this,typeof rd.yylloc>"u"&&(rd.yylloc={});var e1=rd.yylloc;Rt.push(e1);var wT=rd.options&&rd.options.ranges;typeof Fh.yy.parseError=="function"?this.parseError=Fh.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d_(f0){Tt.length=Tt.length-2*f0,qs.length=qs.length-f0,Rt.length=Rt.length-f0}X(d_,"popStack");function tE(){var f0;return f0=xr.pop()||rd.lex()||eE,typeof f0!="number"&&(f0 instanceof Array&&(xr=f0,f0=xr.pop()),f0=Wi.symbols_[f0]||f0),f0}X(tE,"lex");for(var qu,$b,Mf,nE,Pf={},ET,Ub,jA,WA;;){if($b=Tt[Tt.length-1],this.defaultActions[$b]?Mf=this.defaultActions[$b]:((qu===null||typeof qu>"u")&&(qu=tE()),Mf=Bb[$b]&&Bb[$b][qu]),typeof Mf>"u"||!Mf.length||!Mf[0]){var KA="";WA=[];for(ET in Bb[$b])this.terminals_[ET]&&ET>BS&&WA.push("'"+this.terminals_[ET]+"'");rd.showPosition?KA="Parse error on line "+(Ds+1)+`:
`+rd.showPosition()+`
Expecting `+WA.join(", ")+", got '"+(this.terminals_[qu]||qu)+"'":KA="Parse error on line "+(Ds+1)+": Unexpected "+(qu==eE?"end of input":"'"+(this.terminals_[qu]||qu)+"'"),this.parseError(KA,{text:rd.match,token:this.terminals_[qu]||qu,line:rd.yylineno,loc:e1,expected:WA})}if(Mf[0]instanceof Array&&Mf.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$b+", token: "+qu);switch(Mf[0]){case 1:Tt.push(qu),qs.push(rd.yytext),Rt.push(rd.yylloc),Tt.push(Mf[1]),qu=null,Lm=rd.yyleng,Gt=rd.yytext,Ds=rd.yylineno,e1=rd.yylloc;break;case 2:if(Ub=this.productions_[Mf[1]][1],Pf.$=qs[qs.length-Ub],Pf._$={first_line:Rt[Rt.length-(Ub||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(Ub||1)].first_column,last_column:Rt[Rt.length-1].last_column},wT&&(Pf._$.range=[Rt[Rt.length-(Ub||1)].range[0],Rt[Rt.length-1].range[1]]),nE=this.performAction.apply(Pf,[Gt,Lm,Ds,Fh.yy,Mf[1],qs,Rt].concat(uL)),typeof nE<"u")return nE;Ub&&(Tt=Tt.slice(0,-1*Ub*2),qs=qs.slice(0,-1*Ub),Rt=Rt.slice(0,-1*Ub)),Tt.push(this.productions_[Mf[1]][0]),qs.push(Pf.$),Rt.push(Pf._$),jA=Bb[Tt[Tt.length-2]][Tt[Tt.length-1]],Tt.push(jA);break;case 3:return!0}}return!0},"parse")},Pa=function(){var no={EOF:1,parseError:X(function(Wi,Tt){if(this.yy.parser)this.yy.parser.parseError(Wi,Tt);else throw new Error(Wi)},"parseError"),setInput:X(function(dt,Wi){return this.yy=Wi||this.yy||{},this._input=dt,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},"setInput"),input:X(function(){var dt=this._input[0];this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt;var Wi=dt.match(/(?:\r\n?|\n).*/g);return Wi?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),dt},"input"),unput:X(function(dt){var Wi=dt.length,Tt=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Wi),this.offset-=Wi;var xr=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),Tt.length-1&&(this.yylineno-=Tt.length-1);var qs=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:Tt?(Tt.length===xr.length?this.yylloc.first_column:0)+xr[xr.length-Tt.length].length-Tt[0].length:this.yylloc.first_column-Wi},this.options.ranges&&(this.yylloc.range=[qs[0],qs[0]+this.yyleng-Wi]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(dt){this.unput(this.match.slice(dt))},"less"),pastInput:X(function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var dt=this.pastInput(),Wi=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+`
`+Wi+"^"},"showPosition"),test_match:X(function(dt,Wi){var Tt,xr,qs;if(this.options.backtrack_lexer&&(qs={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&&(qs.yylloc.range=this.yylloc.range.slice(0))),xr=dt[0].match(/(?:\r\n?|\n).*/g),xr&&(this.yylineno+=xr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xr?xr[xr.length-1].length-xr[xr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,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(dt[0].length),this.matched+=dt[0],Tt=this.performAction.call(this,this.yy,this,Wi,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Tt)return Tt;if(this._backtrack){for(var Rt in qs)this[Rt]=qs[Rt];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var dt,Wi,Tt,xr;this._more||(this.yytext="",this.match="");for(var qs=this._currentRules(),Rt=0;Rt<qs.length;Rt++)if(Tt=this._input.match(this.rules[qs[Rt]]),Tt&&(!Wi||Tt[0].length>Wi[0].length)){if(Wi=Tt,xr=Rt,this.options.backtrack_lexer){if(dt=this.test_match(Tt,qs[Rt]),dt!==!1)return dt;if(this._backtrack){Wi=!1;continue}else return!1}else if(!this.options.flex)break}return Wi?(dt=this.test_match(Wi,qs[xr]),dt!==!1?dt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Wi=this.next();return Wi||this.lex()},"lex"),begin:X(function(Wi){this.conditionStack.push(Wi)},"begin"),popState:X(function(){var Wi=this.conditionStack.length-1;return Wi>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Wi){return Wi=this.conditionStack.length-1-Math.abs(Wi||0),Wi>=0?this.conditionStack[Wi]:"INITIAL"},"topState"),pushState:X(function(Wi){this.begin(Wi)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(Wi,Tt,xr,qs){switch(xr){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;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.pushState("shapeData"),Tt.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const Rt=/\n\s*/g;return Tt.yytext=Tt.yytext.replace(Rt,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 36:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 37:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\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]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,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,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}};return no}();Ii.lexer=Pa;function Or(){this.yy={}}return X(Or,"Parser"),Or.prototype=Ii,Ii.Parser=Or,new Or}();Sct.parser=Sct;var dYn=Sct,fYn=Object.assign({},dYn);fYn.parse=e=>{const t=e.replace(/}\s*\n/g,`}
`);return dYn.parse(t)};var mLi=fYn,bLi=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),yLi=X(e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .cluster-label text {
    fill: ${e.titleColor};
  }
  .cluster-label span {
    color: ${e.titleColor};
  }
  .cluster-label span p {
    background-color: transparent;
  }

  .label text,span {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }
  .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .katex path {
    fill: #000;
    stroke: #000;
    stroke-width: 1px;
  }

  .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }


  .root .anchor path {
    fill: ${e.lineColor} !important;
    stroke-width: 0;
    stroke: ${e.lineColor};
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    p {
      background-color: ${e.edgeLabelBackground};
    }
    rect {
      opacity: 0.5;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${bLi(e.edgeLabelBackground,.5)};
    // background-color:
  }

  .cluster rect {
    fill: ${e.clusterBkg};
    stroke: ${e.clusterBorder};
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  .cluster span {
    color: ${e.titleColor};
  }
  /* .cluster div {
    color: ${e.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }

  rect.text {
    fill: none;
    stroke-width: 0;
  }

  .icon-shape, .image-shape {
    background-color: ${e.edgeLabelBackground};
    p {
      background-color: ${e.edgeLabelBackground};
      padding: 2px;
    }
    rect {
      opacity: 0.5;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }
  ${Lce()}
`,"getStyles"),vLi=yLi,_Li={parser:mLi,get db(){return new dLi},renderer:gLi,styles:vLi,init:X(e=>{e.flowchart||(e.flowchart={}),e.layout&&yot({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,yot({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};const qgt=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Li},Symbol.toStringTag,{value:"Module"}));var Tct=function(){var e=X(function(we,Ce,Ie,Le){for(Ie=Ie||{},Le=we.length;Le--;Ie[we[Le]]=Ce);return Ie},"o"),t=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],r=[1,10],a=[1,11],s=[1,12],o=[1,13],u=[1,20],h=[1,21],f=[1,22],p=[1,23],m=[1,24],b=[1,19],_=[1,25],w=[1,26],S=[1,18],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],P=[1,42],M=[1,43],F=[1,52],U=[40,50,68,69],$=[1,63],G=[1,61],B=[1,58],Z=[1,62],z=[1,64],Y=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],W=[63,64,65,66,67],Q=[1,81],V=[1,80],j=[1,78],ee=[1,79],te=[6,10,42,47],ne=[6,10,13,41,42,47,48,49],se=[1,89],ie=[1,88],ge=[1,87],ce=[19,56],be=[1,98],ve=[1,97],De=[19,56,58,60],ye={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:X(function(Ce,Ie,Le,Fe,Ve,Oe,Dt){var ot=Oe.length-1;switch(Ve){case 1:break;case 2:this.$=[];break;case 3:Oe[ot-1].push(Oe[ot]),this.$=Oe[ot-1];break;case 4:case 5:this.$=Oe[ot];break;case 6:case 7:this.$=[];break;case 8:Fe.addEntity(Oe[ot-4]),Fe.addEntity(Oe[ot-2]),Fe.addRelationship(Oe[ot-4],Oe[ot],Oe[ot-2],Oe[ot-3]);break;case 9:Fe.addEntity(Oe[ot-8]),Fe.addEntity(Oe[ot-4]),Fe.addRelationship(Oe[ot-8],Oe[ot],Oe[ot-4],Oe[ot-5]),Fe.setClass([Oe[ot-8]],Oe[ot-6]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 10:Fe.addEntity(Oe[ot-6]),Fe.addEntity(Oe[ot-2]),Fe.addRelationship(Oe[ot-6],Oe[ot],Oe[ot-2],Oe[ot-3]),Fe.setClass([Oe[ot-6]],Oe[ot-4]);break;case 11:Fe.addEntity(Oe[ot-6]),Fe.addEntity(Oe[ot-4]),Fe.addRelationship(Oe[ot-6],Oe[ot],Oe[ot-4],Oe[ot-5]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 12:Fe.addEntity(Oe[ot-3]),Fe.addAttributes(Oe[ot-3],Oe[ot-1]);break;case 13:Fe.addEntity(Oe[ot-5]),Fe.addAttributes(Oe[ot-5],Oe[ot-1]),Fe.setClass([Oe[ot-5]],Oe[ot-3]);break;case 14:Fe.addEntity(Oe[ot-2]);break;case 15:Fe.addEntity(Oe[ot-4]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 16:Fe.addEntity(Oe[ot]);break;case 17:Fe.addEntity(Oe[ot-2]),Fe.setClass([Oe[ot-2]],Oe[ot]);break;case 18:Fe.addEntity(Oe[ot-6],Oe[ot-4]),Fe.addAttributes(Oe[ot-6],Oe[ot-1]);break;case 19:Fe.addEntity(Oe[ot-8],Oe[ot-6]),Fe.addAttributes(Oe[ot-8],Oe[ot-1]),Fe.setClass([Oe[ot-8]],Oe[ot-3]);break;case 20:Fe.addEntity(Oe[ot-5],Oe[ot-3]);break;case 21:Fe.addEntity(Oe[ot-7],Oe[ot-5]),Fe.setClass([Oe[ot-7]],Oe[ot-2]);break;case 22:Fe.addEntity(Oe[ot-3],Oe[ot-1]);break;case 23:Fe.addEntity(Oe[ot-5],Oe[ot-3]),Fe.setClass([Oe[ot-5]],Oe[ot]);break;case 24:case 25:this.$=Oe[ot].trim(),Fe.setAccTitle(this.$);break;case 26:case 27:this.$=Oe[ot].trim(),Fe.setAccDescription(this.$);break;case 32:Fe.setDirection("TB");break;case 33:Fe.setDirection("BT");break;case 34:Fe.setDirection("RL");break;case 35:Fe.setDirection("LR");break;case 36:this.$=Oe[ot-3],Fe.addClass(Oe[ot-2],Oe[ot-1]);break;case 37:case 38:case 56:case 64:this.$=[Oe[ot]];break;case 39:case 40:this.$=Oe[ot-2].concat([Oe[ot]]);break;case 41:this.$=Oe[ot-2],Fe.setClass(Oe[ot-1],Oe[ot]);break;case 42:this.$=Oe[ot-3],Fe.addCssStyles(Oe[ot-2],Oe[ot-1]);break;case 43:this.$=[Oe[ot]];break;case 44:Oe[ot-2].push(Oe[ot]),this.$=Oe[ot-2];break;case 46:this.$=Oe[ot-1]+Oe[ot];break;case 54:case 76:case 77:this.$=Oe[ot].replace(/"/g,"");break;case 55:case 78:this.$=Oe[ot];break;case 57:Oe[ot].push(Oe[ot-1]),this.$=Oe[ot];break;case 58:this.$={type:Oe[ot-1],name:Oe[ot]};break;case 59:this.$={type:Oe[ot-2],name:Oe[ot-1],keys:Oe[ot]};break;case 60:this.$={type:Oe[ot-2],name:Oe[ot-1],comment:Oe[ot]};break;case 61:this.$={type:Oe[ot-3],name:Oe[ot-2],keys:Oe[ot-1],comment:Oe[ot]};break;case 62:case 63:case 66:this.$=Oe[ot];break;case 65:Oe[ot-2].push(Oe[ot]),this.$=Oe[ot-2];break;case 67:this.$=Oe[ot].replace(/"/g,"");break;case 68:this.$={cardA:Oe[ot],relType:Oe[ot-1],cardB:Oe[ot-2]};break;case 69:this.$=Fe.Cardinality.ZERO_OR_ONE;break;case 70:this.$=Fe.Cardinality.ZERO_OR_MORE;break;case 71:this.$=Fe.Cardinality.ONE_OR_MORE;break;case 72:this.$=Fe.Cardinality.ONLY_ONE;break;case 73:this.$=Fe.Cardinality.MD_PARENT;break;case 74:this.$=Fe.Identification.NON_IDENTIFYING;break;case 75:this.$=Fe.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:a,26:s,28:o,29:14,30:15,31:16,32:17,33:u,34:h,35:f,36:p,37:m,40:b,43:_,44:w,50:S},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:27,11:9,22:r,24:a,26:s,28:o,29:14,30:15,31:16,32:17,33:u,34:h,35:f,36:p,37:m,40:b,43:_,44:w,50:S},e(t,[2,5]),e(t,[2,6]),e(t,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:C,64:A,65:k,66:I,67:N}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),e(t,[2,30]),e(t,[2,31]),e(L,[2,54]),e(L,[2,55]),e(t,[2,32]),e(t,[2,33]),e(t,[2,34]),e(t,[2,35]),{16:41,40:P,41:M},{16:44,40:P,41:M},{16:45,40:P,41:M},e(t,[2,4]),{11:46,40:b,50:S},{16:47,40:P,41:M},{18:48,19:[1,49],51:50,52:51,56:F},{11:53,40:b,50:S},{62:54,68:[1,55],69:[1,56]},e(U,[2,69]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),{13:$,38:57,41:G,42:B,45:59,46:60,48:Z,49:z},e(Y,[2,37]),e(Y,[2,38]),{16:65,40:P,41:M,42:B},{13:$,38:66,41:G,42:B,45:59,46:60,48:Z,49:z},{13:[1,67],15:[1,68]},e(t,[2,17],{61:32,12:69,17:[1,70],42:B,63:C,64:A,65:k,66:I,67:N}),{19:[1,71]},e(t,[2,14]),{18:72,19:[2,56],51:50,52:51,56:F},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:C,64:A,65:k,66:I,67:N},e(W,[2,74]),e(W,[2,75]),{6:Q,10:V,39:77,42:j,47:ee},{40:[1,82],41:[1,83]},e(te,[2,43],{46:84,13:$,41:G,48:Z,49:z}),e(ne,[2,45]),e(ne,[2,50]),e(ne,[2,51]),e(ne,[2,52]),e(ne,[2,53]),e(t,[2,41],{42:B}),{6:Q,10:V,39:85,42:j,47:ee},{14:86,40:se,50:ie,70:ge},{16:90,40:P,41:M},{11:91,40:b,50:S},{18:92,19:[1,93],51:50,52:51,56:F},e(t,[2,12]),{19:[2,57]},e(ce,[2,58],{54:94,55:95,57:96,59:be,60:ve}),e([19,56,59,60],[2,63]),e(t,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(t,[2,36]),{13:$,41:G,45:101,46:60,48:Z,49:z},e(t,[2,47]),e(t,[2,48]),e(t,[2,49]),e(Y,[2,39]),e(Y,[2,40]),e(ne,[2,46]),e(t,[2,42]),e(t,[2,8]),e(t,[2,76]),e(t,[2,77]),e(t,[2,78]),{13:[1,102],42:B},{13:[1,104],15:[1,103]},{19:[1,105]},e(t,[2,15]),e(ce,[2,59],{55:106,58:[1,107],60:ve}),e(ce,[2,60]),e(De,[2,64]),e(ce,[2,67]),e(De,[2,66]),{18:108,19:[1,109],51:50,52:51,56:F},{16:110,40:P,41:M},e(te,[2,44],{46:84,13:$,41:G,48:Z,49:z}),{14:111,40:se,50:ie,70:ge},{16:112,40:P,41:M},{14:113,40:se,50:ie,70:ge},e(t,[2,13]),e(ce,[2,61]),{57:114,59:be},{19:[1,115]},e(t,[2,20]),e(t,[2,23],{17:[1,116],42:B}),e(t,[2,11]),{13:[1,117],42:B},e(t,[2,10]),e(De,[2,65]),e(t,[2,18]),{18:118,19:[1,119],51:50,52:51,56:F},{14:120,40:se,50:ie,70:ge},{19:[1,121]},e(t,[2,21]),e(t,[2,9]),e(t,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:X(function(Ce,Ie){if(Ie.recoverable)this.trace(Ce);else{var Le=new Error(Ce);throw Le.hash=Ie,Le}},"parseError"),parse:X(function(Ce){var Ie=this,Le=[0],Fe=[],Ve=[null],Oe=[],Dt=this.table,ot="",sn=0,Kt=0,Ft=2,Je=1,ht=Oe.slice.call(arguments,1),et=Object.create(this.lexer),qe={yy:{}};for(var He in this.yy)Object.prototype.hasOwnProperty.call(this.yy,He)&&(qe.yy[He]=this.yy[He]);et.setInput(Ce,qe.yy),qe.yy.lexer=et,qe.yy.parser=this,typeof et.yylloc>"u"&&(et.yylloc={});var Ge=et.yylloc;Oe.push(Ge);var Ye=et.options&&et.options.ranges;typeof qe.yy.parseError=="function"?this.parseError=qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(Wn){Le.length=Le.length-2*Wn,Ve.length=Ve.length-Wn,Oe.length=Oe.length-Wn}X(Ae,"popStack");function Xe(){var Wn;return Wn=Fe.pop()||et.lex()||Je,typeof Wn!="number"&&(Wn instanceof Array&&(Fe=Wn,Wn=Fe.pop()),Wn=Ie.symbols_[Wn]||Wn),Wn}X(Xe,"lex");for(var fe,Qe,Ke,mt,lt={},$t,Ut,Jt,wn;;){if(Qe=Le[Le.length-1],this.defaultActions[Qe]?Ke=this.defaultActions[Qe]:((fe===null||typeof fe>"u")&&(fe=Xe()),Ke=Dt[Qe]&&Dt[Qe][fe]),typeof Ke>"u"||!Ke.length||!Ke[0]){var Vn="";wn=[];for($t in Dt[Qe])this.terminals_[$t]&&$t>Ft&&wn.push("'"+this.terminals_[$t]+"'");et.showPosition?Vn="Parse error on line "+(sn+1)+`:
`+et.showPosition()+`
Expecting `+wn.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Vn="Parse error on line "+(sn+1)+": Unexpected "+(fe==Je?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Vn,{text:et.match,token:this.terminals_[fe]||fe,line:et.yylineno,loc:Ge,expected:wn})}if(Ke[0]instanceof Array&&Ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qe+", token: "+fe);switch(Ke[0]){case 1:Le.push(fe),Ve.push(et.yytext),Oe.push(et.yylloc),Le.push(Ke[1]),fe=null,Kt=et.yyleng,ot=et.yytext,sn=et.yylineno,Ge=et.yylloc;break;case 2:if(Ut=this.productions_[Ke[1]][1],lt.$=Ve[Ve.length-Ut],lt._$={first_line:Oe[Oe.length-(Ut||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(Ut||1)].first_column,last_column:Oe[Oe.length-1].last_column},Ye&&(lt._$.range=[Oe[Oe.length-(Ut||1)].range[0],Oe[Oe.length-1].range[1]]),mt=this.performAction.apply(lt,[ot,Kt,sn,qe.yy,Ke[1],Ve,Oe].concat(ht)),typeof mt<"u")return mt;Ut&&(Le=Le.slice(0,-1*Ut*2),Ve=Ve.slice(0,-1*Ut),Oe=Oe.slice(0,-1*Ut)),Le.push(this.productions_[Ke[1]][0]),Ve.push(lt.$),Oe.push(lt._$),Jt=Dt[Le[Le.length-2]][Le[Le.length-1]],Le.push(Jt);break;case 3:return!0}}return!0},"parse")},Ee=function(){var we={EOF:1,parseError:X(function(Ie,Le){if(this.yy.parser)this.yy.parser.parseError(Ie,Le);else throw new Error(Ie)},"parseError"),setInput:X(function(Ce,Ie){return this.yy=Ie||this.yy||{},this._input=Ce,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},"setInput"),input:X(function(){var Ce=this._input[0];this.yytext+=Ce,this.yyleng++,this.offset++,this.match+=Ce,this.matched+=Ce;var Ie=Ce.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ce},"input"),unput:X(function(Ce){var Ie=Ce.length,Le=Ce.split(/(?:\r\n?|\n)/g);this._input=Ce+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Fe=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),Le.length-1&&(this.yylineno-=Le.length-1);var Ve=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:Le?(Le.length===Fe.length?this.yylloc.first_column:0)+Fe[Fe.length-Le.length].length-Le[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[Ve[0],Ve[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Ce){this.unput(this.match.slice(Ce))},"less"),pastInput:X(function(){var Ce=this.matched.substr(0,this.matched.length-this.match.length);return(Ce.length>20?"...":"")+Ce.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Ce=this.match;return Ce.length<20&&(Ce+=this._input.substr(0,20-Ce.length)),(Ce.substr(0,20)+(Ce.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Ce=this.pastInput(),Ie=new Array(Ce.length+1).join("-");return Ce+this.upcomingInput()+`
`+Ie+"^"},"showPosition"),test_match:X(function(Ce,Ie){var Le,Fe,Ve;if(this.options.backtrack_lexer&&(Ve={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&&(Ve.yylloc.range=this.yylloc.range.slice(0))),Fe=Ce[0].match(/(?:\r\n?|\n).*/g),Fe&&(this.yylineno+=Fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Fe?Fe[Fe.length-1].length-Fe[Fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ce[0].length},this.yytext+=Ce[0],this.match+=Ce[0],this.matches=Ce,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(Ce[0].length),this.matched+=Ce[0],Le=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Le)return Le;if(this._backtrack){for(var Oe in Ve)this[Oe]=Ve[Oe];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ce,Ie,Le,Fe;this._more||(this.yytext="",this.match="");for(var Ve=this._currentRules(),Oe=0;Oe<Ve.length;Oe++)if(Le=this._input.match(this.rules[Ve[Oe]]),Le&&(!Ie||Le[0].length>Ie[0].length)){if(Ie=Le,Fe=Oe,this.options.backtrack_lexer){if(Ce=this.test_match(Le,Ve[Oe]),Ce!==!1)return Ce;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(Ce=this.test_match(Ie,Ve[Fe]),Ce!==!1?Ce:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:X(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:X(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:X(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Ie,Le,Fe,Ve){switch(Fe){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return Le.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return Le.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,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,71,72,73,74],inclusive:!0}}};return we}();ye.lexer=Ee;function he(){this.yy={}}return X(he,"Parser"),he.prototype=ye,ye.Parser=he,new he}();Tct.parser=Tct;var wLi=Tct,TY,ELi=(TY=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(t,r=""){var a;return this.entities.has(t)?!((a=this.entities.get(t))!=null&&a.alias)&&r&&(this.entities.get(t).alias=r,it.info(`Add alias '${r}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:r,shape:"erBox",look:nn().look??"default",cssClasses:"default",cssStyles:[]}),it.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,r){const a=this.addEntity(t);let s;for(s=r.length-1;s>=0;s--)r[s].keys||(r[s].keys=[]),r[s].comment||(r[s].comment=""),a.attributes.push(r[s]),it.debug("Added attribute ",r[s].name)}addRelationship(t,r,a,s){const o=this.entities.get(t),u=this.entities.get(a);if(!o||!u)return;const h={entityA:o.id,roleA:r,entityB:u.id,relSpec:s};this.relationships.push(h),it.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let r=[];for(const a of t){const s=this.classes.get(a);s!=null&&s.styles&&(r=[...r,...s.styles??[]].map(o=>o.trim())),s!=null&&s.textStyles&&(r=[...r,...s.textStyles??[]].map(o=>o.trim()))}return r}addCssStyles(t,r){for(const a of t){const s=this.entities.get(a);if(!r||!s)return;for(const o of r)s.cssStyles.push(o)}}addClass(t,r){t.forEach(a=>{let s=this.classes.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.classes.set(a,s)),r&&r.forEach(function(o){if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)})})}setClass(t,r){for(const a of t){const s=this.entities.get(a);if(s)for(const o of r)s.cssClasses+=" "+o}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],M1()}getData(){const t=[],r=[],a=nn();for(const o of this.entities.keys()){const u=this.entities.get(o);u&&(u.cssCompiledStyles=this.getCompiledStyles(u.cssClasses.split(" ")),t.push(u))}let s=0;for(const o of this.relationships){const u={id:XV(o.entityA,o.entityB,{prefix:"id",counter:s++}),type:"normal",curve:"basis",start:o.entityA,end:o.entityB,label:o.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:o.relSpec.cardB.toLowerCase(),arrowTypeEnd:o.relSpec.cardA.toLowerCase(),pattern:o.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:a.look};r.push(u)}return{nodes:t,edges:r,other:{},config:a,direction:"TB"}}},X(TY,"ErDB"),TY),pYn={};KCe(pYn,{draw:()=>xLi});var xLi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing er diagram (unified)",t);const{securityLevel:s,er:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.config.flowchart.nodeSpacing=(o==null?void 0:o.nodeSpacing)||140,h.config.flowchart.rankSpacing=(o==null?void 0:o.rankSpacing)||80,h.direction=a.db.getDirection(),h.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],h.diagramId=t,await $W(h,f),h.layoutAlgorithm==="elk"&&f.select(".edges").lower();const p=f.selectAll('[id*="-background"]');Array.from(p).length>0&&p.each(function(){const b=gn(this),w=b.attr("id").replace("-background",""),S=f.select(`#${CSS.escape(w)}`);if(!S.empty()){const C=S.attr("transform");b.attr("transform",C)}});const m=8;Vo.insertTitle(f,"erDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,m,"erDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),SLi=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),TLi=X(e=>`
  .entityBox {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
  }

  .relationshipLabelBox {
    fill: ${e.tertiaryColor};
    opacity: 0.7;
    background-color: ${e.tertiaryColor};
      rect {
        opacity: 0.5;
      }
  }

  .labelBkg {
    background-color: ${SLi(e.tertiaryColor,.5)};
  }

  .edgeLabel .label {
    fill: ${e.nodeBorder};
    font-size: 14px;
  }

  .label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }

  .edge-pattern-dashed {
    stroke-dasharray: 8,8;
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon
  {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .relationshipLine {
    stroke: ${e.lineColor};
    stroke-width: 1;
    fill: none;
  }

  .marker {
    fill: none !important;
    stroke: ${e.lineColor} !important;
    stroke-width: 1;
  }
`,"getStyles"),CLi=TLi,ALi={parser:wLi,get db(){return new ELi},renderer:pYn,styles:CLi};const kLi=Object.freeze(Object.defineProperty({__proto__:null,diagram:ALi},Symbol.toStringTag,{value:"Module"}));function z$(e,t){var r,a,s;e.accDescr&&((r=t.setAccDescription)==null||r.call(t,e.accDescr)),e.accTitle&&((a=t.setAccTitle)==null||a.call(t,e.accTitle)),e.title&&((s=t.setDiagramTitle)==null||s.call(t,e.title))}X(z$,"populateCommonDb");var CY,gYn=(CY=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},X(CY,"ImperativeState"),CY);function Eb(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}function eA(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"}function RLi(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function Oxe(e){return typeof e=="object"&&e!==null&&Eb(e.container)&&eA(e.reference)&&typeof e.message=="string"}class mYn{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,r){return Eb(t)&&this.isSubtype(t.$type,r)}isSubtype(t,r){if(t===r)return!0;let a=this.subtypes[t];a||(a=this.subtypes[t]={});const s=a[r];if(s!==void 0)return s;{const o=this.computeIsSubtype(t,r);return a[r]=o,o}}getAllSubTypes(t){const r=this.allSubtypes[t];if(r)return r;{const a=this.getAllTypes(),s=[];for(const o of a)this.isSubtype(o,t)&&s.push(o);return this.allSubtypes[t]=s,s}}}function Zoe(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}function bYn(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}function yYn(e){return Zoe(e)&&typeof e.fullText=="string"}class ym{constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){const t={state:this.startFn(),next:()=>this.nextFn(t.state),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const t=this.iterator();let r=0,a=t.next();for(;!a.done;)r++,a=t.next();return r}toArray(){const t=[],r=this.iterator();let a;do a=r.next(),a.value!==void 0&&t.push(a.value);while(!a.done);return t}toSet(){return new Set(this)}toMap(t,r){const a=this.map(s=>[t?t(s):s,r?r(s):s]);return new Map(a)}toString(){return this.join()}concat(t){return new ym(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let a;if(!r.firstDone){do if(a=this.nextFn(r.first),!a.done)return a;while(!a.done);r.firstDone=!0}do if(a=r.iterator.next(),!a.done)return a;while(!a.done);return Cw})}join(t=","){const r=this.iterator();let a="",s,o=!1;do s=r.next(),s.done||(o&&(a+=t),a+=ILi(s.value)),o=!0;while(!s.done);return a}indexOf(t,r=0){const a=this.iterator();let s=0,o=a.next();for(;!o.done;){if(s>=r&&o.value===t)return s;o=a.next(),s++}return-1}every(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(!t(a.value))return!1;a=r.next()}return!0}some(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(t(a.value))return!0;a=r.next()}return!1}forEach(t){const r=this.iterator();let a=0,s=r.next();for(;!s.done;)t(s.value,a),s=r.next(),a++}map(t){return new ym(this.startFn,r=>{const{done:a,value:s}=this.nextFn(r);return a?Cw:{done:!1,value:t(s)}})}filter(t){return new ym(this.startFn,r=>{let a;do if(a=this.nextFn(r),!a.done&&t(a.value))return a;while(!a.done);return Cw})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){const a=this.iterator();let s=r,o=a.next();for(;!o.done;)s===void 0?s=o.value:s=t(s,o.value),o=a.next();return s}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,a){const s=t.next();if(s.done)return a;const o=this.recursiveReduce(t,r,a);return o===void 0?s.value:r(o,s.value)}find(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(t(a.value))return a.value;a=r.next()}}findIndex(t){const r=this.iterator();let a=0,s=r.next();for(;!s.done;){if(t(s.value))return a;s=r.next(),a++}return-1}includes(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(a.value===t)return!0;a=r.next()}return!1}flatMap(t){return new ym(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const o=r.iterator.next();if(o.done)r.iterator=void 0;else return o}const{done:a,value:s}=this.nextFn(r.this);if(!a){const o=t(s);if(iTe(o))r.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}}while(r.iterator);return Cw})}flat(t){if(t===void 0&&(t=1),t<=0)return this;const r=t>1?this.flat(t-1):this;return new ym(()=>({this:r.startFn()}),a=>{do{if(a.iterator){const u=a.iterator.next();if(u.done)a.iterator=void 0;else return u}const{done:s,value:o}=r.nextFn(a.this);if(!s)if(iTe(o))a.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}while(a.iterator);return Cw})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new ym(()=>{const r=this.startFn();for(let a=0;a<t;a++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(t){return new ym(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?Cw:this.nextFn(r.state)))}distinct(t){return new ym(()=>({set:new Set,internalState:this.startFn()}),r=>{let a;do if(a=this.nextFn(r.internalState),!a.done){const s=t?t(a.value):a.value;if(!r.set.has(s))return r.set.add(s),a}while(!a.done);return Cw})}exclude(t,r){const a=new Set;for(const s of t){const o=r?r(s):s;a.add(o)}return this.filter(s=>{const o=r?r(s):s;return!a.has(o)})}}function ILi(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function iTe(e){return!!e&&typeof e[Symbol.iterator]=="function"}const NLi=new ym(()=>{},()=>Cw),Cw=Object.freeze({done:!0,value:void 0});function wm(...e){if(e.length===1){const t=e[0];if(t instanceof ym)return t;if(iTe(t))return new ym(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new ym(()=>({index:0}),r=>r.index<t.length?{done:!1,value:t[r.index++]}:Cw)}return e.length>1?new ym(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){const r=e[t.collIndex++];iTe(r)?t.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return Cw}):NLi}class Hgt extends ym{constructor(t,r,a){super(()=>({iterators:a!=null&&a.includeRoot?[[t][Symbol.iterator]()]:[r(t)[Symbol.iterator]()],pruned:!1}),s=>{for(s.pruned&&(s.iterators.pop(),s.pruned=!1);s.iterators.length>0;){const u=s.iterators[s.iterators.length-1].next();if(u.done)s.iterators.pop();else return s.iterators.push(r(u.value)[Symbol.iterator]()),u}return Cw})}iterator(){const t={state:this.startFn(),next:()=>this.nextFn(t.state),prune:()=>{t.state.pruned=!0},[Symbol.iterator]:()=>t};return t}}var Cct;(function(e){function t(o){return o.reduce((u,h)=>u+h,0)}e.sum=t;function r(o){return o.reduce((u,h)=>u*h,0)}e.product=r;function a(o){return o.reduce((u,h)=>Math.min(u,h))}e.min=a;function s(o){return o.reduce((u,h)=>Math.max(u,h))}e.max=s})(Cct||(Cct={}));function Act(e){return new Hgt(e,t=>Zoe(t)?t.content:[],{includeRoot:!0})}function OLi(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function kct(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function aTe(e){if(!e)return;const{offset:t,end:r,range:a}=e;return{range:a,offset:t,end:r,length:r-t}}var m7;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(m7||(m7={}));function LLi(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return m7.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return m7.After;const r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,a=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&a?m7.Inside:r?m7.OverlapBack:a?m7.OverlapFront:m7.Outside}function DLi(e,t){return LLi(e,t)>m7.After}const MLi=/^[\w\p{L}]$/u;function PLi(e,t){if(e){const r=BLi(e,!0);if(r&&vSn(r,t))return r;if(yYn(e)){const a=e.content.findIndex(s=>!s.hidden);for(let s=a-1;s>=0;s--){const o=e.content[s];if(vSn(o,t))return o}}}}function vSn(e,t){return bYn(e)&&t.includes(e.tokenType.name)}function BLi(e,t=!0){for(;e.container;){const r=e.container;let a=r.content.indexOf(e);for(;a>0;){a--;const s=r.content[a];if(t||!s.hidden)return s}e=r}}class vYn extends Error{constructor(t,r){super(t?`${r} at ${t.range.start.line}:${t.range.start.character}`:r)}}function Dce(e){throw new Error("Error! The input value was not handled.")}const zwe="AbstractRule",Gwe="AbstractType",vit="Condition",_Sn="TypeDefinition",_it="ValueLiteral",Kie="AbstractElement";function FLi(e){return Gu.isInstance(e,Kie)}const qwe="ArrayLiteral",Hwe="ArrayType",Xie="BooleanLiteral";function $Li(e){return Gu.isInstance(e,Xie)}const Qie="Conjunction";function ULi(e){return Gu.isInstance(e,Qie)}const Zie="Disjunction";function zLi(e){return Gu.isInstance(e,Zie)}const Vwe="Grammar",wit="GrammarImport",Jie="InferredType";function _Yn(e){return Gu.isInstance(e,Jie)}const eae="Interface";function wYn(e){return Gu.isInstance(e,eae)}const Eit="NamedArgument",tae="Negation";function GLi(e){return Gu.isInstance(e,tae)}const Ywe="NumberLiteral",jwe="Parameter",nae="ParameterReference";function qLi(e){return Gu.isInstance(e,nae)}const rae="ParserRule";function AS(e){return Gu.isInstance(e,rae)}const Wwe="ReferenceType",Lxe="ReturnType";function HLi(e){return Gu.isInstance(e,Lxe)}const iae="SimpleType";function VLi(e){return Gu.isInstance(e,iae)}const Kwe="StringLiteral",mV="TerminalRule";function G$(e){return Gu.isInstance(e,mV)}const aae="Type";function EYn(e){return Gu.isInstance(e,aae)}const xit="TypeAttribute",Xwe="UnionType",sae="Action";function _ke(e){return Gu.isInstance(e,sae)}const oae="Alternatives";function xYn(e){return Gu.isInstance(e,oae)}const lae="Assignment";function e$(e){return Gu.isInstance(e,lae)}const cae="CharacterRange";function YLi(e){return Gu.isInstance(e,cae)}const uae="CrossReference";function Vgt(e){return Gu.isInstance(e,uae)}const hae="EndOfFile";function jLi(e){return Gu.isInstance(e,hae)}const dae="Group";function Ygt(e){return Gu.isInstance(e,dae)}const fae="Keyword";function t$(e){return Gu.isInstance(e,fae)}const pae="NegatedToken";function WLi(e){return Gu.isInstance(e,pae)}const gae="RegexToken";function KLi(e){return Gu.isInstance(e,gae)}const mae="RuleCall";function n$(e){return Gu.isInstance(e,mae)}const bae="TerminalAlternatives";function XLi(e){return Gu.isInstance(e,bae)}const yae="TerminalGroup";function QLi(e){return Gu.isInstance(e,yae)}const vae="TerminalRuleCall";function ZLi(e){return Gu.isInstance(e,vae)}const _ae="UnorderedGroup";function SYn(e){return Gu.isInstance(e,_ae)}const wae="UntilToken";function JLi(e){return Gu.isInstance(e,wae)}const Eae="Wildcard";function eDi(e){return Gu.isInstance(e,Eae)}class TYn extends mYn{getAllTypes(){return[Kie,zwe,Gwe,sae,oae,qwe,Hwe,lae,Xie,cae,vit,Qie,uae,Zie,hae,Vwe,wit,dae,Jie,eae,fae,Eit,pae,tae,Ywe,jwe,nae,rae,Wwe,gae,Lxe,mae,iae,Kwe,bae,yae,mV,vae,aae,xit,_Sn,Xwe,_ae,wae,_it,Eae]}computeIsSubtype(t,r){switch(t){case sae:case oae:case lae:case cae:case uae:case hae:case dae:case fae:case pae:case gae:case mae:case bae:case yae:case vae:case _ae:case wae:case Eae:return this.isSubtype(Kie,r);case qwe:case Ywe:case Kwe:return this.isSubtype(_it,r);case Hwe:case Wwe:case iae:case Xwe:return this.isSubtype(_Sn,r);case Xie:return this.isSubtype(vit,r)||this.isSubtype(_it,r);case Qie:case Zie:case tae:case nae:return this.isSubtype(vit,r);case Jie:case eae:case aae:return this.isSubtype(Gwe,r);case rae:return this.isSubtype(zwe,r)||this.isSubtype(Gwe,r);case mV:return this.isSubtype(zwe,r);default:return!1}}getReferenceType(t){const r=`${t.container.$type}:${t.property}`;switch(r){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Gwe;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return zwe;case"Grammar:usedGrammars":return Vwe;case"NamedArgument:parameter":case"ParameterReference:parameter":return jwe;case"TerminalRuleCall:rule":return mV;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case Kie:return{name:Kie,properties:[{name:"cardinality"},{name:"lookahead"}]};case qwe:return{name:qwe,properties:[{name:"elements",defaultValue:[]}]};case Hwe:return{name:Hwe,properties:[{name:"elementType"}]};case Xie:return{name:Xie,properties:[{name:"true",defaultValue:!1}]};case Qie:return{name:Qie,properties:[{name:"left"},{name:"right"}]};case Zie:return{name:Zie,properties:[{name:"left"},{name:"right"}]};case Vwe:return{name:Vwe,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case wit:return{name:wit,properties:[{name:"path"}]};case Jie:return{name:Jie,properties:[{name:"name"}]};case eae:return{name:eae,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case Eit:return{name:Eit,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case tae:return{name:tae,properties:[{name:"value"}]};case Ywe:return{name:Ywe,properties:[{name:"value"}]};case jwe:return{name:jwe,properties:[{name:"name"}]};case nae:return{name:nae,properties:[{name:"parameter"}]};case rae:return{name:rae,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case Wwe:return{name:Wwe,properties:[{name:"referenceType"}]};case Lxe:return{name:Lxe,properties:[{name:"name"}]};case iae:return{name:iae,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case Kwe:return{name:Kwe,properties:[{name:"value"}]};case mV:return{name:mV,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case aae:return{name:aae,properties:[{name:"name"},{name:"type"}]};case xit:return{name:xit,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case Xwe:return{name:Xwe,properties:[{name:"types",defaultValue:[]}]};case sae:return{name:sae,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case oae:return{name:oae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case lae:return{name:lae,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case cae:return{name:cae,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case uae:return{name:uae,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case hae:return{name:hae,properties:[{name:"cardinality"},{name:"lookahead"}]};case dae:return{name:dae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case fae:return{name:fae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case pae:return{name:pae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case gae:return{name:gae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case mae:return{name:mae,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case bae:return{name:bae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case yae:return{name:yae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case vae:return{name:vae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case _ae:return{name:_ae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case wae:return{name:wae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Eae:return{name:Eae,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:t,properties:[]}}}}const Gu=new TYn;function tDi(e){for(const[t,r]of Object.entries(e))t.startsWith("$")||(Array.isArray(r)?r.forEach((a,s)=>{Eb(a)&&(a.$container=e,a.$containerProperty=t,a.$containerIndex=s)}):Eb(r)&&(r.$container=e,r.$containerProperty=t))}function wke(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function h9(e){const r=Rct(e).$document;if(!r)throw new Error("AST node has no document.");return r}function Rct(e){for(;e.$container;)e=e.$container;return e}function jgt(e,t){if(!e)throw new Error("Node must be an AstNode.");const r=t==null?void 0:t.range;return new ym(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),a=>{for(;a.keyIndex<a.keys.length;){const s=a.keys[a.keyIndex];if(!s.startsWith("$")){const o=e[s];if(Eb(o)){if(a.keyIndex++,wSn(o,r))return{done:!1,value:o}}else if(Array.isArray(o)){for(;a.arrayIndex<o.length;){const u=a.arrayIndex++,h=o[u];if(Eb(h)&&wSn(h,r))return{done:!1,value:h}}a.arrayIndex=0}}a.keyIndex++}return Cw})}function Mce(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new Hgt(e,r=>jgt(r,t))}function aY(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new Hgt(e,r=>jgt(r,t),{includeRoot:!0})}function wSn(e,t){var r;if(!t)return!0;const a=(r=e.$cstNode)===null||r===void 0?void 0:r.range;return a?DLi(a,t):!1}function CYn(e){return new ym(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const r=t.keys[t.keyIndex];if(!r.startsWith("$")){const a=e[r];if(eA(a))return t.keyIndex++,{done:!1,value:{reference:a,container:e,property:r}};if(Array.isArray(a)){for(;t.arrayIndex<a.length;){const s=t.arrayIndex++,o=a[s];if(eA(o))return{done:!1,value:{reference:o,container:e,property:r,index:s}}}t.arrayIndex=0}}t.keyIndex++}return Cw})}function nDi(e,t){const r=e.getTypeMetaData(t.$type),a=t;for(const s of r.properties)s.defaultValue!==void 0&&a[s.name]===void 0&&(a[s.name]=AYn(s.defaultValue))}function AYn(e){return Array.isArray(e)?[...e.map(AYn)]:e}function Oo(e){return e.charCodeAt(0)}function Sit(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}function lie(e,t){if(e[t]===!0)throw"duplicate flag "+t;e[t],e[t]=!0}function eV(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function rDi(){throw Error("Internal Error - Should never get here!")}function ESn(e){return e.type==="Character"}const sTe=[];for(let e=Oo("0");e<=Oo("9");e++)sTe.push(e);const oTe=[Oo("_")].concat(sTe);for(let e=Oo("a");e<=Oo("z");e++)oTe.push(e);for(let e=Oo("A");e<=Oo("Z");e++)oTe.push(e);const xSn=[Oo(" "),Oo("\f"),Oo(`
`),Oo("\r"),Oo("	"),Oo("\v"),Oo("	"),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo(" "),Oo("\u2028"),Oo("\u2029"),Oo(" "),Oo(" "),Oo("　"),Oo("\uFEFF")],iDi=/[0-9a-fA-F]/,Qwe=/[0-9]/,aDi=/[1-9]/;class kYn{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx}pattern(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");const r=this.disjunction();this.consumeChar("/");const a={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":lie(a,"global");break;case"i":lie(a,"ignoreCase");break;case"m":lie(a,"multiLine");break;case"u":lie(a,"unicode");break;case"y":lie(a,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:a,value:r,loc:this.loc(0)}}disjunction(){const t=[],r=this.idx;for(t.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(r)}}alternative(){const t=[],r=this.idx;for(;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}eV(r);const a=this.disjunction();return this.consumeChar(")"),{type:r,value:a,loc:this.loc(t)}}return rDi()}quantifier(t=!1){let r;const a=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":const s=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:s,atMost:s};break;case",":let o;this.isDigit()?(o=this.integerIncludingZero(),r={atLeast:s,atMost:o}):r={atLeast:s,atMost:1/0},this.consumeChar("}");break}if(t===!0&&r===void 0)return;eV(r);break}if(!(t===!0&&r===void 0)&&eV(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(a),r}atom(){let t;const r=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group();break}if(t===void 0&&this.isPatternCharacter()&&(t=this.patternCharacter()),eV(t))return t.loc=this.loc(r),this.isQuantifier()&&(t.quantifier=this.quantifier()),t}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Oo(`
`),Oo("\r"),Oo("\u2028"),Oo("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let t,r=!1;switch(this.popChar()){case"d":t=sTe;break;case"D":t=sTe,r=!0;break;case"s":t=xSn;break;case"S":t=xSn,r=!0;break;case"w":t=oTe;break;case"W":t=oTe,r=!0;break}if(eV(t))return{type:"Set",value:t,complement:r}}controlEscapeAtom(){let t;switch(this.popChar()){case"f":t=Oo("\f");break;case"n":t=Oo(`
`);break;case"r":t=Oo("\r");break;case"t":t=Oo("	");break;case"v":t=Oo("\v");break}if(eV(t))return{type:"Character",value:t}}controlLetterEscapeAtom(){this.consumeChar("c");const t=this.popChar();if(/[a-zA-Z]/.test(t)===!1)throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Oo("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const t=this.popChar();return{type:"Character",value:Oo(t)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const t=this.popChar();return{type:"Character",value:Oo(t)}}}characterClass(){const t=[];let r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){const a=this.classAtom();if(a.type,ESn(a)&&this.isRangeDash()){this.consumeChar("-");const s=this.classAtom();if(s.type,ESn(s)){if(s.value<a.value)throw Error("Range out of order in character class");t.push({from:a.value,to:s.value})}else Sit(a.value,t),t.push(Oo("-")),Sit(s.value,t)}else Sit(a.value,t)}return this.consumeChar("]"),{type:"Set",complement:r,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Oo("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let t=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),t=!1;break;default:this.groupIdx++;break}const r=this.disjunction();this.consumeChar(")");const a={type:"Group",capturing:t,value:r};return t&&(a.idx=this.groupIdx),a}positiveInteger(){let t=this.popChar();if(aDi.test(t)===!1)throw Error("Expecting a positive integer");for(;Qwe.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}integerIncludingZero(){let t=this.popChar();if(Qwe.test(t)===!1)throw Error("Expecting an integer");for(;Qwe.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)}patternCharacter(){const t=this.popChar();switch(t){case`
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:Oo(t)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return Qwe.test(this.peekChar(0))}isClassAtom(t=0){switch(this.peekChar(t)){case"]":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}}isQuantifier(){const t=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(t)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let r="";for(let s=0;s<t;s++){const o=this.popChar();if(iDi.test(o)===!1)throw Error("Expecting a HexDecimal digits");r+=o}return{type:"Character",value:parseInt(r,16)}}peekChar(t=0){return this.input[this.idx+t]}popChar(){const t=this.peekChar(0);return this.consumeChar(void 0),t}consumeChar(t){if(t!==void 0&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}class Eke{visitChildren(t){for(const r in t){const a=t[r];t.hasOwnProperty(r)&&(a.type!==void 0?this.visit(a):Array.isArray(a)&&a.forEach(s=>{this.visit(s)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t);break}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}const sDi=/\r?\n/gm,oDi=new kYn;class lDi extends Eke{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(t){this.multiline=!1,this.regex=t,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(t){t.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(t){const r=String.fromCharCode(t.value);if(!this.multiline&&r===`
`&&(this.multiline=!0),t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const a=xke(r);this.endRegexpStack.push(a),this.isStarting&&(this.startRegexp+=a)}}visitSet(t){if(!this.multiline){const r=this.regex.substring(t.loc.begin,t.loc.end),a=new RegExp(r);this.multiline=!!`
`.match(a)}if(t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(t.loc.begin,t.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(t){t.type==="Group"&&t.quantifier||super.visitChildren(t)}}const Tit=new lDi;function cDi(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),Tit.reset(e),Tit.visit(oDi.pattern(e)),Tit.multiline}catch{return!1}}const uDi=`\f
\r	\v              \u2028\u2029  　\uFEFF`.split("");function Ict(e){const t=typeof e=="string"?new RegExp(e):e;return uDi.some(r=>t.test(r))}function xke(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hDi(e){return Array.prototype.map.call(e,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:xke(t)).join("")}function dDi(e,t){const r=fDi(e),a=t.match(r);return!!a&&a[0].length>0}function fDi(e){typeof e=="string"&&(e=new RegExp(e));const t=e,r=e.source;let a=0;function s(){let o="",u;function h(p){o+=r.substr(a,p),a+=p}function f(p){o+="(?:"+r.substr(a,p)+"|$)",a+=p}for(;a<r.length;)switch(r[a]){case"\\":switch(r[a+1]){case"c":f(3);break;case"x":f(4);break;case"u":t.unicode?r[a+2]==="{"?f(r.indexOf("}",a)-a+1):f(6):f(2);break;case"p":case"P":t.unicode?f(r.indexOf("}",a)-a+1):f(2);break;case"k":f(r.indexOf(">",a)-a+1);break;default:f(2);break}break;case"[":u=/\[(?:\\.|.)*?\]/g,u.lastIndex=a,u=u.exec(r)||[],f(u[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":h(1);break;case"{":u=/\{\d+,?\d*\}/g,u.lastIndex=a,u=u.exec(r),u?h(u[0].length):f(1);break;case"(":if(r[a+1]==="?")switch(r[a+2]){case":":o+="(?:",a+=3,o+=s()+"|$)";break;case"=":o+="(?=",a+=3,o+=s()+")";break;case"!":u=a,a+=3,s(),o+=r.substr(u,a-u);break;case"<":switch(r[a+3]){case"=":case"!":u=a,a+=4,s(),o+=r.substr(u,a-u);break;default:h(r.indexOf(">",a)-a+1),o+=s()+"|$)";break}break}else h(1),o+=s()+"|$)";break;case")":return++a,o;default:f(1);break}return o}return new RegExp(s(),e.flags)}function pDi(e){return e.rules.find(t=>AS(t)&&t.entry)}function gDi(e){return e.rules.filter(t=>G$(t)&&t.hidden)}function RYn(e,t){const r=new Set,a=pDi(e);if(!a)return new Set(e.rules);const s=[a].concat(gDi(e));for(const u of s)IYn(u,r,t);const o=new Set;for(const u of e.rules)(r.has(u.name)||G$(u)&&u.hidden)&&o.add(u);return o}function IYn(e,t,r){t.add(e.name),Mce(e).forEach(a=>{if(n$(a)||r){const s=a.rule.ref;s&&!t.has(s.name)&&IYn(s,t,r)}})}function mDi(e){if(e.terminal)return e.terminal;if(e.type.ref){const t=OYn(e.type.ref);return t==null?void 0:t.terminal}}function bDi(e){return e.hidden&&!Ict(Qgt(e))}function yDi(e,t){return!e||!t?[]:Wgt(e,t,e.astNode,!0)}function NYn(e,t,r){if(!e||!t)return;const a=Wgt(e,t,e.astNode,!0);if(a.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,a.length-1)):r=0,a[r]}function Wgt(e,t,r,a){if(!a){const s=wke(e.grammarSource,e$);if(s&&s.feature===t)return[e]}return Zoe(e)&&e.astNode===r?e.content.flatMap(s=>Wgt(s,t,r,!1)):[]}function vDi(e,t,r){if(!e)return;const a=_Di(e,t,e==null?void 0:e.astNode);if(a.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,a.length-1)):r=0,a[r]}function _Di(e,t,r){if(e.astNode!==r)return[];if(t$(e.grammarSource)&&e.grammarSource.value===t)return[e];const a=Act(e).iterator();let s;const o=[];do if(s=a.next(),!s.done){const u=s.value;u.astNode===r?t$(u.grammarSource)&&u.grammarSource.value===t&&o.push(u):a.prune()}while(!s.done);return o}function wDi(e){var t;const r=e.astNode;for(;r===((t=e.container)===null||t===void 0?void 0:t.astNode);){const a=wke(e.grammarSource,e$);if(a)return a;e=e.container}}function OYn(e){let t=e;return _Yn(t)&&(_ke(t.$container)?t=t.$container.$container:AS(t.$container)?t=t.$container:Dce(t.$container)),LYn(e,t,new Map)}function LYn(e,t,r){var a;function s(o,u){let h;return wke(o,e$)||(h=LYn(u,u,r)),r.set(e,h),h}if(r.has(e))return r.get(e);r.set(e,void 0);for(const o of Mce(t)){if(e$(o)&&o.feature.toLowerCase()==="name")return r.set(e,o),o;if(n$(o)&&AS(o.rule.ref))return s(o,o.rule.ref);if(VLi(o)&&(!((a=o.typeRef)===null||a===void 0)&&a.ref))return s(o,o.typeRef.ref)}}function DYn(e){return MYn(e,new Set)}function MYn(e,t){if(t.has(e))return!0;t.add(e);for(const r of Mce(e))if(n$(r)){if(!r.rule.ref||AS(r.rule.ref)&&!MYn(r.rule.ref,t))return!1}else{if(e$(r))return!1;if(_ke(r))return!1}return!!e.definition}function Kgt(e){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t){if(AS(t))return t.name;if(wYn(t)||EYn(t))return t.name}}}function Xgt(e){var t;if(AS(e))return DYn(e)?e.name:(t=Kgt(e))!==null&&t!==void 0?t:e.name;if(wYn(e)||EYn(e)||HLi(e))return e.name;if(_ke(e)){const r=EDi(e);if(r)return r}else if(_Yn(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function EDi(e){var t;if(e.inferredType)return e.inferredType.name;if(!((t=e.type)===null||t===void 0)&&t.ref)return Xgt(e.type.ref)}function xDi(e){var t,r,a;return G$(e)?(r=(t=e.type)===null||t===void 0?void 0:t.name)!==null&&r!==void 0?r:"string":(a=Kgt(e))!==null&&a!==void 0?a:e.name}function Qgt(e){const t={s:!1,i:!1,u:!1},r=tK(e.definition,t),a=Object.entries(t).filter(([,s])=>s).map(([s])=>s).join("");return new RegExp(r,a)}const Zgt=/[\s\S]/.source;function tK(e,t){if(XLi(e))return SDi(e);if(QLi(e))return TDi(e);if(YLi(e))return kDi(e);if(ZLi(e)){const r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return H7(tK(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}else{if(WLi(e))return ADi(e);if(JLi(e))return CDi(e);if(KLi(e)){const r=e.regex.lastIndexOf("/"),a=e.regex.substring(1,r),s=e.regex.substring(r+1);return t&&(t.i=s.includes("i"),t.s=s.includes("s"),t.u=s.includes("u")),H7(a,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}else{if(eDi(e))return H7(Zgt,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error(`Invalid terminal element: ${e==null?void 0:e.$type}`)}}}function SDi(e){return H7(e.elements.map(t=>tK(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function TDi(e){return H7(e.elements.map(t=>tK(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function CDi(e){return H7(`${Zgt}*?${tK(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead})}function ADi(e){return H7(`(?!${tK(e.terminal)})${Zgt}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function kDi(e){return e.right?H7(`[${Cit(e.left)}-${Cit(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1}):H7(Cit(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}function Cit(e){return xke(e.value)}function H7(e,t){var r;return(t.wrap!==!1||t.lookahead)&&(e=`(${(r=t.lookahead)!==null&&r!==void 0?r:""}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function RDi(e){const t=[],r=e.Grammar;for(const a of r.rules)G$(a)&&bDi(a)&&cDi(Qgt(a))&&t.push(a.name);return{multilineCommentRules:t,nameRegexp:MLi}}var PYn=typeof global=="object"&&global&&global.Object===Object&&global,IDi=typeof self=="object"&&self&&self.Object===Object&&self,$A=PYn||IDi||Function("return this")(),kS=$A.Symbol,BYn=Object.prototype,NDi=BYn.hasOwnProperty,ODi=BYn.toString,cie=kS?kS.toStringTag:void 0;function LDi(e){var t=NDi.call(e,cie),r=e[cie];try{e[cie]=void 0;var a=!0}catch{}var s=ODi.call(e);return a&&(t?e[cie]=r:delete e[cie]),s}var DDi=Object.prototype,MDi=DDi.toString;function PDi(e){return MDi.call(e)}var BDi="[object Null]",FDi="[object Undefined]",SSn=kS?kS.toStringTag:void 0;function Q9(e){return e==null?e===void 0?FDi:BDi:SSn&&SSn in Object(e)?LDi(e):PDi(e)}function uT(e){return e!=null&&typeof e=="object"}var $Di="[object Symbol]";function Ske(e){return typeof e=="symbol"||uT(e)&&Q9(e)==$Di}function Tke(e,t){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=t(e[r],r,e);return s}var Wc=Array.isArray,TSn=kS?kS.prototype:void 0,CSn=TSn?TSn.toString:void 0;function FYn(e){if(typeof e=="string")return e;if(Wc(e))return Tke(e,FYn)+"";if(Ske(e))return CSn?CSn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var UDi=/\s/;function zDi(e){for(var t=e.length;t--&&UDi.test(e.charAt(t)););return t}var GDi=/^\s+/;function qDi(e){return e&&e.slice(0,zDi(e)+1).replace(GDi,"")}function RS(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ASn=NaN,HDi=/^[-+]0x[0-9a-f]+$/i,VDi=/^0b[01]+$/i,YDi=/^0o[0-7]+$/i,jDi=parseInt;function WDi(e){if(typeof e=="number")return e;if(Ske(e))return ASn;if(RS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qDi(e);var r=VDi.test(e);return r||YDi.test(e)?jDi(e.slice(2),r?2:8):HDi.test(e)?ASn:+e}var kSn=1/0,KDi=17976931348623157e292;function XDi(e){if(!e)return e===0?e:0;if(e=WDi(e),e===kSn||e===-kSn){var t=e<0?-1:1;return t*KDi}return e===e?e:0}function Cke(e){var t=XDi(e),r=t%1;return t===t?r?t-r:t:0}function qj(e){return e}var QDi="[object AsyncFunction]",ZDi="[object Function]",JDi="[object GeneratorFunction]",eMi="[object Proxy]";function CR(e){if(!RS(e))return!1;var t=Q9(e);return t==ZDi||t==JDi||t==QDi||t==eMi}var Ait=$A["__core-js_shared__"],RSn=function(){var e=/[^.]+$/.exec(Ait&&Ait.keys&&Ait.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tMi(e){return!!RSn&&RSn in e}var nMi=Function.prototype,rMi=nMi.toString;function q$(e){if(e!=null){try{return rMi.call(e)}catch{}try{return e+""}catch{}}return""}var iMi=/[\\^$.*+?()[\]{}|]/g,aMi=/^\[object .+?Constructor\]$/,sMi=Function.prototype,oMi=Object.prototype,lMi=sMi.toString,cMi=oMi.hasOwnProperty,uMi=RegExp("^"+lMi.call(cMi).replace(iMi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hMi(e){if(!RS(e)||tMi(e))return!1;var t=CR(e)?uMi:aMi;return t.test(q$(e))}function dMi(e,t){return e==null?void 0:e[t]}function H$(e,t){var r=dMi(e,t);return hMi(r)?r:void 0}var Nct=H$($A,"WeakMap"),ISn=Object.create,fMi=function(){function e(){}return function(t){if(!RS(t))return{};if(ISn)return ISn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function pMi(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function gp(){}function gMi(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var mMi=800,bMi=16,yMi=Date.now;function vMi(e){var t=0,r=0;return function(){var a=yMi(),s=bMi-(a-r);if(r=a,s>0){if(++t>=mMi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _Mi(e){return function(){return e}}var lTe=function(){try{var e=H$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wMi=lTe?function(e,t){return lTe(e,"toString",{configurable:!0,enumerable:!1,value:_Mi(t),writable:!0})}:qj,EMi=vMi(wMi);function $Yn(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}function UYn(e,t,r,a){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function xMi(e){return e!==e}function SMi(e,t,r){for(var a=r-1,s=e.length;++a<s;)if(e[a]===t)return a;return-1}function Jgt(e,t,r){return t===t?SMi(e,t,r):UYn(e,xMi,r)}function zYn(e,t){var r=e==null?0:e.length;return!!r&&Jgt(e,t,0)>-1}var TMi=9007199254740991,CMi=/^(?:0|[1-9]\d*)$/;function Ake(e,t){var r=typeof e;return t=t??TMi,!!t&&(r=="number"||r!="symbol"&&CMi.test(e))&&e>-1&&e%1==0&&e<t}function emt(e,t,r){t=="__proto__"&&lTe?lTe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Pce(e,t){return e===t||e!==e&&t!==t}var AMi=Object.prototype,kMi=AMi.hasOwnProperty;function kke(e,t,r){var a=e[t];(!(kMi.call(e,t)&&Pce(a,r))||r===void 0&&!(t in e))&&emt(e,t,r)}function Bce(e,t,r,a){var s=!r;r||(r={});for(var o=-1,u=t.length;++o<u;){var h=t[o],f=void 0;f===void 0&&(f=e[h]),s?emt(r,h,f):kke(r,h,f)}return r}var NSn=Math.max;function RMi(e,t,r){return t=NSn(t===void 0?e.length-1:t,0),function(){for(var a=arguments,s=-1,o=NSn(a.length-t,0),u=Array(o);++s<o;)u[s]=a[t+s];s=-1;for(var h=Array(t+1);++s<t;)h[s]=a[s];return h[t]=r(u),pMi(e,this,h)}}function tmt(e,t){return EMi(RMi(e,t,qj),e+"")}var IMi=9007199254740991;function nmt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IMi}function UA(e){return e!=null&&nmt(e.length)&&!CR(e)}function GYn(e,t,r){if(!RS(r))return!1;var a=typeof t;return(a=="number"?UA(r)&&Ake(t,r.length):a=="string"&&t in r)?Pce(r[t],e):!1}function NMi(e){return tmt(function(t,r){var a=-1,s=r.length,o=s>1?r[s-1]:void 0,u=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,u&&GYn(r[0],r[1],u)&&(o=s<3?void 0:o,s=1),t=Object(t);++a<s;){var h=r[a];h&&e(t,h,a,o)}return t})}var OMi=Object.prototype;function Fce(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||OMi;return e===r}function LMi(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var DMi="[object Arguments]";function OSn(e){return uT(e)&&Q9(e)==DMi}var qYn=Object.prototype,MMi=qYn.hasOwnProperty,PMi=qYn.propertyIsEnumerable,Rke=OSn(function(){return arguments}())?OSn:function(e){return uT(e)&&MMi.call(e,"callee")&&!PMi.call(e,"callee")};function BMi(){return!1}var HYn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,LSn=HYn&&typeof module=="object"&&module&&!module.nodeType&&module,FMi=LSn&&LSn.exports===HYn,DSn=FMi?$A.Buffer:void 0,$Mi=DSn?DSn.isBuffer:void 0,Joe=$Mi||BMi,UMi="[object Arguments]",zMi="[object Array]",GMi="[object Boolean]",qMi="[object Date]",HMi="[object Error]",VMi="[object Function]",YMi="[object Map]",jMi="[object Number]",WMi="[object Object]",KMi="[object RegExp]",XMi="[object Set]",QMi="[object String]",ZMi="[object WeakMap]",JMi="[object ArrayBuffer]",ePi="[object DataView]",tPi="[object Float32Array]",nPi="[object Float64Array]",rPi="[object Int8Array]",iPi="[object Int16Array]",aPi="[object Int32Array]",sPi="[object Uint8Array]",oPi="[object Uint8ClampedArray]",lPi="[object Uint16Array]",cPi="[object Uint32Array]",gd={};gd[tPi]=gd[nPi]=gd[rPi]=gd[iPi]=gd[aPi]=gd[sPi]=gd[oPi]=gd[lPi]=gd[cPi]=!0;gd[UMi]=gd[zMi]=gd[JMi]=gd[GMi]=gd[ePi]=gd[qMi]=gd[HMi]=gd[VMi]=gd[YMi]=gd[jMi]=gd[WMi]=gd[KMi]=gd[XMi]=gd[QMi]=gd[ZMi]=!1;function uPi(e){return uT(e)&&nmt(e.length)&&!!gd[Q9(e)]}function Ike(e){return function(t){return e(t)}}var VYn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ase=VYn&&typeof module=="object"&&module&&!module.nodeType&&module,hPi=Ase&&Ase.exports===VYn,kit=hPi&&PYn.process,d9=function(){try{var e=Ase&&Ase.require&&Ase.require("util").types;return e||kit&&kit.binding&&kit.binding("util")}catch{}}(),MSn=d9&&d9.isTypedArray,rmt=MSn?Ike(MSn):uPi,dPi=Object.prototype,fPi=dPi.hasOwnProperty;function YYn(e,t){var r=Wc(e),a=!r&&Rke(e),s=!r&&!a&&Joe(e),o=!r&&!a&&!s&&rmt(e),u=r||a||s||o,h=u?LMi(e.length,String):[],f=h.length;for(var p in e)(t||fPi.call(e,p))&&!(u&&(p=="length"||s&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Ake(p,f)))&&h.push(p);return h}function jYn(e,t){return function(r){return e(t(r))}}var pPi=jYn(Object.keys,Object),gPi=Object.prototype,mPi=gPi.hasOwnProperty;function WYn(e){if(!Fce(e))return pPi(e);var t=[];for(var r in Object(e))mPi.call(e,r)&&r!="constructor"&&t.push(r);return t}function IS(e){return UA(e)?YYn(e):WYn(e)}var bPi=Object.prototype,yPi=bPi.hasOwnProperty,zw=NMi(function(e,t){if(Fce(t)||UA(t)){Bce(t,IS(t),e);return}for(var r in t)yPi.call(t,r)&&kke(e,r,t[r])});function vPi(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _Pi=Object.prototype,wPi=_Pi.hasOwnProperty;function EPi(e){if(!RS(e))return vPi(e);var t=Fce(e),r=[];for(var a in e)a=="constructor"&&(t||!wPi.call(e,a))||r.push(a);return r}function imt(e){return UA(e)?YYn(e,!0):EPi(e)}var xPi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SPi=/^\w*$/;function amt(e,t){if(Wc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ske(e)?!0:SPi.test(e)||!xPi.test(e)||t!=null&&e in Object(t)}var ele=H$(Object,"create");function TPi(){this.__data__=ele?ele(null):{},this.size=0}function CPi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var APi="__lodash_hash_undefined__",kPi=Object.prototype,RPi=kPi.hasOwnProperty;function IPi(e){var t=this.__data__;if(ele){var r=t[e];return r===APi?void 0:r}return RPi.call(t,e)?t[e]:void 0}var NPi=Object.prototype,OPi=NPi.hasOwnProperty;function LPi(e){var t=this.__data__;return ele?t[e]!==void 0:OPi.call(t,e)}var DPi="__lodash_hash_undefined__";function MPi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ele&&t===void 0?DPi:t,this}function r$(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}r$.prototype.clear=TPi;r$.prototype.delete=CPi;r$.prototype.get=IPi;r$.prototype.has=LPi;r$.prototype.set=MPi;function PPi(){this.__data__=[],this.size=0}function Nke(e,t){for(var r=e.length;r--;)if(Pce(e[r][0],t))return r;return-1}var BPi=Array.prototype,FPi=BPi.splice;function $Pi(e){var t=this.__data__,r=Nke(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():FPi.call(t,r,1),--this.size,!0}function UPi(e){var t=this.__data__,r=Nke(t,e);return r<0?void 0:t[r][1]}function zPi(e){return Nke(this.__data__,e)>-1}function GPi(e,t){var r=this.__data__,a=Nke(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function AR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}AR.prototype.clear=PPi;AR.prototype.delete=$Pi;AR.prototype.get=UPi;AR.prototype.has=zPi;AR.prototype.set=GPi;var tle=H$($A,"Map");function qPi(){this.size=0,this.__data__={hash:new r$,map:new(tle||AR),string:new r$}}function HPi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Oke(e,t){var r=e.__data__;return HPi(t)?r[typeof t=="string"?"string":"hash"]:r.map}function VPi(e){var t=Oke(this,e).delete(e);return this.size-=t?1:0,t}function YPi(e){return Oke(this,e).get(e)}function jPi(e){return Oke(this,e).has(e)}function WPi(e,t){var r=Oke(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function kR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}kR.prototype.clear=qPi;kR.prototype.delete=VPi;kR.prototype.get=YPi;kR.prototype.has=jPi;kR.prototype.set=WPi;var KPi="Expected a function";function smt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(KPi);var r=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=r.cache;if(o.has(s))return o.get(s);var u=e.apply(this,a);return r.cache=o.set(s,u)||o,u};return r.cache=new(smt.Cache||kR),r}smt.Cache=kR;var XPi=500;function QPi(e){var t=smt(e,function(a){return r.size===XPi&&r.clear(),a}),r=t.cache;return t}var ZPi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JPi=/\\(\\)?/g,eBi=QPi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ZPi,function(r,a,s,o){t.push(s?o.replace(JPi,"$1"):a||r)}),t});function tBi(e){return e==null?"":FYn(e)}function Lke(e,t){return Wc(e)?e:amt(e,t)?[e]:eBi(tBi(e))}function $ce(e){if(typeof e=="string"||Ske(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function omt(e,t){t=Lke(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[$ce(t[r++])];return r&&r==a?e:void 0}function nBi(e,t,r){var a=e==null?void 0:omt(e,t);return a===void 0?r:a}function lmt(e,t){for(var r=-1,a=t.length,s=e.length;++r<a;)e[s+r]=t[r];return e}var PSn=kS?kS.isConcatSpreadable:void 0;function rBi(e){return Wc(e)||Rke(e)||!!(PSn&&e&&e[PSn])}function cmt(e,t,r,a,s){var o=-1,u=e.length;for(r||(r=rBi),s||(s=[]);++o<u;){var h=e[o];r(h)?lmt(s,h):a||(s[s.length]=h)}return s}function eT(e){var t=e==null?0:e.length;return t?cmt(e):[]}var KYn=jYn(Object.getPrototypeOf,Object);function XYn(e,t,r){var a=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(s);++a<s;)o[a]=e[a+t];return o}function iBi(e,t,r,a){var s=-1,o=e==null?0:e.length;for(a&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function aBi(){this.__data__=new AR,this.size=0}function sBi(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function oBi(e){return this.__data__.get(e)}function lBi(e){return this.__data__.has(e)}var cBi=200;function uBi(e,t){var r=this.__data__;if(r instanceof AR){var a=r.__data__;if(!tle||a.length<cBi-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new kR(a)}return r.set(e,t),this.size=r.size,this}function hA(e){var t=this.__data__=new AR(e);this.size=t.size}hA.prototype.clear=aBi;hA.prototype.delete=sBi;hA.prototype.get=oBi;hA.prototype.has=lBi;hA.prototype.set=uBi;function hBi(e,t){return e&&Bce(t,IS(t),e)}function dBi(e,t){return e&&Bce(t,imt(t),e)}var QYn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,BSn=QYn&&typeof module=="object"&&module&&!module.nodeType&&module,fBi=BSn&&BSn.exports===QYn,FSn=fBi?$A.Buffer:void 0,$Sn=FSn?FSn.allocUnsafe:void 0;function pBi(e,t){var r=e.length,a=$Sn?$Sn(r):new e.constructor(r);return e.copy(a),a}function umt(e,t){for(var r=-1,a=e==null?0:e.length,s=0,o=[];++r<a;){var u=e[r];t(u,r,e)&&(o[s++]=u)}return o}function ZYn(){return[]}var gBi=Object.prototype,mBi=gBi.propertyIsEnumerable,USn=Object.getOwnPropertySymbols,hmt=USn?function(e){return e==null?[]:(e=Object(e),umt(USn(e),function(t){return mBi.call(e,t)}))}:ZYn;function bBi(e,t){return Bce(e,hmt(e),t)}var yBi=Object.getOwnPropertySymbols,JYn=yBi?function(e){for(var t=[];e;)lmt(t,hmt(e)),e=KYn(e);return t}:ZYn;function vBi(e,t){return Bce(e,JYn(e),t)}function ejn(e,t,r){var a=t(e);return Wc(e)?a:lmt(a,r(e))}function Oct(e){return ejn(e,IS,hmt)}function _Bi(e){return ejn(e,imt,JYn)}var Lct=H$($A,"DataView"),Dct=H$($A,"Promise"),sY=H$($A,"Set"),zSn="[object Map]",wBi="[object Object]",GSn="[object Promise]",qSn="[object Set]",HSn="[object WeakMap]",VSn="[object DataView]",EBi=q$(Lct),xBi=q$(tle),SBi=q$(Dct),TBi=q$(sY),CBi=q$(Nct),Jx=Q9;(Lct&&Jx(new Lct(new ArrayBuffer(1)))!=VSn||tle&&Jx(new tle)!=zSn||Dct&&Jx(Dct.resolve())!=GSn||sY&&Jx(new sY)!=qSn||Nct&&Jx(new Nct)!=HSn)&&(Jx=function(e){var t=Q9(e),r=t==wBi?e.constructor:void 0,a=r?q$(r):"";if(a)switch(a){case EBi:return VSn;case xBi:return zSn;case SBi:return GSn;case TBi:return qSn;case CBi:return HSn}return t});var ABi=Object.prototype,kBi=ABi.hasOwnProperty;function RBi(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&kBi.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var cTe=$A.Uint8Array;function IBi(e){var t=new e.constructor(e.byteLength);return new cTe(t).set(new cTe(e)),t}function NBi(e,t){var r=e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var OBi=/\w*$/;function LBi(e){var t=new e.constructor(e.source,OBi.exec(e));return t.lastIndex=e.lastIndex,t}var YSn=kS?kS.prototype:void 0,jSn=YSn?YSn.valueOf:void 0;function DBi(e){return jSn?Object(jSn.call(e)):{}}function MBi(e,t){var r=e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var PBi="[object Boolean]",BBi="[object Date]",FBi="[object Map]",$Bi="[object Number]",UBi="[object RegExp]",zBi="[object Set]",GBi="[object String]",qBi="[object Symbol]",HBi="[object ArrayBuffer]",VBi="[object DataView]",YBi="[object Float32Array]",jBi="[object Float64Array]",WBi="[object Int8Array]",KBi="[object Int16Array]",XBi="[object Int32Array]",QBi="[object Uint8Array]",ZBi="[object Uint8ClampedArray]",JBi="[object Uint16Array]",eFi="[object Uint32Array]";function tFi(e,t,r){var a=e.constructor;switch(t){case HBi:return IBi(e);case PBi:case BBi:return new a(+e);case VBi:return NBi(e);case YBi:case jBi:case WBi:case KBi:case XBi:case QBi:case ZBi:case JBi:case eFi:return MBi(e);case FBi:return new a;case $Bi:case GBi:return new a(e);case UBi:return LBi(e);case zBi:return new a;case qBi:return DBi(e)}}function nFi(e){return typeof e.constructor=="function"&&!Fce(e)?fMi(KYn(e)):{}}var rFi="[object Map]";function iFi(e){return uT(e)&&Jx(e)==rFi}var WSn=d9&&d9.isMap,aFi=WSn?Ike(WSn):iFi,sFi="[object Set]";function oFi(e){return uT(e)&&Jx(e)==sFi}var KSn=d9&&d9.isSet,lFi=KSn?Ike(KSn):oFi,cFi=2,tjn="[object Arguments]",uFi="[object Array]",hFi="[object Boolean]",dFi="[object Date]",fFi="[object Error]",njn="[object Function]",pFi="[object GeneratorFunction]",gFi="[object Map]",mFi="[object Number]",rjn="[object Object]",bFi="[object RegExp]",yFi="[object Set]",vFi="[object String]",_Fi="[object Symbol]",wFi="[object WeakMap]",EFi="[object ArrayBuffer]",xFi="[object DataView]",SFi="[object Float32Array]",TFi="[object Float64Array]",CFi="[object Int8Array]",AFi="[object Int16Array]",kFi="[object Int32Array]",RFi="[object Uint8Array]",IFi="[object Uint8ClampedArray]",NFi="[object Uint16Array]",OFi="[object Uint32Array]",Qh={};Qh[tjn]=Qh[uFi]=Qh[EFi]=Qh[xFi]=Qh[hFi]=Qh[dFi]=Qh[SFi]=Qh[TFi]=Qh[CFi]=Qh[AFi]=Qh[kFi]=Qh[gFi]=Qh[mFi]=Qh[rjn]=Qh[bFi]=Qh[yFi]=Qh[vFi]=Qh[_Fi]=Qh[RFi]=Qh[IFi]=Qh[NFi]=Qh[OFi]=!0;Qh[fFi]=Qh[njn]=Qh[wFi]=!1;function Dxe(e,t,r,a,s,o){var u,h=t&cFi;if(u!==void 0)return u;if(!RS(e))return e;var f=Wc(e);if(f)return u=RBi(e),gMi(e,u);var p=Jx(e),m=p==njn||p==pFi;if(Joe(e))return pBi(e);if(p==rjn||p==tjn||m&&!s)return u=m?{}:nFi(e),h?vBi(e,dBi(u,e)):bBi(e,hBi(u,e));if(!Qh[p])return s?e:{};u=tFi(e,p),o||(o=new hA);var b=o.get(e);if(b)return b;o.set(e,u),lFi(e)?e.forEach(function(S){u.add(Dxe(S,t,r,S,e,o))}):aFi(e)&&e.forEach(function(S,C){u.set(C,Dxe(S,t,r,C,e,o))});var _=Oct,w=f?void 0:_(e);return $Yn(w||e,function(S,C){w&&(C=S,S=e[C]),kke(u,C,Dxe(S,t,r,C,e,o))}),u}var LFi=4;function Im(e){return Dxe(e,LFi)}function Uce(e){for(var t=-1,r=e==null?0:e.length,a=0,s=[];++t<r;){var o=e[t];o&&(s[a++]=o)}return s}var DFi="__lodash_hash_undefined__";function MFi(e){return this.__data__.set(e,DFi),this}function PFi(e){return this.__data__.has(e)}function Hj(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kR;++t<r;)this.add(e[t])}Hj.prototype.add=Hj.prototype.push=MFi;Hj.prototype.has=PFi;function ijn(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function dmt(e,t){return e.has(t)}var BFi=1,FFi=2;function ajn(e,t,r,a,s,o){var u=r&BFi,h=e.length,f=t.length;if(h!=f&&!(u&&f>h))return!1;var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=-1,_=!0,w=r&FFi?new Hj:void 0;for(o.set(e,t),o.set(t,e);++b<h;){var S=e[b],C=t[b];if(a)var A=u?a(C,S,b,t,e,o):a(S,C,b,e,t,o);if(A!==void 0){if(A)continue;_=!1;break}if(w){if(!ijn(t,function(k,I){if(!dmt(w,I)&&(S===k||s(S,k,r,a,o)))return w.push(I)})){_=!1;break}}else if(!(S===C||s(S,C,r,a,o))){_=!1;break}}return o.delete(e),o.delete(t),_}function $Fi(e){var t=-1,r=Array(e.size);return e.forEach(function(a,s){r[++t]=[s,a]}),r}function fmt(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var UFi=1,zFi=2,GFi="[object Boolean]",qFi="[object Date]",HFi="[object Error]",VFi="[object Map]",YFi="[object Number]",jFi="[object RegExp]",WFi="[object Set]",KFi="[object String]",XFi="[object Symbol]",QFi="[object ArrayBuffer]",ZFi="[object DataView]",XSn=kS?kS.prototype:void 0,Rit=XSn?XSn.valueOf:void 0;function JFi(e,t,r,a,s,o,u){switch(r){case ZFi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QFi:return!(e.byteLength!=t.byteLength||!o(new cTe(e),new cTe(t)));case GFi:case qFi:case YFi:return Pce(+e,+t);case HFi:return e.name==t.name&&e.message==t.message;case jFi:case KFi:return e==t+"";case VFi:var h=$Fi;case WFi:var f=a&UFi;if(h||(h=fmt),e.size!=t.size&&!f)return!1;var p=u.get(e);if(p)return p==t;a|=zFi,u.set(e,t);var m=ajn(h(e),h(t),a,s,o,u);return u.delete(e),m;case XFi:if(Rit)return Rit.call(e)==Rit.call(t)}return!1}var e$i=1,t$i=Object.prototype,n$i=t$i.hasOwnProperty;function r$i(e,t,r,a,s,o){var u=r&e$i,h=Oct(e),f=h.length,p=Oct(t),m=p.length;if(f!=m&&!u)return!1;for(var b=f;b--;){var _=h[b];if(!(u?_ in t:n$i.call(t,_)))return!1}var w=o.get(e),S=o.get(t);if(w&&S)return w==t&&S==e;var C=!0;o.set(e,t),o.set(t,e);for(var A=u;++b<f;){_=h[b];var k=e[_],I=t[_];if(a)var N=u?a(I,k,_,t,e,o):a(k,I,_,e,t,o);if(!(N===void 0?k===I||s(k,I,r,a,o):N)){C=!1;break}A||(A=_=="constructor")}if(C&&!A){var L=e.constructor,P=t.constructor;L!=P&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof P=="function"&&P instanceof P)&&(C=!1)}return o.delete(e),o.delete(t),C}var i$i=1,QSn="[object Arguments]",ZSn="[object Array]",Zwe="[object Object]",a$i=Object.prototype,JSn=a$i.hasOwnProperty;function s$i(e,t,r,a,s,o){var u=Wc(e),h=Wc(t),f=u?ZSn:Jx(e),p=h?ZSn:Jx(t);f=f==QSn?Zwe:f,p=p==QSn?Zwe:p;var m=f==Zwe,b=p==Zwe,_=f==p;if(_&&Joe(e)){if(!Joe(t))return!1;u=!0,m=!1}if(_&&!m)return o||(o=new hA),u||rmt(e)?ajn(e,t,r,a,s,o):JFi(e,t,f,r,a,s,o);if(!(r&i$i)){var w=m&&JSn.call(e,"__wrapped__"),S=b&&JSn.call(t,"__wrapped__");if(w||S){var C=w?e.value():e,A=S?t.value():t;return o||(o=new hA),s(C,A,r,a,o)}}return _?(o||(o=new hA),r$i(e,t,r,a,s,o)):!1}function pmt(e,t,r,a,s){return e===t?!0:e==null||t==null||!uT(e)&&!uT(t)?e!==e&&t!==t:s$i(e,t,r,a,pmt,s)}var o$i=1,l$i=2;function c$i(e,t,r,a){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var u=r[s];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){u=r[s];var h=u[0],f=e[h],p=u[1];if(u[2]){if(f===void 0&&!(h in e))return!1}else{var m=new hA,b;if(!(b===void 0?pmt(p,f,o$i|l$i,a,m):b))return!1}}return!0}function sjn(e){return e===e&&!RS(e)}function u$i(e){for(var t=IS(e),r=t.length;r--;){var a=t[r],s=e[a];t[r]=[a,s,sjn(s)]}return t}function ojn(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function h$i(e){var t=u$i(e);return t.length==1&&t[0][2]?ojn(t[0][0],t[0][1]):function(r){return r===e||c$i(r,e,t)}}function d$i(e,t){return e!=null&&t in Object(e)}function ljn(e,t,r){t=Lke(t,e);for(var a=-1,s=t.length,o=!1;++a<s;){var u=$ce(t[a]);if(!(o=e!=null&&r(e,u)))break;e=e[u]}return o||++a!=s?o:(s=e==null?0:e.length,!!s&&nmt(s)&&Ake(u,s)&&(Wc(e)||Rke(e)))}function f$i(e,t){return e!=null&&ljn(e,t,d$i)}var p$i=1,g$i=2;function m$i(e,t){return amt(e)&&sjn(t)?ojn($ce(e),t):function(r){var a=nBi(r,e);return a===void 0&&a===t?f$i(r,e):pmt(t,a,p$i|g$i)}}function b$i(e){return function(t){return t==null?void 0:t[e]}}function y$i(e){return function(t){return omt(t,e)}}function v$i(e){return amt(e)?b$i($ce(e)):y$i(e)}function zA(e){return typeof e=="function"?e:e==null?qj:typeof e=="object"?Wc(e)?m$i(e[0],e[1]):h$i(e):v$i(e)}function _$i(e,t,r,a){for(var s=-1,o=e==null?0:e.length;++s<o;){var u=e[s];t(a,u,r(u),e)}return a}function w$i(e){return function(t,r,a){for(var s=-1,o=Object(t),u=a(t),h=u.length;h--;){var f=u[++s];if(r(o[f],f,o)===!1)break}return t}}var E$i=w$i();function x$i(e,t){return e&&E$i(e,t,IS)}function S$i(e,t){return function(r,a){if(r==null)return r;if(!UA(r))return e(r,a);for(var s=r.length,o=-1,u=Object(r);++o<s&&a(u[o],o,u)!==!1;);return r}}var V$=S$i(x$i);function T$i(e,t,r,a){return V$(e,function(s,o,u){t(a,s,r(s),u)}),a}function C$i(e,t){return function(r,a){var s=Wc(r)?_$i:T$i,o=t?t():{};return s(r,e,zA(a),o)}}var cjn=Object.prototype,A$i=cjn.hasOwnProperty,gmt=tmt(function(e,t){e=Object(e);var r=-1,a=t.length,s=a>2?t[2]:void 0;for(s&&GYn(t[0],t[1],s)&&(a=1);++r<a;)for(var o=t[r],u=imt(o),h=-1,f=u.length;++h<f;){var p=u[h],m=e[p];(m===void 0||Pce(m,cjn[p])&&!A$i.call(e,p))&&(e[p]=o[p])}return e});function e4n(e){return uT(e)&&UA(e)}var k$i=200;function R$i(e,t,r,a){var s=-1,o=zYn,u=!0,h=e.length,f=[],p=t.length;if(!h)return f;t.length>=k$i&&(o=dmt,u=!1,t=new Hj(t));e:for(;++s<h;){var m=e[s],b=m;if(m=m!==0?m:0,u&&b===b){for(var _=p;_--;)if(t[_]===b)continue e;f.push(m)}else o(t,b,a)||f.push(m)}return f}var Dke=tmt(function(e,t){return e4n(e)?R$i(e,cmt(t,1,e4n,!0)):[]});function Vj(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function fm(e,t,r){var a=e==null?0:e.length;return a?(t=t===void 0?1:Cke(t),XYn(e,t<0?0:t,a)):[]}function nle(e,t,r){var a=e==null?0:e.length;return a?(t=t===void 0?1:Cke(t),t=a-t,XYn(e,0,t<0?0:t)):[]}function I$i(e){return typeof e=="function"?e:qj}function _o(e,t){var r=Wc(e)?$Yn:V$;return r(e,I$i(t))}function N$i(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(!t(e[r],r,e))return!1;return!0}function O$i(e,t){var r=!0;return V$(e,function(a,s,o){return r=!!t(a,s,o),r}),r}function tT(e,t,r){var a=Wc(e)?N$i:O$i;return a(e,zA(t))}function ujn(e,t){var r=[];return V$(e,function(a,s,o){t(a,s,o)&&r.push(a)}),r}function PS(e,t){var r=Wc(e)?umt:ujn;return r(e,zA(t))}function L$i(e){return function(t,r,a){var s=Object(t);if(!UA(t)){var o=zA(r);t=IS(t),r=function(h){return o(s[h],h,s)}}var u=e(t,r,a);return u>-1?s[o?t[u]:u]:void 0}}var D$i=Math.max;function M$i(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=r==null?0:Cke(r);return s<0&&(s=D$i(a+s,0)),UYn(e,zA(t),s)}var Yj=L$i(M$i);function hT(e){return e&&e.length?e[0]:void 0}function P$i(e,t){var r=-1,a=UA(e)?Array(e.length):[];return V$(e,function(s,o,u){a[++r]=t(s,o,u)}),a}function As(e,t){var r=Wc(e)?Tke:P$i;return r(e,zA(t))}function dS(e,t){return cmt(As(e,t))}var B$i=Object.prototype,F$i=B$i.hasOwnProperty,$$i=C$i(function(e,t,r){F$i.call(e,r)?e[r].push(t):emt(e,r,[t])}),U$i=Object.prototype,z$i=U$i.hasOwnProperty;function G$i(e,t){return e!=null&&z$i.call(e,t)}function so(e,t){return e!=null&&ljn(e,t,G$i)}var q$i="[object String]";function a_(e){return typeof e=="string"||!Wc(e)&&uT(e)&&Q9(e)==q$i}function H$i(e,t){return Tke(t,function(r){return e[r]})}function wp(e){return e==null?[]:H$i(e,IS(e))}var V$i=Math.max;function wv(e,t,r,a){e=UA(e)?e:wp(e),r=r?Cke(r):0;var s=e.length;return r<0&&(r=V$i(s+r,0)),a_(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&Jgt(e,t,r)>-1}function t4n(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=0;return Jgt(e,t,s)}var Y$i="[object Map]",j$i="[object Set]",W$i=Object.prototype,K$i=W$i.hasOwnProperty;function Jh(e){if(e==null)return!0;if(UA(e)&&(Wc(e)||typeof e=="string"||typeof e.splice=="function"||Joe(e)||rmt(e)||Rke(e)))return!e.length;var t=Jx(e);if(t==Y$i||t==j$i)return!e.size;if(Fce(e))return!WYn(e).length;for(var r in e)if(K$i.call(e,r))return!1;return!0}var X$i="[object RegExp]";function Q$i(e){return uT(e)&&Q9(e)==X$i}var n4n=d9&&d9.isRegExp,hR=n4n?Ike(n4n):Q$i;function dR(e){return e===void 0}var Z$i="Expected a function";function J$i(e){if(typeof e!="function")throw new TypeError(Z$i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function eUi(e,t,r,a){if(!RS(e))return e;t=Lke(t,e);for(var s=-1,o=t.length,u=o-1,h=e;h!=null&&++s<o;){var f=$ce(t[s]),p=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(s!=u){var m=h[f];p=void 0,p===void 0&&(p=RS(m)?m:Ake(t[s+1])?[]:{})}kke(h,f,p),h=h[f]}return e}function tUi(e,t,r){for(var a=-1,s=t.length,o={};++a<s;){var u=t[a],h=omt(e,u);r(h,u)&&eUi(o,Lke(u,e),h)}return o}function yT(e,t){if(e==null)return{};var r=Tke(_Bi(e),function(a){return[a]});return t=zA(t),tUi(e,r,function(a,s){return t(a,s[0])})}function nUi(e,t,r,a,s){return s(e,function(o,u,h){r=a?(a=!1,o):t(r,o,u,h)}),r}function Gw(e,t,r){var a=Wc(e)?iBi:nUi,s=arguments.length<3;return a(e,zA(t),r,s,V$)}function Mke(e,t){var r=Wc(e)?umt:ujn;return r(e,J$i(zA(t)))}function rUi(e,t){var r;return V$(e,function(a,s,o){return r=t(a,s,o),!r}),!!r}function hjn(e,t,r){var a=Wc(e)?ijn:rUi;return a(e,zA(t))}var iUi=1/0,aUi=sY&&1/fmt(new sY([,-0]))[1]==iUi?function(e){return new sY(e)}:gp,sUi=200;function oUi(e,t,r){var a=-1,s=zYn,o=e.length,u=!0,h=[],f=h;if(o>=sUi){var p=aUi(e);if(p)return fmt(p);u=!1,s=dmt,f=new Hj}else f=h;e:for(;++a<o;){var m=e[a],b=m;if(m=m!==0?m:0,u&&b===b){for(var _=f.length;_--;)if(f[_]===b)continue e;h.push(m)}else s(f,b,r)||(f!==h&&f.push(b),h.push(m))}return h}function mmt(e){return e&&e.length?oUi(e):[]}function Mct(e){console&&console.error&&console.error(`Error: ${e}`)}function djn(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function fjn(e){const t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}function pjn(e){function t(){}t.prototype=e;const r=new t;function a(){return typeof r.bar}return a(),a(),e}function lUi(e){return cUi(e)?e.LABEL:e.name}function cUi(e){return a_(e.LABEL)&&e.LABEL!==""}class GA{get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){this._definition=t}accept(t){t.visit(this),_o(this.definition,r=>{r.accept(t)})}}class hv extends GA{constructor(t){super([]),this.idx=1,zw(this,yT(t,r=>r!==void 0))}set definition(t){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(t){t.visit(this)}}class nK extends GA{constructor(t){super(t.definition),this.orgText="",zw(this,yT(t,r=>r!==void 0))}}class s_ extends GA{constructor(t){super(t.definition),this.ignoreAmbiguities=!1,zw(this,yT(t,r=>r!==void 0))}}let Am=class extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}};class Kw extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class Xw extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class l0 extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class u_ extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class h_ extends GA{get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){super(t.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,zw(this,yT(t,r=>r!==void 0))}}class wd{constructor(t){this.idx=1,zw(this,yT(t,r=>r!==void 0))}accept(t){t.visit(this)}}function uUi(e){return As(e,Mxe)}function Mxe(e){function t(r){return As(r,Mxe)}if(e instanceof hv){const r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return a_(e.label)&&(r.label=e.label),r}else{if(e instanceof s_)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Am)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Kw)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Xw)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Mxe(new wd({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof u_)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Mxe(new wd({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof l0)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof h_)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof wd){const r={type:"Terminal",name:e.terminalType.name,label:lUi(e.terminalType),idx:e.idx};a_(e.label)&&(r.terminalLabel=e.label);const a=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=hR(a)?a.source:a),r}else{if(e instanceof nK)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}class rK{visit(t){const r=t;switch(r.constructor){case hv:return this.visitNonTerminal(r);case s_:return this.visitAlternative(r);case Am:return this.visitOption(r);case Kw:return this.visitRepetitionMandatory(r);case Xw:return this.visitRepetitionMandatoryWithSeparator(r);case u_:return this.visitRepetitionWithSeparator(r);case l0:return this.visitRepetition(r);case h_:return this.visitAlternation(r);case wd:return this.visitTerminal(r);case nK:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(t){}visitAlternative(t){}visitOption(t){}visitRepetition(t){}visitRepetitionMandatory(t){}visitRepetitionMandatoryWithSeparator(t){}visitRepetitionWithSeparator(t){}visitAlternation(t){}visitTerminal(t){}visitRule(t){}}function hUi(e){return e instanceof s_||e instanceof Am||e instanceof l0||e instanceof Kw||e instanceof Xw||e instanceof u_||e instanceof wd||e instanceof nK}function uTe(e,t=[]){return e instanceof Am||e instanceof l0||e instanceof u_?!0:e instanceof h_?hjn(e.definition,a=>uTe(a,t)):e instanceof hv&&wv(t,e)?!1:e instanceof GA?(e instanceof hv&&t.push(e),tT(e.definition,a=>uTe(a,t))):!1}function dUi(e){return e instanceof h_}function PC(e){if(e instanceof hv)return"SUBRULE";if(e instanceof Am)return"OPTION";if(e instanceof h_)return"OR";if(e instanceof Kw)return"AT_LEAST_ONE";if(e instanceof Xw)return"AT_LEAST_ONE_SEP";if(e instanceof u_)return"MANY_SEP";if(e instanceof l0)return"MANY";if(e instanceof wd)return"CONSUME";throw Error("non exhaustive match")}class Pke{walk(t,r=[]){_o(t.definition,(a,s)=>{const o=fm(t.definition,s+1);if(a instanceof hv)this.walkProdRef(a,o,r);else if(a instanceof wd)this.walkTerminal(a,o,r);else if(a instanceof s_)this.walkFlat(a,o,r);else if(a instanceof Am)this.walkOption(a,o,r);else if(a instanceof Kw)this.walkAtLeastOne(a,o,r);else if(a instanceof Xw)this.walkAtLeastOneSep(a,o,r);else if(a instanceof u_)this.walkManySep(a,o,r);else if(a instanceof l0)this.walkMany(a,o,r);else if(a instanceof h_)this.walkOr(a,o,r);else throw Error("non exhaustive match")})}walkTerminal(t,r,a){}walkProdRef(t,r,a){}walkFlat(t,r,a){const s=r.concat(a);this.walk(t,s)}walkOption(t,r,a){const s=r.concat(a);this.walk(t,s)}walkAtLeastOne(t,r,a){const s=[new Am({definition:t.definition})].concat(r,a);this.walk(t,s)}walkAtLeastOneSep(t,r,a){const s=r4n(t,r,a);this.walk(t,s)}walkMany(t,r,a){const s=[new Am({definition:t.definition})].concat(r,a);this.walk(t,s)}walkManySep(t,r,a){const s=r4n(t,r,a);this.walk(t,s)}walkOr(t,r,a){const s=r.concat(a);_o(t.definition,o=>{const u=new s_({definition:[o]});this.walk(u,s)})}}function r4n(e,t,r){return[new Am({definition:[new wd({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function zce(e){if(e instanceof hv)return zce(e.referencedRule);if(e instanceof wd)return gUi(e);if(hUi(e))return fUi(e);if(dUi(e))return pUi(e);throw Error("non exhaustive match")}function fUi(e){let t=[];const r=e.definition;let a=0,s=r.length>a,o,u=!0;for(;s&&u;)o=r[a],u=uTe(o),t=t.concat(zce(o)),a=a+1,s=r.length>a;return mmt(t)}function pUi(e){const t=As(e.definition,r=>zce(r));return mmt(eT(t))}function gUi(e){return[e.terminalType]}const gjn="_~IN~_";class mUi extends Pke{constructor(t){super(),this.topProd=t,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(t,r,a){}walkProdRef(t,r,a){const s=yUi(t.referencedRule,t.idx)+this.topProd.name,o=r.concat(a),u=new s_({definition:o}),h=zce(u);this.follows[s]=h}}function bUi(e){const t={};return _o(e,r=>{const a=new mUi(r).startWalking();zw(t,a)}),t}function yUi(e,t){return e.name+t+gjn}let Pxe={};const vUi=new kYn;function Bke(e){const t=e.toString();if(Pxe.hasOwnProperty(t))return Pxe[t];{const r=vUi.pattern(t);return Pxe[t]=r,r}}function _Ui(){Pxe={}}const mjn="Complement Sets are not supported for first char optimization",hTe=`Unable to use "first char" lexer optimizations:
`;function wUi(e,t=!1){try{const r=Bke(e);return Pct(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===mjn)t&&djn(`${hTe}	Unable to optimize: < ${e.toString()} >
	Complement Sets cannot be automatically optimized.
	This will disable the lexer's first char optimizations.
	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let a="";t&&(a=`
	This will disable the lexer's first char optimizations.
	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Mct(`${hTe}
	Failed parsing: < ${e.toString()} >
	Using the @chevrotain/regexp-to-ast library
	Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function Pct(e,t,r){switch(e.type){case"Disjunction":for(let s=0;s<e.value.length;s++)Pct(e.value[s],t,r);break;case"Alternative":const a=e.value;for(let s=0;s<a.length;s++){const o=a[s];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const u=o;switch(u.type){case"Character":Jwe(u.value,t,r);break;case"Set":if(u.complement===!0)throw Error(mjn);_o(u.value,f=>{if(typeof f=="number")Jwe(f,t,r);else{const p=f;if(r===!0)for(let m=p.from;m<=p.to;m++)Jwe(m,t,r);else{for(let m=p.from;m<=p.to&&m<Sae;m++)Jwe(m,t,r);if(p.to>=Sae){const m=p.from>=Sae?p.from:Sae,b=p.to,_=f9(m),w=f9(b);for(let S=_;S<=w;S++)t[S]=S}}}});break;case"Group":Pct(u.value,t,r);break;default:throw Error("Non Exhaustive Match")}const h=u.quantifier!==void 0&&u.quantifier.atLeast===0;if(u.type==="Group"&&Bct(u)===!1||u.type!=="Group"&&h===!1)break}break;default:throw Error("non exhaustive match!")}return wp(t)}function Jwe(e,t,r){const a=f9(e);t[a]=a,r===!0&&EUi(e,t)}function EUi(e,t){const r=String.fromCharCode(e),a=r.toUpperCase();if(a!==r){const s=f9(a.charCodeAt(0));t[s]=s}else{const s=r.toLowerCase();if(s!==r){const o=f9(s.charCodeAt(0));t[o]=o}}}function i4n(e,t){return Yj(e.value,r=>{if(typeof r=="number")return wv(t,r);{const a=r;return Yj(t,s=>a.from<=s&&s<=a.to)!==void 0}})}function Bct(e){const t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Wc(e.value)?tT(e.value,Bct):Bct(e.value):!1}class xUi extends Eke{constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}super.visitChildren(t)}}visitCharacter(t){wv(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?i4n(t,this.targetCharCodes)===void 0&&(this.found=!0):i4n(t,this.targetCharCodes)!==void 0&&(this.found=!0)}}function bmt(e,t){if(t instanceof RegExp){const r=Bke(t),a=new xUi(e);return a.visit(r),a.found}else return Yj(t,r=>wv(e,r.charCodeAt(0)))!==void 0}const i$="PATTERN",xae="defaultMode",eEe="modes";let bjn=typeof new RegExp("(?:)").sticky=="boolean";function SUi(e,t){t=gmt(t,{useSticky:bjn,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:(I,N)=>N()});const r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{jUi()});let a;r("Reject Lexer.NA",()=>{a=Mke(e,I=>I[i$]===J2.NA)});let s=!1,o;r("Transform Patterns",()=>{s=!1,o=As(a,I=>{const N=I[i$];if(hR(N)){const L=N.source;return L.length===1&&L!=="^"&&L!=="$"&&L!=="."&&!N.ignoreCase?L:L.length===2&&L[0]==="\\"&&!wv(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],L[1])?L[1]:t.useSticky?s4n(N):a4n(N)}else{if(CR(N))return s=!0,{exec:N};if(typeof N=="object")return s=!0,N;if(typeof N=="string"){if(N.length===1)return N;{const L=N.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),P=new RegExp(L);return t.useSticky?s4n(P):a4n(P)}}else throw Error("non exhaustive match")}})});let u,h,f,p,m;r("misc mapping",()=>{u=As(a,I=>I.tokenTypeIdx),h=As(a,I=>{const N=I.GROUP;if(N!==J2.SKIPPED){if(a_(N))return N;if(dR(N))return!1;throw Error("non exhaustive match")}}),f=As(a,I=>{const N=I.LONGER_ALT;if(N)return Wc(N)?As(N,P=>t4n(a,P)):[t4n(a,N)]}),p=As(a,I=>I.PUSH_MODE),m=As(a,I=>so(I,"POP_MODE"))});let b;r("Line Terminator Handling",()=>{const I=_jn(t.lineTerminatorCharacters);b=As(a,N=>!1),t.positionTracking!=="onlyOffset"&&(b=As(a,N=>so(N,"LINE_BREAKS")?!!N.LINE_BREAKS:vjn(N,I)===!1&&bmt(I,N.PATTERN)))});let _,w,S,C;r("Misc Mapping #2",()=>{_=As(a,yjn),w=As(o,HUi),S=Gw(a,(I,N)=>{const L=N.GROUP;return a_(L)&&L!==J2.SKIPPED&&(I[L]=[]),I},{}),C=As(o,(I,N)=>({pattern:o[N],longerAlt:f[N],canLineTerminator:b[N],isCustom:_[N],short:w[N],group:h[N],push:p[N],pop:m[N],tokenTypeIdx:u[N],tokenType:a[N]}))});let A=!0,k=[];return t.safeMode||r("First Char Optimization",()=>{k=Gw(a,(I,N,L)=>{if(typeof N.PATTERN=="string"){const P=N.PATTERN.charCodeAt(0),M=f9(P);Iit(I,M,C[L])}else if(Wc(N.START_CHARS_HINT)){let P;_o(N.START_CHARS_HINT,M=>{const F=typeof M=="string"?M.charCodeAt(0):M,U=f9(F);P!==U&&(P=U,Iit(I,U,C[L]))})}else if(hR(N.PATTERN))if(N.PATTERN.unicode)A=!1,t.ensureOptimizations&&Mct(`${hTe}	Unable to analyze < ${N.PATTERN.toString()} > pattern.
	The regexp unicode flag is not currently supported by the regexp-to-ast library.
	This will disable the lexer's first char optimizations.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const P=wUi(N.PATTERN,t.ensureOptimizations);Jh(P)&&(A=!1),_o(P,M=>{Iit(I,M,C[L])})}else t.ensureOptimizations&&Mct(`${hTe}	TokenType: <${N.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
	This will disable the lexer's first char optimizations.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),A=!1;return I},[])}),{emptyGroups:S,patternIdxToConfig:C,charCodeToPatternIdxToConfig:k,hasCustom:s,canBeOptimized:A}}function TUi(e,t){let r=[];const a=AUi(e);r=r.concat(a.errors);const s=kUi(a.valid),o=s.valid;return r=r.concat(s.errors),r=r.concat(CUi(o)),r=r.concat(PUi(o)),r=r.concat(BUi(o,t)),r=r.concat(FUi(o)),r}function CUi(e){let t=[];const r=PS(e,a=>hR(a[i$]));return t=t.concat(IUi(r)),t=t.concat(LUi(r)),t=t.concat(DUi(r)),t=t.concat(MUi(r)),t=t.concat(NUi(r)),t}function AUi(e){const t=PS(e,s=>!so(s,i$)),r=As(t,s=>({message:"Token Type: ->"+s.name+"<- missing static 'PATTERN' property",type:c0.MISSING_PATTERN,tokenTypes:[s]})),a=Dke(e,t);return{errors:r,valid:a}}function kUi(e){const t=PS(e,s=>{const o=s[i$];return!hR(o)&&!CR(o)&&!so(o,"exec")&&!a_(o)}),r=As(t,s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:c0.INVALID_PATTERN,tokenTypes:[s]})),a=Dke(e,t);return{errors:r,valid:a}}const RUi=/[^\\][$]/;function IUi(e){class t extends Eke{constructor(){super(...arguments),this.found=!1}visitEndAnchor(o){this.found=!0}}const r=PS(e,s=>{const o=s.PATTERN;try{const u=Bke(o),h=new t;return h.visit(u),h.found}catch{return RUi.test(o.source)}});return As(r,s=>({message:`Unexpected RegExp Anchor Error:
	Token Type: ->`+s.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
	See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.`,type:c0.EOI_ANCHOR_FOUND,tokenTypes:[s]}))}function NUi(e){const t=PS(e,a=>a.PATTERN.test(""));return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:c0.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}const OUi=/[^\\[][\^]|^\^/;function LUi(e){class t extends Eke{constructor(){super(...arguments),this.found=!1}visitStartAnchor(o){this.found=!0}}const r=PS(e,s=>{const o=s.PATTERN;try{const u=Bke(o),h=new t;return h.visit(u),h.found}catch{return OUi.test(o.source)}});return As(r,s=>({message:`Unexpected RegExp Anchor Error:
	Token Type: ->`+s.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.`,type:c0.SOI_ANCHOR_FOUND,tokenTypes:[s]}))}function DUi(e){const t=PS(e,a=>{const s=a[i$];return s instanceof RegExp&&(s.multiline||s.global)});return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:c0.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function MUi(e){const t=[];let r=As(e,o=>Gw(e,(u,h)=>(o.PATTERN.source===h.PATTERN.source&&!wv(t,h)&&h.PATTERN!==J2.NA&&(t.push(h),u.push(h)),u),[]));r=Uce(r);const a=PS(r,o=>o.length>1);return As(a,o=>{const u=As(o,f=>f.name);return{message:`The same RegExp pattern ->${hT(o).PATTERN}<-has been used in all of the following Token Types: ${u.join(", ")} <-`,type:c0.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}})}function PUi(e){const t=PS(e,a=>{if(!so(a,"GROUP"))return!1;const s=a.GROUP;return s!==J2.SKIPPED&&s!==J2.NA&&!a_(s)});return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:c0.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function BUi(e,t){const r=PS(e,s=>s.PUSH_MODE!==void 0&&!wv(t,s.PUSH_MODE));return As(r,s=>({message:`Token Type: ->${s.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${s.PUSH_MODE}<-which does not exist`,type:c0.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[s]}))}function FUi(e){const t=[],r=Gw(e,(a,s,o)=>{const u=s.PATTERN;return u===J2.NA||(a_(u)?a.push({str:u,idx:o,tokenType:s}):hR(u)&&UUi(u)&&a.push({str:u.source,idx:o,tokenType:s})),a},[]);return _o(e,(a,s)=>{_o(r,({str:o,idx:u,tokenType:h})=>{if(s<u&&$Ui(o,a.PATTERN)){const f=`Token: ->${h.name}<- can never be matched.
Because it appears AFTER the Token Type ->${a.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:f,type:c0.UNREACHABLE_PATTERN,tokenTypes:[a,h]})}})}),t}function $Ui(e,t){if(hR(t)){const r=t.exec(e);return r!==null&&r.index===0}else{if(CR(t))return t(e,0,[],{});if(so(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function UUi(e){return Yj([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}function a4n(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function s4n(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function zUi(e,t,r){const a=[];return so(e,xae)||a.push({message:"A MultiMode Lexer cannot be initialized without a <"+xae+`> property in its definition
`,type:c0.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),so(e,eEe)||a.push({message:"A MultiMode Lexer cannot be initialized without a <"+eEe+`> property in its definition
`,type:c0.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),so(e,eEe)&&so(e,xae)&&!so(e.modes,e.defaultMode)&&a.push({message:`A MultiMode Lexer cannot be initialized with a ${xae}: <${e.defaultMode}>which does not exist
`,type:c0.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),so(e,eEe)&&_o(e.modes,(s,o)=>{_o(s,(u,h)=>{if(dR(u))a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${h}>
`,type:c0.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(so(u,"LONGER_ALT")){const f=Wc(u.LONGER_ALT)?u.LONGER_ALT:[u.LONGER_ALT];_o(f,p=>{!dR(p)&&!wv(s,p)&&a.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${p.name}> on token <${u.name}> outside of mode <${o}>
`,type:c0.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),a}function GUi(e,t,r){const a=[];let s=!1;const o=Uce(eT(wp(e.modes))),u=Mke(o,f=>f[i$]===J2.NA),h=_jn(r);return t&&_o(u,f=>{const p=vjn(f,h);if(p!==!1){const b={message:YUi(f,p),type:p.issue,tokenType:f};a.push(b)}else so(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(s=!0):bmt(h,f.PATTERN)&&(s=!0)}),t&&!s&&a.push({message:`Warning: No LINE_BREAKS Found.
	This Lexer has been defined to track line and column information,
	But none of the Token Types can be identified as matching a line terminator.
	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS 
	for details.`,type:c0.NO_LINE_BREAKS_FLAGS}),a}function qUi(e){const t={},r=IS(e);return _o(r,a=>{const s=e[a];if(Wc(s))t[a]=[];else throw Error("non exhaustive match")}),t}function yjn(e){const t=e.PATTERN;if(hR(t))return!1;if(CR(t))return!0;if(so(t,"exec"))return!0;if(a_(t))return!1;throw Error("non exhaustive match")}function HUi(e){return a_(e)&&e.length===1?e.charCodeAt(0):!1}const VUi={test:function(e){const t=e.length;for(let r=this.lastIndex;r<t;r++){const a=e.charCodeAt(r);if(a===10)return this.lastIndex=r+1,!0;if(a===13)return e.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function vjn(e,t){if(so(e,"LINE_BREAKS"))return!1;if(hR(e.PATTERN)){try{bmt(t,e.PATTERN)}catch(r){return{issue:c0.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(a_(e.PATTERN))return!1;if(yjn(e))return{issue:c0.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function YUi(e,t){if(t.issue===c0.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
	The problem is in the <${e.name}> Token Type
	 Root cause: ${t.errMsg}.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===c0.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
	The problem is in the <${e.name}> Token Type
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function _jn(e){return As(e,r=>a_(r)?r.charCodeAt(0):r)}function Iit(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}const Sae=256;let Bxe=[];function f9(e){return e<Sae?e:Bxe[e]}function jUi(){if(Jh(Bxe)){Bxe=new Array(65536);for(let e=0;e<65536;e++)Bxe[e]=e>255?255+~~(e/255):e}}function Gce(e,t){const r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}function dTe(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let o4n=1;const wjn={};function qce(e){const t=WUi(e);KUi(t),QUi(t),XUi(t),_o(t,r=>{r.isParent=r.categoryMatches.length>0})}function WUi(e){let t=Im(e),r=e,a=!0;for(;a;){r=Uce(eT(As(r,o=>o.CATEGORIES)));const s=Dke(r,t);t=t.concat(s),Jh(s)?a=!1:r=s}return t}function KUi(e){_o(e,t=>{xjn(t)||(wjn[o4n]=t,t.tokenTypeIdx=o4n++),l4n(t)&&!Wc(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),l4n(t)||(t.CATEGORIES=[]),ZUi(t)||(t.categoryMatches=[]),JUi(t)||(t.categoryMatchesMap={})})}function XUi(e){_o(e,t=>{t.categoryMatches=[],_o(t.categoryMatchesMap,(r,a)=>{t.categoryMatches.push(wjn[a].tokenTypeIdx)})})}function QUi(e){_o(e,t=>{Ejn([],t)})}function Ejn(e,t){_o(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),_o(t.CATEGORIES,r=>{const a=e.concat(t);wv(a,r)||Ejn(a,r)})}function xjn(e){return so(e,"tokenTypeIdx")}function l4n(e){return so(e,"CATEGORIES")}function ZUi(e){return so(e,"categoryMatches")}function JUi(e){return so(e,"categoryMatchesMap")}function ezi(e){return so(e,"tokenTypeIdx")}const Fct={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,a,s){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}};var c0;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(c0||(c0={}));const Tae={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Fct,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Tae);class J2{constructor(t,r=Tae){if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(s,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const u=new Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${u}--> <${s}>`);const{time:h,value:f}=fjn(o),p=h>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&p(`${u}<-- <${s}> time: ${h}ms`),this.traceInitIndent--,f}else return o()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=zw({},Tae,r);const a=this.config.traceInitPerf;a===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof a=="number"&&(this.traceInitMaxIdent=a,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let s,o=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Tae.lineTerminatorsPattern)this.config.lineTerminatorsPattern=VUi;else if(this.config.lineTerminatorCharacters===Tae.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Wc(t)?s={modes:{defaultMode:Im(t)},defaultMode:xae}:(o=!1,s=Im(t))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(zUi(s,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(GUi(s,this.trackStartLines,this.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},_o(s.modes,(h,f)=>{s.modes[f]=Mke(h,p=>dR(p))});const u=IS(s.modes);if(_o(s.modes,(h,f)=>{this.TRACE_INIT(`Mode: <${f}> processing`,()=>{if(this.modes.push(f),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(TUi(h,u))}),Jh(this.lexerDefinitionErrors)){qce(h);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=SUi(h,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[f]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[f]=p.charCodeToPatternIdxToConfig,this.emptyGroups=zw({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[f]=p.canBeOptimized}})}),this.defaultMode=s.defaultMode,!Jh(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const f=As(this.lexerDefinitionErrors,p=>p.message).join(`-----------------------
`);throw new Error(`Errors detected in definition of Lexer:
`+f)}_o(this.lexerDefinitionWarning,h=>{djn(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(bjn?(this.chopInput=qj,this.match=this.matchWithTest):(this.updateLastIndex=gp,this.match=this.matchWithExec),o&&(this.handleModes=gp),this.trackStartLines===!1&&(this.computeNewColumn=qj),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=gp),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const h=Gw(this.canModeBeOptimized,(f,p,m)=>(p===!1&&f.push(m),f),[]);if(r.ensureOptimizations&&!Jh(h))throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized.
	 Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
	 Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{_Ui()}),this.TRACE_INIT("toFastProperties",()=>{pjn(this)})})}tokenize(t,r=this.defaultMode){if(!Jh(this.lexerDefinitionErrors)){const s=As(this.lexerDefinitionErrors,o=>o.message).join(`-----------------------
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+s)}return this.tokenizeInternal(t,r)}tokenizeInternal(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k;const I=t,N=I.length;let L=0,P=0;const M=this.hasCustom?0:Math.floor(t.length/10),F=new Array(M),U=[];let $=this.trackStartLines?1:void 0,G=this.trackStartLines?1:void 0;const B=qUi(this.emptyGroups),Z=this.trackStartLines,z=this.config.lineTerminatorsPattern;let Y=0,W=[],Q=[];const V=[],j=[];Object.freeze(j);let ee;function te(){return W}function ne(be){const ve=f9(be),De=Q[ve];return De===void 0?j:De}const se=be=>{if(V.length===1&&be.tokenType.PUSH_MODE===void 0){const ve=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(be);U.push({offset:be.startOffset,line:be.startLine,column:be.startColumn,length:be.image.length,message:ve})}else{V.pop();const ve=Vj(V);W=this.patternIdxToConfig[ve],Q=this.charCodeToPatternIdxToConfig[ve],Y=W.length;const De=this.canModeBeOptimized[ve]&&this.config.safeMode===!1;Q&&De?ee=ne:ee=te}};function ie(be){V.push(be),Q=this.charCodeToPatternIdxToConfig[be],W=this.patternIdxToConfig[be],Y=W.length,Y=W.length;const ve=this.canModeBeOptimized[be]&&this.config.safeMode===!1;Q&&ve?ee=ne:ee=te}ie.call(this,r);let ge;const ce=this.config.recoveryEnabled;for(;L<N;){f=null;const be=I.charCodeAt(L),ve=ee(be),De=ve.length;for(a=0;a<De;a++){ge=ve[a];const ye=ge.pattern;p=null;const Ee=ge.short;if(Ee!==!1?be===Ee&&(f=ye):ge.isCustom===!0?(k=ye.exec(I,L,F,B),k!==null?(f=k[0],k.payload!==void 0&&(p=k.payload)):f=null):(this.updateLastIndex(ye,L),f=this.match(ye,t,L)),f!==null){if(h=ge.longerAlt,h!==void 0){const he=h.length;for(o=0;o<he;o++){const we=W[h[o]],Ce=we.pattern;if(m=null,we.isCustom===!0?(k=Ce.exec(I,L,F,B),k!==null?(u=k[0],k.payload!==void 0&&(m=k.payload)):u=null):(this.updateLastIndex(Ce,L),u=this.match(Ce,t,L)),u&&u.length>f.length){f=u,p=m,ge=we;break}}}break}}if(f!==null){if(b=f.length,_=ge.group,_!==void 0&&(w=ge.tokenTypeIdx,S=this.createTokenInstance(f,L,w,ge.tokenType,$,G,b),this.handlePayload(S,p),_===!1?P=this.addToken(F,P,S):B[_].push(S)),t=this.chopInput(t,b),L=L+b,G=this.computeNewColumn(G,b),Z===!0&&ge.canLineTerminator===!0){let ye=0,Ee,he;z.lastIndex=0;do Ee=z.test(f),Ee===!0&&(he=z.lastIndex-1,ye++);while(Ee===!0);ye!==0&&($=$+ye,G=b-he,this.updateTokenEndLineColumnLocation(S,_,he,ye,$,G,b))}this.handleModes(ge,se,ie,S)}else{const ye=L,Ee=$,he=G;let we=ce===!1;for(;we===!1&&L<N;)for(t=this.chopInput(t,1),L++,s=0;s<Y;s++){const Ce=W[s],Ie=Ce.pattern,Le=Ce.short;if(Le!==!1?I.charCodeAt(L)===Le&&(we=!0):Ce.isCustom===!0?we=Ie.exec(I,L,F,B)!==null:(this.updateLastIndex(Ie,L),we=Ie.exec(t)!==null),we===!0)break}if(C=L-ye,G=this.computeNewColumn(G,C),A=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(I,ye,C,Ee,he),U.push({offset:ye,line:Ee,column:he,length:C,message:A}),ce===!1)break}}return this.hasCustom||(F.length=P),{tokens:F,groups:B,errors:U}}handleModes(t,r,a,s){if(t.pop===!0){const o=t.push;r(s),o!==void 0&&a.call(this,o)}else t.push!==void 0&&a.call(this,t.push)}chopInput(t,r){return t.substring(r)}updateLastIndex(t,r){t.lastIndex=r}updateTokenEndLineColumnLocation(t,r,a,s,o,u,h){let f,p;r!==void 0&&(f=a===h-1,p=f?-1:0,s===1&&f===!0||(t.endLine=o+p,t.endColumn=u-1+-p))}computeNewColumn(t,r){return t+r}createOffsetOnlyToken(t,r,a,s){return{image:t,startOffset:r,tokenTypeIdx:a,tokenType:s}}createStartOnlyToken(t,r,a,s,o,u){return{image:t,startOffset:r,startLine:o,startColumn:u,tokenTypeIdx:a,tokenType:s}}createFullToken(t,r,a,s,o,u,h){return{image:t,startOffset:r,endOffset:r+h-1,startLine:o,endLine:o,startColumn:u,endColumn:u+h-1,tokenTypeIdx:a,tokenType:s}}addTokenUsingPush(t,r,a){return t.push(a),r}addTokenUsingMemberAccess(t,r,a){return t[r]=a,r++,r}handlePayloadNoCustom(t,r){}handlePayloadWithCustom(t,r){r!==null&&(t.payload=r)}matchWithTest(t,r,a){return t.test(r)===!0?r.substring(a,t.lastIndex):null}matchWithExec(t,r){const a=t.exec(r);return a!==null?a[0]:null}}J2.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";J2.NA=/NOT_APPLICABLE/;function oY(e){return Sjn(e)?e.LABEL:e.name}function Sjn(e){return a_(e.LABEL)&&e.LABEL!==""}const tzi="parent",c4n="categories",u4n="label",h4n="group",d4n="push_mode",f4n="pop_mode",p4n="longer_alt",g4n="line_breaks",m4n="start_chars_hint";function Tjn(e){return nzi(e)}function nzi(e){const t=e.pattern,r={};if(r.name=e.name,dR(t)||(r.PATTERN=t),so(e,tzi))throw`The parent property is no longer supported.
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return so(e,c4n)&&(r.CATEGORIES=e[c4n]),qce([r]),so(e,u4n)&&(r.LABEL=e[u4n]),so(e,h4n)&&(r.GROUP=e[h4n]),so(e,f4n)&&(r.POP_MODE=e[f4n]),so(e,d4n)&&(r.PUSH_MODE=e[d4n]),so(e,p4n)&&(r.LONGER_ALT=e[p4n]),so(e,g4n)&&(r.LINE_BREAKS=e[g4n]),so(e,m4n)&&(r.START_CHARS_HINT=e[m4n]),r}const p9=Tjn({name:"EOF",pattern:J2.NA});qce([p9]);function ymt(e,t,r,a,s,o,u,h){return{image:t,startOffset:r,endOffset:a,startLine:s,endLine:o,startColumn:u,endColumn:h,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Cjn(e,t){return Gce(e,t)}const PV={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:a}){return`Expecting ${Sjn(e)?`--> ${oY(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:a,ruleName:s}){const o="Expecting: ",h=`
but found: '`+hT(t).image+"'";if(a)return o+a+h;{const f=Gw(e,(_,w)=>_.concat(w),[]),p=As(f,_=>`[${As(_,w=>oY(w)).join(", ")}]`),b=`one of these possible Token sequences:
${As(p,(_,w)=>`  ${w+1}. ${_}`).join(`
`)}`;return o+b+h}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:a}){const s="Expecting: ",u=`
but found: '`+hT(t).image+"'";if(r)return s+r+u;{const f=`expecting at least one iteration which starts with one of these possible Token sequences::
  <${As(e,p=>`[${As(p,m=>oY(m)).join(",")}]`).join(" ,")}>`;return s+f+u}}};Object.freeze(PV);const rzi={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
inside top level rule: ->`+e.name+"<-"}},oF={buildDuplicateFoundError(e,t){function r(m){return m instanceof wd?m.terminalType.name:m instanceof hv?m.nonTerminalName:""}const a=e.name,s=hT(t),o=s.idx,u=PC(s),h=r(s),f=o>0;let p=`->${u}${f?o:""}<- ${h?`with argument: ->${h}<-`:""}
                  appears more than once (${t.length} times) in the top level rule: ->${a}<-.                  
                  For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES 
                  `;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
`),p},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){const t=As(e.prefixPath,s=>oY(s)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
in <OR${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`},buildAlternationAmbiguityError(e){const t=As(e.prefixPath,s=>oY(s)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;let a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
`;return a=a+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,a},buildEmptyRepetitionError(e){let t=PC(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
 has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){const t=e.topLevelRule.name,r=As(e.leftRecursionPath,o=>o.name),a=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
rule: <${t}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is: 
 ${a}
 To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof nK?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function izi(e,t){const r=new azi(e,t);return r.resolveRefs(),r.errors}class azi extends rK{constructor(t,r){super(),this.nameToTopRule=t,this.errMsgProvider=r,this.errors=[]}resolveRefs(){_o(wp(this.nameToTopRule),t=>{this.currTopLevel=t,t.accept(this)})}visitNonTerminal(t){const r=this.nameToTopRule[t.nonTerminalName];if(r)t.referencedRule=r;else{const a=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:a,type:dv.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}}}class szi extends Pke{constructor(t,r){super(),this.topProd=t,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Im(this.path.ruleStack).reverse(),this.occurrenceStack=Im(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(t,r=[]){this.found||super.walk(t,r)}walkProdRef(t,r,a){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){const s=r.concat(a);this.updateExpectedNext(),this.walk(t.referencedRule,s)}}updateExpectedNext(){Jh(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class ozi extends szi{constructor(t,r){super(t,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(t,r,a){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){const s=r.concat(a),o=new s_({definition:s});this.possibleTokTypes=zce(o),this.found=!0}}}class Fke extends Pke{constructor(t,r){super(),this.topRule=t,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class lzi extends Fke{walkMany(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkMany(t,r,a)}}class b4n extends Fke{walkManySep(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkManySep(t,r,a)}}class czi extends Fke{walkAtLeastOne(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOne(t,r,a)}}class y4n extends Fke{walkAtLeastOneSep(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOneSep(t,r,a)}}function $ct(e,t,r=[]){r=Im(r);let a=[],s=0;function o(h){return h.concat(fm(e,s+1))}function u(h){const f=$ct(o(h),t,r);return a.concat(f)}for(;r.length<t&&s<e.length;){const h=e[s];if(h instanceof s_)return u(h.definition);if(h instanceof hv)return u(h.definition);if(h instanceof Am)a=u(h.definition);else if(h instanceof Kw){const f=h.definition.concat([new l0({definition:h.definition})]);return u(f)}else if(h instanceof Xw){const f=[new s_({definition:h.definition}),new l0({definition:[new wd({terminalType:h.separator})].concat(h.definition)})];return u(f)}else if(h instanceof u_){const f=h.definition.concat([new l0({definition:[new wd({terminalType:h.separator})].concat(h.definition)})]);a=u(f)}else if(h instanceof l0){const f=h.definition.concat([new l0({definition:h.definition})]);a=u(f)}else{if(h instanceof h_)return _o(h.definition,f=>{Jh(f.definition)===!1&&(a=u(f.definition))}),a;if(h instanceof wd)r.push(h.terminalType);else throw Error("non exhaustive match")}s++}return a.push({partialPath:r,suffixDef:fm(e,s)}),a}function Ajn(e,t,r,a){const s="EXIT_NONE_TERMINAL",o=[s],u="EXIT_ALTERNATIVE";let h=!1;const f=t.length,p=f-a-1,m=[],b=[];for(b.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Jh(b);){const _=b.pop();if(_===u){h&&Vj(b).idx<=p&&b.pop();continue}const w=_.def,S=_.idx,C=_.ruleStack,A=_.occurrenceStack;if(Jh(w))continue;const k=w[0];if(k===s){const I={idx:S,def:fm(w),ruleStack:nle(C),occurrenceStack:nle(A)};b.push(I)}else if(k instanceof wd)if(S<f-1){const I=S+1,N=t[I];if(r(N,k.terminalType)){const L={idx:I,def:fm(w),ruleStack:C,occurrenceStack:A};b.push(L)}}else if(S===f-1)m.push({nextTokenType:k.terminalType,nextTokenOccurrence:k.idx,ruleStack:C,occurrenceStack:A}),h=!0;else throw Error("non exhaustive match");else if(k instanceof hv){const I=Im(C);I.push(k.nonTerminalName);const N=Im(A);N.push(k.idx);const L={idx:S,def:k.definition.concat(o,fm(w)),ruleStack:I,occurrenceStack:N};b.push(L)}else if(k instanceof Am){const I={idx:S,def:fm(w),ruleStack:C,occurrenceStack:A};b.push(I),b.push(u);const N={idx:S,def:k.definition.concat(fm(w)),ruleStack:C,occurrenceStack:A};b.push(N)}else if(k instanceof Kw){const I=new l0({definition:k.definition,idx:k.idx}),N=k.definition.concat([I],fm(w)),L={idx:S,def:N,ruleStack:C,occurrenceStack:A};b.push(L)}else if(k instanceof Xw){const I=new wd({terminalType:k.separator}),N=new l0({definition:[I].concat(k.definition),idx:k.idx}),L=k.definition.concat([N],fm(w)),P={idx:S,def:L,ruleStack:C,occurrenceStack:A};b.push(P)}else if(k instanceof u_){const I={idx:S,def:fm(w),ruleStack:C,occurrenceStack:A};b.push(I),b.push(u);const N=new wd({terminalType:k.separator}),L=new l0({definition:[N].concat(k.definition),idx:k.idx}),P=k.definition.concat([L],fm(w)),M={idx:S,def:P,ruleStack:C,occurrenceStack:A};b.push(M)}else if(k instanceof l0){const I={idx:S,def:fm(w),ruleStack:C,occurrenceStack:A};b.push(I),b.push(u);const N=new l0({definition:k.definition,idx:k.idx}),L=k.definition.concat([N],fm(w)),P={idx:S,def:L,ruleStack:C,occurrenceStack:A};b.push(P)}else if(k instanceof h_)for(let I=k.definition.length-1;I>=0;I--){const N=k.definition[I],L={idx:S,def:N.definition.concat(fm(w)),ruleStack:C,occurrenceStack:A};b.push(L),b.push(u)}else if(k instanceof s_)b.push({idx:S,def:k.definition.concat(fm(w)),ruleStack:C,occurrenceStack:A});else if(k instanceof nK)b.push(uzi(k,S,C,A));else throw Error("non exhaustive match")}return m}function uzi(e,t,r,a){const s=Im(r);s.push(e.name);const o=Im(a);return o.push(1),{idx:t,def:e.definition,ruleStack:s,occurrenceStack:o}}var If;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(If||(If={}));function vmt(e){if(e instanceof Am||e==="Option")return If.OPTION;if(e instanceof l0||e==="Repetition")return If.REPETITION;if(e instanceof Kw||e==="RepetitionMandatory")return If.REPETITION_MANDATORY;if(e instanceof Xw||e==="RepetitionMandatoryWithSeparator")return If.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof u_||e==="RepetitionWithSeparator")return If.REPETITION_WITH_SEPARATOR;if(e instanceof h_||e==="Alternation")return If.ALTERNATION;throw Error("non exhaustive match")}function v4n(e){const{occurrence:t,rule:r,prodType:a,maxLookahead:s}=e,o=vmt(a);return o===If.ALTERNATION?$ke(t,r,s):Uke(t,r,o,s)}function hzi(e,t,r,a,s,o){const u=$ke(e,t,r),h=Ijn(u)?dTe:Gce;return o(u,a,h,s)}function dzi(e,t,r,a,s,o){const u=Uke(e,t,s,r),h=Ijn(u)?dTe:Gce;return o(u[0],h,a)}function fzi(e,t,r,a){const s=e.length,o=tT(e,u=>tT(u,h=>h.length===1));if(t)return function(u){const h=As(u,f=>f.GATE);for(let f=0;f<s;f++){const p=e[f],m=p.length,b=h[f];if(!(b!==void 0&&b.call(this)===!1))e:for(let _=0;_<m;_++){const w=p[_],S=w.length;for(let C=0;C<S;C++){const A=this.LA(C+1);if(r(A,w[C])===!1)continue e}return f}}};if(o&&!a){const u=As(e,f=>eT(f)),h=Gw(u,(f,p,m)=>(_o(p,b=>{so(f,b.tokenTypeIdx)||(f[b.tokenTypeIdx]=m),_o(b.categoryMatches,_=>{so(f,_)||(f[_]=m)})}),f),{});return function(){const f=this.LA(1);return h[f.tokenTypeIdx]}}else return function(){for(let u=0;u<s;u++){const h=e[u],f=h.length;e:for(let p=0;p<f;p++){const m=h[p],b=m.length;for(let _=0;_<b;_++){const w=this.LA(_+1);if(r(w,m[_])===!1)continue e}return u}}}}function pzi(e,t,r){const a=tT(e,o=>o.length===1),s=e.length;if(a&&!r){const o=eT(e);if(o.length===1&&Jh(o[0].categoryMatches)){const h=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===h}}else{const u=Gw(o,(h,f,p)=>(h[f.tokenTypeIdx]=!0,_o(f.categoryMatches,m=>{h[m]=!0}),h),[]);return function(){const h=this.LA(1);return u[h.tokenTypeIdx]===!0}}}else return function(){e:for(let o=0;o<s;o++){const u=e[o],h=u.length;for(let f=0;f<h;f++){const p=this.LA(f+1);if(t(p,u[f])===!1)continue e}return!0}return!1}}class gzi extends Pke{constructor(t,r,a){super(),this.topProd=t,this.targetOccurrence=r,this.targetProdType=a}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(t,r,a,s){return t.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=a.concat(s),!0):!1}walkOption(t,r,a){this.checkIsTarget(t,If.OPTION,r,a)||super.walkOption(t,r,a)}walkAtLeastOne(t,r,a){this.checkIsTarget(t,If.REPETITION_MANDATORY,r,a)||super.walkOption(t,r,a)}walkAtLeastOneSep(t,r,a){this.checkIsTarget(t,If.REPETITION_MANDATORY_WITH_SEPARATOR,r,a)||super.walkOption(t,r,a)}walkMany(t,r,a){this.checkIsTarget(t,If.REPETITION,r,a)||super.walkOption(t,r,a)}walkManySep(t,r,a){this.checkIsTarget(t,If.REPETITION_WITH_SEPARATOR,r,a)||super.walkOption(t,r,a)}}class kjn extends rK{constructor(t,r,a){super(),this.targetOccurrence=t,this.targetProdType=r,this.targetRef=a,this.result=[]}checkIsTarget(t,r){t.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||t===this.targetRef)&&(this.result=t.definition)}visitOption(t){this.checkIsTarget(t,If.OPTION)}visitRepetition(t){this.checkIsTarget(t,If.REPETITION)}visitRepetitionMandatory(t){this.checkIsTarget(t,If.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(t){this.checkIsTarget(t,If.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(t){this.checkIsTarget(t,If.REPETITION_WITH_SEPARATOR)}visitAlternation(t){this.checkIsTarget(t,If.ALTERNATION)}}function _4n(e){const t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function Nit(e){let t=[""];for(let r=0;r<e.length;r++){const a=e[r],s=[];for(let o=0;o<t.length;o++){const u=t[o];s.push(u+"_"+a.tokenTypeIdx);for(let h=0;h<a.categoryMatches.length;h++){const f="_"+a.categoryMatches[h];s.push(u+f)}}t=s}return t}function mzi(e,t,r){for(let a=0;a<e.length;a++){if(a===r)continue;const s=e[a];for(let o=0;o<t.length;o++){const u=t[o];if(s[u]===!0)return!1}}return!0}function Rjn(e,t){const r=As(e,u=>$ct([u],1)),a=_4n(r.length),s=As(r,u=>{const h={};return _o(u,f=>{const p=Nit(f.partialPath);_o(p,m=>{h[m]=!0})}),h});let o=r;for(let u=1;u<=t;u++){const h=o;o=_4n(h.length);for(let f=0;f<h.length;f++){const p=h[f];for(let m=0;m<p.length;m++){const b=p[m].partialPath,_=p[m].suffixDef,w=Nit(b);if(mzi(s,w,f)||Jh(_)||b.length===t){const C=a[f];if(Uct(C,b)===!1){C.push(b);for(let A=0;A<w.length;A++){const k=w[A];s[f][k]=!0}}}else{const C=$ct(_,u+1,b);o[f]=o[f].concat(C),_o(C,A=>{const k=Nit(A.partialPath);_o(k,I=>{s[f][I]=!0})})}}}}return a}function $ke(e,t,r,a){const s=new kjn(e,If.ALTERNATION,a);return t.accept(s),Rjn(s.result,r)}function Uke(e,t,r,a){const s=new kjn(e,r);t.accept(s);const o=s.result,h=new gzi(t,e,r).startWalking(),f=new s_({definition:o}),p=new s_({definition:h});return Rjn([f,p],a)}function Uct(e,t){e:for(let r=0;r<e.length;r++){const a=e[r];if(a.length===t.length){for(let s=0;s<a.length;s++){const o=t[s],u=a[s];if((o===u||u.categoryMatchesMap[o.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function bzi(e,t){return e.length<t.length&&tT(e,(r,a)=>{const s=t[a];return r===s||s.categoryMatchesMap[r.tokenTypeIdx]})}function Ijn(e){return tT(e,t=>tT(t,r=>tT(r,a=>Jh(a.categoryMatches))))}function yzi(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return As(t,r=>Object.assign({type:dv.CUSTOM_LOOKAHEAD_VALIDATION},r))}function vzi(e,t,r,a){const s=dS(e,f=>_zi(f,r)),o=Ozi(e,t,r),u=dS(e,f=>kzi(f,r)),h=dS(e,f=>xzi(f,e,a,r));return s.concat(o,u,h)}function _zi(e,t){const r=new Ezi;e.accept(r);const a=r.allProductions,s=$$i(a,wzi),o=yT(s,h=>h.length>1);return As(wp(o),h=>{const f=hT(h),p=t.buildDuplicateFoundError(e,h),m=PC(f),b={message:p,type:dv.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:m,occurrence:f.idx},_=Njn(f);return _&&(b.parameter=_),b})}function wzi(e){return`${PC(e)}_#_${e.idx}_#_${Njn(e)}`}function Njn(e){return e instanceof wd?e.terminalType.name:e instanceof hv?e.nonTerminalName:""}class Ezi extends rK{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(t){this.allProductions.push(t)}visitOption(t){this.allProductions.push(t)}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}visitAlternation(t){this.allProductions.push(t)}visitTerminal(t){this.allProductions.push(t)}}function xzi(e,t,r,a){const s=[];if(Gw(t,(u,h)=>h.name===e.name?u+1:u,0)>1){const u=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});s.push({message:u,type:dv.DUPLICATE_RULE_NAME,ruleName:e.name})}return s}function Szi(e,t,r){const a=[];let s;return wv(t,e)||(s=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,a.push({message:s,type:dv.INVALID_RULE_OVERRIDE,ruleName:e})),a}function Ojn(e,t,r,a=[]){const s=[],o=Fxe(t.definition);if(Jh(o))return[];{const u=e.name;wv(o,e)&&s.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:dv.LEFT_RECURSION,ruleName:u});const f=Dke(o,a.concat([e])),p=dS(f,m=>{const b=Im(a);return b.push(m),Ojn(e,m,r,b)});return s.concat(p)}}function Fxe(e){let t=[];if(Jh(e))return t;const r=hT(e);if(r instanceof hv)t.push(r.referencedRule);else if(r instanceof s_||r instanceof Am||r instanceof Kw||r instanceof Xw||r instanceof u_||r instanceof l0)t=t.concat(Fxe(r.definition));else if(r instanceof h_)t=eT(As(r.definition,o=>Fxe(o.definition)));else if(!(r instanceof wd))throw Error("non exhaustive match");const a=uTe(r),s=e.length>1;if(a&&s){const o=fm(e);return t.concat(Fxe(o))}else return t}class _mt extends rK{constructor(){super(...arguments),this.alternations=[]}visitAlternation(t){this.alternations.push(t)}}function Tzi(e,t){const r=new _mt;e.accept(r);const a=r.alternations;return dS(a,o=>{const u=nle(o.definition);return dS(u,(h,f)=>{const p=Ajn([h],[],Gce,1);return Jh(p)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:o,emptyChoiceIdx:f}),type:dv.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:o.idx,alternative:f+1}]:[]})})}function Czi(e,t,r){const a=new _mt;e.accept(a);let s=a.alternations;return s=Mke(s,u=>u.ignoreAmbiguities===!0),dS(s,u=>{const h=u.idx,f=u.maxLookahead||t,p=$ke(h,e,f,u),m=Izi(p,u,e,r),b=Nzi(p,u,e,r);return m.concat(b)})}class Azi extends rK{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}}function kzi(e,t){const r=new _mt;e.accept(r);const a=r.alternations;return dS(a,o=>o.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:o}),type:dv.TOO_MANY_ALTS,ruleName:e.name,occurrence:o.idx}]:[])}function Rzi(e,t,r){const a=[];return _o(e,s=>{const o=new Azi;s.accept(o);const u=o.allProductions;_o(u,h=>{const f=vmt(h),p=h.maxLookahead||t,m=h.idx,_=Uke(m,s,f,p)[0];if(Jh(eT(_))){const w=r.buildEmptyRepetitionError({topLevelRule:s,repetition:h});a.push({message:w,type:dv.NO_NON_EMPTY_LOOKAHEAD,ruleName:s.name})}})}),a}function Izi(e,t,r,a){const s=[],o=Gw(e,(h,f,p)=>(t.definition[p].ignoreAmbiguities===!0||_o(f,m=>{const b=[p];_o(e,(_,w)=>{p!==w&&Uct(_,m)&&t.definition[w].ignoreAmbiguities!==!0&&b.push(w)}),b.length>1&&!Uct(s,m)&&(s.push(m),h.push({alts:b,path:m}))}),h),[]);return As(o,h=>{const f=As(h.alts,m=>m+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:f,prefixPath:h.path}),type:dv.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:h.alts}})}function Nzi(e,t,r,a){const s=Gw(e,(u,h,f)=>{const p=As(h,m=>({idx:f,path:m}));return u.concat(p)},[]);return Uce(dS(s,u=>{if(t.definition[u.idx].ignoreAmbiguities===!0)return[];const f=u.idx,p=u.path,m=PS(s,_=>t.definition[_.idx].ignoreAmbiguities!==!0&&_.idx<f&&bzi(_.path,p));return As(m,_=>{const w=[_.idx+1,f+1],S=t.idx===0?"":t.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:w,prefixPath:_.path}),type:dv.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:S,alternatives:w}})}))}function Ozi(e,t,r){const a=[],s=As(t,o=>o.name);return _o(e,o=>{const u=o.name;if(wv(s,u)){const h=r.buildNamespaceConflictError(o);a.push({message:h,type:dv.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:u})}}),a}function Lzi(e){const t=gmt(e,{errMsgProvider:rzi}),r={};return _o(e.rules,a=>{r[a.name]=a}),izi(r,t.errMsgProvider)}function Dzi(e){return e=gmt(e,{errMsgProvider:oF}),vzi(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}const Ljn="MismatchedTokenException",Djn="NoViableAltException",Mjn="EarlyExitException",Pjn="NotAllInputParsedException",Bjn=[Ljn,Djn,Mjn,Pjn];Object.freeze(Bjn);function fTe(e){return wv(Bjn,e.name)}class zke extends Error{constructor(t,r){super(t),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Fjn extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Ljn}}class Mzi extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Djn}}class Pzi extends zke{constructor(t,r){super(t,r),this.name=Pjn}}class Bzi extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Mjn}}const Oit={},$jn="InRuleRecoveryException";class Fzi extends Error{constructor(t){super(t),this.name=$jn}}class $zi{initRecoverable(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=so(t,"recoveryEnabled")?t.recoveryEnabled:fR.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Uzi)}getTokenToInsert(t){const r=ymt(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(t){return!0}canTokenTypeBeDeletedInRecovery(t){return!0}tryInRepetitionRecovery(t,r,a,s){const o=this.findReSyncTokenType(),u=this.exportLexerState(),h=[];let f=!1;const p=this.LA(1);let m=this.LA(1);const b=()=>{const _=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:s,actual:p,previous:_,ruleName:this.getCurrRuleFullName()}),S=new Fjn(w,p,this.LA(0));S.resyncedTokens=nle(h),this.SAVE_ERROR(S)};for(;!f;)if(this.tokenMatcher(m,s)){b();return}else if(a.call(this)){b(),t.apply(this,r);return}else this.tokenMatcher(m,o)?f=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h));this.importLexerState(u)}shouldInRepetitionRecoveryBeTried(t,r,a){return!(a===!1||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,r)))}getFollowsForInRuleRecovery(t,r){const a=this.getCurrentGrammarPath(t,r);return this.getNextPossibleTokenTypes(a)}tryInRuleRecovery(t,r){if(this.canRecoverWithSingleTokenInsertion(t,r))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){const a=this.SKIP_TOKEN();return this.consumeToken(),a}throw new Fzi("sad sad panda")}canPerformInRuleRecovery(t,r){return this.canRecoverWithSingleTokenInsertion(t,r)||this.canRecoverWithSingleTokenDeletion(t)}canRecoverWithSingleTokenInsertion(t,r){if(!this.canTokenTypeBeInsertedInRecovery(t)||Jh(r))return!1;const a=this.LA(1);return Yj(r,o=>this.tokenMatcher(a,o))!==void 0}canRecoverWithSingleTokenDeletion(t){return this.canTokenTypeBeDeletedInRecovery(t)?this.tokenMatcher(this.LA(2),t):!1}isInCurrentRuleReSyncSet(t){const r=this.getCurrFollowKey(),a=this.getFollowSetFromFollowKey(r);return wv(a,t)}findReSyncTokenType(){const t=this.flattenFollowSet();let r=this.LA(1),a=2;for(;;){const s=Yj(t,o=>Cjn(r,o));if(s!==void 0)return s;r=this.LA(a),a++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Oit;const t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),a=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(a)}}buildFullFollowKeyStack(){const t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return As(t,(a,s)=>s===0?Oit:{ruleName:this.shortRuleNameToFullName(a),idxInCallingRule:r[s],inRule:this.shortRuleNameToFullName(t[s-1])})}flattenFollowSet(){const t=As(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return eT(t)}getFollowSetFromFollowKey(t){if(t===Oit)return[p9];const r=t.ruleName+t.idxInCallingRule+gjn+t.inRule;return this.resyncFollows[r]}addToResyncTokens(t,r){return this.tokenMatcher(t,p9)||r.push(t),r}reSyncTo(t){const r=[];let a=this.LA(1);for(;this.tokenMatcher(a,t)===!1;)a=this.SKIP_TOKEN(),this.addToResyncTokens(a,r);return nle(r)}attemptInRepetitionRecovery(t,r,a,s,o,u,h){}getCurrentGrammarPath(t,r){const a=this.getHumanReadableRuleStack(),s=Im(this.RULE_OCCURRENCE_STACK);return{ruleStack:a,occurrenceStack:s,lastTok:t,lastTokOccurrence:r}}getHumanReadableRuleStack(){return As(this.RULE_STACK,t=>this.shortRuleNameToFullName(t))}}function Uzi(e,t,r,a,s,o,u){const h=this.getKeyForAutomaticLookahead(a,s);let f=this.firstAfterRepMap[h];if(f===void 0){const _=this.getCurrRuleFullName(),w=this.getGAstProductions()[_];f=new o(w,s).startWalking(),this.firstAfterRepMap[h]=f}let p=f.token,m=f.occurrence;const b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&p===void 0&&(p=p9,m=1),!(p===void 0||m===void 0)&&this.shouldInRepetitionRecoveryBeTried(p,m,u)&&this.tryInRepetitionRecovery(e,t,r,p)}const zzi=4,Z9=8,Ujn=1<<Z9,zjn=2<<Z9,zct=3<<Z9,Gct=4<<Z9,qct=5<<Z9,$xe=6<<Z9;function Lit(e,t,r){return r|t|e}class wmt{constructor(t){var r;this.maxLookahead=(r=t==null?void 0:t.maxLookahead)!==null&&r!==void 0?r:fR.maxLookahead}validate(t){const r=this.validateNoLeftRecursion(t.rules);if(Jh(r)){const a=this.validateEmptyOrAlternatives(t.rules),s=this.validateAmbiguousAlternationAlternatives(t.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(t.rules,this.maxLookahead);return[...r,...a,...s,...o]}return r}validateNoLeftRecursion(t){return dS(t,r=>Ojn(r,r,oF))}validateEmptyOrAlternatives(t){return dS(t,r=>Tzi(r,oF))}validateAmbiguousAlternationAlternatives(t,r){return dS(t,a=>Czi(a,r,oF))}validateSomeNonEmptyLookaheadPath(t,r){return Rzi(t,r,oF)}buildLookaheadForAlternation(t){return hzi(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,fzi)}buildLookaheadForOptional(t){return dzi(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,vmt(t.prodType),pzi)}}class Gzi{initLooksAhead(t){this.dynamicTokensEnabled=so(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:fR.dynamicTokensEnabled,this.maxLookahead=so(t,"maxLookahead")?t.maxLookahead:fR.maxLookahead,this.lookaheadStrategy=so(t,"lookaheadStrategy")?t.lookaheadStrategy:new wmt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(t){_o(t,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:a,repetition:s,option:o,repetitionMandatory:u,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:f}=Hzi(r);_o(a,p=>{const m=p.idx===0?"":p.idx;this.TRACE_INIT(`${PC(p)}${m}`,()=>{const b=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),_=Lit(this.fullRuleNameToShort[r.name],Ujn,p.idx);this.setLaFuncCache(_,b)})}),_o(s,p=>{this.computeLookaheadFunc(r,p.idx,zct,"Repetition",p.maxLookahead,PC(p))}),_o(o,p=>{this.computeLookaheadFunc(r,p.idx,zjn,"Option",p.maxLookahead,PC(p))}),_o(u,p=>{this.computeLookaheadFunc(r,p.idx,Gct,"RepetitionMandatory",p.maxLookahead,PC(p))}),_o(h,p=>{this.computeLookaheadFunc(r,p.idx,$xe,"RepetitionMandatoryWithSeparator",p.maxLookahead,PC(p))}),_o(f,p=>{this.computeLookaheadFunc(r,p.idx,qct,"RepetitionWithSeparator",p.maxLookahead,PC(p))})})})}computeLookaheadFunc(t,r,a,s,o,u){this.TRACE_INIT(`${u}${r===0?"":r}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:t,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:s}),f=Lit(this.fullRuleNameToShort[t.name],a,r);this.setLaFuncCache(f,h)})}getKeyForAutomaticLookahead(t,r){const a=this.getLastExplicitRuleShortName();return Lit(a,t,r)}getLaFuncFromCache(t){return this.lookAheadFuncsCache.get(t)}setLaFuncCache(t,r){this.lookAheadFuncsCache.set(t,r)}}class qzi extends rK{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(t){this.dslMethods.option.push(t)}visitRepetitionWithSeparator(t){this.dslMethods.repetitionWithSeparator.push(t)}visitRepetitionMandatory(t){this.dslMethods.repetitionMandatory.push(t)}visitRepetitionMandatoryWithSeparator(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)}visitRepetition(t){this.dslMethods.repetition.push(t)}visitAlternation(t){this.dslMethods.alternation.push(t)}}const tEe=new qzi;function Hzi(e){tEe.reset(),e.accept(tEe);const t=tEe.dslMethods;return tEe.reset(),t}function w4n(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function E4n(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Vzi(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}function Yzi(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}const jzi="name";function Gjn(e,t){Object.defineProperty(e,jzi,{enumerable:!1,configurable:!0,writable:!1,value:t})}function Wzi(e,t){const r=IS(e),a=r.length;for(let s=0;s<a;s++){const o=r[s],u=e[o],h=u.length;for(let f=0;f<h;f++){const p=u[f];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}}function Kzi(e,t){const r=function(){};Gjn(r,e+"BaseSemantics");const a={visit:function(s,o){if(Wc(s)&&(s=s[0]),!dR(s))return this[s.name](s.children,o)},validateVisitor:function(){const s=Qzi(this,t);if(!Jh(s)){const o=As(s,u=>u.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
	${o.join(`

`).replace(/\n/g,`
	`)}`)}}};return r.prototype=a,r.prototype.constructor=r,r._RULE_NAMES=t,r}function Xzi(e,t,r){const a=function(){};Gjn(a,e+"BaseSemanticsWithDefaults");const s=Object.create(r.prototype);return _o(t,o=>{s[o]=Wzi}),a.prototype=s,a.prototype.constructor=a,a}var Hct;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Hct||(Hct={}));function Qzi(e,t){return Zzi(e,t)}function Zzi(e,t){const r=PS(t,s=>CR(e[s])===!1),a=As(r,s=>({msg:`Missing visitor method: <${s}> on ${e.constructor.name} CST Visitor.`,type:Hct.MISSING_METHOD,methodName:s}));return Uce(a)}class Jzi{initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=so(t,"nodeLocationTracking")?t.nodeLocationTracking:fR.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=gp,this.cstFinallyStateUpdate=gp,this.cstPostTerminal=gp,this.cstPostNonTerminal=gp,this.cstPostRule=gp;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=E4n,this.setNodeLocationFromNode=E4n,this.cstPostRule=gp,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=w4n,this.setNodeLocationFromNode=w4n,this.cstPostRule=gp,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=gp,this.setInitialNodeLocation=gp;else throw Error(`Invalid <nodeLocationTracking> config option: "${t.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){const r=this.LA(1);t.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){const r={name:t,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){const r=this.LA(0),a=t.location;a.startOffset<=r.startOffset?(a.endOffset=r.endOffset,a.endLine=r.endLine,a.endColumn=r.endColumn):(a.startOffset=NaN,a.startLine=NaN,a.startColumn=NaN)}cstPostRuleOnlyOffset(t){const r=this.LA(0),a=t.location;a.startOffset<=r.startOffset?a.endOffset=r.endOffset:a.startOffset=NaN}cstPostTerminal(t,r){const a=this.CST_STACK[this.CST_STACK.length-1];Vzi(a,r,t),this.setNodeLocationFromToken(a.location,r)}cstPostNonTerminal(t,r){const a=this.CST_STACK[this.CST_STACK.length-1];Yzi(a,r,t),this.setNodeLocationFromNode(a.location,t.location)}getBaseCstVisitorConstructor(){if(dR(this.baseCstVisitorConstructor)){const t=Kzi(this.className,IS(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(dR(this.baseCstVisitorWithDefaultsConstructor)){const t=Xzi(this.className,IS(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){const t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){const t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}}class eGi{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):gTe}LA(t){const r=this.currIdx+t;return r<0||this.tokVectorLength<=r?gTe:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class tGi{ACTION(t){return t.call(this)}consume(t,r,a){return this.consumeInternal(r,t,a)}subrule(t,r,a){return this.subruleInternal(r,t,a)}option(t,r){return this.optionInternal(r,t)}or(t,r){return this.orInternal(r,t)}many(t,r){return this.manyInternal(t,r)}atLeastOne(t,r){return this.atLeastOneInternal(t,r)}CONSUME(t,r){return this.consumeInternal(t,0,r)}CONSUME1(t,r){return this.consumeInternal(t,1,r)}CONSUME2(t,r){return this.consumeInternal(t,2,r)}CONSUME3(t,r){return this.consumeInternal(t,3,r)}CONSUME4(t,r){return this.consumeInternal(t,4,r)}CONSUME5(t,r){return this.consumeInternal(t,5,r)}CONSUME6(t,r){return this.consumeInternal(t,6,r)}CONSUME7(t,r){return this.consumeInternal(t,7,r)}CONSUME8(t,r){return this.consumeInternal(t,8,r)}CONSUME9(t,r){return this.consumeInternal(t,9,r)}SUBRULE(t,r){return this.subruleInternal(t,0,r)}SUBRULE1(t,r){return this.subruleInternal(t,1,r)}SUBRULE2(t,r){return this.subruleInternal(t,2,r)}SUBRULE3(t,r){return this.subruleInternal(t,3,r)}SUBRULE4(t,r){return this.subruleInternal(t,4,r)}SUBRULE5(t,r){return this.subruleInternal(t,5,r)}SUBRULE6(t,r){return this.subruleInternal(t,6,r)}SUBRULE7(t,r){return this.subruleInternal(t,7,r)}SUBRULE8(t,r){return this.subruleInternal(t,8,r)}SUBRULE9(t,r){return this.subruleInternal(t,9,r)}OPTION(t){return this.optionInternal(t,0)}OPTION1(t){return this.optionInternal(t,1)}OPTION2(t){return this.optionInternal(t,2)}OPTION3(t){return this.optionInternal(t,3)}OPTION4(t){return this.optionInternal(t,4)}OPTION5(t){return this.optionInternal(t,5)}OPTION6(t){return this.optionInternal(t,6)}OPTION7(t){return this.optionInternal(t,7)}OPTION8(t){return this.optionInternal(t,8)}OPTION9(t){return this.optionInternal(t,9)}OR(t){return this.orInternal(t,0)}OR1(t){return this.orInternal(t,1)}OR2(t){return this.orInternal(t,2)}OR3(t){return this.orInternal(t,3)}OR4(t){return this.orInternal(t,4)}OR5(t){return this.orInternal(t,5)}OR6(t){return this.orInternal(t,6)}OR7(t){return this.orInternal(t,7)}OR8(t){return this.orInternal(t,8)}OR9(t){return this.orInternal(t,9)}MANY(t){this.manyInternal(0,t)}MANY1(t){this.manyInternal(1,t)}MANY2(t){this.manyInternal(2,t)}MANY3(t){this.manyInternal(3,t)}MANY4(t){this.manyInternal(4,t)}MANY5(t){this.manyInternal(5,t)}MANY6(t){this.manyInternal(6,t)}MANY7(t){this.manyInternal(7,t)}MANY8(t){this.manyInternal(8,t)}MANY9(t){this.manyInternal(9,t)}MANY_SEP(t){this.manySepFirstInternal(0,t)}MANY_SEP1(t){this.manySepFirstInternal(1,t)}MANY_SEP2(t){this.manySepFirstInternal(2,t)}MANY_SEP3(t){this.manySepFirstInternal(3,t)}MANY_SEP4(t){this.manySepFirstInternal(4,t)}MANY_SEP5(t){this.manySepFirstInternal(5,t)}MANY_SEP6(t){this.manySepFirstInternal(6,t)}MANY_SEP7(t){this.manySepFirstInternal(7,t)}MANY_SEP8(t){this.manySepFirstInternal(8,t)}MANY_SEP9(t){this.manySepFirstInternal(9,t)}AT_LEAST_ONE(t){this.atLeastOneInternal(0,t)}AT_LEAST_ONE1(t){return this.atLeastOneInternal(1,t)}AT_LEAST_ONE2(t){this.atLeastOneInternal(2,t)}AT_LEAST_ONE3(t){this.atLeastOneInternal(3,t)}AT_LEAST_ONE4(t){this.atLeastOneInternal(4,t)}AT_LEAST_ONE5(t){this.atLeastOneInternal(5,t)}AT_LEAST_ONE6(t){this.atLeastOneInternal(6,t)}AT_LEAST_ONE7(t){this.atLeastOneInternal(7,t)}AT_LEAST_ONE8(t){this.atLeastOneInternal(8,t)}AT_LEAST_ONE9(t){this.atLeastOneInternal(9,t)}AT_LEAST_ONE_SEP(t){this.atLeastOneSepFirstInternal(0,t)}AT_LEAST_ONE_SEP1(t){this.atLeastOneSepFirstInternal(1,t)}AT_LEAST_ONE_SEP2(t){this.atLeastOneSepFirstInternal(2,t)}AT_LEAST_ONE_SEP3(t){this.atLeastOneSepFirstInternal(3,t)}AT_LEAST_ONE_SEP4(t){this.atLeastOneSepFirstInternal(4,t)}AT_LEAST_ONE_SEP5(t){this.atLeastOneSepFirstInternal(5,t)}AT_LEAST_ONE_SEP6(t){this.atLeastOneSepFirstInternal(6,t)}AT_LEAST_ONE_SEP7(t){this.atLeastOneSepFirstInternal(7,t)}AT_LEAST_ONE_SEP8(t){this.atLeastOneSepFirstInternal(8,t)}AT_LEAST_ONE_SEP9(t){this.atLeastOneSepFirstInternal(9,t)}RULE(t,r,a=mTe){if(wv(this.definedRulesNames,t)){const u={message:oF.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:dv.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(u)}this.definedRulesNames.push(t);const s=this.defineRule(t,r,a);return this[t]=s,s}OVERRIDE_RULE(t,r,a=mTe){const s=Szi(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(s);const o=this.defineRule(t,r,a);return this[t]=o,o}BACKTRACK(t,r){return function(){this.isBackTrackingStack.push(1);const a=this.saveRecogState();try{return t.apply(this,r),!0}catch(s){if(fTe(s))return!1;throw s}finally{this.reloadRecogState(a),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return uUi(wp(this.gastProductionsCache))}}class nGi{initRecognizerEngine(t,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=dTe,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},so(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
	For Further details.`);if(Wc(t)){if(Jh(t))throw Error(`A Token Vocabulary cannot be empty.
	Note that the first argument for the parser constructor
	is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
	For Further details.`)}if(Wc(t))this.tokensMap=Gw(t,(o,u)=>(o[u.name]=u,o),{});else if(so(t,"modes")&&tT(eT(wp(t.modes)),ezi)){const o=eT(wp(t.modes)),u=mmt(o);this.tokensMap=Gw(u,(h,f)=>(h[f.name]=f,h),{})}else if(RS(t))this.tokensMap=Im(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=p9;const a=so(t,"modes")?eT(wp(t.modes)):wp(t),s=tT(a,o=>Jh(o.categoryMatches));this.tokenMatcher=s?dTe:Gce,qce(wp(this.tokensMap))}defineRule(t,r,a){if(this.selfAnalysisDone)throw Error(`Grammar rule <${t}> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const s=so(a,"resyncEnabled")?a.resyncEnabled:mTe.resyncEnabled,o=so(a,"recoveryValueFunc")?a.recoveryValueFunc:mTe.recoveryValueFunc,u=this.ruleShortNameIdx<<zzi+Z9;this.ruleShortNameIdx++,this.shortRuleNameToFull[u]=t,this.fullRuleNameToShort[t]=u;let h;return this.outputCst===!0?h=function(...m){try{this.ruleInvocationStateUpdate(u,t,this.subruleIdx),r.apply(this,m);const b=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(b),b}catch(b){return this.invokeRuleCatch(b,s,o)}finally{this.ruleFinallyStateUpdate()}}:h=function(...m){try{return this.ruleInvocationStateUpdate(u,t,this.subruleIdx),r.apply(this,m)}catch(b){return this.invokeRuleCatch(b,s,o)}finally{this.ruleFinallyStateUpdate()}},Object.assign(h,{ruleName:t,originalGrammarAction:r})}invokeRuleCatch(t,r,a){const s=this.RULE_STACK.length===1,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(fTe(t)){const u=t;if(o){const h=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(h))if(u.resyncedTokens=this.reSyncTo(h),this.outputCst){const f=this.CST_STACK[this.CST_STACK.length-1];return f.recoveredNode=!0,f}else return a(t);else{if(this.outputCst){const f=this.CST_STACK[this.CST_STACK.length-1];f.recoveredNode=!0,u.partialCstResult=f}throw u}}else{if(s)return this.moveToTerminatedState(),a(t);throw u}}else throw t}optionInternal(t,r){const a=this.getKeyForAutomaticLookahead(zjn,r);return this.optionInternalLogic(t,r,a)}optionInternalLogic(t,r,a){let s=this.getLaFuncFromCache(a),o;if(typeof t!="function"){o=t.DEF;const u=t.GATE;if(u!==void 0){const h=s;s=()=>u.call(this)&&h.call(this)}}else o=t;if(s.call(this)===!0)return o.call(this)}atLeastOneInternal(t,r){const a=this.getKeyForAutomaticLookahead(Gct,t);return this.atLeastOneInternalLogic(t,r,a)}atLeastOneInternalLogic(t,r,a){let s=this.getLaFuncFromCache(a),o;if(typeof r!="function"){o=r.DEF;const u=r.GATE;if(u!==void 0){const h=s;s=()=>u.call(this)&&h.call(this)}}else o=r;if(s.call(this)===!0){let u=this.doSingleRepetition(o);for(;s.call(this)===!0&&u===!0;)u=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(t,If.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],s,Gct,t,czi)}atLeastOneSepFirstInternal(t,r){const a=this.getKeyForAutomaticLookahead($xe,t);this.atLeastOneSepFirstInternalLogic(t,r,a)}atLeastOneSepFirstInternalLogic(t,r,a){const s=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(a).call(this)===!0){s.call(this);const h=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,h,s,y4n],h,$xe,t,y4n)}else throw this.raiseEarlyExitException(t,If.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(t,r){const a=this.getKeyForAutomaticLookahead(zct,t);return this.manyInternalLogic(t,r,a)}manyInternalLogic(t,r,a){let s=this.getLaFuncFromCache(a),o;if(typeof r!="function"){o=r.DEF;const h=r.GATE;if(h!==void 0){const f=s;s=()=>h.call(this)&&f.call(this)}}else o=r;let u=!0;for(;s.call(this)===!0&&u===!0;)u=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],s,zct,t,lzi,u)}manySepFirstInternal(t,r){const a=this.getKeyForAutomaticLookahead(qct,t);this.manySepFirstInternalLogic(t,r,a)}manySepFirstInternalLogic(t,r,a){const s=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(a).call(this)===!0){s.call(this);const h=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,h,s,b4n],h,qct,t,b4n)}}repetitionSepSecondInternal(t,r,a,s,o){for(;a();)this.CONSUME(r),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,r,a,s,o],a,$xe,t,o)}doSingleRepetition(t){const r=this.getLexerPosition();return t.call(this),this.getLexerPosition()>r}orInternal(t,r){const a=this.getKeyForAutomaticLookahead(Ujn,r),s=Wc(t)?t:t.DEF,u=this.getLaFuncFromCache(a).call(this,s);if(u!==void 0)return s[u].ALT.call(this);this.raiseNoAltException(r,t.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const t=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Pzi(r,t))}}subruleInternal(t,r,a){let s;try{const o=a!==void 0?a.ARGS:void 0;return this.subruleIdx=r,s=t.apply(this,o),this.cstPostNonTerminal(s,a!==void 0&&a.LABEL!==void 0?a.LABEL:t.ruleName),s}catch(o){throw this.subruleInternalError(o,a,t.ruleName)}}subruleInternalError(t,r,a){throw fTe(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:a),delete t.partialCstResult),t}consumeInternal(t,r,a){let s;try{const o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),s=o):this.consumeInternalError(t,o,a)}catch(o){s=this.consumeInternalRecovery(t,r,o)}return this.cstPostTerminal(a!==void 0&&a.LABEL!==void 0?a.LABEL:t.name,s),s}consumeInternalError(t,r,a){let s;const o=this.LA(0);throw a!==void 0&&a.ERR_MSG?s=a.ERR_MSG:s=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:r,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Fjn(s,r,o))}consumeInternalRecovery(t,r,a){if(this.recoveryEnabled&&a.name==="MismatchedTokenException"&&!this.isBackTracking()){const s=this.getFollowsForInRuleRecovery(t,r);try{return this.tryInRuleRecovery(t,s)}catch(o){throw o.name===$jn?a:o}}else throw a}saveRecogState(){const t=this.errors,r=Im(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK}ruleInvocationStateUpdate(t,r,a){this.RULE_OCCURRENCE_STACK.push(a),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]}shortRuleNameToFullName(t){return this.shortRuleNameToFull[t]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),p9)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class rGi{initErrorHandler(t){this._errors=[],this.errorMessageProvider=so(t,"errorMessageProvider")?t.errorMessageProvider:fR.errorMessageProvider}SAVE_ERROR(t){if(fTe(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Im(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Im(this._errors)}set errors(t){this._errors=t}raiseEarlyExitException(t,r,a){const s=this.getCurrRuleFullName(),o=this.getGAstProductions()[s],h=Uke(t,o,r,this.maxLookahead)[0],f=[];for(let m=1;m<=this.maxLookahead;m++)f.push(this.LA(m));const p=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:h,actual:f,previous:this.LA(0),customUserDescription:a,ruleName:s});throw this.SAVE_ERROR(new Bzi(p,this.LA(1),this.LA(0)))}raiseNoAltException(t,r){const a=this.getCurrRuleFullName(),s=this.getGAstProductions()[a],o=$ke(t,s,this.maxLookahead),u=[];for(let p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));const h=this.LA(0),f=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:u,previous:h,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Mzi(f,this.LA(1),h))}}class iGi{initContentAssist(){}computeContentAssist(t,r){const a=this.gastProductionsCache[t];if(dR(a))throw Error(`Rule ->${t}<- does not exist in this grammar.`);return Ajn([a],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(t){const r=hT(t.ruleStack),s=this.getGAstProductions()[r];return new ozi(s,t).startWalking()}}const Gke={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Gke);const x4n=!0,S4n=Math.pow(2,Z9)-1,qjn=Tjn({name:"RECORDING_PHASE_TOKEN",pattern:J2.NA});qce([qjn]);const Hjn=ymt(qjn,`This IToken indicates the Parser is in Recording Phase
	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Hjn);const aGi={name:`This CSTNode indicates the Parser is in Recording Phase
	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class sGi{initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let t=0;t<10;t++){const r=t>0?t:"";this[`CONSUME${r}`]=function(a,s){return this.consumeInternalRecord(a,t,s)},this[`SUBRULE${r}`]=function(a,s){return this.subruleInternalRecord(a,t,s)},this[`OPTION${r}`]=function(a){return this.optionInternalRecord(a,t)},this[`OR${r}`]=function(a){return this.orInternalRecord(a,t)},this[`MANY${r}`]=function(a){this.manyInternalRecord(t,a)},this[`MANY_SEP${r}`]=function(a){this.manySepFirstInternalRecord(t,a)},this[`AT_LEAST_ONE${r}`]=function(a){this.atLeastOneInternalRecord(t,a)},this[`AT_LEAST_ONE_SEP${r}`]=function(a){this.atLeastOneSepFirstInternalRecord(t,a)}}this.consume=function(t,r,a){return this.consumeInternalRecord(r,t,a)},this.subrule=function(t,r,a){return this.subruleInternalRecord(r,t,a)},this.option=function(t,r){return this.optionInternalRecord(r,t)},this.or=function(t,r){return this.orInternalRecord(r,t)},this.many=function(t,r){this.manyInternalRecord(t,r)},this.atLeastOne=function(t,r){this.atLeastOneInternalRecord(t,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const t=this;for(let r=0;r<10;r++){const a=r>0?r:"";delete t[`CONSUME${a}`],delete t[`SUBRULE${a}`],delete t[`OPTION${a}`],delete t[`OR${a}`],delete t[`MANY${a}`],delete t[`MANY_SEP${a}`],delete t[`AT_LEAST_ONE${a}`],delete t[`AT_LEAST_ONE_SEP${a}`]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,r){return()=>!0}LA_RECORD(t){return gTe}topLevelRuleRecord(t,r){try{const a=new nK({definition:[],name:t});return a.name=t,this.recordingProdStack.push(a),r.call(this),this.recordingProdStack.pop(),a}catch(a){if(a.KNOWN_RECORDER_ERROR!==!0)try{a.message=a.message+`
	 This error was thrown during the "grammar recording phase" For more info see:
	https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw a}throw a}}optionInternalRecord(t,r){return uie.call(this,Am,t,r)}atLeastOneInternalRecord(t,r){uie.call(this,Kw,r,t)}atLeastOneSepFirstInternalRecord(t,r){uie.call(this,Xw,r,t,x4n)}manyInternalRecord(t,r){uie.call(this,l0,r,t)}manySepFirstInternalRecord(t,r){uie.call(this,u_,r,t,x4n)}orInternalRecord(t,r){return oGi.call(this,t,r)}subruleInternalRecord(t,r,a){if(pTe(r),!t||so(t,"ruleName")===!1){const h=new Error(`<SUBRULE${T4n(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}>
 inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const s=Vj(this.recordingProdStack),o=t.ruleName,u=new hv({idx:r,nonTerminalName:o,label:a==null?void 0:a.LABEL,referencedRule:void 0});return s.definition.push(u),this.outputCst?aGi:Gke}consumeInternalRecord(t,r,a){if(pTe(r),!xjn(t)){const u=new Error(`<CONSUME${T4n(r)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}>
 inside top level rule: <${this.recordingProdStack[0].name}>`);throw u.KNOWN_RECORDER_ERROR=!0,u}const s=Vj(this.recordingProdStack),o=new wd({idx:r,terminalType:t,label:a==null?void 0:a.LABEL});return s.definition.push(o),Hjn}}function uie(e,t,r,a=!1){pTe(r);const s=Vj(this.recordingProdStack),o=CR(t)?t:t.DEF,u=new e({definition:[],idx:r});return a&&(u.separator=t.SEP),so(t,"MAX_LOOKAHEAD")&&(u.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(u),o.call(this),s.definition.push(u),this.recordingProdStack.pop(),Gke}function oGi(e,t){pTe(t);const r=Vj(this.recordingProdStack),a=Wc(e)===!1,s=a===!1?e:e.DEF,o=new h_({definition:[],idx:t,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});so(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);const u=hjn(s,h=>CR(h.GATE));return o.hasPredicates=u,r.definition.push(o),_o(s,h=>{const f=new s_({definition:[]});o.definition.push(f),so(h,"IGNORE_AMBIGUITIES")?f.ignoreAmbiguities=h.IGNORE_AMBIGUITIES:so(h,"GATE")&&(f.ignoreAmbiguities=!0),this.recordingProdStack.push(f),h.ALT.call(this),this.recordingProdStack.pop()}),Gke}function T4n(e){return e===0?"":`${e}`}function pTe(e){if(e<0||e>S4n){const t=new Error(`Invalid DSL Method idx value: <${e}>
	Idx value must be a none negative value smaller than ${S4n+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}class lGi{initPerformanceTracer(t){if(so(t,"traceInitPerf")){const r=t.traceInitPerf,a=typeof r=="number";this.traceInitMaxIdent=a?r:1/0,this.traceInitPerf=a?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=fR.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(t,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const a=new Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${a}--> <${t}>`);const{time:s,value:o}=fjn(r),u=s>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${a}<-- <${t}> time: ${s}ms`),this.traceInitIndent--,o}else return r()}}function cGi(e,t){t.forEach(r=>{const a=r.prototype;Object.getOwnPropertyNames(a).forEach(s=>{if(s==="constructor")return;const o=Object.getOwnPropertyDescriptor(a,s);o&&(o.get||o.set)?Object.defineProperty(e.prototype,s,o):e.prototype[s]=r.prototype[s]})})}const gTe=ymt(p9,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(gTe);const fR=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:PV,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),mTe=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var dv;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(dv||(dv={}));function C4n(e=void 0){return function(){return e}}class Hce{static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated.	\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{pjn(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),_o(this.definedRulesNames,s=>{const u=this[s].originalGrammarAction;let h;this.TRACE_INIT(`${s} Rule`,()=>{h=this.topLevelRuleRecord(s,u)}),this.gastProductionsCache[s]=h})}finally{this.disableRecording()}});let a=[];if(this.TRACE_INIT("Grammar Resolving",()=>{a=Lzi({rules:wp(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(a)}),this.TRACE_INIT("Grammar Validations",()=>{if(Jh(a)&&this.skipValidations===!1){const s=Dzi({rules:wp(this.gastProductionsCache),tokenTypes:wp(this.tokensMap),errMsgProvider:oF,grammarName:r}),o=yzi({lookaheadStrategy:this.lookaheadStrategy,rules:wp(this.gastProductionsCache),tokenTypes:wp(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(s,o)}}),Jh(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const s=bUi(wp(this.gastProductionsCache));this.resyncFollows=s}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var s,o;(o=(s=this.lookaheadStrategy).initialize)===null||o===void 0||o.call(s,{rules:wp(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(wp(this.gastProductionsCache))})),!Hce.DEFER_DEFINITION_ERRORS_HANDLING&&!Jh(this.definitionErrors))throw t=As(this.definitionErrors,s=>s.message),new Error(`Parser Definition Errors detected:
 ${t.join(`
-------------------------------
`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const a=this;if(a.initErrorHandler(r),a.initLexerAdapter(),a.initLooksAhead(r),a.initRecognizerEngine(t,r),a.initRecoverable(r),a.initTreeBuilder(r),a.initContentAssist(),a.initGastRecorder(r),a.initPerformanceTracer(r),so(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
	Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
	See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
	For further details.`);this.skipValidations=so(r,"skipValidations")?r.skipValidations:fR.skipValidations}}Hce.DEFER_DEFINITION_ERRORS_HANDLING=!1;cGi(Hce,[$zi,Gzi,Jzi,eGi,nGi,tGi,rGi,iGi,sGi,lGi]);class uGi extends Hce{constructor(t,r=fR){const a=Im(r);a.outputCst=!1,super(t,a)}}function jj(e,t,r){return`${e.name}_${t}_${r}`}const g9=1,hGi=2,Vjn=4,Yjn=5,Vce=7,dGi=8,fGi=9,pGi=10,gGi=11,jjn=12;class Emt{constructor(t){this.target=t}isEpsilon(){return!1}}class xmt extends Emt{constructor(t,r){super(t),this.tokenType=r}}class Wjn extends Emt{constructor(t){super(t)}isEpsilon(){return!0}}class Smt extends Emt{constructor(t,r,a){super(t),this.rule=r,this.followState=a}isEpsilon(){return!0}}function mGi(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};bGi(t,e);const r=e.length;for(let a=0;a<r;a++){const s=e[a],o=Y$(t,s,s);o!==void 0&&kGi(t,s,o)}return t}function bGi(e,t){const r=t.length;for(let a=0;a<r;a++){const s=t[a],o=Rg(e,s,void 0,{type:hGi}),u=Rg(e,s,void 0,{type:Vce});o.stop=u,e.ruleToStartState.set(s,o),e.ruleToStopState.set(s,u)}}function Kjn(e,t,r){return r instanceof wd?Tmt(e,t,r.terminalType,r):r instanceof hv?AGi(e,t,r):r instanceof h_?EGi(e,t,r):r instanceof Am?xGi(e,t,r):r instanceof l0?yGi(e,t,r):r instanceof u_?vGi(e,t,r):r instanceof Kw?_Gi(e,t,r):r instanceof Xw?wGi(e,t,r):Y$(e,t,r)}function yGi(e,t,r){const a=Rg(e,t,r,{type:Yjn});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r));return Qjn(e,t,r,s)}function vGi(e,t,r){const a=Rg(e,t,r,{type:Yjn});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r)),o=Tmt(e,t,r.separator,r);return Qjn(e,t,r,s,o)}function _Gi(e,t,r){const a=Rg(e,t,r,{type:Vjn});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r));return Xjn(e,t,r,s)}function wGi(e,t,r){const a=Rg(e,t,r,{type:Vjn});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r)),o=Tmt(e,t,r.separator,r);return Xjn(e,t,r,s,o)}function EGi(e,t,r){const a=Rg(e,t,r,{type:g9});J9(e,a);const s=wo(r.definition,u=>Kjn(e,t,u));return iK(e,t,a,r,...s)}function xGi(e,t,r){const a=Rg(e,t,r,{type:g9});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r));return SGi(e,t,r,s)}function Y$(e,t,r){const a=Rp(wo(r.definition,s=>Kjn(e,t,s)),s=>s!==void 0);return a.length===1?a[0]:a.length===0?void 0:CGi(e,a)}function Xjn(e,t,r,a,s){const o=a.left,u=a.right,h=Rg(e,t,r,{type:gGi});J9(e,h);const f=Rg(e,t,r,{type:jjn});return o.loopback=h,f.loopback=h,e.decisionMap[jj(t,s?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=h,T1(u,h),s===void 0?(T1(h,o),T1(h,f)):(T1(h,f),T1(h,s.left),T1(s.right,o)),{left:o,right:f}}function Qjn(e,t,r,a,s){const o=a.left,u=a.right,h=Rg(e,t,r,{type:pGi});J9(e,h);const f=Rg(e,t,r,{type:jjn}),p=Rg(e,t,r,{type:fGi});return h.loopback=p,f.loopback=p,T1(h,o),T1(h,f),T1(u,p),s!==void 0?(T1(p,f),T1(p,s.left),T1(s.right,o)):T1(p,h),e.decisionMap[jj(t,s?"RepetitionWithSeparator":"Repetition",r.idx)]=h,{left:h,right:f}}function SGi(e,t,r,a){const s=a.left,o=a.right;return T1(s,o),e.decisionMap[jj(t,"Option",r.idx)]=s,a}function J9(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function iK(e,t,r,a,...s){const o=Rg(e,t,a,{type:dGi,start:r});r.end=o;for(const h of s)h!==void 0?(T1(r,h.left),T1(h.right,o)):T1(r,o);const u={left:r,right:o};return e.decisionMap[jj(t,TGi(a),a.idx)]=r,u}function TGi(e){if(e instanceof h_)return"Alternation";if(e instanceof Am)return"Option";if(e instanceof l0)return"Repetition";if(e instanceof u_)return"RepetitionWithSeparator";if(e instanceof Kw)return"RepetitionMandatory";if(e instanceof Xw)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function CGi(e,t){const r=t.length;for(let o=0;o<r-1;o++){const u=t[o];let h;u.left.transitions.length===1&&(h=u.left.transitions[0]);const f=h instanceof Smt,p=h,m=t[o+1].left;u.left.type===g9&&u.right.type===g9&&h!==void 0&&(f&&p.followState===u.right||h.target===u.right)?(f?p.followState=m:h.target=m,RGi(e,u.right)):T1(u.right,m)}const a=t[0],s=t[r-1];return{left:a.left,right:s.right}}function Tmt(e,t,r,a){const s=Rg(e,t,a,{type:g9}),o=Rg(e,t,a,{type:g9});return Cmt(s,new xmt(o,r)),{left:s,right:o}}function AGi(e,t,r){const a=r.referencedRule,s=e.ruleToStartState.get(a),o=Rg(e,t,r,{type:g9}),u=Rg(e,t,r,{type:g9}),h=new Smt(s,a,u);return Cmt(o,h),{left:o,right:u}}function kGi(e,t,r){const a=e.ruleToStartState.get(t);T1(a,r.left);const s=e.ruleToStopState.get(t);return T1(r.right,s),{left:a,right:s}}function T1(e,t){const r=new Wjn(t);Cmt(e,r)}function Rg(e,t,r,a){const s=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},a);return e.states.push(s),s}function Cmt(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function RGi(e,t){e.states.splice(e.states.indexOf(t),1)}const bTe={};class Vct{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(t){const r=Zjn(t);r in this.map||(this.map[r]=this.configs.length,this.configs.push(t))}get elements(){return this.configs}get alts(){return wo(this.configs,t=>t.alt)}get key(){let t="";for(const r in this.map)t+=r+":";return t}}function Zjn(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}function IGi(e,t){const r={};return a=>{const s=a.toString();let o=r[s];return o!==void 0||(o={atnStartState:e,decision:t,states:{}},r[s]=o),o}}class Jjn{constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,r){this.predicates[t]=r}toString(){let t="";const r=this.predicates.length;for(let a=0;a<r;a++)t+=this.predicates[a]===!0?"1":"0";return t}}const A4n=new Jjn;class NGi extends wmt{constructor(t){var r;super(),this.logging=(r=t==null?void 0:t.logging)!==null&&r!==void 0?r:a=>console.log(a)}initialize(t){this.atn=mGi(t.rules),this.dfas=OGi(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){const{prodOccurrence:r,rule:a,hasPredicates:s,dynamicTokensEnabled:o}=t,u=this.dfas,h=this.logging,f=jj(a,"Alternation",r),m=this.atn.decisionMap[f].decision,b=wo(v4n({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:a}),_=>wo(_,w=>w[0]));if(k4n(b,!1)&&!o){const _=TS(b,(w,S,C)=>(Zt(S,A=>{A&&(w[A.tokenTypeIdx]=C,Zt(A.categoryMatches,k=>{w[k]=C}))}),w),{});return s?function(w){var S;const C=this.LA(1),A=_[C.tokenTypeIdx];if(w!==void 0&&A!==void 0){const k=(S=w[A])===null||S===void 0?void 0:S.GATE;if(k!==void 0&&k.call(this)===!1)return}return A}:function(){const w=this.LA(1);return _[w.tokenTypeIdx]}}else return s?function(_){const w=new Jjn,S=_===void 0?0:_.length;for(let A=0;A<S;A++){const k=_==null?void 0:_[A].GATE;w.set(A,k===void 0||k.call(this))}const C=Dit.call(this,u,m,w,h);return typeof C=="number"?C:void 0}:function(){const _=Dit.call(this,u,m,A4n,h);return typeof _=="number"?_:void 0}}buildLookaheadForOptional(t){const{prodOccurrence:r,rule:a,prodType:s,dynamicTokensEnabled:o}=t,u=this.dfas,h=this.logging,f=jj(a,s,r),m=this.atn.decisionMap[f].decision,b=wo(v4n({maxLookahead:1,occurrence:r,prodType:s,rule:a}),_=>wo(_,w=>w[0]));if(k4n(b)&&b[0][0]&&!o){const _=b[0],w=MS(_);if(w.length===1&&uA(w[0].categoryMatches)){const C=w[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===C}}else{const S=TS(w,(C,A)=>(A!==void 0&&(C[A.tokenTypeIdx]=!0,Zt(A.categoryMatches,k=>{C[k]=!0})),C),{});return function(){const C=this.LA(1);return S[C.tokenTypeIdx]===!0}}}return function(){const _=Dit.call(this,u,m,A4n,h);return typeof _=="object"?!1:_===0}}}function k4n(e,t=!0){const r=new Set;for(const a of e){const s=new Set;for(const o of a){if(o===void 0){if(t)break;return!1}const u=[o.tokenTypeIdx].concat(o.categoryMatches);for(const h of u)if(r.has(h)){if(!s.has(h))return!1}else r.add(h),s.add(h)}}return!0}function OGi(e){const t=e.decisionStates.length,r=Array(t);for(let a=0;a<t;a++)r[a]=IGi(e.decisionStates[a],a);return r}function Dit(e,t,r,a){const s=e[t](r);let o=s.start;if(o===void 0){const h=qGi(s.atnStartState);o=tWn(s,eWn(h)),s.start=o}return LGi.apply(this,[s,o,r,a])}function LGi(e,t,r,a){let s=t,o=1;const u=[];let h=this.LA(o++);for(;;){let f=$Gi(s,h);if(f===void 0&&(f=DGi.apply(this,[e,s,h,o,r,a])),f===bTe)return FGi(u,s,h);if(f.isAcceptState===!0)return f.prediction;s=f,u.push(h),h=this.LA(o++)}}function DGi(e,t,r,a,s,o){const u=UGi(t.configs,r,s);if(u.size===0)return R4n(e,t,r,bTe),bTe;let h=eWn(u);const f=GGi(u,s);if(f!==void 0)h.isAcceptState=!0,h.prediction=f,h.configs.uniqueAlt=f;else if(jGi(u)){const p=oT(u.alts);h.isAcceptState=!0,h.prediction=p,h.configs.uniqueAlt=p,MGi.apply(this,[e,a,u.alts,o])}return h=R4n(e,t,r,h),h}function MGi(e,t,r,a){const s=[];for(let p=1;p<=t;p++)s.push(this.LA(p).tokenType);const o=e.atnStartState,u=o.rule,h=o.production,f=PGi({topLevelRule:u,ambiguityIndices:r,production:h,prefixPath:s});a(f)}function PGi(e){const t=wo(e.prefixPath,s=>oY(s)).join(", "),r=e.production.idx===0?"":e.production.idx;let a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${BGi(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
`;return a=a+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,a}function BGi(e){if(e instanceof hv)return"SUBRULE";if(e instanceof Am)return"OPTION";if(e instanceof h_)return"OR";if(e instanceof Kw)return"AT_LEAST_ONE";if(e instanceof Xw)return"AT_LEAST_ONE_SEP";if(e instanceof u_)return"MANY_SEP";if(e instanceof l0)return"MANY";if(e instanceof wd)return"CONSUME";throw Error("non exhaustive match")}function FGi(e,t,r){const a=cAi(t.configs.elements,o=>o.state.transitions),s=IAi(a.filter(o=>o instanceof xmt).map(o=>o.tokenType),o=>o.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:s,tokenPath:e}}function $Gi(e,t){return e.edges[t.tokenTypeIdx]}function UGi(e,t,r){const a=new Vct,s=[];for(const u of e.elements){if(r.is(u.alt)===!1)continue;if(u.state.type===Vce){s.push(u);continue}const h=u.state.transitions.length;for(let f=0;f<h;f++){const p=u.state.transitions[f],m=zGi(p,t);m!==void 0&&a.add({state:m,alt:u.alt,stack:u.stack})}}let o;if(s.length===0&&a.size===1&&(o=a),o===void 0){o=new Vct;for(const u of a.elements)yTe(u,o)}if(s.length>0&&!VGi(o))for(const u of s)o.add(u);return o}function zGi(e,t){if(e instanceof xmt&&Cjn(t,e.tokenType))return e.target}function GGi(e,t){let r;for(const a of e.elements)if(t.is(a.alt)===!0){if(r===void 0)r=a.alt;else if(r!==a.alt)return}return r}function eWn(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function R4n(e,t,r,a){return a=tWn(e,a),t.edges[r.tokenTypeIdx]=a,a}function tWn(e,t){if(t===bTe)return t;const r=t.configs.key,a=e.states[r];return a!==void 0?a:(t.configs.finalize(),e.states[r]=t,t)}function qGi(e){const t=new Vct,r=e.transitions.length;for(let a=0;a<r;a++){const o={state:e.transitions[a].target,alt:a,stack:[]};yTe(o,t)}return t}function yTe(e,t){const r=e.state;if(r.type===Vce){if(e.stack.length>0){const s=[...e.stack],u={state:s.pop(),alt:e.alt,stack:s};yTe(u,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);const a=r.transitions.length;for(let s=0;s<a;s++){const o=r.transitions[s],u=HGi(e,o);u!==void 0&&yTe(u,t)}}function HGi(e,t){if(t instanceof Wjn)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof Smt){const r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}function VGi(e){for(const t of e.elements)if(t.state.type===Vce)return!0;return!1}function YGi(e){for(const t of e.elements)if(t.state.type!==Vce)return!1;return!0}function jGi(e){if(YGi(e))return!0;const t=WGi(e.elements);return KGi(t)&&!XGi(t)}function WGi(e){const t=new Map;for(const r of e){const a=Zjn(r,!1);let s=t.get(a);s===void 0&&(s={},t.set(a,s)),s[r.alt]=!0}return t}function KGi(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function XGi(e){for(const t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}var I4n;(function(e){function t(r){return typeof r=="string"}e.is=t})(I4n||(I4n={}));var Yct;(function(e){function t(r){return typeof r=="string"}e.is=t})(Yct||(Yct={}));var N4n;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(N4n||(N4n={}));var vTe;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(vTe||(vTe={}));var Pu;(function(e){function t(a,s){return a===Number.MAX_VALUE&&(a=vTe.MAX_VALUE),s===Number.MAX_VALUE&&(s=vTe.MAX_VALUE),{line:a,character:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&nr.uinteger(s.line)&&nr.uinteger(s.character)}e.is=r})(Pu||(Pu={}));var Bc;(function(e){function t(a,s,o,u){if(nr.uinteger(a)&&nr.uinteger(s)&&nr.uinteger(o)&&nr.uinteger(u))return{start:Pu.create(a,s),end:Pu.create(o,u)};if(Pu.is(a)&&Pu.is(s))return{start:a,end:s};throw new Error(`Range#create called with invalid arguments[${a}, ${s}, ${o}, ${u}]`)}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Pu.is(s.start)&&Pu.is(s.end)}e.is=r})(Bc||(Bc={}));var _Te;(function(e){function t(a,s){return{uri:a,range:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&(nr.string(s.uri)||nr.undefined(s.uri))}e.is=r})(_Te||(_Te={}));var O4n;(function(e){function t(a,s,o,u){return{targetUri:a,targetRange:s,targetSelectionRange:o,originSelectionRange:u}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.targetRange)&&nr.string(s.targetUri)&&Bc.is(s.targetSelectionRange)&&(Bc.is(s.originSelectionRange)||nr.undefined(s.originSelectionRange))}e.is=r})(O4n||(O4n={}));var jct;(function(e){function t(a,s,o,u){return{red:a,green:s,blue:o,alpha:u}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.numberRange(s.red,0,1)&&nr.numberRange(s.green,0,1)&&nr.numberRange(s.blue,0,1)&&nr.numberRange(s.alpha,0,1)}e.is=r})(jct||(jct={}));var L4n;(function(e){function t(a,s){return{range:a,color:s}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&jct.is(s.color)}e.is=r})(L4n||(L4n={}));var D4n;(function(e){function t(a,s,o){return{label:a,textEdit:s,additionalTextEdits:o}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.string(s.label)&&(nr.undefined(s.textEdit)||Kj.is(s))&&(nr.undefined(s.additionalTextEdits)||nr.typedArray(s.additionalTextEdits,Kj.is))}e.is=r})(D4n||(D4n={}));var M4n;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(M4n||(M4n={}));var P4n;(function(e){function t(a,s,o,u,h,f){const p={startLine:a,endLine:s};return nr.defined(o)&&(p.startCharacter=o),nr.defined(u)&&(p.endCharacter=u),nr.defined(h)&&(p.kind=h),nr.defined(f)&&(p.collapsedText=f),p}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.uinteger(s.startLine)&&nr.uinteger(s.startLine)&&(nr.undefined(s.startCharacter)||nr.uinteger(s.startCharacter))&&(nr.undefined(s.endCharacter)||nr.uinteger(s.endCharacter))&&(nr.undefined(s.kind)||nr.string(s.kind))}e.is=r})(P4n||(P4n={}));var Wct;(function(e){function t(a,s){return{location:a,message:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&_Te.is(s.location)&&nr.string(s.message)}e.is=r})(Wct||(Wct={}));var B4n;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(B4n||(B4n={}));var F4n;(function(e){e.Unnecessary=1,e.Deprecated=2})(F4n||(F4n={}));var $4n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&nr.string(a.href)}e.is=t})($4n||($4n={}));var wTe;(function(e){function t(a,s,o,u,h,f){let p={range:a,message:s};return nr.defined(o)&&(p.severity=o),nr.defined(u)&&(p.code=u),nr.defined(h)&&(p.source=h),nr.defined(f)&&(p.relatedInformation=f),p}e.create=t;function r(a){var s;let o=a;return nr.defined(o)&&Bc.is(o.range)&&nr.string(o.message)&&(nr.number(o.severity)||nr.undefined(o.severity))&&(nr.integer(o.code)||nr.string(o.code)||nr.undefined(o.code))&&(nr.undefined(o.codeDescription)||nr.string((s=o.codeDescription)===null||s===void 0?void 0:s.href))&&(nr.string(o.source)||nr.undefined(o.source))&&(nr.undefined(o.relatedInformation)||nr.typedArray(o.relatedInformation,Wct.is))}e.is=r})(wTe||(wTe={}));var Wj;(function(e){function t(a,s,...o){let u={title:a,command:s};return nr.defined(o)&&o.length>0&&(u.arguments=o),u}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.title)&&nr.string(s.command)}e.is=r})(Wj||(Wj={}));var Kj;(function(e){function t(o,u){return{range:o,newText:u}}e.replace=t;function r(o,u){return{range:{start:o,end:o},newText:u}}e.insert=r;function a(o){return{range:o,newText:""}}e.del=a;function s(o){const u=o;return nr.objectLiteral(u)&&nr.string(u.newText)&&Bc.is(u.range)}e.is=s})(Kj||(Kj={}));var Kct;(function(e){function t(a,s,o){const u={label:a};return s!==void 0&&(u.needsConfirmation=s),o!==void 0&&(u.description=o),u}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.string(s.label)&&(nr.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(nr.string(s.description)||s.description===void 0)}e.is=r})(Kct||(Kct={}));var Xj;(function(e){function t(r){const a=r;return nr.string(a)}e.is=t})(Xj||(Xj={}));var U4n;(function(e){function t(o,u,h){return{range:o,newText:u,annotationId:h}}e.replace=t;function r(o,u,h){return{range:{start:o,end:o},newText:u,annotationId:h}}e.insert=r;function a(o,u){return{range:o,newText:"",annotationId:u}}e.del=a;function s(o){const u=o;return Kj.is(u)&&(Kct.is(u.annotationId)||Xj.is(u.annotationId))}e.is=s})(U4n||(U4n={}));var Xct;(function(e){function t(a,s){return{textDocument:a,edits:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&tut.is(s.textDocument)&&Array.isArray(s.edits)}e.is=r})(Xct||(Xct={}));var Qct;(function(e){function t(a,s,o){let u={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(u.options=s),o!==void 0&&(u.annotationId=o),u}e.create=t;function r(a){let s=a;return s&&s.kind==="create"&&nr.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||nr.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||nr.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Qct||(Qct={}));var Zct;(function(e){function t(a,s,o,u){let h={kind:"rename",oldUri:a,newUri:s};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(h.options=o),u!==void 0&&(h.annotationId=u),h}e.create=t;function r(a){let s=a;return s&&s.kind==="rename"&&nr.string(s.oldUri)&&nr.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||nr.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||nr.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Zct||(Zct={}));var Jct;(function(e){function t(a,s,o){let u={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(u.options=s),o!==void 0&&(u.annotationId=o),u}e.create=t;function r(a){let s=a;return s&&s.kind==="delete"&&nr.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||nr.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||nr.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Jct||(Jct={}));var eut;(function(e){function t(r){let a=r;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(s=>nr.string(s.kind)?Qct.is(s)||Zct.is(s)||Jct.is(s):Xct.is(s)))}e.is=t})(eut||(eut={}));var z4n;(function(e){function t(a){return{uri:a}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)}e.is=r})(z4n||(z4n={}));var G4n;(function(e){function t(a,s){return{uri:a,version:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&nr.integer(s.version)}e.is=r})(G4n||(G4n={}));var tut;(function(e){function t(a,s){return{uri:a,version:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&(s.version===null||nr.integer(s.version))}e.is=r})(tut||(tut={}));var q4n;(function(e){function t(a,s,o,u){return{uri:a,languageId:s,version:o,text:u}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&nr.string(s.languageId)&&nr.integer(s.version)&&nr.string(s.text)}e.is=r})(q4n||(q4n={}));var nut;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const a=r;return a===e.PlainText||a===e.Markdown}e.is=t})(nut||(nut={}));var rle;(function(e){function t(r){const a=r;return nr.objectLiteral(r)&&nut.is(a.kind)&&nr.string(a.value)}e.is=t})(rle||(rle={}));var H4n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(H4n||(H4n={}));var V4n;(function(e){e.PlainText=1,e.Snippet=2})(V4n||(V4n={}));var Y4n;(function(e){e.Deprecated=1})(Y4n||(Y4n={}));var j4n;(function(e){function t(a,s,o){return{newText:a,insert:s,replace:o}}e.create=t;function r(a){const s=a;return s&&nr.string(s.newText)&&Bc.is(s.insert)&&Bc.is(s.replace)}e.is=r})(j4n||(j4n={}));var W4n;(function(e){e.asIs=1,e.adjustIndentation=2})(W4n||(W4n={}));var K4n;(function(e){function t(r){const a=r;return a&&(nr.string(a.detail)||a.detail===void 0)&&(nr.string(a.description)||a.description===void 0)}e.is=t})(K4n||(K4n={}));var X4n;(function(e){function t(r){return{label:r}}e.create=t})(X4n||(X4n={}));var Q4n;(function(e){function t(r,a){return{items:r||[],isIncomplete:!!a}}e.create=t})(Q4n||(Q4n={}));var ETe;(function(e){function t(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(a){const s=a;return nr.string(s)||nr.objectLiteral(s)&&nr.string(s.language)&&nr.string(s.value)}e.is=r})(ETe||(ETe={}));var Z4n;(function(e){function t(r){let a=r;return!!a&&nr.objectLiteral(a)&&(rle.is(a.contents)||ETe.is(a.contents)||nr.typedArray(a.contents,ETe.is))&&(r.range===void 0||Bc.is(r.range))}e.is=t})(Z4n||(Z4n={}));var J4n;(function(e){function t(r,a){return a?{label:r,documentation:a}:{label:r}}e.create=t})(J4n||(J4n={}));var e3n;(function(e){function t(r,a,...s){let o={label:r};return nr.defined(a)&&(o.documentation=a),nr.defined(s)?o.parameters=s:o.parameters=[],o}e.create=t})(e3n||(e3n={}));var t3n;(function(e){e.Text=1,e.Read=2,e.Write=3})(t3n||(t3n={}));var n3n;(function(e){function t(r,a){let s={range:r};return nr.number(a)&&(s.kind=a),s}e.create=t})(n3n||(n3n={}));var r3n;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(r3n||(r3n={}));var i3n;(function(e){e.Deprecated=1})(i3n||(i3n={}));var a3n;(function(e){function t(r,a,s,o,u){let h={name:r,kind:a,location:{uri:o,range:s}};return u&&(h.containerName=u),h}e.create=t})(a3n||(a3n={}));var s3n;(function(e){function t(r,a,s,o){return o!==void 0?{name:r,kind:a,location:{uri:s,range:o}}:{name:r,kind:a,location:{uri:s}}}e.create=t})(s3n||(s3n={}));var o3n;(function(e){function t(a,s,o,u,h,f){let p={name:a,detail:s,kind:o,range:u,selectionRange:h};return f!==void 0&&(p.children=f),p}e.create=t;function r(a){let s=a;return s&&nr.string(s.name)&&nr.number(s.kind)&&Bc.is(s.range)&&Bc.is(s.selectionRange)&&(s.detail===void 0||nr.string(s.detail))&&(s.deprecated===void 0||nr.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=r})(o3n||(o3n={}));var l3n;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(l3n||(l3n={}));var xTe;(function(e){e.Invoked=1,e.Automatic=2})(xTe||(xTe={}));var c3n;(function(e){function t(a,s,o){let u={diagnostics:a};return s!=null&&(u.only=s),o!=null&&(u.triggerKind=o),u}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.typedArray(s.diagnostics,wTe.is)&&(s.only===void 0||nr.typedArray(s.only,nr.string))&&(s.triggerKind===void 0||s.triggerKind===xTe.Invoked||s.triggerKind===xTe.Automatic)}e.is=r})(c3n||(c3n={}));var u3n;(function(e){function t(a,s,o){let u={title:a},h=!0;return typeof s=="string"?(h=!1,u.kind=s):Wj.is(s)?u.command=s:u.edit=s,h&&o!==void 0&&(u.kind=o),u}e.create=t;function r(a){let s=a;return s&&nr.string(s.title)&&(s.diagnostics===void 0||nr.typedArray(s.diagnostics,wTe.is))&&(s.kind===void 0||nr.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Wj.is(s.command))&&(s.isPreferred===void 0||nr.boolean(s.isPreferred))&&(s.edit===void 0||eut.is(s.edit))}e.is=r})(u3n||(u3n={}));var h3n;(function(e){function t(a,s){let o={range:a};return nr.defined(s)&&(o.data=s),o}e.create=t;function r(a){let s=a;return nr.defined(s)&&Bc.is(s.range)&&(nr.undefined(s.command)||Wj.is(s.command))}e.is=r})(h3n||(h3n={}));var d3n;(function(e){function t(a,s){return{tabSize:a,insertSpaces:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.uinteger(s.tabSize)&&nr.boolean(s.insertSpaces)}e.is=r})(d3n||(d3n={}));var f3n;(function(e){function t(a,s,o){return{range:a,target:s,data:o}}e.create=t;function r(a){let s=a;return nr.defined(s)&&Bc.is(s.range)&&(nr.undefined(s.target)||nr.string(s.target))}e.is=r})(f3n||(f3n={}));var p3n;(function(e){function t(a,s){return{range:a,parent:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=r})(p3n||(p3n={}));var g3n;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(g3n||(g3n={}));var m3n;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(m3n||(m3n={}));var b3n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=t})(b3n||(b3n={}));var y3n;(function(e){function t(a,s){return{range:a,text:s}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&nr.string(s.text)}e.is=r})(y3n||(y3n={}));var v3n;(function(e){function t(a,s,o){return{range:a,variableName:s,caseSensitiveLookup:o}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&nr.boolean(s.caseSensitiveLookup)&&(nr.string(s.variableName)||s.variableName===void 0)}e.is=r})(v3n||(v3n={}));var _3n;(function(e){function t(a,s){return{range:a,expression:s}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&(nr.string(s.expression)||s.expression===void 0)}e.is=r})(_3n||(_3n={}));var w3n;(function(e){function t(a,s){return{frameId:a,stoppedLocation:s}}e.create=t;function r(a){const s=a;return nr.defined(s)&&Bc.is(a.stoppedLocation)}e.is=r})(w3n||(w3n={}));var rut;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(rut||(rut={}));var iut;(function(e){function t(a){return{value:a}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&(s.tooltip===void 0||nr.string(s.tooltip)||rle.is(s.tooltip))&&(s.location===void 0||_Te.is(s.location))&&(s.command===void 0||Wj.is(s.command))}e.is=r})(iut||(iut={}));var E3n;(function(e){function t(a,s,o){const u={position:a,label:s};return o!==void 0&&(u.kind=o),u}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&Pu.is(s.position)&&(nr.string(s.label)||nr.typedArray(s.label,iut.is))&&(s.kind===void 0||rut.is(s.kind))&&s.textEdits===void 0||nr.typedArray(s.textEdits,Kj.is)&&(s.tooltip===void 0||nr.string(s.tooltip)||rle.is(s.tooltip))&&(s.paddingLeft===void 0||nr.boolean(s.paddingLeft))&&(s.paddingRight===void 0||nr.boolean(s.paddingRight))}e.is=r})(E3n||(E3n={}));var x3n;(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(x3n||(x3n={}));var S3n;(function(e){function t(r,a,s,o){return{insertText:r,filterText:a,range:s,command:o}}e.create=t})(S3n||(S3n={}));var T3n;(function(e){function t(r){return{items:r}}e.create=t})(T3n||(T3n={}));var C3n;(function(e){e.Invoked=0,e.Automatic=1})(C3n||(C3n={}));var A3n;(function(e){function t(r,a){return{range:r,text:a}}e.create=t})(A3n||(A3n={}));var k3n;(function(e){function t(r,a){return{triggerKind:r,selectedCompletionInfo:a}}e.create=t})(k3n||(k3n={}));var R3n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&Yct.is(a.uri)&&nr.string(a.name)}e.is=t})(R3n||(R3n={}));var I3n;(function(e){function t(o,u,h,f){return new QGi(o,u,h,f)}e.create=t;function r(o){let u=o;return!!(nr.defined(u)&&nr.string(u.uri)&&(nr.undefined(u.languageId)||nr.string(u.languageId))&&nr.uinteger(u.lineCount)&&nr.func(u.getText)&&nr.func(u.positionAt)&&nr.func(u.offsetAt))}e.is=r;function a(o,u){let h=o.getText(),f=s(u,(m,b)=>{let _=m.range.start.line-b.range.start.line;return _===0?m.range.start.character-b.range.start.character:_}),p=h.length;for(let m=f.length-1;m>=0;m--){let b=f[m],_=o.offsetAt(b.range.start),w=o.offsetAt(b.range.end);if(w<=p)h=h.substring(0,_)+b.newText+h.substring(w,h.length);else throw new Error("Overlapping edit");p=_}return h}e.applyEdits=a;function s(o,u){if(o.length<=1)return o;const h=o.length/2|0,f=o.slice(0,h),p=o.slice(h);s(f,u),s(p,u);let m=0,b=0,_=0;for(;m<f.length&&b<p.length;)u(f[m],p[b])<=0?o[_++]=f[m++]:o[_++]=p[b++];for(;m<f.length;)o[_++]=f[m++];for(;b<p.length;)o[_++]=p[b++];return o}})(I3n||(I3n={}));let QGi=class{constructor(t,r,a,s){this._uri=t,this._languageId=r,this._version=a,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),a=this.offsetAt(t.end);return this._content.substring(r,a)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,a=!0;for(let s=0;s<r.length;s++){a&&(t.push(s),a=!1);let o=r.charAt(s);a=o==="\r"||o===`
`,o==="\r"&&s+1<r.length&&r.charAt(s+1)===`
`&&s++}a&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),a=0,s=r.length;if(s===0)return Pu.create(0,t);for(;a<s;){let u=Math.floor((a+s)/2);r[u]>t?s=u:a=u+1}let o=a-1;return Pu.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let a=r[t.line],s=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(a+t.character,s),a)}get lineCount(){return this.getLineOffsets().length}};var nr;(function(e){const t=Object.prototype.toString;function r(w){return typeof w<"u"}e.defined=r;function a(w){return typeof w>"u"}e.undefined=a;function s(w){return w===!0||w===!1}e.boolean=s;function o(w){return t.call(w)==="[object String]"}e.string=o;function u(w){return t.call(w)==="[object Number]"}e.number=u;function h(w,S,C){return t.call(w)==="[object Number]"&&S<=w&&w<=C}e.numberRange=h;function f(w){return t.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}e.integer=f;function p(w){return t.call(w)==="[object Number]"&&0<=w&&w<=2147483647}e.uinteger=p;function m(w){return t.call(w)==="[object Function]"}e.func=m;function b(w){return w!==null&&typeof w=="object"}e.objectLiteral=b;function _(w,S){return Array.isArray(w)&&w.every(S)}e.typedArray=_})(nr||(nr={}));class ZGi{constructor(){this.nodeStack=[]}get current(){var t;return(t=this.nodeStack[this.nodeStack.length-1])!==null&&t!==void 0?t:this.rootNode}buildRootNode(t){return this.rootNode=new rWn(t),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(t){const r=new Amt;return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(t,r){const a=new aut(t.startOffset,t.image.length,kct(t),t.tokenType,!r);return a.grammarSource=r,a.root=this.rootNode,this.current.content.push(a),a}removeNode(t){const r=t.container;if(r){const a=r.content.indexOf(t);a>=0&&r.content.splice(a,1)}}addHiddenNodes(t){const r=[];for(const o of t){const u=new aut(o.startOffset,o.image.length,kct(o),o.tokenType,!0);u.root=this.rootNode,r.push(u)}let a=this.current,s=!1;if(a.content.length>0){a.content.push(...r);return}for(;a.container;){const o=a.container.content.indexOf(a);if(o>0){a.container.content.splice(o,0,...r),s=!0;break}a=a.container}s||this.rootNode.content.unshift(...r)}construct(t){const r=this.current;typeof t.$type=="string"&&(this.current.astNode=t),t.$cstNode=r;const a=this.nodeStack.pop();(a==null?void 0:a.content.length)===0&&this.removeNode(a)}}class nWn{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var t,r;const a=typeof((t=this._astNode)===null||t===void 0?void 0:t.$type)=="string"?this._astNode:(r=this.container)===null||r===void 0?void 0:r.astNode;if(!a)throw new Error("This node has no associated AST element");return a}set astNode(t){this._astNode=t}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}}class aut extends nWn{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(t,r,a,s,o=!1){super(),this._hidden=o,this._offset=t,this._tokenType=s,this._length=r,this._range=a}}class Amt extends nWn{constructor(){super(...arguments),this.content=new kmt(this)}get children(){return this.content}get offset(){var t,r;return(r=(t=this.firstNonHiddenNode)===null||t===void 0?void 0:t.offset)!==null&&r!==void 0?r:0}get length(){return this.end-this.offset}get end(){var t,r;return(r=(t=this.lastNonHiddenNode)===null||t===void 0?void 0:t.end)!==null&&r!==void 0?r:0}get range(){const t=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(t&&r){if(this._rangeCache===void 0){const{range:a}=t,{range:s}=r;this._rangeCache={start:a.start,end:s.end.line<a.start.line?a.start:s.end}}return this._rangeCache}else return{start:Pu.create(0,0),end:Pu.create(0,0)}}get firstNonHiddenNode(){for(const t of this.content)if(!t.hidden)return t;return this.content[0]}get lastNonHiddenNode(){for(let t=this.content.length-1;t>=0;t--){const r=this.content[t];if(!r.hidden)return r}return this.content[this.content.length-1]}}class kmt extends Array{constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,kmt.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...a){return this.addParents(a),super.splice(t,r,...a)}addParents(t){for(const r of t)r.container=this.parent}}class rWn extends Amt{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(t){super(),this._text="",this._text=t??""}}const sut=Symbol("Datatype");function Mit(e){return e.$type===sut}const N3n="​",iWn=e=>e.endsWith(N3n)?e:e+N3n;class aWn{constructor(t){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=t.parser.Lexer;const r=this.lexer.definition,a=t.LanguageMetaData.mode==="production";this.wrapper=new rqi(r,Object.assign(Object.assign({},t.parser.ParserConfig),{skipValidations:a,errorMessageProvider:t.parser.ParserErrorMessageProvider}))}alternatives(t,r){this.wrapper.wrapOr(t,r)}optional(t,r){this.wrapper.wrapOption(t,r)}many(t,r){this.wrapper.wrapMany(t,r)}atLeastOne(t,r){this.wrapper.wrapAtLeastOne(t,r)}getRule(t){return this.allRules.get(t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class JGi extends aWn{get current(){return this.stack[this.stack.length-1]}constructor(t){super(t),this.nodeBuilder=new ZGi,this.stack=[],this.assignmentMap=new Map,this.linker=t.references.Linker,this.converter=t.parser.ValueConverter,this.astReflection=t.shared.AstReflection}rule(t,r){const a=this.computeRuleType(t),s=this.wrapper.DEFINE_RULE(iWn(t.name),this.startImplementation(a,r).bind(this));return this.allRules.set(t.name,s),t.entry&&(this.mainRule=s),s}computeRuleType(t){if(!t.fragment){if(DYn(t))return sut;{const r=Kgt(t);return r??t.name}}}parse(t,r={}){this.nodeBuilder.buildRootNode(t);const a=this.lexerResult=this.lexer.tokenize(t);this.wrapper.input=a.tokens;const s=r.rule?this.allRules.get(r.rule):this.mainRule;if(!s)throw new Error(r.rule?`No rule found with name '${r.rule}'`:"No main rule available.");const o=s.call(this.wrapper,{});return this.nodeBuilder.addHiddenNodes(a.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,{value:o,lexerErrors:a.errors,lexerReport:a.report,parserErrors:this.wrapper.errors}}startImplementation(t,r){return a=>{const s=!this.isRecording()&&t!==void 0;if(s){const u={$type:t};this.stack.push(u),t===sut&&(u.value="")}let o;try{o=r(a)}catch{o=void 0}return o===void 0&&s&&(o=this.construct()),o}}extractHiddenTokens(t){const r=this.lexerResult.hidden;if(!r.length)return[];const a=t.startOffset;for(let s=0;s<r.length;s++)if(r[s].startOffset>a)return r.splice(0,s);return r.splice(0,r.length)}consume(t,r,a){const s=this.wrapper.wrapConsume(t,r);if(!this.isRecording()&&this.isValidToken(s)){const o=this.extractHiddenTokens(s);this.nodeBuilder.addHiddenNodes(o);const u=this.nodeBuilder.buildLeafNode(s,a),{assignment:h,isCrossRef:f}=this.getAssignment(a),p=this.current;if(h){const m=t$(a)?s.image:this.converter.convert(s.image,u);this.assign(h.operator,h.feature,m,u,f)}else if(Mit(p)){let m=s.image;t$(a)||(m=this.converter.convert(m,u).toString()),p.value+=m}}}isValidToken(t){return!t.isInsertedInRecovery&&!isNaN(t.startOffset)&&typeof t.endOffset=="number"&&!isNaN(t.endOffset)}subrule(t,r,a,s,o){let u;!this.isRecording()&&!a&&(u=this.nodeBuilder.buildCompositeNode(s));const h=this.wrapper.wrapSubrule(t,r,o);!this.isRecording()&&u&&u.length>0&&this.performSubruleAssignment(h,s,u)}performSubruleAssignment(t,r,a){const{assignment:s,isCrossRef:o}=this.getAssignment(r);if(s)this.assign(s.operator,s.feature,t,a,o);else if(!s){const u=this.current;if(Mit(u))u.value+=t.toString();else if(typeof t=="object"&&t){const f=this.assignWithoutOverride(t,u);this.stack.pop(),this.stack.push(f)}}}action(t,r){if(!this.isRecording()){let a=this.current;if(r.feature&&r.operator){a=this.construct(),this.nodeBuilder.removeNode(a.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(a.$cstNode);const o={$type:t};this.stack.push(o),this.assign(r.operator,r.feature,a,a.$cstNode,!1)}else a.$type=t}}construct(){if(this.isRecording())return;const t=this.current;return tDi(t),this.nodeBuilder.construct(t),this.stack.pop(),Mit(t)?this.converter.convert(t.value,t.$cstNode):(nDi(this.astReflection,t),t)}getAssignment(t){if(!this.assignmentMap.has(t)){const r=wke(t,e$);this.assignmentMap.set(t,{assignment:r,isCrossRef:r?Vgt(r.terminal):!1})}return this.assignmentMap.get(t)}assign(t,r,a,s,o){const u=this.current;let h;switch(o&&typeof a=="string"?h=this.linker.buildReference(u,r,s,a):h=a,t){case"=":{u[r]=h;break}case"?=":{u[r]=!0;break}case"+=":Array.isArray(u[r])||(u[r]=[]),u[r].push(h)}}assignWithoutOverride(t,r){for(const[s,o]of Object.entries(r)){const u=t[s];u===void 0?t[s]=o:Array.isArray(u)&&Array.isArray(o)&&(o.push(...u),t[s]=o)}const a=t.$cstNode;return a&&(a.astNode=void 0,t.$cstNode=void 0),t}get definitionErrors(){return this.wrapper.definitionErrors}}class eqi{buildMismatchTokenMessage(t){return PV.buildMismatchTokenMessage(t)}buildNotAllInputParsedMessage(t){return PV.buildNotAllInputParsedMessage(t)}buildNoViableAltMessage(t){return PV.buildNoViableAltMessage(t)}buildEarlyExitMessage(t){return PV.buildEarlyExitMessage(t)}}class sWn extends eqi{buildMismatchTokenMessage({expected:t,actual:r}){return`Expecting ${t.LABEL?"`"+t.LABEL+"`":t.name.endsWith(":KW")?`keyword '${t.name.substring(0,t.name.length-3)}'`:`token of type '${t.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:t}){return`Expecting end of file but found \`${t.image}\`.`}}class tqi extends aWn{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(t){this.resetState();const r=this.lexer.tokenize(t,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(t,r){const a=this.wrapper.DEFINE_RULE(iWn(t.name),this.startImplementation(r).bind(this));return this.allRules.set(t.name,a),t.entry&&(this.mainRule=a),a}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(t){return r=>{const a=this.keepStackSize();try{t(r)}finally{this.resetStackSize(a)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const t=this.elementStack.length;return this.stackSize=t,t}resetStackSize(t){this.removeUnexpectedElements(),this.stackSize=t}consume(t,r,a){this.wrapper.wrapConsume(t,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,a],this.nextTokenIndex=this.currIdx+1)}subrule(t,r,a,s,o){this.before(s),this.wrapper.wrapSubrule(t,r,o),this.after(s)}before(t){this.isRecording()||this.elementStack.push(t)}after(t){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(t);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}}const nqi={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new sWn};class rqi extends uGi{constructor(t,r){const a=r&&"maxLookahead"in r;super(t,Object.assign(Object.assign(Object.assign({},nqi),{lookaheadStrategy:a?new wmt({maxLookahead:r.maxLookahead}):new NGi({logging:r.skipValidations?()=>{}:void 0})}),r))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(t,r){return this.RULE(t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(t,r){return this.consume(t,r)}wrapSubrule(t,r,a){return this.subrule(t,r,{ARGS:[a]})}wrapOr(t,r){this.or(t,r)}wrapOption(t,r){this.option(t,r)}wrapMany(t,r){this.many(t,r)}wrapAtLeastOne(t,r){this.atLeastOne(t,r)}}function oWn(e,t,r){return iqi({parser:t,tokens:r,ruleNames:new Map},e),t}function iqi(e,t){const r=RYn(t,!1),a=wm(t.rules).filter(AS).filter(s=>r.has(s));for(const s of a){const o=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(s,a$(o,s.definition))}}function a$(e,t,r=!1){let a;if(t$(t))a=hqi(e,t);else if(_ke(t))a=aqi(e,t);else if(e$(t))a=a$(e,t.terminal);else if(Vgt(t))a=lWn(e,t);else if(n$(t))a=sqi(e,t);else if(xYn(t))a=lqi(e,t);else if(SYn(t))a=cqi(e,t);else if(Ygt(t))a=uqi(e,t);else if(jLi(t)){const s=e.consume++;a=()=>e.parser.consume(s,p9,t)}else throw new vYn(t.$cstNode,`Unexpected element type: ${t.$type}`);return cWn(e,r?void 0:STe(t),a,t.cardinality)}function aqi(e,t){const r=Xgt(t);return()=>e.parser.action(r,t)}function sqi(e,t){const r=t.rule.ref;if(AS(r)){const a=e.subrule++,s=r.fragment,o=t.arguments.length>0?oqi(r,t.arguments):()=>({});return u=>e.parser.subrule(a,uWn(e,r),s,t,o(u))}else if(G$(r)){const a=e.consume++,s=out(e,r.name);return()=>e.parser.consume(a,s,t)}else if(r)Dce();else throw new vYn(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function oqi(e,t){const r=t.map(a=>v7(a.value));return a=>{const s={};for(let o=0;o<r.length;o++){const u=e.parameters[o],h=r[o];s[u.name]=h(a)}return s}}function v7(e){if(zLi(e)){const t=v7(e.left),r=v7(e.right);return a=>t(a)||r(a)}else if(ULi(e)){const t=v7(e.left),r=v7(e.right);return a=>t(a)&&r(a)}else if(GLi(e)){const t=v7(e.value);return r=>!t(r)}else if(qLi(e)){const t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if($Li(e)){const t=!!e.true;return()=>t}Dce()}function lqi(e,t){if(t.elements.length===1)return a$(e,t.elements[0]);{const r=[];for(const s of t.elements){const o={ALT:a$(e,s,!0)},u=STe(s);u&&(o.GATE=v7(u)),r.push(o)}const a=e.or++;return s=>e.parser.alternatives(a,r.map(o=>{const u={ALT:()=>o.ALT(s)},h=o.GATE;return h&&(u.GATE=()=>h(s)),u}))}}function cqi(e,t){if(t.elements.length===1)return a$(e,t.elements[0]);const r=[];for(const h of t.elements){const f={ALT:a$(e,h,!0)},p=STe(h);p&&(f.GATE=v7(p)),r.push(f)}const a=e.or++,s=(h,f)=>{const p=f.getRuleStack().join("-");return`uGroup_${h}_${p}`},o=h=>e.parser.alternatives(a,r.map((f,p)=>{const m={ALT:()=>!0},b=e.parser;m.ALT=()=>{if(f.ALT(h),!b.isRecording()){const w=s(a,b);b.unorderedGroups.get(w)||b.unorderedGroups.set(w,[]);const S=b.unorderedGroups.get(w);typeof(S==null?void 0:S[p])>"u"&&(S[p]=!0)}};const _=f.GATE;return _?m.GATE=()=>_(h):m.GATE=()=>{const w=b.unorderedGroups.get(s(a,b));return!(w!=null&&w[p])},m})),u=cWn(e,STe(t),o,"*");return h=>{u(h),e.parser.isRecording()||e.parser.unorderedGroups.delete(s(a,e.parser))}}function uqi(e,t){const r=t.elements.map(a=>a$(e,a));return a=>r.forEach(s=>s(a))}function STe(e){if(Ygt(e))return e.guardCondition}function lWn(e,t,r=t.terminal){if(r)if(n$(r)&&AS(r.rule.ref)){const a=r.rule.ref,s=e.subrule++;return o=>e.parser.subrule(s,uWn(e,a),!1,t,o)}else if(n$(r)&&G$(r.rule.ref)){const a=e.consume++,s=out(e,r.rule.ref.name);return()=>e.parser.consume(a,s,t)}else if(t$(r)){const a=e.consume++,s=out(e,r.value);return()=>e.parser.consume(a,s,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const a=OYn(t.type.ref),s=a==null?void 0:a.terminal;if(!s)throw new Error("Could not find name assignment for type: "+Xgt(t.type.ref));return lWn(e,t,s)}}function hqi(e,t){const r=e.consume++,a=e.tokens[t.value];if(!a)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,a,t)}function cWn(e,t,r,a){const s=t&&v7(t);if(!a)if(s){const o=e.or++;return u=>e.parser.alternatives(o,[{ALT:()=>r(u),GATE:()=>s(u)},{ALT:C4n(),GATE:()=>!s(u)}])}else return r;if(a==="*"){const o=e.many++;return u=>e.parser.many(o,{DEF:()=>r(u),GATE:s?()=>s(u):void 0})}else if(a==="+"){const o=e.many++;if(s){const u=e.or++;return h=>e.parser.alternatives(u,[{ALT:()=>e.parser.atLeastOne(o,{DEF:()=>r(h)}),GATE:()=>s(h)},{ALT:C4n(),GATE:()=>!s(h)}])}else return u=>e.parser.atLeastOne(o,{DEF:()=>r(u)})}else if(a==="?"){const o=e.optional++;return u=>e.parser.optional(o,{DEF:()=>r(u),GATE:s?()=>s(u):void 0})}else Dce()}function uWn(e,t){const r=dqi(e,t),a=e.parser.getRule(r);if(!a)throw new Error(`Rule "${r}" not found."`);return a}function dqi(e,t){if(AS(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,a=r.$container,s=t.$type;for(;!AS(a);)(Ygt(a)||xYn(a)||SYn(a))&&(s=a.elements.indexOf(r).toString()+":"+s),r=a,a=a.$container;return s=a.name+":"+s,e.ruleNames.set(t,s),s}}function out(e,t){const r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}function fqi(e){const t=e.Grammar,r=e.parser.Lexer,a=new tqi(e);return oWn(t,a,r.definition),a.finalize(),a}function pqi(e){const t=gqi(e);return t.finalize(),t}function gqi(e){const t=e.Grammar,r=e.parser.Lexer,a=new JGi(e);return oWn(t,a,r.definition)}class hWn{constructor(){this.diagnostics=[]}buildTokens(t,r){const a=wm(RYn(t,!1)),s=this.buildTerminalTokens(a),o=this.buildKeywordTokens(a,s,r);return s.forEach(u=>{const h=u.PATTERN;typeof h=="object"&&h&&"test"in h&&Ict(h)?o.unshift(u):o.push(u)}),o}flushLexingReport(t){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const t=[...this.diagnostics];return this.diagnostics=[],t}buildTerminalTokens(t){return t.filter(G$).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(t){const r=Qgt(t),a=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,s={name:t.name,PATTERN:a};return typeof a=="function"&&(s.LINE_BREAKS=!0),t.hidden&&(s.GROUP=Ict(r)?J2.SKIPPED:"hidden"),s}requiresCustomPattern(t){return t.flags.includes("u")||t.flags.includes("s")?!0:!!(t.source.includes("?<=")||t.source.includes("?<!"))}regexPatternFunction(t){const r=new RegExp(t,t.flags+"y");return(a,s)=>(r.lastIndex=s,r.exec(a))}buildKeywordTokens(t,r,a){return t.filter(AS).flatMap(s=>Mce(s).filter(t$)).distinct(s=>s.value).toArray().sort((s,o)=>o.value.length-s.value.length).map(s=>this.buildKeywordToken(s,r,!!(a!=null&&a.caseInsensitive)))}buildKeywordToken(t,r,a){const s=this.buildKeywordPattern(t,a),o={name:t.value,PATTERN:s,LONGER_ALT:this.findLongerAlt(t,r)};return typeof s=="function"&&(o.LINE_BREAKS=!0),o}buildKeywordPattern(t,r){return r?new RegExp(hDi(t.value)):t.value}findLongerAlt(t,r){return r.reduce((a,s)=>{const o=s==null?void 0:s.PATTERN;return o!=null&&o.source&&dDi("^"+o.source+"$",t.value)&&a.push(s),a},[])}}class dWn{convert(t,r){let a=r.grammarSource;if(Vgt(a)&&(a=mDi(a)),n$(a)){const s=a.rule.ref;if(!s)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(s,t,r)}return t}runConverter(t,r,a){var s;switch(t.name.toUpperCase()){case"INT":return l7.convertInt(r);case"STRING":return l7.convertString(r);case"ID":return l7.convertID(r)}switch((s=xDi(t))===null||s===void 0?void 0:s.toLowerCase()){case"number":return l7.convertNumber(r);case"boolean":return l7.convertBoolean(r);case"bigint":return l7.convertBigint(r);case"date":return l7.convertDate(r);default:return r}}}var l7;(function(e){function t(p){let m="";for(let b=1;b<p.length-1;b++){const _=p.charAt(b);if(_==="\\"){const w=p.charAt(++b);m+=r(w)}else m+=_}return m}e.convertString=t;function r(p){switch(p){case"b":return"\b";case"f":return"\f";case"n":return`
`;case"r":return"\r";case"t":return"	";case"v":return"\v";case"0":return"\0";default:return p}}function a(p){return p.charAt(0)==="^"?p.substring(1):p}e.convertID=a;function s(p){return parseInt(p)}e.convertInt=s;function o(p){return BigInt(p)}e.convertBigint=o;function u(p){return new Date(p)}e.convertDate=u;function h(p){return Number(p)}e.convertNumber=h;function f(p){return p.toLowerCase()==="true"}e.convertBoolean=f})(l7||(l7={}));var ile={},qke={};Object.defineProperty(qke,"__esModule",{value:!0});let lut;function cut(){if(lut===void 0)throw new Error("No runtime abstraction layer installed");return lut}(function(e){function t(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");lut=r}e.install=t})(cut||(cut={}));qke.default=cut;var _b={};Object.defineProperty(_b,"__esModule",{value:!0});_b.stringArray=_b.array=_b.func=_b.error=_b.number=_b.string=_b.boolean=void 0;function mqi(e){return e===!0||e===!1}_b.boolean=mqi;function fWn(e){return typeof e=="string"||e instanceof String}_b.string=fWn;function bqi(e){return typeof e=="number"||e instanceof Number}_b.number=bqi;function yqi(e){return e instanceof Error}_b.error=yqi;function vqi(e){return typeof e=="function"}_b.func=vqi;function pWn(e){return Array.isArray(e)}_b.array=pWn;function _qi(e){return pWn(e)&&e.every(t=>fWn(t))}_b.stringArray=_qi;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var gWn=Qj.Emitter=Qj.Event=void 0;const wqi=qke;var O3n;(function(e){const t={dispose(){}};e.None=function(){return t}})(O3n||(Qj.Event=O3n={}));class Eqi{add(t,r=null,a){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(r),Array.isArray(a)&&a.push({dispose:()=>this.remove(t,r)})}remove(t,r=null){if(!this._callbacks)return;let a=!1;for(let s=0,o=this._callbacks.length;s<o;s++)if(this._callbacks[s]===t)if(this._contexts[s]===r){this._callbacks.splice(s,1),this._contexts.splice(s,1);return}else a=!0;if(a)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];const r=[],a=this._callbacks.slice(0),s=this._contexts.slice(0);for(let o=0,u=a.length;o<u;o++)try{r.push(a[o].apply(s[o],t))}catch(h){(0,wqi.default)().console.error(h)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class Hke{constructor(t){this._options=t}get event(){return this._event||(this._event=(t,r,a)=>{this._callbacks||(this._callbacks=new Eqi),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);const s={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,r),s.dispose=Hke._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(a)&&a.push(s),s}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}gWn=Qj.Emitter=Hke;Hke._noop=function(){};var Nf;Object.defineProperty(ile,"__esModule",{value:!0});var Rmt=ile.CancellationTokenSource=Nf=ile.CancellationToken=void 0;const xqi=qke,Sqi=_b,uut=Qj;var TTe;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uut.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uut.Event.None});function t(r){const a=r;return a&&(a===e.None||a===e.Cancelled||Sqi.boolean(a.isCancellationRequested)&&!!a.onCancellationRequested)}e.is=t})(TTe||(Nf=ile.CancellationToken=TTe={}));const Tqi=Object.freeze(function(e,t){const r=(0,xqi.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}});class L3n{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Tqi:(this._emitter||(this._emitter=new uut.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class Cqi{get token(){return this._token||(this._token=new L3n),this._token}cancel(){this._token?this._token.cancel():this._token=TTe.Cancelled}dispose(){this._token?this._token instanceof L3n&&this._token.dispose():this._token=TTe.None}}Rmt=ile.CancellationTokenSource=Cqi;function Aqi(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}let Uxe=0,kqi=10;function Rqi(){return Uxe=performance.now(),new Rmt}const CTe=Symbol("OperationCancelled");function Vke(e){return e===CTe}async function Ow(e){if(e===Nf.None)return;const t=performance.now();if(t-Uxe>=kqi&&(Uxe=t,await Aqi(),Uxe=performance.now()),e.isCancellationRequested)throw CTe}class Imt{constructor(){this.promise=new Promise((t,r)=>{this.resolve=a=>(t(a),this),this.reject=a=>(r(a),this)})}}class ale{constructor(t,r,a,s){this._uri=t,this._languageId=r,this._version=a,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const r=this.offsetAt(t.start),a=this.offsetAt(t.end);return this._content.substring(r,a)}return this._content}update(t,r){for(const a of t)if(ale.isIncremental(a)){const s=bWn(a.range),o=this.offsetAt(s.start),u=this.offsetAt(s.end);this._content=this._content.substring(0,o)+a.text+this._content.substring(u,this._content.length);const h=Math.max(s.start.line,0),f=Math.max(s.end.line,0);let p=this._lineOffsets;const m=D3n(a.text,!1,o);if(f-h===m.length)for(let _=0,w=m.length;_<w;_++)p[_+h+1]=m[_];else m.length<1e4?p.splice(h+1,f-h,...m):this._lineOffsets=p=p.slice(0,h+1).concat(m,p.slice(f+1));const b=a.text.length-(u-o);if(b!==0)for(let _=h+1+m.length,w=p.length;_<w;_++)p[_]=p[_]+b}else if(ale.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=D3n(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);const r=this.getLineOffsets();let a=0,s=r.length;if(s===0)return{line:0,character:t};for(;a<s;){const u=Math.floor((a+s)/2);r[u]>t?s=u:a=u+1}const o=a-1;return t=this.ensureBeforeEOL(t,r[o]),{line:o,character:t-r[o]}}offsetAt(t){const r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;const a=r[t.line];if(t.character<=0)return a;const s=t.line+1<r.length?r[t.line+1]:this._content.length,o=Math.min(a+t.character,s);return this.ensureBeforeEOL(o,a)}ensureBeforeEOL(t,r){for(;t>r&&mWn(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}}var hut;(function(e){function t(s,o,u,h){return new ale(s,o,u,h)}e.create=t;function r(s,o,u){if(s instanceof ale)return s.update(o,u),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function a(s,o){const u=s.getText(),h=dut(o.map(Iqi),(m,b)=>{const _=m.range.start.line-b.range.start.line;return _===0?m.range.start.character-b.range.start.character:_});let f=0;const p=[];for(const m of h){const b=s.offsetAt(m.range.start);if(b<f)throw new Error("Overlapping edit");b>f&&p.push(u.substring(f,b)),m.newText.length&&p.push(m.newText),f=s.offsetAt(m.range.end)}return p.push(u.substr(f)),p.join("")}e.applyEdits=a})(hut||(hut={}));function dut(e,t){if(e.length<=1)return e;const r=e.length/2|0,a=e.slice(0,r),s=e.slice(r);dut(a,t),dut(s,t);let o=0,u=0,h=0;for(;o<a.length&&u<s.length;)t(a[o],s[u])<=0?e[h++]=a[o++]:e[h++]=s[u++];for(;o<a.length;)e[h++]=a[o++];for(;u<s.length;)e[h++]=s[u++];return e}function D3n(e,t,r=0){const a=t?[r]:[];for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);mWn(o)&&(o===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,a.push(r+s+1))}return a}function mWn(e){return e===13||e===10}function bWn(e){const t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Iqi(e){const t=bWn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var yWn;(()=>{var e={470:s=>{function o(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function u(f,p){for(var m,b="",_=0,w=-1,S=0,C=0;C<=f.length;++C){if(C<f.length)m=f.charCodeAt(C);else{if(m===47)break;m=47}if(m===47){if(!(w===C-1||S===1))if(w!==C-1&&S===2){if(b.length<2||_!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var A=b.lastIndexOf("/");if(A!==b.length-1){A===-1?(b="",_=0):_=(b=b.slice(0,A)).length-1-b.lastIndexOf("/"),w=C,S=0;continue}}else if(b.length===2||b.length===1){b="",_=0,w=C,S=0;continue}}p&&(b.length>0?b+="/..":b="..",_=2)}else b.length>0?b+="/"+f.slice(w+1,C):b=f.slice(w+1,C),_=C-w-1;w=C,S=0}else m===46&&S!==-1?++S:S=-1}return b}var h={resolve:function(){for(var f,p="",m=!1,b=arguments.length-1;b>=-1&&!m;b--){var _;b>=0?_=arguments[b]:(f===void 0&&(f=process.cwd()),_=f),o(_),_.length!==0&&(p=_+"/"+p,m=_.charCodeAt(0)===47)}return p=u(p,!m),m?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(f){if(o(f),f.length===0)return".";var p=f.charCodeAt(0)===47,m=f.charCodeAt(f.length-1)===47;return(f=u(f,!p)).length!==0||p||(f="."),f.length>0&&m&&(f+="/"),p?"/"+f:f},isAbsolute:function(f){return o(f),f.length>0&&f.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var f,p=0;p<arguments.length;++p){var m=arguments[p];o(m),m.length>0&&(f===void 0?f=m:f+="/"+m)}return f===void 0?".":h.normalize(f)},relative:function(f,p){if(o(f),o(p),f===p||(f=h.resolve(f))===(p=h.resolve(p)))return"";for(var m=1;m<f.length&&f.charCodeAt(m)===47;++m);for(var b=f.length,_=b-m,w=1;w<p.length&&p.charCodeAt(w)===47;++w);for(var S=p.length-w,C=_<S?_:S,A=-1,k=0;k<=C;++k){if(k===C){if(S>C){if(p.charCodeAt(w+k)===47)return p.slice(w+k+1);if(k===0)return p.slice(w+k)}else _>C&&(f.charCodeAt(m+k)===47?A=k:k===0&&(A=0));break}var I=f.charCodeAt(m+k);if(I!==p.charCodeAt(w+k))break;I===47&&(A=k)}var N="";for(k=m+A+1;k<=b;++k)k!==b&&f.charCodeAt(k)!==47||(N.length===0?N+="..":N+="/..");return N.length>0?N+p.slice(w+A):(w+=A,p.charCodeAt(w)===47&&++w,p.slice(w))},_makeLong:function(f){return f},dirname:function(f){if(o(f),f.length===0)return".";for(var p=f.charCodeAt(0),m=p===47,b=-1,_=!0,w=f.length-1;w>=1;--w)if((p=f.charCodeAt(w))===47){if(!_){b=w;break}}else _=!1;return b===-1?m?"/":".":m&&b===1?"//":f.slice(0,b)},basename:function(f,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');o(f);var m,b=0,_=-1,w=!0;if(p!==void 0&&p.length>0&&p.length<=f.length){if(p.length===f.length&&p===f)return"";var S=p.length-1,C=-1;for(m=f.length-1;m>=0;--m){var A=f.charCodeAt(m);if(A===47){if(!w){b=m+1;break}}else C===-1&&(w=!1,C=m+1),S>=0&&(A===p.charCodeAt(S)?--S==-1&&(_=m):(S=-1,_=C))}return b===_?_=C:_===-1&&(_=f.length),f.slice(b,_)}for(m=f.length-1;m>=0;--m)if(f.charCodeAt(m)===47){if(!w){b=m+1;break}}else _===-1&&(w=!1,_=m+1);return _===-1?"":f.slice(b,_)},extname:function(f){o(f);for(var p=-1,m=0,b=-1,_=!0,w=0,S=f.length-1;S>=0;--S){var C=f.charCodeAt(S);if(C!==47)b===-1&&(_=!1,b=S+1),C===46?p===-1?p=S:w!==1&&(w=1):p!==-1&&(w=-1);else if(!_){m=S+1;break}}return p===-1||b===-1||w===0||w===1&&p===b-1&&p===m+1?"":f.slice(p,b)},format:function(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return function(p,m){var b=m.dir||m.root,_=m.base||(m.name||"")+(m.ext||"");return b?b===m.root?b+_:b+"/"+_:_}(0,f)},parse:function(f){o(f);var p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;var m,b=f.charCodeAt(0),_=b===47;_?(p.root="/",m=1):m=0;for(var w=-1,S=0,C=-1,A=!0,k=f.length-1,I=0;k>=m;--k)if((b=f.charCodeAt(k))!==47)C===-1&&(A=!1,C=k+1),b===46?w===-1?w=k:I!==1&&(I=1):w!==-1&&(I=-1);else if(!A){S=k+1;break}return w===-1||C===-1||I===0||I===1&&w===C-1&&w===S+1?C!==-1&&(p.base=p.name=S===0&&_?f.slice(1,C):f.slice(S,C)):(S===0&&_?(p.name=f.slice(1,w),p.base=f.slice(1,C)):(p.name=f.slice(S,w),p.base=f.slice(S,C)),p.ext=f.slice(w,C)),S>0?p.dir=f.slice(0,S-1):_&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};h.posix=h,s.exports=h}},t={};function r(s){var o=t[s];if(o!==void 0)return o.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,r),u.exports}r.d=(s,o)=>{for(var u in o)r.o(o,u)&&!r.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:o[u]})},r.o=(s,o)=>Object.prototype.hasOwnProperty.call(s,o),r.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};(()=>{let s;r.r(a),r.d(a,{URI:()=>_,Utils:()=>G}),typeof process=="object"?s=process.platform==="win32":typeof navigator=="object"&&(s=navigator.userAgent.indexOf("Windows")>=0);const o=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//;function f(B,Z){if(!B.scheme&&Z)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${B.authority}", path: "${B.path}", query: "${B.query}", fragment: "${B.fragment}"}`);if(B.scheme&&!o.test(B.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(B.path){if(B.authority){if(!u.test(B.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(B.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const p="",m="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class _{constructor(Z,z,Y,W,Q,V=!1){Gi(this,"scheme");Gi(this,"authority");Gi(this,"path");Gi(this,"query");Gi(this,"fragment");typeof Z=="object"?(this.scheme=Z.scheme||p,this.authority=Z.authority||p,this.path=Z.path||p,this.query=Z.query||p,this.fragment=Z.fragment||p):(this.scheme=function(j,ee){return j||ee?j:"file"}(Z,V),this.authority=z||p,this.path=function(j,ee){switch(j){case"https":case"http":case"file":ee?ee[0]!==m&&(ee=m+ee):ee=m}return ee}(this.scheme,Y||p),this.query=W||p,this.fragment=Q||p,f(this,V))}static isUri(Z){return Z instanceof _||!!Z&&typeof Z.authority=="string"&&typeof Z.fragment=="string"&&typeof Z.path=="string"&&typeof Z.query=="string"&&typeof Z.scheme=="string"&&typeof Z.fsPath=="string"&&typeof Z.with=="function"&&typeof Z.toString=="function"}get fsPath(){return I(this)}with(Z){if(!Z)return this;let{scheme:z,authority:Y,path:W,query:Q,fragment:V}=Z;return z===void 0?z=this.scheme:z===null&&(z=p),Y===void 0?Y=this.authority:Y===null&&(Y=p),W===void 0?W=this.path:W===null&&(W=p),Q===void 0?Q=this.query:Q===null&&(Q=p),V===void 0?V=this.fragment:V===null&&(V=p),z===this.scheme&&Y===this.authority&&W===this.path&&Q===this.query&&V===this.fragment?this:new S(z,Y,W,Q,V)}static parse(Z,z=!1){const Y=b.exec(Z);return Y?new S(Y[2]||p,M(Y[4]||p),M(Y[5]||p),M(Y[7]||p),M(Y[9]||p),z):new S(p,p,p,p,p)}static file(Z){let z=p;if(s&&(Z=Z.replace(/\\/g,m)),Z[0]===m&&Z[1]===m){const Y=Z.indexOf(m,2);Y===-1?(z=Z.substring(2),Z=m):(z=Z.substring(2,Y),Z=Z.substring(Y)||m)}return new S("file",z,Z,p,p)}static from(Z){const z=new S(Z.scheme,Z.authority,Z.path,Z.query,Z.fragment);return f(z,!0),z}toString(Z=!1){return N(this,Z)}toJSON(){return this}static revive(Z){if(Z){if(Z instanceof _)return Z;{const z=new S(Z);return z._formatted=Z.external,z._fsPath=Z._sep===w?Z.fsPath:null,z}}return Z}}const w=s?1:void 0;class S extends _{constructor(){super(...arguments);Gi(this,"_formatted",null);Gi(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=I(this)),this._fsPath}toString(z=!1){return z?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}toJSON(){const z={$mid:1};return this._fsPath&&(z.fsPath=this._fsPath,z._sep=w),this._formatted&&(z.external=this._formatted),this.path&&(z.path=this.path),this.scheme&&(z.scheme=this.scheme),this.authority&&(z.authority=this.authority),this.query&&(z.query=this.query),this.fragment&&(z.fragment=this.fragment),z}}const C={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(B,Z,z){let Y,W=-1;for(let Q=0;Q<B.length;Q++){const V=B.charCodeAt(Q);if(V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===45||V===46||V===95||V===126||Z&&V===47||z&&V===91||z&&V===93||z&&V===58)W!==-1&&(Y+=encodeURIComponent(B.substring(W,Q)),W=-1),Y!==void 0&&(Y+=B.charAt(Q));else{Y===void 0&&(Y=B.substr(0,Q));const j=C[V];j!==void 0?(W!==-1&&(Y+=encodeURIComponent(B.substring(W,Q)),W=-1),Y+=j):W===-1&&(W=Q)}}return W!==-1&&(Y+=encodeURIComponent(B.substring(W))),Y!==void 0?Y:B}function k(B){let Z;for(let z=0;z<B.length;z++){const Y=B.charCodeAt(z);Y===35||Y===63?(Z===void 0&&(Z=B.substr(0,z)),Z+=C[Y]):Z!==void 0&&(Z+=B[z])}return Z!==void 0?Z:B}function I(B,Z){let z;return z=B.authority&&B.path.length>1&&B.scheme==="file"?`//${B.authority}${B.path}`:B.path.charCodeAt(0)===47&&(B.path.charCodeAt(1)>=65&&B.path.charCodeAt(1)<=90||B.path.charCodeAt(1)>=97&&B.path.charCodeAt(1)<=122)&&B.path.charCodeAt(2)===58?B.path[1].toLowerCase()+B.path.substr(2):B.path,s&&(z=z.replace(/\//g,"\\")),z}function N(B,Z){const z=Z?k:A;let Y="",{scheme:W,authority:Q,path:V,query:j,fragment:ee}=B;if(W&&(Y+=W,Y+=":"),(Q||W==="file")&&(Y+=m,Y+=m),Q){let te=Q.indexOf("@");if(te!==-1){const ne=Q.substr(0,te);Q=Q.substr(te+1),te=ne.lastIndexOf(":"),te===-1?Y+=z(ne,!1,!1):(Y+=z(ne.substr(0,te),!1,!1),Y+=":",Y+=z(ne.substr(te+1),!1,!0)),Y+="@"}Q=Q.toLowerCase(),te=Q.lastIndexOf(":"),te===-1?Y+=z(Q,!1,!0):(Y+=z(Q.substr(0,te),!1,!0),Y+=Q.substr(te))}if(V){if(V.length>=3&&V.charCodeAt(0)===47&&V.charCodeAt(2)===58){const te=V.charCodeAt(1);te>=65&&te<=90&&(V=`/${String.fromCharCode(te+32)}:${V.substr(3)}`)}else if(V.length>=2&&V.charCodeAt(1)===58){const te=V.charCodeAt(0);te>=65&&te<=90&&(V=`${String.fromCharCode(te+32)}:${V.substr(2)}`)}Y+=z(V,!0,!1)}return j&&(Y+="?",Y+=z(j,!1,!1)),ee&&(Y+="#",Y+=Z?ee:A(ee,!1,!1)),Y}function L(B){try{return decodeURIComponent(B)}catch{return B.length>3?B.substr(0,3)+L(B.substr(3)):B}}const P=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function M(B){return B.match(P)?B.replace(P,Z=>L(Z)):B}var F=r(470);const U=F.posix||F,$="/";var G;(function(B){B.joinPath=function(Z,...z){return Z.with({path:U.join(Z.path,...z)})},B.resolvePath=function(Z,...z){let Y=Z.path,W=!1;Y[0]!==$&&(Y=$+Y,W=!0);let Q=U.resolve(Y,...z);return W&&Q[0]===$&&!Z.authority&&(Q=Q.substring(1)),Z.with({path:Q})},B.dirname=function(Z){if(Z.path.length===0||Z.path===$)return Z;let z=U.dirname(Z.path);return z.length===1&&z.charCodeAt(0)===46&&(z=""),Z.with({path:z})},B.basename=function(Z){return U.basename(Z.path)},B.extname=function(Z){return U.extname(Z.path)}})(G||(G={}))})(),yWn=a})();const{URI:s$,Utils:hie}=yWn;var m9;(function(e){e.basename=hie.basename,e.dirname=hie.dirname,e.extname=hie.extname,e.joinPath=hie.joinPath,e.resolvePath=hie.resolvePath;function t(s,o){return(s==null?void 0:s.toString())===(o==null?void 0:o.toString())}e.equals=t;function r(s,o){const u=typeof s=="string"?s:s.path,h=typeof o=="string"?o:o.path,f=u.split("/").filter(w=>w.length>0),p=h.split("/").filter(w=>w.length>0);let m=0;for(;m<f.length&&f[m]===p[m];m++);const b="../".repeat(f.length-m),_=p.slice(m).join("/");return b+_}e.relative=r;function a(s){return s$.parse(s.toString()).toString()}e.normalize=a})(m9||(m9={}));var Vd;(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(Vd||(Vd={}));class Nqi{constructor(t){this.serviceRegistry=t.ServiceRegistry,this.textDocuments=t.workspace.TextDocuments,this.fileSystemProvider=t.workspace.FileSystemProvider}async fromUri(t,r=Nf.None){const a=await this.fileSystemProvider.readFile(t);return this.createAsync(t,a,r)}fromTextDocument(t,r,a){return r=r??s$.parse(t.uri),Nf.is(a)?this.createAsync(r,t,a):this.create(r,t,a)}fromString(t,r,a){return Nf.is(a)?this.createAsync(r,t,a):this.create(r,t,a)}fromModel(t,r){return this.create(r,{$model:t})}create(t,r,a){if(typeof r=="string"){const s=this.parse(t,r,a);return this.createLangiumDocument(s,t,void 0,r)}else if("$model"in r){const s={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(s,t)}else{const s=this.parse(t,r.getText(),a);return this.createLangiumDocument(s,t,r)}}async createAsync(t,r,a){if(typeof r=="string"){const s=await this.parseAsync(t,r,a);return this.createLangiumDocument(s,t,void 0,r)}else{const s=await this.parseAsync(t,r.getText(),a);return this.createLangiumDocument(s,t,r)}}createLangiumDocument(t,r,a,s){let o;if(a)o={parseResult:t,uri:r,state:Vd.Parsed,references:[],textDocument:a};else{const u=this.createTextDocumentGetter(r,s);o={parseResult:t,uri:r,state:Vd.Parsed,references:[],get textDocument(){return u()}}}return t.value.$document=o,o}async update(t,r){var a,s;const o=(a=t.parseResult.value.$cstNode)===null||a===void 0?void 0:a.root.fullText,u=(s=this.textDocuments)===null||s===void 0?void 0:s.get(t.uri.toString()),h=u?u.getText():await this.fileSystemProvider.readFile(t.uri);if(u)Object.defineProperty(t,"textDocument",{value:u});else{const f=this.createTextDocumentGetter(t.uri,h);Object.defineProperty(t,"textDocument",{get:f})}return o!==h&&(t.parseResult=await this.parseAsync(t.uri,h,r),t.parseResult.value.$document=t),t.state=Vd.Parsed,t}parse(t,r,a){return this.serviceRegistry.getServices(t).parser.LangiumParser.parse(r,a)}parseAsync(t,r,a){return this.serviceRegistry.getServices(t).parser.AsyncParser.parse(r,a)}createTextDocumentGetter(t,r){const a=this.serviceRegistry;let s;return()=>s??(s=hut.create(t.toString(),a.getServices(t).LanguageMetaData.languageId,0,r??""))}}class Oqi{constructor(t){this.documentMap=new Map,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory,this.serviceRegistry=t.ServiceRegistry}get all(){return wm(this.documentMap.values())}addDocument(t){const r=t.uri.toString();if(this.documentMap.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentMap.set(r,t)}getDocument(t){const r=t.toString();return this.documentMap.get(r)}async getOrCreateDocument(t,r){let a=this.getDocument(t);return a||(a=await this.langiumDocumentFactory.fromUri(t,r),this.addDocument(a),a)}createDocument(t,r,a){if(a)return this.langiumDocumentFactory.fromString(r,t,a).then(s=>(this.addDocument(s),s));{const s=this.langiumDocumentFactory.fromString(r,t);return this.addDocument(s),s}}hasDocument(t){return this.documentMap.has(t.toString())}invalidateDocument(t){const r=t.toString(),a=this.documentMap.get(r);return a&&(this.serviceRegistry.getServices(t).references.Linker.unlink(a),a.state=Vd.Changed,a.precomputedScopes=void 0,a.diagnostics=void 0),a}deleteDocument(t){const r=t.toString(),a=this.documentMap.get(r);return a&&(a.state=Vd.Changed,this.documentMap.delete(r)),a}}const Pit=Symbol("ref_resolving");class Lqi{constructor(t){this.reflection=t.shared.AstReflection,this.langiumDocuments=()=>t.shared.workspace.LangiumDocuments,this.scopeProvider=t.references.ScopeProvider,this.astNodeLocator=t.workspace.AstNodeLocator}async link(t,r=Nf.None){for(const a of aY(t.parseResult.value))await Ow(r),CYn(a).forEach(s=>this.doLink(s,t))}doLink(t,r){var a;const s=t.reference;if(s._ref===void 0){s._ref=Pit;try{const o=this.getCandidate(t);if(Oxe(o))s._ref=o;else if(s._nodeDescription=o,this.langiumDocuments().hasDocument(o.documentUri)){const u=this.loadAstNode(o);s._ref=u??this.createLinkingError(t,o)}else s._ref=void 0}catch(o){console.error(`An error occurred while resolving reference to '${s.$refText}':`,o);const u=(a=o.message)!==null&&a!==void 0?a:String(o);s._ref=Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${s.$refText}': ${u}`})}r.references.push(s)}}unlink(t){for(const r of t.references)delete r._ref,delete r._nodeDescription;t.references=[]}getCandidate(t){const a=this.scopeProvider.getScope(t).getElement(t.reference.$refText);return a??this.createLinkingError(t)}buildReference(t,r,a,s){const o=this,u={$refNode:a,$refText:s,get ref(){var h;if(Eb(this._ref))return this._ref;if(RLi(this._nodeDescription)){const f=o.loadAstNode(this._nodeDescription);this._ref=f??o.createLinkingError({reference:u,container:t,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Pit;const f=Rct(t).$document,p=o.getLinkedNode({reference:u,container:t,property:r});if(p.error&&f&&f.state<Vd.ComputedScopes)return this._ref=void 0;this._ref=(h=p.node)!==null&&h!==void 0?h:p.error,this._nodeDescription=p.descr,f==null||f.references.push(this)}else if(this._ref===Pit)throw new Error(`Cyclic reference resolution detected: ${o.astNodeLocator.getAstNodePath(t)}/${r} (symbol '${s}')`);return Eb(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return Oxe(this._ref)?this._ref:void 0}};return u}getLinkedNode(t){var r;try{const a=this.getCandidate(t);if(Oxe(a))return{error:a};const s=this.loadAstNode(a);return s?{node:s,descr:a}:{descr:a,error:this.createLinkingError(t,a)}}catch(a){console.error(`An error occurred while resolving reference to '${t.reference.$refText}':`,a);const s=(r=a.message)!==null&&r!==void 0?r:String(a);return{error:Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${t.reference.$refText}': ${s}`})}}}loadAstNode(t){if(t.node)return t.node;const r=this.langiumDocuments().getDocument(t.documentUri);if(r)return this.astNodeLocator.getAstNode(r.parseResult.value,t.path)}createLinkingError(t,r){const a=Rct(t.container).$document;a&&a.state<Vd.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${a.uri}).`);const s=this.reflection.getReferenceType(t);return Object.assign(Object.assign({},t),{message:`Could not resolve reference to ${s} named '${t.reference.$refText}'.`,targetDescription:r})}}function Dqi(e){return typeof e.name=="string"}class Mqi{getName(t){if(Dqi(t))return t.name}getNameNode(t){return NYn(t.$cstNode,"name")}}class Pqi{constructor(t){this.nameProvider=t.references.NameProvider,this.index=t.shared.workspace.IndexManager,this.nodeLocator=t.workspace.AstNodeLocator}findDeclaration(t){if(t){const r=wDi(t),a=t.astNode;if(r&&a){const s=a[r.feature];if(eA(s))return s.ref;if(Array.isArray(s)){for(const o of s)if(eA(o)&&o.$refNode&&o.$refNode.offset<=t.offset&&o.$refNode.end>=t.end)return o.ref}}if(a){const s=this.nameProvider.getNameNode(a);if(s&&(s===t||OLi(t,s)))return a}}}findDeclarationNode(t){const r=this.findDeclaration(t);if(r!=null&&r.$cstNode){const a=this.nameProvider.getNameNode(r);return a??r.$cstNode}}findReferences(t,r){const a=[];if(r.includeDeclaration){const o=this.getReferenceToSelf(t);o&&a.push(o)}let s=this.index.findAllReferences(t,this.nodeLocator.getAstNodePath(t));return r.documentUri&&(s=s.filter(o=>m9.equals(o.sourceUri,r.documentUri))),a.push(...s),wm(a)}getReferenceToSelf(t){const r=this.nameProvider.getNameNode(t);if(r){const a=h9(t),s=this.nodeLocator.getAstNodePath(t);return{sourceUri:a.uri,sourcePath:s,targetUri:a.uri,targetPath:s,segment:aTe(r),local:!0}}}}class ATe{constructor(t){if(this.map=new Map,t)for(const[r,a]of t)this.add(r,a)}get size(){return Cct.sum(wm(this.map.values()).map(t=>t.length))}clear(){this.map.clear()}delete(t,r){if(r===void 0)return this.map.delete(t);{const a=this.map.get(t);if(a){const s=a.indexOf(r);if(s>=0)return a.length===1?this.map.delete(t):a.splice(s,1),!0}return!1}}get(t){var r;return(r=this.map.get(t))!==null&&r!==void 0?r:[]}has(t,r){if(r===void 0)return this.map.has(t);{const a=this.map.get(t);return a?a.indexOf(r)>=0:!1}}add(t,r){return this.map.has(t)?this.map.get(t).push(r):this.map.set(t,[r]),this}addAll(t,r){return this.map.has(t)?this.map.get(t).push(...r):this.map.set(t,Array.from(r)),this}forEach(t){this.map.forEach((r,a)=>r.forEach(s=>t(s,a,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return wm(this.map.entries()).flatMap(([t,r])=>r.map(a=>[t,a]))}keys(){return wm(this.map.keys())}values(){return wm(this.map.values()).flat()}entriesGroupedByKey(){return wm(this.map.entries())}}class M3n{get size(){return this.map.size}constructor(t){if(this.map=new Map,this.inverse=new Map,t)for(const[r,a]of t)this.set(r,a)}clear(){this.map.clear(),this.inverse.clear()}set(t,r){return this.map.set(t,r),this.inverse.set(r,t),this}get(t){return this.map.get(t)}getKey(t){return this.inverse.get(t)}delete(t){const r=this.map.get(t);return r!==void 0?(this.map.delete(t),this.inverse.delete(r),!0):!1}}class Bqi{constructor(t){this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider}async computeExports(t,r=Nf.None){return this.computeExportsForNode(t.parseResult.value,t,void 0,r)}async computeExportsForNode(t,r,a=jgt,s=Nf.None){const o=[];this.exportNode(t,o,r);for(const u of a(t))await Ow(s),this.exportNode(u,o,r);return o}exportNode(t,r,a){const s=this.nameProvider.getName(t);s&&r.push(this.descriptions.createDescription(t,s,a))}async computeLocalScopes(t,r=Nf.None){const a=t.parseResult.value,s=new ATe;for(const o of Mce(a))await Ow(r),this.processNode(o,t,s);return s}processNode(t,r,a){const s=t.$container;if(s){const o=this.nameProvider.getName(t);o&&a.add(s,this.descriptions.createDescription(t,o,r))}}}class P3n{constructor(t,r,a){var s;this.elements=t,this.outerScope=r,this.caseInsensitive=(s=a==null?void 0:a.caseInsensitive)!==null&&s!==void 0?s:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(t){const r=this.caseInsensitive?this.elements.find(a=>a.name.toLowerCase()===t.toLowerCase()):this.elements.find(a=>a.name===t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(t)}}class Fqi{constructor(t,r,a){var s;this.elements=new Map,this.caseInsensitive=(s=a==null?void 0:a.caseInsensitive)!==null&&s!==void 0?s:!1;for(const o of t){const u=this.caseInsensitive?o.name.toLowerCase():o.name;this.elements.set(u,o)}this.outerScope=r}getElement(t){const r=this.caseInsensitive?t.toLowerCase():t,a=this.elements.get(r);if(a)return a;if(this.outerScope)return this.outerScope.getElement(t)}getAllElements(){let t=wm(this.elements.values());return this.outerScope&&(t=t.concat(this.outerScope.getAllElements())),t}}class vWn{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(t){this.toDispose.push(t)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(t=>t.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class $qi extends vWn{constructor(){super(...arguments),this.cache=new Map}has(t){return this.throwIfDisposed(),this.cache.has(t)}set(t,r){this.throwIfDisposed(),this.cache.set(t,r)}get(t,r){if(this.throwIfDisposed(),this.cache.has(t))return this.cache.get(t);if(r){const a=r();return this.cache.set(t,a),a}else return}delete(t){return this.throwIfDisposed(),this.cache.delete(t)}clear(){this.throwIfDisposed(),this.cache.clear()}}class Uqi extends vWn{constructor(t){super(),this.cache=new Map,this.converter=t??(r=>r)}has(t,r){return this.throwIfDisposed(),this.cacheForContext(t).has(r)}set(t,r,a){this.throwIfDisposed(),this.cacheForContext(t).set(r,a)}get(t,r,a){this.throwIfDisposed();const s=this.cacheForContext(t);if(s.has(r))return s.get(r);if(a){const o=a();return s.set(r,o),o}else return}delete(t,r){return this.throwIfDisposed(),this.cacheForContext(t).delete(r)}clear(t){if(this.throwIfDisposed(),t){const r=this.converter(t);this.cache.delete(r)}else this.cache.clear()}cacheForContext(t){const r=this.converter(t);let a=this.cache.get(r);return a||(a=new Map,this.cache.set(r,a)),a}}class zqi extends $qi{constructor(t,r){super(),r?(this.toDispose.push(t.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(t.workspace.DocumentBuilder.onUpdate((a,s)=>{s.length>0&&this.clear()}))):this.toDispose.push(t.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class Gqi{constructor(t){this.reflection=t.shared.AstReflection,this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider,this.indexManager=t.shared.workspace.IndexManager,this.globalScopeCache=new zqi(t.shared)}getScope(t){const r=[],a=this.reflection.getReferenceType(t),s=h9(t.container).precomputedScopes;if(s){let u=t.container;do{const h=s.get(u);h.length>0&&r.push(wm(h).filter(f=>this.reflection.isSubtype(f.type,a))),u=u.$container}while(u)}let o=this.getGlobalScope(a,t);for(let u=r.length-1;u>=0;u--)o=this.createScope(r[u],o);return o}createScope(t,r,a){return new P3n(wm(t),r,a)}createScopeForNodes(t,r,a){const s=wm(t).map(o=>{const u=this.nameProvider.getName(o);if(u)return this.descriptions.createDescription(o,u)}).nonNullable();return new P3n(s,r,a)}getGlobalScope(t,r){return this.globalScopeCache.get(t,()=>new Fqi(this.indexManager.allElements(t)))}}function qqi(e){return typeof e.$comment=="string"}function B3n(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}class Hqi{constructor(t){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=t.shared.workspace.LangiumDocuments,this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider,this.commentProvider=t.documentation.CommentProvider}serialize(t,r){const a=r??{},s=r==null?void 0:r.replacer,o=(h,f)=>this.replacer(h,f,a),u=s?(h,f)=>s(h,f,o):o;try{return this.currentDocument=h9(t),JSON.stringify(t,u,r==null?void 0:r.space)}finally{this.currentDocument=void 0}}deserialize(t,r){const a=r??{},s=JSON.parse(t);return this.linkNode(s,s,a),s}replacer(t,r,{refText:a,sourceText:s,textRegions:o,comments:u,uriConverter:h}){var f,p,m,b;if(!this.ignoreProperties.has(t))if(eA(r)){const _=r.ref,w=a?r.$refText:void 0;if(_){const S=h9(_);let C="";this.currentDocument&&this.currentDocument!==S&&(h?C=h(S.uri,r):C=S.uri.toString());const A=this.astNodeLocator.getAstNodePath(_);return{$ref:`${C}#${A}`,$refText:w}}else return{$error:(p=(f=r.error)===null||f===void 0?void 0:f.message)!==null&&p!==void 0?p:"Could not resolve reference",$refText:w}}else if(Eb(r)){let _;if(o&&(_=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},r)),(!t||r.$document)&&(_!=null&&_.$textRegion)&&(_.$textRegion.documentURI=(m=this.currentDocument)===null||m===void 0?void 0:m.uri.toString())),s&&!t&&(_??(_=Object.assign({},r)),_.$sourceText=(b=r.$cstNode)===null||b===void 0?void 0:b.text),u){_??(_=Object.assign({},r));const w=this.commentProvider.getComment(r);w&&(_.$comment=w.replace(/\r/g,""))}return _??r}else return r}addAstNodeRegionWithAssignmentsTo(t){const r=a=>({offset:a.offset,end:a.end,length:a.length,range:a.range});if(t.$cstNode){const a=t.$textRegion=r(t.$cstNode),s=a.assignments={};return Object.keys(t).filter(o=>!o.startsWith("$")).forEach(o=>{const u=yDi(t.$cstNode,o).map(r);u.length!==0&&(s[o]=u)}),t}}linkNode(t,r,a,s,o,u){for(const[f,p]of Object.entries(t))if(Array.isArray(p))for(let m=0;m<p.length;m++){const b=p[m];B3n(b)?p[m]=this.reviveReference(t,f,r,b,a):Eb(b)&&this.linkNode(b,r,a,t,f,m)}else B3n(p)?t[f]=this.reviveReference(t,f,r,p,a):Eb(p)&&this.linkNode(p,r,a,t,f);const h=t;h.$container=s,h.$containerProperty=o,h.$containerIndex=u}reviveReference(t,r,a,s,o){let u=s.$refText,h=s.$error;if(s.$ref){const f=this.getRefNode(a,s.$ref,o.uriConverter);if(Eb(f))return u||(u=this.nameProvider.getName(f)),{$refText:u??"",ref:f};h=f}if(h){const f={$refText:u??""};return f.error={container:t,property:r,message:h,reference:f},f}else return}getRefNode(t,r,a){try{const s=r.indexOf("#");if(s===0){const f=this.astNodeLocator.getAstNode(t,r.substring(1));return f||"Could not resolve path: "+r}if(s<0){const f=a?a(r):s$.parse(r),p=this.langiumDocuments.getDocument(f);return p?p.parseResult.value:"Could not find document for URI: "+r}const o=a?a(r.substring(0,s)):s$.parse(r.substring(0,s)),u=this.langiumDocuments.getDocument(o);if(!u)return"Could not find document for URI: "+r;if(s===r.length-1)return u.parseResult.value;const h=this.astNodeLocator.getAstNode(u.parseResult.value,r.substring(s+1));return h||"Could not resolve URI: "+r}catch(s){return String(s)}}}class Vqi{get map(){return this.fileExtensionMap}constructor(t){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.textDocuments=t==null?void 0:t.workspace.TextDocuments}register(t){const r=t.LanguageMetaData;for(const a of r.fileExtensions)this.fileExtensionMap.has(a)&&console.warn(`The file extension ${a} is used by multiple languages. It is now assigned to '${r.languageId}'.`),this.fileExtensionMap.set(a,t);this.languageIdMap.set(r.languageId,t),this.languageIdMap.size===1?this.singleton=t:this.singleton=void 0}getServices(t){var r,a;if(this.singleton!==void 0)return this.singleton;if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const s=(a=(r=this.textDocuments)===null||r===void 0?void 0:r.get(t))===null||a===void 0?void 0:a.languageId;if(s!==void 0){const h=this.languageIdMap.get(s);if(h)return h}const o=m9.extname(t),u=this.fileExtensionMap.get(o);if(!u)throw s?new Error(`The service registry contains no services for the extension '${o}' for language '${s}'.`):new Error(`The service registry contains no services for the extension '${o}'.`);return u}hasServices(t){try{return this.getServices(t),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}}function Cae(e){return{code:e}}var kTe;(function(e){e.all=["fast","slow","built-in"]})(kTe||(kTe={}));class Yqi{constructor(t){this.entries=new ATe,this.entriesBefore=[],this.entriesAfter=[],this.reflection=t.shared.AstReflection}register(t,r=this,a="fast"){if(a==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(const[s,o]of Object.entries(t)){const u=o;if(Array.isArray(u))for(const h of u){const f={check:this.wrapValidationException(h,r),category:a};this.addEntry(s,f)}else if(typeof u=="function"){const h={check:this.wrapValidationException(u,r),category:a};this.addEntry(s,h)}else Dce()}}wrapValidationException(t,r){return async(a,s,o)=>{await this.handleException(()=>t.call(r,a,s,o),"An error occurred during validation",s,a)}}async handleException(t,r,a,s){try{await t()}catch(o){if(Vke(o))throw o;console.error(`${r}:`,o),o instanceof Error&&o.stack&&console.error(o.stack);const u=o instanceof Error?o.message:String(o);a("error",`${r}: ${u}`,{node:s})}}addEntry(t,r){if(t==="AstNode"){this.entries.add("AstNode",r);return}for(const a of this.reflection.getAllSubTypes(t))this.entries.add(a,r)}getChecks(t,r){let a=wm(this.entries.get(t)).concat(this.entries.get("AstNode"));return r&&(a=a.filter(s=>r.includes(s.category))),a.map(s=>s.check)}registerBeforeDocument(t,r=this){this.entriesBefore.push(this.wrapPreparationException(t,"An error occurred during set-up of the validation",r))}registerAfterDocument(t,r=this){this.entriesAfter.push(this.wrapPreparationException(t,"An error occurred during tear-down of the validation",r))}wrapPreparationException(t,r,a){return async(s,o,u,h)=>{await this.handleException(()=>t.call(a,s,o,u,h),r,o,s)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}}class jqi{constructor(t){this.validationRegistry=t.validation.ValidationRegistry,this.metadata=t.LanguageMetaData}async validateDocument(t,r={},a=Nf.None){const s=t.parseResult,o=[];if(await Ow(a),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(s,o,r),r.stopAfterLexingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.LexingError})||(this.processParsingErrors(s,o,r),r.stopAfterParsingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.ParsingError}))||(this.processLinkingErrors(t,o,r),r.stopAfterLinkingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.LinkingError}))))return o;try{o.push(...await this.validateAst(s.value,r,a))}catch(u){if(Vke(u))throw u;console.error("An error occurred during validation:",u)}return await Ow(a),o}processLexingErrors(t,r,a){var s,o,u;const h=[...t.lexerErrors,...(o=(s=t.lexerReport)===null||s===void 0?void 0:s.diagnostics)!==null&&o!==void 0?o:[]];for(const f of h){const p=(u=f.severity)!==null&&u!==void 0?u:"error",m={severity:Bit(p),range:{start:{line:f.line-1,character:f.column-1},end:{line:f.line-1,character:f.column+f.length-1}},message:f.message,data:Kqi(p),source:this.getSource()};r.push(m)}}processParsingErrors(t,r,a){for(const s of t.parserErrors){let o;if(isNaN(s.token.startOffset)){if("previousToken"in s){const u=s.previousToken;if(isNaN(u.startOffset)){const h={line:0,character:0};o={start:h,end:h}}else{const h={line:u.endLine-1,character:u.endColumn};o={start:h,end:h}}}}else o=kct(s.token);if(o){const u={severity:Bit("error"),range:o,message:s.message,data:Cae(F3.ParsingError),source:this.getSource()};r.push(u)}}}processLinkingErrors(t,r,a){for(const s of t.references){const o=s.error;if(o){const u={node:o.container,property:o.property,index:o.index,data:{code:F3.LinkingError,containerType:o.container.$type,property:o.property,refText:o.reference.$refText}};r.push(this.toDiagnostic("error",o.message,u))}}}async validateAst(t,r,a=Nf.None){const s=[],o=(u,h,f)=>{s.push(this.toDiagnostic(u,h,f))};return await this.validateAstBefore(t,r,o,a),await this.validateAstNodes(t,r,o,a),await this.validateAstAfter(t,r,o,a),s}async validateAstBefore(t,r,a,s=Nf.None){var o;const u=this.validationRegistry.checksBefore;for(const h of u)await Ow(s),await h(t,a,(o=r.categories)!==null&&o!==void 0?o:[],s)}async validateAstNodes(t,r,a,s=Nf.None){await Promise.all(aY(t).map(async o=>{await Ow(s);const u=this.validationRegistry.getChecks(o.$type,r.categories);for(const h of u)await h(o,a,s)}))}async validateAstAfter(t,r,a,s=Nf.None){var o;const u=this.validationRegistry.checksAfter;for(const h of u)await Ow(s),await h(t,a,(o=r.categories)!==null&&o!==void 0?o:[],s)}toDiagnostic(t,r,a){return{message:r,range:Wqi(a),severity:Bit(t),code:a.code,codeDescription:a.codeDescription,tags:a.tags,relatedInformation:a.relatedInformation,data:a.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Wqi(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=NYn(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=vDi(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Bit(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function Kqi(e){switch(e){case"error":return Cae(F3.LexingError);case"warning":return Cae(F3.LexingWarning);case"info":return Cae(F3.LexingInfo);case"hint":return Cae(F3.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}var F3;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(F3||(F3={}));class Xqi{constructor(t){this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider}createDescription(t,r,a){const s=a??h9(t);r??(r=this.nameProvider.getName(t));const o=this.astNodeLocator.getAstNodePath(t);if(!r)throw new Error(`Node at path ${o} has no name.`);let u;const h=()=>{var f;return u??(u=aTe((f=this.nameProvider.getNameNode(t))!==null&&f!==void 0?f:t.$cstNode))};return{node:t,name:r,get nameSegment(){return h()},selectionSegment:aTe(t.$cstNode),type:t.$type,documentUri:s.uri,path:o}}}class Qqi{constructor(t){this.nodeLocator=t.workspace.AstNodeLocator}async createDescriptions(t,r=Nf.None){const a=[],s=t.parseResult.value;for(const o of aY(s))await Ow(r),CYn(o).filter(u=>!Oxe(u)).forEach(u=>{const h=this.createDescription(u);h&&a.push(h)});return a}createDescription(t){const r=t.reference.$nodeDescription,a=t.reference.$refNode;if(!r||!a)return;const s=h9(t.container).uri;return{sourceUri:s,sourcePath:this.nodeLocator.getAstNodePath(t.container),targetUri:r.documentUri,targetPath:r.path,segment:aTe(a),local:m9.equals(r.documentUri,s)}}}class Zqi{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(t){if(t.$container){const r=this.getAstNodePath(t.$container),a=this.getPathSegment(t);return r+this.segmentSeparator+a}return""}getPathSegment({$containerProperty:t,$containerIndex:r}){if(!t)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?t+this.indexSeparator+r:t}getAstNode(t,r){return r.split(this.segmentSeparator).reduce((s,o)=>{if(!s||o.length===0)return s;const u=o.indexOf(this.indexSeparator);if(u>0){const h=o.substring(0,u),f=parseInt(o.substring(u+1)),p=s[h];return p==null?void 0:p[f]}return s[o]},t)}}class Jqi{constructor(t){this._ready=new Imt,this.settings={},this.workspaceConfig=!1,this.onConfigurationSectionUpdateEmitter=new gWn,this.serviceRegistry=t.ServiceRegistry}get ready(){return this._ready.promise}initialize(t){var r,a;this.workspaceConfig=(a=(r=t.capabilities.workspace)===null||r===void 0?void 0:r.configuration)!==null&&a!==void 0?a:!1}async initialized(t){if(this.workspaceConfig){if(t.register){const r=this.serviceRegistry.all;t.register({section:r.map(a=>this.toSectionName(a.LanguageMetaData.languageId))})}if(t.fetchConfiguration){const r=this.serviceRegistry.all.map(s=>({section:this.toSectionName(s.LanguageMetaData.languageId)})),a=await t.fetchConfiguration(r);r.forEach((s,o)=>{this.updateSectionConfiguration(s.section,a[o])})}}this._ready.resolve()}updateConfiguration(t){t.settings&&Object.keys(t.settings).forEach(r=>{const a=t.settings[r];this.updateSectionConfiguration(r,a),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:a})})}updateSectionConfiguration(t,r){this.settings[t]=r}async getConfiguration(t,r){await this.ready;const a=this.toSectionName(t);if(this.settings[a])return this.settings[a][r]}toSectionName(t){return`${t}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}var kse;(function(e){function t(r){return{dispose:async()=>await r()}}e.create=t})(kse||(kse={}));class eHi{constructor(t){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new ATe,this.documentPhaseListeners=new ATe,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Vd.Changed,this.langiumDocuments=t.workspace.LangiumDocuments,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory,this.textDocuments=t.workspace.TextDocuments,this.indexManager=t.workspace.IndexManager,this.serviceRegistry=t.ServiceRegistry}async build(t,r={},a=Nf.None){var s,o;for(const u of t){const h=u.uri.toString();if(u.state===Vd.Validated){if(typeof r.validation=="boolean"&&r.validation)u.state=Vd.IndexedReferences,u.diagnostics=void 0,this.buildState.delete(h);else if(typeof r.validation=="object"){const f=this.buildState.get(h),p=(s=f==null?void 0:f.result)===null||s===void 0?void 0:s.validationChecks;if(p){const b=((o=r.validation.categories)!==null&&o!==void 0?o:kTe.all).filter(_=>!p.includes(_));b.length>0&&(this.buildState.set(h,{completed:!1,options:{validation:Object.assign(Object.assign({},r.validation),{categories:b})},result:f.result}),u.state=Vd.IndexedReferences)}}}else this.buildState.delete(h)}this.currentState=Vd.Changed,await this.emitUpdate(t.map(u=>u.uri),[]),await this.buildDocuments(t,r,a)}async update(t,r,a=Nf.None){this.currentState=Vd.Changed;for(const u of r)this.langiumDocuments.deleteDocument(u),this.buildState.delete(u.toString()),this.indexManager.remove(u);for(const u of t){if(!this.langiumDocuments.invalidateDocument(u)){const f=this.langiumDocumentFactory.fromModel({$type:"INVALID"},u);f.state=Vd.Changed,this.langiumDocuments.addDocument(f)}this.buildState.delete(u.toString())}const s=wm(t).concat(r).map(u=>u.toString()).toSet();this.langiumDocuments.all.filter(u=>!s.has(u.uri.toString())&&this.shouldRelink(u,s)).forEach(u=>{this.serviceRegistry.getServices(u.uri).references.Linker.unlink(u),u.state=Math.min(u.state,Vd.ComputedScopes),u.diagnostics=void 0}),await this.emitUpdate(t,r),await Ow(a);const o=this.sortDocuments(this.langiumDocuments.all.filter(u=>{var h;return u.state<Vd.Linked||!(!((h=this.buildState.get(u.uri.toString()))===null||h===void 0)&&h.completed)}).toArray());await this.buildDocuments(o,this.updateBuildOptions,a)}async emitUpdate(t,r){await Promise.all(this.updateListeners.map(a=>a(t,r)))}sortDocuments(t){let r=0,a=t.length-1;for(;r<a;){for(;r<t.length&&this.hasTextDocument(t[r]);)r++;for(;a>=0&&!this.hasTextDocument(t[a]);)a--;r<a&&([t[r],t[a]]=[t[a],t[r]])}return t}hasTextDocument(t){var r;return!!(!((r=this.textDocuments)===null||r===void 0)&&r.get(t.uri))}shouldRelink(t,r){return t.references.some(a=>a.error!==void 0)?!0:this.indexManager.isAffected(t,r)}onUpdate(t){return this.updateListeners.push(t),kse.create(()=>{const r=this.updateListeners.indexOf(t);r>=0&&this.updateListeners.splice(r,1)})}async buildDocuments(t,r,a){this.prepareBuild(t,r),await this.runCancelable(t,Vd.Parsed,a,o=>this.langiumDocumentFactory.update(o,a)),await this.runCancelable(t,Vd.IndexedContent,a,o=>this.indexManager.updateContent(o,a)),await this.runCancelable(t,Vd.ComputedScopes,a,async o=>{const u=this.serviceRegistry.getServices(o.uri).references.ScopeComputation;o.precomputedScopes=await u.computeLocalScopes(o,a)}),await this.runCancelable(t,Vd.Linked,a,o=>this.serviceRegistry.getServices(o.uri).references.Linker.link(o,a)),await this.runCancelable(t,Vd.IndexedReferences,a,o=>this.indexManager.updateReferences(o,a));const s=t.filter(o=>this.shouldValidate(o));await this.runCancelable(s,Vd.Validated,a,o=>this.validate(o,a));for(const o of t){const u=this.buildState.get(o.uri.toString());u&&(u.completed=!0)}}prepareBuild(t,r){for(const a of t){const s=a.uri.toString(),o=this.buildState.get(s);(!o||o.completed)&&this.buildState.set(s,{completed:!1,options:r,result:o==null?void 0:o.result})}}async runCancelable(t,r,a,s){const o=t.filter(h=>h.state<r);for(const h of o)await Ow(a),await s(h),h.state=r,await this.notifyDocumentPhase(h,r,a);const u=t.filter(h=>h.state===r);await this.notifyBuildPhase(u,r,a),this.currentState=r}onBuildPhase(t,r){return this.buildPhaseListeners.add(t,r),kse.create(()=>{this.buildPhaseListeners.delete(t,r)})}onDocumentPhase(t,r){return this.documentPhaseListeners.add(t,r),kse.create(()=>{this.documentPhaseListeners.delete(t,r)})}waitUntil(t,r,a){let s;if(r&&"path"in r?s=r:a=r,a??(a=Nf.None),s){const o=this.langiumDocuments.getDocument(s);if(o&&o.state>t)return Promise.resolve(s)}return this.currentState>=t?Promise.resolve(void 0):a.isCancellationRequested?Promise.reject(CTe):new Promise((o,u)=>{const h=this.onBuildPhase(t,()=>{if(h.dispose(),f.dispose(),s){const p=this.langiumDocuments.getDocument(s);o(p==null?void 0:p.uri)}else o(void 0)}),f=a.onCancellationRequested(()=>{h.dispose(),f.dispose(),u(CTe)})})}async notifyDocumentPhase(t,r,a){const o=this.documentPhaseListeners.get(r).slice();for(const u of o)try{await u(t,a)}catch(h){if(!Vke(h))throw h}}async notifyBuildPhase(t,r,a){if(t.length===0)return;const o=this.buildPhaseListeners.get(r).slice();for(const u of o)await Ow(a),await u(t,a)}shouldValidate(t){return!!this.getBuildOptions(t).validation}async validate(t,r){var a,s;const o=this.serviceRegistry.getServices(t.uri).validation.DocumentValidator,u=this.getBuildOptions(t).validation,h=typeof u=="object"?u:void 0,f=await o.validateDocument(t,h,r);t.diagnostics?t.diagnostics.push(...f):t.diagnostics=f;const p=this.buildState.get(t.uri.toString());if(p){(a=p.result)!==null&&a!==void 0||(p.result={});const m=(s=h==null?void 0:h.categories)!==null&&s!==void 0?s:kTe.all;p.result.validationChecks?p.result.validationChecks.push(...m):p.result.validationChecks=[...m]}}getBuildOptions(t){var r,a;return(a=(r=this.buildState.get(t.uri.toString()))===null||r===void 0?void 0:r.options)!==null&&a!==void 0?a:{}}}class tHi{constructor(t){this.symbolIndex=new Map,this.symbolByTypeIndex=new Uqi,this.referenceIndex=new Map,this.documents=t.workspace.LangiumDocuments,this.serviceRegistry=t.ServiceRegistry,this.astReflection=t.AstReflection}findAllReferences(t,r){const a=h9(t).uri,s=[];return this.referenceIndex.forEach(o=>{o.forEach(u=>{m9.equals(u.targetUri,a)&&u.targetPath===r&&s.push(u)})}),wm(s)}allElements(t,r){let a=wm(this.symbolIndex.keys());return r&&(a=a.filter(s=>!r||r.has(s))),a.map(s=>this.getFileDescriptions(s,t)).flat()}getFileDescriptions(t,r){var a;return r?this.symbolByTypeIndex.get(t,r,()=>{var o;return((o=this.symbolIndex.get(t))!==null&&o!==void 0?o:[]).filter(h=>this.astReflection.isSubtype(h.type,r))}):(a=this.symbolIndex.get(t))!==null&&a!==void 0?a:[]}remove(t){const r=t.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r),this.referenceIndex.delete(r)}async updateContent(t,r=Nf.None){const s=await this.serviceRegistry.getServices(t.uri).references.ScopeComputation.computeExports(t,r),o=t.uri.toString();this.symbolIndex.set(o,s),this.symbolByTypeIndex.clear(o)}async updateReferences(t,r=Nf.None){const s=await this.serviceRegistry.getServices(t.uri).workspace.ReferenceDescriptionProvider.createDescriptions(t,r);this.referenceIndex.set(t.uri.toString(),s)}isAffected(t,r){const a=this.referenceIndex.get(t.uri.toString());return a?a.some(s=>!s.local&&r.has(s.targetUri.toString())):!1}}class nHi{constructor(t){this.initialBuildOptions={},this._ready=new Imt,this.serviceRegistry=t.ServiceRegistry,this.langiumDocuments=t.workspace.LangiumDocuments,this.documentBuilder=t.workspace.DocumentBuilder,this.fileSystemProvider=t.workspace.FileSystemProvider,this.mutex=t.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(t){var r;this.folders=(r=t.workspaceFolders)!==null&&r!==void 0?r:void 0}initialized(t){return this.mutex.write(r=>{var a;return this.initializeWorkspace((a=this.folders)!==null&&a!==void 0?a:[],r)})}async initializeWorkspace(t,r=Nf.None){const a=await this.performStartup(t);await Ow(r),await this.documentBuilder.build(a,this.initialBuildOptions,r)}async performStartup(t){const r=this.serviceRegistry.all.flatMap(o=>o.LanguageMetaData.fileExtensions),a=[],s=o=>{a.push(o),this.langiumDocuments.hasDocument(o.uri)||this.langiumDocuments.addDocument(o)};return await this.loadAdditionalDocuments(t,s),await Promise.all(t.map(o=>[o,this.getRootFolder(o)]).map(async o=>this.traverseFolder(...o,r,s))),this._ready.resolve(),a}loadAdditionalDocuments(t,r){return Promise.resolve()}getRootFolder(t){return s$.parse(t.uri)}async traverseFolder(t,r,a,s){const o=await this.fileSystemProvider.readDirectory(r);await Promise.all(o.map(async u=>{if(this.includeEntry(t,u,a)){if(u.isDirectory)await this.traverseFolder(t,u.uri,a,s);else if(u.isFile){const h=await this.langiumDocuments.getOrCreateDocument(u.uri);s(h)}}}))}includeEntry(t,r,a){const s=m9.basename(r.uri);if(s.startsWith("."))return!1;if(r.isDirectory)return s!=="node_modules"&&s!=="out";if(r.isFile){const o=m9.extname(r.uri);return a.includes(o)}return!1}}class rHi{buildUnexpectedCharactersMessage(t,r,a,s,o){return Fct.buildUnexpectedCharactersMessage(t,r,a,s,o)}buildUnableToPopLexerModeMessage(t){return Fct.buildUnableToPopLexerModeMessage(t)}}const iHi={mode:"full"};class aHi{constructor(t){this.errorMessageProvider=t.parser.LexerErrorMessageProvider,this.tokenBuilder=t.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(t.Grammar,{caseInsensitive:t.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const a=F3n(r)?Object.values(r):r,s=t.LanguageMetaData.mode==="production";this.chevrotainLexer=new J2(a,{positionTracking:"full",skipValidations:s,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(t,r=iHi){var a,s,o;const u=this.chevrotainLexer.tokenize(t);return{tokens:u.tokens,errors:u.errors,hidden:(a=u.groups.hidden)!==null&&a!==void 0?a:[],report:(o=(s=this.tokenBuilder).flushLexingReport)===null||o===void 0?void 0:o.call(s,t)}}toTokenTypeDictionary(t){if(F3n(t))return t;const r=_Wn(t)?Object.values(t.modes).flat():t,a={};return r.forEach(s=>a[s.name]=s),a}}function sHi(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function _Wn(e){return e&&"modes"in e&&"defaultMode"in e}function F3n(e){return!sHi(e)&&!_Wn(e)}function oHi(e,t,r){let a,s;typeof e=="string"?(s=t,a=r):(s=e.range.start,a=t),s||(s=Pu.create(0,0));const o=wWn(e),u=Nmt(a),h=uHi({lines:o,position:s,options:u});return gHi({index:0,tokens:h,position:s})}function lHi(e,t){const r=Nmt(t),a=wWn(e);if(a.length===0)return!1;const s=a[0],o=a[a.length-1],u=r.start,h=r.end;return!!(u!=null&&u.exec(s))&&!!(h!=null&&h.exec(o))}function wWn(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(sDi)}const $3n=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,cHi=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function uHi(e){var t,r,a;const s=[];let o=e.position.line,u=e.position.character;for(let h=0;h<e.lines.length;h++){const f=h===0,p=h===e.lines.length-1;let m=e.lines[h],b=0;if(f&&e.options.start){const w=(t=e.options.start)===null||t===void 0?void 0:t.exec(m);w&&(b=w.index+w[0].length)}else{const w=(r=e.options.line)===null||r===void 0?void 0:r.exec(m);w&&(b=w.index+w[0].length)}if(p){const w=(a=e.options.end)===null||a===void 0?void 0:a.exec(m);w&&(m=m.substring(0,w.index))}if(m=m.substring(0,pHi(m)),fut(m,b)>=m.length){if(s.length>0){const w=Pu.create(o,u);s.push({type:"break",content:"",range:Bc.create(w,w)})}}else{$3n.lastIndex=b;const w=$3n.exec(m);if(w){const S=w[0],C=w[1],A=Pu.create(o,u+b),k=Pu.create(o,u+b+S.length);s.push({type:"tag",content:C,range:Bc.create(A,k)}),b+=S.length,b=fut(m,b)}if(b<m.length){const S=m.substring(b),C=Array.from(S.matchAll(cHi));s.push(...hHi(C,S,o,u+b))}}o++,u=0}return s.length>0&&s[s.length-1].type==="break"?s.slice(0,-1):s}function hHi(e,t,r,a){const s=[];if(e.length===0){const o=Pu.create(r,a),u=Pu.create(r,a+t.length);s.push({type:"text",content:t,range:Bc.create(o,u)})}else{let o=0;for(const h of e){const f=h.index,p=t.substring(o,f);p.length>0&&s.push({type:"text",content:t.substring(o,f),range:Bc.create(Pu.create(r,o+a),Pu.create(r,f+a))});let m=p.length+1;const b=h[1];if(s.push({type:"inline-tag",content:b,range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+b.length+a))}),m+=b.length,h.length===4){m+=h[2].length;const _=h[3];s.push({type:"text",content:_,range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+_.length+a))})}else s.push({type:"text",content:"",range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+a))});o=f+h[0].length}const u=t.substring(o);u.length>0&&s.push({type:"text",content:u,range:Bc.create(Pu.create(r,o+a),Pu.create(r,o+a+u.length))})}return s}const dHi=/\S/,fHi=/\s*$/;function fut(e,t){const r=e.substring(t).match(dHi);return r?t+r.index:e.length}function pHi(e){const t=e.match(fHi);if(t&&typeof t.index=="number")return t.index}function gHi(e){var t,r,a,s;const o=Pu.create(e.position.line,e.position.character);if(e.tokens.length===0)return new U3n([],Bc.create(o,o));const u=[];for(;e.index<e.tokens.length;){const p=mHi(e,u[u.length-1]);p&&u.push(p)}const h=(r=(t=u[0])===null||t===void 0?void 0:t.range.start)!==null&&r!==void 0?r:o,f=(s=(a=u[u.length-1])===null||a===void 0?void 0:a.range.end)!==null&&s!==void 0?s:o;return new U3n(u,Bc.create(h,f))}function mHi(e,t){const r=e.tokens[e.index];if(r.type==="tag")return xWn(e,!1);if(r.type==="text"||r.type==="inline-tag")return EWn(e);bHi(r,t),e.index++}function bHi(e,t){if(t){const r=new TWn("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}function EWn(e){let t=e.tokens[e.index];const r=t;let a=t;const s=[];for(;t&&t.type!=="break"&&t.type!=="tag";)s.push(yHi(e)),a=t,t=e.tokens[e.index];return new put(s,Bc.create(r.range.start,a.range.end))}function yHi(e){return e.tokens[e.index].type==="inline-tag"?xWn(e,!0):SWn(e)}function xWn(e,t){const r=e.tokens[e.index++],a=r.content.substring(1),s=e.tokens[e.index];if((s==null?void 0:s.type)==="text")if(t){const o=SWn(e);return new $it(a,new put([o],o.range),t,Bc.create(r.range.start,o.range.end))}else{const o=EWn(e);return new $it(a,o,t,Bc.create(r.range.start,o.range.end))}else{const o=r.range;return new $it(a,new put([],o),t,o)}}function SWn(e){const t=e.tokens[e.index++];return new TWn(t.content,t.range)}function Nmt(e){if(!e)return Nmt({start:"/**",end:"*/",line:"*"});const{start:t,end:r,line:a}=e;return{start:Fit(t,!0),end:Fit(r,!1),line:Fit(a,!0)}}function Fit(e,t){if(typeof e=="string"||typeof e=="object"){const r=typeof e=="string"?xke(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return e}class U3n{constructor(t,r){this.elements=t,this.range=r}getTag(t){return this.getAllTags().find(r=>r.name===t)}getTags(t){return this.getAllTags().filter(r=>r.name===t)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(const r of this.elements)if(t.length===0)t=r.toString();else{const a=r.toString();t+=z3n(t)+a}return t.trim()}toMarkdown(t){let r="";for(const a of this.elements)if(r.length===0)r=a.toMarkdown(t);else{const s=a.toMarkdown(t);r+=z3n(r)+s}return r.trim()}}class $it{constructor(t,r,a,s){this.name=t,this.content=r,this.inline=a,this.range=s}toString(){let t=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?t=`${t} ${r}`:this.content.inlines.length>1&&(t=`${t}
${r}`),this.inline?`{${t}}`:t}toMarkdown(t){var r,a;return(a=(r=t==null?void 0:t.renderTag)===null||r===void 0?void 0:r.call(t,this))!==null&&a!==void 0?a:this.toMarkdownDefault(t)}toMarkdownDefault(t){const r=this.content.toMarkdown(t);if(this.inline){const o=vHi(this.name,r,t??{});if(typeof o=="string")return o}let a="";(t==null?void 0:t.tag)==="italic"||(t==null?void 0:t.tag)===void 0?a="*":(t==null?void 0:t.tag)==="bold"?a="**":(t==null?void 0:t.tag)==="bold-italic"&&(a="***");let s=`${a}@${this.name}${a}`;return this.content.inlines.length===1?s=`${s} — ${r}`:this.content.inlines.length>1&&(s=`${s}
${r}`),this.inline?`{${s}}`:s}}function vHi(e,t,r){var a,s;if(e==="linkplain"||e==="linkcode"||e==="link"){const o=t.indexOf(" ");let u=t;if(o>0){const f=fut(t,o);u=t.substring(f),t=t.substring(0,o)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(u=`\`${u}\``),(s=(a=r.renderLink)===null||a===void 0?void 0:a.call(r,t,u))!==null&&s!==void 0?s:_Hi(t,u)}}function _Hi(e,t){try{return s$.parse(e,!0),`[${t}](${e})`}catch{return e}}class put{constructor(t,r){this.inlines=t,this.range=r}toString(){let t="";for(let r=0;r<this.inlines.length;r++){const a=this.inlines[r],s=this.inlines[r+1];t+=a.toString(),s&&s.range.start.line>a.range.start.line&&(t+=`
`)}return t}toMarkdown(t){let r="";for(let a=0;a<this.inlines.length;a++){const s=this.inlines[a],o=this.inlines[a+1];r+=s.toMarkdown(t),o&&o.range.start.line>s.range.start.line&&(r+=`
`)}return r}}class TWn{constructor(t,r){this.text=t,this.range=r}toString(){return this.text}toMarkdown(){return this.text}}function z3n(e){return e.endsWith(`
`)?`
`:`

`}class wHi{constructor(t){this.indexManager=t.shared.workspace.IndexManager,this.commentProvider=t.documentation.CommentProvider}getDocumentation(t){const r=this.commentProvider.getComment(t);if(r&&lHi(r))return oHi(r).toMarkdown({renderLink:(s,o)=>this.documentationLinkRenderer(t,s,o),renderTag:s=>this.documentationTagRenderer(t,s)})}documentationLinkRenderer(t,r,a){var s;const o=(s=this.findNameInPrecomputedScopes(t,r))!==null&&s!==void 0?s:this.findNameInGlobalScope(t,r);if(o&&o.nameSegment){const u=o.nameSegment.range.start.line+1,h=o.nameSegment.range.start.character+1,f=o.documentUri.with({fragment:`L${u},${h}`});return`[${a}](${f.toString()})`}else return}documentationTagRenderer(t,r){}findNameInPrecomputedScopes(t,r){const s=h9(t).precomputedScopes;if(!s)return;let o=t;do{const h=s.get(o).find(f=>f.name===r);if(h)return h;o=o.$container}while(o)}findNameInGlobalScope(t,r){return this.indexManager.allElements().find(s=>s.name===r)}}class EHi{constructor(t){this.grammarConfig=()=>t.parser.GrammarConfig}getComment(t){var r;return qqi(t)?t.$comment:(r=PLi(t.$cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}class xHi{constructor(t){this.syncParser=t.parser.LangiumParser}parse(t,r){return Promise.resolve(this.syncParser.parse(t))}}class SHi{constructor(){this.previousTokenSource=new Rmt,this.writeQueue=[],this.readQueue=[],this.done=!0}write(t){this.cancelWrite();const r=Rqi();return this.previousTokenSource=r,this.enqueue(this.writeQueue,t,r.token)}read(t){return this.enqueue(this.readQueue,t)}enqueue(t,r,a=Nf.None){const s=new Imt,o={action:r,deferred:s,cancellationToken:a};return t.push(o),this.performNextOperation(),s.promise}async performNextOperation(){if(!this.done)return;const t=[];if(this.writeQueue.length>0)t.push(this.writeQueue.shift());else if(this.readQueue.length>0)t.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(t.map(async({action:r,deferred:a,cancellationToken:s})=>{try{const o=await Promise.resolve().then(()=>r(s));a.resolve(o)}catch(o){Vke(o)?a.resolve(void 0):a.reject(o)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class THi{constructor(t){this.grammarElementIdMap=new M3n,this.tokenTypeIdMap=new M3n,this.grammar=t.Grammar,this.lexer=t.parser.Lexer,this.linker=t.references.Linker}dehydrate(t){return{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport?this.dehydrateLexerReport(t.lexerReport):void 0,parserErrors:t.parserErrors.map(r=>Object.assign(Object.assign({},r),{message:r.message})),value:this.dehydrateAstNode(t.value,this.createDehyrationContext(t.value))}}dehydrateLexerReport(t){return t}createDehyrationContext(t){const r=new Map,a=new Map;for(const s of aY(t))r.set(s,{});if(t.$cstNode)for(const s of Act(t.$cstNode))a.set(s,{});return{astNodes:r,cstNodes:a}}dehydrateAstNode(t,r){const a=r.astNodes.get(t);a.$type=t.$type,a.$containerIndex=t.$containerIndex,a.$containerProperty=t.$containerProperty,t.$cstNode!==void 0&&(a.$cstNode=this.dehydrateCstNode(t.$cstNode,r));for(const[s,o]of Object.entries(t))if(!s.startsWith("$"))if(Array.isArray(o)){const u=[];a[s]=u;for(const h of o)Eb(h)?u.push(this.dehydrateAstNode(h,r)):eA(h)?u.push(this.dehydrateReference(h,r)):u.push(h)}else Eb(o)?a[s]=this.dehydrateAstNode(o,r):eA(o)?a[s]=this.dehydrateReference(o,r):o!==void 0&&(a[s]=o);return a}dehydrateReference(t,r){const a={};return a.$refText=t.$refText,t.$refNode&&(a.$refNode=r.cstNodes.get(t.$refNode)),a}dehydrateCstNode(t,r){const a=r.cstNodes.get(t);return yYn(t)?a.fullText=t.fullText:a.grammarSource=this.getGrammarElementId(t.grammarSource),a.hidden=t.hidden,a.astNode=r.astNodes.get(t.astNode),Zoe(t)?a.content=t.content.map(s=>this.dehydrateCstNode(s,r)):bYn(t)&&(a.tokenType=t.tokenType.name,a.offset=t.offset,a.length=t.length,a.startLine=t.range.start.line,a.startColumn=t.range.start.character,a.endLine=t.range.end.line,a.endColumn=t.range.end.character),a}hydrate(t){const r=t.value,a=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,a),{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport,parserErrors:t.parserErrors,value:this.hydrateAstNode(r,a)}}createHydrationContext(t){const r=new Map,a=new Map;for(const o of aY(t))r.set(o,{});let s;if(t.$cstNode)for(const o of Act(t.$cstNode)){let u;"fullText"in o?(u=new rWn(o.fullText),s=u):"content"in o?u=new Amt:"tokenType"in o&&(u=this.hydrateCstLeafNode(o)),u&&(a.set(o,u),u.root=s)}return{astNodes:r,cstNodes:a}}hydrateAstNode(t,r){const a=r.astNodes.get(t);a.$type=t.$type,a.$containerIndex=t.$containerIndex,a.$containerProperty=t.$containerProperty,t.$cstNode&&(a.$cstNode=r.cstNodes.get(t.$cstNode));for(const[s,o]of Object.entries(t))if(!s.startsWith("$"))if(Array.isArray(o)){const u=[];a[s]=u;for(const h of o)Eb(h)?u.push(this.setParent(this.hydrateAstNode(h,r),a)):eA(h)?u.push(this.hydrateReference(h,a,s,r)):u.push(h)}else Eb(o)?a[s]=this.setParent(this.hydrateAstNode(o,r),a):eA(o)?a[s]=this.hydrateReference(o,a,s,r):o!==void 0&&(a[s]=o);return a}setParent(t,r){return t.$container=r,t}hydrateReference(t,r,a,s){return this.linker.buildReference(r,a,s.cstNodes.get(t.$refNode),t.$refText)}hydrateCstNode(t,r,a=0){const s=r.cstNodes.get(t);if(typeof t.grammarSource=="number"&&(s.grammarSource=this.getGrammarElement(t.grammarSource)),s.astNode=r.astNodes.get(t.astNode),Zoe(s))for(const o of t.content){const u=this.hydrateCstNode(o,r,a++);s.content.push(u)}return s}hydrateCstLeafNode(t){const r=this.getTokenType(t.tokenType),a=t.offset,s=t.length,o=t.startLine,u=t.startColumn,h=t.endLine,f=t.endColumn,p=t.hidden;return new aut(a,s,{start:{line:o,character:u},end:{line:h,character:f}},r,p)}getTokenType(t){return this.lexer.definition[t]}getGrammarElementId(t){if(t)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(t)}getGrammarElement(t){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(t)}createGrammarElementIdMap(){let t=0;for(const r of aY(this.grammar))FLi(r)&&this.grammarElementIdMap.set(r,t++)}}function eL(e){return{documentation:{CommentProvider:t=>new EHi(t),DocumentationProvider:t=>new wHi(t)},parser:{AsyncParser:t=>new xHi(t),GrammarConfig:t=>RDi(t),LangiumParser:t=>pqi(t),CompletionParser:t=>fqi(t),ValueConverter:()=>new dWn,TokenBuilder:()=>new hWn,Lexer:t=>new aHi(t),ParserErrorMessageProvider:()=>new sWn,LexerErrorMessageProvider:()=>new rHi},workspace:{AstNodeLocator:()=>new Zqi,AstNodeDescriptionProvider:t=>new Xqi(t),ReferenceDescriptionProvider:t=>new Qqi(t)},references:{Linker:t=>new Lqi(t),NameProvider:()=>new Mqi,ScopeProvider:t=>new Gqi(t),ScopeComputation:t=>new Bqi(t),References:t=>new Pqi(t)},serializer:{Hydrator:t=>new THi(t),JsonSerializer:t=>new Hqi(t)},validation:{DocumentValidator:t=>new jqi(t),ValidationRegistry:t=>new Yqi(t)},shared:()=>e.shared}}function tL(e){return{ServiceRegistry:t=>new Vqi(t),workspace:{LangiumDocuments:t=>new Oqi(t),LangiumDocumentFactory:t=>new Nqi(t),DocumentBuilder:t=>new eHi(t),IndexManager:t=>new tHi(t),WorkspaceManager:t=>new nHi(t),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new SHi,ConfigurationProvider:t=>new Jqi(t)}}}var G3n;(function(e){e.merge=(t,r)=>RTe(RTe({},t),r)})(G3n||(G3n={}));function Ib(e,t,r,a,s,o,u,h,f){const p=[e,t,r,a,s,o,u,h,f].reduce(RTe,{});return CWn(p)}const CHi=Symbol("isProxy");function CWn(e,t){const r=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw new Error("Cannot set property on injected service container")},get:(a,s)=>s===CHi?!0:H3n(a,s,e,t||r),getOwnPropertyDescriptor:(a,s)=>(H3n(a,s,e,t||r),Object.getOwnPropertyDescriptor(a,s)),has:(a,s)=>s in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return r}const q3n=Symbol();function H3n(e,t,r,a){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]});if(e[t]===q3n)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){const s=r[t];e[t]=q3n;try{e[t]=typeof s=="function"?s(a):CWn(s,a)}catch(o){throw e[t]=o instanceof Error?o:void 0,o}return e[t]}else return}function RTe(e,t){if(t){for(const[r,a]of Object.entries(t))if(a!==void 0){const s=e[r];s!==null&&a!==null&&typeof s=="object"&&typeof a=="object"?e[r]=RTe(s,a):e[r]=a}}return e}class AHi{readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}}const nL={fileSystemProvider:()=>new AHi},kHi={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},RHi={AstReflection:()=>new TYn};function IHi(){const e=Ib(tL(nL),RHi),t=Ib(eL({shared:e}),kHi);return e.ServiceRegistry.register(t),t}function j$(e){var t;const r=IHi(),a=r.serializer.JsonSerializer.deserialize(e);return r.shared.workspace.LangiumDocumentFactory.fromModel(a,s$.parse(`memory://${(t=a.name)!==null&&t!==void 0?t:"grammar"}.langium`)),a}var NHi=Object.defineProperty,ra=(e,t)=>NHi(e,"name",{value:t,configurable:!0}),V3n="Statement",zxe="Architecture";function OHi(e){return vT.isInstance(e,zxe)}ra(OHi,"isArchitecture");var nEe="Axis",Aae="Branch";function LHi(e){return vT.isInstance(e,Aae)}ra(LHi,"isBranch");var rEe="Checkout",iEe="CherryPicking",Uit="ClassDefStatement",kae="Commit";function DHi(e){return vT.isInstance(e,kae)}ra(DHi,"isCommit");var zit="Curve",Git="Edge",qit="Entry",Rae="GitGraph";function MHi(e){return vT.isInstance(e,Rae)}ra(MHi,"isGitGraph");var Hit="Group",Gxe="Info";function PHi(e){return vT.isInstance(e,Gxe)}ra(PHi,"isInfo");var aEe="Item",Vit="Junction",Iae="Merge";function BHi(e){return vT.isInstance(e,Iae)}ra(BHi,"isMerge");var Yit="Option",qxe="Packet";function FHi(e){return vT.isInstance(e,qxe)}ra(FHi,"isPacket");var Hxe="PacketBlock";function $Hi(e){return vT.isInstance(e,Hxe)}ra($Hi,"isPacketBlock");var Vxe="Pie";function UHi(e){return vT.isInstance(e,Vxe)}ra(UHi,"isPie");var Yxe="PieSection";function zHi(e){return vT.isInstance(e,Yxe)}ra(zHi,"isPieSection");var jit="Radar",Wit="Service",jxe="Treemap";function GHi(e){return vT.isInstance(e,jxe)}ra(GHi,"isTreemap");var Kit="TreemapRow",sEe="Direction",oEe="Leaf",lEe="Section",AY,AWn=(AY=class extends mYn{getAllTypes(){return[zxe,nEe,Aae,rEe,iEe,Uit,kae,zit,sEe,Git,qit,Rae,Hit,Gxe,aEe,Vit,oEe,Iae,Yit,qxe,Hxe,Vxe,Yxe,jit,lEe,Wit,V3n,jxe,Kit]}computeIsSubtype(t,r){switch(t){case Aae:case rEe:case iEe:case kae:case Iae:return this.isSubtype(V3n,r);case sEe:return this.isSubtype(Rae,r);case oEe:case lEe:return this.isSubtype(aEe,r);default:return!1}}getReferenceType(t){const r=`${t.container.$type}:${t.property}`;switch(r){case"Entry:axis":return nEe;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case zxe:return{name:zxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case nEe:return{name:nEe,properties:[{name:"label"},{name:"name"}]};case Aae:return{name:Aae,properties:[{name:"name"},{name:"order"}]};case rEe:return{name:rEe,properties:[{name:"branch"}]};case iEe:return{name:iEe,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case Uit:return{name:Uit,properties:[{name:"className"},{name:"styleText"}]};case kae:return{name:kae,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case zit:return{name:zit,properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]};case Git:return{name:Git,properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case qit:return{name:qit,properties:[{name:"axis"},{name:"value"}]};case Rae:return{name:Rae,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case Hit:return{name:Hit,properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case Gxe:return{name:Gxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case aEe:return{name:aEe,properties:[{name:"classSelector"},{name:"name"}]};case Vit:return{name:Vit,properties:[{name:"id"},{name:"in"}]};case Iae:return{name:Iae,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case Yit:return{name:Yit,properties:[{name:"name"},{name:"value",defaultValue:!1}]};case qxe:return{name:qxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case Hxe:return{name:Hxe,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]};case Vxe:return{name:Vxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case Yxe:return{name:Yxe,properties:[{name:"label"},{name:"value"}]};case jit:return{name:jit,properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]};case Wit:return{name:Wit,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case jxe:return{name:jxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]};case Kit:return{name:Kit,properties:[{name:"indent"},{name:"item"}]};case sEe:return{name:sEe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};case oEe:return{name:oEe,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]};case lEe:return{name:lEe,properties:[{name:"classSelector"},{name:"name"}]};default:return{name:t,properties:[]}}}},ra(AY,"MermaidAstReflection"),AY),vT=new AWn,Y3n,qHi=ra(()=>Y3n??(Y3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"InfoGrammar"),j3n,HHi=ra(()=>j3n??(j3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),W3n,VHi=ra(()=>W3n??(W3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PieGrammar"),K3n,YHi=ra(()=>K3n??(K3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"ArchitectureGrammar"),X3n,jHi=ra(()=>X3n??(X3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),Q3n,WHi=ra(()=>Q3n??(Q3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Radar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`)),"RadarGrammar"),Z3n,KHi=ra(()=>Z3n??(Z3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammar"),XHi={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},QHi={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ZHi={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},JHi={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},eVi={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},tVi={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},nVi={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},W$={AstReflection:ra(()=>new AWn,"AstReflection")},rVi={Grammar:ra(()=>qHi(),"Grammar"),LanguageMetaData:ra(()=>XHi,"LanguageMetaData"),parser:{}},iVi={Grammar:ra(()=>HHi(),"Grammar"),LanguageMetaData:ra(()=>QHi,"LanguageMetaData"),parser:{}},aVi={Grammar:ra(()=>VHi(),"Grammar"),LanguageMetaData:ra(()=>ZHi,"LanguageMetaData"),parser:{}},sVi={Grammar:ra(()=>YHi(),"Grammar"),LanguageMetaData:ra(()=>JHi,"LanguageMetaData"),parser:{}},oVi={Grammar:ra(()=>jHi(),"Grammar"),LanguageMetaData:ra(()=>eVi,"LanguageMetaData"),parser:{}},lVi={Grammar:ra(()=>WHi(),"Grammar"),LanguageMetaData:ra(()=>tVi,"LanguageMetaData"),parser:{}},cVi={Grammar:ra(()=>KHi(),"Grammar"),LanguageMetaData:ra(()=>nVi,"LanguageMetaData"),parser:{}},uVi=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,hVi=/accTitle[\t ]*:([^\n\r]*)/,dVi=/title([\t ][^\n\r]*|)/,fVi={ACC_DESCR:uVi,ACC_TITLE:hVi,TITLE:dVi},kY,Yke=(kY=class extends dWn{runConverter(t,r,a){let s=this.runCommonConverter(t,r,a);return s===void 0&&(s=this.runCustomConverter(t,r,a)),s===void 0?super.runConverter(t,r,a):s}runCommonConverter(t,r,a){const s=fVi[t.name];if(s===void 0)return;const o=s.exec(r);if(o!==null){if(o[1]!==void 0)return o[1].trim().replace(/[\t ]{2,}/gm," ");if(o[2]!==void 0)return o[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
`)}}},ra(kY,"AbstractMermaidValueConverter"),kY),RY,jke=(RY=class extends Yke{runCustomConverter(t,r,a){}},ra(RY,"CommonValueConverter"),RY),IY,rL=(IY=class extends hWn{constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,r,a){const s=super.buildKeywordTokens(t,r,a);return s.forEach(o=>{this.keywords.has(o.name)&&o.PATTERN!==void 0&&(o.PATTERN=new RegExp(o.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),s}},ra(IY,"AbstractMermaidTokenBuilder"),IY),NY;NY=class extends rL{},ra(NY,"CommonTokenBuilder");var OY,pVi=(OY=class extends rL{constructor(){super(["gitGraph"])}},ra(OY,"GitGraphTokenBuilder"),OY),kWn={parser:{TokenBuilder:ra(()=>new pVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function RWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),oVi,kWn);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}ra(RWn,"createGitGraphServices");var LY,gVi=(LY=class extends rL{constructor(){super(["info","showInfo"])}},ra(LY,"InfoTokenBuilder"),LY),IWn={parser:{TokenBuilder:ra(()=>new gVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function NWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),rVi,IWn);return t.ServiceRegistry.register(r),{shared:t,Info:r}}ra(NWn,"createInfoServices");var DY,mVi=(DY=class extends rL{constructor(){super(["packet"])}},ra(DY,"PacketTokenBuilder"),DY),OWn={parser:{TokenBuilder:ra(()=>new mVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function LWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),iVi,OWn);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}ra(LWn,"createPacketServices");var MY,bVi=(MY=class extends rL{constructor(){super(["pie","showData"])}},ra(MY,"PieTokenBuilder"),MY),PY,yVi=(PY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},ra(PY,"PieValueConverter"),PY),DWn={parser:{TokenBuilder:ra(()=>new bVi,"TokenBuilder"),ValueConverter:ra(()=>new yVi,"ValueConverter")}};function MWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),aVi,DWn);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}ra(MWn,"createPieServices");var BY,vVi=(BY=class extends rL{constructor(){super(["architecture"])}},ra(BY,"ArchitectureTokenBuilder"),BY),FY,_Vi=(FY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(t.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(t.name==="ARCH_TITLE")return r.replace(/[[\]]/g,"").trim()}},ra(FY,"ArchitectureValueConverter"),FY),PWn={parser:{TokenBuilder:ra(()=>new vVi,"TokenBuilder"),ValueConverter:ra(()=>new _Vi,"ValueConverter")}};function BWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),sVi,PWn);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}ra(BWn,"createArchitectureServices");var $Y,wVi=($Y=class extends rL{constructor(){super(["radar-beta"])}},ra($Y,"RadarTokenBuilder"),$Y),FWn={parser:{TokenBuilder:ra(()=>new wVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function $Wn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),lVi,FWn);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}ra($Wn,"createRadarServices");var UY,EVi=(UY=class extends rL{constructor(){super(["treemap"])}},ra(UY,"TreemapTokenBuilder"),UY),xVi=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,zY,SVi=(zY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(t.name==="SEPARATOR")return r.substring(1,r.length-1);if(t.name==="STRING2")return r.substring(1,r.length-1);if(t.name==="INDENTATION")return r.length;if(t.name==="ClassDef"){if(typeof r!="string")return r;const s=xVi.exec(r);if(s)return{$type:"ClassDefStatement",className:s[1],styleText:s[2]||void 0}}}},ra(zY,"TreemapValueConverter"),zY);function UWn(e){const t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){const a={Treemap:t.checkSingleRoot.bind(t)};r.register(a,t)}}ra(UWn,"registerValidationChecks");var GY,TVi=(GY=class{checkSingleRoot(t,r){let a;for(const s of t.TreemapRows)s.item&&(a===void 0&&s.indent===void 0?a=0:s.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}):a!==void 0&&a>=parseInt(s.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}))}},ra(GY,"TreemapValidator"),GY),zWn={parser:{TokenBuilder:ra(()=>new EVi,"TokenBuilder"),ValueConverter:ra(()=>new SVi,"ValueConverter")},validation:{TreemapValidator:ra(()=>new TVi,"TreemapValidator")}};function GWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),cVi,zWn);return t.ServiceRegistry.register(r),UWn(r),{shared:t,Treemap:r}}ra(GWn,"createTreemapServices");var c7={},CVi={info:ra(async()=>{const{createInfoServices:e}=await ea(async()=>{const{createInfoServices:r}=await Promise.resolve().then(()=>vca);return{createInfoServices:r}},void 0),t=e().Info.parser.LangiumParser;c7.info=t},"info"),packet:ra(async()=>{const{createPacketServices:e}=await ea(async()=>{const{createPacketServices:r}=await Promise.resolve().then(()=>_ca);return{createPacketServices:r}},void 0),t=e().Packet.parser.LangiumParser;c7.packet=t},"packet"),pie:ra(async()=>{const{createPieServices:e}=await ea(async()=>{const{createPieServices:r}=await Promise.resolve().then(()=>wca);return{createPieServices:r}},void 0),t=e().Pie.parser.LangiumParser;c7.pie=t},"pie"),architecture:ra(async()=>{const{createArchitectureServices:e}=await ea(async()=>{const{createArchitectureServices:r}=await Promise.resolve().then(()=>Eca);return{createArchitectureServices:r}},void 0),t=e().Architecture.parser.LangiumParser;c7.architecture=t},"architecture"),gitGraph:ra(async()=>{const{createGitGraphServices:e}=await ea(async()=>{const{createGitGraphServices:r}=await Promise.resolve().then(()=>xca);return{createGitGraphServices:r}},void 0),t=e().GitGraph.parser.LangiumParser;c7.gitGraph=t},"gitGraph"),radar:ra(async()=>{const{createRadarServices:e}=await ea(async()=>{const{createRadarServices:r}=await Promise.resolve().then(()=>Sca);return{createRadarServices:r}},void 0),t=e().Radar.parser.LangiumParser;c7.radar=t},"radar"),treemap:ra(async()=>{const{createTreemapServices:e}=await ea(async()=>{const{createTreemapServices:r}=await Promise.resolve().then(()=>Tca);return{createTreemapServices:r}},void 0),t=e().Treemap.parser.LangiumParser;c7.treemap=t},"treemap")};async function iL(e,t){const r=CVi[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);c7[e]||await r();const s=c7[e].parse(t);if(s.lexerErrors.length>0||s.parserErrors.length>0)throw new AVi(s);return s.value}ra(iL,"parse");var qY,AVi=(qY=class extends Error{constructor(t){const r=t.lexerErrors.map(s=>s.message).join(`
`),a=t.parserErrors.map(s=>s.message).join(`
`);super(`Parsing failed: ${r} ${a}`),this.result=t}},ra(qY,"MermaidParseError"),qY),th={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},kVi=Cc.gitGraph,K$=X(()=>cv({...kVi,...$c().gitGraph}),"getConfig"),oa=new gYn(()=>{const e=K$(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function Wke(){return tBn({length:7})}X(Wke,"getID");function qWn(e,t){const r=Object.create(null);return e.reduce((a,s)=>{const o=t(s);return r[o]||(r[o]=!0,a.push(s)),a},[])}X(qWn,"uniqBy");var RVi=X(function(e){oa.records.direction=e},"setDirection"),IVi=X(function(e){it.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{oa.records.options=JSON.parse(e)}catch(t){it.error("error while parsing gitGraph options",t.message)}},"setOptions"),NVi=X(function(){return oa.records.options},"getOptions"),OVi=X(function(e){let t=e.msg,r=e.id;const a=e.type;let s=e.tags;it.info("commit",t,r,a,s),it.debug("Entering commit:",t,r,a,s);const o=K$();r=Ti.sanitizeText(r,o),t=Ti.sanitizeText(t,o),s=s==null?void 0:s.map(h=>Ti.sanitizeText(h,o));const u={id:r||oa.records.seq+"-"+Wke(),message:t,seq:oa.records.seq++,type:a??th.NORMAL,tags:s??[],parents:oa.records.head==null?[]:[oa.records.head.id],branch:oa.records.currBranch};oa.records.head=u,it.info("main branch",o.mainBranchName),oa.records.commits.has(u.id)&&it.warn(`Commit ID ${u.id} already exists`),oa.records.commits.set(u.id,u),oa.records.branches.set(oa.records.currBranch,u.id),it.debug("in pushCommit "+u.id)},"commit"),LVi=X(function(e){let t=e.name;const r=e.order;if(t=Ti.sanitizeText(t,K$()),oa.records.branches.has(t))throw 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}")`);oa.records.branches.set(t,oa.records.head!=null?oa.records.head.id:null),oa.records.branchConfig.set(t,{name:t,order:r}),HWn(t),it.debug("in createBranch")},"branch"),DVi=X(e=>{let t=e.branch,r=e.id;const a=e.type,s=e.tags,o=K$();t=Ti.sanitizeText(t,o),r&&(r=Ti.sanitizeText(r,o));const u=oa.records.branches.get(oa.records.currBranch),h=oa.records.branches.get(t),f=u?oa.records.commits.get(u):void 0,p=h?oa.records.commits.get(h):void 0;if(f&&p&&f.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(oa.records.currBranch===t){const _=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},_}if(f===void 0||!f){const _=new Error(`Incorrect usage of "merge". Current branch (${oa.records.currBranch})has no commits`);throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},_}if(!oa.records.branches.has(t)){const _=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},_}if(p===void 0||!p){const _=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},_}if(f===p){const _=new Error('Incorrect usage of "merge". Both branches have same head');throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},_}if(r&&oa.records.commits.has(r)){const _=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw _.hash={text:`merge ${t} ${r} ${a} ${s==null?void 0:s.join(" ")}`,token:`merge ${t} ${r} ${a} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${a} ${s==null?void 0:s.join(" ")}`]},_}const m=h||"",b={id:r||`${oa.records.seq}-${Wke()}`,message:`merged branch ${t} into ${oa.records.currBranch}`,seq:oa.records.seq++,parents:oa.records.head==null?[]:[oa.records.head.id,m],branch:oa.records.currBranch,type:th.MERGE,customType:a,customId:!!r,tags:s??[]};oa.records.head=b,oa.records.commits.set(b.id,b),oa.records.branches.set(oa.records.currBranch,b.id),it.debug(oa.records.branches),it.debug("in mergeBranch")},"merge"),MVi=X(function(e){let t=e.id,r=e.targetId,a=e.tags,s=e.parent;it.debug("Entering cherryPick:",t,r,a);const o=K$();if(t=Ti.sanitizeText(t,o),r=Ti.sanitizeText(r,o),a=a==null?void 0:a.map(f=>Ti.sanitizeText(f,o)),s=Ti.sanitizeText(s,o),!t||!oa.records.commits.has(t)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},f}const u=oa.records.commits.get(t);if(u===void 0||!u)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(u.parents)&&u.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const h=u.branch;if(u.type===th.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!oa.records.commits.has(r)){if(h===oa.records.currBranch){const b=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const f=oa.records.branches.get(oa.records.currBranch);if(f===void 0||!f){const b=new Error(`Incorrect usage of "cherry-pick". Current branch (${oa.records.currBranch})has no commits`);throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const p=oa.records.commits.get(f);if(p===void 0||!p){const b=new Error(`Incorrect usage of "cherry-pick". Current branch (${oa.records.currBranch})has no commits`);throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const m={id:oa.records.seq+"-"+Wke(),message:`cherry-picked ${u==null?void 0:u.message} into ${oa.records.currBranch}`,seq:oa.records.seq++,parents:oa.records.head==null?[]:[oa.records.head.id,u.id],branch:oa.records.currBranch,type:th.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${u.id}${u.type===th.MERGE?`|parent:${s}`:""}`]};oa.records.head=m,oa.records.commits.set(m.id,m),oa.records.branches.set(oa.records.currBranch,m.id),it.debug(oa.records.branches),it.debug("in cherryPick")}},"cherryPick"),HWn=X(function(e){if(e=Ti.sanitizeText(e,K$()),oa.records.branches.has(e)){oa.records.currBranch=e;const t=oa.records.branches.get(oa.records.currBranch);t===void 0||!t?oa.records.head=null:oa.records.head=oa.records.commits.get(t)??null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");function gut(e,t,r){const a=e.indexOf(t);a===-1?e.push(r):e.splice(a,1,r)}X(gut,"upsert");function Omt(e){const t=e.reduce((s,o)=>s.seq>o.seq?s:o,e[0]);let r="";e.forEach(function(s){s===t?r+="	*":r+="	|"});const a=[r,t.id,t.seq];for(const s in oa.records.branches)oa.records.branches.get(s)===t.id&&a.push(s);if(it.debug(a.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){const s=oa.records.commits.get(t.parents[0]);gut(e,t,s),t.parents[1]&&e.push(oa.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){const s=oa.records.commits.get(t.parents[0]);gut(e,t,s)}}e=qWn(e,s=>s.id),Omt(e)}X(Omt,"prettyPrintCommitHistory");var PVi=X(function(){it.debug(oa.records.commits);const e=VWn()[0];Omt([e])},"prettyPrint"),BVi=X(function(){oa.reset(),M1()},"clear"),FVi=X(function(){return[...oa.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),$Vi=X(function(){return oa.records.branches},"getBranches"),UVi=X(function(){return oa.records.commits},"getCommits"),VWn=X(function(){const e=[...oa.records.commits.values()];return e.forEach(function(t){it.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),zVi=X(function(){return oa.records.currBranch},"getCurrentBranch"),GVi=X(function(){return oa.records.direction},"getDirection"),qVi=X(function(){return oa.records.head},"getHead"),YWn={commitType:th,getConfig:K$,setDirection:RVi,setOptions:IVi,getOptions:NVi,commit:OVi,branch:LVi,merge:DVi,cherryPick:MVi,checkout:HWn,prettyPrint:PVi,clear:BVi,getBranchesAsObjArray:FVi,getBranches:$Vi,getCommits:UVi,getCommitsArray:VWn,getCurrentBranch:zVi,getDirection:GVi,getHead:qVi,setAccTitle:N1,getAccTitle:Mp,getAccDescription:Bp,setAccDescription:Pp,setDiagramTitle:Og,getDiagramTitle:P1},HVi=X((e,t)=>{z$(e,t),e.dir&&t.setDirection(e.dir);for(const r of e.statements)VVi(r,t)},"populate"),VVi=X((e,t)=>{const a={Commit:X(s=>t.commit(YVi(s)),"Commit"),Branch:X(s=>t.branch(jVi(s)),"Branch"),Merge:X(s=>t.merge(WVi(s)),"Merge"),Checkout:X(s=>t.checkout(KVi(s)),"Checkout"),CherryPicking:X(s=>t.cherryPick(XVi(s)),"CherryPicking")}[e.$type];a?a(e):it.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),YVi=X(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?th[e.type]:th.NORMAL,tags:e.tags??void 0}),"parseCommit"),jVi=X(e=>({name:e.name,order:e.order??0}),"parseBranch"),WVi=X(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?th[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),KVi=X(e=>e.branch,"parseCheckout"),XVi=X(e=>{var r;return{id:e.id,targetId:"",tags:((r=e.tags)==null?void 0:r.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),QVi={parse:X(async e=>{const t=await iL("gitGraph",e);it.debug(t),HVi(t,YWn)},"parse")},Xit=nn(),A1=Xit==null?void 0:Xit.gitGraph,vO=10,_O=40,IC=4,b7=2,UB=8,G2=new Map,e_=new Map,ITe=30,Nae=new Map,NTe=[],nO=0,Rc="LR",ZVi=X(()=>{G2.clear(),e_.clear(),Nae.clear(),nO=0,NTe=[],Rc="LR"},"clear"),jWn=X(e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(a=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=a.trim(),t.appendChild(s)}),t},"drawText"),WWn=X(e=>{let t,r,a;return Rc==="BT"?(r=X((s,o)=>s<=o,"comparisonFunc"),a=1/0):(r=X((s,o)=>s>=o,"comparisonFunc"),a=0),e.forEach(s=>{var u,h;const o=Rc==="TB"||Rc=="BT"?(u=e_.get(s))==null?void 0:u.y:(h=e_.get(s))==null?void 0:h.x;o!==void 0&&r(o,a)&&(t=s,a=o)}),t},"findClosestParent"),JVi=X(e=>{let t="",r=1/0;return e.forEach(a=>{const s=e_.get(a).y;s<=r&&(t=a,r=s)}),t||void 0},"findClosestParentBT"),eYi=X((e,t,r)=>{let a=r,s=r;const o=[];e.forEach(u=>{const h=t.get(u);if(!h)throw new Error(`Commit not found for key ${u}`);h.parents.length?(a=nYi(h),s=Math.max(a,s)):o.push(h),rYi(h,a)}),a=s,o.forEach(u=>{iYi(u,a,r)}),e.forEach(u=>{const h=t.get(u);if(h!=null&&h.parents.length){const f=JVi(h.parents);a=e_.get(f).y-_O,a<=s&&(s=a);const p=G2.get(h.branch).pos,m=a-vO;e_.set(h.id,{x:p,y:m})}})},"setParallelBTPos"),tYi=X(e=>{var a;const t=WWn(e.parents.filter(s=>s!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);const r=(a=e_.get(t))==null?void 0:a.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),nYi=X(e=>tYi(e)+_O,"calculateCommitPosition"),rYi=X((e,t)=>{const r=G2.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);const a=r.pos,s=t+vO;return e_.set(e.id,{x:a,y:s}),{x:a,y:s}},"setCommitPosition"),iYi=X((e,t,r)=>{const a=G2.get(e.branch);if(!a)throw new Error(`Branch not found for commit ${e.id}`);const s=t+r,o=a.pos;e_.set(e.id,{x:o,y:s})},"setRootPosition"),aYi=X((e,t,r,a,s,o)=>{if(o===th.HIGHLIGHT)e.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${s%UB} ${a}-outer`),e.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${s%UB} ${a}-inner`);else if(o===th.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`);else{const u=e.append("circle");if(u.attr("cx",r.x),u.attr("cy",r.y),u.attr("r",t.type===th.MERGE?9:10),u.attr("class",`commit ${t.id} commit${s%UB}`),o===th.MERGE){const h=e.append("circle");h.attr("cx",r.x),h.attr("cy",r.y),h.attr("r",6),h.attr("class",`commit ${a} ${t.id} commit${s%UB}`)}o===th.REVERSE&&e.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${a} ${t.id} commit${s%UB}`)}},"drawCommitBullet"),sYi=X((e,t,r,a)=>{var s;if(t.type!==th.CHERRY_PICK&&(t.customId&&t.type===th.MERGE||t.type!==th.MERGE)&&(A1!=null&&A1.showCommitLabel)){const o=e.append("g"),u=o.insert("rect").attr("class","commit-label-bkg"),h=o.append("text").attr("x",a).attr("y",r.y+25).attr("class","commit-label").text(t.id),f=(s=h.node())==null?void 0:s.getBBox();if(f&&(u.attr("x",r.posWithOffset-f.width/2-b7).attr("y",r.y+13.5).attr("width",f.width+2*b7).attr("height",f.height+2*b7),Rc==="TB"||Rc==="BT"?(u.attr("x",r.x-(f.width+4*IC+5)).attr("y",r.y-12),h.attr("x",r.x-(f.width+4*IC)).attr("y",r.y+f.height-12)):h.attr("x",r.posWithOffset-f.width/2),A1.rotateCommitLabel))if(Rc==="TB"||Rc==="BT")h.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),u.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{const p=-7.5-(f.width+10)/25*9.5,m=10+f.width/25*8.5;o.attr("transform","translate("+p+", "+m+") rotate(-45, "+a+", "+r.y+")")}}},"drawCommitLabel"),oYi=X((e,t,r,a)=>{var s;if(t.tags.length>0){let o=0,u=0,h=0;const f=[];for(const p of t.tags.reverse()){const m=e.insert("polygon"),b=e.append("circle"),_=e.append("text").attr("y",r.y-16-o).attr("class","tag-label").text(p),w=(s=_.node())==null?void 0:s.getBBox();if(!w)throw new Error("Tag bbox not found");u=Math.max(u,w.width),h=Math.max(h,w.height),_.attr("x",r.posWithOffset-w.width/2),f.push({tag:_,hole:b,rect:m,yOffset:o}),o+=20}for(const{tag:p,hole:m,rect:b,yOffset:_}of f){const w=h/2,S=r.y-19.2-_;if(b.attr("class","tag-label-bkg").attr("points",`
      ${a-u/2-IC/2},${S+b7}  
      ${a-u/2-IC/2},${S-b7}
      ${r.posWithOffset-u/2-IC},${S-w-b7}
      ${r.posWithOffset+u/2+IC},${S-w-b7}
      ${r.posWithOffset+u/2+IC},${S+w+b7}
      ${r.posWithOffset-u/2-IC},${S+w+b7}`),m.attr("cy",S).attr("cx",a-u/2+IC/2).attr("r",1.5).attr("class","tag-hole"),Rc==="TB"||Rc==="BT"){const C=a+_;b.attr("class","tag-label-bkg").attr("points",`
        ${r.x},${C+2}
        ${r.x},${C-2}
        ${r.x+vO},${C-w-2}
        ${r.x+vO+u+4},${C-w-2}
        ${r.x+vO+u+4},${C+w+2}
        ${r.x+vO},${C+w+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),m.attr("cx",r.x+IC/2).attr("cy",C).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),p.attr("x",r.x+5).attr("y",C+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+a+")")}}}},"drawCommitTags"),lYi=X(e=>{switch(e.customType??e.type){case th.NORMAL:return"commit-normal";case th.REVERSE:return"commit-reverse";case th.HIGHLIGHT:return"commit-highlight";case th.MERGE:return"commit-merge";case th.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),cYi=X((e,t,r,a)=>{const s={x:0,y:0};if(e.parents.length>0){const o=WWn(e.parents);if(o){const u=a.get(o)??s;return t==="TB"?u.y+_O:t==="BT"?(a.get(e.id)??s).y-_O:u.x+_O}}else return t==="TB"?ITe:t==="BT"?(a.get(e.id)??s).y-_O:0;return 0},"calculatePosition"),uYi=X((e,t,r)=>{var u,h;const a=Rc==="BT"&&r?t:t+vO,s=Rc==="TB"||Rc==="BT"?a:(u=G2.get(e.branch))==null?void 0:u.pos,o=Rc==="TB"||Rc==="BT"?(h=G2.get(e.branch))==null?void 0:h.pos:a;if(o===void 0||s===void 0)throw new Error(`Position were undefined for commit ${e.id}`);return{x:o,y:s,posWithOffset:a}},"getCommitPosition"),J3n=X((e,t,r)=>{if(!A1)throw new Error("GitGraph config not found");const a=e.append("g").attr("class","commit-bullets"),s=e.append("g").attr("class","commit-labels");let o=Rc==="TB"||Rc==="BT"?ITe:0;const u=[...t.keys()],h=(A1==null?void 0:A1.parallelCommits)??!1,f=X((m,b)=>{var S,C;const _=(S=t.get(m))==null?void 0:S.seq,w=(C=t.get(b))==null?void 0:C.seq;return _!==void 0&&w!==void 0?_-w:0},"sortKeys");let p=u.sort(f);Rc==="BT"&&(h&&eYi(p,t,o),p=p.reverse()),p.forEach(m=>{var w;const b=t.get(m);if(!b)throw new Error(`Commit not found for key ${m}`);h&&(o=cYi(b,Rc,o,e_));const _=uYi(b,o,h);if(r){const S=lYi(b),C=b.customType??b.type,A=((w=G2.get(b.branch))==null?void 0:w.index)??0;aYi(a,b,_,S,A,C),sYi(s,b,_,o),oYi(s,b,_,o)}Rc==="TB"||Rc==="BT"?e_.set(b.id,{x:_.x,y:_.posWithOffset}):e_.set(b.id,{x:_.posWithOffset,y:_.y}),o=Rc==="BT"&&h?o+_O:o+_O+vO,o>nO&&(nO=o)})},"drawCommits"),hYi=X((e,t,r,a,s)=>{const u=(Rc==="TB"||Rc==="BT"?r.x<a.x:r.y<a.y)?t.branch:e.branch,h=X(p=>p.branch===u,"isOnBranchToGetCurve"),f=X(p=>p.seq>e.seq&&p.seq<t.seq,"isBetweenCommits");return[...s.values()].some(p=>f(p)&&h(p))},"shouldRerouteArrow"),Oae=X((e,t,r=0)=>{const a=e+Math.abs(e-t)/2;if(r>5)return a;if(NTe.every(u=>Math.abs(u-a)>=10))return NTe.push(a),a;const o=Math.abs(e-t);return Oae(e,t-o/5,r+1)},"findLane"),dYi=X((e,t,r,a)=>{var w,S,C,A,k;const s=e_.get(t.id),o=e_.get(r.id);if(s===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);const u=hYi(t,r,s,o,a);let h="",f="",p=0,m=0,b=(w=G2.get(r.branch))==null?void 0:w.index;r.type===th.MERGE&&t.id!==r.parents[0]&&(b=(S=G2.get(t.branch))==null?void 0:S.index);let _;if(u){h="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",p=10,m=10;const I=s.y<o.y?Oae(s.y,o.y):Oae(o.y,s.y),N=s.x<o.x?Oae(s.x,o.x):Oae(o.x,s.x);Rc==="TB"?s.x<o.x?_=`M ${s.x} ${s.y} L ${N-p} ${s.y} ${f} ${N} ${s.y+m} L ${N} ${o.y-p} ${h} ${N+m} ${o.y} L ${o.x} ${o.y}`:(b=(C=G2.get(t.branch))==null?void 0:C.index,_=`M ${s.x} ${s.y} L ${N+p} ${s.y} ${h} ${N} ${s.y+m} L ${N} ${o.y-p} ${f} ${N-m} ${o.y} L ${o.x} ${o.y}`):Rc==="BT"?s.x<o.x?_=`M ${s.x} ${s.y} L ${N-p} ${s.y} ${h} ${N} ${s.y-m} L ${N} ${o.y+p} ${f} ${N+m} ${o.y} L ${o.x} ${o.y}`:(b=(A=G2.get(t.branch))==null?void 0:A.index,_=`M ${s.x} ${s.y} L ${N+p} ${s.y} ${f} ${N} ${s.y-m} L ${N} ${o.y+p} ${h} ${N-m} ${o.y} L ${o.x} ${o.y}`):s.y<o.y?_=`M ${s.x} ${s.y} L ${s.x} ${I-p} ${h} ${s.x+m} ${I} L ${o.x-p} ${I} ${f} ${o.x} ${I+m} L ${o.x} ${o.y}`:(b=(k=G2.get(t.branch))==null?void 0:k.index,_=`M ${s.x} ${s.y} L ${s.x} ${I+p} ${f} ${s.x+m} ${I} L ${o.x-p} ${I} ${h} ${o.x} ${I-m} L ${o.x} ${o.y}`)}else h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,Rc==="TB"?(s.x<o.x&&(r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${h} ${s.x+m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${f} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x>o.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${f} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x+p} ${s.y} ${h} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):Rc==="BT"?(s.x<o.x&&(r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${f} ${s.x+m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`),s.x>o.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${h} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.y<o.y&&(r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${f} ${o.x} ${s.y+m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${h} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y>o.y&&(r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${f} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));if(_===void 0)throw new Error("Line definition not found");e.append("path").attr("d",_).attr("class","arrow arrow"+b%UB)},"drawArrow"),fYi=X((e,t)=>{const r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(a=>{const s=t.get(a);s.parents&&s.parents.length>0&&s.parents.forEach(o=>{dYi(r,t.get(o),s,t)})})},"drawArrows"),pYi=X((e,t)=>{const r=e.append("g");t.forEach((a,s)=>{var S;const o=s%UB,u=(S=G2.get(a.name))==null?void 0:S.pos;if(u===void 0)throw new Error(`Position not found for branch ${a.name}`);const h=r.append("line");h.attr("x1",0),h.attr("y1",u),h.attr("x2",nO),h.attr("y2",u),h.attr("class","branch branch"+o),Rc==="TB"?(h.attr("y1",ITe),h.attr("x1",u),h.attr("y2",nO),h.attr("x2",u)):Rc==="BT"&&(h.attr("y1",nO),h.attr("x1",u),h.attr("y2",ITe),h.attr("x2",u)),NTe.push(u);const f=a.name,p=jWn(f),m=r.insert("rect"),_=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+o);_.node().appendChild(p);const w=p.getBBox();m.attr("class","branchLabelBkg label"+o).attr("rx",4).attr("ry",4).attr("x",-w.width-4-((A1==null?void 0:A1.rotateCommitLabel)===!0?30:0)).attr("y",-w.height/2+8).attr("width",w.width+18).attr("height",w.height+4),_.attr("transform","translate("+(-w.width-14-((A1==null?void 0:A1.rotateCommitLabel)===!0?30:0))+", "+(u-w.height/2-1)+")"),Rc==="TB"?(m.attr("x",u-w.width/2-10).attr("y",0),_.attr("transform","translate("+(u-w.width/2-5)+", 0)")):Rc==="BT"?(m.attr("x",u-w.width/2-10).attr("y",nO),_.attr("transform","translate("+(u-w.width/2-5)+", "+nO+")")):m.attr("transform","translate(-19, "+(u-w.height/2)+")")})},"drawBranches"),gYi=X(function(e,t,r,a,s){return G2.set(e,{pos:t,index:r}),t+=50+(s?40:0)+(Rc==="TB"||Rc==="BT"?a.width/2:0),t},"setBranchPosition"),mYi=X(function(e,t,r,a){if(ZVi(),it.debug("in gitgraph renderer",e+`
`,"id:",t,r),!A1)throw new Error("GitGraph config not found");const s=A1.rotateCommitLabel??!1,o=a.db;Nae=o.getCommits();const u=o.getBranchesAsObjArray();Rc=o.getDirection();const h=gn(`[id="${t}"]`);let f=0;u.forEach((p,m)=>{var A;const b=jWn(p.name),_=h.append("g"),w=_.insert("g").attr("class","branchLabel"),S=w.insert("g").attr("class","label branch-label");(A=S.node())==null||A.appendChild(b);const C=b.getBBox();f=gYi(p.name,f,m,C,s),S.remove(),w.remove(),_.remove()}),J3n(h,Nae,!1),A1.showBranches&&pYi(h,u),fYi(h,Nae),J3n(h,Nae,!0),Vo.insertTitle(h,"gitTitleText",A1.titleTopMargin??0,o.getDiagramTitle()),TLn(void 0,h,A1.diagramPadding,A1.useMaxWidth)},"draw"),bYi={draw:mYi},yYi=X(e=>`
  .commit-id,
  .commit-msg,
  .branch-label {
    fill: lightgrey;
    color: lightgrey;
    font-family: 'trebuchet ms', verdana, arial, sans-serif;
    font-family: var(--mermaid-font-family);
  }
  ${[0,1,2,3,4,5,6,7].map(t=>`
        .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; }
        .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
        .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
        .label${t}  { fill: ${e["git"+t]}; }
        .arrow${t} { stroke: ${e["git"+t]}; }
        `).join(`
`)}

  .branch {
    stroke-width: 1;
    stroke: ${e.lineColor};
    stroke-dasharray: 2;
  }
  .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
  .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
  .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
  .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
  .tag-hole { fill: ${e.textColor}; }

  .commit-merge {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
  }
  .commit-reverse {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
    stroke-width: 3;
  }
  .commit-highlight-outer {
  }
  .commit-highlight-inner {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
  }

  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
  .gitTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
`,"getStyles"),vYi=yYi,_Yi={parser:QVi,db:YWn,renderer:bYi,styles:vYi};const wYi=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Yi},Symbol.toStringTag,{value:"Module"}));var KWn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r="day";return function(a,s,o){var u=function(p){return p.add(4-p.isoWeekday(),r)},h=s.prototype;h.isoWeekYear=function(){return u(this).year()},h.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),r);var m,b,_,w,S=u(this),C=(m=this.isoWeekYear(),b=this.$u,_=(b?o.utc:o)().year(m).startOf("year"),w=4-_.isoWeekday(),_.isoWeekday()>4&&(w+=7),_.add(w,r));return S.diff(C,"week")+1},h.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var f=h.startOf;h.startOf=function(p,m){var b=this.$utils(),_=!!b.u(m)||m;return b.p(p)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):f.bind(this)(p,m)}}})})(KWn);var EYi=KWn.exports;const XWn=O1(EYi);var QWn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r,a,s=1e3,o=6e4,u=36e5,h=864e5,f=/\[([^\]]+)]|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,p=31536e6,m=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:p,months:m,days:h,hours:u,minutes:o,seconds:s,milliseconds:1,weeks:6048e5},w=function(M){return M instanceof L},S=function(M,F,U){return new L(M,U,F.$l)},C=function(M){return a.p(M)+"s"},A=function(M){return M<0},k=function(M){return A(M)?Math.ceil(M):Math.floor(M)},I=function(M){return Math.abs(M)},N=function(M,F){return M?A(M)?{negative:!0,format:""+I(M)+F}:{negative:!1,format:""+M+F}:{negative:!1,format:""}},L=function(){function M(U,$,G){var B=this;if(this.$d={},this.$l=G,U===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return S(U*_[C($)],this);if(typeof U=="number")return this.$ms=U,this.parseFromMilliseconds(),this;if(typeof U=="object")return Object.keys(U).forEach(function(Y){B.$d[C(Y)]=U[Y]}),this.calMilliseconds(),this;if(typeof U=="string"){var Z=U.match(b);if(Z){var z=Z.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=z[0],this.$d.months=z[1],this.$d.weeks=z[2],this.$d.days=z[3],this.$d.hours=z[4],this.$d.minutes=z[5],this.$d.seconds=z[6],this.calMilliseconds(),this}}return this}var F=M.prototype;return F.calMilliseconds=function(){var U=this;this.$ms=Object.keys(this.$d).reduce(function($,G){return $+(U.$d[G]||0)*_[G]},0)},F.parseFromMilliseconds=function(){var U=this.$ms;this.$d.years=k(U/p),U%=p,this.$d.months=k(U/m),U%=m,this.$d.days=k(U/h),U%=h,this.$d.hours=k(U/u),U%=u,this.$d.minutes=k(U/o),U%=o,this.$d.seconds=k(U/s),U%=s,this.$d.milliseconds=U},F.toISOString=function(){var U=N(this.$d.years,"Y"),$=N(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var B=N(G,"D"),Z=N(this.$d.hours,"H"),z=N(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1e3,Y=Math.round(1e3*Y)/1e3);var W=N(Y,"S"),Q=U.negative||$.negative||B.negative||Z.negative||z.negative||W.negative,V=Z.format||z.format||W.format?"T":"",j=(Q?"-":"")+"P"+U.format+$.format+B.format+V+Z.format+z.format+W.format;return j==="P"||j==="-P"?"P0D":j},F.toJSON=function(){return this.toISOString()},F.format=function(U){var $=U||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return $.replace(f,function(B,Z){return Z||String(G[B])})},F.as=function(U){return this.$ms/_[C(U)]},F.get=function(U){var $=this.$ms,G=C(U);return G==="milliseconds"?$%=1e3:$=G==="weeks"?k($/_[G]):this.$d[G],$||0},F.add=function(U,$,G){var B;return B=$?U*_[C($)]:w(U)?U.$ms:S(U,this).$ms,S(this.$ms+B*(G?-1:1),this)},F.subtract=function(U,$){return this.add(U,$,!0)},F.locale=function(U){var $=this.clone();return $.$l=U,$},F.clone=function(){return S(this.$ms,this)},F.humanize=function(U){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!U)},F.valueOf=function(){return this.asMilliseconds()},F.milliseconds=function(){return this.get("milliseconds")},F.asMilliseconds=function(){return this.as("milliseconds")},F.seconds=function(){return this.get("seconds")},F.asSeconds=function(){return this.as("seconds")},F.minutes=function(){return this.get("minutes")},F.asMinutes=function(){return this.as("minutes")},F.hours=function(){return this.get("hours")},F.asHours=function(){return this.as("hours")},F.days=function(){return this.get("days")},F.asDays=function(){return this.as("days")},F.weeks=function(){return this.get("weeks")},F.asWeeks=function(){return this.as("weeks")},F.months=function(){return this.get("months")},F.asMonths=function(){return this.as("months")},F.years=function(){return this.get("years")},F.asYears=function(){return this.as("years")},M}(),P=function(M,F,U){return M.add(F.years()*U,"y").add(F.months()*U,"M").add(F.days()*U,"d").add(F.hours()*U,"h").add(F.minutes()*U,"m").add(F.seconds()*U,"s").add(F.milliseconds()*U,"ms")};return function(M,F,U){r=U,a=U().$utils(),U.duration=function(B,Z){var z=U.locale();return S(B,{$l:z},Z)},U.isDuration=w;var $=F.prototype.add,G=F.prototype.subtract;F.prototype.add=function(B,Z){return w(B)?P(this,B,1):$.bind(this)(B,Z)},F.prototype.subtract=function(B,Z){return w(B)?P(this,B,-1):G.bind(this)(B,Z)}}})})(QWn);var xYi=QWn.exports;const SYi=O1(xYi);var mut=function(){var e=X(function(z,Y,W,Q){for(W=W||{},Q=z.length;Q--;W[z[Q]]=Y);return W},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],a=[1,27],s=[1,28],o=[1,29],u=[1,30],h=[1,31],f=[1,32],p=[1,33],m=[1,34],b=[1,9],_=[1,10],w=[1,11],S=[1,12],C=[1,13],A=[1,14],k=[1,15],I=[1,16],N=[1,19],L=[1,20],P=[1,21],M=[1,22],F=[1,23],U=[1,25],$=[1,35],G={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:X(function(Y,W,Q,V,j,ee,te){var ne=ee.length-1;switch(j){case 1:return ee[ne-1];case 2:this.$=[];break;case 3:ee[ne-1].push(ee[ne]),this.$=ee[ne-1];break;case 4:case 5:this.$=ee[ne];break;case 6:case 7:this.$=[];break;case 8:V.setWeekday("monday");break;case 9:V.setWeekday("tuesday");break;case 10:V.setWeekday("wednesday");break;case 11:V.setWeekday("thursday");break;case 12:V.setWeekday("friday");break;case 13:V.setWeekday("saturday");break;case 14:V.setWeekday("sunday");break;case 15:V.setWeekend("friday");break;case 16:V.setWeekend("saturday");break;case 17:V.setDateFormat(ee[ne].substr(11)),this.$=ee[ne].substr(11);break;case 18:V.enableInclusiveEndDates(),this.$=ee[ne].substr(18);break;case 19:V.TopAxis(),this.$=ee[ne].substr(8);break;case 20:V.setAxisFormat(ee[ne].substr(11)),this.$=ee[ne].substr(11);break;case 21:V.setTickInterval(ee[ne].substr(13)),this.$=ee[ne].substr(13);break;case 22:V.setExcludes(ee[ne].substr(9)),this.$=ee[ne].substr(9);break;case 23:V.setIncludes(ee[ne].substr(9)),this.$=ee[ne].substr(9);break;case 24:V.setTodayMarker(ee[ne].substr(12)),this.$=ee[ne].substr(12);break;case 27:V.setDiagramTitle(ee[ne].substr(6)),this.$=ee[ne].substr(6);break;case 28:this.$=ee[ne].trim(),V.setAccTitle(this.$);break;case 29:case 30:this.$=ee[ne].trim(),V.setAccDescription(this.$);break;case 31:V.addSection(ee[ne].substr(8)),this.$=ee[ne].substr(8);break;case 33:V.addTask(ee[ne-1],ee[ne]),this.$="task";break;case 34:this.$=ee[ne-1],V.setClickEvent(ee[ne-1],ee[ne],null);break;case 35:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne-1],ee[ne]);break;case 36:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne-1],null),V.setLink(ee[ne-2],ee[ne]);break;case 37:this.$=ee[ne-3],V.setClickEvent(ee[ne-3],ee[ne-2],ee[ne-1]),V.setLink(ee[ne-3],ee[ne]);break;case 38:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne],null),V.setLink(ee[ne-2],ee[ne-1]);break;case 39:this.$=ee[ne-3],V.setClickEvent(ee[ne-3],ee[ne-1],ee[ne]),V.setLink(ee[ne-3],ee[ne-2]);break;case 40:this.$=ee[ne-1],V.setLink(ee[ne-1],ee[ne]);break;case 41:case 47:this.$=ee[ne-1]+" "+ee[ne];break;case 42:case 43:case 45:this.$=ee[ne-2]+" "+ee[ne-1]+" "+ee[ne];break;case 44:case 46:this.$=ee[ne-3]+" "+ee[ne-2]+" "+ee[ne-1]+" "+ee[ne];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:18,20:p,21:m,22:b,23:_,24:w,25:S,26:C,27:A,28:k,29:I,30:N,31:L,33:P,35:M,36:F,37:24,38:U,40:$},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:18,20:p,21:m,22:b,23:_,24:w,25:S,26:C,27:A,28:k,29:I,30:N,31:L,33:P,35:M,36:F,37:24,38:U,40:$},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:X(function(Y,W){if(W.recoverable)this.trace(Y);else{var Q=new Error(Y);throw Q.hash=W,Q}},"parseError"),parse:X(function(Y){var W=this,Q=[0],V=[],j=[null],ee=[],te=this.table,ne="",se=0,ie=0,ge=2,ce=1,be=ee.slice.call(arguments,1),ve=Object.create(this.lexer),De={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(De.yy[ye]=this.yy[ye]);ve.setInput(Y,De.yy),De.yy.lexer=ve,De.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var Ee=ve.yylloc;ee.push(Ee);var he=ve.options&&ve.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(Je){Q.length=Q.length-2*Je,j.length=j.length-Je,ee.length=ee.length-Je}X(we,"popStack");function Ce(){var Je;return Je=V.pop()||ve.lex()||ce,typeof Je!="number"&&(Je instanceof Array&&(V=Je,Je=V.pop()),Je=W.symbols_[Je]||Je),Je}X(Ce,"lex");for(var Ie,Le,Fe,Ve,Oe={},Dt,ot,sn,Kt;;){if(Le=Q[Q.length-1],this.defaultActions[Le]?Fe=this.defaultActions[Le]:((Ie===null||typeof Ie>"u")&&(Ie=Ce()),Fe=te[Le]&&te[Le][Ie]),typeof Fe>"u"||!Fe.length||!Fe[0]){var Ft="";Kt=[];for(Dt in te[Le])this.terminals_[Dt]&&Dt>ge&&Kt.push("'"+this.terminals_[Dt]+"'");ve.showPosition?Ft="Parse error on line "+(se+1)+`:
`+ve.showPosition()+`
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":Ft="Parse error on line "+(se+1)+": Unexpected "+(Ie==ce?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(Ft,{text:ve.match,token:this.terminals_[Ie]||Ie,line:ve.yylineno,loc:Ee,expected:Kt})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+Ie);switch(Fe[0]){case 1:Q.push(Ie),j.push(ve.yytext),ee.push(ve.yylloc),Q.push(Fe[1]),Ie=null,ie=ve.yyleng,ne=ve.yytext,se=ve.yylineno,Ee=ve.yylloc;break;case 2:if(ot=this.productions_[Fe[1]][1],Oe.$=j[j.length-ot],Oe._$={first_line:ee[ee.length-(ot||1)].first_line,last_line:ee[ee.length-1].last_line,first_column:ee[ee.length-(ot||1)].first_column,last_column:ee[ee.length-1].last_column},he&&(Oe._$.range=[ee[ee.length-(ot||1)].range[0],ee[ee.length-1].range[1]]),Ve=this.performAction.apply(Oe,[ne,ie,se,De.yy,Fe[1],j,ee].concat(be)),typeof Ve<"u")return Ve;ot&&(Q=Q.slice(0,-1*ot*2),j=j.slice(0,-1*ot),ee=ee.slice(0,-1*ot)),Q.push(this.productions_[Fe[1]][0]),j.push(Oe.$),ee.push(Oe._$),sn=te[Q[Q.length-2]][Q[Q.length-1]],Q.push(sn);break;case 3:return!0}}return!0},"parse")},B=function(){var z={EOF:1,parseError:X(function(W,Q){if(this.yy.parser)this.yy.parser.parseError(W,Q);else throw new Error(W)},"parseError"),setInput:X(function(Y,W){return this.yy=W||this.yy||{},this._input=Y,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},"setInput"),input:X(function(){var Y=this._input[0];this.yytext+=Y,this.yyleng++,this.offset++,this.match+=Y,this.matched+=Y;var W=Y.match(/(?:\r\n?|\n).*/g);return W?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Y},"input"),unput:X(function(Y){var W=Y.length,Q=Y.split(/(?:\r\n?|\n)/g);this._input=Y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-W),this.offset-=W;var V=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),Q.length-1&&(this.yylineno-=Q.length-1);var j=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:Q?(Q.length===V.length?this.yylloc.first_column:0)+V[V.length-Q.length].length-Q[0].length:this.yylloc.first_column-W},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-W]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Y){this.unput(this.match.slice(Y))},"less"),pastInput:X(function(){var Y=this.matched.substr(0,this.matched.length-this.match.length);return(Y.length>20?"...":"")+Y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Y=this.match;return Y.length<20&&(Y+=this._input.substr(0,20-Y.length)),(Y.substr(0,20)+(Y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Y=this.pastInput(),W=new Array(Y.length+1).join("-");return Y+this.upcomingInput()+`
`+W+"^"},"showPosition"),test_match:X(function(Y,W){var Q,V,j;if(this.options.backtrack_lexer&&(j={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&&(j.yylloc.range=this.yylloc.range.slice(0))),V=Y[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Y[0].length},this.yytext+=Y[0],this.match+=Y[0],this.matches=Y,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(Y[0].length),this.matched+=Y[0],Q=this.performAction.call(this,this.yy,this,W,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var ee in j)this[ee]=j[ee];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Y,W,Q,V;this._more||(this.yytext="",this.match="");for(var j=this._currentRules(),ee=0;ee<j.length;ee++)if(Q=this._input.match(this.rules[j[ee]]),Q&&(!W||Q[0].length>W[0].length)){if(W=Q,V=ee,this.options.backtrack_lexer){if(Y=this.test_match(Q,j[ee]),Y!==!1)return Y;if(this._backtrack){W=!1;continue}else return!1}else if(!this.options.flex)break}return W?(Y=this.test_match(W,j[V]),Y!==!1?Y:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var W=this.next();return W||this.lex()},"lex"),begin:X(function(W){this.conditionStack.push(W)},"begin"),popState:X(function(){var W=this.conditionStack.length-1;return W>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(W){return W=this.conditionStack.length-1-Math.abs(W||0),W>=0?this.conditionStack[W]:"INITIAL"},"topState"),pushState:X(function(W){this.begin(W)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(W,Q,V,j){switch(V){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/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,/^(?: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,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,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],inclusive:!0}}};return z}();G.lexer=B;function Z(){this.yy={}}return X(Z,"Parser"),Z.prototype=G,G.Parser=Z,new Z}();mut.parser=mut;var TYi=mut;Fc.extend(XWn);Fc.extend(FAn);Fc.extend(PAn);var eTn={friday:5,saturday:6},tA="",Lmt="",Dmt=void 0,Mmt="",Yce=[],jce=[],Pmt=new Map,Bmt=[],OTe=[],Zj="",Fmt="",ZWn=["active","done","crit","milestone","vert"],$mt=[],Wce=!1,Umt=!1,zmt="sunday",LTe="saturday",but=0,CYi=X(function(){Bmt=[],OTe=[],Zj="",$mt=[],Wxe=0,vut=void 0,Kxe=void 0,mp=[],tA="",Lmt="",Fmt="",Dmt=void 0,Mmt="",Yce=[],jce=[],Wce=!1,Umt=!1,but=0,Pmt=new Map,M1(),zmt="sunday",LTe="saturday"},"clear"),AYi=X(function(e){Lmt=e},"setAxisFormat"),kYi=X(function(){return Lmt},"getAxisFormat"),RYi=X(function(e){Dmt=e},"setTickInterval"),IYi=X(function(){return Dmt},"getTickInterval"),NYi=X(function(e){Mmt=e},"setTodayMarker"),OYi=X(function(){return Mmt},"getTodayMarker"),LYi=X(function(e){tA=e},"setDateFormat"),DYi=X(function(){Wce=!0},"enableInclusiveEndDates"),MYi=X(function(){return Wce},"endDatesAreInclusive"),PYi=X(function(){Umt=!0},"enableTopAxis"),BYi=X(function(){return Umt},"topAxisEnabled"),FYi=X(function(e){Fmt=e},"setDisplayMode"),$Yi=X(function(){return Fmt},"getDisplayMode"),UYi=X(function(){return tA},"getDateFormat"),zYi=X(function(e){Yce=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),GYi=X(function(){return Yce},"getIncludes"),qYi=X(function(e){jce=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),HYi=X(function(){return jce},"getExcludes"),VYi=X(function(){return Pmt},"getLinks"),YYi=X(function(e){Zj=e,Bmt.push(e)},"addSection"),jYi=X(function(){return Bmt},"getSections"),WYi=X(function(){let e=tTn();const t=10;let r=0;for(;!e&&r<t;)e=tTn(),r++;return OTe=mp,OTe},"getTasks"),JWn=X(function(e,t,r,a){const s=e.format(t.trim()),o=e.format("YYYY-MM-DD");return a.includes(s)||a.includes(o)?!1:r.includes("weekends")&&(e.isoWeekday()===eTn[LTe]||e.isoWeekday()===eTn[LTe]+1)||r.includes(e.format("dddd").toLowerCase())?!0:r.includes(s)||r.includes(o)},"isInvalidDate"),KYi=X(function(e){zmt=e},"setWeekday"),XYi=X(function(){return zmt},"getWeekday"),QYi=X(function(e){LTe=e},"setWeekend"),eKn=X(function(e,t,r,a){if(!r.length||e.manualEndTime)return;let s;e.startTime instanceof Date?s=Fc(e.startTime):s=Fc(e.startTime,t,!0),s=s.add(1,"d");let o;e.endTime instanceof Date?o=Fc(e.endTime):o=Fc(e.endTime,t,!0);const[u,h]=ZYi(s,o,t,r,a);e.endTime=u.toDate(),e.renderEndTime=h},"checkTaskDates"),ZYi=X(function(e,t,r,a,s){let o=!1,u=null;for(;e<=t;)o||(u=t.toDate()),o=JWn(e,r,a,s),o&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,u]},"fixTaskDates"),yut=X(function(e,t,r){if(r=r.trim(),X(h=>{const f=h.trim();return f==="x"||f==="X"},"isTimestampFormat")(t)&&/^\d+$/.test(r))return new Date(Number(r));const o=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(o!==null){let h=null;for(const p of o.groups.ids.split(" ")){let m=X$(p);m!==void 0&&(!h||m.endTime>h.endTime)&&(h=m)}if(h)return h.endTime;const f=new Date;return f.setHours(0,0,0,0),f}let u=Fc(r,t.trim(),!0);if(u.isValid())return u.toDate();{it.debug("Invalid date:"+r),it.debug("With date format:"+t.trim());const h=new Date(r);if(h===void 0||isNaN(h.getTime())||h.getFullYear()<-1e4||h.getFullYear()>1e4)throw new Error("Invalid date:"+r);return h}},"getStartDate"),tKn=X(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),nKn=X(function(e,t,r,a=!1){r=r.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(o!==null){let m=null;for(const _ of o.groups.ids.split(" ")){let w=X$(_);w!==void 0&&(!m||w.startTime<m.startTime)&&(m=w)}if(m)return m.startTime;const b=new Date;return b.setHours(0,0,0,0),b}let u=Fc(r,t.trim(),!0);if(u.isValid())return a&&(u=u.add(1,"d")),u.toDate();let h=Fc(e);const[f,p]=tKn(r);if(!Number.isNaN(f)){const m=h.add(f,p);m.isValid()&&(h=m)}return h.toDate()},"getEndDate"),Wxe=0,lY=X(function(e){return e===void 0?(Wxe=Wxe+1,"task"+Wxe):e},"parseId"),JYi=X(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;const a=r.split(","),s={};Gmt(a,s,ZWn);for(let u=0;u<a.length;u++)a[u]=a[u].trim();let o="";switch(a.length){case 1:s.id=lY(),s.startTime=e.endTime,o=a[0];break;case 2:s.id=lY(),s.startTime=yut(void 0,tA,a[0]),o=a[1];break;case 3:s.id=lY(a[0]),s.startTime=yut(void 0,tA,a[1]),o=a[2];break}return o&&(s.endTime=nKn(s.startTime,tA,o,Wce),s.manualEndTime=Fc(o,"YYYY-MM-DD",!0).isValid(),eKn(s,tA,jce,Yce)),s},"compileData"),eji=X(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;const a=r.split(","),s={};Gmt(a,s,ZWn);for(let o=0;o<a.length;o++)a[o]=a[o].trim();switch(a.length){case 1:s.id=lY(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:a[0]};break;case 2:s.id=lY(),s.startTime={type:"getStartDate",startData:a[0]},s.endTime={data:a[1]};break;case 3:s.id=lY(a[0]),s.startTime={type:"getStartDate",startData:a[1]},s.endTime={data:a[2]};break}return s},"parseData"),vut,Kxe,mp=[],rKn={},tji=X(function(e,t){const r={section:Zj,type:Zj,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},a=eji(Kxe,t);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=Kxe,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.vert=a.vert,r.order=but,but++;const s=mp.push(r);Kxe=r.id,rKn[r.id]=s-1},"addTask"),X$=X(function(e){const t=rKn[e];return mp[t]},"findTaskById"),nji=X(function(e,t){const r={section:Zj,type:Zj,description:e,task:e,classes:[]},a=JYi(vut,t);r.startTime=a.startTime,r.endTime=a.endTime,r.id=a.id,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.vert=a.vert,vut=r,OTe.push(r)},"addTaskOrg"),tTn=X(function(){const e=X(function(r){const a=mp[r];let s="";switch(mp[r].raw.startTime.type){case"prevTaskEnd":{const o=X$(a.prevTaskId);a.startTime=o.endTime;break}case"getStartDate":s=yut(void 0,tA,mp[r].raw.startTime.startData),s&&(mp[r].startTime=s);break}return mp[r].startTime&&(mp[r].endTime=nKn(mp[r].startTime,tA,mp[r].raw.endTime.data,Wce),mp[r].endTime&&(mp[r].processed=!0,mp[r].manualEndTime=Fc(mp[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),eKn(mp[r],tA,jce,Yce))),mp[r].processed},"compileTask");let t=!0;for(const[r,a]of mp.entries())e(r),t=t&&a.processed;return t},"compileTasks"),rji=X(function(e,t){let r=t;nn().securityLevel!=="loose"&&(r=M9(t)),e.split(",").forEach(function(a){X$(a)!==void 0&&(aKn(a,()=>{window.open(r,"_self")}),Pmt.set(a,r))}),iKn(e,"clickable")},"setLink"),iKn=X(function(e,t){e.split(",").forEach(function(r){let a=X$(r);a!==void 0&&a.classes.push(t)})},"setClass"),iji=X(function(e,t,r){if(nn().securityLevel!=="loose"||t===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<a.length;o++){let u=a[o].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),a[o]=u}}a.length===0&&a.push(e),X$(e)!==void 0&&aKn(e,()=>{Vo.runFunc(t,...a)})},"setClickFun"),aKn=X(function(e,t){$mt.push(function(){const r=document.querySelector(`[id="${e}"]`);r!==null&&r.addEventListener("click",function(){t()})},function(){const r=document.querySelector(`[id="${e}-text"]`);r!==null&&r.addEventListener("click",function(){t()})})},"pushFun"),aji=X(function(e,t,r){e.split(",").forEach(function(a){iji(a,t,r)}),iKn(e,"clickable")},"setClickEvent"),sji=X(function(e){$mt.forEach(function(t){t(e)})},"bindFunctions"),oji={getConfig:X(()=>nn().gantt,"getConfig"),clear:CYi,setDateFormat:LYi,getDateFormat:UYi,enableInclusiveEndDates:DYi,endDatesAreInclusive:MYi,enableTopAxis:PYi,topAxisEnabled:BYi,setAxisFormat:AYi,getAxisFormat:kYi,setTickInterval:RYi,getTickInterval:IYi,setTodayMarker:NYi,getTodayMarker:OYi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,setDisplayMode:FYi,getDisplayMode:$Yi,setAccDescription:Pp,getAccDescription:Bp,addSection:YYi,getSections:jYi,getTasks:WYi,addTask:tji,findTaskById:X$,addTaskOrg:nji,setIncludes:zYi,getIncludes:GYi,setExcludes:qYi,getExcludes:HYi,setClickEvent:aji,setLink:rji,getLinks:VYi,bindFunctions:sji,parseDuration:tKn,isInvalidDate:JWn,setWeekday:KYi,getWeekday:XYi,setWeekend:QYi};function Gmt(e,t,r){let a=!0;for(;a;)a=!1,r.forEach(function(s){const o="^\\s*"+s+"\\s*$",u=new RegExp(o);e[0].match(u)&&(t[s]=!0,e.shift(1),a=!0)})}X(Gmt,"getTaskTags");Fc.extend(SYi);var lji=X(function(){it.debug("Something is calling, setConf, remove the call")},"setConf"),nTn={monday:Rj,tuesday:r1t,wednesday:i1t,thursday:YO,friday:a1t,saturday:s1t,sunday:MW},cji=X((e,t)=>{let r=[...e].map(()=>-1/0),a=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(const o of a)for(let u=0;u<r.length;u++)if(o.startTime>=r[u]){r[u]=o.endTime,o.order=u+t,u>s&&(s=u);break}return s},"getMaxIntersections"),Z6,Qit=1e4,uji=X(function(e,t,r,a){const s=nn().gantt,o=nn().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=o==="sandbox"?u.nodes()[0].contentDocument:document,p=f.getElementById(t);Z6=p.parentElement.offsetWidth,Z6===void 0&&(Z6=1200),s.useWidth!==void 0&&(Z6=s.useWidth);const m=a.db.getTasks();let b=[];for(const $ of m)b.push($.type);b=U(b);const _={};let w=2*s.topPadding;if(a.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const $={};for(const B of m)$[B.section]===void 0?$[B.section]=[B]:$[B.section].push(B);let G=0;for(const B of Object.keys($)){const Z=cji($[B],G)+1;G+=Z,w+=Z*(s.barHeight+s.barGap),_[B]=Z}}else{w+=m.length*(s.barHeight+s.barGap);for(const $ of b)_[$]=m.filter(G=>G.type===$).length}p.setAttribute("viewBox","0 0 "+Z6+" "+w);const S=h.select(`[id="${t}"]`),C=xDn().domain([ALn(m,function($){return $.startTime}),CLn(m,function($){return $.endTime})]).rangeRound([0,Z6-s.leftPadding-s.rightPadding]);function A($,G){const B=$.startTime,Z=G.startTime;let z=0;return B>Z?z=1:B<Z&&(z=-1),z}X(A,"taskCompare"),m.sort(A),k(m,Z6,w),yv(S,w,Z6,s.useMaxWidth),S.append("text").text(a.db.getDiagramTitle()).attr("x",Z6/2).attr("y",s.titleTopMargin).attr("class","titleText");function k($,G,B){const Z=s.barHeight,z=Z+s.barGap,Y=s.topPadding,W=s.leftPadding,Q=sT().domain([0,b.length]).range(["#00B9FA","#F95002"]).interpolate(iDn);N(z,Y,W,G,B,$,a.db.getExcludes(),a.db.getIncludes()),P(W,Y,G,B),I($,z,Y,W,Z,Q,G),M(z,Y),F(W,Y,G,B)}X(k,"makeGantt");function I($,G,B,Z,z,Y,W){$.sort((ne,se)=>ne.vert===se.vert?0:ne.vert?1:-1);const V=[...new Set($.map(ne=>ne.order))].map(ne=>$.find(se=>se.order===ne));S.append("g").selectAll("rect").data(V).enter().append("rect").attr("x",0).attr("y",function(ne,se){return se=ne.order,se*G+B-2}).attr("width",function(){return W-s.rightPadding/2}).attr("height",G).attr("class",function(ne){for(const[se,ie]of b.entries())if(ne.type===ie)return"section section"+se%s.numberSectionStyles;return"section section0"}).enter();const j=S.append("g").selectAll("rect").data($).enter(),ee=a.db.getLinks();if(j.append("rect").attr("id",function(ne){return ne.id}).attr("rx",3).attr("ry",3).attr("x",function(ne){return ne.milestone?C(ne.startTime)+Z+.5*(C(ne.endTime)-C(ne.startTime))-.5*z:C(ne.startTime)+Z}).attr("y",function(ne,se){return se=ne.order,ne.vert?s.gridLineStartPadding:se*G+B}).attr("width",function(ne){return ne.milestone?z:ne.vert?.08*z:C(ne.renderEndTime||ne.endTime)-C(ne.startTime)}).attr("height",function(ne){return ne.vert?m.length*(s.barHeight+s.barGap)+s.barHeight*2:z}).attr("transform-origin",function(ne,se){return se=ne.order,(C(ne.startTime)+Z+.5*(C(ne.endTime)-C(ne.startTime))).toString()+"px "+(se*G+B+.5*z).toString()+"px"}).attr("class",function(ne){const se="task";let ie="";ne.classes.length>0&&(ie=ne.classes.join(" "));let ge=0;for(const[be,ve]of b.entries())ne.type===ve&&(ge=be%s.numberSectionStyles);let ce="";return ne.active?ne.crit?ce+=" activeCrit":ce=" active":ne.done?ne.crit?ce=" doneCrit":ce=" done":ne.crit&&(ce+=" crit"),ce.length===0&&(ce=" task"),ne.milestone&&(ce=" milestone "+ce),ne.vert&&(ce=" vert "+ce),ce+=ge,ce+=" "+ie,se+ce}),j.append("text").attr("id",function(ne){return ne.id+"-text"}).text(function(ne){return ne.task}).attr("font-size",s.fontSize).attr("x",function(ne){let se=C(ne.startTime),ie=C(ne.renderEndTime||ne.endTime);if(ne.milestone&&(se+=.5*(C(ne.endTime)-C(ne.startTime))-.5*z,ie=se+z),ne.vert)return C(ne.startTime)+Z;const ge=this.getBBox().width;return ge>ie-se?ie+ge+1.5*s.leftPadding>W?se+Z-5:ie+Z+5:(ie-se)/2+se+Z}).attr("y",function(ne,se){return ne.vert?s.gridLineStartPadding+m.length*(s.barHeight+s.barGap)+60:(se=ne.order,se*G+s.barHeight/2+(s.fontSize/2-2)+B)}).attr("text-height",z).attr("class",function(ne){const se=C(ne.startTime);let ie=C(ne.endTime);ne.milestone&&(ie=se+z);const ge=this.getBBox().width;let ce="";ne.classes.length>0&&(ce=ne.classes.join(" "));let be=0;for(const[De,ye]of b.entries())ne.type===ye&&(be=De%s.numberSectionStyles);let ve="";return ne.active&&(ne.crit?ve="activeCritText"+be:ve="activeText"+be),ne.done?ne.crit?ve=ve+" doneCritText"+be:ve=ve+" doneText"+be:ne.crit&&(ve=ve+" critText"+be),ne.milestone&&(ve+=" milestoneText"),ne.vert&&(ve+=" vertText"),ge>ie-se?ie+ge+1.5*s.leftPadding>W?ce+" taskTextOutsideLeft taskTextOutside"+be+" "+ve:ce+" taskTextOutsideRight taskTextOutside"+be+" "+ve+" width-"+ge:ce+" taskText taskText"+be+" "+ve+" width-"+ge}),nn().securityLevel==="sandbox"){let ne;ne=gn("#i"+t);const se=ne.nodes()[0].contentDocument;j.filter(function(ie){return ee.has(ie.id)}).each(function(ie){var ge=se.querySelector("#"+ie.id),ce=se.querySelector("#"+ie.id+"-text");const be=ge.parentNode;var ve=se.createElement("a");ve.setAttribute("xlink:href",ee.get(ie.id)),ve.setAttribute("target","_top"),be.appendChild(ve),ve.appendChild(ge),ve.appendChild(ce)})}}X(I,"drawRects");function N($,G,B,Z,z,Y,W,Q){if(W.length===0&&Q.length===0)return;let V,j;for(const{startTime:ge,endTime:ce}of Y)(V===void 0||ge<V)&&(V=ge),(j===void 0||ce>j)&&(j=ce);if(!V||!j)return;if(Fc(j).diff(Fc(V),"year")>5){it.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const ee=a.db.getDateFormat(),te=[];let ne=null,se=Fc(V);for(;se.valueOf()<=j;)a.db.isInvalidDate(se,ee,W,Q)?ne?ne.end=se:ne={start:se,end:se}:ne&&(te.push(ne),ne=null),se=se.add(1,"d");S.append("g").selectAll("rect").data(te).enter().append("rect").attr("id",ge=>"exclude-"+ge.start.format("YYYY-MM-DD")).attr("x",ge=>C(ge.start.startOf("day"))+B).attr("y",s.gridLineStartPadding).attr("width",ge=>C(ge.end.endOf("day"))-C(ge.start.startOf("day"))).attr("height",z-G-s.gridLineStartPadding).attr("transform-origin",function(ge,ce){return(C(ge.start)+B+.5*(C(ge.end)-C(ge.start))).toString()+"px "+(ce*$+.5*z).toString()+"px"}).attr("class","exclude-range")}X(N,"drawExcludeDays");function L($,G,B,Z){if(B<=0||$>G)return 1/0;const z=G-$,Y=Fc.duration({[Z??"day"]:B}).asMilliseconds();return Y<=0?1/0:Math.ceil(z/Y)}X(L,"getEstimatedTickCount");function P($,G,B,Z){const z=a.db.getDateFormat(),Y=a.db.getAxisFormat();let W;Y?W=Y:z==="D"?W="%d":W=s.axisFormat??"%Y-%m-%d";let Q=ILn(C).tickSize(-Z+G+s.gridLineStartPadding).tickFormat(Nj(W));const j=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||s.tickInterval);if(j!==null){const ee=parseInt(j[1],10);if(isNaN(ee)||ee<=0)it.warn(`Invalid tick interval value: "${j[1]}". Skipping custom tick interval.`);else{const te=j[2],ne=a.db.getWeekday()||s.weekday,se=C.domain(),ie=se[0],ge=se[1],ce=L(ie,ge,ee,te);if(ce>Qit)it.warn(`The tick interval "${ee}${te}" would generate ${ce} ticks, which exceeds the maximum allowed (${Qit}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(te){case"millisecond":Q.ticks(VO.every(ee));break;case"second":Q.ticks(WC.every(ee));break;case"minute":Q.ticks(DF.every(ee));break;case"hour":Q.ticks(MF.every(ee));break;case"day":Q.ticks(tR.every(ee));break;case"week":Q.ticks(nTn[ne].every(ee));break;case"month":Q.ticks(PF.every(ee));break}}}if(S.append("g").attr("class","grid").attr("transform","translate("+$+", "+(Z-50)+")").call(Q).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||s.topAxis){let ee=RLn(C).tickSize(-Z+G+s.gridLineStartPadding).tickFormat(Nj(W));if(j!==null){const te=parseInt(j[1],10);if(isNaN(te)||te<=0)it.warn(`Invalid tick interval value: "${j[1]}". Skipping custom tick interval.`);else{const ne=j[2],se=a.db.getWeekday()||s.weekday,ie=C.domain(),ge=ie[0],ce=ie[1];if(L(ge,ce,te,ne)<=Qit)switch(ne){case"millisecond":ee.ticks(VO.every(te));break;case"second":ee.ticks(WC.every(te));break;case"minute":ee.ticks(DF.every(te));break;case"hour":ee.ticks(MF.every(te));break;case"day":ee.ticks(tR.every(te));break;case"week":ee.ticks(nTn[se].every(te));break;case"month":ee.ticks(PF.every(te));break}}}S.append("g").attr("class","grid").attr("transform","translate("+$+", "+G+")").call(ee).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}X(P,"makeGrid");function M($,G){let B=0;const Z=Object.keys(_).map(z=>[z,_[z]]);S.append("g").selectAll("text").data(Z).enter().append(function(z){const Y=z[0].split(Ti.lineBreakRegex),W=-(Y.length-1)/2,Q=f.createElementNS("http://www.w3.org/2000/svg","text");Q.setAttribute("dy",W+"em");for(const[V,j]of Y.entries()){const ee=f.createElementNS("http://www.w3.org/2000/svg","tspan");ee.setAttribute("alignment-baseline","central"),ee.setAttribute("x","10"),V>0&&ee.setAttribute("dy","1em"),ee.textContent=j,Q.appendChild(ee)}return Q}).attr("x",10).attr("y",function(z,Y){if(Y>0)for(let W=0;W<Y;W++)return B+=Z[Y-1][1],z[1]*$/2+B*$+G;else return z[1]*$/2+G}).attr("font-size",s.sectionFontSize).attr("class",function(z){for(const[Y,W]of b.entries())if(z[0]===W)return"sectionTitle sectionTitle"+Y%s.numberSectionStyles;return"sectionTitle"})}X(M,"vertLabels");function F($,G,B,Z){const z=a.db.getTodayMarker();if(z==="off")return;const Y=S.append("g").attr("class","today"),W=new Date,Q=Y.append("line");Q.attr("x1",C(W)+$).attr("x2",C(W)+$).attr("y1",s.titleTopMargin).attr("y2",Z-s.titleTopMargin).attr("class","today"),z!==""&&Q.attr("style",z.replace(/,/g,";"))}X(F,"drawToday");function U($){const G={},B=[];for(let Z=0,z=$.length;Z<z;++Z)Object.prototype.hasOwnProperty.call(G,$[Z])||(G[$[Z]]=!0,B.push($[Z]));return B}X(U,"checkUnique")},"draw"),hji={setConf:lji,draw:uji},dji=X(e=>`
  .mermaid-main-font {
        font-family: ${e.fontFamily};
  }

  .exclude-range {
    fill: ${e.excludeBkgColor};
  }

  .section {
    stroke: none;
    opacity: 0.2;
  }

  .section0 {
    fill: ${e.sectionBkgColor};
  }

  .section2 {
    fill: ${e.sectionBkgColor2};
  }

  .section1,
  .section3 {
    fill: ${e.altSectionBkgColor};
    opacity: 0.2;
  }

  .sectionTitle0 {
    fill: ${e.titleColor};
  }

  .sectionTitle1 {
    fill: ${e.titleColor};
  }

  .sectionTitle2 {
    fill: ${e.titleColor};
  }

  .sectionTitle3 {
    fill: ${e.titleColor};
  }

  .sectionTitle {
    text-anchor: start;
    font-family: ${e.fontFamily};
  }


  /* Grid and axis */

  .grid .tick {
    stroke: ${e.gridColor};
    opacity: 0.8;
    shape-rendering: crispEdges;
  }

  .grid .tick text {
    font-family: ${e.fontFamily};
    fill: ${e.textColor};
  }

  .grid path {
    stroke-width: 0;
  }


  /* Today line */

  .today {
    fill: none;
    stroke: ${e.todayLineColor};
    stroke-width: 2px;
  }


  /* Task styling */

  /* Default task */

  .task {
    stroke-width: 2;
  }

  .taskText {
    text-anchor: middle;
    font-family: ${e.fontFamily};
  }

  .taskTextOutsideRight {
    fill: ${e.taskTextDarkColor};
    text-anchor: start;
    font-family: ${e.fontFamily};
  }

  .taskTextOutsideLeft {
    fill: ${e.taskTextDarkColor};
    text-anchor: end;
  }


  /* Special case clickable */

  .task.clickable {
    cursor: pointer;
  }

  .taskText.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideLeft.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideRight.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }


  /* Specific task settings for the sections*/

  .taskText0,
  .taskText1,
  .taskText2,
  .taskText3 {
    fill: ${e.taskTextColor};
  }

  .task0,
  .task1,
  .task2,
  .task3 {
    fill: ${e.taskBkgColor};
    stroke: ${e.taskBorderColor};
  }

  .taskTextOutside0,
  .taskTextOutside2
  {
    fill: ${e.taskTextOutsideColor};
  }

  .taskTextOutside1,
  .taskTextOutside3 {
    fill: ${e.taskTextOutsideColor};
  }


  /* Active task */

  .active0,
  .active1,
  .active2,
  .active3 {
    fill: ${e.activeTaskBkgColor};
    stroke: ${e.activeTaskBorderColor};
  }

  .activeText0,
  .activeText1,
  .activeText2,
  .activeText3 {
    fill: ${e.taskTextDarkColor} !important;
  }


  /* Completed task */

  .done0,
  .done1,
  .done2,
  .done3 {
    stroke: ${e.doneTaskBorderColor};
    fill: ${e.doneTaskBkgColor};
    stroke-width: 2;
  }

  .doneText0,
  .doneText1,
  .doneText2,
  .doneText3 {
    fill: ${e.taskTextDarkColor} !important;
  }


  /* Tasks on the critical line */

  .crit0,
  .crit1,
  .crit2,
  .crit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.critBkgColor};
    stroke-width: 2;
  }

  .activeCrit0,
  .activeCrit1,
  .activeCrit2,
  .activeCrit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.activeTaskBkgColor};
    stroke-width: 2;
  }

  .doneCrit0,
  .doneCrit1,
  .doneCrit2,
  .doneCrit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.doneTaskBkgColor};
    stroke-width: 2;
    cursor: pointer;
    shape-rendering: crispEdges;
  }

  .milestone {
    transform: rotate(45deg) scale(0.8,0.8);
  }

  .milestoneText {
    font-style: italic;
  }
  .doneCritText0,
  .doneCritText1,
  .doneCritText2,
  .doneCritText3 {
    fill: ${e.taskTextDarkColor} !important;
  }

  .vert {
    stroke: ${e.vertLineColor};
  }

  .vertText {
    font-size: 15px;
    text-anchor: middle;
    fill: ${e.vertLineColor} !important;
  }

  .activeCritText0,
  .activeCritText1,
  .activeCritText2,
  .activeCritText3 {
    fill: ${e.taskTextDarkColor} !important;
  }

  .titleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.titleColor||e.textColor};
    font-family: ${e.fontFamily};
  }
`,"getStyles"),fji=dji,pji={parser:TYi,db:oji,renderer:hji,styles:fji};const gji=Object.freeze(Object.defineProperty({__proto__:null,diagram:pji},Symbol.toStringTag,{value:"Module"}));var mji={parse:X(async e=>{const t=await iL("info",e);it.debug(t)},"parse")},bji={version:fot.version+""},yji=X(()=>bji.version,"getVersion"),vji={getVersion:yji},_ji=X((e,t,r)=>{it.debug(`rendering info diagram
`+e);const a=bR(t);yv(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),wji={draw:_ji},Eji={parser:mji,db:vji,renderer:wji};const xji=Object.freeze(Object.defineProperty({__proto__:null,diagram:Eji},Symbol.toStringTag,{value:"Module"}));var Sji=Cc.pie,qmt={sections:new Map,showData:!1},DTe=qmt.sections,Hmt=qmt.showData,Tji=structuredClone(Sji),Cji=X(()=>structuredClone(Tji),"getConfig"),Aji=X(()=>{DTe=new Map,Hmt=qmt.showData,M1()},"clear"),kji=X(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);DTe.has(e)||(DTe.set(e,t),it.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),Rji=X(()=>DTe,"getSections"),Iji=X(e=>{Hmt=e},"setShowData"),Nji=X(()=>Hmt,"getShowData"),sKn={getConfig:Cji,clear:Aji,setDiagramTitle:Og,getDiagramTitle:P1,setAccTitle:N1,getAccTitle:Mp,setAccDescription:Pp,getAccDescription:Bp,addSection:kji,getSections:Rji,setShowData:Iji,getShowData:Nji},Oji=X((e,t)=>{z$(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Lji={parse:X(async e=>{const t=await iL("pie",e);it.debug(t),Oji(t,sKn)},"parse")},Dji=X(e=>`
  .pieCircle{
    stroke: ${e.pieStrokeColor};
    stroke-width : ${e.pieStrokeWidth};
    opacity : ${e.pieOpacity};
  }
  .pieOuterCircle{
    stroke: ${e.pieOuterStrokeColor};
    stroke-width: ${e.pieOuterStrokeWidth};
    fill: none;
  }
  .pieTitleText {
    text-anchor: middle;
    font-size: ${e.pieTitleTextSize};
    fill: ${e.pieTitleTextColor};
    font-family: ${e.fontFamily};
  }
  .slice {
    font-family: ${e.fontFamily};
    fill: ${e.pieSectionTextColor};
    font-size:${e.pieSectionTextSize};
    // fill: white;
  }
  .legend text {
    fill: ${e.pieLegendTextColor};
    font-family: ${e.fontFamily};
    font-size: ${e.pieLegendTextSize};
  }
`,"getStyles"),Mji=Dji,Pji=X(e=>{const t=[...e.values()].reduce((s,o)=>s+o,0),r=[...e.entries()].map(([s,o])=>({label:s,value:o})).filter(s=>s.value/t*100>=1).sort((s,o)=>o.value-s.value);return ADn().value(s=>s.value)(r)},"createPieArcs"),Bji=X((e,t,r,a)=>{it.debug(`rendering pie chart
`+e);const s=a.db,o=nn(),u=cv(s.getConfig(),o.pie),h=40,f=18,p=4,m=450,b=m,_=bR(t),w=_.append("g");w.attr("transform","translate("+b/2+","+m/2+")");const{themeVariables:S}=o;let[C]=N$(S.pieOuterStrokeWidth);C??(C=2);const A=u.textPosition,k=Math.min(b,m)/2-h,I=_S().innerRadius(0).outerRadius(k),N=_S().innerRadius(k*A).outerRadius(k*A);w.append("circle").attr("cx",0).attr("cy",0).attr("r",k+C/2).attr("class","pieOuterCircle");const L=s.getSections(),P=Pji(L),M=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12];let F=0;L.forEach(Y=>{F+=Y});const U=P.filter(Y=>(Y.data.value/F*100).toFixed(0)!=="0"),$=cA(M);w.selectAll("mySlices").data(U).enter().append("path").attr("d",I).attr("fill",Y=>$(Y.data.label)).attr("class","pieCircle"),w.selectAll("mySlices").data(U).enter().append("text").text(Y=>(Y.data.value/F*100).toFixed(0)+"%").attr("transform",Y=>"translate("+N.centroid(Y)+")").style("text-anchor","middle").attr("class","slice"),w.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const G=[...L.entries()].map(([Y,W])=>({label:Y,value:W})),B=w.selectAll(".legend").data(G).enter().append("g").attr("class","legend").attr("transform",(Y,W)=>{const Q=f+p,V=Q*G.length/2,j=12*f,ee=W*Q-V;return"translate("+j+","+ee+")"});B.append("rect").attr("width",f).attr("height",f).style("fill",Y=>$(Y.label)).style("stroke",Y=>$(Y.label)),B.append("text").attr("x",f+p).attr("y",f-p).text(Y=>s.getShowData()?`${Y.label} [${Y.value}]`:Y.label);const Z=Math.max(...B.selectAll("text").nodes().map(Y=>(Y==null?void 0:Y.getBoundingClientRect().width)??0)),z=b+h+f+p+Z;_.attr("viewBox",`0 0 ${z} ${m}`),yv(_,m,z,u.useMaxWidth)},"draw"),Fji={draw:Bji},$ji={parser:Lji,db:sKn,renderer:Fji,styles:Mji};const Uji=Object.freeze(Object.defineProperty({__proto__:null,diagram:$ji},Symbol.toStringTag,{value:"Module"}));var _ut=function(){var e=X(function(Xe,fe,Qe,Ke){for(Qe=Qe||{},Ke=Xe.length;Ke--;Qe[Xe[Ke]]=fe);return Qe},"o"),t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,7],u=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],f=[55,56,57],p=[2,36],m=[1,37],b=[1,36],_=[1,38],w=[1,35],S=[1,43],C=[1,41],A=[1,14],k=[1,23],I=[1,18],N=[1,19],L=[1,20],P=[1,21],M=[1,22],F=[1,24],U=[1,25],$=[1,26],G=[1,27],B=[1,28],Z=[1,29],z=[1,32],Y=[1,33],W=[1,34],Q=[1,39],V=[1,40],j=[1,42],ee=[1,44],te=[1,62],ne=[1,61],se=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],ie=[1,65],ge=[1,66],ce=[1,67],be=[1,68],ve=[1,69],De=[1,70],ye=[1,71],Ee=[1,72],he=[1,73],we=[1,74],Ce=[1,75],Ie=[1,76],Le=[4,5,6,7,8,9,10,11,12,13,14,15,18],Fe=[1,90],Ve=[1,91],Oe=[1,92],Dt=[1,99],ot=[1,93],sn=[1,96],Kt=[1,94],Ft=[1,95],Je=[1,97],ht=[1,98],et=[1,102],qe=[10,55,56,57],He=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Ge={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:X(function(fe,Qe,Ke,mt,lt,$t,Ut){var Jt=$t.length-1;switch(lt){case 23:this.$=$t[Jt];break;case 24:this.$=$t[Jt-1]+""+$t[Jt];break;case 26:this.$=$t[Jt-1]+$t[Jt];break;case 27:this.$=[$t[Jt].trim()];break;case 28:$t[Jt-2].push($t[Jt].trim()),this.$=$t[Jt-2];break;case 29:this.$=$t[Jt-4],mt.addClass($t[Jt-2],$t[Jt]);break;case 37:this.$=[];break;case 42:this.$=$t[Jt].trim(),mt.setDiagramTitle(this.$);break;case 43:this.$=$t[Jt].trim(),mt.setAccTitle(this.$);break;case 44:case 45:this.$=$t[Jt].trim(),mt.setAccDescription(this.$);break;case 46:mt.addSection($t[Jt].substr(8)),this.$=$t[Jt].substr(8);break;case 47:mt.addPoint($t[Jt-3],"",$t[Jt-1],$t[Jt],[]);break;case 48:mt.addPoint($t[Jt-4],$t[Jt-3],$t[Jt-1],$t[Jt],[]);break;case 49:mt.addPoint($t[Jt-4],"",$t[Jt-2],$t[Jt-1],$t[Jt]);break;case 50:mt.addPoint($t[Jt-5],$t[Jt-4],$t[Jt-2],$t[Jt-1],$t[Jt]);break;case 51:mt.setXAxisLeftText($t[Jt-2]),mt.setXAxisRightText($t[Jt]);break;case 52:$t[Jt-1].text+=" ⟶ ",mt.setXAxisLeftText($t[Jt-1]);break;case 53:mt.setXAxisLeftText($t[Jt]);break;case 54:mt.setYAxisBottomText($t[Jt-2]),mt.setYAxisTopText($t[Jt]);break;case 55:$t[Jt-1].text+=" ⟶ ",mt.setYAxisBottomText($t[Jt-1]);break;case 56:mt.setYAxisBottomText($t[Jt]);break;case 57:mt.setQuadrant1Text($t[Jt]);break;case 58:mt.setQuadrant2Text($t[Jt]);break;case 59:mt.setQuadrant3Text($t[Jt]);break;case 60:mt.setQuadrant4Text($t[Jt]);break;case 64:this.$={text:$t[Jt],type:"text"};break;case 65:this.$={text:$t[Jt-1].text+""+$t[Jt],type:$t[Jt-1].type};break;case 66:this.$={text:$t[Jt],type:"text"};break;case 67:this.$={text:$t[Jt],type:"markdown"};break;case 68:this.$=$t[Jt];break;case 69:this.$=$t[Jt-1]+""+$t[Jt];break}},"anonymous"),table:[{18:t,26:1,27:2,28:r,55:a,56:s,57:o},{1:[3]},{18:t,26:8,27:2,28:r,55:a,56:s,57:o},{18:t,26:9,27:2,28:r,55:a,56:s,57:o},e(u,[2,33],{29:10}),e(h,[2,61]),e(h,[2,62]),e(h,[2,63]),{1:[2,30]},{1:[2,31]},e(f,p,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:b,10:_,12:w,13:S,14:C,18:A,25:k,35:I,37:N,39:L,41:P,42:M,48:F,50:U,51:$,52:G,53:B,54:Z,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(u,[2,34]),{27:45,55:a,56:s,57:o},e(f,[2,37]),e(f,p,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:m,5:b,10:_,12:w,13:S,14:C,18:A,25:k,35:I,37:N,39:L,41:P,42:M,48:F,50:U,51:$,52:G,53:B,54:Z,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,39]),e(f,[2,40]),e(f,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(f,[2,45]),e(f,[2,46]),{18:[1,50]},{4:m,5:b,10:_,12:w,13:S,14:C,43:51,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:52,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:53,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:54,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:55,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:56,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,44:[1,57],47:[1,58],58:60,59:59,63:W,64:Q,65:V,66:j,67:ee},e(se,[2,64]),e(se,[2,66]),e(se,[2,67]),e(se,[2,70]),e(se,[2,71]),e(se,[2,72]),e(se,[2,73]),e(se,[2,74]),e(se,[2,75]),e(se,[2,76]),e(se,[2,77]),e(se,[2,78]),e(se,[2,79]),e(se,[2,80]),e(u,[2,35]),e(f,[2,38]),e(f,[2,42]),e(f,[2,43]),e(f,[2,44]),{3:64,4:ie,5:ge,6:ce,7:be,8:ve,9:De,10:ye,11:Ee,12:he,13:we,14:Ce,15:Ie,21:63},e(f,[2,53],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,49:[1,77],63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,56],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,49:[1,78],63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,57],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,58],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,59],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,60],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),{45:[1,79]},{44:[1,80]},e(se,[2,65]),e(se,[2,81]),e(se,[2,82]),e(se,[2,83]),{3:82,4:ie,5:ge,6:ce,7:be,8:ve,9:De,10:ye,11:Ee,12:he,13:we,14:Ce,15:Ie,18:[1,81]},e(Le,[2,23]),e(Le,[2,1]),e(Le,[2,2]),e(Le,[2,3]),e(Le,[2,4]),e(Le,[2,5]),e(Le,[2,6]),e(Le,[2,7]),e(Le,[2,8]),e(Le,[2,9]),e(Le,[2,10]),e(Le,[2,11]),e(Le,[2,12]),e(f,[2,52],{58:31,43:83,4:m,5:b,10:_,12:w,13:S,14:C,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,55],{58:31,43:84,4:m,5:b,10:_,12:w,13:S,14:C,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),{46:[1,85]},{45:[1,86]},{4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,16:89,17:Kt,18:Ft,19:Je,20:ht,22:88,23:87},e(Le,[2,24]),e(f,[2,51],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,54],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,47],{22:88,16:89,23:100,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),{46:[1,101]},e(f,[2,29],{10:et}),e(qe,[2,27],{16:103,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),e(He,[2,25]),e(He,[2,13]),e(He,[2,14]),e(He,[2,15]),e(He,[2,16]),e(He,[2,17]),e(He,[2,18]),e(He,[2,19]),e(He,[2,20]),e(He,[2,21]),e(He,[2,22]),e(f,[2,49],{10:et}),e(f,[2,48],{22:88,16:89,23:104,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),{4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,16:89,17:Kt,18:Ft,19:Je,20:ht,22:105},e(He,[2,26]),e(f,[2,50],{10:et}),e(qe,[2,28],{16:103,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht})],defaultActions:{8:[2,30],9:[2,31]},parseError:X(function(fe,Qe){if(Qe.recoverable)this.trace(fe);else{var Ke=new Error(fe);throw Ke.hash=Qe,Ke}},"parseError"),parse:X(function(fe){var Qe=this,Ke=[0],mt=[],lt=[null],$t=[],Ut=this.table,Jt="",wn=0,Vn=0,Wn=2,Dn=1,zn=$t.slice.call(arguments,1),vn=Object.create(this.lexer),Cn={yy:{}};for(var Ar in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ar)&&(Cn.yy[Ar]=this.yy[Ar]);vn.setInput(fe,Cn.yy),Cn.yy.lexer=vn,Cn.yy.parser=this,typeof vn.yylloc>"u"&&(vn.yylloc={});var ur=vn.yylloc;$t.push(ur);var On=vn.options&&vn.options.ranges;typeof Cn.yy.parseError=="function"?this.parseError=Cn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ir(La){Ke.length=Ke.length-2*La,lt.length=lt.length-La,$t.length=$t.length-La}X(Ir,"popStack");function Ln(){var La;return La=mt.pop()||vn.lex()||Dn,typeof La!="number"&&(La instanceof Array&&(mt=La,La=mt.pop()),La=Qe.symbols_[La]||La),La}X(Ln,"lex");for(var pr,Cr,Zr,Pr,Ci={},ds,ta,Os,uo;;){if(Cr=Ke[Ke.length-1],this.defaultActions[Cr]?Zr=this.defaultActions[Cr]:((pr===null||typeof pr>"u")&&(pr=Ln()),Zr=Ut[Cr]&&Ut[Cr][pr]),typeof Zr>"u"||!Zr.length||!Zr[0]){var Ls="";uo=[];for(ds in Ut[Cr])this.terminals_[ds]&&ds>Wn&&uo.push("'"+this.terminals_[ds]+"'");vn.showPosition?Ls="Parse error on line "+(wn+1)+`:
`+vn.showPosition()+`
Expecting `+uo.join(", ")+", got '"+(this.terminals_[pr]||pr)+"'":Ls="Parse error on line "+(wn+1)+": Unexpected "+(pr==Dn?"end of input":"'"+(this.terminals_[pr]||pr)+"'"),this.parseError(Ls,{text:vn.match,token:this.terminals_[pr]||pr,line:vn.yylineno,loc:ur,expected:uo})}if(Zr[0]instanceof Array&&Zr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cr+", token: "+pr);switch(Zr[0]){case 1:Ke.push(pr),lt.push(vn.yytext),$t.push(vn.yylloc),Ke.push(Zr[1]),pr=null,Vn=vn.yyleng,Jt=vn.yytext,wn=vn.yylineno,ur=vn.yylloc;break;case 2:if(ta=this.productions_[Zr[1]][1],Ci.$=lt[lt.length-ta],Ci._$={first_line:$t[$t.length-(ta||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(ta||1)].first_column,last_column:$t[$t.length-1].last_column},On&&(Ci._$.range=[$t[$t.length-(ta||1)].range[0],$t[$t.length-1].range[1]]),Pr=this.performAction.apply(Ci,[Jt,Vn,wn,Cn.yy,Zr[1],lt,$t].concat(zn)),typeof Pr<"u")return Pr;ta&&(Ke=Ke.slice(0,-1*ta*2),lt=lt.slice(0,-1*ta),$t=$t.slice(0,-1*ta)),Ke.push(this.productions_[Zr[1]][0]),lt.push(Ci.$),$t.push(Ci._$),Os=Ut[Ke[Ke.length-2]][Ke[Ke.length-1]],Ke.push(Os);break;case 3:return!0}}return!0},"parse")},Ye=function(){var Xe={EOF:1,parseError:X(function(Qe,Ke){if(this.yy.parser)this.yy.parser.parseError(Qe,Ke);else throw new Error(Qe)},"parseError"),setInput:X(function(fe,Qe){return this.yy=Qe||this.yy||{},this._input=fe,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},"setInput"),input:X(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var Qe=fe.match(/(?:\r\n?|\n).*/g);return Qe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),fe},"input"),unput:X(function(fe){var Qe=fe.length,Ke=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qe),this.offset-=Qe;var mt=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),Ke.length-1&&(this.yylineno-=Ke.length-1);var lt=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:Ke?(Ke.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-Ke.length].length-Ke[0].length:this.yylloc.first_column-Qe},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Qe]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:X(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var fe=this.pastInput(),Qe=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+`
`+Qe+"^"},"showPosition"),test_match:X(function(fe,Qe){var Ke,mt,lt;if(this.options.backtrack_lexer&&(lt={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&&(lt.yylloc.range=this.yylloc.range.slice(0))),mt=fe[0].match(/(?:\r\n?|\n).*/g),mt&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],Ke=this.performAction.call(this,this.yy,this,Qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ke)return Ke;if(this._backtrack){for(var $t in lt)this[$t]=lt[$t];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,Qe,Ke,mt;this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),$t=0;$t<lt.length;$t++)if(Ke=this._input.match(this.rules[lt[$t]]),Ke&&(!Qe||Ke[0].length>Qe[0].length)){if(Qe=Ke,mt=$t,this.options.backtrack_lexer){if(fe=this.test_match(Ke,lt[$t]),fe!==!1)return fe;if(this._backtrack){Qe=!1;continue}else return!1}else if(!this.options.flex)break}return Qe?(fe=this.test_match(Qe,lt[mt]),fe!==!1?fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Qe=this.next();return Qe||this.lex()},"lex"),begin:X(function(Qe){this.conditionStack.push(Qe)},"begin"),popState:X(function(){var Qe=this.conditionStack.length-1;return Qe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Qe){return Qe=this.conditionStack.length-1-Math.abs(Qe||0),Qe>=0?this.conditionStack[Qe]:"INITIAL"},"topState"),pushState:X(function(Qe){this.begin(Qe)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Qe,Ke,mt,lt){switch(mt){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/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,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Xe}();Ge.lexer=Ye;function Ae(){this.yy={}}return X(Ae,"Parser"),Ae.prototype=Ge,Ge.Parser=Ae,new Ae}();_ut.parser=_ut;var zji=_ut,By=JCe(),HY,Gji=(HY=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=Cc.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((r=Cc.quadrantChart)==null?void 0:r.chartHeight)||500,titlePadding:((a=Cc.quadrantChart)==null?void 0:a.titlePadding)||10,titleFontSize:((s=Cc.quadrantChart)==null?void 0:s.titleFontSize)||20,quadrantPadding:((o=Cc.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((u=Cc.quadrantChart)==null?void 0:u.xAxisLabelPadding)||5,yAxisLabelPadding:((h=Cc.quadrantChart)==null?void 0:h.yAxisLabelPadding)||5,xAxisLabelFontSize:((f=Cc.quadrantChart)==null?void 0:f.xAxisLabelFontSize)||16,yAxisLabelFontSize:((p=Cc.quadrantChart)==null?void 0:p.yAxisLabelFontSize)||16,quadrantLabelFontSize:((m=Cc.quadrantChart)==null?void 0:m.quadrantLabelFontSize)||16,quadrantTextTopPadding:((b=Cc.quadrantChart)==null?void 0:b.quadrantTextTopPadding)||5,pointTextPadding:((_=Cc.quadrantChart)==null?void 0:_.pointTextPadding)||5,pointLabelFontSize:((w=Cc.quadrantChart)==null?void 0:w.pointLabelFontSize)||12,pointRadius:((S=Cc.quadrantChart)==null?void 0:S.pointRadius)||5,xAxisPosition:((C=Cc.quadrantChart)==null?void 0:C.xAxisPosition)||"top",yAxisPosition:((A=Cc.quadrantChart)==null?void 0:A.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((k=Cc.quadrantChart)==null?void 0:k.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((I=Cc.quadrantChart)==null?void 0:I.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:By.quadrant1Fill,quadrant2Fill:By.quadrant2Fill,quadrant3Fill:By.quadrant3Fill,quadrant4Fill:By.quadrant4Fill,quadrant1TextFill:By.quadrant1TextFill,quadrant2TextFill:By.quadrant2TextFill,quadrant3TextFill:By.quadrant3TextFill,quadrant4TextFill:By.quadrant4TextFill,quadrantPointFill:By.quadrantPointFill,quadrantPointTextFill:By.quadrantPointTextFill,quadrantXAxisTextFill:By.quadrantXAxisTextFill,quadrantYAxisTextFill:By.quadrantYAxisTextFill,quadrantTitleFill:By.quadrantTitleFill,quadrantInternalBorderStrokeFill:By.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:By.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,it.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,r){this.classes.set(t,r)}setConfig(t){it.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){it.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,a,s){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,u={top:t==="top"&&r?o:0,bottom:t==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,f={left:this.config.yAxisPosition==="left"&&a?h:0,right:this.config.yAxisPosition==="right"&&a?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:s?p:0},b=this.config.quadrantPadding+f.left,_=this.config.quadrantPadding+u.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-f.left-f.right,S=this.config.chartHeight-this.config.quadrantPadding*2-u.top-u.bottom-m.top,C=w/2,A=S/2;return{xAxisSpace:u,yAxisSpace:f,titleSpace:m,quadrantSpace:{quadrantLeft:b,quadrantTop:_,quadrantWidth:w,quadrantHalfWidth:C,quadrantHeight:S,quadrantHalfHeight:A}}}getAxisLabels(t,r,a,s){const{quadrantSpace:o,titleSpace:u}=s,{quadrantHalfHeight:h,quadrantHeight:f,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:b,quadrantWidth:_}=o,w=!!this.data.xAxisRightText,S=!!this.data.yAxisTopText,C=[];return this.data.xAxisLeftText&&r&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&a&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+f-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&a&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+h-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),C}getQuadrants(t){const{quadrantSpace:r}=t,{quadrantHalfHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:u}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u,width:o,height:a,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u,width:o,height:a,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant4Fill}];for(const f of h)f.text.x=f.x+f.width/2,this.data.points.length===0?(f.text.y=f.y+f.height/2,f.text.horizontalPos="middle"):(f.text.y=f.y+this.config.quadrantTextTopPadding,f.text.horizontalPos="top");return h}getQuadrantPoints(t){const{quadrantSpace:r}=t,{quadrantHeight:a,quadrantLeft:s,quadrantTop:o,quadrantWidth:u}=r,h=sT().domain([0,1]).range([s,u+s]),f=sT().domain([0,1]).range([a+o,o]);return this.data.points.map(m=>{const b=this.classes.get(m.className);return b&&(m={...b,...m}),{x:h(m.x),y:f(m.y),fill:m.color??this.themeConfig.quadrantPointFill,radius:m.radius??this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:f(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:m.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:m.strokeWidth??"0px"}})}getBorders(t){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:a}=t,{quadrantHalfHeight:s,quadrantHeight:o,quadrantLeft:u,quadrantHalfWidth:h,quadrantTop:f,quadrantWidth:p}=a;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f,x2:u+p+r,y2:f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u+p,y1:f+r,x2:u+p,y2:f+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f+o,x2:u+p+r,y2:f+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u,y1:f+r,x2:u,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+h,y1:f+r,x2:u+h,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+r,y1:f+s,x2:u+p-r,y2:f+s}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),a=this.config.showTitle&&!!this.data.titleText,s=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(s,t,r,a);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(s,t,r,o),borderLines:this.getBorders(o),title:this.getTitle(a)}}},X(HY,"QuadrantBuilder"),HY),VY,cEe=(VY=class extends Error{constructor(t,r,a){super(`value for ${t} ${r} is invalid, please use a valid ${a}`),this.name="InvalidStyleError"}},X(VY,"InvalidStyleError"),VY);function wut(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}X(wut,"validateHexCode");function oKn(e){return!/^\d+$/.test(e)}X(oKn,"validateNumber");function lKn(e){return!/^\d+px$/.test(e)}X(lKn,"validateSizeInPixels");var qji=nn();function qA(e){return Ic(e.trim(),qji)}X(qA,"textSanitizer");var Sm=new Gji;function cKn(e){Sm.setData({quadrant1Text:qA(e.text)})}X(cKn,"setQuadrant1Text");function uKn(e){Sm.setData({quadrant2Text:qA(e.text)})}X(uKn,"setQuadrant2Text");function hKn(e){Sm.setData({quadrant3Text:qA(e.text)})}X(hKn,"setQuadrant3Text");function dKn(e){Sm.setData({quadrant4Text:qA(e.text)})}X(dKn,"setQuadrant4Text");function fKn(e){Sm.setData({xAxisLeftText:qA(e.text)})}X(fKn,"setXAxisLeftText");function pKn(e){Sm.setData({xAxisRightText:qA(e.text)})}X(pKn,"setXAxisRightText");function gKn(e){Sm.setData({yAxisTopText:qA(e.text)})}X(gKn,"setYAxisTopText");function mKn(e){Sm.setData({yAxisBottomText:qA(e.text)})}X(mKn,"setYAxisBottomText");function Kke(e){const t={};for(const r of e){const[a,s]=r.trim().split(/\s*:\s*/);if(a==="radius"){if(oKn(s))throw new cEe(a,s,"number");t.radius=parseInt(s)}else if(a==="color"){if(wut(s))throw new cEe(a,s,"hex code");t.color=s}else if(a==="stroke-color"){if(wut(s))throw new cEe(a,s,"hex code");t.strokeColor=s}else if(a==="stroke-width"){if(lKn(s))throw new cEe(a,s,"number of pixels (eg. 10px)");t.strokeWidth=s}else throw new Error(`style named ${a} is not supported.`)}return t}X(Kke,"parseStyles");function bKn(e,t,r,a,s){const o=Kke(s);Sm.addPoints([{x:r,y:a,text:qA(e.text),className:t,...o}])}X(bKn,"addPoint");function yKn(e,t){Sm.addClass(e,Kke(t))}X(yKn,"addClass");function vKn(e){Sm.setConfig({chartWidth:e})}X(vKn,"setWidth");function _Kn(e){Sm.setConfig({chartHeight:e})}X(_Kn,"setHeight");function wKn(){const e=nn(),{themeVariables:t,quadrantChart:r}=e;return r&&Sm.setConfig(r),Sm.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),Sm.setData({titleText:P1()}),Sm.build()}X(wKn,"getQuadrantData");var Hji=X(function(){Sm.clear(),M1()},"clear"),Vji={setWidth:vKn,setHeight:_Kn,setQuadrant1Text:cKn,setQuadrant2Text:uKn,setQuadrant3Text:hKn,setQuadrant4Text:dKn,setXAxisLeftText:fKn,setXAxisRightText:pKn,setYAxisTopText:gKn,setYAxisBottomText:mKn,parseStyles:Kke,addPoint:bKn,addClass:yKn,getQuadrantData:wKn,clear:Hji,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp},Yji=X((e,t,r,a)=>{var U,$,G;function s(B){return B==="top"?"hanging":"middle"}X(s,"getDominantBaseLine");function o(B){return B==="left"?"start":"middle"}X(o,"getTextAnchor");function u(B){return`translate(${B.x}, ${B.y}) rotate(${B.rotation||0})`}X(u,"getTransformation");const h=nn();it.debug(`Rendering quadrant chart
`+e);const f=h.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const b=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),_=b.append("g").attr("class","main"),w=((U=h.quadrantChart)==null?void 0:U.chartWidth)??500,S=(($=h.quadrantChart)==null?void 0:$.chartHeight)??500;yv(b,S,w,((G=h.quadrantChart)==null?void 0:G.useMaxWidth)??!0),b.attr("viewBox","0 0 "+w+" "+S),a.db.setHeight(S),a.db.setWidth(w);const C=a.db.getQuadrantData(),A=_.append("g").attr("class","quadrants"),k=_.append("g").attr("class","border"),I=_.append("g").attr("class","data-points"),N=_.append("g").attr("class","labels"),L=_.append("g").attr("class","title");C.title&&L.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",s(C.title.horizontalPos)).attr("text-anchor",o(C.title.verticalPos)).attr("transform",u(C.title)).text(C.title.text),C.borderLines&&k.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",B=>B.x1).attr("y1",B=>B.y1).attr("x2",B=>B.x2).attr("y2",B=>B.y2).style("stroke",B=>B.strokeFill).style("stroke-width",B=>B.strokeWidth);const P=A.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");P.append("rect").attr("x",B=>B.x).attr("y",B=>B.y).attr("width",B=>B.width).attr("height",B=>B.height).attr("fill",B=>B.fill),P.append("text").attr("x",0).attr("y",0).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>s(B.text.horizontalPos)).attr("text-anchor",B=>o(B.text.verticalPos)).attr("transform",B=>u(B.text)).text(B=>B.text.text),N.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(B=>B.text).attr("fill",B=>B.fill).attr("font-size",B=>B.fontSize).attr("dominant-baseline",B=>s(B.horizontalPos)).attr("text-anchor",B=>o(B.verticalPos)).attr("transform",B=>u(B));const F=I.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");F.append("circle").attr("cx",B=>B.x).attr("cy",B=>B.y).attr("r",B=>B.radius).attr("fill",B=>B.fill).attr("stroke",B=>B.strokeColor).attr("stroke-width",B=>B.strokeWidth),F.append("text").attr("x",0).attr("y",0).text(B=>B.text.text).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>s(B.text.horizontalPos)).attr("text-anchor",B=>o(B.text.verticalPos)).attr("transform",B=>u(B.text))},"draw"),jji={draw:Yji},Wji={parser:zji,db:Vji,renderer:jji,styles:X(()=>"","styles")};const Kji=Object.freeze(Object.defineProperty({__proto__:null,diagram:Wji},Symbol.toStringTag,{value:"Module"}));var Eut=function(){var e=X(function(W,Q,V,j){for(V=V||{},j=W.length;j--;V[W[j]]=Q);return V},"o"),t=[1,10,12,14,16,18,19,21,23],r=[2,6],a=[1,3],s=[1,5],o=[1,6],u=[1,7],h=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],p=[1,26],m=[1,28],b=[1,29],_=[1,30],w=[1,31],S=[1,32],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[1,43],P=[1,42],M=[1,47],F=[1,50],U=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],G=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],B=[1,64],Z={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:X(function(Q,V,j,ee,te,ne,se){var ie=ne.length-1;switch(te){case 5:ee.setOrientation(ne[ie]);break;case 9:ee.setDiagramTitle(ne[ie].text.trim());break;case 12:ee.setLineData({text:"",type:"text"},ne[ie]);break;case 13:ee.setLineData(ne[ie-1],ne[ie]);break;case 14:ee.setBarData({text:"",type:"text"},ne[ie]);break;case 15:ee.setBarData(ne[ie-1],ne[ie]);break;case 16:this.$=ne[ie].trim(),ee.setAccTitle(this.$);break;case 17:case 18:this.$=ne[ie].trim(),ee.setAccDescription(this.$);break;case 19:this.$=ne[ie-1];break;case 20:this.$=[Number(ne[ie-2]),...ne[ie]];break;case 21:this.$=[Number(ne[ie])];break;case 22:ee.setXAxisTitle(ne[ie]);break;case 23:ee.setXAxisTitle(ne[ie-1]);break;case 24:ee.setXAxisTitle({type:"text",text:""});break;case 25:ee.setXAxisBand(ne[ie]);break;case 26:ee.setXAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 27:this.$=ne[ie-1];break;case 28:this.$=[ne[ie-2],...ne[ie]];break;case 29:this.$=[ne[ie]];break;case 30:ee.setYAxisTitle(ne[ie]);break;case 31:ee.setYAxisTitle(ne[ie-1]);break;case 32:ee.setYAxisTitle({type:"text",text:""});break;case 33:ee.setYAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 37:this.$={text:ne[ie],type:"text"};break;case 38:this.$={text:ne[ie],type:"text"};break;case 39:this.$={text:ne[ie],type:"markdown"};break;case 40:this.$=ne[ie];break;case 41:this.$=ne[ie-1]+""+ne[ie];break}},"anonymous"),table:[e(t,r,{3:1,4:2,7:4,5:a,34:s,35:o,36:u}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:a,34:s,35:o,36:u}),e(t,r,{4:2,7:4,6:9,3:10,5:a,8:[1,11],34:s,35:o,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(h,[2,34]),e(h,[2,35]),e(h,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:a,34:s,35:o,36:u}),{1:[2,3]},e(h,[2,5]),e(t,[2,7],{4:22,34:s,35:o,36:u}),{11:23,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:39,13:38,24:L,27:P,29:40,30:41,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:45,15:44,27:M,33:46,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:49,17:48,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:52,17:51,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{20:[1,53]},{22:[1,54]},e(U,[2,18]),{1:[2,2]},e(U,[2,8]),e(U,[2,9]),e($,[2,37],{40:55,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N}),e($,[2,38]),e($,[2,39]),e(G,[2,40]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),e(G,[2,47]),e(G,[2,48]),e(G,[2,49]),e(G,[2,50]),e(G,[2,51]),e(U,[2,10]),e(U,[2,22],{30:41,29:56,24:L,27:P}),e(U,[2,24]),e(U,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,11]),e(U,[2,30],{33:60,27:M}),e(U,[2,32]),{31:[1,61]},e(U,[2,12]),{17:62,24:F},{25:63,27:B},e(U,[2,14]),{17:65,24:F},e(U,[2,16]),e(U,[2,17]),e(G,[2,41]),e(U,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(U,[2,31]),{27:[1,69]},e(U,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(U,[2,15]),e(U,[2,26]),e(U,[2,27]),{11:59,32:72,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,33]),e(U,[2,19]),{25:73,27:B},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:X(function(Q,V){if(V.recoverable)this.trace(Q);else{var j=new Error(Q);throw j.hash=V,j}},"parseError"),parse:X(function(Q){var V=this,j=[0],ee=[],te=[null],ne=[],se=this.table,ie="",ge=0,ce=0,be=2,ve=1,De=ne.slice.call(arguments,1),ye=Object.create(this.lexer),Ee={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(Ee.yy[he]=this.yy[he]);ye.setInput(Q,Ee.yy),Ee.yy.lexer=ye,Ee.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var we=ye.yylloc;ne.push(we);var Ce=ye.options&&ye.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(et){j.length=j.length-2*et,te.length=te.length-et,ne.length=ne.length-et}X(Ie,"popStack");function Le(){var et;return et=ee.pop()||ye.lex()||ve,typeof et!="number"&&(et instanceof Array&&(ee=et,et=ee.pop()),et=V.symbols_[et]||et),et}X(Le,"lex");for(var Fe,Ve,Oe,Dt,ot={},sn,Kt,Ft,Je;;){if(Ve=j[j.length-1],this.defaultActions[Ve]?Oe=this.defaultActions[Ve]:((Fe===null||typeof Fe>"u")&&(Fe=Le()),Oe=se[Ve]&&se[Ve][Fe]),typeof Oe>"u"||!Oe.length||!Oe[0]){var ht="";Je=[];for(sn in se[Ve])this.terminals_[sn]&&sn>be&&Je.push("'"+this.terminals_[sn]+"'");ye.showPosition?ht="Parse error on line "+(ge+1)+`:
`+ye.showPosition()+`
Expecting `+Je.join(", ")+", got '"+(this.terminals_[Fe]||Fe)+"'":ht="Parse error on line "+(ge+1)+": Unexpected "+(Fe==ve?"end of input":"'"+(this.terminals_[Fe]||Fe)+"'"),this.parseError(ht,{text:ye.match,token:this.terminals_[Fe]||Fe,line:ye.yylineno,loc:we,expected:Je})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+Fe);switch(Oe[0]){case 1:j.push(Fe),te.push(ye.yytext),ne.push(ye.yylloc),j.push(Oe[1]),Fe=null,ce=ye.yyleng,ie=ye.yytext,ge=ye.yylineno,we=ye.yylloc;break;case 2:if(Kt=this.productions_[Oe[1]][1],ot.$=te[te.length-Kt],ot._$={first_line:ne[ne.length-(Kt||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Kt||1)].first_column,last_column:ne[ne.length-1].last_column},Ce&&(ot._$.range=[ne[ne.length-(Kt||1)].range[0],ne[ne.length-1].range[1]]),Dt=this.performAction.apply(ot,[ie,ce,ge,Ee.yy,Oe[1],te,ne].concat(De)),typeof Dt<"u")return Dt;Kt&&(j=j.slice(0,-1*Kt*2),te=te.slice(0,-1*Kt),ne=ne.slice(0,-1*Kt)),j.push(this.productions_[Oe[1]][0]),te.push(ot.$),ne.push(ot._$),Ft=se[j[j.length-2]][j[j.length-1]],j.push(Ft);break;case 3:return!0}}return!0},"parse")},z=function(){var W={EOF:1,parseError:X(function(V,j){if(this.yy.parser)this.yy.parser.parseError(V,j);else throw new Error(V)},"parseError"),setInput:X(function(Q,V){return this.yy=V||this.yy||{},this._input=Q,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},"setInput"),input:X(function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var V=Q.match(/(?:\r\n?|\n).*/g);return V?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},"input"),unput:X(function(Q){var V=Q.length,j=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var ee=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),j.length-1&&(this.yylineno-=j.length-1);var te=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:j?(j.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-j.length].length-j[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Q){this.unput(this.match.slice(Q))},"less"),pastInput:X(function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Q=this.pastInput(),V=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
`+V+"^"},"showPosition"),test_match:X(function(Q,V){var j,ee,te;if(this.options.backtrack_lexer&&(te={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&&(te.yylloc.range=this.yylloc.range.slice(0))),ee=Q[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],j=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ne in te)this[ne]=te[ne];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,V,j,ee;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ne=0;ne<te.length;ne++)if(j=this._input.match(this.rules[te[ne]]),j&&(!V||j[0].length>V[0].length)){if(V=j,ee=ne,this.options.backtrack_lexer){if(Q=this.test_match(j,te[ne]),Q!==!1)return Q;if(this._backtrack){V=!1;continue}else return!1}else if(!this.options.flex)break}return V?(Q=this.test_match(V,te[ee]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var V=this.next();return V||this.lex()},"lex"),begin:X(function(V){this.conditionStack.push(V)},"begin"),popState:X(function(){var V=this.conditionStack.length-1;return V>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},"topState"),pushState:X(function(V){this.begin(V)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(V,j,ee,te){switch(ee){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\)                                    \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+                  \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W}();Z.lexer=z;function Y(){this.yy={}}return X(Y,"Parser"),Y.prototype=Z,Z.Parser=Y,new Y}();Eut.parser=Eut;var Xji=Eut;function xut(e){return e.type==="bar"}X(xut,"isBarPlot");function Vmt(e){return e.type==="band"}X(Vmt,"isBandAxisData");function cY(e){return e.type==="linear"}X(cY,"isLinearAxisData");var YY,EKn=(YY=class{constructor(t){this.parentGroup=t}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((o,u)=>Math.max(u.length,o),0)*r,height:r};const a={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const o of t){const u=kBn(s,1,o),h=u?u.width:o.length*r,f=u?u.height:r;a.width=Math.max(a.width,h),a.height=Math.max(a.height,f)}return s.remove(),a}},X(YY,"TextDimensionCalculatorWithFont"),YY),rTn=.7,iTn=.2,jY,xKn=(jY=class{constructor(t,r,a,s){this.axisConfig=t,this.title=r,this.textDimensionCalculator=a,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){rTn*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(rTn*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=iTn*t.width;this.outerPadding=Math.min(a.width/2,s);const o=a.height+this.axisConfig.labelPadding*2;this.labelTextHeight=a.height,o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=iTn*t.height;this.outerPadding=Math.min(a.height/2,s);const o=a.width+this.axisConfig.labelPadding*2;o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${r},${this.getScaleValue(a)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(a)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r} L ${this.getScaleValue(a)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(a)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},X(jY,"BaseAxis"),jY),WY,Qji=(WY=class extends xKn{constructor(t,r,a,s,o){super(t,s,o,r),this.categories=a,this.scale=goe().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=goe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),it.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},X(WY,"BandAxis"),WY),KY,Zji=(KY=class extends xKn{constructor(t,r,a,s,o){super(t,s,o,r),this.domain=a,this.scale=sT().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=sT().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},X(KY,"LinearAxis"),KY);function Sut(e,t,r,a){const s=new EKn(a);return Vmt(e)?new Qji(t,r,e.categories,e.title,s):new Zji(t,r,[e.min,e.max],e.title,s)}X(Sut,"getAxis");var XY,Jji=(XY=class{constructor(t,r,a,s){this.textDimensionCalculator=t,this.chartConfig=r,this.chartData=a,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),a=Math.max(r.width,t.width),s=r.height+2*this.chartConfig.titlePadding;return r.width<=a&&r.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=a,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},X(XY,"ChartTitle"),XY);function SKn(e,t,r,a){const s=new EKn(a);return new Jji(s,e,t,r)}X(SKn,"getChartTitleComponent");var QY,eWi=(QY=class{constructor(t,r,a,s,o){this.plotData=t,this.xAxis=r,this.yAxis=a,this.orientation=s,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let r;return this.orientation==="horizontal"?r=r_().y(a=>a[0]).x(a=>a[1])(t):r=r_().x(a=>a[0]).y(a=>a[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},X(QY,"LinePlot"),QY),ZY,tWi=(ZY=class{constructor(t,r,a,s,o,u){this.barData=t,this.boundingRect=r,this.xAxis=a,this.yAxis=s,this.orientation=o,this.plotIndex=u}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),a=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=a/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-s,height:a,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-s,y:o[1],width:a,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},X(ZY,"BarPlot"),ZY),JY,nWi=(JY=class{constructor(t,r,a){this.chartConfig=t,this.chartData=r,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[r,a]of this.chartData.plots.entries())switch(a.type){case"line":{const s=new eWi(a,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break;case"bar":{const s=new tWi(a,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break}return t}},X(JY,"BasePlot"),JY);function TKn(e,t,r){return new nWi(e,t,r)}X(TKn,"getPlotComponent");var ej,rWi=(ej=class{constructor(t,r,a,s){this.chartConfig=t,this.chartData=r,this.componentStore={title:SKn(t,r,a,s),plot:TKn(t,r,a),xAxis:Sut(r.xAxis,t.xAxis,{titleColor:a.xAxisTitleColor,labelColor:a.xAxisLabelColor,tickColor:a.xAxisTickColor,axisLineColor:a.xAxisLineColor},s),yAxis:Sut(r.yAxis,t.yAxis,{titleColor:a.yAxisTitleColor,labelColor:a.yAxisLabelColor,tickColor:a.yAxisTickColor,axisLineColor:a.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:o,height:u});t-=h.width,r-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),s=h.height,r-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:r}),a=h.width,t-=h.width,t>0&&(o+=t,t=0),r>0&&(u+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:u}),this.componentStore.plot.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:a,y:s+u}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(f=>xut(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=0,u=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:u,height:h});t-=f.width,r-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=f.height,r-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=f.width,s=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=f.height,o=a+f.height,t>0&&(u+=t,t=0),r>0&&(h+=r,r=0),this.componentStore.plot.calculateSpace({width:u,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:o}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([o,o+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(p=>xut(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}},X(ej,"Orchestrator"),ej),tj,iWi=(tj=class{static build(t,r,a,s){return new rWi(t,r,a,s).getDrawableElement()}},X(tj,"XYChartBuilder"),tj),sle=0,CKn,ole=Wmt(),lle=jmt(),Bu=Kmt(),Tut=lle.plotColorPalette.split(",").map(e=>e.trim()),Xke=!1,Ymt=!1;function jmt(){const e=JCe(),t=$c();return cv(e.xyChart,t.themeVariables.xyChart)}X(jmt,"getChartDefaultThemeConfig");function Wmt(){const e=$c();return cv(Cc.xyChart,e.xyChart)}X(Wmt,"getChartDefaultConfig");function Kmt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}X(Kmt,"getChartDefaultData");function Qke(e){const t=$c();return Ic(e.trim(),t)}X(Qke,"textSanitizer");function AKn(e){CKn=e}X(AKn,"setTmpSVGG");function kKn(e){e==="horizontal"?ole.chartOrientation="horizontal":ole.chartOrientation="vertical"}X(kKn,"setOrientation");function RKn(e){Bu.xAxis.title=Qke(e.text)}X(RKn,"setXAxisTitle");function Xmt(e,t){Bu.xAxis={type:"linear",title:Bu.xAxis.title,min:e,max:t},Xke=!0}X(Xmt,"setXAxisRangeData");function IKn(e){Bu.xAxis={type:"band",title:Bu.xAxis.title,categories:e.map(t=>Qke(t.text))},Xke=!0}X(IKn,"setXAxisBand");function NKn(e){Bu.yAxis.title=Qke(e.text)}X(NKn,"setYAxisTitle");function OKn(e,t){Bu.yAxis={type:"linear",title:Bu.yAxis.title,min:e,max:t},Ymt=!0}X(OKn,"setYAxisRangeData");function LKn(e){const t=Math.min(...e),r=Math.max(...e),a=cY(Bu.yAxis)?Bu.yAxis.min:1/0,s=cY(Bu.yAxis)?Bu.yAxis.max:-1/0;Bu.yAxis={type:"linear",title:Bu.yAxis.title,min:Math.min(a,t),max:Math.max(s,r)}}X(LKn,"setYAxisRangeFromPlotData");function Qmt(e){let t=[];if(e.length===0)return t;if(!Xke){const r=cY(Bu.xAxis)?Bu.xAxis.min:1/0,a=cY(Bu.xAxis)?Bu.xAxis.max:-1/0;Xmt(Math.min(r,1),Math.max(a,e.length))}if(Ymt||LKn(e),Vmt(Bu.xAxis)&&(t=Bu.xAxis.categories.map((r,a)=>[r,e[a]])),cY(Bu.xAxis)){const r=Bu.xAxis.min,a=Bu.xAxis.max,s=(a-r)/(e.length-1),o=[];for(let u=r;u<=a;u+=s)o.push(`${u}`);t=o.map((u,h)=>[u,e[h]])}return t}X(Qmt,"transformDataWithoutCategory");function Zmt(e){return Tut[e===0?0:e%Tut.length]}X(Zmt,"getPlotColorFromPalette");function DKn(e,t){const r=Qmt(t);Bu.plots.push({type:"line",strokeFill:Zmt(sle),strokeWidth:2,data:r}),sle++}X(DKn,"setLineData");function MKn(e,t){const r=Qmt(t);Bu.plots.push({type:"bar",fill:Zmt(sle),data:r}),sle++}X(MKn,"setBarData");function PKn(){if(Bu.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Bu.title=P1(),iWi.build(ole,Bu,lle,CKn)}X(PKn,"getDrawableElem");function BKn(){return lle}X(BKn,"getChartThemeConfig");function FKn(){return ole}X(FKn,"getChartConfig");function $Kn(){return Bu}X($Kn,"getXYChartData");var aWi=X(function(){M1(),sle=0,ole=Wmt(),Bu=Kmt(),lle=jmt(),Tut=lle.plotColorPalette.split(",").map(e=>e.trim()),Xke=!1,Ymt=!1},"clear"),sWi={getDrawableElem:PKn,clear:aWi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp,setOrientation:kKn,setXAxisTitle:RKn,setXAxisRangeData:Xmt,setXAxisBand:IKn,setYAxisTitle:NKn,setYAxisRangeData:OKn,setLineData:DKn,setBarData:MKn,setTmpSVGG:AKn,getChartThemeConfig:BKn,getChartConfig:FKn,getXYChartData:$Kn},oWi=X((e,t,r,a)=>{const s=a.db,o=s.getChartThemeConfig(),u=s.getChartConfig(),h=s.getXYChartData().plots[0].data.map(k=>k[1]);function f(k){return k==="top"?"text-before-edge":"middle"}X(f,"getDominantBaseLine");function p(k){return k==="left"?"start":k==="right"?"end":"middle"}X(p,"getTextAnchor");function m(k){return`translate(${k.x}, ${k.y}) rotate(${k.rotation||0})`}X(m,"getTextTransformation"),it.debug(`Rendering xychart chart
`+e);const b=bR(t),_=b.append("g").attr("class","main"),w=_.append("rect").attr("width",u.width).attr("height",u.height).attr("class","background");yv(b,u.height,u.width,!0),b.attr("viewBox",`0 0 ${u.width} ${u.height}`),w.attr("fill",o.backgroundColor),s.setTmpSVGG(b.append("g").attr("class","mermaid-tmp-group"));const S=s.getDrawableElem(),C={};function A(k){let I=_,N="";for(const[L]of k.entries()){let P=_;L>0&&C[N]&&(P=C[N]),N+=k[L],I=C[N],I||(I=C[N]=P.append("g").attr("class",k[L]))}return I}X(A,"getGroup");for(const k of S){if(k.data.length===0)continue;const I=A(k.groupTexts);switch(k.type){case"rect":if(I.selectAll("rect").data(k.data).enter().append("rect").attr("x",N=>N.x).attr("y",N=>N.y).attr("width",N=>N.width).attr("height",N=>N.height).attr("fill",N=>N.fill).attr("stroke",N=>N.strokeFill).attr("stroke-width",N=>N.strokeWidth),u.showDataLabel)if(u.chartOrientation==="horizontal"){let N=function(U,$){const{data:G,label:B}=U;return $*B.length*L<=G.width-10};X(N,"fitsHorizontally");const L=.7,P=k.data.map((U,$)=>({data:U,label:h[$].toString()})).filter(U=>U.data.width>0&&U.data.height>0),M=P.map(U=>{const{data:$}=U;let G=$.height*.7;for(;!N(U,G)&&G>0;)G-=1;return G}),F=Math.floor(Math.min(...M));I.selectAll("text").data(P).enter().append("text").attr("x",U=>U.data.x+U.data.width-10).attr("y",U=>U.data.y+U.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${F}px`).text(U=>U.label)}else{let N=function(U,$,G){const{data:B,label:Z}=U,Y=$*Z.length*.7,W=B.x+B.width/2,Q=W-Y/2,V=W+Y/2,j=Q>=B.x&&V<=B.x+B.width,ee=B.y+G+$<=B.y+B.height;return j&&ee};X(N,"fitsInBar");const L=10,P=k.data.map((U,$)=>({data:U,label:h[$].toString()})).filter(U=>U.data.width>0&&U.data.height>0),M=P.map(U=>{const{data:$,label:G}=U;let B=$.width/(G.length*.7);for(;!N(U,B,L)&&B>0;)B-=1;return B}),F=Math.floor(Math.min(...M));I.selectAll("text").data(P).enter().append("text").attr("x",U=>U.data.x+U.data.width/2).attr("y",U=>U.data.y+L).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${F}px`).text(U=>U.label)}break;case"text":I.selectAll("text").data(k.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",N=>N.fill).attr("font-size",N=>N.fontSize).attr("dominant-baseline",N=>f(N.verticalPos)).attr("text-anchor",N=>p(N.horizontalPos)).attr("transform",N=>m(N)).text(N=>N.text);break;case"path":I.selectAll("path").data(k.data).enter().append("path").attr("d",N=>N.path).attr("fill",N=>N.fill?N.fill:"none").attr("stroke",N=>N.strokeFill).attr("stroke-width",N=>N.strokeWidth);break}}},"draw"),lWi={draw:oWi},cWi={parser:Xji,db:sWi,renderer:lWi};const uWi=Object.freeze(Object.defineProperty({__proto__:null,diagram:cWi},Symbol.toStringTag,{value:"Module"}));var Cut=function(){var e=X(function(Ge,Ye,Ae,Xe){for(Ae=Ae||{},Xe=Ge.length;Xe--;Ae[Ge[Xe]]=Ye);return Ae},"o"),t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],u=[1,22],h=[2,7],f=[1,26],p=[1,27],m=[1,28],b=[1,29],_=[1,33],w=[1,34],S=[1,35],C=[1,36],A=[1,37],k=[1,38],I=[1,24],N=[1,31],L=[1,32],P=[1,30],M=[1,39],F=[1,40],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],G=[89,90],B=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[27,29],z=[1,70],Y=[1,71],W=[1,72],Q=[1,73],V=[1,74],j=[1,75],ee=[1,76],te=[1,83],ne=[1,80],se=[1,84],ie=[1,85],ge=[1,86],ce=[1,87],be=[1,88],ve=[1,89],De=[1,90],ye=[1,91],Ee=[1,92],he=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],we=[63,64],Ce=[1,101],Ie=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Le=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Fe=[1,110],Ve=[1,106],Oe=[1,107],Dt=[1,108],ot=[1,109],sn=[1,111],Kt=[1,116],Ft=[1,117],Je=[1,114],ht=[1,115],et={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType: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:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:X(function(Ye,Ae,Xe,fe,Qe,Ke,mt){var lt=Ke.length-1;switch(Qe){case 4:this.$=Ke[lt].trim(),fe.setAccTitle(this.$);break;case 5:case 6:this.$=Ke[lt].trim(),fe.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:fe.setDirection("TB");break;case 18:fe.setDirection("BT");break;case 19:fe.setDirection("RL");break;case 20:fe.setDirection("LR");break;case 21:fe.addRequirement(Ke[lt-3],Ke[lt-4]);break;case 22:fe.addRequirement(Ke[lt-5],Ke[lt-6]),fe.setClass([Ke[lt-5]],Ke[lt-3]);break;case 23:fe.setNewReqId(Ke[lt-2]);break;case 24:fe.setNewReqText(Ke[lt-2]);break;case 25:fe.setNewReqRisk(Ke[lt-2]);break;case 26:fe.setNewReqVerifyMethod(Ke[lt-2]);break;case 29:this.$=fe.RequirementType.REQUIREMENT;break;case 30:this.$=fe.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=fe.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=fe.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=fe.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=fe.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=fe.RiskLevel.LOW_RISK;break;case 36:this.$=fe.RiskLevel.MED_RISK;break;case 37:this.$=fe.RiskLevel.HIGH_RISK;break;case 38:this.$=fe.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=fe.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=fe.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=fe.VerifyType.VERIFY_TEST;break;case 42:fe.addElement(Ke[lt-3]);break;case 43:fe.addElement(Ke[lt-5]),fe.setClass([Ke[lt-5]],Ke[lt-3]);break;case 44:fe.setNewElementType(Ke[lt-2]);break;case 45:fe.setNewElementDocRef(Ke[lt-2]);break;case 48:fe.addRelationship(Ke[lt-2],Ke[lt],Ke[lt-4]);break;case 49:fe.addRelationship(Ke[lt-2],Ke[lt-4],Ke[lt]);break;case 50:this.$=fe.Relationships.CONTAINS;break;case 51:this.$=fe.Relationships.COPIES;break;case 52:this.$=fe.Relationships.DERIVES;break;case 53:this.$=fe.Relationships.SATISFIES;break;case 54:this.$=fe.Relationships.VERIFIES;break;case 55:this.$=fe.Relationships.REFINES;break;case 56:this.$=fe.Relationships.TRACES;break;case 57:this.$=Ke[lt-2],fe.defineClass(Ke[lt-1],Ke[lt]);break;case 58:fe.setClass(Ke[lt-1],Ke[lt]);break;case 59:fe.setClass([Ke[lt-2]],Ke[lt]);break;case 60:case 62:this.$=[Ke[lt]];break;case 61:case 63:this.$=Ke[lt-2].concat([Ke[lt]]);break;case 64:this.$=Ke[lt-2],fe.setCssStyle(Ke[lt-1],Ke[lt]);break;case 65:this.$=[Ke[lt]];break;case 66:Ke[lt-2].push(Ke[lt]),this.$=Ke[lt-2];break;case 68:this.$=Ke[lt-1]+Ke[lt];break}},"anonymous"),table:[{3:1,4:2,6:t,9:r,11:a,13:s},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:a,13:s},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:t,9:r,11:a,13:s},{1:[2,2]},{4:17,5:u,7:13,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:u,7:42,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:43,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:44,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:45,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:46,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:47,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:48,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:49,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:50,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(U,[2,17]),e(U,[2,18]),e(U,[2,19]),e(U,[2,20]),{30:60,33:62,75:$,89:M,90:F},{30:63,33:62,75:$,89:M,90:F},{30:64,33:62,75:$,89:M,90:F},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(B,[2,81]),e(B,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Z,[2,79]),e(Z,[2,80]),{27:[1,67],29:[1,68]},e(Z,[2,85]),e(Z,[2,86]),{62:69,65:z,66:Y,67:W,68:Q,69:V,70:j,71:ee},{62:77,65:z,66:Y,67:W,68:Q,69:V,70:j,71:ee},{30:78,33:62,75:$,89:M,90:F},{73:79,75:te,76:ne,78:81,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},e(he,[2,60]),e(he,[2,62]),{73:93,75:te,76:ne,78:81,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},{30:94,33:62,75:$,76:ne,89:M,90:F},{5:[1,95]},{30:96,33:62,75:$,89:M,90:F},{5:[1,97]},{30:98,33:62,75:$,89:M,90:F},{63:[1,99]},e(we,[2,50]),e(we,[2,51]),e(we,[2,52]),e(we,[2,53]),e(we,[2,54]),e(we,[2,55]),e(we,[2,56]),{64:[1,100]},e(U,[2,59],{76:ne}),e(U,[2,64],{76:Ce}),{33:103,75:[1,102],89:M,90:F},e(Ie,[2,65],{79:104,75:te,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee}),e(Le,[2,67]),e(Le,[2,69]),e(Le,[2,70]),e(Le,[2,71]),e(Le,[2,72]),e(Le,[2,73]),e(Le,[2,74]),e(Le,[2,75]),e(Le,[2,76]),e(Le,[2,77]),e(Le,[2,78]),e(U,[2,57],{76:Ce}),e(U,[2,58],{76:ne}),{5:Fe,28:105,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{27:[1,112],76:ne},{5:Kt,40:Ft,56:113,57:Je,59:ht},{27:[1,118],76:ne},{33:119,89:M,90:F},{33:120,89:M,90:F},{75:te,78:121,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},e(he,[2,61]),e(he,[2,63]),e(Le,[2,68]),e(U,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Fe,28:126,31:Ve,34:Oe,36:Dt,38:ot,40:sn},e(U,[2,28]),{5:[1,127]},e(U,[2,42]),{32:[1,128]},{32:[1,129]},{5:Kt,40:Ft,56:130,57:Je,59:ht},e(U,[2,47]),{5:[1,131]},e(U,[2,48]),e(U,[2,49]),e(Ie,[2,66],{79:104,75:te,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee}),{33:132,89:M,90:F},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(U,[2,27]),{5:Fe,28:145,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(U,[2,46]),{5:Kt,40:Ft,56:152,57:Je,59:ht},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(U,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(U,[2,43]),{5:Fe,28:159,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:160,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:161,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:162,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Kt,40:Ft,56:163,57:Je,59:ht},{5:Kt,40:Ft,56:164,57:Je,59:ht},e(U,[2,23]),e(U,[2,24]),e(U,[2,25]),e(U,[2,26]),e(U,[2,44]),e(U,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:X(function(Ye,Ae){if(Ae.recoverable)this.trace(Ye);else{var Xe=new Error(Ye);throw Xe.hash=Ae,Xe}},"parseError"),parse:X(function(Ye){var Ae=this,Xe=[0],fe=[],Qe=[null],Ke=[],mt=this.table,lt="",$t=0,Ut=0,Jt=2,wn=1,Vn=Ke.slice.call(arguments,1),Wn=Object.create(this.lexer),Dn={yy:{}};for(var zn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zn)&&(Dn.yy[zn]=this.yy[zn]);Wn.setInput(Ye,Dn.yy),Dn.yy.lexer=Wn,Dn.yy.parser=this,typeof Wn.yylloc>"u"&&(Wn.yylloc={});var vn=Wn.yylloc;Ke.push(vn);var Cn=Wn.options&&Wn.options.ranges;typeof Dn.yy.parseError=="function"?this.parseError=Dn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ar(Os){Xe.length=Xe.length-2*Os,Qe.length=Qe.length-Os,Ke.length=Ke.length-Os}X(Ar,"popStack");function ur(){var Os;return Os=fe.pop()||Wn.lex()||wn,typeof Os!="number"&&(Os instanceof Array&&(fe=Os,Os=fe.pop()),Os=Ae.symbols_[Os]||Os),Os}X(ur,"lex");for(var On,Ir,Ln,pr,Cr={},Zr,Pr,Ci,ds;;){if(Ir=Xe[Xe.length-1],this.defaultActions[Ir]?Ln=this.defaultActions[Ir]:((On===null||typeof On>"u")&&(On=ur()),Ln=mt[Ir]&&mt[Ir][On]),typeof Ln>"u"||!Ln.length||!Ln[0]){var ta="";ds=[];for(Zr in mt[Ir])this.terminals_[Zr]&&Zr>Jt&&ds.push("'"+this.terminals_[Zr]+"'");Wn.showPosition?ta="Parse error on line "+($t+1)+`:
`+Wn.showPosition()+`
Expecting `+ds.join(", ")+", got '"+(this.terminals_[On]||On)+"'":ta="Parse error on line "+($t+1)+": Unexpected "+(On==wn?"end of input":"'"+(this.terminals_[On]||On)+"'"),this.parseError(ta,{text:Wn.match,token:this.terminals_[On]||On,line:Wn.yylineno,loc:vn,expected:ds})}if(Ln[0]instanceof Array&&Ln.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ir+", token: "+On);switch(Ln[0]){case 1:Xe.push(On),Qe.push(Wn.yytext),Ke.push(Wn.yylloc),Xe.push(Ln[1]),On=null,Ut=Wn.yyleng,lt=Wn.yytext,$t=Wn.yylineno,vn=Wn.yylloc;break;case 2:if(Pr=this.productions_[Ln[1]][1],Cr.$=Qe[Qe.length-Pr],Cr._$={first_line:Ke[Ke.length-(Pr||1)].first_line,last_line:Ke[Ke.length-1].last_line,first_column:Ke[Ke.length-(Pr||1)].first_column,last_column:Ke[Ke.length-1].last_column},Cn&&(Cr._$.range=[Ke[Ke.length-(Pr||1)].range[0],Ke[Ke.length-1].range[1]]),pr=this.performAction.apply(Cr,[lt,Ut,$t,Dn.yy,Ln[1],Qe,Ke].concat(Vn)),typeof pr<"u")return pr;Pr&&(Xe=Xe.slice(0,-1*Pr*2),Qe=Qe.slice(0,-1*Pr),Ke=Ke.slice(0,-1*Pr)),Xe.push(this.productions_[Ln[1]][0]),Qe.push(Cr.$),Ke.push(Cr._$),Ci=mt[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(Ci);break;case 3:return!0}}return!0},"parse")},qe=function(){var Ge={EOF:1,parseError:X(function(Ae,Xe){if(this.yy.parser)this.yy.parser.parseError(Ae,Xe);else throw new Error(Ae)},"parseError"),setInput:X(function(Ye,Ae){return this.yy=Ae||this.yy||{},this._input=Ye,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},"setInput"),input:X(function(){var Ye=this._input[0];this.yytext+=Ye,this.yyleng++,this.offset++,this.match+=Ye,this.matched+=Ye;var Ae=Ye.match(/(?:\r\n?|\n).*/g);return Ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ye},"input"),unput:X(function(Ye){var Ae=Ye.length,Xe=Ye.split(/(?:\r\n?|\n)/g);this._input=Ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ae),this.offset-=Ae;var fe=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),Xe.length-1&&(this.yylineno-=Xe.length-1);var Qe=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:Xe?(Xe.length===fe.length?this.yylloc.first_column:0)+fe[fe.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-Ae},this.options.ranges&&(this.yylloc.range=[Qe[0],Qe[0]+this.yyleng-Ae]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Ye){this.unput(this.match.slice(Ye))},"less"),pastInput:X(function(){var Ye=this.matched.substr(0,this.matched.length-this.match.length);return(Ye.length>20?"...":"")+Ye.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Ye=this.match;return Ye.length<20&&(Ye+=this._input.substr(0,20-Ye.length)),(Ye.substr(0,20)+(Ye.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Ye=this.pastInput(),Ae=new Array(Ye.length+1).join("-");return Ye+this.upcomingInput()+`
`+Ae+"^"},"showPosition"),test_match:X(function(Ye,Ae){var Xe,fe,Qe;if(this.options.backtrack_lexer&&(Qe={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&&(Qe.yylloc.range=this.yylloc.range.slice(0))),fe=Ye[0].match(/(?:\r\n?|\n).*/g),fe&&(this.yylineno+=fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:fe?fe[fe.length-1].length-fe[fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ye[0].length},this.yytext+=Ye[0],this.match+=Ye[0],this.matches=Ye,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(Ye[0].length),this.matched+=Ye[0],Xe=this.performAction.call(this,this.yy,this,Ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xe)return Xe;if(this._backtrack){for(var Ke in Qe)this[Ke]=Qe[Ke];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ye,Ae,Xe,fe;this._more||(this.yytext="",this.match="");for(var Qe=this._currentRules(),Ke=0;Ke<Qe.length;Ke++)if(Xe=this._input.match(this.rules[Qe[Ke]]),Xe&&(!Ae||Xe[0].length>Ae[0].length)){if(Ae=Xe,fe=Ke,this.options.backtrack_lexer){if(Ye=this.test_match(Xe,Qe[Ke]),Ye!==!1)return Ye;if(this._backtrack){Ae=!1;continue}else return!1}else if(!this.options.flex)break}return Ae?(Ye=this.test_match(Ae,Qe[fe]),Ye!==!1?Ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Ae=this.next();return Ae||this.lex()},"lex"),begin:X(function(Ae){this.conditionStack.push(Ae)},"begin"),popState:X(function(){var Ae=this.conditionStack.length-1;return Ae>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Ae){return Ae=this.conditionStack.length-1-Math.abs(Ae||0),Ae>=0?this.conditionStack[Ae]:"INITIAL"},"topState"),pushState:X(function(Ae){this.begin(Ae)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Ae,Xe,fe,Qe){switch(fe){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return Xe.yytext=Xe.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/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,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,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,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return Ge}();et.lexer=qe;function He(){this.yy={}}return X(He,"Parser"),He.prototype=et,et.Parser=He,new He}();Cut.parser=Cut;var hWi=Cut,nj,dWi=(nj=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(t){this.direction=t}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(t,r){return this.requirements.has(t)||this.requirements.set(t,{name:t,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(t)}getRequirements(){return this.requirements}setNewReqId(t){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=t)}setNewReqText(t){this.latestRequirement!==void 0&&(this.latestRequirement.text=t)}setNewReqRisk(t){this.latestRequirement!==void 0&&(this.latestRequirement.risk=t)}setNewReqVerifyMethod(t){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=t)}addElement(t){return this.elements.has(t)||(this.elements.set(t,{name:t,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),it.info("Added new element: ",t)),this.resetLatestElement(),this.elements.get(t)}getElements(){return this.elements}setNewElementType(t){this.latestElement!==void 0&&(this.latestElement.type=t)}setNewElementDocRef(t){this.latestElement!==void 0&&(this.latestElement.docRef=t)}addRelationship(t,r,a){this.relations.push({type:t,src:r,dst:a})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,M1()}setCssStyle(t,r){for(const a of t){const s=this.requirements.get(a)??this.elements.get(a);if(!r||!s)return;for(const o of r)o.includes(",")?s.cssStyles.push(...o.split(",")):s.cssStyles.push(o)}}setClass(t,r){var a;for(const s of t){const o=this.requirements.get(s)??this.elements.get(s);if(o)for(const u of r){o.classes.push(u);const h=(a=this.classes.get(u))==null?void 0:a.styles;h&&o.cssStyles.push(...h)}}}defineClass(t,r){for(const a of t){let s=this.classes.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.classes.set(a,s)),r&&r.forEach(function(o){if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)}),this.requirements.forEach(o=>{o.classes.includes(a)&&o.cssStyles.push(...r.flatMap(u=>u.split(",")))}),this.elements.forEach(o=>{o.classes.includes(a)&&o.cssStyles.push(...r.flatMap(u=>u.split(",")))})}}getClasses(){return this.classes}getData(){var s,o,u,h;const t=nn(),r=[],a=[];for(const f of this.requirements.values()){const p=f;p.id=f.name,p.cssStyles=f.cssStyles,p.cssClasses=f.classes.join(" "),p.shape="requirementBox",p.look=t.look,r.push(p)}for(const f of this.elements.values()){const p=f;p.shape="requirementBox",p.look=t.look,p.id=f.name,p.cssStyles=f.cssStyles,p.cssClasses=f.classes.join(" "),r.push(p)}for(const f of this.relations){let p=0;const m=f.type===this.Relationships.CONTAINS,b={id:`${f.src}-${f.dst}-${p}`,start:((s=this.requirements.get(f.src))==null?void 0:s.name)??((o=this.elements.get(f.src))==null?void 0:o.name),end:((u=this.requirements.get(f.dst))==null?void 0:u.name)??((h=this.elements.get(f.dst))==null?void 0:h.name),label:`&lt;&lt;${f.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",m?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:m?"normal":"dashed",arrowTypeStart:m?"requirement_contains":"",arrowTypeEnd:m?"":"requirement_arrow",look:t.look};a.push(b),p++}return{nodes:r,edges:a,other:{},config:t,direction:this.getDirection()}}},X(nj,"RequirementDB"),nj),fWi=X(e=>`

  marker {
    fill: ${e.relationColor};
    stroke: ${e.relationColor};
  }

  marker.cross {
    stroke: ${e.lineColor};
  }

  svg {
    font-family: ${e.fontFamily};
    font-size: ${e.fontSize};
  }

  .reqBox {
    fill: ${e.requirementBackground};
    fill-opacity: 1.0;
    stroke: ${e.requirementBorderColor};
    stroke-width: ${e.requirementBorderSize};
  }
  
  .reqTitle, .reqLabel{
    fill:  ${e.requirementTextColor};
  }
  .reqLabelBox {
    fill: ${e.relationLabelBackground};
    fill-opacity: 1.0;
  }

  .req-title-line {
    stroke: ${e.requirementBorderColor};
    stroke-width: ${e.requirementBorderSize};
  }
  .relationshipLine {
    stroke: ${e.relationColor};
    stroke-width: 1;
  }
  .relationshipLabel {
    fill: ${e.relationLabelColor};
  }
  .divider {
    stroke: ${e.nodeBorder};
    stroke-width: 1;
  }
  .label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .label text,span {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }
  .labelBkg {
    background-color: ${e.edgeLabelBackground};
  }

`,"getStyles"),pWi=fWi,UKn={};KCe(UKn,{draw:()=>gWi});var gWi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing requirement diagram (unified)",t);const{securityLevel:s,state:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.nodeSpacing=(o==null?void 0:o.nodeSpacing)??50,h.rankSpacing=(o==null?void 0:o.rankSpacing)??50,h.markers=["requirement_contains","requirement_arrow"],h.diagramId=t,await $W(h,f);const p=8;Vo.insertTitle(f,"requirementDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,"requirementDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),mWi={parser:hWi,get db(){return new dWi},renderer:UKn,styles:pWi};const bWi=Object.freeze(Object.defineProperty({__proto__:null,diagram:mWi},Symbol.toStringTag,{value:"Module"}));var Aut=function(){var e=X(function(Ee,he,we,Ce){for(we=we||{},Ce=Ee.length;Ce--;we[Ee[Ce]]=he);return we},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,13],f=[1,14],p=[1,16],m=[1,17],b=[1,18],_=[1,24],w=[1,25],S=[1,26],C=[1,27],A=[1,28],k=[1,29],I=[1,30],N=[1,31],L=[1,32],P=[1,33],M=[1,34],F=[1,35],U=[1,36],$=[1,37],G=[1,38],B=[1,39],Z=[1,41],z=[1,42],Y=[1,43],W=[1,44],Q=[1,45],V=[1,46],j=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],ee=[2,71],te=[4,5,16,50,52,53],ne=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],se=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],ie=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],ge=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ce=[69,70,71],be=[1,127],ve={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:X(function(he,we,Ce,Ie,Le,Fe,Ve){var Oe=Fe.length-1;switch(Le){case 3:return Ie.apply(Fe[Oe]),Fe[Oe];case 4:case 9:this.$=[];break;case 5:case 10:Fe[Oe-1].push(Fe[Oe]),this.$=Fe[Oe-1];break;case 6:case 7:case 11:case 12:this.$=Fe[Oe];break;case 8:case 13:this.$=[];break;case 15:Fe[Oe].type="createParticipant",this.$=Fe[Oe];break;case 16:Fe[Oe-1].unshift({type:"boxStart",boxData:Ie.parseBoxData(Fe[Oe-2])}),Fe[Oe-1].push({type:"boxEnd",boxText:Fe[Oe-2]}),this.$=Fe[Oe-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Fe[Oe-2]),sequenceIndexStep:Number(Fe[Oe-1]),sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Fe[Oe-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ie.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:Fe[Oe-1].actor};break;case 23:this.$={type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:Fe[Oe-1].actor};break;case 29:Ie.setDiagramTitle(Fe[Oe].substring(6)),this.$=Fe[Oe].substring(6);break;case 30:Ie.setDiagramTitle(Fe[Oe].substring(7)),this.$=Fe[Oe].substring(7);break;case 31:this.$=Fe[Oe].trim(),Ie.setAccTitle(this.$);break;case 32:case 33:this.$=Fe[Oe].trim(),Ie.setAccDescription(this.$);break;case 34:Fe[Oe-1].unshift({type:"loopStart",loopText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.LOOP_START}),Fe[Oe-1].push({type:"loopEnd",loopText:Fe[Oe-2],signalType:Ie.LINETYPE.LOOP_END}),this.$=Fe[Oe-1];break;case 35:Fe[Oe-1].unshift({type:"rectStart",color:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.RECT_START}),Fe[Oe-1].push({type:"rectEnd",color:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.RECT_END}),this.$=Fe[Oe-1];break;case 36:Fe[Oe-1].unshift({type:"optStart",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.OPT_START}),Fe[Oe-1].push({type:"optEnd",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.OPT_END}),this.$=Fe[Oe-1];break;case 37:Fe[Oe-1].unshift({type:"altStart",altText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.ALT_START}),Fe[Oe-1].push({type:"altEnd",signalType:Ie.LINETYPE.ALT_END}),this.$=Fe[Oe-1];break;case 38:Fe[Oe-1].unshift({type:"parStart",parText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.PAR_START}),Fe[Oe-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=Fe[Oe-1];break;case 39:Fe[Oe-1].unshift({type:"parStart",parText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.PAR_OVER_START}),Fe[Oe-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=Fe[Oe-1];break;case 40:Fe[Oe-1].unshift({type:"criticalStart",criticalText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.CRITICAL_START}),Fe[Oe-1].push({type:"criticalEnd",signalType:Ie.LINETYPE.CRITICAL_END}),this.$=Fe[Oe-1];break;case 41:Fe[Oe-1].unshift({type:"breakStart",breakText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.BREAK_START}),Fe[Oe-1].push({type:"breakEnd",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.BREAK_END}),this.$=Fe[Oe-1];break;case 43:this.$=Fe[Oe-3].concat([{type:"option",optionText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.CRITICAL_OPTION},Fe[Oe]]);break;case 45:this.$=Fe[Oe-3].concat([{type:"and",parText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.PAR_AND},Fe[Oe]]);break;case 47:this.$=Fe[Oe-3].concat([{type:"else",altText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.ALT_ELSE},Fe[Oe]]);break;case 48:Fe[Oe-3].draw="participant",Fe[Oe-3].type="addParticipant",Fe[Oe-3].description=Ie.parseMessage(Fe[Oe-1]),this.$=Fe[Oe-3];break;case 49:Fe[Oe-1].draw="participant",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 50:Fe[Oe-3].draw="actor",Fe[Oe-3].type="addParticipant",Fe[Oe-3].description=Ie.parseMessage(Fe[Oe-1]),this.$=Fe[Oe-3];break;case 51:Fe[Oe-1].draw="actor",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 52:Fe[Oe-1].type="destroyParticipant",this.$=Fe[Oe-1];break;case 53:Fe[Oe-1].draw="participant",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 54:this.$=[Fe[Oe-1],{type:"addNote",placement:Fe[Oe-2],actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 55:Fe[Oe-2]=[].concat(Fe[Oe-1],Fe[Oe-1]).slice(0,2),Fe[Oe-2][0]=Fe[Oe-2][0].actor,Fe[Oe-2][1]=Fe[Oe-2][1].actor,this.$=[Fe[Oe-1],{type:"addNote",placement:Ie.PLACEMENT.OVER,actor:Fe[Oe-2].slice(0,2),text:Fe[Oe]}];break;case 56:this.$=[Fe[Oe-1],{type:"addLinks",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 57:this.$=[Fe[Oe-1],{type:"addALink",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 58:this.$=[Fe[Oe-1],{type:"addProperties",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 59:this.$=[Fe[Oe-1],{type:"addDetails",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 62:this.$=[Fe[Oe-2],Fe[Oe]];break;case 63:this.$=Fe[Oe];break;case 64:this.$=Ie.PLACEMENT.LEFTOF;break;case 65:this.$=Ie.PLACEMENT.RIGHTOF;break;case 66:this.$=[Fe[Oe-4],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-4].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-3],msg:Fe[Oe],activate:!0},{type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:Fe[Oe-1].actor}];break;case 67:this.$=[Fe[Oe-4],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-4].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-3],msg:Fe[Oe]},{type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:Fe[Oe-4].actor}];break;case 68:this.$=[Fe[Oe-3],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-3].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-2],msg:Fe[Oe]}];break;case 69:this.$={type:"addParticipant",actor:Fe[Oe-1],config:Fe[Oe]};break;case 70:this.$=Fe[Oe-1].trim();break;case 71:this.$={type:"addParticipant",actor:Fe[Oe]};break;case 72:this.$=Ie.LINETYPE.SOLID_OPEN;break;case 73:this.$=Ie.LINETYPE.DOTTED_OPEN;break;case 74:this.$=Ie.LINETYPE.SOLID;break;case 75:this.$=Ie.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=Ie.LINETYPE.DOTTED;break;case 77:this.$=Ie.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=Ie.LINETYPE.SOLID_CROSS;break;case 79:this.$=Ie.LINETYPE.DOTTED_CROSS;break;case 80:this.$=Ie.LINETYPE.SOLID_POINT;break;case 81:this.$=Ie.LINETYPE.DOTTED_POINT;break;case 82:this.$=Ie.parseMessage(Fe[Oe].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},e(j,[2,5]),{9:47,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},e(j,[2,7]),e(j,[2,8]),e(j,[2,14]),{12:48,50:$,52:G,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:V},{22:55,71:V},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(j,[2,29]),e(j,[2,30]),{32:[1,61]},{34:[1,62]},e(j,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:V},{22:75,71:V},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:V},{22:92,71:V},{22:93,71:V},{22:94,71:V},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],ee),e(j,[2,6]),e(j,[2,15]),e(te,[2,9],{10:95}),e(j,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(j,[2,21]),{5:[1,99]},{5:[1,100]},e(j,[2,24]),e(j,[2,25]),e(j,[2,26]),e(j,[2,27]),e(j,[2,28]),e(j,[2,31]),e(j,[2,32]),e(ne,s,{7:101}),e(ne,s,{7:102}),e(ne,s,{7:103}),e(se,s,{40:104,7:105}),e(ie,s,{42:106,7:107}),e(ie,s,{7:107,42:108}),e(ge,s,{45:109,7:110}),e(ne,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],ee,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:V},e(ce,[2,72]),e(ce,[2,73]),e(ce,[2,74]),e(ce,[2,75]),e(ce,[2,76]),e(ce,[2,77]),e(ce,[2,78]),e(ce,[2,79]),e(ce,[2,80]),e(ce,[2,81]),{22:123,71:V},{22:125,59:124,71:V},{71:[2,64]},{71:[2,65]},{57:126,86:be},{57:128,86:be},{57:129,86:be},{57:130,86:be},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:$,52:G,53:B},{5:[1,136]},e(j,[2,19]),e(j,[2,20]),e(j,[2,22]),e(j,[2,23]),{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,137],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,138],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,139],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,140]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,46],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,49:[1,141],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,142]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,44],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,48:[1,143],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,144]},{16:[1,145]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,42],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,47:[1,146],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,147],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{15:[1,148]},e(j,[2,49]),e(j,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(j,[2,51]),e(j,[2,52]),{22:151,71:V},{22:152,71:V},{57:153,86:be},{57:154,86:be},{57:155,86:be},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(j,[2,16]),e(te,[2,10]),{12:157,50:$,52:G,53:B},e(te,[2,12]),e(te,[2,13]),e(j,[2,18]),e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),{15:[1,158]},e(j,[2,38]),{15:[1,159]},e(j,[2,39]),e(j,[2,40]),{15:[1,160]},e(j,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:be},{57:165,86:be},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:V},e(te,[2,11]),e(se,s,{7:105,40:167}),e(ie,s,{7:107,42:168}),e(ge,s,{7:110,45:169}),e(j,[2,48]),{5:[2,70]},e(j,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:X(function(he,we){if(we.recoverable)this.trace(he);else{var Ce=new Error(he);throw Ce.hash=we,Ce}},"parseError"),parse:X(function(he){var we=this,Ce=[0],Ie=[],Le=[null],Fe=[],Ve=this.table,Oe="",Dt=0,ot=0,sn=2,Kt=1,Ft=Fe.slice.call(arguments,1),Je=Object.create(this.lexer),ht={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(ht.yy[et]=this.yy[et]);Je.setInput(he,ht.yy),ht.yy.lexer=Je,ht.yy.parser=this,typeof Je.yylloc>"u"&&(Je.yylloc={});var qe=Je.yylloc;Fe.push(qe);var He=Je.options&&Je.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(wn){Ce.length=Ce.length-2*wn,Le.length=Le.length-wn,Fe.length=Fe.length-wn}X(Ge,"popStack");function Ye(){var wn;return wn=Ie.pop()||Je.lex()||Kt,typeof wn!="number"&&(wn instanceof Array&&(Ie=wn,wn=Ie.pop()),wn=we.symbols_[wn]||wn),wn}X(Ye,"lex");for(var Ae,Xe,fe,Qe,Ke={},mt,lt,$t,Ut;;){if(Xe=Ce[Ce.length-1],this.defaultActions[Xe]?fe=this.defaultActions[Xe]:((Ae===null||typeof Ae>"u")&&(Ae=Ye()),fe=Ve[Xe]&&Ve[Xe][Ae]),typeof fe>"u"||!fe.length||!fe[0]){var Jt="";Ut=[];for(mt in Ve[Xe])this.terminals_[mt]&&mt>sn&&Ut.push("'"+this.terminals_[mt]+"'");Je.showPosition?Jt="Parse error on line "+(Dt+1)+`:
`+Je.showPosition()+`
Expecting `+Ut.join(", ")+", got '"+(this.terminals_[Ae]||Ae)+"'":Jt="Parse error on line "+(Dt+1)+": Unexpected "+(Ae==Kt?"end of input":"'"+(this.terminals_[Ae]||Ae)+"'"),this.parseError(Jt,{text:Je.match,token:this.terminals_[Ae]||Ae,line:Je.yylineno,loc:qe,expected:Ut})}if(fe[0]instanceof Array&&fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+Ae);switch(fe[0]){case 1:Ce.push(Ae),Le.push(Je.yytext),Fe.push(Je.yylloc),Ce.push(fe[1]),Ae=null,ot=Je.yyleng,Oe=Je.yytext,Dt=Je.yylineno,qe=Je.yylloc;break;case 2:if(lt=this.productions_[fe[1]][1],Ke.$=Le[Le.length-lt],Ke._$={first_line:Fe[Fe.length-(lt||1)].first_line,last_line:Fe[Fe.length-1].last_line,first_column:Fe[Fe.length-(lt||1)].first_column,last_column:Fe[Fe.length-1].last_column},He&&(Ke._$.range=[Fe[Fe.length-(lt||1)].range[0],Fe[Fe.length-1].range[1]]),Qe=this.performAction.apply(Ke,[Oe,ot,Dt,ht.yy,fe[1],Le,Fe].concat(Ft)),typeof Qe<"u")return Qe;lt&&(Ce=Ce.slice(0,-1*lt*2),Le=Le.slice(0,-1*lt),Fe=Fe.slice(0,-1*lt)),Ce.push(this.productions_[fe[1]][0]),Le.push(Ke.$),Fe.push(Ke._$),$t=Ve[Ce[Ce.length-2]][Ce[Ce.length-1]],Ce.push($t);break;case 3:return!0}}return!0},"parse")},De=function(){var Ee={EOF:1,parseError:X(function(we,Ce){if(this.yy.parser)this.yy.parser.parseError(we,Ce);else throw new Error(we)},"parseError"),setInput:X(function(he,we){return this.yy=we||this.yy||{},this._input=he,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},"setInput"),input:X(function(){var he=this._input[0];this.yytext+=he,this.yyleng++,this.offset++,this.match+=he,this.matched+=he;var we=he.match(/(?:\r\n?|\n).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),he},"input"),unput:X(function(he){var we=he.length,Ce=he.split(/(?:\r\n?|\n)/g);this._input=he+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var Ie=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),Ce.length-1&&(this.yylineno-=Ce.length-1);var Le=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:Ce?(Ce.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Ce.length].length-Ce[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(he){this.unput(this.match.slice(he))},"less"),pastInput:X(function(){var he=this.matched.substr(0,this.matched.length-this.match.length);return(he.length>20?"...":"")+he.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var he=this.match;return he.length<20&&(he+=this._input.substr(0,20-he.length)),(he.substr(0,20)+(he.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var he=this.pastInput(),we=new Array(he.length+1).join("-");return he+this.upcomingInput()+`
`+we+"^"},"showPosition"),test_match:X(function(he,we){var Ce,Ie,Le;if(this.options.backtrack_lexer&&(Le={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&&(Le.yylloc.range=this.yylloc.range.slice(0))),Ie=he[0].match(/(?:\r\n?|\n).*/g),Ie&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+he[0].length},this.yytext+=he[0],this.match+=he[0],this.matches=he,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(he[0].length),this.matched+=he[0],Ce=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ce)return Ce;if(this._backtrack){for(var Fe in Le)this[Fe]=Le[Fe];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var he,we,Ce,Ie;this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),Fe=0;Fe<Le.length;Fe++)if(Ce=this._input.match(this.rules[Le[Fe]]),Ce&&(!we||Ce[0].length>we[0].length)){if(we=Ce,Ie=Fe,this.options.backtrack_lexer){if(he=this.test_match(Ce,Le[Fe]),he!==!1)return he;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?(he=this.test_match(we,Le[Ie]),he!==!1?he:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var we=this.next();return we||this.lex()},"lex"),begin:X(function(we){this.conditionStack.push(we)},"begin"),popState:X(function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},"topState"),pushState:X(function(we){this.begin(we)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(we,Ce,Ie,Le){switch(Ie){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return Ce.yytext=Ce.yytext.trim(),71;case 11:return Ce.yytext=Ce.yytext.trim(),this.begin("ALIAS"),71;case 12:return this.begin("LINE"),14;case 13:return this.begin("ID"),50;case 14:return this.begin("ID"),52;case 15:return 13;case 16:return this.begin("ID"),53;case 17:return Ce.yytext=Ce.yytext.trim(),this.begin("ALIAS"),71;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),36;case 21:return this.begin("LINE"),37;case 22:return this.begin("LINE"),38;case 23:return this.begin("LINE"),39;case 24:return this.begin("LINE"),49;case 25:return this.begin("LINE"),41;case 26:return this.begin("LINE"),43;case 27:return this.begin("LINE"),48;case 28:return this.begin("LINE"),44;case 29:return this.begin("LINE"),47;case 30:return this.begin("LINE"),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;case 42:return this.begin("ID"),23;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),33;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return Ce.yytext=Ce.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:return 86;case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\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,/^(?:par_over\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,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}};return Ee}();ve.lexer=De;function ye(){this.yy={}}return X(ye,"Parser"),ye.prototype=ve,ve.Parser=ye,new ye}();Aut.parser=Aut;var yWi=Aut,vWi={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,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},_Wi={FILLED:0,OPEN:1},wWi={LEFTOF:0,RIGHTOF:1,OVER:2},uEe={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},rj,EWi=(rj=class{constructor(){this.state=new gYn(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=N1,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getAccTitle=Mp,this.getAccDescription=Bp,this.getDiagramTitle=P1,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(nn().wrap),this.LINETYPE=vWi,this.ARROWTYPE=_Wi,this.PLACEMENT=wWi}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,r,a,s,o){let u=this.state.records.currentBox,h;if(o!==void 0){let p;o.includes(`
`)?p=o+`
`:p=`{
`+o+`
}`,h=fAe(p,{schema:dAe})}s=(h==null?void 0:h.type)??s;const f=this.state.records.actors.get(t);if(f){if(this.state.records.currentBox&&f.box&&this.state.records.currentBox!==f.box)throw new Error(`A same participant should only be defined in one Box: ${f.name} can't be in '${f.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(u=f.box?f.box:this.state.records.currentBox,f.box=u,f&&r===f.name&&a==null)return}if((a==null?void 0:a.text)==null&&(a={text:r,type:s}),(s==null||a.text==null)&&(a={text:r,type:s}),this.state.records.actors.set(t,{box:u,name:r,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s??"participant"}),this.state.records.prevActor){const p=this.state.records.actors.get(this.state.records.prevActor);p&&(p.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let r,a=0;if(!t)return 0;for(r=0;r<this.state.records.messages.length;r++)this.state.records.messages[r].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[r].from===t&&a++,this.state.records.messages[r].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[r].from===t&&a--;return a}addMessage(t,r,a,s){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:a.text,wrap:a.wrap??this.autoWrap(),answer:s})}addSignal(t,r,a,s,o=!1){if(s===this.LINETYPE.ACTIVE_END&&this.activationCount(t??"")<1){const h=new Error("Trying to inactivate an inactive participant ("+t+")");throw h.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},h}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:(a==null?void 0:a.text)??"",wrap:(a==null?void 0:a.wrap)??this.autoWrap(),type:s,activate:o}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();const r=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(r===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){var t;return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:((t=nn().sequence)==null?void 0:t.wrap)??!1}clear(){this.state.reset(),M1()}parseMessage(t){const r=t.trim(),{wrap:a,cleanedText:s}=this.extractWrap(r),o={text:s,wrap:a};return it.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(t){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let a=r!=null&&r[1]?r[1].trim():"transparent",s=r!=null&&r[2]?r[2].trim():void 0;if(window!=null&&window.CSS)window.CSS.supports("color",a)||(a="transparent",s=t.trim());else{const h=new Option().style;h.color=a,h.color!==a&&(a="transparent",s=t.trim())}const{wrap:o,cleanedText:u}=this.extractWrap(s);return{text:u?Ic(u,nn()):void 0,color:a,wrap:o}}addNote(t,r,a){const s={actor:t,placement:r,message:a.text,wrap:a.wrap??this.autoWrap()},o=[].concat(t,t);this.state.records.notes.push(s),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(t,r){const a=this.getActor(t);try{let s=Ic(r.text,nn());s=s.replace(/&equals;/g,"="),s=s.replace(/&amp;/g,"&");const o=JSON.parse(s);this.insertLinks(a,o)}catch(s){it.error("error while parsing actor link text",s)}}addALink(t,r){const a=this.getActor(t);try{const s={};let o=Ic(r.text,nn());const u=o.indexOf("@");o=o.replace(/&equals;/g,"="),o=o.replace(/&amp;/g,"&");const h=o.slice(0,u-1).trim(),f=o.slice(u+1).trim();s[h]=f,this.insertLinks(a,s)}catch(s){it.error("error while parsing actor link text",s)}}insertLinks(t,r){if(t.links==null)t.links=r;else for(const a in r)t.links[a]=r[a]}addProperties(t,r){const a=this.getActor(t);try{const s=Ic(r.text,nn()),o=JSON.parse(s);this.insertProperties(a,o)}catch(s){it.error("error while parsing actor properties text",s)}}insertProperties(t,r){if(t.properties==null)t.properties=r;else for(const a in r)t.properties[a]=r[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,r){const a=this.getActor(t),s=document.getElementById(r.text);try{const o=s.innerHTML,u=JSON.parse(o);u.properties&&this.insertProperties(a,u.properties),u.links&&this.insertLinks(a,u.links)}catch(o){it.error("error while parsing actor details text",o)}}getActorProperty(t,r){if((t==null?void 0:t.properties)!==void 0)return t.properties[r]}apply(t){if(Array.isArray(t))t.forEach(r=>{this.apply(r)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":N1(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return nn().sequence}},X(rj,"SequenceDB"),rj),xWi=X(e=>`.actor {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
  }

  text.actor > tspan {
    fill: ${e.actorTextColor};
    stroke: none;
  }

  .actor-line {
    stroke: ${e.actorLineColor};
  }
  
  .innerArc {
    stroke-width: 1.5;
    stroke-dasharray: none;
  }

  .messageLine0 {
    stroke-width: 1.5;
    stroke-dasharray: none;
    stroke: ${e.signalColor};
  }

  .messageLine1 {
    stroke-width: 1.5;
    stroke-dasharray: 2, 2;
    stroke: ${e.signalColor};
  }

  #arrowhead path {
    fill: ${e.signalColor};
    stroke: ${e.signalColor};
  }

  .sequenceNumber {
    fill: ${e.sequenceNumberColor};
  }

  #sequencenumber {
    fill: ${e.signalColor};
  }

  #crosshead path {
    fill: ${e.signalColor};
    stroke: ${e.signalColor};
  }

  .messageText {
    fill: ${e.signalTextColor};
    stroke: none;
  }

  .labelBox {
    stroke: ${e.labelBoxBorderColor};
    fill: ${e.labelBoxBkgColor};
  }

  .labelText, .labelText > tspan {
    fill: ${e.labelTextColor};
    stroke: none;
  }

  .loopText, .loopText > tspan {
    fill: ${e.loopTextColor};
    stroke: none;
  }

  .loopLine {
    stroke-width: 2px;
    stroke-dasharray: 2, 2;
    stroke: ${e.labelBoxBorderColor};
    fill: ${e.labelBoxBorderColor};
  }

  .note {
    //stroke: #decc93;
    stroke: ${e.noteBorderColor};
    fill: ${e.noteBkgColor};
  }

  .noteText, .noteText > tspan {
    fill: ${e.noteTextColor};
    stroke: none;
  }

  .activation0 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .activation1 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .activation2 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .actorPopupMenu {
    position: absolute;
  }

  .actorPopupMenuPanel {
    position: absolute;
    fill: ${e.actorBkg};
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
  .actor-man line {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
  }
  .actor-man circle, line {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
    stroke-width: 2px;
  }

`,"getStyles"),SWi=xWi,lF=18*2,aL="actor-top",sL="actor-bottom",Zke="actor-box",b9="actor-man",cle=X(function(e,t){return vke(e,t)},"drawRect"),TWi=X(function(e,t,r,a,s){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const o=t.links,u=t.actorCnt,h=t.rectData;var f="none";s&&(f="block !important");const p=e.append("g");p.attr("id","actor"+u+"_popup"),p.attr("class","actorPopupMenu"),p.attr("display",f);var m="";h.class!==void 0&&(m=" "+h.class);let b=h.width>r?h.width:r;const _=p.append("rect");if(_.attr("class","actorPopupMenuPanel"+m),_.attr("x",h.x),_.attr("y",h.height),_.attr("fill",h.fill),_.attr("stroke",h.stroke),_.attr("width",b),_.attr("height",h.height),_.attr("rx",h.rx),_.attr("ry",h.ry),o!=null){var w=20;for(let A in o){var S=p.append("a"),C=M9(o[A]);S.attr("xlink:href",C),S.attr("target","_blank"),jWi(a)(A,S,h.x+10,h.height+w,b,20,{class:"actor"},a),w+=30}}return _.attr("height",w),{height:h.height+w,width:b}},"drawPopup"),Jke=X(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),MTe=X(async function(e,t,r=null){let a=e.append("foreignObject");const s=await nce(t.text,$c()),u=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(a.attr("height",Math.round(u.height)).attr("width",Math.round(u.width)),t.class==="noteText"){const h=e.node().firstChild;h.setAttribute("height",u.height+2*t.textMargin);const f=h.getBBox();a.attr("x",Math.round(f.x+f.width/2-u.width/2)).attr("y",Math.round(f.y+f.height/2-u.height/2))}else if(r){let{startx:h,stopx:f,starty:p}=r;if(h>f){const m=h;h=f,f=m}a.attr("x",Math.round(h+Math.abs(h-f)/2-u.width/2)),t.class==="loopText"?a.attr("y",Math.round(p)):a.attr("y",Math.round(p-u.height))}return[a]},"drawKatex"),Jj=X(function(e,t){let r=0,a=0;const s=t.text.split(Ti.lineBreakRegex),[o,u]=N$(t.fontSize);let h=[],f=0,p=X(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":p=X(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":p=X(()=>Math.round(t.y+(r+a+t.textMargin)/2),"yfunc");break;case"bottom":case"end":p=X(()=>Math.round(t.y+(r+a+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[m,b]of s.entries()){t.textMargin!==void 0&&t.textMargin===0&&o!==void 0&&(f=m*o);const _=e.append("text");_.attr("x",t.x),_.attr("y",p()),t.anchor!==void 0&&_.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&_.style("font-family",t.fontFamily),u!==void 0&&_.style("font-size",u),t.fontWeight!==void 0&&_.style("font-weight",t.fontWeight),t.fill!==void 0&&_.attr("fill",t.fill),t.class!==void 0&&_.attr("class",t.class),t.dy!==void 0?_.attr("dy",t.dy):f!==0&&_.attr("dy",f);const w=b||jPn;if(t.tspan){const S=_.append("tspan");S.attr("x",t.x),t.fill!==void 0&&S.attr("fill",t.fill),S.text(w)}else _.text(w);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(a+=(_._groups||_)[0][0].getBBox().height,r=a),h.push(_)}return h},"drawText"),zKn=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");return a.attr("points",r(t.x,t.y,t.width,t.height,7)),a.attr("class","labelBox"),t.y=t.y+t.height/2,Jj(e,t),a},"drawLabel"),wc=-1,GKn=X((e,t,r,a)=>{e.select&&r.forEach(s=>{const o=t.get(s),u=e.select("#actor"+o.actorCnt);!a.mirrorActors&&o.stopy?u.attr("y2",o.stopy+o.height/2):a.mirrorActors&&u.attr("y2",o.stopy)})},"fixLifeLineHeights"),CWi=X(function(e,t,r,a){var w,S;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();var f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();var m="actor";(w=t.properties)!=null&&w.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.rx=3,p.ry=3,p.name=t.name;const b=cle(f,p);if(t.rectData=p,(S=t.properties)!=null&&S.icon){const C=t.properties.icon.trim();C.charAt(0)==="@"?Bgt(f,p.x+p.width-20,p.y+10,C.substr(1)):Pgt(f,p.x+p.width-20,p.y+10,C)}RR(r,u0(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:`actor ${Zke}`},r);let _=t.height;if(b.node){const C=b.node().getBBox();t.height=C.height,_=C.height}return _},"drawActorTypeParticipant"),AWi=X(function(e,t,r,a){var C,A;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();var f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();var m="actor";(C=t.properties)!=null&&C.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name;const b=6,_={...p,x:p.x+-b,y:p.y+ +b,class:"actor"},w=cle(f,p);if(cle(f,_),t.rectData=p,(A=t.properties)!=null&&A.icon){const k=t.properties.icon.trim();k.charAt(0)==="@"?Bgt(f,p.x+p.width-20,p.y+10,k.substr(1)):Pgt(f,p.x+p.width-20,p.y+10,k)}RR(r,u0(t.description))(t.description,f,p.x-b,p.y+b,p.width,p.height,{class:`actor ${Zke}`},r);let S=t.height;if(w.node){const k=w.node().getBBox();t.height=k.height,S=k.height}return S},"drawActorTypeCollections"),kWi=X(function(e,t,r,a){var k,I;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();let f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();let m="actor";(k=t.properties)!=null&&k.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name;const b=p.height/2,_=b/(2.5+p.height/50),w=f.append("g"),S=f.append("g");if(w.append("path").attr("d",`M ${p.x},${p.y+b}
    a ${_},${b} 0 0 0 0,${p.height}
    h ${p.width-2*_}
    a ${_},${b} 0 0 0 0,-${p.height}
    Z
  `).attr("class",m),S.append("path").attr("d",`M ${p.x},${p.y+b}
      a ${_},${b} 0 0 0 0,${p.height}`).attr("stroke","#666").attr("stroke-width","1px").attr("class",m),w.attr("transform",`translate(${_}, ${-(p.height/2)})`),S.attr("transform",`translate(${p.width-_}, ${-p.height/2})`),t.rectData=p,(I=t.properties)!=null&&I.icon){const N=t.properties.icon.trim(),L=p.x+p.width-20,P=p.y+10;N.charAt(0)==="@"?Bgt(f,L,P,N.substr(1)):Pgt(f,L,P,N)}RR(r,u0(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:`actor ${Zke}`},r);let C=t.height;const A=w.select("path:last-child");if(A.node()){const N=A.node().getBBox();t.height=N.height,C=N.height}return C},"drawActorTypeQueue"),RWi=X(function(e,t,r,a){var C;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+75,h=e.append("g").lower();a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor";const b=t.x+t.width/2,_=s+30,w=18;f.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),f.append("circle").attr("cx",b).attr("cy",_).attr("r",w).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),f.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${b}, ${_-w})`);const S=f.node().getBBox();return t.height=S.height+2*(((C=r==null?void 0:r.sequence)==null?void 0:C.labelBoxHeight)??0),RR(r,u0(t.description))(t.description,f,m.x,m.y+w+(a?5:10),m.width,m.height,{class:`actor ${b9}`},r),t.height},"drawActorTypeControl"),IWi=X(function(e,t,r,a){var C;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+75,h=e.append("g").lower(),f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor";const b=t.x+t.width/2,_=s+(a?10:25),w=18;f.append("circle").attr("cx",b).attr("cy",_).attr("r",w).attr("width",t.width).attr("height",t.height),f.append("line").attr("x1",b-w).attr("x2",b+w).attr("y1",_+w).attr("y2",_+w).attr("stroke","#333").attr("stroke-width",2);const S=f.node().getBBox();return t.height=S.height+(((C=r==null?void 0:r.sequence)==null?void 0:C.labelBoxHeight)??0),a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc),RR(r,u0(t.description))(t.description,f,m.x,m.y+(a?(_-s+w-5)/2:(_+w-s)/2),m.width,m.height,{class:`actor ${b9}`},r),a?f.attr("transform",`translate(0, ${w/2})`):f.attr("transform",`translate(0, ${w/2})`),t.height},"drawActorTypeEntity"),NWi=X(function(e,t,r,a){var I;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height+2*r.boxTextMargin,h=e.append("g").lower();let f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();let m="actor";(I=t.properties)!=null&&I.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name,p.x=t.x,p.y=s;const b=p.width/4,_=p.width/4,w=b/2,S=w/(2.5+b/50),C=f.append("g"),A=`
  M ${p.x},${p.y+S}
  a ${w},${S} 0 0 0 ${b},0
  a ${w},${S} 0 0 0 -${b},0
  l 0,${_-2*S}
  a ${w},${S} 0 0 0 ${b},0
  l 0,-${_-2*S}
`;C.append("path").attr("d",A).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",m),a?C.attr("transform",`translate(${b*1.5}, ${p.height/4-2*S})`):C.attr("transform",`translate(${b*1.5}, ${(p.height+S)/4})`),t.rectData=p,RR(r,u0(t.description))(t.description,f,p.x,p.y+(a?(p.height+_)/4:(p.height+S)/2),p.width,p.height,{class:`actor ${Zke}`},r);const k=C.select("path:last-child");if(k.node()){const N=k.node().getBBox();t.height=N.height+(r.sequence.labelBoxHeight??0)}return t.height},"drawActorTypeDatabase"),OWi=X(function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80,h=30,f=e.append("g").lower();a||(wc++,f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const p=e.append("g");let m=b9;a?m+=` ${sL}`:m+=` ${aL}`,p.attr("class",m),p.attr("name",t.name);const b=Ww();b.x=t.x,b.y=s,b.fill="#eaeaea",b.width=t.width,b.height=t.height,b.class="actor",p.append("line").attr("id","actor-man-torso"+wc).attr("x1",t.x+t.width/2-h*2.5).attr("y1",s+10).attr("x2",t.x+t.width/2-15).attr("y2",s+10),p.append("line").attr("id","actor-man-arms"+wc).attr("x1",t.x+t.width/2-h*2.5).attr("y1",s+0).attr("x2",t.x+t.width/2-h*2.5).attr("y2",s+20),p.append("circle").attr("cx",t.x+t.width/2).attr("cy",s+10).attr("r",h);const _=p.node().getBBox();return t.height=_.height+(r.sequence.labelBoxHeight??0),RR(r,u0(t.description))(t.description,p,b.x,b.y+(a?h/2-4:h/2+3),b.width,b.height,{class:`actor ${b9}`},r),a?p.attr("transform",`translate(0,${h/2+7})`):p.attr("transform",`translate(0,${h/2+7})`),t.height},"drawActorTypeBoundary"),LWi=X(function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80,h=e.append("g").lower();a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor",m.rx=3,m.ry=3,f.append("line").attr("id","actor-man-torso"+wc).attr("x1",o).attr("y1",s+25).attr("x2",o).attr("y2",s+45),f.append("line").attr("id","actor-man-arms"+wc).attr("x1",o-lF/2).attr("y1",s+33).attr("x2",o+lF/2).attr("y2",s+33),f.append("line").attr("x1",o-lF/2).attr("y1",s+60).attr("x2",o).attr("y2",s+45),f.append("line").attr("x1",o).attr("y1",s+45).attr("x2",o+lF/2-2).attr("y2",s+60);const b=f.append("circle");b.attr("cx",t.x+t.width/2),b.attr("cy",s+10),b.attr("r",15),b.attr("width",t.width),b.attr("height",t.height);const _=f.node().getBBox();return t.height=_.height,RR(r,u0(t.description))(t.description,f,m.x,m.y+35,m.width,m.height,{class:`actor ${b9}`},r),t.height},"drawActorTypeActor"),DWi=X(async function(e,t,r,a){switch(t.type){case"actor":return await LWi(e,t,r,a);case"participant":return await CWi(e,t,r,a);case"boundary":return await OWi(e,t,r,a);case"control":return await RWi(e,t,r,a);case"entity":return await IWi(e,t,r,a);case"database":return await NWi(e,t,r,a);case"collections":return await AWi(e,t,r,a);case"queue":return await kWi(e,t,r,a)}},"drawActor"),MWi=X(function(e,t,r){const s=e.append("g");qKn(s,t),t.name&&RR(r)(t.name,s,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),s.lower()},"drawBox"),PWi=X(function(e){return e.append("g")},"anchorElement"),BWi=X(function(e,t,r,a,s){const o=Ww(),u=t.anchored;o.x=t.startx,o.y=t.starty,o.class="activation"+s%3,o.width=t.stopx-t.startx,o.height=r-t.starty,cle(u,o)},"drawActivation"),FWi=X(async function(e,t,r,a){const{boxMargin:s,boxTextMargin:o,labelBoxHeight:u,labelBoxWidth:h,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=a,b=e.append("g"),_=X(function(C,A,k,I){return b.append("line").attr("x1",C).attr("y1",A).attr("x2",k).attr("y2",I).attr("class","loopLine")},"drawLoopLine");_(t.startx,t.starty,t.stopx,t.starty),_(t.stopx,t.starty,t.stopx,t.stopy),_(t.startx,t.stopy,t.stopx,t.stopy),_(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(C){_(t.startx,C.y,t.stopx,C.y).style("stroke-dasharray","3, 3")});let w=Fgt();w.text=r,w.x=t.startx,w.y=t.starty,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.anchor="middle",w.valign="middle",w.tspan=!1,w.width=h||50,w.height=u||20,w.textMargin=o,w.class="labelText",zKn(b,w),w=HKn(),w.text=t.title,w.x=t.startx+h/2+(t.stopx-t.startx)/2,w.y=t.starty+s+o,w.anchor="middle",w.valign="middle",w.textMargin=o,w.class="loopText",w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=!0;let S=u0(w.text)?await MTe(b,w,t):Jj(b,w);if(t.sectionTitles!==void 0){for(const[C,A]of Object.entries(t.sectionTitles))if(A.message){w.text=A.message,w.x=t.startx+(t.stopx-t.startx)/2,w.y=t.sections[C].y+s+o,w.class="loopText",w.anchor="middle",w.valign="middle",w.tspan=!1,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=t.wrap,u0(w.text)?(t.starty=t.sections[C].y,await MTe(b,w,t)):Jj(b,w);let k=Math.round(S.map(I=>(I._groups||I)[0][0].getBBox().height).reduce((I,N)=>I+N));t.sections[C].height+=k-(s+o)}}return t.height=Math.round(t.stopy-t.starty),b},"drawLoop"),qKn=X(function(e,t){rYn(e,t)},"drawBackgroundRect"),$Wi=X(function(e){e.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")},"insertDatabaseIcon"),UWi=X(function(e){e.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")},"insertComputerIcon"),zWi=X(function(e){e.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")},"insertClockIcon"),GWi=X(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),qWi=X(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).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")},"insertArrowFilledHead"),HWi=X(function(e){e.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)},"insertSequenceNumber"),VWi=X(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.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")},"insertArrowCrossHead"),HKn=X(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}},"getTextObj"),YWi=X(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),RR=function(){function e(o,u,h,f,p,m,b){const _=u.append("text").attr("x",h+p/2).attr("y",f+m/2+5).style("text-anchor","middle").text(o);s(_,b)}X(e,"byText");function t(o,u,h,f,p,m,b,_){const{actorFontSize:w,actorFontFamily:S,actorFontWeight:C}=_,[A,k]=N$(w),I=o.split(Ti.lineBreakRegex);for(let N=0;N<I.length;N++){const L=N*A-A*(I.length-1)/2,P=u.append("text").attr("x",h+p/2).attr("y",f).style("text-anchor","middle").style("font-size",k).style("font-weight",C).style("font-family",S);P.append("tspan").attr("x",h+p/2).attr("dy",L).text(I[N]),P.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(P,b)}}X(t,"byTspan");function r(o,u,h,f,p,m,b,_){const w=u.append("switch"),C=w.append("foreignObject").attr("x",h).attr("y",f).attr("width",p).attr("height",m).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");C.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(o),t(o,w,h,f,p,m,b,_),s(C,b)}X(r,"byFo");async function a(o,u,h,f,p,m,b,_){const w=await tce(o,$c()),S=u.append("switch"),A=S.append("foreignObject").attr("x",h+p/2-w.width/2).attr("y",f+m/2-w.height/2).attr("width",w.width).attr("height",w.height).append("xhtml:div").style("height","100%").style("width","100%");A.append("div").style("text-align","center").style("vertical-align","middle").html(await nce(o,$c())),t(o,S,h,f,p,m,b,_),s(A,b)}X(a,"byKatex");function s(o,u){for(const h in u)u.hasOwnProperty(h)&&o.attr(h,u[h])}return X(s,"_setTextAttrs"),function(o,u=!1){return u?a:o.textPlacement==="fo"?r:o.textPlacement==="old"?e:t}}(),jWi=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u).attr("y",h).style("text-anchor","start").text(s);a(b,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b){const{actorFontSize:_,actorFontFamily:w,actorFontWeight:S}=b,C=s.split(Ti.lineBreakRegex);for(let A=0;A<C.length;A++){const k=A*_-_*(C.length-1)/2,I=o.append("text").attr("x",u).attr("y",h).style("text-anchor","start").style("font-size",_).style("font-weight",S).style("font-family",w);I.append("tspan").attr("x",u).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}X(t,"byTspan");function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}X(r,"byFo");function a(s,o){for(const u in o)o.hasOwnProperty(u)&&s.attr(u,o[u])}return X(a,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),q0={drawRect:cle,drawText:Jj,drawLabel:zKn,drawActor:DWi,drawBox:MWi,drawPopup:TWi,anchorElement:PWi,drawActivation:BWi,drawLoop:FWi,drawBackgroundRect:qKn,insertArrowHead:GWi,insertArrowFilledHead:qWi,insertSequenceNumber:HWi,insertArrowCrossHead:VWi,insertDatabaseIcon:$Wi,insertComputerIcon:UWi,insertClockIcon:zWi,getTextObj:HKn,getNoteRect:YWi,fixLifeLineHeights:GKn,sanitizeUrl:M9},Mn={},li={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:X(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:X(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:X(function(e){this.boxes.push(e)},"addBox"),addActor:X(function(e){this.actors.push(e)},"addActor"),addLoop:X(function(e){this.loops.push(e)},"addLoop"),addMessage:X(function(e){this.messages.push(e)},"addMessage"),addNote:X(function(e){this.notes.push(e)},"addNote"),lastActor:X(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:X(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:X(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:X(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:X(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,jKn(nn())},"init"),updateVal:X(function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},"updateVal"),updateBounds:X(function(e,t,r,a){const s=this;let o=0;function u(h){return X(function(p){o++;const m=s.sequenceItems.length-o+1;s.updateVal(p,"starty",t-m*Mn.boxMargin,Math.min),s.updateVal(p,"stopy",a+m*Mn.boxMargin,Math.max),s.updateVal(li.data,"startx",e-m*Mn.boxMargin,Math.min),s.updateVal(li.data,"stopx",r+m*Mn.boxMargin,Math.max),h!=="activation"&&(s.updateVal(p,"startx",e-m*Mn.boxMargin,Math.min),s.updateVal(p,"stopx",r+m*Mn.boxMargin,Math.max),s.updateVal(li.data,"starty",t-m*Mn.boxMargin,Math.min),s.updateVal(li.data,"stopy",a+m*Mn.boxMargin,Math.max))},"updateItemBounds")}X(u,"updateFn"),this.sequenceItems.forEach(u()),this.activations.forEach(u("activation"))},"updateBounds"),insert:X(function(e,t,r,a){const s=Ti.getMin(e,r),o=Ti.getMax(e,r),u=Ti.getMin(t,a),h=Ti.getMax(t,a);this.updateVal(li.data,"startx",s,Math.min),this.updateVal(li.data,"starty",u,Math.min),this.updateVal(li.data,"stopx",o,Math.max),this.updateVal(li.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},"insert"),newActivation:X(function(e,t,r){const a=r.get(e.from),s=e6e(e.from).length||0,o=a.x+a.width/2+(s-1)*Mn.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+Mn.activationWidth,stopy:void 0,actor:e.from,anchored:q0.anchorElement(t)})},"newActivation"),endActivation:X(function(e){const t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:X(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:X(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:X(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:X(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:X(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:li.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:X(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:X(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:X(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=Ti.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:X(function(){return this.verticalPos},"getVerticalPos"),getBounds:X(function(){return{bounds:this.data,models:this.models}},"getBounds")},WWi=X(async function(e,t){li.bumpVerticalPos(Mn.boxMargin),t.height=Mn.boxMargin,t.starty=li.getVerticalPos();const r=Ww();r.x=t.startx,r.y=t.starty,r.width=t.width||Mn.width,r.class="note";const a=e.append("g"),s=q0.drawRect(a,r),o=Fgt();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=Mn.noteFontFamily,o.fontSize=Mn.noteFontSize,o.fontWeight=Mn.noteFontWeight,o.anchor=Mn.noteAlign,o.textMargin=Mn.noteMargin,o.valign="center";const u=u0(o.text)?await MTe(a,o):Jj(a,o),h=Math.round(u.map(f=>(f._groups||f)[0][0].getBBox().height).reduce((f,p)=>f+p));s.attr("height",h+2*Mn.noteMargin),t.height+=h+2*Mn.noteMargin,li.bumpVerticalPos(h+2*Mn.noteMargin),t.stopy=t.starty+h+2*Mn.noteMargin,t.stopx=t.startx+r.width,li.insert(t.startx,t.starty,t.stopx,t.stopy),li.models.addNote(t)},"drawNote"),o$=X(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),bV=X(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),kut=X(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function VKn(e,t){li.bumpVerticalPos(10);const{startx:r,stopx:a,message:s}=t,o=Ti.splitBreaks(s).length,u=u0(s),h=u?await tce(s,nn()):Vo.calculateTextDimensions(s,o$(Mn));if(!u){const b=h.height/o;t.height+=b,li.bumpVerticalPos(b)}let f,p=h.height-10;const m=h.width;if(r===a){f=li.getVerticalPos()+p,Mn.rightAngles||(p+=Mn.boxMargin,f=li.getVerticalPos()+p),p+=30;const b=Ti.getMax(m/2,Mn.width/2);li.insert(r-b,li.getVerticalPos()-10+p,a+b,li.getVerticalPos()+30+p)}else p+=Mn.boxMargin,f=li.getVerticalPos()+p,li.insert(r,f-10,a,f);return li.bumpVerticalPos(p),t.height+=p,t.stopy=t.starty+t.height,li.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),f}X(VKn,"boundMessage");var KWi=X(async function(e,t,r,a){const{startx:s,stopx:o,starty:u,message:h,type:f,sequenceIndex:p,sequenceVisible:m}=t,b=Vo.calculateTextDimensions(h,o$(Mn)),_=Fgt();_.x=s,_.y=u+10,_.width=o-s,_.class="messageText",_.dy="1em",_.text=h,_.fontFamily=Mn.messageFontFamily,_.fontSize=Mn.messageFontSize,_.fontWeight=Mn.messageFontWeight,_.anchor=Mn.messageAlign,_.valign="center",_.textMargin=Mn.wrapPadding,_.tspan=!1,u0(_.text)?await MTe(e,_,{startx:s,stopx:o,starty:r}):Jj(e,_);const w=b.width;let S;s===o?Mn.rightAngles?S=e.append("path").attr("d",`M  ${s},${r} H ${s+Ti.getMax(Mn.width/2,w/2)} V ${r+25} H ${s}`):S=e.append("path").attr("d","M "+s+","+r+" C "+(s+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)):(S=e.append("line"),S.attr("x1",s),S.attr("y1",r),S.attr("x2",o),S.attr("y2",r)),f===a.db.LINETYPE.DOTTED||f===a.db.LINETYPE.DOTTED_CROSS||f===a.db.LINETYPE.DOTTED_POINT||f===a.db.LINETYPE.DOTTED_OPEN||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED?(S.style("stroke-dasharray","3, 3"),S.attr("class","messageLine1")):S.attr("class","messageLine0");let C="";Mn.arrowMarkerAbsolute&&(C=tAe(!0)),S.attr("stroke-width",2),S.attr("stroke","none"),S.style("fill","none"),(f===a.db.LINETYPE.SOLID||f===a.db.LINETYPE.DOTTED)&&S.attr("marker-end","url("+C+"#arrowhead)"),(f===a.db.LINETYPE.BIDIRECTIONAL_SOLID||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(S.attr("marker-start","url("+C+"#arrowhead)"),S.attr("marker-end","url("+C+"#arrowhead)")),(f===a.db.LINETYPE.SOLID_POINT||f===a.db.LINETYPE.DOTTED_POINT)&&S.attr("marker-end","url("+C+"#filled-head)"),(f===a.db.LINETYPE.SOLID_CROSS||f===a.db.LINETYPE.DOTTED_CROSS)&&S.attr("marker-end","url("+C+"#crosshead)"),(m||Mn.showSequenceNumbers)&&((f===a.db.LINETYPE.BIDIRECTIONAL_SOLID||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(s<o?S.attr("x1",s+2*6):S.attr("x1",s+6)),e.append("line").attr("x1",s).attr("y1",r).attr("x2",s).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+C+"#sequencenumber)"),e.append("text").attr("x",s).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(p))},"drawMessage"),XWi=X(function(e,t,r,a,s,o,u){let h=0,f=0,p,m=0;for(const b of a){const _=t.get(b),w=_.box;p&&p!=w&&(u||li.models.addBox(p),f+=Mn.boxMargin+p.margin),w&&w!=p&&(u||(w.x=h+f,w.y=s),f+=w.margin),_.width=_.width||Mn.width,_.height=Ti.getMax(_.height||Mn.height,Mn.height),_.margin=_.margin||Mn.actorMargin,m=Ti.getMax(m,_.height),r.get(_.name)&&(f+=_.width/2),_.x=h+f,_.starty=li.getVerticalPos(),li.insert(_.x,s,_.x+_.width,_.height),h+=_.width+f,_.box&&(_.box.width=h+w.margin-_.box.x),f=_.margin,p=_.box,li.models.addActor(_)}p&&!u&&li.models.addBox(p),li.bumpVerticalPos(m)},"addActorRenderingData"),Rut=X(async function(e,t,r,a){if(a){let s=0;li.bumpVerticalPos(Mn.boxMargin*2);for(const o of r){const u=t.get(o);u.stopy||(u.stopy=li.getVerticalPos());const h=await q0.drawActor(e,u,Mn,!0);s=Ti.getMax(s,h)}li.bumpVerticalPos(s+Mn.boxMargin)}else for(const s of r){const o=t.get(s);await q0.drawActor(e,o,Mn,!1)}},"drawActors"),YKn=X(function(e,t,r,a){let s=0,o=0;for(const u of r){const h=t.get(u),f=ZWi(h),p=q0.drawPopup(e,h,f,Mn,Mn.forceMenus,a);p.height>s&&(s=p.height),p.width+h.x>o&&(o=p.width+h.x)}return{maxHeight:s,maxWidth:o}},"drawActorsPopup"),jKn=X(function(e){W0(Mn,e),e.fontFamily&&(Mn.actorFontFamily=Mn.noteFontFamily=Mn.messageFontFamily=e.fontFamily),e.fontSize&&(Mn.actorFontSize=Mn.noteFontSize=Mn.messageFontSize=e.fontSize),e.fontWeight&&(Mn.actorFontWeight=Mn.noteFontWeight=Mn.messageFontWeight=e.fontWeight)},"setConf"),e6e=X(function(e){return li.activations.filter(function(t){return t.actor===e})},"actorActivations"),aTn=X(function(e,t){const r=t.get(e),a=e6e(e),s=a.reduce(function(u,h){return Ti.getMin(u,h.startx)},r.x+r.width/2-1),o=a.reduce(function(u,h){return Ti.getMax(u,h.stopx)},r.x+r.width/2+1);return[s,o]},"activationBounds");function y3(e,t,r,a,s){li.bumpVerticalPos(r);let o=a;if(t.id&&t.message&&e[t.id]){const u=e[t.id].width,h=o$(Mn);t.message=Vo.wrapLabel(`[${t.message}]`,u-2*Mn.wrapPadding,h),t.width=u,t.wrap=!0;const f=Vo.calculateTextDimensions(t.message,h),p=Ti.getMax(f.height,Mn.labelBoxHeight);o=a+p,it.debug(`${p} - ${t.message}`)}s(t),li.bumpVerticalPos(o)}X(y3,"adjustLoopHeightForWrap");function WKn(e,t,r,a,s,o,u){function h(m,b){m.x<s.get(e.from).x?(li.insert(t.stopx-b,t.starty,t.startx,t.stopy+m.height/2+Mn.noteMargin),t.stopx=t.stopx+b):(li.insert(t.startx,t.starty,t.stopx+b,t.stopy+m.height/2+Mn.noteMargin),t.stopx=t.stopx-b)}X(h,"receiverAdjustment");function f(m,b){m.x<s.get(e.to).x?(li.insert(t.startx-b,t.starty,t.stopx,t.stopy+m.height/2+Mn.noteMargin),t.startx=t.startx+b):(li.insert(t.stopx,t.starty,t.startx+b,t.stopy+m.height/2+Mn.noteMargin),t.startx=t.startx-b)}X(f,"senderAdjustment");const p=[uEe.ACTOR,uEe.CONTROL,uEe.ENTITY,uEe.DATABASE];if(o.get(e.to)==a){const m=s.get(e.to),b=p.includes(m.type)?lF/2+3:m.width/2+3;h(m,b),m.starty=r-m.height/2,li.bumpVerticalPos(m.height/2)}else if(u.get(e.from)==a){const m=s.get(e.from);if(Mn.mirrorActors){const b=p.includes(m.type)?lF/2:m.width/2;f(m,b)}m.stopy=r-m.height/2,li.bumpVerticalPos(m.height/2)}else if(u.get(e.to)==a){const m=s.get(e.to);if(Mn.mirrorActors){const b=p.includes(m.type)?lF/2+3:m.width/2+3;h(m,b)}m.stopy=r-m.height/2,li.bumpVerticalPos(m.height/2)}}X(WKn,"adjustCreatedDestroyedData");var QWi=X(async function(e,t,r,a){const{securityLevel:s,sequence:o}=nn();Mn=o;let u;s==="sandbox"&&(u=gn("#i"+t));const h=gn(s==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=s==="sandbox"?u.nodes()[0].contentDocument:document;li.init(),it.debug(a.db);const p=s==="sandbox"?h.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=a.db.getActors(),b=a.db.getCreatedActors(),_=a.db.getDestroyedActors(),w=a.db.getBoxes();let S=a.db.getActorKeys();const C=a.db.getMessages(),A=a.db.getDiagramTitle(),k=a.db.hasAtLeastOneBox(),I=a.db.hasAtLeastOneBoxWithTitle(),N=await KKn(m,C,a);if(Mn.height=await XKn(m,N,w),q0.insertComputerIcon(p),q0.insertDatabaseIcon(p),q0.insertClockIcon(p),k&&(li.bumpVerticalPos(Mn.boxMargin),I&&li.bumpVerticalPos(w[0].textMaxHeight)),Mn.hideUnusedParticipants===!0){const j=new Set;C.forEach(ee=>{j.add(ee.from),j.add(ee.to)}),S=S.filter(ee=>j.has(ee))}XWi(p,m,b,S,0,C,!1);const L=await tKi(C,m,N,a);q0.insertArrowHead(p),q0.insertArrowCrossHead(p),q0.insertArrowFilledHead(p),q0.insertSequenceNumber(p);function P(j,ee){const te=li.endActivation(j);te.starty+18>ee&&(te.starty=ee-6,ee+=12),q0.drawActivation(p,te,ee,Mn,e6e(j.from).length),li.insert(te.startx,ee-10,te.stopx,ee)}X(P,"activeEnd");let M=1,F=1;const U=[],$=[];let G=0;for(const j of C){let ee,te,ne;switch(j.type){case a.db.LINETYPE.NOTE:li.resetVerticalPos(),te=j.noteModel,await WWi(p,te);break;case a.db.LINETYPE.ACTIVE_START:li.newActivation(j,p,m);break;case a.db.LINETYPE.ACTIVE_END:P(j,li.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.LOOP_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"loop",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.RECT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin,se=>li.newLoop(void 0,se.message));break;case a.db.LINETYPE.RECT_END:ee=li.endLoop(),$.push(ee),li.models.addLoop(ee),li.bumpVerticalPos(ee.stopy-li.getVerticalPos());break;case a.db.LINETYPE.OPT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.OPT_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"opt",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.ALT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.ALT_ELSE:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.ALT_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"alt",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se)),li.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.PAR_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"par",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.AUTONUMBER:M=j.message.start||M,F=j.message.step||F,j.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.CRITICAL_OPTION:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.CRITICAL_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"critical",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.BREAK_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.BREAK_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"break",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;default:try{ne=j.msgModel,ne.starty=li.getVerticalPos(),ne.sequenceIndex=M,ne.sequenceVisible=a.db.showSequenceNumbers();const se=await VKn(p,ne);WKn(j,ne,se,G,m,b,_),U.push({messageModel:ne,lineStartY:se}),li.models.addMessage(ne)}catch(se){it.error("error while drawing message",se)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(j.type)&&(M=M+F),G++}it.debug("createdActors",b),it.debug("destroyedActors",_),await Rut(p,m,S,!1);for(const j of U)await KWi(p,j.messageModel,j.lineStartY,a);Mn.mirrorActors&&await Rut(p,m,S,!0),$.forEach(j=>q0.drawBackgroundRect(p,j)),GKn(p,m,S,Mn);for(const j of li.models.boxes){j.height=li.getVerticalPos()-j.y,li.insert(j.x,j.y,j.x+j.width,j.height);const ee=Mn.boxMargin*2;j.startx=j.x-ee,j.starty=j.y-ee*.25,j.stopx=j.startx+j.width+2*ee,j.stopy=j.starty+j.height+ee*.75,j.stroke="rgb(0,0,0, 0.5)",q0.drawBox(p,j,Mn)}k&&li.bumpVerticalPos(Mn.boxMargin);const B=YKn(p,m,S,f),{bounds:Z}=li.getBounds();Z.startx===void 0&&(Z.startx=0),Z.starty===void 0&&(Z.starty=0),Z.stopx===void 0&&(Z.stopx=0),Z.stopy===void 0&&(Z.stopy=0);let z=Z.stopy-Z.starty;z<B.maxHeight&&(z=B.maxHeight);let Y=z+2*Mn.diagramMarginY;Mn.mirrorActors&&(Y=Y-Mn.boxMargin+Mn.bottomMarginAdj);let W=Z.stopx-Z.startx;W<B.maxWidth&&(W=B.maxWidth);const Q=W+2*Mn.diagramMarginX;A&&p.append("text").text(A).attr("x",(Z.stopx-Z.startx)/2-2*Mn.diagramMarginX).attr("y",-25),yv(p,Y,Q,Mn.useMaxWidth);const V=A?40:0;p.attr("viewBox",Z.startx-Mn.diagramMarginX+" -"+(Mn.diagramMarginY+V)+" "+Q+" "+(Y+V)),it.debug("models:",li.models)},"draw");async function KKn(e,t,r){const a={};for(const s of t)if(e.get(s.to)&&e.get(s.from)){const o=e.get(s.to);if(s.placement===r.db.PLACEMENT.LEFTOF&&!o.prevActor||s.placement===r.db.PLACEMENT.RIGHTOF&&!o.nextActor)continue;const u=s.placement!==void 0,h=!u,f=u?bV(Mn):o$(Mn),p=s.wrap?Vo.wrapLabel(s.message,Mn.width-2*Mn.wrapPadding,f):s.message,b=(u0(p)?await tce(s.message,nn()):Vo.calculateTextDimensions(p,f)).width+2*Mn.wrapPadding;h&&s.from===o.nextActor?a[s.to]=Ti.getMax(a[s.to]||0,b):h&&s.from===o.prevActor?a[s.from]=Ti.getMax(a[s.from]||0,b):h&&s.from===s.to?(a[s.from]=Ti.getMax(a[s.from]||0,b/2),a[s.to]=Ti.getMax(a[s.to]||0,b/2)):s.placement===r.db.PLACEMENT.RIGHTOF?a[s.from]=Ti.getMax(a[s.from]||0,b):s.placement===r.db.PLACEMENT.LEFTOF?a[o.prevActor]=Ti.getMax(a[o.prevActor]||0,b):s.placement===r.db.PLACEMENT.OVER&&(o.prevActor&&(a[o.prevActor]=Ti.getMax(a[o.prevActor]||0,b/2)),o.nextActor&&(a[s.from]=Ti.getMax(a[s.from]||0,b/2)))}return it.debug("maxMessageWidthPerActor:",a),a}X(KKn,"getMaxMessageWidthPerActor");var ZWi=X(function(e){let t=0;const r=kut(Mn);for(const a in e.links){const o=Vo.calculateTextDimensions(a,r).width+2*Mn.wrapPadding+2*Mn.boxMargin;t<o&&(t=o)}return t},"getRequiredPopupWidth");async function XKn(e,t,r){let a=0;for(const o of e.keys()){const u=e.get(o);u.wrap&&(u.description=Vo.wrapLabel(u.description,Mn.width-2*Mn.wrapPadding,kut(Mn)));const h=u0(u.description)?await tce(u.description,nn()):Vo.calculateTextDimensions(u.description,kut(Mn));u.width=u.wrap?Mn.width:Ti.getMax(Mn.width,h.width+2*Mn.wrapPadding),u.height=u.wrap?Ti.getMax(h.height,Mn.height):Mn.height,a=Ti.getMax(a,u.height)}for(const o in t){const u=e.get(o);if(!u)continue;const h=e.get(u.nextActor);if(!h){const b=t[o]+Mn.actorMargin-u.width/2;u.margin=Ti.getMax(b,Mn.actorMargin);continue}const p=t[o]+Mn.actorMargin-u.width/2-h.width/2;u.margin=Ti.getMax(p,Mn.actorMargin)}let s=0;return r.forEach(o=>{const u=o$(Mn);let h=o.actorKeys.reduce((b,_)=>b+=e.get(_).width+(e.get(_).margin||0),0);const f=Mn.boxMargin*8;h+=f,h-=2*Mn.boxTextMargin,o.wrap&&(o.name=Vo.wrapLabel(o.name,h-2*Mn.wrapPadding,u));const p=Vo.calculateTextDimensions(o.name,u);s=Ti.getMax(p.height,s);const m=Ti.getMax(h,p.width+2*Mn.wrapPadding);if(o.margin=Mn.boxTextMargin,h<m){const b=(m-h)/2;o.margin+=b}}),r.forEach(o=>o.textMaxHeight=s),Ti.getMax(a,Mn.height)}X(XKn,"calculateActorMargins");var JWi=X(async function(e,t,r){const a=t.get(e.from),s=t.get(e.to),o=a.x,u=s.x,h=e.wrap&&e.message;let f=u0(e.message)?await tce(e.message,nn()):Vo.calculateTextDimensions(h?Vo.wrapLabel(e.message,Mn.width,bV(Mn)):e.message,bV(Mn));const p={width:h?Mn.width:Ti.getMax(Mn.width,f.width+2*Mn.noteMargin),height:0,startx:a.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(p.width=h?Ti.getMax(Mn.width,f.width):Ti.getMax(a.width/2+s.width/2,f.width+2*Mn.noteMargin),p.startx=o+(a.width+Mn.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(p.width=h?Ti.getMax(Mn.width,f.width+2*Mn.noteMargin):Ti.getMax(a.width/2+s.width/2,f.width+2*Mn.noteMargin),p.startx=o-p.width+(a.width-Mn.actorMargin)/2):e.to===e.from?(f=Vo.calculateTextDimensions(h?Vo.wrapLabel(e.message,Ti.getMax(Mn.width,a.width),bV(Mn)):e.message,bV(Mn)),p.width=h?Ti.getMax(Mn.width,a.width):Ti.getMax(a.width,Mn.width,f.width+2*Mn.noteMargin),p.startx=o+(a.width-p.width)/2):(p.width=Math.abs(o+a.width/2-(u+s.width/2))+Mn.actorMargin,p.startx=o<u?o+a.width/2-Mn.actorMargin/2:u+s.width/2-Mn.actorMargin/2),h&&(p.message=Vo.wrapLabel(e.message,p.width-2*Mn.wrapPadding,bV(Mn))),it.debug(`NM:[${p.startx},${p.stopx},${p.starty},${p.stopy}:${p.width},${p.height}=${e.message}]`),p},"buildNoteModel"),eKi=X(function(e,t,r){if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};const[a,s]=aTn(e.from,t),[o,u]=aTn(e.to,t),h=a<=o;let f=h?s:a,p=h?o:u;const m=Math.abs(o-u)>2,b=X(C=>h?-C:C,"adjustValue");e.from===e.to?p=f:(e.activate&&!m&&(p+=b(Mn.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(p+=b(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(f-=b(3)));const _=[a,s,o,u],w=Math.abs(f-p);e.wrap&&e.message&&(e.message=Vo.wrapLabel(e.message,Ti.getMax(w+2*Mn.wrapPadding,Mn.width),o$(Mn)));const S=Vo.calculateTextDimensions(e.message,o$(Mn));return{width:Ti.getMax(e.wrap?0:S.width+2*Mn.wrapPadding,w+2*Mn.wrapPadding,Mn.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,_),toBounds:Math.max.apply(null,_)}},"buildMessageModel"),tKi=X(async function(e,t,r,a){const s={},o=[];let u,h,f;for(const p of e){switch(p.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:o.push({id:p.id,msg:p.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:p.message&&(u=o.pop(),s[u.id]=u,s[p.id]=u,o.push(u));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:u=o.pop(),s[u.id]=u;break;case a.db.LINETYPE.ACTIVE_START:{const b=t.get(p.from?p.from:p.to.actor),_=e6e(p.from?p.from:p.to.actor).length,w=b.x+b.width/2+(_-1)*Mn.activationWidth/2,S={startx:w,stopx:w+Mn.activationWidth,actor:p.from,enabled:!0};li.activations.push(S)}break;case a.db.LINETYPE.ACTIVE_END:{const b=li.activations.map(_=>_.actor).lastIndexOf(p.from);li.activations.splice(b,1).splice(0,1)}break}p.placement!==void 0?(h=await JWi(p,t,a),p.noteModel=h,o.forEach(b=>{u=b,u.from=Ti.getMin(u.from,h.startx),u.to=Ti.getMax(u.to,h.startx+h.width),u.width=Ti.getMax(u.width,Math.abs(u.from-u.to))-Mn.labelBoxWidth})):(f=eKi(p,t,a),p.msgModel=f,f.startx&&f.stopx&&o.length>0&&o.forEach(b=>{if(u=b,f.startx===f.stopx){const _=t.get(p.from),w=t.get(p.to);u.from=Ti.getMin(_.x-f.width/2,_.x-_.width/2,u.from),u.to=Ti.getMax(w.x+f.width/2,w.x+_.width/2,u.to),u.width=Ti.getMax(u.width,Math.abs(u.to-u.from))-Mn.labelBoxWidth}else u.from=Ti.getMin(f.startx,u.from),u.to=Ti.getMax(f.stopx,u.to),u.width=Ti.getMax(u.width,f.width)-Mn.labelBoxWidth}))}return li.activations=[],it.debug("Loop type widths:",s),s},"calculateLoopBounds"),nKi={bounds:li,drawActors:Rut,drawActorsPopup:YKn,setConf:jKn,draw:QWi},rKi={parser:yWi,get db(){return new EWi},renderer:nKi,styles:SWi,init:X(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,yot({sequence:{wrap:e.wrap}}))},"init")};const iKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:rKi},Symbol.toStringTag,{value:"Module"}));var Iut=function(){var e=X(function(ht,et,qe,He){for(qe=qe||{},He=ht.length;He--;qe[ht[He]]=et);return qe},"o"),t=[1,18],r=[1,19],a=[1,20],s=[1,41],o=[1,42],u=[1,26],h=[1,24],f=[1,25],p=[1,32],m=[1,33],b=[1,34],_=[1,45],w=[1,35],S=[1,36],C=[1,37],A=[1,38],k=[1,27],I=[1,28],N=[1,29],L=[1,30],P=[1,31],M=[1,44],F=[1,46],U=[1,43],$=[1,47],G=[1,9],B=[1,8,9],Z=[1,58],z=[1,59],Y=[1,60],W=[1,61],Q=[1,62],V=[1,63],j=[1,64],ee=[1,8,9,41],te=[1,76],ne=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ie=[13,60,86,100,102,103],ge=[13,60,73,74,86,100,102,103],ce=[13,60,68,69,70,71,72,86,100,102,103],be=[1,100],ve=[1,117],De=[1,113],ye=[1,109],Ee=[1,115],he=[1,110],we=[1,111],Ce=[1,112],Ie=[1,114],Le=[1,116],Fe=[22,48,60,61,82,86,87,88,89,90],Ve=[1,8,9,39,41,44],Oe=[1,8,9,22],Dt=[1,145],ot=[1,8,9,61],sn=[1,8,9,22,48,60,61,82,86,87,88,89,90],Kt={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,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],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:X(function(et,qe,He,Ge,Ye,Ae,Xe){var fe=Ae.length-1;switch(Ye){case 8:this.$=Ae[fe-1];break;case 9:case 10:case 13:case 15:this.$=Ae[fe];break;case 11:case 14:this.$=Ae[fe-2]+"."+Ae[fe];break;case 12:case 16:this.$=Ae[fe-1]+Ae[fe];break;case 17:case 18:this.$=Ae[fe-1]+"~"+Ae[fe]+"~";break;case 19:Ge.addRelation(Ae[fe]);break;case 20:Ae[fe-1].title=Ge.cleanupLabel(Ae[fe]),Ge.addRelation(Ae[fe-1]);break;case 31:this.$=Ae[fe].trim(),Ge.setAccTitle(this.$);break;case 32:case 33:this.$=Ae[fe].trim(),Ge.setAccDescription(this.$);break;case 34:Ge.addClassesToNamespace(Ae[fe-3],Ae[fe-1]);break;case 35:Ge.addClassesToNamespace(Ae[fe-4],Ae[fe-1]);break;case 36:this.$=Ae[fe],Ge.addNamespace(Ae[fe]);break;case 37:this.$=[Ae[fe]];break;case 38:this.$=[Ae[fe-1]];break;case 39:Ae[fe].unshift(Ae[fe-2]),this.$=Ae[fe];break;case 41:Ge.setCssClass(Ae[fe-2],Ae[fe]);break;case 42:Ge.addMembers(Ae[fe-3],Ae[fe-1]);break;case 44:Ge.setCssClass(Ae[fe-5],Ae[fe-3]),Ge.addMembers(Ae[fe-5],Ae[fe-1]);break;case 45:this.$=Ae[fe],Ge.addClass(Ae[fe]);break;case 46:this.$=Ae[fe-1],Ge.addClass(Ae[fe-1]),Ge.setClassLabel(Ae[fe-1],Ae[fe]);break;case 50:Ge.addAnnotation(Ae[fe],Ae[fe-2]);break;case 51:case 64:this.$=[Ae[fe]];break;case 52:Ae[fe].push(Ae[fe-1]),this.$=Ae[fe];break;case 53:break;case 54:Ge.addMember(Ae[fe-1],Ge.cleanupLabel(Ae[fe]));break;case 55:break;case 56:break;case 57:this.$={id1:Ae[fe-2],id2:Ae[fe],relation:Ae[fe-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:Ae[fe-3],id2:Ae[fe],relation:Ae[fe-1],relationTitle1:Ae[fe-2],relationTitle2:"none"};break;case 59:this.$={id1:Ae[fe-3],id2:Ae[fe],relation:Ae[fe-2],relationTitle1:"none",relationTitle2:Ae[fe-1]};break;case 60:this.$={id1:Ae[fe-4],id2:Ae[fe],relation:Ae[fe-2],relationTitle1:Ae[fe-3],relationTitle2:Ae[fe-1]};break;case 61:Ge.addNote(Ae[fe],Ae[fe-1]);break;case 62:Ge.addNote(Ae[fe]);break;case 63:this.$=Ae[fe-2],Ge.defineClass(Ae[fe-1],Ae[fe]);break;case 65:this.$=Ae[fe-2].concat([Ae[fe]]);break;case 66:Ge.setDirection("TB");break;case 67:Ge.setDirection("BT");break;case 68:Ge.setDirection("RL");break;case 69:Ge.setDirection("LR");break;case 70:this.$={type1:Ae[fe-2],type2:Ae[fe],lineType:Ae[fe-1]};break;case 71:this.$={type1:"none",type2:Ae[fe],lineType:Ae[fe-1]};break;case 72:this.$={type1:Ae[fe-1],type2:"none",lineType:Ae[fe]};break;case 73:this.$={type1:"none",type2:"none",lineType:Ae[fe]};break;case 74:this.$=Ge.relationType.AGGREGATION;break;case 75:this.$=Ge.relationType.EXTENSION;break;case 76:this.$=Ge.relationType.COMPOSITION;break;case 77:this.$=Ge.relationType.DEPENDENCY;break;case 78:this.$=Ge.relationType.LOLLIPOP;break;case 79:this.$=Ge.lineType.LINE;break;case 80:this.$=Ge.lineType.DOTTED_LINE;break;case 81:case 87:this.$=Ae[fe-2],Ge.setClickEvent(Ae[fe-1],Ae[fe]);break;case 82:case 88:this.$=Ae[fe-3],Ge.setClickEvent(Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-2],Ae[fe]);break;case 83:this.$=Ae[fe-2],Ge.setLink(Ae[fe-1],Ae[fe]);break;case 84:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe-1],Ae[fe]);break;case 85:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-2],Ae[fe]);break;case 86:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-2],Ae[fe]),Ge.setTooltip(Ae[fe-3],Ae[fe-1]);break;case 89:this.$=Ae[fe-3],Ge.setClickEvent(Ae[fe-2],Ae[fe-1],Ae[fe]);break;case 90:this.$=Ae[fe-4],Ge.setClickEvent(Ae[fe-3],Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-3],Ae[fe]);break;case 91:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe]);break;case 92:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-1],Ae[fe]);break;case 93:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-1]),Ge.setTooltip(Ae[fe-3],Ae[fe]);break;case 94:this.$=Ae[fe-5],Ge.setLink(Ae[fe-4],Ae[fe-2],Ae[fe]),Ge.setTooltip(Ae[fe-4],Ae[fe-1]);break;case 95:this.$=Ae[fe-2],Ge.setCssStyle(Ae[fe-1],Ae[fe]);break;case 96:Ge.setCssClass(Ae[fe-1],Ae[fe]);break;case 97:this.$=[Ae[fe]];break;case 98:Ae[fe-2].push(Ae[fe]),this.$=Ae[fe-2];break;case 100:this.$=Ae[fe-1]+Ae[fe];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:a,38:22,42:s,43:23,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(G,[2,5],{8:[1,48]}),{8:[1,49]},e(B,[2,19],{22:[1,50]}),e(B,[2,21]),e(B,[2,22]),e(B,[2,23]),e(B,[2,24]),e(B,[2,25]),e(B,[2,26]),e(B,[2,27]),e(B,[2,28]),e(B,[2,29]),e(B,[2,30]),{34:[1,51]},{36:[1,52]},e(B,[2,33]),e(B,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:z,70:Y,71:W,72:Q,73:V,74:j}),{39:[1,65]},e(ee,[2,40],{39:[1,67],44:[1,66]}),e(B,[2,55]),e(B,[2,56]),{16:68,60:_,86:M,100:F,102:U},{16:39,17:40,19:69,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:70,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:71,60:_,86:M,100:F,102:U,103:$},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:_,86:M,100:F,102:U,103:$},{13:te,55:75},{58:77,60:[1,78]},e(B,[2,66]),e(B,[2,67]),e(B,[2,68]),e(B,[2,69]),e(ne,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:_,86:M,100:F,102:U,103:$}),e(ne,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:86,60:_,86:M,100:F,102:U,103:$},e(se,[2,123]),e(se,[2,124]),e(se,[2,125]),e(se,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(G,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:r,37:a,42:s,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:a,38:22,42:s,43:23,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$},e(B,[2,20]),e(B,[2,31]),e(B,[2,32]),{13:[1,90],16:39,17:40,19:89,60:_,86:M,100:F,102:U,103:$},{53:91,66:56,67:57,68:Z,69:z,70:Y,71:W,72:Q,73:V,74:j},e(B,[2,54]),{67:92,73:V,74:j},e(ie,[2,73],{66:93,68:Z,69:z,70:Y,71:W,72:Q}),e(ge,[2,74]),e(ge,[2,75]),e(ge,[2,76]),e(ge,[2,77]),e(ge,[2,78]),e(ce,[2,79]),e(ce,[2,80]),{8:[1,95],24:96,40:94,43:23,46:o},{16:97,60:_,86:M,100:F,102:U},{41:[1,99],45:98,51:be},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:ve,48:De,59:106,60:ye,82:Ee,84:107,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},{60:[1,118]},{13:te,55:119},e(B,[2,62]),e(B,[2,128]),{22:ve,48:De,59:120,60:ye,61:[1,121],82:Ee,84:107,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},e(Fe,[2,64]),{16:39,17:40,19:122,60:_,86:M,100:F,102:U,103:$},e(ne,[2,16]),e(ne,[2,17]),e(ne,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:_,86:M,100:F,102:U,103:$},{39:[2,10]},e(Ve,[2,45],{11:125,12:[1,126]}),e(G,[2,7]),{9:[1,127]},e(Oe,[2,57]),{16:39,17:40,19:128,60:_,86:M,100:F,102:U,103:$},{13:[1,130],16:39,17:40,19:129,60:_,86:M,100:F,102:U,103:$},e(ie,[2,72],{66:131,68:Z,69:z,70:Y,71:W,72:Q}),e(ie,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:o},{8:[1,134],41:[2,37]},e(ee,[2,41],{39:[1,135]}),{41:[1,136]},e(ee,[2,43]),{41:[2,51],45:137,51:be},{16:39,17:40,19:138,60:_,86:M,100:F,102:U,103:$},e(B,[2,81],{13:[1,139]}),e(B,[2,83],{13:[1,141],77:[1,140]}),e(B,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(B,[2,95],{61:Dt}),e(ot,[2,97],{85:146,22:ve,48:De,60:ye,82:Ee,86:he,87:we,88:Ce,89:Ie,90:Le}),e(sn,[2,99]),e(sn,[2,101]),e(sn,[2,102]),e(sn,[2,103]),e(sn,[2,104]),e(sn,[2,105]),e(sn,[2,106]),e(sn,[2,107]),e(sn,[2,108]),e(sn,[2,109]),e(B,[2,96]),e(B,[2,61]),e(B,[2,63],{61:Dt}),{60:[1,147]},e(ne,[2,14]),{15:148,16:84,17:85,60:_,86:M,100:F,102:U,103:$},{39:[2,12]},e(Ve,[2,46]),{13:[1,149]},{1:[2,4]},e(Oe,[2,59]),e(Oe,[2,58]),{16:39,17:40,19:150,60:_,86:M,100:F,102:U,103:$},e(ie,[2,70]),e(B,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:o},{45:153,51:be},e(ee,[2,42]),{41:[2,52]},e(B,[2,50]),e(B,[2,82]),e(B,[2,84]),e(B,[2,85],{77:[1,154]}),e(B,[2,88]),e(B,[2,89],{13:[1,155]}),e(B,[2,91],{13:[1,157],77:[1,156]}),{22:ve,48:De,60:ye,82:Ee,84:158,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},e(sn,[2,100]),e(Fe,[2,65]),{39:[2,11]},{14:[1,159]},e(Oe,[2,60]),e(B,[2,35]),{41:[2,39]},{41:[1,160]},e(B,[2,86]),e(B,[2,90]),e(B,[2,92]),e(B,[2,93],{77:[1,161]}),e(ot,[2,98],{85:146,22:ve,48:De,60:ye,82:Ee,86:he,87:we,88:Ce,89:Ie,90:Le}),e(Ve,[2,8]),e(ee,[2,44]),e(B,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:X(function(et,qe){if(qe.recoverable)this.trace(et);else{var He=new Error(et);throw He.hash=qe,He}},"parseError"),parse:X(function(et){var qe=this,He=[0],Ge=[],Ye=[null],Ae=[],Xe=this.table,fe="",Qe=0,Ke=0,mt=2,lt=1,$t=Ae.slice.call(arguments,1),Ut=Object.create(this.lexer),Jt={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(Jt.yy[wn]=this.yy[wn]);Ut.setInput(et,Jt.yy),Jt.yy.lexer=Ut,Jt.yy.parser=this,typeof Ut.yylloc>"u"&&(Ut.yylloc={});var Vn=Ut.yylloc;Ae.push(Vn);var Wn=Ut.options&&Ut.options.ranges;typeof Jt.yy.parseError=="function"?this.parseError=Jt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Dn(Pr){He.length=He.length-2*Pr,Ye.length=Ye.length-Pr,Ae.length=Ae.length-Pr}X(Dn,"popStack");function zn(){var Pr;return Pr=Ge.pop()||Ut.lex()||lt,typeof Pr!="number"&&(Pr instanceof Array&&(Ge=Pr,Pr=Ge.pop()),Pr=qe.symbols_[Pr]||Pr),Pr}X(zn,"lex");for(var vn,Cn,Ar,ur,On={},Ir,Ln,pr,Cr;;){if(Cn=He[He.length-1],this.defaultActions[Cn]?Ar=this.defaultActions[Cn]:((vn===null||typeof vn>"u")&&(vn=zn()),Ar=Xe[Cn]&&Xe[Cn][vn]),typeof Ar>"u"||!Ar.length||!Ar[0]){var Zr="";Cr=[];for(Ir in Xe[Cn])this.terminals_[Ir]&&Ir>mt&&Cr.push("'"+this.terminals_[Ir]+"'");Ut.showPosition?Zr="Parse error on line "+(Qe+1)+`:
`+Ut.showPosition()+`
Expecting `+Cr.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":Zr="Parse error on line "+(Qe+1)+": Unexpected "+(vn==lt?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(Zr,{text:Ut.match,token:this.terminals_[vn]||vn,line:Ut.yylineno,loc:Vn,expected:Cr})}if(Ar[0]instanceof Array&&Ar.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+vn);switch(Ar[0]){case 1:He.push(vn),Ye.push(Ut.yytext),Ae.push(Ut.yylloc),He.push(Ar[1]),vn=null,Ke=Ut.yyleng,fe=Ut.yytext,Qe=Ut.yylineno,Vn=Ut.yylloc;break;case 2:if(Ln=this.productions_[Ar[1]][1],On.$=Ye[Ye.length-Ln],On._$={first_line:Ae[Ae.length-(Ln||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(Ln||1)].first_column,last_column:Ae[Ae.length-1].last_column},Wn&&(On._$.range=[Ae[Ae.length-(Ln||1)].range[0],Ae[Ae.length-1].range[1]]),ur=this.performAction.apply(On,[fe,Ke,Qe,Jt.yy,Ar[1],Ye,Ae].concat($t)),typeof ur<"u")return ur;Ln&&(He=He.slice(0,-1*Ln*2),Ye=Ye.slice(0,-1*Ln),Ae=Ae.slice(0,-1*Ln)),He.push(this.productions_[Ar[1]][0]),Ye.push(On.$),Ae.push(On._$),pr=Xe[He[He.length-2]][He[He.length-1]],He.push(pr);break;case 3:return!0}}return!0},"parse")},Ft=function(){var ht={EOF:1,parseError:X(function(qe,He){if(this.yy.parser)this.yy.parser.parseError(qe,He);else throw new Error(qe)},"parseError"),setInput:X(function(et,qe){return this.yy=qe||this.yy||{},this._input=et,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},"setInput"),input:X(function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var qe=et.match(/(?:\r\n?|\n).*/g);return qe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},"input"),unput:X(function(et){var qe=et.length,He=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qe),this.offset-=qe;var Ge=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),He.length-1&&(this.yylineno-=He.length-1);var Ye=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:He?(He.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-He.length].length-He[0].length:this.yylloc.first_column-qe},this.options.ranges&&(this.yylloc.range=[Ye[0],Ye[0]+this.yyleng-qe]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(et){this.unput(this.match.slice(et))},"less"),pastInput:X(function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var et=this.pastInput(),qe=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+qe+"^"},"showPosition"),test_match:X(function(et,qe){var He,Ge,Ye;if(this.options.backtrack_lexer&&(Ye={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&&(Ye.yylloc.range=this.yylloc.range.slice(0))),Ge=et[0].match(/(?:\r\n?|\n).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,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(et[0].length),this.matched+=et[0],He=this.performAction.call(this,this.yy,this,qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),He)return He;if(this._backtrack){for(var Ae in Ye)this[Ae]=Ye[Ae];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,qe,He,Ge;this._more||(this.yytext="",this.match="");for(var Ye=this._currentRules(),Ae=0;Ae<Ye.length;Ae++)if(He=this._input.match(this.rules[Ye[Ae]]),He&&(!qe||He[0].length>qe[0].length)){if(qe=He,Ge=Ae,this.options.backtrack_lexer){if(et=this.test_match(He,Ye[Ae]),et!==!1)return et;if(this._backtrack){qe=!1;continue}else return!1}else if(!this.options.flex)break}return qe?(et=this.test_match(qe,Ye[Ge]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var qe=this.next();return qe||this.lex()},"lex"),begin:X(function(qe){this.conditionStack.push(qe)},"begin"),popState:X(function(){var qe=this.conditionStack.length-1;return qe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(qe){return qe=this.conditionStack.length-1-Math.abs(qe||0),qe>=0?this.conditionStack[qe]:"INITIAL"},"topState"),pushState:X(function(qe){this.begin(qe)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(qe,He,Ge,Ye){switch(Ge){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 48;case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_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)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,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],inclusive:!0}}};return ht}();Kt.lexer=Ft;function Je(){this.yy={}}return X(Je,"Parser"),Je.prototype=Kt,Kt.Parser=Je,new Je}();Iut.parser=Iut;var QKn=Iut,sTn=["#","+","~","-",""],ij,oTn=(ij=class{constructor(t,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const a=Ic(t,nn());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+WN(this.id);this.memberType==="method"&&(t+=`(${WN(this.parameters.trim())})`,this.returnType&&(t+=" : "+WN(this.returnType))),t=t.trim();const r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){const o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(o){const u=o[1]?o[1].trim():"";if(sTn.includes(u)&&(this.visibility=u),this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const h=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(h)&&(r=h,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,o=t.substring(0,1),u=t.substring(s-1);sTn.includes(o)&&(this.visibility=o),/[$*]/.exec(u)&&(r=u),this.id=t.substring(this.visibility===""?0:1,r===""?s:s-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const a=`${this.visibility?"\\"+this.visibility:""}${WN(this.id)}${this.memberType==="method"?`(${WN(this.parameters)})${this.returnType?" : "+WN(this.returnType):""}`:""}`;this.text=a.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},X(ij,"ClassMember"),ij),hEe="classId-",lTn=0,EB=X(e=>Ti.sanitizeText(e,nn()),"sanitizeText"),aj,ZKn=(aj=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=X(t=>{let r=gn(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(t).select("svg").selectAll("g.node").on("mouseover",o=>{const u=gn(o.currentTarget);if(u.attr("title")===null)return;const f=this.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(u.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.top-14+document.body.scrollTop+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),u.classed("hover",!0)}).on("mouseout",o=>{r.transition().duration(500).style("opacity",0),gn(o.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(t){const r=Ti.sanitizeText(t,nn());let a="",s=r;if(r.indexOf("~")>0){const o=r.split("~");s=EB(o[0]),a=EB(o[1])}return{className:s,type:a}}setClassLabel(t,r){const a=Ti.sanitizeText(t,nn());r&&(r=EB(r));const{className:s}=this.splitClassNameAndType(a);this.classes.get(s).label=r,this.classes.get(s).text=`${r}${this.classes.get(s).type?`<${this.classes.get(s).type}>`:""}`}addClass(t){const r=Ti.sanitizeText(t,nn()),{className:a,type:s}=this.splitClassNameAndType(r);if(this.classes.has(a))return;const o=Ti.sanitizeText(a,nn());this.classes.set(o,{id:o,type:s,label:o,text:`${o}${s?`&lt;${s}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:hEe+o+"-"+lTn}),lTn++}addInterface(t,r){const a={id:`interface${this.interfaces.length}`,label:t,classId:r};this.interfaces.push(a)}lookUpDomId(t){const r=Ti.sanitizeText(t,nn());if(this.classes.has(r))return this.classes.get(r).domId;throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",M1()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(t){it.debug("Adding relation: "+JSON.stringify(t));const r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1===this.relationType.LOLLIPOP&&!r.includes(t.relation.type2)?(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`):t.relation.type2===this.relationType.LOLLIPOP&&!r.includes(t.relation.type1)?(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id1),this.addClass(t.id2)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=Ti.sanitizeText(t.relationTitle1.trim(),nn()),t.relationTitle2=Ti.sanitizeText(t.relationTitle2.trim(),nn()),this.relations.push(t)}addAnnotation(t,r){const a=this.splitClassNameAndType(t).className;this.classes.get(a).annotations.push(r)}addMember(t,r){this.addClass(t);const a=this.splitClassNameAndType(t).className,s=this.classes.get(a);if(typeof r=="string"){const o=r.trim();o.startsWith("<<")&&o.endsWith(">>")?s.annotations.push(EB(o.substring(2,o.length-2))):o.indexOf(")")>0?s.methods.push(new oTn(o,"method")):o&&s.members.push(new oTn(o,"attribute"))}}addMembers(t,r){Array.isArray(r)&&(r.reverse(),r.forEach(a=>this.addMember(t,a)))}addNote(t,r){const a={id:`note${this.notes.length}`,class:r,text:t};this.notes.push(a)}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),EB(t.trim())}setCssClass(t,r){t.split(",").forEach(a=>{let s=a;/\d/.exec(a[0])&&(s=hEe+s);const o=this.classes.get(s);o&&(o.cssClasses+=" "+r)})}defineClass(t,r){for(const a of t){let s=this.styleClasses.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.styleClasses.set(a,s)),r&&r.forEach(o=>{if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(a)&&o.styles.push(...r.flatMap(u=>u.split(",")))})}}setTooltip(t,r){t.split(",").forEach(a=>{r!==void 0&&(this.classes.get(a).tooltip=EB(r))})}getTooltip(t,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,r,a){const s=nn();t.split(",").forEach(o=>{let u=o;/\d/.exec(o[0])&&(u=hEe+u);const h=this.classes.get(u);h&&(h.link=Vo.formatUrl(r,s),s.securityLevel==="sandbox"?h.linkTarget="_top":typeof a=="string"?h.linkTarget=EB(a):h.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,r,a){t.split(",").forEach(s=>{this.setClickFunc(s,r,a),this.classes.get(s).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,r,a){const s=Ti.sanitizeText(t,nn());if(nn().securityLevel!=="loose"||r===void 0)return;const u=s;if(this.classes.has(u)){const h=this.lookUpDomId(u);let f=[];if(typeof a=="string"){f=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p<f.length;p++){let m=f[p].trim();m.startsWith('"')&&m.endsWith('"')&&(m=m.substr(1,m.length-2)),f[p]=m}}f.length===0&&f.push(h),this.functions.push(()=>{const p=document.querySelector(`[id="${h}"]`);p!==null&&p.addEventListener("click",()=>{Vo.runFunc(r,...f)},!1)})}}bindFunctions(t){this.functions.forEach(r=>{r(t)})}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,children:{},domId:hEe+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,r){if(this.namespaces.has(t))for(const a of r){const{className:s}=this.splitClassNameAndType(a);this.classes.get(s).parent=t,this.namespaces.get(t).classes.set(s,this.classes.get(s))}}setCssStyle(t,r){const a=this.classes.get(t);if(!(!r||!a))for(const s of r)s.includes(",")?a.styles.push(...s.split(",")):a.styles.push(s)}getArrowMarker(t){let r;switch(t){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}getData(){var o;const t=[],r=[],a=nn();for(const u of this.namespaces.keys()){const h=this.namespaces.get(u);if(h){const f={id:h.id,label:h.id,isGroup:!0,padding:a.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:a.look};t.push(f)}}for(const u of this.classes.keys()){const h=this.classes.get(u);if(h){const f=h;f.parentId=h.parent,f.look=a.look,t.push(f)}}let s=0;for(const u of this.notes){s++;const h={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:a.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${a.themeVariables.noteBkgColor}`,`stroke: ${a.themeVariables.noteBorderColor}`],look:a.look};t.push(h);const f=((o=this.classes.get(u.class))==null?void 0:o.id)??"";if(f){const p={id:`edgeNote${s}`,start:u.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:a.look};r.push(p)}}for(const u of this.interfaces){const h={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:a.look};t.push(h)}s=0;for(const u of this.relations){s++;const h={id:XV(u.id1,u.id2,{prefix:"id",counter:s}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:a.look};r.push(h)}return{nodes:t,edges:r,other:{},config:a,direction:this.getDirection()}}},X(aj,"ClassDB"),aj),aKi=X(e=>`g.classGroup text {
  fill: ${e.nodeBorder||e.classText};
  stroke: none;
  font-family: ${e.fontFamily};
  font-size: 10px;

  .title {
    font-weight: bolder;
  }

}

.nodeLabel, .edgeLabel {
  color: ${e.classText};
}
.edgeLabel .label rect {
  fill: ${e.mainBkg};
}
.label text {
  fill: ${e.classText};
}

.labelBkg {
  background: ${e.mainBkg};
}
.edgeLabel .label span {
  background: ${e.mainBkg};
}

.classTitle {
  font-weight: bolder;
}
.node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }


.divider {
  stroke: ${e.nodeBorder};
  stroke-width: 1;
}

g.clickable {
  cursor: pointer;
}

g.classGroup rect {
  fill: ${e.mainBkg};
  stroke: ${e.nodeBorder};
}

g.classGroup line {
  stroke: ${e.nodeBorder};
  stroke-width: 1;
}

.classLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${e.mainBkg};
  opacity: 0.5;
}

.classLabel .label {
  fill: ${e.nodeBorder};
  font-size: 10px;
}

.relation {
  stroke: ${e.lineColor};
  stroke-width: 1;
  fill: none;
}

.dashed-line{
  stroke-dasharray: 3;
}

.dotted-line{
  stroke-dasharray: 1 2;
}

#compositionStart, .composition {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#compositionEnd, .composition {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#dependencyStart, .dependency {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#dependencyStart, .dependency {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#extensionStart, .extension {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#extensionEnd, .extension {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#aggregationStart, .aggregation {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#aggregationEnd, .aggregation {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#lollipopStart, .lollipop {
  fill: ${e.mainBkg} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#lollipopEnd, .lollipop {
  fill: ${e.mainBkg} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

.edgeTerminals {
  font-size: 11px;
  line-height: initial;
}

.classTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${e.textColor};
}
  ${Lce()}
`,"getStyles"),JKn=aKi,sKi=X((e,t="TB")=>{if(!e.doc)return t;let r=t;for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir"),oKi=X(function(e,t){return t.db.getClasses()},"getClasses"),lKi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing class diagram (v3)",t);const{securityLevel:s,state:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,h.rankSpacing=(o==null?void 0:o.rankSpacing)||50,h.markers=["aggregation","extension","composition","dependency","lollipop"],h.diagramId=t,await $W(h,f);const p=8;Vo.insertTitle(f,"classDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,"classDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),eXn={getClasses:oKi,draw:lKi,getDir:sKi},cKi={parser:QKn,get db(){return new ZKn},renderer:eXn,styles:JKn,init:X(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const uKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:cKi},Symbol.toStringTag,{value:"Module"}));var hKi={parser:QKn,get db(){return new ZKn},renderer:eXn,styles:JKn,init:X(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const dKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:hKi},Symbol.toStringTag,{value:"Module"}));var Nut=function(){var e=X(function(ee,te,ne,se){for(ne=ne||{},se=ee.length;se--;ne[ee[se]]=te);return ne},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,16],f=[1,17],p=[1,18],m=[1,19],b=[1,33],_=[1,20],w=[1,21],S=[1,22],C=[1,23],A=[1,24],k=[1,26],I=[1,27],N=[1,28],L=[1,29],P=[1,30],M=[1,31],F=[1,32],U=[1,35],$=[1,36],G=[1,37],B=[1,38],Z=[1,34],z=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Y=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],W=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Q={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":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,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",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:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:X(function(te,ne,se,ie,ge,ce,be){var ve=ce.length-1;switch(ge){case 3:return ie.setRootDoc(ce[ve]),ce[ve];case 4:this.$=[];break;case 5:ce[ve]!="nl"&&(ce[ve-1].push(ce[ve]),this.$=ce[ve-1]);break;case 6:case 7:this.$=ce[ve];break;case 8:this.$="nl";break;case 12:this.$=ce[ve];break;case 13:const he=ce[ve-1];he.description=ie.trimColon(ce[ve]),this.$=he;break;case 14:this.$={stmt:"relation",state1:ce[ve-2],state2:ce[ve]};break;case 15:const we=ie.trimColon(ce[ve]);this.$={stmt:"relation",state1:ce[ve-3],state2:ce[ve-1],description:we};break;case 19:this.$={stmt:"state",id:ce[ve-3],type:"default",description:"",doc:ce[ve-1]};break;case 20:var De=ce[ve],ye=ce[ve-2].trim();if(ce[ve].match(":")){var Ee=ce[ve].split(":");De=Ee[0],ye=[ye,Ee[1]]}this.$={stmt:"state",id:De,type:"default",description:ye};break;case 21:this.$={stmt:"state",id:ce[ve-3],type:"default",description:ce[ve-5],doc:ce[ve-1]};break;case 22:this.$={stmt:"state",id:ce[ve],type:"fork"};break;case 23:this.$={stmt:"state",id:ce[ve],type:"join"};break;case 24:this.$={stmt:"state",id:ce[ve],type:"choice"};break;case 25:this.$={stmt:"state",id:ie.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:ce[ve-1].trim(),note:{position:ce[ve-2].trim(),text:ce[ve].trim()}};break;case 29:this.$=ce[ve].trim(),ie.setAccTitle(this.$);break;case 30:case 31:this.$=ce[ve].trim(),ie.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:ce[ve-3],url:ce[ve-2],tooltip:ce[ve-1]};break;case 33:this.$={stmt:"click",id:ce[ve-3],url:ce[ve-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:ce[ve-1].trim(),classes:ce[ve].trim()};break;case 36:this.$={stmt:"style",id:ce[ve-1].trim(),styleClass:ce[ve].trim()};break;case 37:this.$={stmt:"applyClass",id:ce[ve-1].trim(),styleClass:ce[ve].trim()};break;case 38:ie.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:ie.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:ie.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:ie.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:ce[ve].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:ce[ve-2].trim(),classes:[ce[ve].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:ce[ve-2].trim(),classes:[ce[ve].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:h,17:f,19:p,22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,7]),e(z,[2,8]),e(z,[2,9]),e(z,[2,10]),e(z,[2,11]),e(z,[2,12],{14:[1,40],15:[1,41]}),e(z,[2,16]),{18:[1,42]},e(z,[2,18],{20:[1,43]}),{23:[1,44]},e(z,[2,22]),e(z,[2,23]),e(z,[2,24]),e(z,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(z,[2,28]),{34:[1,49]},{36:[1,50]},e(z,[2,31]),{13:51,24:b,57:Z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(Y,[2,44],{58:[1,56]}),e(Y,[2,45],{58:[1,57]}),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,6]),e(z,[2,13]),{13:58,24:b,57:Z},e(z,[2,17]),e(W,s,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(z,[2,29]),e(z,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(z,[2,14],{14:[1,71]}),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,21:[1,72],22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(z,[2,34]),e(z,[2,35]),e(z,[2,36]),e(z,[2,37]),e(Y,[2,46]),e(Y,[2,47]),e(z,[2,15]),e(z,[2,19]),e(W,s,{7:78}),e(z,[2,26]),e(z,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,21:[1,81],22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,32]),e(z,[2,33]),e(z,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:X(function(te,ne){if(ne.recoverable)this.trace(te);else{var se=new Error(te);throw se.hash=ne,se}},"parseError"),parse:X(function(te){var ne=this,se=[0],ie=[],ge=[null],ce=[],be=this.table,ve="",De=0,ye=0,Ee=2,he=1,we=ce.slice.call(arguments,1),Ce=Object.create(this.lexer),Ie={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Ie.yy[Le]=this.yy[Le]);Ce.setInput(te,Ie.yy),Ie.yy.lexer=Ce,Ie.yy.parser=this,typeof Ce.yylloc>"u"&&(Ce.yylloc={});var Fe=Ce.yylloc;ce.push(Fe);var Ve=Ce.options&&Ce.options.ranges;typeof Ie.yy.parseError=="function"?this.parseError=Ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Oe(Ye){se.length=se.length-2*Ye,ge.length=ge.length-Ye,ce.length=ce.length-Ye}X(Oe,"popStack");function Dt(){var Ye;return Ye=ie.pop()||Ce.lex()||he,typeof Ye!="number"&&(Ye instanceof Array&&(ie=Ye,Ye=ie.pop()),Ye=ne.symbols_[Ye]||Ye),Ye}X(Dt,"lex");for(var ot,sn,Kt,Ft,Je={},ht,et,qe,He;;){if(sn=se[se.length-1],this.defaultActions[sn]?Kt=this.defaultActions[sn]:((ot===null||typeof ot>"u")&&(ot=Dt()),Kt=be[sn]&&be[sn][ot]),typeof Kt>"u"||!Kt.length||!Kt[0]){var Ge="";He=[];for(ht in be[sn])this.terminals_[ht]&&ht>Ee&&He.push("'"+this.terminals_[ht]+"'");Ce.showPosition?Ge="Parse error on line "+(De+1)+`:
`+Ce.showPosition()+`
Expecting `+He.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":Ge="Parse error on line "+(De+1)+": Unexpected "+(ot==he?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(Ge,{text:Ce.match,token:this.terminals_[ot]||ot,line:Ce.yylineno,loc:Fe,expected:He})}if(Kt[0]instanceof Array&&Kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sn+", token: "+ot);switch(Kt[0]){case 1:se.push(ot),ge.push(Ce.yytext),ce.push(Ce.yylloc),se.push(Kt[1]),ot=null,ye=Ce.yyleng,ve=Ce.yytext,De=Ce.yylineno,Fe=Ce.yylloc;break;case 2:if(et=this.productions_[Kt[1]][1],Je.$=ge[ge.length-et],Je._$={first_line:ce[ce.length-(et||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(et||1)].first_column,last_column:ce[ce.length-1].last_column},Ve&&(Je._$.range=[ce[ce.length-(et||1)].range[0],ce[ce.length-1].range[1]]),Ft=this.performAction.apply(Je,[ve,ye,De,Ie.yy,Kt[1],ge,ce].concat(we)),typeof Ft<"u")return Ft;et&&(se=se.slice(0,-1*et*2),ge=ge.slice(0,-1*et),ce=ce.slice(0,-1*et)),se.push(this.productions_[Kt[1]][0]),ge.push(Je.$),ce.push(Je._$),qe=be[se[se.length-2]][se[se.length-1]],se.push(qe);break;case 3:return!0}}return!0},"parse")},V=function(){var ee={EOF:1,parseError:X(function(ne,se){if(this.yy.parser)this.yy.parser.parseError(ne,se);else throw new Error(ne)},"parseError"),setInput:X(function(te,ne){return this.yy=ne||this.yy||{},this._input=te,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},"setInput"),input:X(function(){var te=this._input[0];this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te;var ne=te.match(/(?:\r\n?|\n).*/g);return ne?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),te},"input"),unput:X(function(te){var ne=te.length,se=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ne),this.offset-=ne;var ie=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),se.length-1&&(this.yylineno-=se.length-1);var ge=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:se?(se.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-se.length].length-se[0].length:this.yylloc.first_column-ne},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-ne]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(te){this.unput(this.match.slice(te))},"less"),pastInput:X(function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var te=this.match;return te.length<20&&(te+=this._input.substr(0,20-te.length)),(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var te=this.pastInput(),ne=new Array(te.length+1).join("-");return te+this.upcomingInput()+`
`+ne+"^"},"showPosition"),test_match:X(function(te,ne){var se,ie,ge;if(this.options.backtrack_lexer&&(ge={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&&(ge.yylloc.range=this.yylloc.range.slice(0))),ie=te[0].match(/(?:\r\n?|\n).*/g),ie&&(this.yylineno+=ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,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(te[0].length),this.matched+=te[0],se=this.performAction.call(this,this.yy,this,ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var ce in ge)this[ce]=ge[ce];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var te,ne,se,ie;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),ce=0;ce<ge.length;ce++)if(se=this._input.match(this.rules[ge[ce]]),se&&(!ne||se[0].length>ne[0].length)){if(ne=se,ie=ce,this.options.backtrack_lexer){if(te=this.test_match(se,ge[ce]),te!==!1)return te;if(this._backtrack){ne=!1;continue}else return!1}else if(!this.options.flex)break}return ne?(te=this.test_match(ne,ge[ie]),te!==!1?te:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var ne=this.next();return ne||this.lex()},"lex"),begin:X(function(ne){this.conditionStack.push(ne)},"begin"),popState:X(function(){var ne=this.conditionStack.length-1;return ne>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(ne){return ne=this.conditionStack.length-1-Math.abs(ne||0),ne>=0?this.conditionStack[ne]:"INITIAL"},"topState"),pushState:X(function(ne){this.begin(ne)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(ne,se,ie,ge){switch(ie){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),se.yytext=se.yytext.substr(2).trim(),31;case 70:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return se.yytext=se.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\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,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return ee}();Q.lexer=V;function j(){this.yy={}}return X(j,"Parser"),j.prototype=Q,Q.Parser=j,new j}();Nut.parser=Nut;var tXn=Nut,fKi="TB",nXn="TB",cTn="dir",yV="state",tV="root",Out="relation",pKi="classDef",gKi="style",mKi="applyClass",Rse="default",rXn="divider",iXn="fill:none",aXn="fill: #333",sXn="c",oXn="text",lXn="normal",Zit="rect",Jit="rectWithTitle",bKi="stateStart",yKi="stateEnd",uTn="divider",hTn="roundedWithTitle",vKi="note",_Ki="noteGroup",Kce="statediagram",wKi="state",EKi=`${Kce}-${wKi}`,cXn="transition",xKi="note",SKi="note-edge",TKi=`${cXn} ${SKi}`,CKi=`${Kce}-${xKi}`,AKi="cluster",kKi=`${Kce}-${AKi}`,RKi="cluster-alt",IKi=`${Kce}-${RKi}`,uXn="parent",hXn="note",NKi="state",Jmt="----",OKi=`${Jmt}${hXn}`,dTn=`${Jmt}${uXn}`,dXn=X((e,t=nXn)=>{if(!e.doc)return t;let r=t;for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir"),LKi=X(function(e,t){return t.db.getClasses()},"getClasses"),DKi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing state diagram (v2)",t);const{securityLevel:s,state:o,layout:u}=nn();a.db.extract(a.db.getRootDocV2());const h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=u,h.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,h.rankSpacing=(o==null?void 0:o.rankSpacing)||50,h.markers=["barb"],h.diagramId=t,await $W(h,f);const p=8;try{(typeof a.db.getLinks=="function"?a.db.getLinks():new Map).forEach((b,_)=>{var N;const w=typeof _=="string"?_:typeof(_==null?void 0:_.id)=="string"?_.id:"";if(!w){it.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(_));return}const S=(N=f.node())==null?void 0:N.querySelectorAll("g");let C;if(S==null||S.forEach(L=>{var M;((M=L.textContent)==null?void 0:M.trim())===w&&(C=L)}),!C){it.warn("⚠️ Could not find node matching text:",w);return}const A=C.parentNode;if(!A){it.warn("⚠️ Node has no parent, cannot wrap:",w);return}const k=document.createElementNS("http://www.w3.org/2000/svg","a"),I=b.url.replace(/^"+|"+$/g,"");if(k.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",I),k.setAttribute("target","_blank"),b.tooltip){const L=b.tooltip.replace(/^"+|"+$/g,"");k.setAttribute("title",L)}A.replaceChild(k,C),k.appendChild(C),it.info("🔗 Wrapped node in <a> tag for:",w,b.url)})}catch(m){it.error("❌ Error injecting clickable links:",m)}Vo.insertTitle(f,"statediagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,Kce,(o==null?void 0:o.useMaxWidth)??!0)},"draw"),MKi={getClasses:LKi,draw:DKi,getDir:dXn},Xxe=new Map,rO=0;function Qxe(e="",t=0,r="",a=Jmt){const s=r!==null&&r.length>0?`${a}${r}`:"";return`${NKi}-${e}${s}-${t}`}X(Qxe,"stateDomId");var PKi=X((e,t,r,a,s,o,u,h)=>{it.trace("items",t),t.forEach(f=>{switch(f.stmt){case yV:Dae(e,f,r,a,s,o,u,h);break;case Rse:Dae(e,f,r,a,s,o,u,h);break;case Out:{Dae(e,f.state1,r,a,s,o,u,h),Dae(e,f.state2,r,a,s,o,u,h);const p={id:"edge"+rO,start:f.state1.id,end:f.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:iXn,labelStyle:"",label:Ti.sanitizeText(f.description??"",nn()),arrowheadStyle:aXn,labelpos:sXn,labelType:oXn,thickness:lXn,classes:cXn,look:u};s.push(p),rO++}break}})},"setupDoc"),fTn=X((e,t=nXn)=>{let r=t;if(e.doc)for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir");function Lae(e,t,r){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(s=>{const o=r.get(s);o&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...o.styles])}));const a=e.find(s=>s.id===t.id);a?Object.assign(a,t):e.push(t)}X(Lae,"insertOrUpdateNode");function fXn(e){var t;return((t=e==null?void 0:e.classes)==null?void 0:t.join(" "))??""}X(fXn,"getClassesFromDbInfo");function pXn(e){return(e==null?void 0:e.styles)??[]}X(pXn,"getStylesFromDbInfo");var Dae=X((e,t,r,a,s,o,u,h)=>{var w,S,C;const f=t.id,p=r.get(f),m=fXn(p),b=pXn(p),_=nn();if(it.info("dataFetcher parsedItem",t,p,b),f!=="root"){let A=Zit;t.start===!0?A=bKi:t.start===!1&&(A=yKi),t.type!==Rse&&(A=t.type),Xxe.get(f)||Xxe.set(f,{id:f,shape:A,description:Ti.sanitizeText(f,_),cssClasses:`${m} ${EKi}`,cssStyles:b});const k=Xxe.get(f);t.description&&(Array.isArray(k.description)?(k.shape=Jit,k.description.push(t.description)):(w=k.description)!=null&&w.length&&k.description.length>0?(k.shape=Jit,k.description===f?k.description=[t.description]:k.description=[k.description,t.description]):(k.shape=Zit,k.description=t.description),k.description=Ti.sanitizeTextOrArray(k.description,_)),((S=k.description)==null?void 0:S.length)===1&&k.shape===Jit&&(k.type==="group"?k.shape=hTn:k.shape=Zit),!k.type&&t.doc&&(it.info("Setting cluster for XCX",f,fTn(t)),k.type="group",k.isGroup=!0,k.dir=fTn(t),k.shape=t.type===rXn?uTn:hTn,k.cssClasses=`${k.cssClasses} ${kKi} ${o?IKi:""}`);const I={labelStyle:"",shape:k.shape,label:k.description,cssClasses:k.cssClasses,cssCompiledStyles:[],cssStyles:k.cssStyles,id:f,dir:k.dir,domId:Qxe(f,rO),type:k.type,isGroup:k.type==="group",padding:8,rx:10,ry:10,look:u};if(I.shape===uTn&&(I.label=""),e&&e.id!=="root"&&(it.trace("Setting node ",f," to be child of its parent ",e.id),I.parentId=e.id),I.centerLabel=!0,t.note){const N={labelStyle:"",shape:vKi,label:t.note.text,cssClasses:CKi,cssStyles:[],cssCompiledStyles:[],id:f+OKi+"-"+rO,domId:Qxe(f,rO,hXn),type:k.type,isGroup:k.type==="group",padding:(C=_.flowchart)==null?void 0:C.padding,look:u,position:t.note.position},L=f+dTn,P={labelStyle:"",shape:_Ki,label:t.note.text,cssClasses:k.cssClasses,cssStyles:[],id:f+dTn,domId:Qxe(f,rO,uXn),type:"group",isGroup:!0,padding:16,look:u,position:t.note.position};rO++,P.id=L,N.parentId=L,Lae(a,P,h),Lae(a,N,h),Lae(a,I,h);let M=f,F=N.id;t.note.position==="left of"&&(M=N.id,F=f),s.push({id:M+"-"+F,start:M,end:F,arrowhead:"none",arrowTypeEnd:"",style:iXn,labelStyle:"",classes:TKi,arrowheadStyle:aXn,labelpos:sXn,labelType:oXn,thickness:lXn,look:u})}else Lae(a,I,h)}t.doc&&(it.trace("Adding nodes children "),PKi(t,t.doc,r,a,s,!o,u,h))},"dataFetcher"),BKi=X(()=>{Xxe.clear(),rO=0},"reset"),Fy={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},pTn=X(()=>new Map,"newClassesList"),gTn=X(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dEe=X(e=>JSON.parse(JSON.stringify(e)),"clone"),bF,zB=(bF=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=pTn(),this.documents={root:gTn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=Mp,this.setAccTitle=N1,this.getAccDescription=Bp,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const s of Array.isArray(t)?t:t.doc)switch(s.stmt){case yV:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case Out:this.addRelation(s.state1,s.state2,s.description);break;case pKi:this.addStyleClass(s.id.trim(),s.classes);break;case gKi:this.handleStyleDef(s);break;case mKi:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip);break}const r=this.getStates(),a=nn();BKi(),Dae(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,a.look,this.classes);for(const s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){const r=t.id.trim().split(","),a=t.styleClass.split(",");for(const s of r){let o=this.getState(s);if(!o){const u=s.trim();this.addState(u),o=this.getState(u)}o&&(o.styles=a.map(u=>{var h;return(h=u.replace(/;/g,""))==null?void 0:h.trim()}))}}setRootDoc(t){it.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,r,a){if(r.stmt===Out){this.docTranslator(t,r.state1,!0),this.docTranslator(t,r.state2,!1);return}if(r.stmt===yV&&(r.id===Fy.START_NODE?(r.id=t.id+(a?"_start":"_end"),r.start=a):r.id=r.id.trim()),r.stmt!==tV&&r.stmt!==yV||!r.doc)return;const s=[];let o=[];for(const u of r.doc)if(u.type===rXn){const h=dEe(u);h.doc=dEe(o),s.push(h),o=[]}else o.push(u);if(s.length>0&&o.length>0){const u={stmt:yV,id:JPn(),type:"divider",doc:dEe(o)};s.push(dEe(u)),r.doc=s}r.doc.forEach(u=>this.docTranslator(r,u,!0))}getRootDocV2(){return this.docTranslator({id:tV,stmt:tV},{id:tV,stmt:tV,doc:this.rootDoc},!0),{id:tV,doc:this.rootDoc}}addState(t,r=Rse,a=void 0,s=void 0,o=void 0,u=void 0,h=void 0,f=void 0){const p=t==null?void 0:t.trim();if(!this.currentDocument.states.has(p))it.info("Adding state ",p,s),this.currentDocument.states.set(p,{stmt:yV,id:p,descriptions:[],type:r,doc:a,note:o,classes:[],styles:[],textStyles:[]});else{const m=this.currentDocument.states.get(p);if(!m)throw new Error(`State not found: ${p}`);m.doc||(m.doc=a),m.type||(m.type=r)}if(s&&(it.info("Setting state description",p,s),(Array.isArray(s)?s:[s]).forEach(b=>this.addDescription(p,b.trim()))),o){const m=this.currentDocument.states.get(p);if(!m)throw new Error(`State not found: ${p}`);m.note=o,m.note.text=Ti.sanitizeText(m.note.text,nn())}u&&(it.info("Setting state classes",p,u),(Array.isArray(u)?u:[u]).forEach(b=>this.setCssClass(p,b.trim()))),h&&(it.info("Setting state styles",p,h),(Array.isArray(h)?h:[h]).forEach(b=>this.setStyle(p,b.trim()))),f&&(it.info("Setting state styles",p,h),(Array.isArray(f)?f:[f]).forEach(b=>this.setTextStyle(p,b.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:gTn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=pTn(),t||(this.links=new Map,M1())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){it.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,r,a){this.links.set(t,{url:r,tooltip:a}),it.warn("Adding link",t,r,a)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===Fy.START_NODE?(this.startEndCount++,`${Fy.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",r=Rse){return t===Fy.START_NODE?Fy.START_TYPE:r}endIdIfNeeded(t=""){return t===Fy.END_NODE?(this.startEndCount++,`${Fy.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",r=Rse){return t===Fy.END_NODE?Fy.END_TYPE:r}addRelationObjs(t,r,a=""){const s=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type),u=this.startIdIfNeeded(r.id.trim()),h=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(s,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(u,h,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:s,id2:u,relationTitle:Ti.sanitizeText(a,nn())})}addRelation(t,r,a){if(typeof t=="object"&&typeof r=="object")this.addRelationObjs(t,r,a);else if(typeof t=="string"&&typeof r=="string"){const s=this.startIdIfNeeded(t.trim()),o=this.startTypeIfNeeded(t),u=this.endIdIfNeeded(r.trim()),h=this.endTypeIfNeeded(r);this.addState(s,o),this.addState(u,h),this.currentDocument.relations.push({id1:s,id2:u,relationTitle:a?Ti.sanitizeText(a,nn()):void 0})}}addDescription(t,r){var o;const a=this.currentDocument.states.get(t),s=r.startsWith(":")?r.replace(":","").trim():r;(o=a==null?void 0:a.descriptions)==null||o.push(Ti.sanitizeText(s,nn()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,r=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const a=this.classes.get(t);r&&a&&r.split(Fy.STYLECLASS_SEP).forEach(s=>{const o=s.replace(/([^;]*);/,"$1").trim();if(RegExp(Fy.COLOR_KEYWORD).exec(s)){const h=o.replace(Fy.FILL_KEYWORD,Fy.BG_FILL).replace(Fy.COLOR_KEYWORD,Fy.FILL_KEYWORD);a.textStyles.push(h)}a.styles.push(o)})}getClasses(){return this.classes}setCssClass(t,r){t.split(",").forEach(a=>{var o;let s=this.getState(a);if(!s){const u=a.trim();this.addState(u),s=this.getState(u)}(o=s==null?void 0:s.classes)==null||o.push(r)})}setStyle(t,r){var a,s;(s=(a=this.getState(t))==null?void 0:a.styles)==null||s.push(r)}setTextStyle(t,r){var a,s;(s=(a=this.getState(t))==null?void 0:a.textStyles)==null||s.push(r)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===cTn)}getDirection(){var t;return((t=this.getDirectionStatement())==null?void 0:t.value)??fKi}setDirection(t){const r=this.getDirectionStatement();r?r.value=t:this.rootDoc.unshift({stmt:cTn,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=nn();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:dXn(this.getRootDocV2())}}getConfig(){return nn().state}},X(bF,"StateDB"),bF.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},bF),FKi=X(e=>`
defs #statediagram-barbEnd {
    fill: ${e.transitionColor};
    stroke: ${e.transitionColor};
  }
g.stateGroup text {
  fill: ${e.nodeBorder};
  stroke: none;
  font-size: 10px;
}
g.stateGroup text {
  fill: ${e.textColor};
  stroke: none;
  font-size: 10px;

}
g.stateGroup .state-title {
  font-weight: bolder;
  fill: ${e.stateLabelColor};
}

g.stateGroup rect {
  fill: ${e.mainBkg};
  stroke: ${e.nodeBorder};
}

g.stateGroup line {
  stroke: ${e.lineColor};
  stroke-width: 1;
}

.transition {
  stroke: ${e.transitionColor};
  stroke-width: 1;
  fill: none;
}

.stateGroup .composit {
  fill: ${e.background};
  border-bottom: 1px
}

.stateGroup .alt-composit {
  fill: #e0e0e0;
  border-bottom: 1px
}

.state-note {
  stroke: ${e.noteBorderColor};
  fill: ${e.noteBkgColor};

  text {
    fill: ${e.noteTextColor};
    stroke: none;
    font-size: 10px;
  }
}

.stateLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${e.mainBkg};
  opacity: 0.5;
}

.edgeLabel .label rect {
  fill: ${e.labelBackgroundColor};
  opacity: 0.5;
}
.edgeLabel {
  background-color: ${e.edgeLabelBackground};
  p {
    background-color: ${e.edgeLabelBackground};
  }
  rect {
    opacity: 0.5;
    background-color: ${e.edgeLabelBackground};
    fill: ${e.edgeLabelBackground};
  }
  text-align: center;
}
.edgeLabel .label text {
  fill: ${e.transitionLabelColor||e.tertiaryTextColor};
}
.label div .edgeLabel {
  color: ${e.transitionLabelColor||e.tertiaryTextColor};
}

.stateLabel text {
  fill: ${e.stateLabelColor};
  font-size: 10px;
  font-weight: bold;
}

.node circle.state-start {
  fill: ${e.specialStateColor};
  stroke: ${e.specialStateColor};
}

.node .fork-join {
  fill: ${e.specialStateColor};
  stroke: ${e.specialStateColor};
}

.node circle.state-end {
  fill: ${e.innerEndBackground};
  stroke: ${e.background};
  stroke-width: 1.5
}
.end-state-inner {
  fill: ${e.compositeBackground||e.background};
  // stroke: ${e.background};
  stroke-width: 1.5
}

.node rect {
  fill: ${e.stateBkg||e.mainBkg};
  stroke: ${e.stateBorder||e.nodeBorder};
  stroke-width: 1px;
}
.node polygon {
  fill: ${e.mainBkg};
  stroke: ${e.stateBorder||e.nodeBorder};;
  stroke-width: 1px;
}
#statediagram-barbEnd {
  fill: ${e.lineColor};
}

.statediagram-cluster rect {
  fill: ${e.compositeTitleBackground};
  stroke: ${e.stateBorder||e.nodeBorder};
  stroke-width: 1px;
}

.cluster-label, .nodeLabel {
  color: ${e.stateLabelColor};
  // line-height: 1;
}

.statediagram-cluster rect.outer {
  rx: 5px;
  ry: 5px;
}
.statediagram-state .divider {
  stroke: ${e.stateBorder||e.nodeBorder};
}

.statediagram-state .title-state {
  rx: 5px;
  ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
  fill: ${e.compositeBackground||e.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
  fill: ${e.altBackground?e.altBackground:"#efefef"};
}

.statediagram-cluster .inner {
  rx:0;
  ry:0;
}

.statediagram-state rect.basic {
  rx: 5px;
  ry: 5px;
}
.statediagram-state rect.divider {
  stroke-dasharray: 10,10;
  fill: ${e.altBackground?e.altBackground:"#efefef"};
}

.note-edge {
  stroke-dasharray: 5;
}

.statediagram-note rect {
  fill: ${e.noteBkgColor};
  stroke: ${e.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}
.statediagram-note rect {
  fill: ${e.noteBkgColor};
  stroke: ${e.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}

.statediagram-note text {
  fill: ${e.noteTextColor};
}

.statediagram-note .nodeLabel {
  color: ${e.noteTextColor};
}
.statediagram .edgeLabel {
  color: red; // ${e.noteTextColor};
}

#dependencyStart, #dependencyEnd {
  fill: ${e.lineColor};
  stroke: ${e.lineColor};
  stroke-width: 1;
}

.statediagramTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${e.textColor};
}
`,"getStyles"),gXn=FKi,$Ki=X(e=>e.append("circle").attr("class","start-state").attr("r",nn().state.sizeUnit).attr("cx",nn().state.padding+nn().state.sizeUnit).attr("cy",nn().state.padding+nn().state.sizeUnit),"drawStartState"),UKi=X(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",nn().state.textHeight).attr("class","divider").attr("x2",nn().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),zKi=X((e,t)=>{const r=e.append("text").attr("x",2*nn().state.padding).attr("y",nn().state.textHeight+2*nn().state.padding).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.id),a=r.node().getBBox();return e.insert("rect",":first-child").attr("x",nn().state.padding).attr("y",nn().state.padding).attr("width",a.width+2*nn().state.padding).attr("height",a.height+2*nn().state.padding).attr("rx",nn().state.radius),r},"drawSimpleState"),GKi=X((e,t)=>{const r=X(function(_,w,S){const C=_.append("tspan").attr("x",2*nn().state.padding).text(w);S||C.attr("dy",nn().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*nn().state.padding).attr("y",nn().state.textHeight+1.3*nn().state.padding).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),o=s.height,u=e.append("text").attr("x",nn().state.padding).attr("y",o+nn().state.padding*.4+nn().state.dividerMargin+nn().state.textHeight).attr("class","state-description");let h=!0,f=!0;t.descriptions.forEach(function(_){h||(r(u,_,f),f=!1),h=!1});const p=e.append("line").attr("x1",nn().state.padding).attr("y1",nn().state.padding+o+nn().state.dividerMargin/2).attr("y2",nn().state.padding+o+nn().state.dividerMargin/2).attr("class","descr-divider"),m=u.node().getBBox(),b=Math.max(m.width,s.width);return p.attr("x2",b+3*nn().state.padding),e.insert("rect",":first-child").attr("x",nn().state.padding).attr("y",nn().state.padding).attr("width",b+2*nn().state.padding).attr("height",m.height+o+2*nn().state.padding).attr("rx",nn().state.radius),e},"drawDescrState"),qKi=X((e,t,r)=>{const a=nn().state.padding,s=2*nn().state.padding,o=e.node().getBBox(),u=o.width,h=o.x,f=e.append("text").attr("x",0).attr("y",nn().state.titleShift).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.id),m=f.node().getBBox().width+s;let b=Math.max(m,u);b===u&&(b=b+s);let _;const w=e.node().getBBox();t.doc,_=h-a,m>u&&(_=(u-b)/2+a),Math.abs(h-w.x)<a&&m>u&&(_=h-(m-u)/2);const S=1-nn().state.textHeight;return e.insert("rect",":first-child").attr("x",_).attr("y",S).attr("class",r?"alt-composit":"composit").attr("width",b).attr("height",w.height+nn().state.textHeight+nn().state.titleShift+1).attr("rx","0"),f.attr("x",_+a),m<=u&&f.attr("x",h+(b-s)/2-m/2+a),e.insert("rect",":first-child").attr("x",_).attr("y",nn().state.titleShift-nn().state.textHeight-nn().state.padding).attr("width",b).attr("height",nn().state.textHeight*3).attr("rx",nn().state.radius),e.insert("rect",":first-child").attr("x",_).attr("y",nn().state.titleShift-nn().state.textHeight-nn().state.padding).attr("width",b).attr("height",w.height+3+2*nn().state.textHeight).attr("rx",nn().state.radius),e},"addTitleAndBox"),HKi=X(e=>(e.append("circle").attr("class","end-state-outer").attr("r",nn().state.sizeUnit+nn().state.miniPadding).attr("cx",nn().state.padding+nn().state.sizeUnit+nn().state.miniPadding).attr("cy",nn().state.padding+nn().state.sizeUnit+nn().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",nn().state.sizeUnit).attr("cx",nn().state.padding+nn().state.sizeUnit+2).attr("cy",nn().state.padding+nn().state.sizeUnit+2)),"drawEndState"),VKi=X((e,t)=>{let r=nn().state.forkWidth,a=nn().state.forkHeight;if(t.parentId){let s=r;r=a,a=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",a).attr("x",nn().state.padding).attr("y",nn().state.padding)},"drawForkJoinState"),YKi=X((e,t,r,a)=>{let s=0;const o=a.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let u=e.replace(/\r\n/g,"<br/>");u=u.replace(/\n/g,"<br/>");const h=u.split(Ti.lineBreakRegex);let f=1.25*nn().state.noteMargin;for(const p of h){const m=p.trim();if(m.length>0){const b=o.append("tspan");if(b.text(m),f===0){const _=b.node().getBBox();f+=_.height}s+=f,b.attr("x",t+nn().state.noteMargin),b.attr("y",r+s+1.25*nn().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:s}},"_drawLongText"),jKi=X((e,t)=>{t.attr("class","state-note");const r=t.append("rect").attr("x",0).attr("y",nn().state.padding),a=t.append("g"),{textWidth:s,textHeight:o}=YKi(e,0,0,a);return r.attr("height",o+2*nn().state.noteMargin),r.attr("width",s+nn().state.noteMargin*2),r},"drawNote"),mTn=X(function(e,t){const r=t.id,a={id:r,label:t.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&$Ki(s),t.type==="end"&&HKi(s),(t.type==="fork"||t.type==="join")&&VKi(s,t),t.type==="note"&&jKi(t.note.text,s),t.type==="divider"&&UKi(s),t.type==="default"&&t.descriptions.length===0&&zKi(s,t),t.type==="default"&&t.descriptions.length>0&&GKi(s,t);const o=s.node().getBBox();return a.width=o.width+2*nn().state.padding,a.height=o.height+2*nn().state.padding,a},"drawState"),bTn=0,WKi=X(function(e,t,r){const a=X(function(f){switch(f){case zB.relationType.AGGREGATION:return"aggregation";case zB.relationType.EXTENSION:return"extension";case zB.relationType.COMPOSITION:return"composition";case zB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(f=>!Number.isNaN(f.y));const s=t.points,o=r_().x(function(f){return f.x}).y(function(f){return f.y}).curve(j3),u=e.append("path").attr("d",o(s)).attr("id","edge"+bTn).attr("class","transition");let h="";if(nn().state.arrowMarkerAbsolute&&(h=tAe(!0)),u.attr("marker-end","url("+h+"#"+a(zB.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const f=e.append("g").attr("class","stateLabel"),{x:p,y:m}=Vo.calcLabelPosition(t.points),b=Ti.getRows(r.title);let _=0;const w=[];let S=0,C=0;for(let I=0;I<=b.length;I++){const N=f.append("text").attr("text-anchor","middle").text(b[I]).attr("x",p).attr("y",m+_),L=N.node().getBBox();S=Math.max(S,L.width),C=Math.min(C,L.x),it.info(L.x,p,m+_),_===0&&(_=N.node().getBBox().height,it.info("Title height",_,m)),w.push(N)}let A=_*b.length;if(b.length>1){const I=(b.length-1)*_*.5;w.forEach((N,L)=>N.attr("y",m+L*_-I)),A=_*b.length}const k=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",p-S/2-nn().state.padding/2).attr("y",m-A/2-nn().state.padding/2-3.5).attr("width",S+nn().state.padding).attr("height",A+nn().state.padding),it.info(k)}bTn++},"drawEdge"),Aw,eat={},KKi=X(function(){},"setConf"),XKi=X(function(e){e.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")},"insertMarkers"),QKi=X(function(e,t,r,a){Aw=nn().state;const s=nn().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=s==="sandbox"?o.nodes()[0].contentDocument:document;it.debug("Rendering diagram "+e);const f=u.select(`[id='${t}']`);XKi(f);const p=a.db.getRootDoc();mXn(p,f,void 0,!1,u,h,a);const m=Aw.padding,b=f.node().getBBox(),_=b.width+m*2,w=b.height+m*2,S=_*1.75;yv(f,w,S,Aw.useMaxWidth),f.attr("viewBox",`${b.x-Aw.padding}  ${b.y-Aw.padding} `+_+" "+w)},"draw"),ZKi=X(e=>e?e.length*Aw.fontSizeFactor:1,"getLabelWidth"),mXn=X((e,t,r,a,s,o,u)=>{const h=new c_({compound:!0,multigraph:!0});let f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt==="relation"){p=!1;break}r?h.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:p?1:Aw.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):h.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:p?1:Aw.edgeLengthFactor,nodeSep:p?1:50,ranker:"tight-tree",isMultiGraph:!0}),h.setDefaultEdgeLabel(function(){return{}});const m=u.db.getStates(),b=u.db.getRelations(),_=Object.keys(m);for(const k of _){const I=m[k];r&&(I.parentId=r);let N;if(I.doc){let L=t.append("g").attr("id",I.id).attr("class","stateGroup");N=mXn(I.doc,L,I.id,!a,s,o,u);{L=qKi(L,I,a);let P=L.node().getBBox();N.width=P.width,N.height=P.height+Aw.padding/2,eat[I.id]={y:Aw.compositTitleSize}}}else N=mTn(t,I,h);if(I.note){const L={descriptions:[],id:I.id+"-note",note:I.note,type:"note"},P=mTn(t,L,h);I.note.position==="left of"?(h.setNode(N.id+"-note",P),h.setNode(N.id,N)):(h.setNode(N.id,N),h.setNode(N.id+"-note",P)),h.setParent(N.id,N.id+"-group"),h.setParent(N.id+"-note",N.id+"-group")}else h.setNode(N.id,N)}it.debug("Count=",h.nodeCount(),h);let w=0;b.forEach(function(k){w++,it.debug("Setting edge",k),h.setEdge(k.id1,k.id2,{relation:k,width:ZKi(k.title),height:Aw.labelHeight*Ti.getRows(k.title).length,labelpos:"c"},"id"+w)}),Xqn(h),it.debug("Graph after layout",h.nodes());const S=t.node();h.nodes().forEach(function(k){k!==void 0&&h.node(k)!==void 0?(it.warn("Node "+k+": "+JSON.stringify(h.node(k))),s.select("#"+S.id+" #"+k).attr("transform","translate("+(h.node(k).x-h.node(k).width/2)+","+(h.node(k).y+(eat[k]?eat[k].y:0)-h.node(k).height/2)+" )"),s.select("#"+S.id+" #"+k).attr("data-x-shift",h.node(k).x-h.node(k).width/2),o.querySelectorAll("#"+S.id+" #"+k+" .divider").forEach(N=>{const L=N.parentElement;let P=0,M=0;L&&(L.parentElement&&(P=L.parentElement.getBBox().width),M=parseInt(L.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),N.setAttribute("x1",0-M+8),N.setAttribute("x2",P-M-8)})):it.debug("No Node "+k+": "+JSON.stringify(h.node(k)))});let C=S.getBBox();h.edges().forEach(function(k){k!==void 0&&h.edge(k)!==void 0&&(it.debug("Edge "+k.v+" -> "+k.w+": "+JSON.stringify(h.edge(k))),WKi(t,h.edge(k),h.edge(k).relation))}),C=S.getBBox();const A={id:r||"root",label:r||"root",width:0,height:0};return A.width=C.width+2*Aw.padding,A.height=C.height+2*Aw.padding,it.debug("Doc rendered",A,h),A},"renderDoc"),JKi={setConf:KKi,draw:QKi},eXi={parser:tXn,get db(){return new zB(1)},renderer:JKi,styles:gXn,init:X(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const tXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:eXi},Symbol.toStringTag,{value:"Module"}));var nXi={parser:tXn,get db(){return new zB(2)},renderer:MKi,styles:gXn,init:X(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const rXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:nXi},Symbol.toStringTag,{value:"Module"}));var Lut=function(){var e=X(function(b,_,w,S){for(w=w||{},S=b.length;S--;w[b[S]]=_);return w},"o"),t=[6,8,10,11,12,14,16,17,18],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,14],f={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:X(function(_,w,S,C,A,k,I){var N=k.length-1;switch(A){case 1:return k[N-1];case 2:this.$=[];break;case 3:k[N-1].push(k[N]),this.$=k[N-1];break;case 4:case 5:this.$=k[N];break;case 6:case 7:this.$=[];break;case 8:C.setDiagramTitle(k[N].substr(6)),this.$=k[N].substr(6);break;case 9:this.$=k[N].trim(),C.setAccTitle(this.$);break;case 10:case 11:this.$=k[N].trim(),C.setAccDescription(this.$);break;case 12:C.addSection(k[N].substr(8)),this.$=k[N].substr(8);break;case 13:C.addTask(k[N-1],k[N]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:X(function(_,w){if(w.recoverable)this.trace(_);else{var S=new Error(_);throw S.hash=w,S}},"parseError"),parse:X(function(_){var w=this,S=[0],C=[],A=[null],k=[],I=this.table,N="",L=0,P=0,M=2,F=1,U=k.slice.call(arguments,1),$=Object.create(this.lexer),G={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(G.yy[B]=this.yy[B]);$.setInput(_,G.yy),G.yy.lexer=$,G.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var Z=$.yylloc;k.push(Z);var z=$.options&&$.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(be){S.length=S.length-2*be,A.length=A.length-be,k.length=k.length-be}X(Y,"popStack");function W(){var be;return be=C.pop()||$.lex()||F,typeof be!="number"&&(be instanceof Array&&(C=be,be=C.pop()),be=w.symbols_[be]||be),be}X(W,"lex");for(var Q,V,j,ee,te={},ne,se,ie,ge;;){if(V=S[S.length-1],this.defaultActions[V]?j=this.defaultActions[V]:((Q===null||typeof Q>"u")&&(Q=W()),j=I[V]&&I[V][Q]),typeof j>"u"||!j.length||!j[0]){var ce="";ge=[];for(ne in I[V])this.terminals_[ne]&&ne>M&&ge.push("'"+this.terminals_[ne]+"'");$.showPosition?ce="Parse error on line "+(L+1)+`:
`+$.showPosition()+`
Expecting `+ge.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":ce="Parse error on line "+(L+1)+": Unexpected "+(Q==F?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(ce,{text:$.match,token:this.terminals_[Q]||Q,line:$.yylineno,loc:Z,expected:ge})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+Q);switch(j[0]){case 1:S.push(Q),A.push($.yytext),k.push($.yylloc),S.push(j[1]),Q=null,P=$.yyleng,N=$.yytext,L=$.yylineno,Z=$.yylloc;break;case 2:if(se=this.productions_[j[1]][1],te.$=A[A.length-se],te._$={first_line:k[k.length-(se||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(se||1)].first_column,last_column:k[k.length-1].last_column},z&&(te._$.range=[k[k.length-(se||1)].range[0],k[k.length-1].range[1]]),ee=this.performAction.apply(te,[N,P,L,G.yy,j[1],A,k].concat(U)),typeof ee<"u")return ee;se&&(S=S.slice(0,-1*se*2),A=A.slice(0,-1*se),k=k.slice(0,-1*se)),S.push(this.productions_[j[1]][0]),A.push(te.$),k.push(te._$),ie=I[S[S.length-2]][S[S.length-1]],S.push(ie);break;case 3:return!0}}return!0},"parse")},p=function(){var b={EOF:1,parseError:X(function(w,S){if(this.yy.parser)this.yy.parser.parseError(w,S);else throw new Error(w)},"parseError"),setInput:X(function(_,w){return this.yy=w||this.yy||{},this._input=_,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},"setInput"),input:X(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var w=_.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:X(function(_){var w=_.length,S=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var C=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),S.length-1&&(this.yylineno-=S.length-1);var A=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:S?(S.length===C.length?this.yylloc.first_column:0)+C[C.length-S.length].length-S[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(_){this.unput(this.match.slice(_))},"less"),pastInput:X(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var _=this.pastInput(),w=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+w+"^"},"showPosition"),test_match:X(function(_,w){var S,C,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),C=_[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],S=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var k in A)this[k]=A[k];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,w,S,C;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),k=0;k<A.length;k++)if(S=this._input.match(this.rules[A[k]]),S&&(!w||S[0].length>w[0].length)){if(w=S,C=k,this.options.backtrack_lexer){if(_=this.test_match(S,A[k]),_!==!1)return _;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(_=this.test_match(w,A[C]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var w=this.next();return w||this.lex()},"lex"),begin:X(function(w){this.conditionStack.push(w)},"begin"),popState:X(function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},"topState"),pushState:X(function(w){this.begin(w)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(w,S,C,A){switch(C){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\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:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return b}();f.lexer=p;function m(){this.yy={}}return X(m,"Parser"),m.prototype=f,f.Parser=m,new m}();Lut.parser=Lut;var iXi=Lut,eW="",ebt=[],ule=[],hle=[],aXi=X(function(){ebt.length=0,ule.length=0,eW="",hle.length=0,M1()},"clear"),sXi=X(function(e){eW=e,ebt.push(e)},"addSection"),oXi=X(function(){return ebt},"getSections"),lXi=X(function(){let e=yTn();const t=100;let r=0;for(;!e&&r<t;)e=yTn(),r++;return ule.push(...hle),ule},"getTasks"),cXi=X(function(){const e=[];return ule.forEach(r=>{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},"updateActors"),uXi=X(function(e,t){const r=t.substr(1).split(":");let a=0,s=[];r.length===1?(a=Number(r[0]),s=[]):(a=Number(r[0]),s=r[1].split(","));const o=s.map(h=>h.trim()),u={section:eW,type:eW,people:o,task:e,score:a};hle.push(u)},"addTask"),hXi=X(function(e){const t={section:eW,type:eW,description:e,task:e,classes:[]};ule.push(t)},"addTaskOrg"),yTn=X(function(){const e=X(function(r){return hle[r].processed},"compileTask");let t=!0;for(const[r,a]of hle.entries())e(r),t=t&&a.processed;return t},"compileTasks"),dXi=X(function(){return cXi()},"getActors"),vTn={getConfig:X(()=>nn().journey,"getConfig"),clear:aXi,setDiagramTitle:Og,getDiagramTitle:P1,setAccTitle:N1,getAccTitle:Mp,setAccDescription:Pp,getAccDescription:Bp,addSection:sXi,getSections:oXi,getTasks:lXi,addTask:uXi,addTaskOrg:hXi,getActors:dXi},fXi=X(e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.textColor};
  }
  .mouth {
    stroke: #666;
  }

  line {
    stroke: ${e.textColor}
  }

  .legend {
    fill: ${e.textColor};
    font-family: ${e.fontFamily};
  }

  .label text {
    fill: #333;
  }
  .label {
    color: ${e.textColor}
  }

  .face {
    ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};
    stroke: #999;
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 1.5px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.5;
    }
    text-align: center;
  }

  .cluster rect {
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .task-type-0, .section-type-0  {
    ${e.fillType0?`fill: ${e.fillType0}`:""};
  }
  .task-type-1, .section-type-1  {
    ${e.fillType0?`fill: ${e.fillType1}`:""};
  }
  .task-type-2, .section-type-2  {
    ${e.fillType0?`fill: ${e.fillType2}`:""};
  }
  .task-type-3, .section-type-3  {
    ${e.fillType0?`fill: ${e.fillType3}`:""};
  }
  .task-type-4, .section-type-4  {
    ${e.fillType0?`fill: ${e.fillType4}`:""};
  }
  .task-type-5, .section-type-5  {
    ${e.fillType0?`fill: ${e.fillType5}`:""};
  }
  .task-type-6, .section-type-6  {
    ${e.fillType0?`fill: ${e.fillType6}`:""};
  }
  .task-type-7, .section-type-7  {
    ${e.fillType0?`fill: ${e.fillType7}`:""};
  }

  .actor-0 {
    ${e.actor0?`fill: ${e.actor0}`:""};
  }
  .actor-1 {
    ${e.actor1?`fill: ${e.actor1}`:""};
  }
  .actor-2 {
    ${e.actor2?`fill: ${e.actor2}`:""};
  }
  .actor-3 {
    ${e.actor3?`fill: ${e.actor3}`:""};
  }
  .actor-4 {
    ${e.actor4?`fill: ${e.actor4}`:""};
  }
  .actor-5 {
    ${e.actor5?`fill: ${e.actor5}`:""};
  }
  ${Lce()}
`,"getStyles"),pXi=fXi,tbt=X(function(e,t){return vke(e,t)},"drawRect"),gXi=X(function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}X(o,"smile");function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}X(u,"sad");function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return X(h,"ambivalent"),t.score>3?o(s):t.score<3?u(s):h(s),a},"drawFace"),bXn=X(function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),yXn=X(function(e,t){return f9i(e,t)},"drawText"),mXi=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,yXn(e,t)},"drawLabel"),bXi=X(function(e,t,r){const a=e.append("g"),s=Ww();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,tbt(a,s),vXn(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),_Tn=-1,yXi=X(function(e,t,r){const a=t.x+r.width/2,s=e.append("g");_Tn++;const o=300+5*30;s.append("line").attr("id","task"+_Tn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),gXi(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=Ww();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,tbt(s,u);let h=t.x+14;t.people.forEach(f=>{const p=t.actors[f].color,m={cx:h,cy:t.y,r:7,fill:p,stroke:"#000",title:f,pos:t.actors[f].position};bXn(s,m),h+=10}),vXn(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},"drawTask"),vXi=X(function(e,t){rYn(e,t)},"drawBackgroundRect"),vXn=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(/<br\s*\/?>/gi);for(let A=0;A<C.length;A++){const k=A*w-w*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).attr("fill",_).style("text-anchor","middle").style("font-size",w).style("font-family",S);I.append("tspan").attr("x",u+f/2).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}X(t,"byTspan");function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}X(r,"byFo");function a(s,o){for(const u in o)u in o&&s.attr(u,o[u])}return X(a,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),_Xi=X(function(e){e.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")},"initGraphics"),dle={drawRect:tbt,drawCircle:bXn,drawSection:bXi,drawText:yXn,drawLabel:mXi,drawTask:yXi,drawBackgroundRect:vXi,initGraphics:_Xi},wXi=X(function(e){Object.keys(e).forEach(function(r){A3[r]=e[r]})},"setConf"),I7={},Zxe=0;function _Xn(e){const t=nn().journey,r=t.maxLabelWidth;Zxe=0;let a=60;Object.keys(I7).forEach(s=>{const o=I7[s].color,u={cx:20,cy:a,r:7,fill:o,stroke:"#000",pos:I7[s].position};dle.drawCircle(e,u);let h=e.append("text").attr("visibility","hidden").text(s);const f=h.node().getBoundingClientRect().width;h.remove();let p=[];if(f<=r)p=[s];else{const m=s.split(" ");let b="";h=e.append("text").attr("visibility","hidden"),m.forEach(_=>{const w=b?`${b} ${_}`:_;if(h.text(w),h.node().getBoundingClientRect().width>r){if(b&&p.push(b),b=_,h.text(_),h.node().getBoundingClientRect().width>r){let C="";for(const A of _)C+=A,h.text(C+"-"),h.node().getBoundingClientRect().width>r&&(p.push(C.slice(0,-1)+"-"),C=A);b=C}}else b=w}),b&&p.push(b),h.remove()}p.forEach((m,b)=>{const _={x:40,y:a+7+b*20,fill:"#666",text:m,textMargin:t.boxTextMargin??5},S=dle.drawText(e,_).node().getBoundingClientRect().width;S>Zxe&&S>t.leftMargin-S&&(Zxe=S)}),a+=Math.max(20,p.length*20)})}X(_Xn,"drawActorLegend");var A3=nn().journey,QN=0,EXi=X(function(e,t,r,a){const s=nn(),o=s.journey.titleColor,u=s.journey.titleFontSize,h=s.journey.titleFontFamily,f=s.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const m=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body");jx.init();const b=m.select("#"+t);dle.initGraphics(b);const _=a.db.getTasks(),w=a.db.getDiagramTitle(),S=a.db.getActors();for(const L in I7)delete I7[L];let C=0;S.forEach(L=>{I7[L]={color:A3.actorColours[C%A3.actorColours.length],position:C},C++}),_Xn(b),QN=A3.leftMargin+Zxe,jx.insert(0,0,QN,Object.keys(I7).length*50),xXi(b,_,0);const A=jx.getBounds();w&&b.append("text").text(w).attr("x",QN).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);const k=A.stopy-A.starty+2*A3.diagramMarginY,I=QN+A.stopx+2*A3.diagramMarginX;yv(b,k,I,A3.useMaxWidth),b.append("line").attr("x1",QN).attr("y1",A3.height*4).attr("x2",I-QN-4).attr("y2",A3.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const N=w?70:0;b.attr("viewBox",`${A.startx} -25 ${I} ${k+N}`),b.attr("preserveAspectRatio","xMinYMin meet"),b.attr("height",k+N+25)},"draw"),jx={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:X(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:X(function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},"updateVal"),updateBounds:X(function(e,t,r,a){const s=nn().journey,o=this;let u=0;function h(f){return X(function(m){u++;const b=o.sequenceItems.length-u+1;o.updateVal(m,"starty",t-b*s.boxMargin,Math.min),o.updateVal(m,"stopy",a+b*s.boxMargin,Math.max),o.updateVal(jx.data,"startx",e-b*s.boxMargin,Math.min),o.updateVal(jx.data,"stopx",r+b*s.boxMargin,Math.max),f!=="activation"&&(o.updateVal(m,"startx",e-b*s.boxMargin,Math.min),o.updateVal(m,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(jx.data,"starty",t-b*s.boxMargin,Math.min),o.updateVal(jx.data,"stopy",a+b*s.boxMargin,Math.max))},"updateItemBounds")}X(h,"updateFn"),this.sequenceItems.forEach(h())},"updateBounds"),insert:X(function(e,t,r,a){const s=Math.min(e,r),o=Math.max(e,r),u=Math.min(t,a),h=Math.max(t,a);this.updateVal(jx.data,"startx",s,Math.min),this.updateVal(jx.data,"starty",u,Math.min),this.updateVal(jx.data,"stopx",o,Math.max),this.updateVal(jx.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},"insert"),bumpVerticalPos:X(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:X(function(){return this.verticalPos},"getVerticalPos"),getBounds:X(function(){return this.data},"getBounds")},tat=A3.sectionFills,wTn=A3.sectionColours,xXi=X(function(e,t,r){const a=nn().journey;let s="";const o=a.height*2+a.diagramMarginY,u=r+o;let h=0,f="#CCC",p="black",m=0;for(const[b,_]of t.entries()){if(s!==_.section){f=tat[h%tat.length],m=h%tat.length,p=wTn[h%wTn.length];let S=0;const C=_.section;for(let k=b;k<t.length&&t[k].section==C;k++)S=S+1;const A={x:b*a.taskMargin+b*a.width+QN,y:50,text:_.section,fill:f,num:m,colour:p,taskCount:S};dle.drawSection(e,A,a),s=_.section,h++}const w=_.people.reduce((S,C)=>(I7[C]&&(S[C]=I7[C]),S),{});_.x=b*a.taskMargin+b*a.width+QN,_.y=u,_.width=a.diagramMarginX,_.height=a.diagramMarginY,_.colour=p,_.fill=f,_.num=m,_.actors=w,dle.drawTask(e,_,a),jx.insert(_.x,_.y,_.x+_.width+a.taskMargin,300+5*30)}},"drawTasks"),ETn={setConf:wXi,draw:EXi},SXi={parser:iXi,db:vTn,renderer:ETn,styles:pXi,init:X(e=>{ETn.setConf(e.journey),vTn.clear()},"init")};const TXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:SXi},Symbol.toStringTag,{value:"Module"}));var Dut=function(){var e=X(function(_,w,S,C){for(S=S||{},C=_.length;C--;S[_[C]]=w);return S},"o"),t=[6,8,10,11,12,14,16,17,20,21],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,16],f=[1,17],p={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:X(function(w,S,C,A,k,I,N){var L=I.length-1;switch(k){case 1:return I[L-1];case 2:this.$=[];break;case 3:I[L-1].push(I[L]),this.$=I[L-1];break;case 4:case 5:this.$=I[L];break;case 6:case 7:this.$=[];break;case 8:A.getCommonDb().setDiagramTitle(I[L].substr(6)),this.$=I[L].substr(6);break;case 9:this.$=I[L].trim(),A.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=I[L].trim(),A.getCommonDb().setAccDescription(this.$);break;case 12:A.addSection(I[L].substr(8)),this.$=I[L].substr(8);break;case 15:A.addTask(I[L],0,""),this.$=I[L];break;case 16:A.addEvent(I[L].substr(2)),this.$=I[L];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:18,11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,19]},{15:[1,20]},e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,4]),e(t,[2,9]),e(t,[2,10])],defaultActions:{},parseError:X(function(w,S){if(S.recoverable)this.trace(w);else{var C=new Error(w);throw C.hash=S,C}},"parseError"),parse:X(function(w){var S=this,C=[0],A=[],k=[null],I=[],N=this.table,L="",P=0,M=0,F=2,U=1,$=I.slice.call(arguments,1),G=Object.create(this.lexer),B={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(B.yy[Z]=this.yy[Z]);G.setInput(w,B.yy),B.yy.lexer=G,B.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var z=G.yylloc;I.push(z);var Y=G.options&&G.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(ve){C.length=C.length-2*ve,k.length=k.length-ve,I.length=I.length-ve}X(W,"popStack");function Q(){var ve;return ve=A.pop()||G.lex()||U,typeof ve!="number"&&(ve instanceof Array&&(A=ve,ve=A.pop()),ve=S.symbols_[ve]||ve),ve}X(Q,"lex");for(var V,j,ee,te,ne={},se,ie,ge,ce;;){if(j=C[C.length-1],this.defaultActions[j]?ee=this.defaultActions[j]:((V===null||typeof V>"u")&&(V=Q()),ee=N[j]&&N[j][V]),typeof ee>"u"||!ee.length||!ee[0]){var be="";ce=[];for(se in N[j])this.terminals_[se]&&se>F&&ce.push("'"+this.terminals_[se]+"'");G.showPosition?be="Parse error on line "+(P+1)+`:
`+G.showPosition()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[V]||V)+"'":be="Parse error on line "+(P+1)+": Unexpected "+(V==U?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(be,{text:G.match,token:this.terminals_[V]||V,line:G.yylineno,loc:z,expected:ce})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+V);switch(ee[0]){case 1:C.push(V),k.push(G.yytext),I.push(G.yylloc),C.push(ee[1]),V=null,M=G.yyleng,L=G.yytext,P=G.yylineno,z=G.yylloc;break;case 2:if(ie=this.productions_[ee[1]][1],ne.$=k[k.length-ie],ne._$={first_line:I[I.length-(ie||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(ie||1)].first_column,last_column:I[I.length-1].last_column},Y&&(ne._$.range=[I[I.length-(ie||1)].range[0],I[I.length-1].range[1]]),te=this.performAction.apply(ne,[L,M,P,B.yy,ee[1],k,I].concat($)),typeof te<"u")return te;ie&&(C=C.slice(0,-1*ie*2),k=k.slice(0,-1*ie),I=I.slice(0,-1*ie)),C.push(this.productions_[ee[1]][0]),k.push(ne.$),I.push(ne._$),ge=N[C[C.length-2]][C[C.length-1]],C.push(ge);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:X(function(S,C){if(this.yy.parser)this.yy.parser.parseError(S,C);else throw new Error(S)},"parseError"),setInput:X(function(w,S){return this.yy=S||this.yy||{},this._input=w,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},"setInput"),input:X(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var S=w.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:X(function(w){var S=w.length,C=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var A=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),C.length-1&&(this.yylineno-=C.length-1);var k=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:C?(C.length===A.length?this.yylloc.first_column:0)+A[A.length-C.length].length-C[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(w){this.unput(this.match.slice(w))},"less"),pastInput:X(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var w=this.pastInput(),S=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+S+"^"},"showPosition"),test_match:X(function(w,S){var C,A,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),A=w[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],C=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var I in k)this[I]=k[I];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,S,C,A;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),I=0;I<k.length;I++)if(C=this._input.match(this.rules[k[I]]),C&&(!S||C[0].length>S[0].length)){if(S=C,A=I,this.options.backtrack_lexer){if(w=this.test_match(C,k[I]),w!==!1)return w;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(w=this.test_match(S,k[A]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var S=this.next();return S||this.lex()},"lex"),begin:X(function(S){this.conditionStack.push(S)},"begin"),popState:X(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:X(function(S){this.begin(S)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(S,C,A,k){switch(A){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\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]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return _}();p.lexer=m;function b(){this.yy={}}return X(b,"Parser"),b.prototype=p,p.Parser=b,new b}();Dut.parser=Dut;var CXi=Dut,wXn={};KCe(wXn,{addEvent:()=>RXn,addSection:()=>TXn,addTask:()=>kXn,addTaskOrg:()=>IXn,clear:()=>SXn,default:()=>AXi,getCommonDb:()=>xXn,getSections:()=>CXn,getTasks:()=>AXn});var tW="",EXn=0,nbt=[],PTe=[],nW=[],xXn=X(()=>$0t,"getCommonDb"),SXn=X(function(){nbt.length=0,PTe.length=0,tW="",nW.length=0,M1()},"clear"),TXn=X(function(e){tW=e,nbt.push(e)},"addSection"),CXn=X(function(){return nbt},"getSections"),AXn=X(function(){let e=xTn();const t=100;let r=0;for(;!e&&r<t;)e=xTn(),r++;return PTe.push(...nW),PTe},"getTasks"),kXn=X(function(e,t,r){const a={id:EXn++,section:tW,type:tW,task:e,score:t||0,events:r?[r]:[]};nW.push(a)},"addTask"),RXn=X(function(e){nW.find(r=>r.id===EXn-1).events.push(e)},"addEvent"),IXn=X(function(e){const t={section:tW,type:tW,description:e,task:e,classes:[]};PTe.push(t)},"addTaskOrg"),xTn=X(function(){const e=X(function(r){return nW[r].processed},"compileTask");let t=!0;for(const[r,a]of nW.entries())e(r),t=t&&a.processed;return t},"compileTasks"),AXi={clear:SXn,getCommonDb:xXn,addSection:TXn,getSections:CXn,getTasks:AXn,addTask:kXn,addTaskOrg:IXn,addEvent:RXn},kXi=12,t6e=X(function(e,t){const r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},"drawRect"),RXi=X(function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}X(o,"smile");function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}X(u,"sad");function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return X(h,"ambivalent"),t.score>3?o(s):t.score<3?u(s):h(s),a},"drawFace"),IXi=X(function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),NXn=X(function(e,t){const r=t.text.replace(/<br\s*\/?>/gi," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},"drawText"),NXi=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,NXn(e,t)},"drawLabel"),OXi=X(function(e,t,r){const a=e.append("g"),s=rbt();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,t6e(a,s),OXn(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),STn=-1,LXi=X(function(e,t,r){const a=t.x+r.width/2,s=e.append("g");STn++;const o=300+5*30;s.append("line").attr("id","task"+STn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),RXi(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=rbt();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,t6e(s,u),OXn(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},"drawTask"),DXi=X(function(e,t){t6e(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),MXi=X(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),rbt=X(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),OXn=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(/<br\s*\/?>/gi);for(let A=0;A<C.length;A++){const k=A*w-w*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).attr("fill",_).style("text-anchor","middle").style("font-size",w).style("font-family",S);I.append("tspan").attr("x",u+f/2).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}X(t,"byTspan");function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}X(r,"byFo");function a(s,o){for(const u in o)u in o&&s.attr(u,o[u])}return X(a,"_setTextAttrs"),function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),PXi=X(function(e){e.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")},"initGraphics");function ibt(e,t){e.each(function(){var r=gn(this),a=r.text().split(/(\s+|<br>)/).reverse(),s,o=[],u=1.1,h=r.attr("y"),f=parseFloat(r.attr("dy")),p=r.text(null).append("tspan").attr("x",0).attr("y",h).attr("dy",f+"em");for(let m=0;m<a.length;m++)s=a[a.length-1-m],o.push(s),p.text(o.join(" ").trim()),(p.node().getComputedTextLength()>t||s==="<br>")&&(o.pop(),p.text(o.join(" ").trim()),s==="<br>"?o=[""]:o=[s],p=r.append("tspan").attr("x",0).attr("y",h).attr("dy",u+"em").text(s))})}X(ibt,"wrap");var BXi=X(function(e,t,r,a){var b;const s=r%kXi-1,o=e.append("g");t.section=s,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const u=o.append("g"),h=o.append("g"),p=h.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ibt,t.width).node().getBBox(),m=(b=a.fontSize)!=null&&b.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,h.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),$Xi(u,t,s,a),t},"drawNode"),FXi=X(function(e,t,r){var h;const a=e.append("g"),o=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ibt,t.width).node().getBBox(),u=(h=r.fontSize)!=null&&h.replace?r.fontSize.replace("px",""):r.fontSize;return a.remove(),o.height+u*1.1*.5+t.padding},"getVirtualNodeHeight"),$Xi=X(function(e,t,r){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),GB={drawRect:t6e,drawCircle:IXi,drawSection:OXi,drawText:NXn,drawLabel:NXi,drawTask:LXi,drawBackgroundRect:DXi,getTextObj:MXi,getNoteRect:rbt,initGraphics:PXi,drawNode:BXi,getVirtualNodeHeight:FXi},UXi=X(function(e,t,r,a){var $,G,B;const s=nn(),o=(($=s.timeline)==null?void 0:$.leftMargin)??50;it.debug("timeline",a.db);const u=s.securityLevel;let h;u==="sandbox"&&(h=gn("#i"+t));const p=gn(u==="sandbox"?h.nodes()[0].contentDocument.body:"body").select("#"+t);p.append("g");const m=a.db.getTasks(),b=a.db.getCommonDb().getDiagramTitle();it.debug("task",m),GB.initGraphics(p);const _=a.db.getSections();it.debug("sections",_);let w=0,S=0,C=0,A=0,k=50+o,I=50;A=50;let N=0,L=!0;_.forEach(function(Z){const z={number:N,descr:Z,section:N,width:150,padding:20,maxHeight:w},Y=GB.getVirtualNodeHeight(p,z,s);it.debug("sectionHeight before draw",Y),w=Math.max(w,Y+20)});let P=0,M=0;it.debug("tasks.length",m.length);for(const[Z,z]of m.entries()){const Y={number:Z,descr:z,section:z.section,width:150,padding:20,maxHeight:S},W=GB.getVirtualNodeHeight(p,Y,s);it.debug("taskHeight before draw",W),S=Math.max(S,W+20),P=Math.max(P,z.events.length);let Q=0;for(const V of z.events){const j={descr:V,section:z.section,number:z.section,width:150,padding:20,maxHeight:50};Q+=GB.getVirtualNodeHeight(p,j,s)}z.events.length>0&&(Q+=(z.events.length-1)*10),M=Math.max(M,Q)}it.debug("maxSectionHeight before draw",w),it.debug("maxTaskHeight before draw",S),_&&_.length>0?_.forEach(Z=>{const z=m.filter(V=>V.section===Z),Y={number:N,descr:Z,section:N,width:200*Math.max(z.length,1)-50,padding:20,maxHeight:w};it.debug("sectionNode",Y);const W=p.append("g"),Q=GB.drawNode(W,Y,N,s);it.debug("sectionNode output",Q),W.attr("transform",`translate(${k}, ${A})`),I+=w+50,z.length>0&&TTn(p,z,N,k,I,S,s,P,M,w,!1),k+=200*Math.max(z.length,1),I=A,N++}):(L=!1,TTn(p,m,N,k,I,S,s,P,M,w,!0));const F=p.node().getBBox();it.debug("bounds",F),b&&p.append("text").text(b).attr("x",F.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),C=L?w+S+150:S+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",C).attr("x2",F.width+3*o).attr("y2",C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),rce(void 0,p,((G=s.timeline)==null?void 0:G.padding)??50,((B=s.timeline)==null?void 0:B.useMaxWidth)??!1)},"draw"),TTn=X(function(e,t,r,a,s,o,u,h,f,p,m){var b;for(const _ of t){const w={descr:_.task,section:r,number:r,width:150,padding:20,maxHeight:o};it.debug("taskNode",w);const S=e.append("g").attr("class","taskWrapper"),A=GB.drawNode(S,w,r,u).height;if(it.debug("taskHeight after draw",A),S.attr("transform",`translate(${a}, ${s})`),o=Math.max(o,A),_.events){const k=e.append("g").attr("class","lineWrapper");let I=o;s+=100,I=I+zXi(e,_.events,r,a,s,u),s-=100,k.append("line").attr("x1",a+190/2).attr("y1",s+o).attr("x2",a+190/2).attr("y2",s+o+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,m&&!((b=u.timeline)!=null&&b.disableMulticolor)&&r++}s=s-10},"drawTasks"),zXi=X(function(e,t,r,a,s,o){let u=0;const h=s;s=s+100;for(const f of t){const p={descr:f,section:r,number:r,width:150,padding:20,maxHeight:50};it.debug("eventNode",p);const m=e.append("g").attr("class","eventWrapper"),_=GB.drawNode(m,p,r,o).height;u=u+_,m.attr("transform",`translate(${a}, ${s})`),s=s+10+_}return s=h,u},"drawEvents"),GXi={setConf:X(()=>{},"setConf"),draw:UXi},qXi=X(e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],bv(e["lineColor"+r])?e["lineColor"+r]=Nr(e["lineColor"+r],20):e["lineColor"+r]=qr(e["lineColor"+r],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const a=""+(17-3*r);t+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path  {
      fill: ${e["cScale"+r]};
    }
    .section-${r-1} text {
     fill: ${e["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${e["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${a};
    }
    .section-${r-1} line {
      stroke: ${e["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .lineWrapper line{
      stroke: ${e["cScaleLabel"+r]} ;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }
    `}return t},"genSections"),HXi=X(e=>`
  .edge {
    stroke-width: 3;
  }
  ${qXi(e)}
  .section-root rect, .section-root path, .section-root circle  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .eventWrapper  {
   filter: brightness(120%);
  }
`,"getStyles"),VXi=HXi,YXi={db:wXn,renderer:GXi,parser:CXi,styles:VXi};const jXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:YXi},Symbol.toStringTag,{value:"Module"})),hm=[];for(let e=0;e<256;++e)hm.push((e+256).toString(16).slice(1));function WXi(e,t=0){return(hm[e[t+0]]+hm[e[t+1]]+hm[e[t+2]]+hm[e[t+3]]+"-"+hm[e[t+4]]+hm[e[t+5]]+"-"+hm[e[t+6]]+hm[e[t+7]]+"-"+hm[e[t+8]]+hm[e[t+9]]+"-"+hm[e[t+10]]+hm[e[t+11]]+hm[e[t+12]]+hm[e[t+13]]+hm[e[t+14]]+hm[e[t+15]]).toLowerCase()}let nat;const KXi=new Uint8Array(16);function XXi(){if(!nat){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");nat=crypto.getRandomValues.bind(crypto)}return nat(KXi)}const QXi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),CTn={randomUUID:QXi};function ZXi(e,t,r){var s;if(CTn.randomUUID&&!e)return CTn.randomUUID();e=e||{};const a=e.random??((s=e.rng)==null?void 0:s.call(e))??XXi();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,WXi(a)}var Mut=function(){var e=X(function(L,P,M,F){for(M=M||{},F=L.length;F--;M[L[F]]=P);return M},"o"),t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,6,13,15,16,19,22],S=[1,33],C=[1,34],A=[1,6,7,11,13,15,16,19,22],k={trace:X(function(){},"trace"),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:X(function(P,M,F,U,$,G,B){var Z=G.length-1;switch($){case 6:case 7:return U;case 8:U.getLogger().trace("Stop NL ");break;case 9:U.getLogger().trace("Stop EOF ");break;case 11:U.getLogger().trace("Stop NL2 ");break;case 12:U.getLogger().trace("Stop EOF2 ");break;case 15:U.getLogger().info("Node: ",G[Z].id),U.addNode(G[Z-1].length,G[Z].id,G[Z].descr,G[Z].type);break;case 16:U.getLogger().trace("Icon: ",G[Z]),U.decorateNode({icon:G[Z]});break;case 17:case 21:U.decorateNode({class:G[Z]});break;case 18:U.getLogger().trace("SPACELIST");break;case 19:U.getLogger().trace("Node: ",G[Z].id),U.addNode(0,G[Z].id,G[Z].descr,G[Z].type);break;case 20:U.decorateNode({icon:G[Z]});break;case 25:U.getLogger().trace("node found ..",G[Z-2]),this.$={id:G[Z-1],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break;case 26:this.$={id:G[Z],descr:G[Z],type:U.nodeType.DEFAULT};break;case 27:U.getLogger().trace("node found ..",G[Z-3]),this.$={id:G[Z-3],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:r,9:22,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:p,7:m,10:23,11:b},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:h}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:m,10:32,11:b},{1:[2,7],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(w,[2,14],{7:S,11:C}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(w,[2,13],{7:S,11:C}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:X(function(P,M){if(M.recoverable)this.trace(P);else{var F=new Error(P);throw F.hash=M,F}},"parseError"),parse:X(function(P){var M=this,F=[0],U=[],$=[null],G=[],B=this.table,Z="",z=0,Y=0,W=2,Q=1,V=G.slice.call(arguments,1),j=Object.create(this.lexer),ee={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(ee.yy[te]=this.yy[te]);j.setInput(P,ee.yy),ee.yy.lexer=j,ee.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var ne=j.yylloc;G.push(ne);var se=j.options&&j.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(Le){F.length=F.length-2*Le,$.length=$.length-Le,G.length=G.length-Le}X(ie,"popStack");function ge(){var Le;return Le=U.pop()||j.lex()||Q,typeof Le!="number"&&(Le instanceof Array&&(U=Le,Le=U.pop()),Le=M.symbols_[Le]||Le),Le}X(ge,"lex");for(var ce,be,ve,De,ye={},Ee,he,we,Ce;;){if(be=F[F.length-1],this.defaultActions[be]?ve=this.defaultActions[be]:((ce===null||typeof ce>"u")&&(ce=ge()),ve=B[be]&&B[be][ce]),typeof ve>"u"||!ve.length||!ve[0]){var Ie="";Ce=[];for(Ee in B[be])this.terminals_[Ee]&&Ee>W&&Ce.push("'"+this.terminals_[Ee]+"'");j.showPosition?Ie="Parse error on line "+(z+1)+`:
`+j.showPosition()+`
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ie="Parse error on line "+(z+1)+": Unexpected "+(ce==Q?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ie,{text:j.match,token:this.terminals_[ce]||ce,line:j.yylineno,loc:ne,expected:Ce})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+ce);switch(ve[0]){case 1:F.push(ce),$.push(j.yytext),G.push(j.yylloc),F.push(ve[1]),ce=null,Y=j.yyleng,Z=j.yytext,z=j.yylineno,ne=j.yylloc;break;case 2:if(he=this.productions_[ve[1]][1],ye.$=$[$.length-he],ye._$={first_line:G[G.length-(he||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(he||1)].first_column,last_column:G[G.length-1].last_column},se&&(ye._$.range=[G[G.length-(he||1)].range[0],G[G.length-1].range[1]]),De=this.performAction.apply(ye,[Z,Y,z,ee.yy,ve[1],$,G].concat(V)),typeof De<"u")return De;he&&(F=F.slice(0,-1*he*2),$=$.slice(0,-1*he),G=G.slice(0,-1*he)),F.push(this.productions_[ve[1]][0]),$.push(ye.$),G.push(ye._$),we=B[F[F.length-2]][F[F.length-1]],F.push(we);break;case 3:return!0}}return!0},"parse")},I=function(){var L={EOF:1,parseError:X(function(M,F){if(this.yy.parser)this.yy.parser.parseError(M,F);else throw new Error(M)},"parseError"),setInput:X(function(P,M){return this.yy=M||this.yy||{},this._input=P,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},"setInput"),input:X(function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var M=P.match(/(?:\r\n?|\n).*/g);return M?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),P},"input"),unput:X(function(P){var M=P.length,F=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-M),this.offset-=M;var U=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),F.length-1&&(this.yylineno-=F.length-1);var $=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:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-M},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-M]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(P){this.unput(this.match.slice(P))},"less"),pastInput:X(function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var P=this.match;return P.length<20&&(P+=this._input.substr(0,20-P.length)),(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var P=this.pastInput(),M=new Array(P.length+1).join("-");return P+this.upcomingInput()+`
`+M+"^"},"showPosition"),test_match:X(function(P,M){var F,U,$;if(this.options.backtrack_lexer&&($={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&&($.yylloc.range=this.yylloc.range.slice(0))),U=P[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,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(P[0].length),this.matched+=P[0],F=this.performAction.call(this,this.yy,this,M,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var G in $)this[G]=$[G];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var P,M,F,U;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),G=0;G<$.length;G++)if(F=this._input.match(this.rules[$[G]]),F&&(!M||F[0].length>M[0].length)){if(M=F,U=G,this.options.backtrack_lexer){if(P=this.test_match(F,$[G]),P!==!1)return P;if(this._backtrack){M=!1;continue}else return!1}else if(!this.options.flex)break}return M?(P=this.test_match(M,$[U]),P!==!1?P:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var M=this.next();return M||this.lex()},"lex"),begin:X(function(M){this.conditionStack.push(M)},"begin"),popState:X(function(){var M=this.conditionStack.length-1;return M>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(M){return M=this.conditionStack.length-1-Math.abs(M||0),M>=0?this.conditionStack[M]:"INITIAL"},"topState"),pushState:X(function(M){this.begin(M)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(M,F,U,$){switch(U){case 0:return M.getLogger().trace("Found comment",F.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:M.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return M.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:M.getLogger().trace("end icon"),this.popState();break;case 10:return M.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return M.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return M.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return M.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:M.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return M.getLogger().trace("description:",F.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),M.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),M.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),M.getLogger().trace("node end ...",F.yytext),"NODE_DEND";case 30:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 35:return M.getLogger().trace("Long description:",F.yytext),20;case 36:return M.getLogger().trace("Long description:",F.yytext),20}},"anonymous"),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,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();k.lexer=I;function N(){this.yy={}}return X(N,"Parser"),N.prototype=k,k.Parser=N,new N}();Mut.parser=Mut;var JXi=Mut,J6={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},sj,eQi=(sj=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=J6,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level<t)return this.nodes[r];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,r,a,s){var m,b;it.info("addNode",t,r,a,s);let o=!1;this.nodes.length===0?(this.baseLevel=t,t=0,o=!0):this.baseLevel!==void 0&&(t=t-this.baseLevel,o=!1);const u=nn();let h=((m=u.mindmap)==null?void 0:m.padding)??Cc.mindmap.padding;switch(s){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2;break}const f={id:this.count++,nodeId:Ic(r,u),level:t,descr:Ic(a,u),type:s,children:[],width:((b=u.mindmap)==null?void 0:b.maxNodeWidth)??Cc.mindmap.maxNodeWidth,padding:h,isRoot:o},p=this.getParent(t);if(p)p.children.push(f),this.nodes.push(f);else if(o)this.nodes.push(f);else throw new Error(`There can be only one root. No parent could be found for ("${f.descr}")`)}getType(t,r){switch(it.debug("In get type",t,r),t){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,r){this.elements[t]=r}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;const r=nn(),a=this.nodes[this.nodes.length-1];t.icon&&(a.icon=Ic(t.icon,r)),t.class&&(a.class=Ic(t.class,r))}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,r){if(t.level===0?t.section=void 0:t.section=r,t.children)for(const[a,s]of t.children.entries()){const o=t.level===0?a:r;this.assignSections(s,o)}}flattenNodes(t,r){const a=["mindmap-node"];t.isRoot===!0?a.push("section-root","section--1"):t.section!==void 0&&a.push(`section-${t.section}`),t.class&&a.push(t.class);const s=a.join(" "),o=X(h=>{switch(h){case J6.CIRCLE:return"mindmapCircle";case J6.RECT:return"rect";case J6.ROUNDED_RECT:return"rounded";case J6.CLOUD:return"cloud";case J6.BANG:return"bang";case J6.HEXAGON:return"hexagon";case J6.DEFAULT:return"defaultMindmapNode";case J6.NO_BORDER:default:return"rect"}},"getShapeFromType"),u={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,isGroup:!1,shape:o(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:s,cssStyles:[],look:"default",icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(r.push(u),t.children)for(const h of t.children)this.flattenNodes(h,r)}generateEdges(t,r){if(t.children)for(const a of t.children){let s="edge";a.section!==void 0&&(s+=` section-edge-${a.section}`);const o=t.level+1;s+=` edge-depth-${o}`;const u={id:`edge_${t.id}_${a.id}`,start:t.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:s,depth:t.level,section:a.section};r.push(u),this.generateEdges(a,r)}}getData(){const t=this.getMindmap(),r=nn(),s=Bii().layout!==void 0,o=r;if(s||(o.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:o};it.debug("getData: mindmapRoot",t,r),this.assignSections(t);const u=[],h=[];this.flattenNodes(t,u),this.generateEdges(t,h),it.debug(`getData: processed ${u.length} nodes and ${h.length} edges`);const f=new Map;for(const p of u)f.set(p.id,{shape:p.shape,width:p.width,height:p.height,padding:p.padding});return{nodes:u,edges:h,config:o,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(f),type:"mindmap",diagramId:"mindmap-"+ZXi()}}getLogger(){return it}},X(sj,"MindmapDB"),sj),tQi=X(async(e,t,r,a)=>{var f,p;it.debug(`Rendering mindmap diagram
`+e);const s=a.db,o=s.getData(),u=eK(t,o.config.securityLevel);o.type=a.type,o.layoutAlgorithm=hce(o.config.layout,{fallback:"cose-bilkent"}),o.diagramId=t,s.getMindmap()&&(o.nodes.forEach(m=>{m.shape==="rounded"?(m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15):m.shape==="circle"?m.padding=10:m.shape==="rect"&&(m.width=0,m.padding=10)}),await $W(o,u),U$(u,((f=o.config.mindmap)==null?void 0:f.padding)??Cc.mindmap.padding,"mindmapDiagram",((p=o.config.mindmap)==null?void 0:p.useMaxWidth)??Cc.mindmap.useMaxWidth))},"draw"),nQi={draw:tQi},rQi=X(e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],bv(e["lineColor"+r])?e["lineColor"+r]=Nr(e["lineColor"+r],20):e["lineColor"+r]=qr(e["lineColor"+r],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const a=""+(17-3*r);t+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path  {
      fill: ${e["cScale"+r]};
    }
    .section-${r-1} text {
     fill: ${e["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${e["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${a};
    }
    .section-${r-1} line {
      stroke: ${e["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }
    `}return t},"genSections"),iQi=X(e=>`
  .edge {
    stroke-width: 3;
  }
  ${rQi(e)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .section-root span {
    color: ${e.gitBranchLabel0};
  }
  .section-2 span {
    color: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .mindmap-node-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
`,"getStyles"),aQi=iQi,sQi={get db(){return new eQi},renderer:nQi,parser:JXi,styles:aQi};const oQi=Object.freeze(Object.defineProperty({__proto__:null,diagram:sQi},Symbol.toStringTag,{value:"Module"}));var Put=function(){var e=X(function(F,U,$,G){for($=$||{},G=F.length;G--;$[F[G]]=U);return $},"o"),t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,31],S=[6,7,11,24],C=[1,6,13,16,17,20,23],A=[1,35],k=[1,36],I=[1,6,7,11,13,16,17,20,23],N=[1,38],L={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:X(function(U,$,G,B,Z,z,Y){var W=z.length-1;switch(Z){case 6:case 7:return B;case 8:B.getLogger().trace("Stop NL ");break;case 9:B.getLogger().trace("Stop EOF ");break;case 11:B.getLogger().trace("Stop NL2 ");break;case 12:B.getLogger().trace("Stop EOF2 ");break;case 15:B.getLogger().info("Node: ",z[W-1].id),B.addNode(z[W-2].length,z[W-1].id,z[W-1].descr,z[W-1].type,z[W]);break;case 16:B.getLogger().info("Node: ",z[W].id),B.addNode(z[W-1].length,z[W].id,z[W].descr,z[W].type);break;case 17:B.getLogger().trace("Icon: ",z[W]),B.decorateNode({icon:z[W]});break;case 18:case 23:B.decorateNode({class:z[W]});break;case 19:B.getLogger().trace("SPACELIST");break;case 20:B.getLogger().trace("Node: ",z[W-1].id),B.addNode(0,z[W-1].id,z[W-1].descr,z[W-1].type,z[W]);break;case 21:B.getLogger().trace("Node: ",z[W].id),B.addNode(0,z[W].id,z[W].descr,z[W].type);break;case 22:B.decorateNode({icon:z[W]});break;case 27:B.getLogger().trace("node found ..",z[W-2]),this.$={id:z[W-1],descr:z[W-1],type:B.getType(z[W-2],z[W])};break;case 28:this.$={id:z[W],descr:z[W],type:0};break;case 29:B.getLogger().trace("node found ..",z[W-3]),this.$={id:z[W-3],descr:z[W-1],type:B.getType(z[W-2],z[W])};break;case 30:this.$=z[W-1]+z[W];break;case 31:this.$=z[W];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},{6:r,9:22,12:11,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},{6:p,7:m,10:23,11:b},e(_,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:h}),e(_,[2,19]),e(_,[2,21],{15:30,24:w}),e(_,[2,22]),e(_,[2,23]),e(S,[2,25]),e(S,[2,26]),e(S,[2,28],{20:[1,32]}),{21:[1,33]},{6:p,7:m,10:34,11:b},{1:[2,7],6:r,12:21,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},e(C,[2,14],{7:A,11:k}),e(I,[2,8]),e(I,[2,9]),e(I,[2,10]),e(_,[2,16],{15:37,24:w}),e(_,[2,17]),e(_,[2,18]),e(_,[2,20],{24:N}),e(S,[2,31]),{21:[1,39]},{22:[1,40]},e(C,[2,13],{7:A,11:k}),e(I,[2,11]),e(I,[2,12]),e(_,[2,15],{24:N}),e(S,[2,30]),{22:[1,41]},e(S,[2,27]),e(S,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:X(function(U,$){if($.recoverable)this.trace(U);else{var G=new Error(U);throw G.hash=$,G}},"parseError"),parse:X(function(U){var $=this,G=[0],B=[],Z=[null],z=[],Y=this.table,W="",Q=0,V=0,j=2,ee=1,te=z.slice.call(arguments,1),ne=Object.create(this.lexer),se={yy:{}};for(var ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(se.yy[ie]=this.yy[ie]);ne.setInput(U,se.yy),se.yy.lexer=ne,se.yy.parser=this,typeof ne.yylloc>"u"&&(ne.yylloc={});var ge=ne.yylloc;z.push(ge);var ce=ne.options&&ne.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(Oe){G.length=G.length-2*Oe,Z.length=Z.length-Oe,z.length=z.length-Oe}X(be,"popStack");function ve(){var Oe;return Oe=B.pop()||ne.lex()||ee,typeof Oe!="number"&&(Oe instanceof Array&&(B=Oe,Oe=B.pop()),Oe=$.symbols_[Oe]||Oe),Oe}X(ve,"lex");for(var De,ye,Ee,he,we={},Ce,Ie,Le,Fe;;){if(ye=G[G.length-1],this.defaultActions[ye]?Ee=this.defaultActions[ye]:((De===null||typeof De>"u")&&(De=ve()),Ee=Y[ye]&&Y[ye][De]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ve="";Fe=[];for(Ce in Y[ye])this.terminals_[Ce]&&Ce>j&&Fe.push("'"+this.terminals_[Ce]+"'");ne.showPosition?Ve="Parse error on line "+(Q+1)+`:
`+ne.showPosition()+`
Expecting `+Fe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":Ve="Parse error on line "+(Q+1)+": Unexpected "+(De==ee?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Ve,{text:ne.match,token:this.terminals_[De]||De,line:ne.yylineno,loc:ge,expected:Fe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+De);switch(Ee[0]){case 1:G.push(De),Z.push(ne.yytext),z.push(ne.yylloc),G.push(Ee[1]),De=null,V=ne.yyleng,W=ne.yytext,Q=ne.yylineno,ge=ne.yylloc;break;case 2:if(Ie=this.productions_[Ee[1]][1],we.$=Z[Z.length-Ie],we._$={first_line:z[z.length-(Ie||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(Ie||1)].first_column,last_column:z[z.length-1].last_column},ce&&(we._$.range=[z[z.length-(Ie||1)].range[0],z[z.length-1].range[1]]),he=this.performAction.apply(we,[W,V,Q,se.yy,Ee[1],Z,z].concat(te)),typeof he<"u")return he;Ie&&(G=G.slice(0,-1*Ie*2),Z=Z.slice(0,-1*Ie),z=z.slice(0,-1*Ie)),G.push(this.productions_[Ee[1]][0]),Z.push(we.$),z.push(we._$),Le=Y[G[G.length-2]][G[G.length-1]],G.push(Le);break;case 3:return!0}}return!0},"parse")},P=function(){var F={EOF:1,parseError:X(function($,G){if(this.yy.parser)this.yy.parser.parseError($,G);else throw new Error($)},"parseError"),setInput:X(function(U,$){return this.yy=$||this.yy||{},this._input=U,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},"setInput"),input:X(function(){var U=this._input[0];this.yytext+=U,this.yyleng++,this.offset++,this.match+=U,this.matched+=U;var $=U.match(/(?:\r\n?|\n).*/g);return $?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),U},"input"),unput:X(function(U){var $=U.length,G=U.split(/(?:\r\n?|\n)/g);this._input=U+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$),this.offset-=$;var B=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),G.length-1&&(this.yylineno-=G.length-1);var Z=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:G?(G.length===B.length?this.yylloc.first_column:0)+B[B.length-G.length].length-G[0].length:this.yylloc.first_column-$},this.options.ranges&&(this.yylloc.range=[Z[0],Z[0]+this.yyleng-$]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(U){this.unput(this.match.slice(U))},"less"),pastInput:X(function(){var U=this.matched.substr(0,this.matched.length-this.match.length);return(U.length>20?"...":"")+U.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var U=this.match;return U.length<20&&(U+=this._input.substr(0,20-U.length)),(U.substr(0,20)+(U.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var U=this.pastInput(),$=new Array(U.length+1).join("-");return U+this.upcomingInput()+`
`+$+"^"},"showPosition"),test_match:X(function(U,$){var G,B,Z;if(this.options.backtrack_lexer&&(Z={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&&(Z.yylloc.range=this.yylloc.range.slice(0))),B=U[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.matches=U,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(U[0].length),this.matched+=U[0],G=this.performAction.call(this,this.yy,this,$,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var z in Z)this[z]=Z[z];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var U,$,G,B;this._more||(this.yytext="",this.match="");for(var Z=this._currentRules(),z=0;z<Z.length;z++)if(G=this._input.match(this.rules[Z[z]]),G&&(!$||G[0].length>$[0].length)){if($=G,B=z,this.options.backtrack_lexer){if(U=this.test_match(G,Z[z]),U!==!1)return U;if(this._backtrack){$=!1;continue}else return!1}else if(!this.options.flex)break}return $?(U=this.test_match($,Z[B]),U!==!1?U:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var $=this.next();return $||this.lex()},"lex"),begin:X(function($){this.conditionStack.push($)},"begin"),popState:X(function(){var $=this.conditionStack.length-1;return $>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function($){return $=this.conditionStack.length-1-Math.abs($||0),$>=0?this.conditionStack[$]:"INITIAL"},"topState"),pushState:X(function($){this.begin($)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function($,G,B,Z){switch(B){case 0:return this.pushState("shapeData"),G.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const z=/\n\s*/g;return G.yytext=G.yytext.replace(z,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return $.getLogger().trace("Found comment",G.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:$.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return $.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:$.getLogger().trace("end icon"),this.popState();break;case 16:return $.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return $.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return $.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return $.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:$.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return $.getLogger().trace("description:",G.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),$.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),$.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),$.getLogger().trace("node end ...",G.yytext),"NODE_DEND";case 36:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),$.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),$.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 41:return $.getLogger().trace("Long description:",G.yytext),21;case 42:return $.getLogger().trace("Long description:",G.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\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,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return F}();L.lexer=P;function M(){this.yy={}}return X(M,"Parser"),M.prototype=L,L.Parser=M,new M}();Put.parser=Put;var lQi=Put,Xx=[],abt=[],But=0,sbt={},cQi=X(()=>{Xx=[],abt=[],But=0,sbt={}},"clear"),uQi=X(e=>{if(Xx.length===0)return null;const t=Xx[0].level;let r=null;for(let a=Xx.length-1;a>=0;a--)if(Xx[a].level===t&&!r&&(r=Xx[a]),Xx[a].level<t)throw new Error('Items without section detected, found section ("'+Xx[a].label+'")');return e===(r==null?void 0:r.level)?null:r},"getSection"),LXn=X(function(){return abt},"getSections"),hQi=X(function(){const e=[],t=[],r=LXn(),a=nn();for(const s of r){const o={id:s.id,label:Ic(s.label??"",a),isGroup:!0,ticket:s.ticket,shape:"kanbanSection",level:s.level,look:a.look};t.push(o);const u=Xx.filter(h=>h.parentId===s.id);for(const h of u){const f={id:h.id,parentId:s.id,label:Ic(h.label??"",a),isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(f)}}return{nodes:t,edges:e,other:{},config:nn()}},"getData"),dQi=X((e,t,r,a,s)=>{var p,m;const o=nn();let u=((p=o.mindmap)==null?void 0:p.padding)??Cc.mindmap.padding;switch(a){case Ep.ROUNDED_RECT:case Ep.RECT:case Ep.HEXAGON:u*=2}const h={id:Ic(t,o)||"kbn"+But++,level:e,label:Ic(r,o),width:((m=o.mindmap)==null?void 0:m.maxNodeWidth)??Cc.mindmap.maxNodeWidth,padding:u,isGroup:!1};if(s!==void 0){let b;s.includes(`
`)?b=s+`
`:b=`{
`+s+`
}`;const _=fAe(b,{schema:dAe});if(_.shape&&(_.shape!==_.shape.toLowerCase()||_.shape.includes("_")))throw new Error(`No such shape: ${_.shape}. Shape names should be lowercase.`);_!=null&&_.shape&&_.shape==="kanbanItem"&&(h.shape=_==null?void 0:_.shape),_!=null&&_.label&&(h.label=_==null?void 0:_.label),_!=null&&_.icon&&(h.icon=_==null?void 0:_.icon.toString()),_!=null&&_.assigned&&(h.assigned=_==null?void 0:_.assigned.toString()),_!=null&&_.ticket&&(h.ticket=_==null?void 0:_.ticket.toString()),_!=null&&_.priority&&(h.priority=_==null?void 0:_.priority)}const f=uQi(e);f?h.parentId=f.id||"kbn"+But++:abt.push(h),Xx.push(h)},"addNode"),Ep={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},fQi=X((e,t)=>{switch(it.debug("In get type",e,t),e){case"[":return Ep.RECT;case"(":return t===")"?Ep.ROUNDED_RECT:Ep.CLOUD;case"((":return Ep.CIRCLE;case")":return Ep.CLOUD;case"))":return Ep.BANG;case"{{":return Ep.HEXAGON;default:return Ep.DEFAULT}},"getType"),pQi=X((e,t)=>{sbt[e]=t},"setElementForId"),gQi=X(e=>{if(!e)return;const t=nn(),r=Xx[Xx.length-1];e.icon&&(r.icon=Ic(e.icon,t)),e.class&&(r.cssClasses=Ic(e.class,t))},"decorateNode"),mQi=X(e=>{switch(e){case Ep.DEFAULT:return"no-border";case Ep.RECT:return"rect";case Ep.ROUNDED_RECT:return"rounded-rect";case Ep.CIRCLE:return"circle";case Ep.CLOUD:return"cloud";case Ep.BANG:return"bang";case Ep.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),bQi=X(()=>it,"getLogger"),yQi=X(e=>sbt[e],"getElementById"),vQi={clear:cQi,addNode:dQi,getSections:LXn,getData:hQi,nodeType:Ep,getType:fQi,setElementForId:pQi,decorateNode:gQi,type2Str:mQi,getLogger:bQi,getElementById:yQi},_Qi=vQi,wQi=X(async(e,t,r,a)=>{var A,k,I,N,L;it.debug(`Rendering kanban diagram
`+e);const o=a.db.getData(),u=nn();u.htmlLabels=!1;const h=bR(t),f=h.append("g");f.attr("class","sections");const p=h.append("g");p.attr("class","items");const m=o.nodes.filter(P=>P.isGroup);let b=0;const _=10,w=[];let S=25;for(const P of m){const M=((A=u==null?void 0:u.kanban)==null?void 0:A.sectionWidth)||200;b=b+1,P.x=M*b+(b-1)*_/2,P.width=M,P.y=0,P.height=M*3,P.rx=5,P.ry=5,P.cssClasses=P.cssClasses+" section-"+b;const F=await ept(f,P);S=Math.max(S,(k=F==null?void 0:F.labelBBox)==null?void 0:k.height),w.push(F)}let C=0;for(const P of m){const M=w[C];C=C+1;const F=((I=u==null?void 0:u.kanban)==null?void 0:I.sectionWidth)||200,U=-F*3/2+S;let $=U;const G=o.nodes.filter(z=>z.parentId===P.id);for(const z of G){if(z.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");z.x=P.x,z.width=F-1.5*_;const W=(await NAe(p,z,{config:u})).node().getBBox();z.y=$+W.height/2,await olt(z),$=z.y+W.height/2+_/2}const B=M.cluster.select("rect"),Z=Math.max($-U+3*_,50)+(S-25);B.attr("height",Z)}rce(void 0,h,((N=u.mindmap)==null?void 0:N.padding)??Cc.kanban.padding,((L=u.mindmap)==null?void 0:L.useMaxWidth)??Cc.kanban.useMaxWidth)},"draw"),EQi={draw:wQi},xQi=X(e=>{let t="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)e["lineColor"+a]=e["lineColor"+a]||e["cScaleInv"+a],bv(e["lineColor"+a])?e["lineColor"+a]=Nr(e["lineColor"+a],20):e["lineColor"+a]=qr(e["lineColor"+a],20);const r=X((a,s)=>e.darkMode?qr(a,s):Nr(a,s),"adjuster");for(let a=0;a<e.THEME_COLOR_LIMIT;a++){const s=""+(17-3*a);t+=`
    .section-${a-1} rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path  {
      fill: ${r(e["cScale"+a],10)};
      stroke: ${r(e["cScale"+a],10)};

    }
    .section-${a-1} text {
     fill: ${e["cScaleLabel"+a]};
    }
    .node-icon-${a-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+a]};
    }
    .section-edge-${a-1}{
      stroke: ${e["cScale"+a]};
    }
    .edge-depth-${a-1}{
      stroke-width: ${s};
    }
    .section-${a-1} line {
      stroke: ${e["cScaleInv"+a]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.background};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .kanban-ticket-link {
    fill: ${e.background};
    stroke: ${e.nodeBorder};
    text-decoration: underline;
  }
    `}return t},"genSections"),SQi=X(e=>`
  .edge {
    stroke-width: 3;
  }
  ${xQi(e)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .cluster-label, .label {
    color: ${e.textColor};
    fill: ${e.textColor};
    }
  .kanban-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
    ${Lce()}
`,"getStyles"),TQi=SQi,CQi={db:_Qi,renderer:EQi,parser:lQi,styles:TQi};const AQi=Object.freeze(Object.defineProperty({__proto__:null,diagram:CQi},Symbol.toStringTag,{value:"Module"}));function ATn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}return r}function DXn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}return r}function rat(e,t){let r=0;if(t===void 0)for(let a of e)(a=+a)&&(r+=a);else{let a=-1;for(let s of e)(s=+t(s,++a,e))&&(r+=s)}return r}function kQi(e){return e.target.depth}function MXn(e){return e.depth}function PXn(e,t){return t-1-e.height}function obt(e,t){return e.sourceLinks.length?e.depth:t-1}function BXn(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?DXn(e.sourceLinks,kQi)-1:0}function fEe(e){return function(){return e}}function kTn(e,t){return BTe(e.source,t.source)||e.index-t.index}function RTn(e,t){return BTe(e.target,t.target)||e.index-t.index}function BTe(e,t){return e.y0-t.y0}function iat(e){return e.value}function RQi(e){return e.index}function IQi(e){return e.nodes}function NQi(e){return e.links}function ITn(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function NTn({nodes:e}){for(const t of e){let r=t.y0,a=r;for(const s of t.sourceLinks)s.y0=r+s.width/2,r+=s.width;for(const s of t.targetLinks)s.y1=a+s.width/2,a+=s.width}}function FXn(){let e=0,t=0,r=1,a=1,s=24,o=8,u,h=RQi,f=obt,p,m,b=IQi,_=NQi,w=6;function S(){const W={nodes:b.apply(null,arguments),links:_.apply(null,arguments)};return C(W),A(W),k(W),I(W),P(W),NTn(W),W}S.update=function(W){return NTn(W),W},S.nodeId=function(W){return arguments.length?(h=typeof W=="function"?W:fEe(W),S):h},S.nodeAlign=function(W){return arguments.length?(f=typeof W=="function"?W:fEe(W),S):f},S.nodeSort=function(W){return arguments.length?(p=W,S):p},S.nodeWidth=function(W){return arguments.length?(s=+W,S):s},S.nodePadding=function(W){return arguments.length?(o=u=+W,S):o},S.nodes=function(W){return arguments.length?(b=typeof W=="function"?W:fEe(W),S):b},S.links=function(W){return arguments.length?(_=typeof W=="function"?W:fEe(W),S):_},S.linkSort=function(W){return arguments.length?(m=W,S):m},S.size=function(W){return arguments.length?(e=t=0,r=+W[0],a=+W[1],S):[r-e,a-t]},S.extent=function(W){return arguments.length?(e=+W[0][0],r=+W[1][0],t=+W[0][1],a=+W[1][1],S):[[e,t],[r,a]]},S.iterations=function(W){return arguments.length?(w=+W,S):w};function C({nodes:W,links:Q}){for(const[j,ee]of W.entries())ee.index=j,ee.sourceLinks=[],ee.targetLinks=[];const V=new Map(W.map((j,ee)=>[h(j,ee,W),j]));for(const[j,ee]of Q.entries()){ee.index=j;let{source:te,target:ne}=ee;typeof te!="object"&&(te=ee.source=ITn(V,te)),typeof ne!="object"&&(ne=ee.target=ITn(V,ne)),te.sourceLinks.push(ee),ne.targetLinks.push(ee)}if(m!=null)for(const{sourceLinks:j,targetLinks:ee}of W)j.sort(m),ee.sort(m)}function A({nodes:W}){for(const Q of W)Q.value=Q.fixedValue===void 0?Math.max(rat(Q.sourceLinks,iat),rat(Q.targetLinks,iat)):Q.fixedValue}function k({nodes:W}){const Q=W.length;let V=new Set(W),j=new Set,ee=0;for(;V.size;){for(const te of V){te.depth=ee;for(const{target:ne}of te.sourceLinks)j.add(ne)}if(++ee>Q)throw new Error("circular link");V=j,j=new Set}}function I({nodes:W}){const Q=W.length;let V=new Set(W),j=new Set,ee=0;for(;V.size;){for(const te of V){te.height=ee;for(const{source:ne}of te.targetLinks)j.add(ne)}if(++ee>Q)throw new Error("circular link");V=j,j=new Set}}function N({nodes:W}){const Q=ATn(W,ee=>ee.depth)+1,V=(r-e-s)/(Q-1),j=new Array(Q);for(const ee of W){const te=Math.max(0,Math.min(Q-1,Math.floor(f.call(null,ee,Q))));ee.layer=te,ee.x0=e+te*V,ee.x1=ee.x0+s,j[te]?j[te].push(ee):j[te]=[ee]}if(p)for(const ee of j)ee.sort(p);return j}function L(W){const Q=DXn(W,V=>(a-t-(V.length-1)*u)/rat(V,iat));for(const V of W){let j=t;for(const ee of V){ee.y0=j,ee.y1=j+ee.value*Q,j=ee.y1+u;for(const te of ee.sourceLinks)te.width=te.value*Q}j=(a-j+u)/(V.length+1);for(let ee=0;ee<V.length;++ee){const te=V[ee];te.y0+=j*(ee+1),te.y1+=j*(ee+1)}Z(V)}}function P(W){const Q=N(W);u=Math.min(o,(a-t)/(ATn(Q,V=>V.length)-1)),L(Q);for(let V=0;V<w;++V){const j=Math.pow(.99,V),ee=Math.max(1-j,(V+1)/w);F(Q,j,ee),M(Q,j,ee)}}function M(W,Q,V){for(let j=1,ee=W.length;j<ee;++j){const te=W[j];for(const ne of te){let se=0,ie=0;for(const{source:ce,value:be}of ne.targetLinks){let ve=be*(ne.layer-ce.layer);se+=z(ce,ne)*ve,ie+=ve}if(!(ie>0))continue;let ge=(se/ie-ne.y0)*Q;ne.y0+=ge,ne.y1+=ge,B(ne)}p===void 0&&te.sort(BTe),U(te,V)}}function F(W,Q,V){for(let j=W.length,ee=j-2;ee>=0;--ee){const te=W[ee];for(const ne of te){let se=0,ie=0;for(const{target:ce,value:be}of ne.sourceLinks){let ve=be*(ce.layer-ne.layer);se+=Y(ne,ce)*ve,ie+=ve}if(!(ie>0))continue;let ge=(se/ie-ne.y0)*Q;ne.y0+=ge,ne.y1+=ge,B(ne)}p===void 0&&te.sort(BTe),U(te,V)}}function U(W,Q){const V=W.length>>1,j=W[V];G(W,j.y0-u,V-1,Q),$(W,j.y1+u,V+1,Q),G(W,a,W.length-1,Q),$(W,t,0,Q)}function $(W,Q,V,j){for(;V<W.length;++V){const ee=W[V],te=(Q-ee.y0)*j;te>1e-6&&(ee.y0+=te,ee.y1+=te),Q=ee.y1+u}}function G(W,Q,V,j){for(;V>=0;--V){const ee=W[V],te=(ee.y1-Q)*j;te>1e-6&&(ee.y0-=te,ee.y1-=te),Q=ee.y0-u}}function B({sourceLinks:W,targetLinks:Q}){if(m===void 0){for(const{source:{sourceLinks:V}}of Q)V.sort(RTn);for(const{target:{targetLinks:V}}of W)V.sort(kTn)}}function Z(W){if(m===void 0)for(const{sourceLinks:Q,targetLinks:V}of W)Q.sort(RTn),V.sort(kTn)}function z(W,Q){let V=W.y0-(W.sourceLinks.length-1)*u/2;for(const{target:j,width:ee}of W.sourceLinks){if(j===Q)break;V+=ee+u}for(const{source:j,width:ee}of Q.targetLinks){if(j===W)break;V-=ee}return V}function Y(W,Q){let V=Q.y0-(Q.targetLinks.length-1)*u/2;for(const{source:j,width:ee}of Q.targetLinks){if(j===W)break;V+=ee+u}for(const{target:j,width:ee}of W.sourceLinks){if(j===Q)break;V-=ee}return V}return S}var Fut=Math.PI,$ut=2*Fut,LB=1e-6,OQi=$ut-LB;function Uut(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function $Xn(){return new Uut}Uut.prototype=$Xn.prototype={constructor:Uut,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,a){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(e,t,r,a,s,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +a+","+(this._x1=+s)+","+(this._y1=+o)},arcTo:function(e,t,r,a,s){e=+e,t=+t,r=+r,a=+a,s=+s;var o=this._x1,u=this._y1,h=r-e,f=a-t,p=o-e,m=u-t,b=p*p+m*m;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(b>LB)if(!(Math.abs(m*h-f*p)>LB)||!s)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var _=r-o,w=a-u,S=h*h+f*f,C=_*_+w*w,A=Math.sqrt(S),k=Math.sqrt(b),I=s*Math.tan((Fut-Math.acos((S+b-C)/(2*A*k)))/2),N=I/k,L=I/A;Math.abs(N-1)>LB&&(this._+="L"+(e+N*p)+","+(t+N*m)),this._+="A"+s+","+s+",0,0,"+ +(m*_>p*w)+","+(this._x1=e+L*h)+","+(this._y1=t+L*f)}},arc:function(e,t,r,a,s,o){e=+e,t=+t,r=+r,o=!!o;var u=r*Math.cos(a),h=r*Math.sin(a),f=e+u,p=t+h,m=1^o,b=o?a-s:s-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+f+","+p:(Math.abs(this._x1-f)>LB||Math.abs(this._y1-p)>LB)&&(this._+="L"+f+","+p),r&&(b<0&&(b=b%$ut+$ut),b>OQi?this._+="A"+r+","+r+",0,1,"+m+","+(e-u)+","+(t-h)+"A"+r+","+r+",0,1,"+m+","+(this._x1=f)+","+(this._y1=p):b>LB&&(this._+="A"+r+","+r+",0,"+ +(b>=Fut)+","+m+","+(this._x1=e+r*Math.cos(s))+","+(this._y1=t+r*Math.sin(s))))},rect:function(e,t,r,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function OTn(e){return function(){return e}}function LQi(e){return e[0]}function DQi(e){return e[1]}var MQi=Array.prototype.slice;function PQi(e){return e.source}function BQi(e){return e.target}function FQi(e){var t=PQi,r=BQi,a=LQi,s=DQi,o=null;function u(){var h,f=MQi.call(arguments),p=t.apply(this,f),m=r.apply(this,f);if(o||(o=h=$Xn()),e(o,+a.apply(this,(f[0]=p,f)),+s.apply(this,f),+a.apply(this,(f[0]=m,f)),+s.apply(this,f)),h)return o=null,h+""||null}return u.source=function(h){return arguments.length?(t=h,u):t},u.target=function(h){return arguments.length?(r=h,u):r},u.x=function(h){return arguments.length?(a=typeof h=="function"?h:OTn(+h),u):a},u.y=function(h){return arguments.length?(s=typeof h=="function"?h:OTn(+h),u):s},u.context=function(h){return arguments.length?(o=h??null,u):o},u}function $Qi(e,t,r,a,s){e.moveTo(t,r),e.bezierCurveTo(t=(t+a)/2,r,t,s,a,s)}function UQi(){return FQi($Qi)}function zQi(e){return[e.source.x1,e.y0]}function GQi(e){return[e.target.x0,e.y1]}function UXn(){return UQi().source(zQi).target(GQi)}var zut=function(){var e=X(function(h,f,p,m){for(p=p||{},m=h.length;m--;p[h[m]]=f);return p},"o"),t=[1,9],r=[1,10],a=[1,5,10,12],s={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:X(function(f,p,m,b,_,w,S){var C=w.length-1;switch(_){case 7:const A=b.findOrCreateNode(w[C-4].trim().replaceAll('""','"')),k=b.findOrCreateNode(w[C-2].trim().replaceAll('""','"')),I=parseFloat(w[C].trim());b.addLink(A,k,I);break;case 8:case 9:case 11:this.$=w[C];break;case 10:this.$=w[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:X(function(f,p){if(p.recoverable)this.trace(f);else{var m=new Error(f);throw m.hash=p,m}},"parseError"),parse:X(function(f){var p=this,m=[0],b=[],_=[null],w=[],S=this.table,C="",A=0,k=0,I=2,N=1,L=w.slice.call(arguments,1),P=Object.create(this.lexer),M={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(M.yy[F]=this.yy[F]);P.setInput(f,M.yy),M.yy.lexer=P,M.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var U=P.yylloc;w.push(U);var $=P.options&&P.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(se){m.length=m.length-2*se,_.length=_.length-se,w.length=w.length-se}X(G,"popStack");function B(){var se;return se=b.pop()||P.lex()||N,typeof se!="number"&&(se instanceof Array&&(b=se,se=b.pop()),se=p.symbols_[se]||se),se}X(B,"lex");for(var Z,z,Y,W,Q={},V,j,ee,te;;){if(z=m[m.length-1],this.defaultActions[z]?Y=this.defaultActions[z]:((Z===null||typeof Z>"u")&&(Z=B()),Y=S[z]&&S[z][Z]),typeof Y>"u"||!Y.length||!Y[0]){var ne="";te=[];for(V in S[z])this.terminals_[V]&&V>I&&te.push("'"+this.terminals_[V]+"'");P.showPosition?ne="Parse error on line "+(A+1)+`:
`+P.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":ne="Parse error on line "+(A+1)+": Unexpected "+(Z==N?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(ne,{text:P.match,token:this.terminals_[Z]||Z,line:P.yylineno,loc:U,expected:te})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+Z);switch(Y[0]){case 1:m.push(Z),_.push(P.yytext),w.push(P.yylloc),m.push(Y[1]),Z=null,k=P.yyleng,C=P.yytext,A=P.yylineno,U=P.yylloc;break;case 2:if(j=this.productions_[Y[1]][1],Q.$=_[_.length-j],Q._$={first_line:w[w.length-(j||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(j||1)].first_column,last_column:w[w.length-1].last_column},$&&(Q._$.range=[w[w.length-(j||1)].range[0],w[w.length-1].range[1]]),W=this.performAction.apply(Q,[C,k,A,M.yy,Y[1],_,w].concat(L)),typeof W<"u")return W;j&&(m=m.slice(0,-1*j*2),_=_.slice(0,-1*j),w=w.slice(0,-1*j)),m.push(this.productions_[Y[1]][0]),_.push(Q.$),w.push(Q._$),ee=S[m[m.length-2]][m[m.length-1]],m.push(ee);break;case 3:return!0}}return!0},"parse")},o=function(){var h={EOF:1,parseError:X(function(p,m){if(this.yy.parser)this.yy.parser.parseError(p,m);else throw new Error(p)},"parseError"),setInput:X(function(f,p){return this.yy=p||this.yy||{},this._input=f,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},"setInput"),input:X(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:X(function(f){var p=f.length,m=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var b=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),m.length-1&&(this.yylineno-=m.length-1);var _=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:m?(m.length===b.length?this.yylloc.first_column:0)+b[b.length-m.length].length-m[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(f){this.unput(this.match.slice(f))},"less"),pastInput:X(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
`+p+"^"},"showPosition"),test_match:X(function(f,p){var m,b,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),b=f[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,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(f[0].length),this.matched+=f[0],m=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var w in _)this[w]=_[w];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,m,b;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),w=0;w<_.length;w++)if(m=this._input.match(this.rules[_[w]]),m&&(!p||m[0].length>p[0].length)){if(p=m,b=w,this.options.backtrack_lexer){if(f=this.test_match(m,_[w]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,_[b]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var p=this.next();return p||this.lex()},"lex"),begin:X(function(p){this.conditionStack.push(p)},"begin"),popState:X(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:X(function(p){this.begin(p)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(p,m,b,_){switch(b){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return h}();s.lexer=o;function u(){this.yy={}}return X(u,"Parser"),u.prototype=s,s.Parser=u,new u}();zut.parser=zut;var FTe=zut,n6e=[],r6e=[],$Te=new Map,qQi=X(()=>{n6e=[],r6e=[],$Te=new Map,M1()},"clear"),oj,HQi=(oj=class{constructor(t,r,a=0){this.source=t,this.target=r,this.value=a}},X(oj,"SankeyLink"),oj),VQi=X((e,t,r)=>{n6e.push(new HQi(e,t,r))},"addLink"),lj,YQi=(lj=class{constructor(t){this.ID=t}},X(lj,"SankeyNode"),lj),jQi=X(e=>{e=Ti.sanitizeText(e,nn());let t=$Te.get(e);return t===void 0&&(t=new YQi(e),$Te.set(e,t),r6e.push(t)),t},"findOrCreateNode"),WQi=X(()=>r6e,"getNodes"),KQi=X(()=>n6e,"getLinks"),XQi=X(()=>({nodes:r6e.map(e=>({id:e.ID})),links:n6e.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),QQi={nodesMap:$Te,getConfig:X(()=>nn().sankey,"getConfig"),getNodes:WQi,getLinks:KQi,getGraph:XQi,addLink:VQi,findOrCreateNode:jQi,getAccTitle:Mp,setAccTitle:N1,getAccDescription:Bp,setAccDescription:Pp,getDiagramTitle:P1,setDiagramTitle:Og,clear:qQi},M7,LTn=(M7=class{static next(t){return new M7(t+ ++M7.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},X(M7,"Uid"),M7.count=0,M7),ZQi={left:MXn,right:PXn,center:BXn,justify:obt},JQi=X(function(e,t,r,a){const{securityLevel:s,sankey:o}=nn(),u=SLn.sankey;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=(o==null?void 0:o.width)??u.width,b=(o==null?void 0:o.height)??u.width,_=(o==null?void 0:o.useMaxWidth)??u.useMaxWidth,w=(o==null?void 0:o.nodeAlignment)??u.nodeAlignment,S=(o==null?void 0:o.prefix)??u.prefix,C=(o==null?void 0:o.suffix)??u.suffix,A=(o==null?void 0:o.showValues)??u.showValues,k=a.db.getGraph(),I=ZQi[w];FXn().nodeId(G=>G.id).nodeWidth(10).nodePadding(10+(A?15:0)).nodeAlign(I).extent([[0,0],[m,b]])(k);const P=cA(o1t);p.append("g").attr("class","nodes").selectAll(".node").data(k.nodes).join("g").attr("class","node").attr("id",G=>(G.uid=LTn.next("node-")).id).attr("transform",function(G){return"translate("+G.x0+","+G.y0+")"}).attr("x",G=>G.x0).attr("y",G=>G.y0).append("rect").attr("height",G=>G.y1-G.y0).attr("width",G=>G.x1-G.x0).attr("fill",G=>P(G.id));const M=X(({id:G,value:B})=>A?`${G}
${S}${Math.round(B*100)/100}${C}`:G,"getText");p.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(k.nodes).join("text").attr("x",G=>G.x0<m/2?G.x1+6:G.x0-6).attr("y",G=>(G.y1+G.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",G=>G.x0<m/2?"start":"end").text(M);const F=p.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(k.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),U=(o==null?void 0:o.linkColor)??"gradient";if(U==="gradient"){const G=F.append("linearGradient").attr("id",B=>(B.uid=LTn.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",B=>B.source.x1).attr("x2",B=>B.target.x0);G.append("stop").attr("offset","0%").attr("stop-color",B=>P(B.source.id)),G.append("stop").attr("offset","100%").attr("stop-color",B=>P(B.target.id))}let $;switch(U){case"gradient":$=X(G=>G.uid,"coloring");break;case"source":$=X(G=>P(G.source.id),"coloring");break;case"target":$=X(G=>P(G.target.id),"coloring");break;default:$=U}F.append("path").attr("d",UXn()).attr("stroke",$).attr("stroke-width",G=>Math.max(1,G.width)),rce(void 0,p,0,_)},"draw"),eZi={draw:JQi},tZi=X(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),"prepareTextForParsing"),nZi=X(e=>`.label {
      font-family: ${e.fontFamily};
    }`,"getStyles"),rZi=nZi,iZi=FTe.parse.bind(FTe);FTe.parse=e=>iZi(tZi(e));var aZi={styles:rZi,parser:FTe,db:QQi,renderer:eZi};const sZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:aZi},Symbol.toStringTag,{value:"Module"}));var oZi=Cc.packet,cj,zXn=(cj=class{constructor(){this.packet=[],this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp}getConfig(){const t=cv({...oZi,...$c().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){M1(),this.packet=[]}},X(cj,"PacketDB"),cj),lZi=1e4,cZi=X((e,t)=>{z$(e,t);let r=-1,a=[],s=1;const{bitsPerRow:o}=t.getConfig();for(let{start:u,end:h,bits:f,label:p}of e.blocks){if(u!==void 0&&h!==void 0&&h<u)throw new Error(`Packet block ${u} - ${h} is invalid. End must be greater than start.`);if(u??(u=r+1),u!==r+1)throw new Error(`Packet block ${u} - ${h??u} is not contiguous. It should start from ${r+1}.`);if(f===0)throw new Error(`Packet block ${u} is invalid. Cannot have a zero bit field.`);for(h??(h=u+(f??1)-1),f??(f=h-u+1),r=h,it.debug(`Packet block ${u} - ${r} with label ${p}`);a.length<=o+1&&t.getPacket().length<lZi;){const[m,b]=uZi({start:u,end:h,bits:f,label:p},s,o);if(a.push(m),m.end+1===s*o&&(t.pushWord(a),a=[],s++),!b)break;({start:u,end:h,bits:f,label:p}=b)}}t.pushWord(a)},"populate"),uZi=X((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const a=t*r-1,s=t*r;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:s,end:e.end,label:e.label,bits:e.end-s}]},"getNextFittingBlock"),GXn={parser:{yy:void 0},parse:X(async e=>{var a;const t=await iL("packet",e),r=(a=GXn.parser)==null?void 0:a.yy;if(!(r instanceof zXn))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");it.debug(t),cZi(t,r)},"parse")},hZi=X((e,t,r,a)=>{const s=a.db,o=s.getConfig(),{rowHeight:u,paddingY:h,bitWidth:f,bitsPerRow:p}=o,m=s.getPacket(),b=s.getDiagramTitle(),_=u+h,w=_*(m.length+1)-(b?0:u),S=f*p+2,C=bR(t);C.attr("viewbox",`0 0 ${S} ${w}`),yv(C,w,S,o.useMaxWidth);for(const[A,k]of m.entries())dZi(C,k,A,o);C.append("text").text(b).attr("x",S/2).attr("y",w-_/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),dZi=X((e,t,r,{rowHeight:a,paddingX:s,paddingY:o,bitWidth:u,bitsPerRow:h,showBits:f})=>{const p=e.append("g"),m=r*(a+o)+o;for(const b of t){const _=b.start%h*u+1,w=(b.end-b.start+1)*u-s;if(p.append("rect").attr("x",_).attr("y",m).attr("width",w).attr("height",a).attr("class","packetBlock"),p.append("text").attr("x",_+w/2).attr("y",m+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(b.label),!f)continue;const S=b.end===b.start,C=m-2;p.append("text").attr("x",_+(S?w/2:0)).attr("y",C).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",S?"middle":"start").text(b.start),S||p.append("text").attr("x",_+w).attr("y",C).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(b.end)}},"drawWord"),fZi={draw:hZi},pZi={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},gZi=X(({packet:e}={})=>{const t=cv(pZi,e);return`
	.packetByte {
		font-size: ${t.byteFontSize};
	}
	.packetByte.start {
		fill: ${t.startByteColor};
	}
	.packetByte.end {
		fill: ${t.endByteColor};
	}
	.packetLabel {
		fill: ${t.labelColor};
		font-size: ${t.labelFontSize};
	}
	.packetTitle {
		fill: ${t.titleColor};
		font-size: ${t.titleFontSize};
	}
	.packetBlock {
		stroke: ${t.blockStrokeColor};
		stroke-width: ${t.blockStrokeWidth};
		fill: ${t.blockFillColor};
	}
	`},"styles"),mZi={parser:GXn,get db(){return new zXn},renderer:fZi,styles:gZi};const bZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:mZi},Symbol.toStringTag,{value:"Module"}));var vV={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},qXn={axes:[],curves:[],options:vV},Q$=structuredClone(qXn),yZi=Cc.radar,vZi=X(()=>cv({...yZi,...$c().radar}),"getConfig"),HXn=X(()=>Q$.axes,"getAxes"),_Zi=X(()=>Q$.curves,"getCurves"),wZi=X(()=>Q$.options,"getOptions"),EZi=X(e=>{Q$.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),xZi=X(e=>{Q$.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:SZi(t.entries)}))},"setCurves"),SZi=X(e=>{if(e[0].axis==null)return e.map(r=>r.value);const t=HXn();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(r=>{const a=e.find(s=>{var o;return((o=s.axis)==null?void 0:o.$refText)===r.name});if(a===void 0)throw new Error("Missing entry for axis "+r.label);return a.value})},"computeCurveEntries"),TZi=X(e=>{var r,a,s,o,u;const t=e.reduce((h,f)=>(h[f.name]=f,h),{});Q$.options={showLegend:((r=t.showLegend)==null?void 0:r.value)??vV.showLegend,ticks:((a=t.ticks)==null?void 0:a.value)??vV.ticks,max:((s=t.max)==null?void 0:s.value)??vV.max,min:((o=t.min)==null?void 0:o.value)??vV.min,graticule:((u=t.graticule)==null?void 0:u.value)??vV.graticule}},"setOptions"),CZi=X(()=>{M1(),Q$=structuredClone(qXn)},"clear"),Mae={getAxes:HXn,getCurves:_Zi,getOptions:wZi,setAxes:EZi,setCurves:xZi,setOptions:TZi,getConfig:vZi,clear:CZi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp},AZi=X(e=>{z$(e,Mae);const{axes:t,curves:r,options:a}=e;Mae.setAxes(t),Mae.setCurves(r),Mae.setOptions(a)},"populate"),kZi={parse:X(async e=>{const t=await iL("radar",e);it.debug(t),AZi(t)},"parse")},RZi=X((e,t,r,a)=>{const s=a.db,o=s.getAxes(),u=s.getCurves(),h=s.getOptions(),f=s.getConfig(),p=s.getDiagramTitle(),m=bR(t),b=IZi(m,f),_=h.max??Math.max(...u.map(C=>Math.max(...C.entries))),w=h.min,S=Math.min(f.width,f.height)/2;NZi(b,o,S,h.ticks,h.graticule),OZi(b,o,S,f),VXn(b,o,u,w,_,h.graticule,f),WXn(b,u,h.showLegend,f),b.append("text").attr("class","radarTitle").text(p).attr("x",0).attr("y",-f.height/2-f.marginTop)},"draw"),IZi=X((e,t)=>{const r=t.width+t.marginLeft+t.marginRight,a=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return e.attr("viewbox",`0 0 ${r} ${a}`).attr("width",r).attr("height",a),e.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),NZi=X((e,t,r,a,s)=>{if(s==="circle")for(let o=0;o<a;o++){const u=r*(o+1)/a;e.append("circle").attr("r",u).attr("class","radarGraticule")}else if(s==="polygon"){const o=t.length;for(let u=0;u<a;u++){const h=r*(u+1)/a,f=t.map((p,m)=>{const b=2*m*Math.PI/o-Math.PI/2,_=h*Math.cos(b),w=h*Math.sin(b);return`${_},${w}`}).join(" ");e.append("polygon").attr("points",f).attr("class","radarGraticule")}}},"drawGraticule"),OZi=X((e,t,r,a)=>{const s=t.length;for(let o=0;o<s;o++){const u=t[o].label,h=2*o*Math.PI/s-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",r*a.axisScaleFactor*Math.cos(h)).attr("y2",r*a.axisScaleFactor*Math.sin(h)).attr("class","radarAxisLine"),e.append("text").text(u).attr("x",r*a.axisLabelFactor*Math.cos(h)).attr("y",r*a.axisLabelFactor*Math.sin(h)).attr("class","radarAxisLabel")}},"drawAxes");function VXn(e,t,r,a,s,o,u){const h=t.length,f=Math.min(u.width,u.height)/2;r.forEach((p,m)=>{if(p.entries.length!==h)return;const b=p.entries.map((_,w)=>{const S=2*Math.PI*w/h-Math.PI/2,C=YXn(_,a,s,f),A=C*Math.cos(S),k=C*Math.sin(S);return{x:A,y:k}});o==="circle"?e.append("path").attr("d",jXn(b,u.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&e.append("polygon").attr("points",b.map(_=>`${_.x},${_.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}X(VXn,"drawCurves");function YXn(e,t,r,a){const s=Math.min(Math.max(e,t),r);return a*(s-t)/(r-t)}X(YXn,"relativeRadius");function jXn(e,t){const r=e.length;let a=`M${e[0].x},${e[0].y}`;for(let s=0;s<r;s++){const o=e[(s-1+r)%r],u=e[s],h=e[(s+1)%r],f=e[(s+2)%r],p={x:u.x+(h.x-o.x)*t,y:u.y+(h.y-o.y)*t},m={x:h.x-(f.x-u.x)*t,y:h.y-(f.y-u.y)*t};a+=` C${p.x},${p.y} ${m.x},${m.y} ${h.x},${h.y}`}return`${a} Z`}X(jXn,"closedRoundCurve");function WXn(e,t,r,a){if(!r)return;const s=(a.width/2+a.marginRight)*3/4,o=-(a.height/2+a.marginTop)*3/4,u=20;t.forEach((h,f)=>{const p=e.append("g").attr("transform",`translate(${s}, ${o+f*u})`);p.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${f}`),p.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(h.label)})}X(WXn,"drawLegend");var LZi={draw:RZi},DZi=X((e,t)=>{let r="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++){const s=e[`cScale${a}`];r+=`
		.radarCurve-${a} {
			color: ${s};
			fill: ${s};
			fill-opacity: ${t.curveOpacity};
			stroke: ${s};
			stroke-width: ${t.curveStrokeWidth};
		}
		.radarLegendBox-${a} {
			fill: ${s};
			fill-opacity: ${t.curveOpacity};
			stroke: ${s};
		}
		`}return r},"genIndexStyles"),MZi=X(e=>{const t=JCe(),r=$c(),a=cv(t,r.themeVariables),s=cv(a.radar,e);return{themeVariables:a,radarOptions:s}},"buildRadarStyleOptions"),PZi=X(({radar:e}={})=>{const{themeVariables:t,radarOptions:r}=MZi(e);return`
	.radarTitle {
		font-size: ${t.fontSize};
		color: ${t.titleColor};
		dominant-baseline: hanging;
		text-anchor: middle;
	}
	.radarAxisLine {
		stroke: ${r.axisColor};
		stroke-width: ${r.axisStrokeWidth};
	}
	.radarAxisLabel {
		dominant-baseline: middle;
		text-anchor: middle;
		font-size: ${r.axisLabelFontSize}px;
		color: ${r.axisColor};
	}
	.radarGraticule {
		fill: ${r.graticuleColor};
		fill-opacity: ${r.graticuleOpacity};
		stroke: ${r.graticuleColor};
		stroke-width: ${r.graticuleStrokeWidth};
	}
	.radarLegendText {
		text-anchor: start;
		font-size: ${r.legendFontSize}px;
		dominant-baseline: hanging;
	}
	${DZi(t,r)}
	`},"styles"),BZi={parser:kZi,db:Mae,renderer:LZi,styles:PZi};const FZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:BZi},Symbol.toStringTag,{value:"Module"}));var Gut=function(){var e=X(function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},"o"),t=[1,15],r=[1,7],a=[1,13],s=[1,14],o=[1,19],u=[1,16],h=[1,17],f=[1,18],p=[8,30],m=[8,10,21,28,29,30,31,39,43,46],b=[1,23],_=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],C=[1,49],A={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:X(function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",$[B-1]),F.setHierarchy($[B-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",$[B]),typeof $[B].length=="number"?this.$=$[B]:this.$=[$[B]];break;case 13:F.getLogger().debug("Rule: statement #2: ",$[B-1]),this.$=[$[B-1]].concat($[B]);break;case 14:F.getLogger().debug("Rule: link: ",$[B],L),this.$={edgeTypeStr:$[B],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",$[B-3],$[B-1],$[B]),this.$={edgeTypeStr:$[B],label:$[B-1]};break;case 18:const Z=parseInt($[B]),z=F.generateId();this.$={id:z,type:"space",label:"",width:Z,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",$[B-2],$[B-1],$[B]," typestr: ",$[B-1].edgeTypeStr);const Y=F.edgeStrToEdgeData($[B-1].edgeTypeStr);this.$=[{id:$[B-2].id,label:$[B-2].label,type:$[B-2].type,directions:$[B-2].directions},{id:$[B-2].id+"-"+$[B].id,start:$[B-2].id,end:$[B].id,label:$[B-1].label,type:"edge",directions:$[B].directions,arrowTypeEnd:Y,arrowTypeStart:"arrow_open"},{id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",$[B-1],$[B]),this.$={id:$[B-1].id,label:$[B-1].label,type:F.typeStr2Type($[B-1].typeStr),directions:$[B-1].directions,widthInColumns:parseInt($[B],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",$[B]),this.$={id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",$[B]),this.$={type:"column-setting",columns:$[B]==="auto"?-1:parseInt($[B])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",$[B-2],$[B-1]),F.generateId(),this.$={...$[B-2],type:"composite",children:$[B-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",$[B-2],$[B-1],$[B]);const W=F.generateId();this.$={id:W,type:"composite",label:"",children:$[B-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",$[B]),this.$={id:$[B]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",$[B-1],$[B]),this.$={id:$[B-1],label:$[B].label,typeStr:$[B].typeStr,directions:$[B].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",$[B]),this.$=[$[B]];break;case 32:F.getLogger().debug("Rule: dirList: ",$[B-1],$[B]),this.$=[$[B-1]].concat($[B]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",$[B-2],$[B-1],$[B]),this.$={typeStr:$[B-2]+$[B],label:$[B-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",$[B-3],$[B-2]," #3:",$[B-1],$[B]),this.$={typeStr:$[B-3]+$[B],label:$[B-2],directions:$[B-1]};break;case 35:case 36:this.$={type:"classDef",id:$[B-1].trim(),css:$[B].trim()};break;case 37:this.$={type:"applyClass",id:$[B-1].trim(),styleClass:$[B].trim()};break;case 38:this.$={type:"applyStyles",id:$[B-1].trim(),stylesStr:$[B].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:a,29:s,31:o,39:u,43:h,46:f}),e(m,[2,16],{14:22,15:b,16:_}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(w,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,31:o},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:b,16:_,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{36:[1,47]},{33:48,34:C},{15:[1,50]},e(m,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:C,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:X(function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},"parseError"),parse:X(function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(Ie){M.length=M.length-2*Ie,U.length=U.length-Ie,$.length=$.length-Ie}X(se,"popStack");function ie(){var Ie;return Ie=F.pop()||V.lex()||W,typeof Ie!="number"&&(Ie instanceof Array&&(F=Ie,Ie=F.pop()),Ie=P.symbols_[Ie]||Ie),Ie}X(ie,"lex");for(var ge,ce,be,ve,De={},ye,Ee,he,we;;){if(ce=M[M.length-1],this.defaultActions[ce]?be=this.defaultActions[ce]:((ge===null||typeof ge>"u")&&(ge=ie()),be=G[ce]&&G[ce][ge]),typeof be>"u"||!be.length||!be[0]){var Ce="";we=[];for(ye in G[ce])this.terminals_[ye]&&ye>Y&&we.push("'"+this.terminals_[ye]+"'");V.showPosition?Ce="Parse error on line "+(Z+1)+`:
`+V.showPosition()+`
Expecting `+we.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'":Ce="Parse error on line "+(Z+1)+": Unexpected "+(ge==W?"end of input":"'"+(this.terminals_[ge]||ge)+"'"),this.parseError(Ce,{text:V.match,token:this.terminals_[ge]||ge,line:V.yylineno,loc:te,expected:we})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+ge);switch(be[0]){case 1:M.push(ge),U.push(V.yytext),$.push(V.yylloc),M.push(be[1]),ge=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(Ee=this.productions_[be[1]][1],De.$=U[U.length-Ee],De._$={first_line:$[$.length-(Ee||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(Ee||1)].first_column,last_column:$[$.length-1].last_column},ne&&(De._$.range=[$[$.length-(Ee||1)].range[0],$[$.length-1].range[1]]),ve=this.performAction.apply(De,[B,z,Z,j.yy,be[1],U,$].concat(Q)),typeof ve<"u")return ve;Ee&&(M=M.slice(0,-1*Ee*2),U=U.slice(0,-1*Ee),$=$.slice(0,-1*Ee)),M.push(this.productions_[be[1]][0]),U.push(De.$),$.push(De._$),he=G[M[M.length-2]][M[M.length-1]],M.push(he);break;case 3:return!0}}return!0},"parse")},k=function(){var N={EOF:1,parseError:X(function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},"parseError"),setInput:X(function(L,P){return this.yy=P||this.yy||{},this._input=L,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},"setInput"),input:X(function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},"input"),unput:X(function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=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),M.length-1&&(this.yylineno-=M.length-1);var U=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:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(L){this.unput(this.match.slice(L))},"less"),pastInput:X(function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+`
`+P+"^"},"showPosition"),test_match:X(function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,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(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$<U.length;$++)if(M=this._input.match(this.rules[U[$]]),M&&(!P||M[0].length>P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var P=this.next();return P||this.lex()},"lex"),begin:X(function(P){this.conditionStack.push(P)},"begin"),popState:X(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:X(function(P){this.begin(P)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(P,M,F,U){switch(F){case 0:return P.getLogger().debug("Found block-beta"),10;case 1:return P.getLogger().debug("Found id-block"),29;case 2:return P.getLogger().debug("Found block"),10;case 3:P.getLogger().debug(".",M.yytext);break;case 4:P.getLogger().debug("_",M.yytext);break;case 5:return 5;case 6:return M.yytext=-1,28;case 7:return M.yytext=M.yytext.replace(/columns\s+/,""),P.getLogger().debug("COLUMNS (LEX)",M.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:P.getLogger().debug("LEX: POPPING STR:",M.yytext),this.popState();break;case 13:return P.getLogger().debug("LEX: STR end:",M.yytext),"STR";case 14:return M.yytext=M.yytext.replace(/space\:/,""),P.getLogger().debug("SPACE NUM (LEX)",M.yytext),21;case 15:return M.yytext="1",P.getLogger().debug("COLUMNS (LEX)",M.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),P.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),P.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),P.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),P.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),P.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),P.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),P.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),P.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),P.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),P.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return P.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return P.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return P.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return P.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return P.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return P.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return P.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),P.getLogger().debug("LEX ARR START"),37;case 74:return P.getLogger().debug("Lex: NODE_ID",M.yytext),31;case 75:return P.getLogger().debug("Lex: EOF",M.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:P.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:P.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return P.getLogger().debug("LEX: NODE_DESCR:",M.yytext),"NODE_DESCR";case 83:P.getLogger().debug("LEX POPPING"),this.popState();break;case 84:P.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (right): dir:",M.yytext),"DIR";case 86:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (left):",M.yytext),"DIR";case 87:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (x):",M.yytext),"DIR";case 88:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (y):",M.yytext),"DIR";case 89:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (up):",M.yytext),"DIR";case 90:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (down):",M.yytext),"DIR";case 91:return M.yytext="]>",P.getLogger().debug("Lex (ARROW_DIR end):",M.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 93:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 94:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 95:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 96:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 97:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 98:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return P.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 102:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 103:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 104:return P.getLogger().debug("Lex: COLON",M.yytext),M.yytext=M.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return X(I,"Parser"),I.prototype=A,A.Parser=I,new I}();Gut.parser=Gut;var $Zi=Gut,nT=new Map,lbt=[],qut=new Map,DTn="color",MTn="fill",UZi="bgFill",KXn=",",zZi=nn(),UTe=new Map,GZi=X(e=>Ti.sanitizeText(e,zZi),"sanitizeText"),qZi=X(function(e,t=""){let r=UTe.get(e);r||(r={id:e,styles:[],textStyles:[]},UTe.set(e,r)),t!=null&&t.split(KXn).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(RegExp(DTn).exec(a)){const u=s.replace(MTn,UZi).replace(DTn,MTn);r.textStyles.push(u)}r.styles.push(s)})},"addStyleClass"),HZi=X(function(e,t=""){const r=nT.get(e);t!=null&&(r.styles=t.split(KXn))},"addStyle2Node"),VZi=X(function(e,t){e.split(",").forEach(function(r){let a=nT.get(r);if(a===void 0){const s=r.trim();a={id:s,type:"na",children:[]},nT.set(s,a)}a.classes||(a.classes=[]),a.classes.push(t)})},"setCssClass"),XXn=X((e,t)=>{const r=e.flat(),a=[],s=r.find(u=>(u==null?void 0:u.type)==="column-setting"),o=(s==null?void 0:s.columns)??-1;for(const u of r){if(typeof o=="number"&&o>0&&u.type!=="column-setting"&&typeof u.widthInColumns=="number"&&u.widthInColumns>o&&it.warn(`Block ${u.id} width ${u.widthInColumns} exceeds configured column width ${o}`),u.label&&(u.label=GZi(u.label)),u.type==="classDef"){qZi(u.id,u.css);continue}if(u.type==="applyClass"){VZi(u.id,(u==null?void 0:u.styleClass)??"");continue}if(u.type==="applyStyles"){u!=null&&u.stylesStr&&HZi(u.id,u==null?void 0:u.stylesStr);continue}if(u.type==="column-setting")t.columns=u.columns??-1;else if(u.type==="edge"){const h=(qut.get(u.id)??0)+1;qut.set(u.id,h),u.id=h+"-"+u.id,lbt.push(u)}else{u.label||(u.type==="composite"?u.label="":u.label=u.id);const h=nT.get(u.id);if(h===void 0?nT.set(u.id,u):(u.type!=="na"&&(h.type=u.type),u.label!==u.id&&(h.label=u.label)),u.children&&XXn(u.children,u),u.type==="space"){const f=u.width??1;for(let p=0;p<f;p++){const m=ZAe(u);m.id=m.id+"-"+p,nT.set(m.id,m),a.push(m)}}else h===void 0&&a.push(u)}}t.children=a},"populateBlockDatabase"),cbt=[],Ise={id:"root",type:"composite",children:[],columns:-1},YZi=X(()=>{it.debug("Clear called"),M1(),Ise={id:"root",type:"composite",children:[],columns:-1},nT=new Map([["root",Ise]]),cbt=[],UTe=new Map,lbt=[],qut=new Map},"clear");function QXn(e){switch(it.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return it.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}X(QXn,"typeStr2Type");function ZXn(e){switch(it.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}X(ZXn,"edgeTypeStr2Type");function JXn(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}X(JXn,"edgeStrToEdgeData");var PTn=0,jZi=X(()=>(PTn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+PTn),"generateId"),WZi=X(e=>{Ise.children=e,XXn(e,Ise),cbt=Ise.children},"setHierarchy"),KZi=X(e=>{const t=nT.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),XZi=X(()=>[...nT.values()],"getBlocksFlat"),QZi=X(()=>cbt||[],"getBlocks"),ZZi=X(()=>lbt,"getEdges"),JZi=X(e=>nT.get(e),"getBlock"),eJi=X(e=>{nT.set(e.id,e)},"setBlock"),tJi=X(()=>it,"getLogger"),nJi=X(function(){return UTe},"getClasses"),rJi={getConfig:X(()=>$c().block,"getConfig"),typeStr2Type:QXn,edgeTypeStr2Type:ZXn,edgeStrToEdgeData:JXn,getLogger:tJi,getBlocksFlat:XZi,getBlocks:QZi,getEdges:ZZi,setHierarchy:WZi,getBlock:JZi,setBlock:eJi,getColumns:KZi,getClasses:nJi,clear:YZi,generateId:jZi},iJi=rJi,pEe=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),aJi=X(e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .cluster-label text {
    fill: ${e.titleColor};
  }
  .cluster-label span,p {
    color: ${e.titleColor};
  }



  .label text,span,p {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }
  .flowchart-label text {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.5;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${pEe(e.edgeLabelBackground,.5)};
    // background-color:
  }

  .node .cluster {
    // fill: ${pEe(e.mainBkg,.5)};
    fill: ${pEe(e.clusterBkg,.5)};
    stroke: ${pEe(e.clusterBorder,.2)};
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  .cluster span,p {
    color: ${e.titleColor};
  }
  /* .cluster div {
    color: ${e.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
  ${Lce()}
`,"getStyles"),sJi=aJi,oJi=X((e,t,r,a)=>{t.forEach(s=>{bJi[s](e,r,a)})},"insertMarkers"),lJi=X((e,t,r)=>{it.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),cJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).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")},"composition"),uJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).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"),hJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).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")},"dependency"),dJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),fJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).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")},"point"),pJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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")},"circle"),gJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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")},"cross"),mJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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")},"barb"),bJi={extension:lJi,composition:cJi,aggregation:uJi,dependency:hJi,lollipop:dJi,point:fJi,circle:pJi,cross:gJi,barb:mJi},yJi=oJi,gAn,mAn,V0=((mAn=(gAn=nn())==null?void 0:gAn.block)==null?void 0:mAn.padding)??8;function eQn(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const r=t%e,a=Math.floor(t/e);return{px:r,py:a}}X(eQn,"calculateBlockPosition");var vJi=X(e=>{let t=0,r=0;for(const a of e.children){const{width:s,height:o,x:u,y:h}=a.size??{width:0,height:0,x:0,y:0};it.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",o,"x:",u,"y:",h,a.type),a.type!=="space"&&(s>t&&(t=s/(e.widthInColumns??1)),o>r&&(r=o))}return{width:t,height:r}},"getMaxChildSize");function zTe(e,t,r=0,a=0){var u,h,f,p,m,b,_,w,S,C,A;it.debug("setBlockSizes abc95 (start)",e.id,(u=e==null?void 0:e.size)==null?void 0:u.x,"block width =",e==null?void 0:e.size,"siblingWidth",r),(h=e==null?void 0:e.size)!=null&&h.width||(e.size={width:r,height:a,x:0,y:0});let s=0,o=0;if(((f=e.children)==null?void 0:f.length)>0){for(const U of e.children)zTe(U,t);const k=vJi(e);s=k.width,o=k.height,it.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",s,o);for(const U of e.children)U.size&&(it.debug(`abc95 Setting size of children of ${e.id} id=${U.id} ${s} ${o} ${JSON.stringify(U.size)}`),U.size.width=s*(U.widthInColumns??1)+V0*((U.widthInColumns??1)-1),U.size.height=o,U.size.x=0,U.size.y=0,it.debug(`abc95 updating size of ${e.id} children child:${U.id} maxWidth:${s} maxHeight:${o}`));for(const U of e.children)zTe(U,t,s,o);const I=e.columns??-1;let N=0;for(const U of e.children)N+=U.widthInColumns??1;let L=e.children.length;I>0&&I<N&&(L=I);const P=Math.ceil(N/L);let M=L*(s+V0)+V0,F=P*(o+V0)+V0;if(M<r){it.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${a} width ${M}`),M=r,F=a;const U=(r-L*V0-V0)/L,$=(a-P*V0-V0)/P;it.debug("Size indata abc88",e.id,"childWidth",U,"maxWidth",s),it.debug("Size indata abc88",e.id,"childHeight",$,"maxHeight",o),it.debug("Size indata abc88 xSize",L,"padding",V0);for(const G of e.children)G.size&&(G.size.width=U,G.size.height=$,G.size.x=0,G.size.y=0)}if(it.debug(`abc95 (finale calc) ${e.id} xSize ${L} ySize ${P} columns ${I}${e.children.length} width=${Math.max(M,((p=e.size)==null?void 0:p.width)||0)}`),M<(((m=e==null?void 0:e.size)==null?void 0:m.width)||0)){M=((b=e==null?void 0:e.size)==null?void 0:b.width)||0;const U=I>0?Math.min(e.children.length,I):e.children.length;if(U>0){const $=(M-U*V0-V0)/U;it.debug("abc95 (growing to fit) width",e.id,M,(_=e.size)==null?void 0:_.width,$);for(const G of e.children)G.size&&(G.size.width=$)}}e.size={width:M,height:F,x:0,y:0}}it.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(S=e==null?void 0:e.size)==null?void 0:S.width,(C=e==null?void 0:e.size)==null?void 0:C.y,(A=e==null?void 0:e.size)==null?void 0:A.height)}X(zTe,"setBlockSizes");function ubt(e,t){var a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N;it.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(a=e==null?void 0:e.size)==null?void 0:a.x} y: ${(s=e==null?void 0:e.size)==null?void 0:s.y} width: ${(o=e==null?void 0:e.size)==null?void 0:o.width}`);const r=e.columns??-1;if(it.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){const L=((h=(u=e==null?void 0:e.children[0])==null?void 0:u.size)==null?void 0:h.width)??0,P=e.children.length*L+(e.children.length-1)*V0;it.debug("widthOfChildren 88",P,"posX");let M=0;it.debug("abc91 block?.size?.x",e.id,(f=e==null?void 0:e.size)==null?void 0:f.x);let F=(p=e==null?void 0:e.size)!=null&&p.x?((m=e==null?void 0:e.size)==null?void 0:m.x)+(-((b=e==null?void 0:e.size)==null?void 0:b.width)/2||0):-V0,U=0;for(const $ of e.children){const G=e;if(!$.size)continue;const{width:B,height:Z}=$.size,{px:z,py:Y}=eQn(r,M);if(Y!=U&&(U=Y,F=(_=e==null?void 0:e.size)!=null&&_.x?((w=e==null?void 0:e.size)==null?void 0:w.x)+(-((S=e==null?void 0:e.size)==null?void 0:S.width)/2||0):-V0,it.debug("New row in layout for block",e.id," and child ",$.id,U)),it.debug(`abc89 layout blocks (child) id: ${$.id} Pos: ${M} (px, py) ${z},${Y} (${(C=G==null?void 0:G.size)==null?void 0:C.x},${(A=G==null?void 0:G.size)==null?void 0:A.y}) parent: ${G.id} width: ${B}${V0}`),G.size){const Q=B/2;$.size.x=F+V0+Q,it.debug(`abc91 layout blocks (calc) px, pyid:${$.id} startingPos=X${F} new startingPosX${$.size.x} ${Q} padding=${V0} width=${B} halfWidth=${Q} => x:${$.size.x} y:${$.size.y} ${$.widthInColumns} (width * (child?.w || 1)) / 2 ${B*(($==null?void 0:$.widthInColumns)??1)/2}`),F=$.size.x+Q,$.size.y=G.size.y-G.size.height/2+Y*(Z+V0)+Z/2+V0,it.debug(`abc88 layout blocks (calc) px, pyid:${$.id}startingPosX${F}${V0}${Q}=>x:${$.size.x}y:${$.size.y}${$.widthInColumns}(width * (child?.w || 1)) / 2${B*(($==null?void 0:$.widthInColumns)??1)/2}`)}$.children&&ubt($);let W=($==null?void 0:$.widthInColumns)??1;r>0&&(W=Math.min(W,r-M%r)),M+=W,it.debug("abc88 columnsPos",$,M)}}it.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(k=e==null?void 0:e.size)==null?void 0:k.x} y: ${(I=e==null?void 0:e.size)==null?void 0:I.y} width: ${(N=e==null?void 0:e.size)==null?void 0:N.width}`)}X(ubt,"layoutBlocks");function hbt(e,{minX:t,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:o,y:u,width:h,height:f}=e.size;o-h/2<t&&(t=o-h/2),u-f/2<r&&(r=u-f/2),o+h/2>a&&(a=o+h/2),u+f/2>s&&(s=u+f/2)}if(e.children)for(const o of e.children)({minX:t,minY:r,maxX:a,maxY:s}=hbt(o,{minX:t,minY:r,maxX:a,maxY:s}));return{minX:t,minY:r,maxX:a,maxY:s}}X(hbt,"findBounds");function tQn(e){const t=e.getBlock("root");if(!t)return;zTe(t,e,0,0),ubt(t),it.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:a,maxX:s,maxY:o}=hbt(t),u=o-a,h=s-r;return{x:r,y:a,width:h,height:u}}X(tQn,"layout");function Hut(e,t){t&&e.attr("style",t)}X(Hut,"applyStyle");function nQn(e,t){const r=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=r.append("xhtml:div"),s=e.label,o=e.isNode?"nodeLabel":"edgeLabel",u=a.append("span");return u.html(Ic(s,t)),Hut(u,e.labelStyle),u.attr("class",o),Hut(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}X(nQn,"addHtmlLabel");var _Ji=X(async(e,t,r,a)=>{let s=e||"";typeof s=="object"&&(s=s[0]);const o=nn();if(nh(o.flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"<br />"),it.debug("vertexText"+s);const u=await Q1t(vA(s)),h={isNode:a,label:u,labelStyle:t.replace("fill:","color:")};return nQn(h,o)}else{const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",t.replace("color:","fill:"));let h=[];typeof s=="string"?h=s.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(s)?h=s:h=[];for(const f of h){const p=document.createElementNS("http://www.w3.org/2000/svg","tspan");p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),p.setAttribute("dy","1em"),p.setAttribute("x","0"),r?p.setAttribute("class","title-row"):p.setAttribute("class","row"),p.textContent=f.trim(),u.appendChild(p)}return u}},"createLabel"),nS=_Ji,wJi=X((e,t,r,a,s)=>{t.arrowTypeStart&&BTn(e,"start",t.arrowTypeStart,r,a,s),t.arrowTypeEnd&&BTn(e,"end",t.arrowTypeEnd,r,a,s)},"addEdgeMarkers"),EJi={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},BTn=X((e,t,r,a,s,o)=>{const u=EJi[r];if(!u){it.warn(`Unknown arrow type: ${r}`);return}const h=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${a}#${s}_${o}-${u}${h})`)},"addEdgeMarker"),Vut={},yb={},xJi=X(async(e,t)=>{const r=nn(),a=nh(r.flowchart.htmlLabels),s=t.labelType==="markdown"?Yw(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0},r):await nS(t.label,t.labelStyle),o=e.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label");u.node().appendChild(s);let h=s.getBBox();if(a){const p=s.children[0],m=gn(s);h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Vut[t.id]=o,t.width=h.width,t.height=h.height;let f;if(t.startLabelLeft){const p=await nS(t.startLabelLeft,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),yb[t.id]||(yb[t.id]={}),yb[t.id].startLeft=m,Pae(f,t.startLabelLeft)}if(t.startLabelRight){const p=await nS(t.startLabelRight,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=m.node().appendChild(p),b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),yb[t.id]||(yb[t.id]={}),yb[t.id].startRight=m,Pae(f,t.startLabelRight)}if(t.endLabelLeft){const p=await nS(t.endLabelLeft,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),yb[t.id]||(yb[t.id]={}),yb[t.id].endLeft=m,Pae(f,t.endLabelLeft)}if(t.endLabelRight){const p=await nS(t.endLabelRight,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),yb[t.id]||(yb[t.id]={}),yb[t.id].endRight=m,Pae(f,t.endLabelRight)}return s},"insertEdgeLabel");function Pae(e,t){nn().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}X(Pae,"setTerminalWidth");var SJi=X((e,t)=>{it.debug("Moving label abc88 ",e.id,e.label,Vut[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=nn(),{subGraphTitleTotalMargin:s}=oce(a);if(e.label){const o=Vut[e.id];let u=e.x,h=e.y;if(r){const f=Vo.calcLabelPosition(r);it.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=yb[e.id].startLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=yb[e.id].startRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=yb[e.id].endLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=yb[e.id].endRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},"positionEdgeLabel"),TJi=X((e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},"outsideNode"),CJi=X((e,t,r)=>{it.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(t)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.x<t.x?u-o:u+o;const f=e.height/2,p=Math.abs(t.y-r.y),m=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*u>Math.abs(a-t.x)*f){let b=r.y<t.y?t.y-f-s:s-f-t.y;h=m*b/p;const _={x:r.x<t.x?r.x+h:r.x-m+h,y:r.y<t.y?r.y+p-b:r.y-p+b};return h===0&&(_.x=t.x,_.y=t.y),m===0&&(_.x=t.x),p===0&&(_.y=t.y),it.debug(`abc89 topp/bott calc, Q ${p}, q ${b}, R ${m}, r ${h}`,_),_}else{r.x<t.x?h=t.x-u-a:h=a-u-t.x;let b=p*h/m,_=r.x<t.x?r.x+m-h:r.x-m+h,w=r.y<t.y?r.y+b:r.y-b;return it.debug(`sides calc abc89, Q ${p}, q ${b}, R ${m}, r ${h}`,{_x:_,_y:w}),h===0&&(_=t.x,w=t.y),m===0&&(_=t.x),p===0&&(w=t.y),{x:_,y:w}}},"intersection"),FTn=X((e,t)=>{it.debug("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(!TJi(t,o)&&!s){const u=CJi(t,a,o);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)||r.push(u),s=!0}else a=o,s||r.push(o)}),r},"cutPathAtIntersect"),AJi=X(function(e,t,r,a,s,o,u){let h=r.points;it.debug("abc88 InsertEdge: edge=",r,"e=",t);let f=!1;const p=o.node(t.v);var m=o.node(t.w);m!=null&&m.intersect&&(p!=null&&p.intersect)&&(h=h.slice(1,r.points.length-1),h.unshift(p.intersect(h[0])),h.push(m.intersect(h[h.length-1]))),r.toCluster&&(it.debug("to cluster abc88",a[r.toCluster]),h=FTn(r.points,a[r.toCluster].node),f=!0),r.fromCluster&&(it.debug("from cluster abc88",a[r.fromCluster]),h=FTn(h.reverse(),a[r.fromCluster].node).reverse(),f=!0);const b=h.filter(L=>!Number.isNaN(L.y));let _=j3;r.curve&&(s==="graph"||s==="flowchart")&&(_=r.curve);const{x:w,y:S}=kPn(r),C=r_().x(w).y(S).curve(_);let A;switch(r.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-thick";break;default:A=""}switch(r.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",C(b)).attr("id",r.id).attr("class"," "+A+(r.classes?" "+r.classes:"")).attr("style",r.style);let I="";(nn().flowchart.arrowMarkerAbsolute||nn().state.arrowMarkerAbsolute)&&(I=tAe(!0)),wJi(k,r,I,u,s);let N={};return f&&(N.updatedPath=h),N.originalPath=r.points,N},"insertEdge"),kJi=X(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),RJi=X((e,t,r)=>{const a=kJi(e),s=2,o=t.height+2*r.padding,u=o/s,h=t.width+2*u+r.padding,f=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:u,y:0},{x:h/2,y:2*f},{x:h-u,y:0},{x:h,y:0},{x:h,y:-o/3},{x:h+2*f,y:-o/2},{x:h,y:-2*o/3},{x:h,y:-o},{x:h-u,y:-o},{x:h/2,y:-o-2*f},{x:u,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*f,y:-o/2},{x:0,y:-o/3}]:a.has("right")&&a.has("left")&&a.has("up")?[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:u,y:-o},{x:h-u,y:-o},{x:h,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:h,y:-u},{x:h,y:-o+u},{x:0,y:-o}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:h,y:0},{x:0,y:-u},{x:0,y:-o+u},{x:h,y:-o}]:a.has("right")&&a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")&&a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:h,y:-u},{x:0,y:-o}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-o}]:a.has("left")&&a.has("up")?[{x:h,y:0},{x:0,y:-u},{x:h,y:-o}]:a.has("left")&&a.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-o}]:a.has("right")?[{x:u,y:-f},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o+f}]:a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")?[{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f}]:a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:[{x:0,y:0}]},"getArrowPoints");function rQn(e,t){return e.intersect(t)}X(rQn,"intersectNode");var IJi=rQn;function iQn(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x<s&&(p=-p);var m=Math.abs(t*r*h/f);return a.y<o&&(m=-m),{x:s+p,y:o+m}}X(iQn,"intersectEllipse");var aQn=iQn;function sQn(e,t,r){return aQn(e,t,t,r)}X(sQn,"intersectCircle");var NJi=sQn;function oQn(e,t,r,a){var s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;if(s=t.y-e.y,u=e.x-t.x,f=t.x*e.y-e.x*t.y,_=s*r.x+u*r.y+f,w=s*a.x+u*a.y+f,!(_!==0&&w!==0&&Yut(_,w))&&(o=a.y-r.y,h=r.x-a.x,p=a.x*r.y-r.x*a.y,m=o*e.x+h*e.y+p,b=o*t.x+h*t.y+p,!(m!==0&&b!==0&&Yut(m,b))&&(S=s*h-o*u,S!==0)))return C=Math.abs(S/2),A=u*p-h*f,k=A<0?(A-C)/S:(A+C)/S,A=o*f-s*p,I=A<0?(A-C)/S:(A+C)/S,{x:k,y:I}}X(oQn,"intersectLine");function Yut(e,t){return e*t>0}X(Yut,"sameSign");var OJi=oQn,LJi=lQn;function lQn(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m<t.length;m++){var b=t[m],_=t[m<t.length-1?m+1:0],w=OJi(e,r,{x:f+b.x,y:p+b.y},{x:f+_.x,y:p+_.y});w&&o.push(w)}return o.length?(o.length>1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return I<P?-1:I===P?0:1}),o[0]):e}X(lQn,"intersectPolygon");var DJi=X((e,t)=>{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},"intersectRect"),MJi=DJi,Qd={node:IJi,circle:NJi,ellipse:aQn,polygon:LJi,rect:MJi},Mg=X(async(e,t,r,a)=>{const s=nn();let o;const u=t.useHtmlLabels||nh(s.flowchart.htmlLabels);r?o=r:o="node default";const h=e.insert("g").attr("class",o).attr("id",t.domId||t.id),f=h.insert("g").attr("class","label").attr("style",t.labelStyle);let p;t.labelText===void 0?p="":p=typeof t.labelText=="string"?t.labelText:t.labelText[0];const m=f.node();let b;t.labelType==="markdown"?b=Yw(f,Ic(vA(p),s),{useHtmlLabels:u,width:t.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s):b=m.appendChild(await nS(Ic(vA(p),s),t.labelStyle,!1,a));let _=b.getBBox();const w=t.padding/2;if(nh(s.flowchart.htmlLabels)){const S=b.children[0],C=gn(b),A=S.getElementsByTagName("img");if(A){const k=p.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...A].map(I=>new Promise(N=>{function L(){if(I.style.display="flex",I.style.flexDirection="column",k){const P=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize,F=parseInt(P,10)*5+"px";I.style.minWidth=F,I.style.maxWidth=F}else I.style.width="100%";N(I)}X(L,"setupImage"),setTimeout(()=>{I.complete&&L()}),I.addEventListener("error",L),I.addEventListener("load",L)})))}_=S.getBoundingClientRect(),C.attr("width",_.width),C.attr("height",_.height)}return u?f.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"):f.attr("transform","translate(0, "+-_.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:h,bbox:_,halfPadding:w,label:f}},"labelHelper"),d0=X((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");function _T(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}X(_T,"insertPolygonShape");var PJi=X(async(e,t)=>{t.useHtmlLabels||nn().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:a,bbox:s,halfPadding:o}=await Mg(e,t,"node "+t.classes,!0);it.info("Classes = ",t.classes);const u=a.insert("rect",":first-child");return u.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-o).attr("y",-s.height/2-o).attr("width",s.width+t.padding).attr("height",s.height+t.padding),d0(t,u),t.intersect=function(h){return Qd.rect(t,h)},a},"note"),BJi=PJi,$Tn=X(e=>e?" "+e:"","formatClass"),Qw=X((e,t)=>`${t||"node default"}${$Tn(e.classes)} ${$Tn(e.class)}`,"getClassesFromNode"),UTn=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=s+o,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];it.info("Question main (Circle)");const f=_T(r,u,u,h);return f.attr("style",t.style),d0(t,f),t.intersect=function(p){return it.warn("Intersect called"),Qd.polygon(t,h,p)},r},"question"),FJi=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=28,s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];return r.insert("polygon",":first-child").attr("points",s.map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(u){return Qd.circle(t,14,u)},r},"choice"),$Ji=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=4,o=a.height+t.padding,u=o/s,h=a.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}],p=_T(r,h,o,f);return p.attr("style",t.style),d0(t,p),t.intersect=function(m){return Qd.polygon(t,f,m)},r},"hexagon"),UJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,void 0,!0),s=2,o=a.height+2*t.padding,u=o/s,h=a.width+2*u+t.padding,f=RJi(t.directions,a,t),p=_T(r,h,o,f);return p.attr("style",t.style),d0(t,p),t.intersect=function(m){return Qd.polygon(t,f,m)},r},"block_arrow"),zJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-o/2,y:0},{x:s,y:0},{x:s,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return _T(r,s,o,u).attr("style",t.style),t.width=s+o,t.height=o,t.intersect=function(f){return Qd.polygon(t,u,f)},r},"rect_left_inv_arrow"),GJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"lean_right"),qJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"lean_left"),HJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"trapezoid"),VJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"inv_trapezoid"),YJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s+o/2,y:0},{x:s,y:-o/2},{x:s+o/2,y:-o},{x:0,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"rect_right_inv_arrow"),jJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=s/2,u=o/(2.5+s/50),h=a.height+u+t.padding,f="M 0,"+u+" a "+o+","+u+" 0,0,0 "+s+" 0 a "+o+","+u+" 0,0,0 "+-s+" 0 l 0,"+h+" a "+o+","+u+" 0,0,0 "+s+" 0 l 0,"+-h,p=r.attr("label-offset-y",u).insert("path",":first-child").attr("style",t.style).attr("d",f).attr("transform","translate("+-s/2+","+-(h/2+u)+")");return d0(t,p),t.intersect=function(m){const b=Qd.rect(t,m),_=b.x-t.x;if(o!=0&&(Math.abs(_)<t.width/2||Math.abs(_)==t.width/2&&Math.abs(b.y-t.y)>t.height/2-u)){let w=u*u*(1-_*_/(o*o));w!=0&&(w=Math.sqrt(w)),w=u-w,m.y-t.y>0&&(w=-w),b.y+=w}return b},r},"cylinder"),WJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,"node "+t.classes+" "+t.class,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(i6e(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{it.warn(`Unknown node property ${b}`)})}return d0(t,o),t.intersect=function(m){return Qd.rect(t,m)},r},"rect"),KJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,"node "+t.classes,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(i6e(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{it.warn(`Unknown node property ${b}`)})}return d0(t,o),t.intersect=function(m){return Qd.rect(t,m)},r},"composite"),XJi=X(async(e,t)=>{const{shapeSvg:r}=await Mg(e,t,"label",!0);it.trace("Classes = ",t.class);const a=r.insert("rect",":first-child"),s=0,o=0;if(a.attr("width",s).attr("height",o),r.attr("class","label edgeLabel"),t.props){const u=new Set(Object.keys(t.props));t.props.borders&&(i6e(a,t.props.borders,s,o),u.delete("borders")),u.forEach(h=>{it.warn(`Unknown node property ${h}`)})}return d0(t,a),t.intersect=function(u){return Qd.rect(t,u)},r},"labelRect");function i6e(e,t,r,a){const s=[],o=X(h=>{s.push(h,0)},"addBorder"),u=X(h=>{s.push(0,h)},"skipBorder");t.includes("t")?(it.debug("add top border"),o(r)):u(r),t.includes("r")?(it.debug("add right border"),o(a)):u(a),t.includes("b")?(it.debug("add bottom border"),o(r)):u(r),t.includes("l")?(it.debug("add left border"),o(a)):u(a),e.attr("stroke-dasharray",s.join(" "))}X(i6e,"applyNodePropertyBorders");var QJi=X(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const a=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=a.insert("rect",":first-child"),o=a.insert("line"),u=a.insert("g").attr("class","label"),h=t.labelText.flat?t.labelText.flat():t.labelText;let f="";typeof h=="object"?f=h[0]:f=h,it.info("Label text abc79",f,h,typeof h=="object");const p=u.node().appendChild(await nS(f,t.labelStyle,!0,!0));let m={width:0,height:0};if(nh(nn().flowchart.htmlLabels)){const C=p.children[0],A=gn(p);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}it.info("Text 2",h);const b=h.slice(1,h.length);let _=p.getBBox();const w=u.node().appendChild(await nS(b.join?b.join("<br/>"):b,t.labelStyle,!0,!0));if(nh(nn().flowchart.htmlLabels)){const C=w.children[0],A=gn(w);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}const S=t.padding/2;return gn(w).attr("transform","translate( "+(m.width>_.width?0:(_.width-m.width)/2)+", "+(_.height+S+5)+")"),gn(p).attr("transform","translate( "+(m.width<_.width?0:-(_.width-m.width)/2)+", 0)"),m=u.node().getBBox(),u.attr("transform","translate("+-m.width/2+", "+(-m.height/2-S+3)+")"),s.attr("class","outer title-state").attr("x",-m.width/2-S).attr("y",-m.height/2-S).attr("width",m.width+t.padding).attr("height",m.height+t.padding),o.attr("class","divider").attr("x1",-m.width/2-S).attr("x2",m.width/2+S).attr("y1",-m.height/2-S+_.height+S).attr("y2",-m.height/2-S+_.height+S),d0(t,s),t.intersect=function(C){return Qd.rect(t,C)},a},"rectWithTitle"),ZJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.height+t.padding,o=a.width+s/4+t.padding,u=r.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s);return d0(t,u),t.intersect=function(h){return Qd.rect(t,h)},r},"stadium"),JJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,Qw(t,void 0),!0),o=r.insert("circle",":first-child");return o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),it.info("Circle main"),d0(t,o),t.intersect=function(u){return it.info("Circle intersect",t,a.width/2+s,u),Qd.circle(t,a.width/2+s,u)},r},"circle"),eea=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,Qw(t,void 0),!0),o=5,u=r.insert("g",":first-child"),h=u.insert("circle"),f=u.insert("circle");return u.attr("class",t.class),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s+o).attr("width",a.width+t.padding+o*2).attr("height",a.height+t.padding+o*2),f.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),it.info("DoubleCircle main"),d0(t,h),t.intersect=function(p){return it.info("DoubleCircle intersect",t,a.width/2+s+o,p),Qd.circle(t,a.width/2+s+o,p)},r},"doublecircle"),tea=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"subroutine"),nea=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),d0(t,a),t.intersect=function(s){return Qd.circle(t,7,s)},r},"start"),zTn=X((e,t,r)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,o=10;r==="LR"&&(s=10,o=70);const u=a.append("rect").attr("x",-1*s/2).attr("y",-1*o/2).attr("width",s).attr("height",o).attr("class","fork-join");return d0(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(h){return Qd.rect(t,h)},a},"forkJoin"),rea=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),d0(t,s),t.intersect=function(o){return Qd.circle(t,7,o)},r},"end"),iea=X(async(e,t)=>{var U;const r=t.padding/2,a=4,s=8;let o;t.classes?o="node "+t.classes:o="node default";const u=e.insert("g").attr("class",o).attr("id",t.domId||t.id),h=u.insert("rect",":first-child"),f=u.insert("line"),p=u.insert("line");let m=0,b=a;const _=u.insert("g").attr("class","label");let w=0;const S=(U=t.classData.annotations)==null?void 0:U[0],C=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",A=_.node().appendChild(await nS(C,t.labelStyle,!0,!0));let k=A.getBBox();if(nh(nn().flowchart.htmlLabels)){const $=A.children[0],G=gn(A);k=$.getBoundingClientRect(),G.attr("width",k.width),G.attr("height",k.height)}t.classData.annotations[0]&&(b+=k.height+a,m+=k.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(nn().flowchart.htmlLabels?I+="&lt;"+t.classData.type+"&gt;":I+="<"+t.classData.type+">");const N=_.node().appendChild(await nS(I,t.labelStyle,!0,!0));gn(N).attr("class","classTitle");let L=N.getBBox();if(nh(nn().flowchart.htmlLabels)){const $=N.children[0],G=gn(N);L=$.getBoundingClientRect(),G.attr("width",L.width),G.attr("height",L.height)}b+=L.height+a,L.width>m&&(m=L.width);const P=[];t.classData.members.forEach(async $=>{const G=$.getDisplayDetails();let B=G.displayText;nn().flowchart.htmlLabels&&(B=B.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const Z=_.node().appendChild(await nS(B,G.cssStyle?G.cssStyle:t.labelStyle,!0,!0));let z=Z.getBBox();if(nh(nn().flowchart.htmlLabels)){const Y=Z.children[0],W=gn(Z);z=Y.getBoundingClientRect(),W.attr("width",z.width),W.attr("height",z.height)}z.width>m&&(m=z.width),b+=z.height+a,P.push(Z)}),b+=s;const M=[];if(t.classData.methods.forEach(async $=>{const G=$.getDisplayDetails();let B=G.displayText;nn().flowchart.htmlLabels&&(B=B.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const Z=_.node().appendChild(await nS(B,G.cssStyle?G.cssStyle:t.labelStyle,!0,!0));let z=Z.getBBox();if(nh(nn().flowchart.htmlLabels)){const Y=Z.children[0],W=gn(Z);z=Y.getBoundingClientRect(),W.attr("width",z.width),W.attr("height",z.height)}z.width>m&&(m=z.width),b+=z.height+a,M.push(Z)}),b+=s,S){let $=(m-k.width)/2;gn(A).attr("transform","translate( "+(-1*m/2+$)+", "+-1*b/2+")"),w=k.height+a}let F=(m-L.width)/2;return gn(N).attr("transform","translate( "+(-1*m/2+F)+", "+(-1*b/2+w)+")"),w+=L.height+a,f.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,P.forEach($=>{gn($).attr("transform","translate( "+-m/2+", "+(-1*b/2+w+s/2)+")");const G=$==null?void 0:$.getBBox();w+=((G==null?void 0:G.height)??0)+a}),w+=s,p.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,M.forEach($=>{gn($).attr("transform","translate( "+-m/2+", "+(-1*b/2+w)+")");const G=$==null?void 0:$.getBBox();w+=((G==null?void 0:G.height)??0)+a}),h.attr("style",t.style).attr("class","outer title-state").attr("x",-m/2-r).attr("y",-(b/2)-r).attr("width",m+t.padding).attr("height",b+t.padding),d0(t,h),t.intersect=function($){return Qd.rect(t,$)},u},"class_box"),GTn={rhombus:UTn,composite:KJi,question:UTn,rect:WJi,labelRect:XJi,rectWithTitle:QJi,choice:FJi,circle:JJi,doublecircle:eea,stadium:ZJi,hexagon:$Ji,block_arrow:UJi,rect_left_inv_arrow:zJi,lean_right:GJi,lean_left:qJi,trapezoid:HJi,inv_trapezoid:VJi,rect_right_inv_arrow:YJi,cylinder:jJi,start:nea,end:rea,note:BJi,subroutine:tea,fork:zTn,join:zTn,class_box:iea},Jxe={},cQn=X(async(e,t,r)=>{let a,s;if(t.link){let o;nn().securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o),s=await GTn[t.shape](a,t,r)}else s=await GTn[t.shape](e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),Jxe[t.id]=a,t.haveCallback&&Jxe[t.id].attr("class",Jxe[t.id].attr("class")+" clickable"),a},"insertNode"),aea=X(e=>{const t=Jxe[e.id];it.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},"positionNode");function dbt(e,t,r=!1){var _,w,S;const a=e;let s="default";(((_=a==null?void 0:a.classes)==null?void 0:_.length)||0)>0&&(s=((a==null?void 0:a.classes)??[]).join(" ")),s=s+" flowchart-label";let o=0,u="",h;switch(a.type){case"round":o=5,u="rect";break;case"composite":o=0,u="composite",h=0;break;case"square":u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"group":u="rect";break;case"doublecircle":u="doublecircle";break;default:u="rect"}const f=F1t((a==null?void 0:a.styles)??[]),p=a.label,m=a.size??{width:0,height:0,x:0,y:0};return{labelStyle:f.labelStyle,shape:u,labelText:p,rx:o,ry:o,class:s,style:f.style,id:a.id,directions:a.directions,width:m.width,height:m.height,x:m.x,y:m.y,positioned:r,intersect:void 0,type:a.type,padding:h??((S=(w=$c())==null?void 0:w.block)==null?void 0:S.padding)??0}}X(dbt,"getNodeFromBlock");async function uQn(e,t,r){const a=dbt(t,r,!1);if(a.type==="group")return;const s=$c(),o=await cQn(e,a,{config:s}),u=o.node().getBBox(),h=r.getBlock(a.id);h.size={width:u.width,height:u.height,x:0,y:0,node:o},r.setBlock(h),o.remove()}X(uQn,"calculateBlockSize");async function hQn(e,t,r){const a=dbt(t,r,!0);if(r.getBlock(a.id).type!=="space"){const o=$c();await cQn(e,a,{config:o}),t.intersect=a==null?void 0:a.intersect,aea(a)}}X(hQn,"insertBlockPositioned");async function a6e(e,t,r,a){for(const s of t)await a(e,s,r),s.children&&await a6e(e,s.children,r,a)}X(a6e,"performOperations");async function dQn(e,t,r){await a6e(e,t,r,uQn)}X(dQn,"calculateBlockSizes");async function fQn(e,t,r){await a6e(e,t,r,hQn)}X(fQn,"insertBlocks");async function pQn(e,t,r,a,s){const o=new c_({multigraph:!0,compound:!0});o.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of r)u.size&&o.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of t)if(u.start&&u.end){const h=a.getBlock(u.start),f=a.getBlock(u.end);if(h!=null&&h.size&&(f!=null&&f.size)){const p=h.size,m=f.size,b=[{x:p.x,y:p.y},{x:p.x+(m.x-p.x)/2,y:p.y+(m.y-p.y)/2},{x:m.x,y:m.y}];AJi(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",o,s),u.label&&(await xJi(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),SJi({...u,x:b[1].x,y:b[1].y},{originalPath:b}))}}}X(pQn,"insertEdges");var sea=X(function(e,t){return t.db.getClasses()},"getClasses"),oea=X(async function(e,t,r,a){const{securityLevel:s,block:o}=$c(),u=a.db;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`);yJi(p,["point","circle","cross"],a.type,t);const b=u.getBlocks(),_=u.getBlocksFlat(),w=u.getEdges(),S=p.insert("g").attr("class","block");await dQn(S,b,u);const C=tQn(u);if(await fQn(S,b,u),await pQn(S,w,_,u,t),C){const A=C,k=Math.max(1,Math.round(.125*(A.width/A.height))),I=A.height+k+10,N=A.width+10,{useMaxWidth:L}=o;yv(p,I,N,!!L),it.debug("Here Bounds",C,A),p.attr("viewBox",`${A.x-5} ${A.y-5} ${A.width+10} ${A.height+10}`)}},"draw"),lea={draw:oea,getClasses:sea},cea={parser:$Zi,db:iJi,renderer:lea,styles:sJi};const uea=Object.freeze(Object.defineProperty({__proto__:null,diagram:cea},Symbol.toStringTag,{value:"Module"}));var gQn={exports:{}},aat={exports:{}},sat={exports:{}},qTn;function hea(){return qTn||(qTn=1,function(e,t){(function(a,s){e.exports=s()})(ml,function(){return function(r){var a={};function s(o){if(a[o])return a[o].exports;var u=a[o]={i:o,l:!1,exports:{}};return r[o].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=r,s.c=a,s.i=function(o){return o},s.d=function(o,u,h){s.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:h})},s.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(u,"a",u),u},s.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},s.p="",s(s.s=28)}([function(r,a,s){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,r.exports=o},function(r,a,s){var o=s(2),u=s(8),h=s(9);function f(m,b,_){o.call(this,_),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=_,this.bendpoints=[],this.source=m,this.target=b}f.prototype=Object.create(o.prototype);for(var p in o)f[p]=o[p];f.prototype.getSource=function(){return this.source},f.prototype.getTarget=function(){return this.target},f.prototype.isInterGraph=function(){return this.isInterGraph},f.prototype.getLength=function(){return this.length},f.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},f.prototype.getBendpoints=function(){return this.bendpoints},f.prototype.getLca=function(){return this.lca},f.prototype.getSourceInLca=function(){return this.sourceInLca},f.prototype.getTargetInLca=function(){return this.targetInLca},f.prototype.getOtherEnd=function(m){if(this.source===m)return this.target;if(this.target===m)return this.source;throw"Node is not incident with this edge"},f.prototype.getOtherEndInGraph=function(m,b){for(var _=this.getOtherEnd(m),w=b.getGraphManager().getRoot();;){if(_.getOwner()==b)return _;if(_.getOwner()==w)break;_=_.getOwner().getParent()}return null},f.prototype.updateLength=function(){var m=new Array(4);this.isOverlapingSourceAndTarget=u.getIntersection(this.target.getRect(),this.source.getRect(),m),this.isOverlapingSourceAndTarget||(this.lengthX=m[0]-m[2],this.lengthY=m[1]-m[3],Math.abs(this.lengthX)<1&&(this.lengthX=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},f.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=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=f},function(r,a,s){function o(u){this.vGraphObject=u}r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(13),f=s(0),p=s(16),m=s(5);function b(w,S,C,A){C==null&&A==null&&(A=S),o.call(this,A),w.graphManager!=null&&(w=w.graphManager),this.estimatedSize=u.MIN_VALUE,this.inclusionTreeDepth=u.MAX_VALUE,this.vGraphObject=A,this.edges=[],this.graphManager=w,C!=null&&S!=null?this.rect=new h(S.x,S.y,C.width,C.height):this.rect=new h}b.prototype=Object.create(o.prototype);for(var _ in o)b[_]=o[_];b.prototype.getEdges=function(){return this.edges},b.prototype.getChild=function(){return this.child},b.prototype.getOwner=function(){return this.owner},b.prototype.getWidth=function(){return this.rect.width},b.prototype.setWidth=function(w){this.rect.width=w},b.prototype.getHeight=function(){return this.rect.height},b.prototype.setHeight=function(w){this.rect.height=w},b.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},b.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},b.prototype.getCenter=function(){return new m(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},b.prototype.getLocation=function(){return new m(this.rect.x,this.rect.y)},b.prototype.getRect=function(){return this.rect},b.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},b.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},b.prototype.setRect=function(w,S){this.rect.x=w.x,this.rect.y=w.y,this.rect.width=S.width,this.rect.height=S.height},b.prototype.setCenter=function(w,S){this.rect.x=w-this.rect.width/2,this.rect.y=S-this.rect.height/2},b.prototype.setLocation=function(w,S){this.rect.x=w,this.rect.y=S},b.prototype.moveBy=function(w,S){this.rect.x+=w,this.rect.y+=S},b.prototype.getEdgeListToNode=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(A.target==w){if(A.source!=C)throw"Incorrect edge source!";S.push(A)}}),S},b.prototype.getEdgesBetween=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(!(A.source==C||A.target==C))throw"Incorrect edge source and/or target";(A.target==w||A.source==w)&&S.push(A)}),S},b.prototype.getNeighborsList=function(){var w=new Set,S=this;return S.edges.forEach(function(C){if(C.source==S)w.add(C.target);else{if(C.target!=S)throw"Incorrect incidency!";w.add(C.source)}}),w},b.prototype.withChildren=function(){var w=new Set,S,C;if(w.add(this),this.child!=null)for(var A=this.child.getNodes(),k=0;k<A.length;k++)S=A[k],C=S.withChildren(),C.forEach(function(I){w.add(I)});return w},b.prototype.getNoOfChildren=function(){var w=0,S;if(this.child==null)w=1;else for(var C=this.child.getNodes(),A=0;A<C.length;A++)S=C[A],w+=S.getNoOfChildren();return w==0&&(w=1),w},b.prototype.getEstimatedSize=function(){if(this.estimatedSize==u.MIN_VALUE)throw"assert failed";return this.estimatedSize},b.prototype.calcEstimatedSize=function(){return this.child==null?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)},b.prototype.scatter=function(){var w,S,C=-f.INITIAL_WORLD_BOUNDARY,A=f.INITIAL_WORLD_BOUNDARY;w=f.WORLD_CENTER_X+p.nextDouble()*(A-C)+C;var k=-f.INITIAL_WORLD_BOUNDARY,I=f.INITIAL_WORLD_BOUNDARY;S=f.WORLD_CENTER_Y+p.nextDouble()*(I-k)+k,this.rect.x=w,this.rect.y=S},b.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var w=this.getChild();if(w.updateBounds(!0),this.rect.x=w.getLeft(),this.rect.y=w.getTop(),this.setWidth(w.getRight()-w.getLeft()),this.setHeight(w.getBottom()-w.getTop()),f.NODE_DIMENSIONS_INCLUDE_LABELS){var S=w.getRight()-w.getLeft(),C=w.getBottom()-w.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(S+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>S?(this.rect.x-=(this.labelWidth-S)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(S+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(C+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>C?(this.rect.y-=(this.labelHeight-C)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(C+this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==u.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(w){var S=this.rect.x;S>f.WORLD_BOUNDARY?S=f.WORLD_BOUNDARY:S<-f.WORLD_BOUNDARY&&(S=-f.WORLD_BOUNDARY);var C=this.rect.y;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var A=new m(S,C),k=w.inverseTransformPoint(A);this.setLocation(k.x,k.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b},function(r,a,s){var o=s(0);function u(){}for(var h in o)u[h]=o[h];u.MAX_ITERATIONS=2500,u.DEFAULT_EDGE_LENGTH=50,u.DEFAULT_SPRING_STRENGTH=.45,u.DEFAULT_REPULSION_STRENGTH=4500,u.DEFAULT_GRAVITY_STRENGTH=.4,u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,u.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,u.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,u.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,u.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,u.COOLING_ADAPTATION_FACTOR=.33,u.ADAPTATION_LOWER_NODE_LIMIT=1e3,u.ADAPTATION_UPPER_NODE_LIMIT=5e3,u.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,u.MAX_NODE_DISPLACEMENT=u.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,u.CONVERGENCE_CHECK_PERIOD=100,u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,u.MIN_EDGE_LENGTH=1,u.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=u},function(r,a,s){function o(u,h){u==null&&h==null?(this.x=0,this.y=0):(this.x=u,this.y=h)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(u){this.x=u},o.prototype.setY=function(u){this.y=u},o.prototype.getDifference=function(u){return new DimensionD(this.x-u.x,this.y-u.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(u){return this.x+=u.width,this.y+=u.height,this},r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(0),f=s(7),p=s(3),m=s(1),b=s(13),_=s(12),w=s(11);function S(A,k,I){o.call(this,I),this.estimatedSize=u.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=A,k!=null&&k instanceof f?this.graphManager=k:k!=null&&k instanceof Layout&&(this.graphManager=k.graphManager)}S.prototype=Object.create(o.prototype);for(var C in o)S[C]=o[C];S.prototype.getNodes=function(){return this.nodes},S.prototype.getEdges=function(){return this.edges},S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getParent=function(){return this.parent},S.prototype.getLeft=function(){return this.left},S.prototype.getRight=function(){return this.right},S.prototype.getTop=function(){return this.top},S.prototype.getBottom=function(){return this.bottom},S.prototype.isConnected=function(){return this.isConnected},S.prototype.add=function(A,k,I){if(k==null&&I==null){var N=A;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(N)>-1)throw"Node already in graph!";return N.owner=this,this.getNodes().push(N),N}else{var L=A;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(I)>-1))throw"Source or target not in graph!";if(!(k.owner==I.owner&&k.owner==this))throw"Both owners must be this graph!";return k.owner!=I.owner?null:(L.source=k,L.target=I,L.isInterGraph=!1,this.getEdges().push(L),k.edges.push(L),I!=k&&I.edges.push(L),L)}},S.prototype.remove=function(A){var k=A;if(A instanceof p){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var I=k.edges.slice(),N,L=I.length,P=0;P<L;P++)N=I[P],N.isInterGraph?this.graphManager.remove(N):N.source.owner.remove(N);var M=this.nodes.indexOf(k);if(M==-1)throw"Node not in owner node list!";this.nodes.splice(M,1)}else if(A instanceof m){var N=A;if(N==null)throw"Edge is null!";if(!(N.source!=null&&N.target!=null))throw"Source and/or target is null!";if(!(N.source.owner!=null&&N.target.owner!=null&&N.source.owner==this&&N.target.owner==this))throw"Source and/or target owner is invalid!";var F=N.source.edges.indexOf(N),U=N.target.edges.indexOf(N);if(!(F>-1&&U>-1))throw"Source and/or target doesn't know this edge!";N.source.edges.splice(F,1),N.target!=N.source&&N.target.edges.splice(U,1);var M=N.source.owner.getEdges().indexOf(N);if(M==-1)throw"Not in owner's edge list!";N.source.owner.getEdges().splice(M,1)}},S.prototype.updateLeftTop=function(){for(var A=u.MAX_VALUE,k=u.MAX_VALUE,I,N,L,P=this.getNodes(),M=P.length,F=0;F<M;F++){var U=P[F];I=U.getTop(),N=U.getLeft(),A>I&&(A=I),k>N&&(k=N)}return A==u.MAX_VALUE?null:(P[0].getParent().paddingLeft!=null?L=P[0].getParent().paddingLeft:L=this.margin,this.left=k-L,this.top=A-L,new _(this.left,this.top))},S.prototype.updateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$,G=this.nodes,B=G.length,Z=0;Z<B;Z++){var z=G[Z];A&&z.child!=null&&z.updateBounds(),P=z.getLeft(),M=z.getRight(),F=z.getTop(),U=z.getBottom(),k>P&&(k=P),I<M&&(I=M),N>F&&(N=F),L<U&&(L=U)}var Y=new b(k,N,I-k,L-N);k==u.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),G[0].getParent().paddingLeft!=null?$=G[0].getParent().paddingLeft:$=this.margin,this.left=Y.x-$,this.right=Y.x+Y.width+$,this.top=Y.y-$,this.bottom=Y.y+Y.height+$},S.calculateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$=A.length,G=0;G<$;G++){var B=A[G];P=B.getLeft(),M=B.getRight(),F=B.getTop(),U=B.getBottom(),k>P&&(k=P),I<M&&(I=M),N>F&&(N=F),L<U&&(L=U)}var Z=new b(k,N,I-k,L-N);return Z},S.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},S.prototype.getEstimatedSize=function(){if(this.estimatedSize==u.MIN_VALUE)throw"assert failed";return this.estimatedSize},S.prototype.calcEstimatedSize=function(){for(var A=0,k=this.nodes,I=k.length,N=0;N<I;N++){var L=k[N];A+=L.calcEstimatedSize()}return A==0?this.estimatedSize=h.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=A/Math.sqrt(this.nodes.length),this.estimatedSize},S.prototype.updateConnected=function(){var A=this;if(this.nodes.length==0){this.isConnected=!0;return}var k=new w,I=new Set,N=this.nodes[0],L,P,M=N.withChildren();for(M.forEach(function(Z){k.push(Z),I.add(Z)});k.length!==0;){N=k.shift(),L=N.getEdges();for(var F=L.length,U=0;U<F;U++){var $=L[U];if(P=$.getOtherEndInGraph(N,this),P!=null&&!I.has(P)){var G=P.withChildren();G.forEach(function(Z){k.push(Z),I.add(Z)})}}}if(this.isConnected=!1,I.size>=this.nodes.length){var B=0;I.forEach(function(Z){Z.owner==A&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},r.exports=S},function(r,a,s){var o,u=s(1);function h(f){o=s(6),this.layout=f,this.graphs=[],this.edges=[]}h.prototype.addRoot=function(){var f=this.layout.newGraph(),p=this.layout.newNode(null),m=this.add(f,p);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,p,m,b,_){if(m==null&&b==null&&_==null){if(f==null)throw"Graph is null!";if(p==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(p.child!=null)throw"Already has a child!";return f.parent=p,p.child=f,f}else{_=m,b=p,m=f;var w=b.getOwner(),S=_.getOwner();if(!(w!=null&&w.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(S!=null&&S.getGraphManager()==this))throw"Target not in this graph mgr!";if(w==S)return m.isInterGraph=!1,w.add(m,b,_);if(m.isInterGraph=!0,m.source=b,m.target=_,this.edges.indexOf(m)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(m),!(m.source!=null&&m.target!=null))throw"Edge source and/or target is null!";if(!(m.source.edges.indexOf(m)==-1&&m.target.edges.indexOf(m)==-1))throw"Edge already in source and/or target incidency list!";return m.source.edges.push(m),m.target.edges.push(m),m}},h.prototype.remove=function(f){if(f instanceof o){var p=f;if(p.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(p==this.rootGraph||p.parent!=null&&p.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(p.getEdges());for(var b,_=m.length,w=0;w<_;w++)b=m[w],p.remove(b);var S=[];S=S.concat(p.getNodes());var C;_=S.length;for(var w=0;w<_;w++)C=S[w],p.remove(C);p==this.rootGraph&&this.setRootGraph(null);var A=this.graphs.indexOf(p);this.graphs.splice(A,1),p.parent=null}else if(f instanceof u){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var A=b.source.edges.indexOf(b);if(b.source.edges.splice(A,1),A=b.target.edges.indexOf(b),b.target.edges.splice(A,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var A=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(A,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],p=this.getGraphs(),m=p.length,b=0;b<m;b++)f=f.concat(p[b].getNodes());this.allNodes=f}return this.allNodes},h.prototype.resetAllNodes=function(){this.allNodes=null},h.prototype.resetAllEdges=function(){this.allEdges=null},h.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},h.prototype.getAllEdges=function(){if(this.allEdges==null){var f=[],p=this.getGraphs();p.length;for(var m=0;m<p.length;m++)f=f.concat(p[m].getEdges());f=f.concat(this.edges),this.allEdges=f}return this.allEdges},h.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},h.prototype.setAllNodesToApplyGravitation=function(f){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=f},h.prototype.getRoot=function(){return this.rootGraph},h.prototype.setRootGraph=function(f){if(f.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=f,f.parent==null&&(f.parent=this.layout.newNode("Root node"))},h.prototype.getLayout=function(){return this.layout},h.prototype.isOneAncestorOfOther=function(f,p){if(!(f!=null&&p!=null))throw"assert failed";if(f==p)return!0;var m=f.getOwner(),b;do{if(b=m.getParent(),b==null)break;if(b==p)return!0;if(m=b.getOwner(),m==null)break}while(!0);m=p.getOwner();do{if(b=m.getParent(),b==null)break;if(b==f)return!0;if(m=b.getOwner(),m==null)break}while(!0);return!1},h.prototype.calcLowestCommonAncestors=function(){for(var f,p,m,b,_,w=this.getAllEdges(),S=w.length,C=0;C<S;C++){if(f=w[C],p=f.source,m=f.target,f.lca=null,f.sourceInLca=p,f.targetInLca=m,p==m){f.lca=p.getOwner();continue}for(b=p.getOwner();f.lca==null;){for(f.targetInLca=m,_=m.getOwner();f.lca==null;){if(_==b){f.lca=_;break}if(_==this.rootGraph)break;if(f.lca!=null)throw"assert failed";f.targetInLca=_.getParent(),_=f.targetInLca.getOwner()}if(b==this.rootGraph)break;f.lca==null&&(f.sourceInLca=b.getParent(),b=f.sourceInLca.getOwner())}if(f.lca==null)throw"assert failed"}},h.prototype.calcLowestCommonAncestor=function(f,p){if(f==p)return f.getOwner();var m=f.getOwner();do{if(m==null)break;var b=p.getOwner();do{if(b==null)break;if(b==m)return b;b=b.getParent().getOwner()}while(!0);m=m.getParent().getOwner()}while(!0);return m},h.prototype.calcInclusionTreeDepths=function(f,p){f==null&&p==null&&(f=this.rootGraph,p=1);for(var m,b=f.getNodes(),_=b.length,w=0;w<_;w++)m=b[w],m.inclusionTreeDepth=p,m.child!=null&&this.calcInclusionTreeDepths(m.child,p+1)},h.prototype.includesInvalidEdge=function(){for(var f,p=[],m=this.edges.length,b=0;b<m;b++)f=this.edges[b],this.isOneAncestorOfOther(f.source,f.target)&&p.push(f);for(var b=0;b<p.length;b++)this.remove(p[b]);return!1},r.exports=h},function(r,a,s){var o=s(12);function u(){}u.calcSeparationAmount=function(h,f,p,m){if(!h.intersects(f))throw"assert failed";var b=new Array(2);this.decideDirectionsForOverlappingNodes(h,f,b),p[0]=Math.min(h.getRight(),f.getRight())-Math.max(h.x,f.x),p[1]=Math.min(h.getBottom(),f.getBottom())-Math.max(h.y,f.y),h.getX()<=f.getX()&&h.getRight()>=f.getRight()?p[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(p[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?p[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(p[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var _=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(_=1);var w=_*p[0],S=p[1]/_;p[0]<S?S=p[0]:w=p[1],p[0]=-1*b[0]*(S/2+m),p[1]=-1*b[1]*(w/2+m)},u.decideDirectionsForOverlappingNodes=function(h,f,p){h.getCenterX()<f.getCenterX()?p[0]=-1:p[0]=1,h.getCenterY()<f.getCenterY()?p[1]=-1:p[1]=1},u.getIntersection2=function(h,f,p){var m=h.getCenterX(),b=h.getCenterY(),_=f.getCenterX(),w=f.getCenterY();if(h.intersects(f))return p[0]=m,p[1]=b,p[2]=_,p[3]=w,!0;var S=h.getX(),C=h.getY(),A=h.getRight(),k=h.getX(),I=h.getBottom(),N=h.getRight(),L=h.getWidthHalf(),P=h.getHeightHalf(),M=f.getX(),F=f.getY(),U=f.getRight(),$=f.getX(),G=f.getBottom(),B=f.getRight(),Z=f.getWidthHalf(),z=f.getHeightHalf(),Y=!1,W=!1;if(m===_){if(b>w)return p[0]=m,p[1]=C,p[2]=_,p[3]=G,!1;if(b<w)return p[0]=m,p[1]=I,p[2]=_,p[3]=F,!1}else if(b===w){if(m>_)return p[0]=S,p[1]=b,p[2]=U,p[3]=w,!1;if(m<_)return p[0]=A,p[1]=b,p[2]=M,p[3]=w,!1}else{var Q=h.height/h.width,V=f.height/f.width,j=(w-b)/(_-m),ee=void 0,te=void 0,ne=void 0,se=void 0,ie=void 0,ge=void 0;if(-Q===j?m>_?(p[0]=k,p[1]=I,Y=!0):(p[0]=A,p[1]=C,Y=!0):Q===j&&(m>_?(p[0]=S,p[1]=C,Y=!0):(p[0]=N,p[1]=I,Y=!0)),-V===j?_>m?(p[2]=$,p[3]=G,W=!0):(p[2]=U,p[3]=F,W=!0):V===j&&(_>m?(p[2]=M,p[3]=F,W=!0):(p[2]=B,p[3]=G,W=!0)),Y&&W)return!1;if(m>_?b>w?(ee=this.getCardinalDirection(Q,j,4),te=this.getCardinalDirection(V,j,2)):(ee=this.getCardinalDirection(-Q,j,3),te=this.getCardinalDirection(-V,j,1)):b>w?(ee=this.getCardinalDirection(-Q,j,1),te=this.getCardinalDirection(-V,j,3)):(ee=this.getCardinalDirection(Q,j,2),te=this.getCardinalDirection(V,j,4)),!Y)switch(ee){case 1:se=C,ne=m+-P/j,p[0]=ne,p[1]=se;break;case 2:ne=N,se=b+L*j,p[0]=ne,p[1]=se;break;case 3:se=I,ne=m+P/j,p[0]=ne,p[1]=se;break;case 4:ne=k,se=b+-L*j,p[0]=ne,p[1]=se;break}if(!W)switch(te){case 1:ge=F,ie=_+-z/j,p[2]=ie,p[3]=ge;break;case 2:ie=B,ge=w+Z*j,p[2]=ie,p[3]=ge;break;case 3:ge=G,ie=_+z/j,p[2]=ie,p[3]=ge;break;case 4:ie=$,ge=w+-Z*j,p[2]=ie,p[3]=ge;break}}return!1},u.getCardinalDirection=function(h,f,p){return h>f?p:1+p%4},u.getIntersection=function(h,f,p,m){if(m==null)return this.getIntersection2(h,f,p);var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=void 0,L=void 0,P=void 0,M=void 0,F=void 0,U=void 0,$=void 0,G=void 0,B=void 0;return P=S-_,F=b-w,$=w*_-b*S,M=I-A,U=C-k,G=k*A-C*I,B=P*U-M*F,B===0?null:(N=(F*G-U*$)/B,L=(M*$-P*G)/B,new o(N,L))},u.angleOfVector=function(h,f,p,m){var b=void 0;return h!==p?(b=Math.atan((m-f)/(p-h)),p<h?b+=Math.PI:m<f&&(b+=this.TWO_PI)):m<f?b=this.ONE_AND_HALF_PI:b=this.HALF_PI,b},u.doIntersect=function(h,f,p,m){var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=(w-b)*(I-A)-(k-C)*(S-_);if(N===0)return!1;var L=((I-A)*(k-b)+(C-k)*(I-_))/N,P=((_-S)*(k-b)+(w-b)*(I-_))/N;return 0<L&&L<1&&0<P&&P<1},u.findCircleLineIntersections=function(h,f,p,m,b,_,w){var S=(p-h)*(p-h)+(m-f)*(m-f),C=2*((h-b)*(p-h)+(f-_)*(m-f)),A=(h-b)*(h-b)+(f-_)*(f-_)-w*w,k=C*C-4*S*A;if(k>=0){var I=(-C+Math.sqrt(C*C-4*S*A))/(2*S),N=(-C-Math.sqrt(C*C-4*S*A))/(2*S),L=null;return I>=0&&I<=1?[I]:N>=0&&N<=1?[N]:L}else return null},u.HALF_PI=.5*Math.PI,u.ONE_AND_HALF_PI=1.5*Math.PI,u.TWO_PI=2*Math.PI,u.THREE_PI=3*Math.PI,r.exports=u},function(r,a,s){function o(){}o.sign=function(u){return u>0?1:u<0?-1:0},o.floor=function(u){return u<0?Math.ceil(u):Math.floor(u)},o.ceil=function(u){return u<0?Math.floor(u):Math.ceil(u)},r.exports=o},function(r,a,s){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,r.exports=o},function(r,a,s){var o=function(){function b(_,w){for(var S=0;S<w.length;S++){var C=w[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,w,S){return w&&b(_.prototype,w),S&&b(_,S),_}}();function u(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var h=function(_){return{value:_,next:null,prev:null}},f=function(_,w,S,C){return _!==null?_.next=w:C.head=w,S!==null?S.prev=w:C.tail=w,w.prev=_,w.next=S,C.length++,w},p=function(_,w){var S=_.prev,C=_.next;return S!==null?S.next=C:w.head=C,C!==null?C.prev=S:w.tail=S,_.prev=_.next=null,w.length--,_},m=function(){function b(_){var w=this;u(this,b),this.length=0,this.head=null,this.tail=null,_!=null&&_.forEach(function(S){return w.push(S)})}return o(b,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(w,S){return f(S.prev,h(w),S,this)}},{key:"insertAfter",value:function(w,S){return f(S,h(w),S.next,this)}},{key:"insertNodeBefore",value:function(w,S){return f(S.prev,w,S,this)}},{key:"insertNodeAfter",value:function(w,S){return f(S,w,S.next,this)}},{key:"push",value:function(w){return f(this.tail,h(w),null,this)}},{key:"unshift",value:function(w){return f(null,h(w),this.head,this)}},{key:"remove",value:function(w){return p(w,this)}},{key:"pop",value:function(){return p(this.tail,this).value}},{key:"popNode",value:function(){return p(this.tail,this)}},{key:"shift",value:function(){return p(this.head,this).value}},{key:"shiftNode",value:function(){return p(this.head,this)}},{key:"get_object_at",value:function(w){if(w<=this.length()){for(var S=1,C=this.head;S<w;)C=C.next,S++;return C.value}}},{key:"set_object_at",value:function(w,S){if(w<=this.length()){for(var C=1,A=this.head;C<w;)A=A.next,C++;A.value=S}}}]),b}();r.exports=m},function(r,a,s){function o(u,h,f){this.x=null,this.y=null,u==null&&h==null&&f==null?(this.x=0,this.y=0):typeof u=="number"&&typeof h=="number"&&f==null?(this.x=u,this.y=h):u.constructor.name=="Point"&&h==null&&f==null&&(f=u,this.x=f.x,this.y=f.y)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.getLocation=function(){return new o(this.x,this.y)},o.prototype.setLocation=function(u,h,f){u.constructor.name=="Point"&&h==null&&f==null?(f=u,this.setLocation(f.x,f.y)):typeof u=="number"&&typeof h=="number"&&f==null&&(parseInt(u)==u&&parseInt(h)==h?this.move(u,h):(this.x=Math.floor(u+.5),this.y=Math.floor(h+.5)))},o.prototype.move=function(u,h){this.x=u,this.y=h},o.prototype.translate=function(u,h){this.x+=u,this.y+=h},o.prototype.equals=function(u){if(u.constructor.name=="Point"){var h=u;return this.x==h.x&&this.y==h.y}return this==u},o.prototype.toString=function(){return new o().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=o},function(r,a,s){function o(u,h,f,p){this.x=0,this.y=0,this.width=0,this.height=0,u!=null&&h!=null&&f!=null&&p!=null&&(this.x=u,this.y=h,this.width=f,this.height=p)}o.prototype.getX=function(){return this.x},o.prototype.setX=function(u){this.x=u},o.prototype.getY=function(){return this.y},o.prototype.setY=function(u){this.y=u},o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(u){this.width=u},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(u){this.height=u},o.prototype.getRight=function(){return this.x+this.width},o.prototype.getBottom=function(){return this.y+this.height},o.prototype.intersects=function(u){return!(this.getRight()<u.x||this.getBottom()<u.y||u.getRight()<this.x||u.getBottom()<this.y)},o.prototype.getCenterX=function(){return this.x+this.width/2},o.prototype.getMinX=function(){return this.getX()},o.prototype.getMaxX=function(){return this.getX()+this.width},o.prototype.getCenterY=function(){return this.y+this.height/2},o.prototype.getMinY=function(){return this.getY()},o.prototype.getMaxY=function(){return this.getY()+this.height},o.prototype.getWidthHalf=function(){return this.width/2},o.prototype.getHeightHalf=function(){return this.height/2},r.exports=o},function(r,a,s){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function u(){}u.lastID=0,u.createID=function(h){return u.isPrimitive(h)?h:(h.uniqueID!=null||(h.uniqueID=u.getString(),u.lastID++),h.uniqueID)},u.getString=function(h){return h==null&&(h=u.lastID),"Object#"+h},u.isPrimitive=function(h){var f=typeof h>"u"?"undefined":o(h);return h==null||f!="object"&&f!="function"},r.exports=u},function(r,a,s){function o(C){if(Array.isArray(C)){for(var A=0,k=Array(C.length);A<C.length;A++)k[A]=C[A];return k}else return Array.from(C)}var u=s(0),h=s(7),f=s(3),p=s(1),m=s(6),b=s(5),_=s(17),w=s(29);function S(C){w.call(this),this.layoutQuality=u.QUALITY,this.createBendsAsNeeded=u.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=u.DEFAULT_INCREMENTAL,this.animationOnLayout=u.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=u.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=u.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=u.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new h(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,C!=null&&(this.isRemoteUse=C)}S.RANDOM_SEED=1,S.prototype=Object.create(w.prototype),S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},S.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},S.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},S.prototype.newGraphManager=function(){var C=new h(this);return this.graphManager=C,C},S.prototype.newGraph=function(C){return new m(null,this.graphManager,C)},S.prototype.newNode=function(C){return new f(this.graphManager,C)},S.prototype.newEdge=function(C){return new p(null,null,C)},S.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},S.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var C;return this.checkLayoutSuccess()?C=!1:C=this.layout(),u.ANIMATE==="during"?!1:(C&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,C)},S.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},S.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var C=this.graphManager.getAllEdges(),A=0;A<C.length;A++)C[A];for(var k=this.graphManager.getRoot().getNodes(),A=0;A<k.length;A++)k[A];this.update(this.graphManager.getRoot())}},S.prototype.update=function(C){if(C==null)this.update2();else if(C instanceof f){var A=C;if(A.getChild()!=null)for(var k=A.getChild().getNodes(),I=0;I<k.length;I++)update(k[I]);if(A.vGraphObject!=null){var N=A.vGraphObject;N.update(A)}}else if(C instanceof p){var L=C;if(L.vGraphObject!=null){var P=L.vGraphObject;P.update(L)}}else if(C instanceof m){var M=C;if(M.vGraphObject!=null){var F=M.vGraphObject;F.update(M)}}},S.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=u.QUALITY,this.animationDuringLayout=u.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=u.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=u.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=u.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=u.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=u.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},S.prototype.transform=function(C){if(C==null)this.transform(new b(0,0));else{var A=new _,k=this.graphManager.getRoot().updateLeftTop();if(k!=null){A.setWorldOrgX(C.x),A.setWorldOrgY(C.y),A.setDeviceOrgX(k.x),A.setDeviceOrgY(k.y);for(var I=this.getAllNodes(),N,L=0;L<I.length;L++)N=I[L],N.transform(A)}}},S.prototype.positionNodesRandomly=function(C){if(C==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var A,k,I=C.getNodes(),N=0;N<I.length;N++)A=I[N],k=A.getChild(),k==null||k.getNodes().length==0?A.scatter():(this.positionNodesRandomly(k),A.updateBounds())},S.prototype.getFlatForest=function(){for(var C=[],A=!0,k=this.graphManager.getRoot().getNodes(),I=!0,N=0;N<k.length;N++)k[N].getChild()!=null&&(I=!1);if(!I)return C;var L=new Set,P=[],M=new Map,F=[];for(F=F.concat(k);F.length>0&&A;){for(P.push(F[0]);P.length>0&&A;){var U=P[0];P.splice(0,1),L.add(U);for(var $=U.getEdges(),N=0;N<$.length;N++){var G=$[N].getOtherEnd(U);if(M.get(U)!=G)if(!L.has(G))P.push(G),M.set(G,U);else{A=!1;break}}}if(!A)C=[];else{var B=[].concat(o(L));C.push(B);for(var N=0;N<B.length;N++){var Z=B[N],z=F.indexOf(Z);z>-1&&F.splice(z,1)}L=new Set,M=new Map}}return C},S.prototype.createDummyNodesForBendpoints=function(C){for(var A=[],k=C.source,I=this.graphManager.calcLowestCommonAncestor(C.source,C.target),N=0;N<C.bendpoints.length;N++){var L=this.newNode(null);L.setRect(new Point(0,0),new Dimension(1,1)),I.add(L);var P=this.newEdge(null);this.graphManager.add(P,k,L),A.add(L),k=L}var P=this.newEdge(null);return this.graphManager.add(P,k,C.target),this.edgeToDummyNodes.set(C,A),C.isInterGraph()?this.graphManager.remove(C):I.remove(C),A},S.prototype.createBendpointsFromDummyNodes=function(){var C=[];C=C.concat(this.graphManager.getAllEdges()),C=[].concat(o(this.edgeToDummyNodes.keys())).concat(C);for(var A=0;A<C.length;A++){var k=C[A];if(k.bendpoints.length>0){for(var I=this.edgeToDummyNodes.get(k),N=0;N<I.length;N++){var L=I[N],P=new b(L.getCenterX(),L.getCenterY()),M=k.bendpoints.get(N);M.x=P.x,M.y=P.y,L.getOwner().remove(L)}this.graphManager.add(k,k.source,k.target)}}},S.transform=function(C,A,k,I){if(k!=null&&I!=null){var N=A;if(C<=50){var L=A/k;N-=(A-L)/50*(50-C)}else{var P=A*I;N+=(P-A)/50*(C-50)}return N}else{var M,F;return C<=50?(M=9*A/500,F=A/10):(M=9*A/50,F=-8*A),M*C+F}},S.findCenterOfTree=function(C){var A=[];A=A.concat(C);var k=[],I=new Map,N=!1,L=null;(A.length==1||A.length==2)&&(N=!0,L=A[0]);for(var P=0;P<A.length;P++){var M=A[P],F=M.getNeighborsList().size;I.set(M,M.getNeighborsList().size),F==1&&k.push(M)}var U=[];for(U=U.concat(k);!N;){var $=[];$=$.concat(U),U=[];for(var P=0;P<A.length;P++){var M=A[P],G=A.indexOf(M);G>=0&&A.splice(G,1);var B=M.getNeighborsList();B.forEach(function(Y){if(k.indexOf(Y)<0){var W=I.get(Y),Q=W-1;Q==1&&U.push(Y),I.set(Y,Q)}})}k=k.concat(U),(A.length==1||A.length==2)&&(N=!0,L=A[0])}return L},S.prototype.setGraphManager=function(C){this.graphManager=C},r.exports=S},function(r,a,s){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},r.exports=o},function(r,a,s){var o=s(5);function u(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}u.prototype.getWorldOrgX=function(){return this.lworldOrgX},u.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},u.prototype.getWorldOrgY=function(){return this.lworldOrgY},u.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},u.prototype.getWorldExtX=function(){return this.lworldExtX},u.prototype.setWorldExtX=function(h){this.lworldExtX=h},u.prototype.getWorldExtY=function(){return this.lworldExtY},u.prototype.setWorldExtY=function(h){this.lworldExtY=h},u.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},u.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},u.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},u.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},u.prototype.getDeviceExtX=function(){return this.ldeviceExtX},u.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},u.prototype.getDeviceExtY=function(){return this.ldeviceExtY},u.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},u.prototype.transformX=function(h){var f=0,p=this.lworldExtX;return p!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/p),f},u.prototype.transformY=function(h){var f=0,p=this.lworldExtY;return p!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/p),f},u.prototype.inverseTransformX=function(h){var f=0,p=this.ldeviceExtX;return p!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/p),f},u.prototype.inverseTransformY=function(h){var f=0,p=this.ldeviceExtY;return p!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/p),f},u.prototype.inverseTransformPoint=function(h){var f=new o(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=u},function(r,a,s){function o(w){if(Array.isArray(w)){for(var S=0,C=Array(w.length);S<w.length;S++)C[S]=w[S];return C}else return Array.from(w)}var u=s(15),h=s(4),f=s(0),p=s(8),m=s(9);function b(){u.call(this),this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=h.MAX_ITERATIONS}b.prototype=Object.create(u.prototype);for(var _ in u)b[_]=u[_];b.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},b.prototype.calcIdealEdgeLengths=function(){for(var w,S,C,A,k,I,N,L=this.getGraphManager().getAllEdges(),P=0;P<L.length;P++)w=L[P],S=w.idealLength,w.isInterGraph&&(A=w.getSource(),k=w.getTarget(),I=w.getSourceInLca().getEstimatedSize(),N=w.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(w.idealLength+=I+N-2*f.SIMPLE_NODE_SIZE),C=w.getLca().getInclusionTreeDepth(),w.idealLength+=S*h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(A.getInclusionTreeDepth()+k.getInclusionTreeDepth()-2*C))},b.prototype.initSpringEmbedder=function(){var w=this.getAllNodes().length;this.incremental?(w>h.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(w>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var w=this.getAllEdges(),S,C=0;C<w.length;C++)S=w[C],this.calcSpringForce(S,S.idealLength)},b.prototype.calcRepulsionForces=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C,A,k,I,N=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&w&&this.updateGrid(),L=new Set,C=0;C<N.length;C++)k=N[C],this.calculateRepulsionForceOfANode(k,L,w,S),L.add(k);else for(C=0;C<N.length;C++)for(k=N[C],A=C+1;A<N.length;A++)I=N[A],k.getOwner()==I.getOwner()&&this.calcRepulsionForce(k,I)},b.prototype.calcGravitationalForces=function(){for(var w,S=this.getAllNodesToApplyGravitation(),C=0;C<S.length;C++)w=S[C],this.calcGravitationalForce(w)},b.prototype.moveNodes=function(){for(var w=this.getAllNodes(),S,C=0;C<w.length;C++)S=w[C],S.move()},b.prototype.calcSpringForce=function(w,S){var C=w.getSource(),A=w.getTarget(),k,I,N,L;if(this.uniformLeafNodeSizes&&C.getChild()==null&&A.getChild()==null)w.updateLengthSimple();else if(w.updateLength(),w.isOverlapingSourceAndTarget)return;k=w.getLength(),k!=0&&(I=w.edgeElasticity*(k-S),N=I*(w.lengthX/k),L=I*(w.lengthY/k),C.springForceX+=N,C.springForceY+=L,A.springForceX-=N,A.springForceY-=L)},b.prototype.calcRepulsionForce=function(w,S){var C=w.getRect(),A=S.getRect(),k=new Array(2),I=new Array(4),N,L,P,M,F,U,$;if(C.intersects(A)){p.calcSeparationAmount(C,A,k,h.DEFAULT_EDGE_LENGTH/2),U=2*k[0],$=2*k[1];var G=w.noOfChildren*S.noOfChildren/(w.noOfChildren+S.noOfChildren);w.repulsionForceX-=G*U,w.repulsionForceY-=G*$,S.repulsionForceX+=G*U,S.repulsionForceY+=G*$}else this.uniformLeafNodeSizes&&w.getChild()==null&&S.getChild()==null?(N=A.getCenterX()-C.getCenterX(),L=A.getCenterY()-C.getCenterY()):(p.getIntersection(C,A,I),N=I[2]-I[0],L=I[3]-I[1]),Math.abs(N)<h.MIN_REPULSION_DIST&&(N=m.sign(N)*h.MIN_REPULSION_DIST),Math.abs(L)<h.MIN_REPULSION_DIST&&(L=m.sign(L)*h.MIN_REPULSION_DIST),P=N*N+L*L,M=Math.sqrt(P),F=(w.nodeRepulsion/2+S.nodeRepulsion/2)*w.noOfChildren*S.noOfChildren/P,U=F*N/M,$=F*L/M,w.repulsionForceX-=U,w.repulsionForceY-=$,S.repulsionForceX+=U,S.repulsionForceY+=$},b.prototype.calcGravitationalForce=function(w){var S,C,A,k,I,N,L,P;S=w.getOwner(),C=(S.getRight()+S.getLeft())/2,A=(S.getTop()+S.getBottom())/2,k=w.getCenterX()-C,I=w.getCenterY()-A,N=Math.abs(k)+w.getWidth()/2,L=Math.abs(I)+w.getHeight()/2,w.getOwner()==this.graphManager.getRoot()?(P=S.getEstimatedSize()*this.gravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k,w.gravitationForceY=-this.gravityConstant*I)):(P=S.getEstimatedSize()*this.compoundGravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,w.gravitationForceY=-this.gravityConstant*I*this.compoundGravityConstant))},b.prototype.isConverged=function(){var w,S=!1;return this.totalIterations>this.maxIterations/3&&(S=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),w=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,w||S},b.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},b.prototype.calcNoOfChildrenForAllNodes=function(){for(var w,S=this.graphManager.getAllNodes(),C=0;C<S.length;C++)w=S[C],w.noOfChildren=w.getNoOfChildren()},b.prototype.calcGrid=function(w){var S=0,C=0;S=parseInt(Math.ceil((w.getRight()-w.getLeft())/this.repulsionRange)),C=parseInt(Math.ceil((w.getBottom()-w.getTop())/this.repulsionRange));for(var A=new Array(S),k=0;k<S;k++)A[k]=new Array(C);for(var k=0;k<S;k++)for(var I=0;I<C;I++)A[k][I]=new Array;return A},b.prototype.addNodeToGrid=function(w,S,C){var A=0,k=0,I=0,N=0;A=parseInt(Math.floor((w.getRect().x-S)/this.repulsionRange)),k=parseInt(Math.floor((w.getRect().width+w.getRect().x-S)/this.repulsionRange)),I=parseInt(Math.floor((w.getRect().y-C)/this.repulsionRange)),N=parseInt(Math.floor((w.getRect().height+w.getRect().y-C)/this.repulsionRange));for(var L=A;L<=k;L++)for(var P=I;P<=N;P++)this.grid[L][P].push(w),w.setGridCoordinates(A,k,I,N)},b.prototype.updateGrid=function(){var w,S,C=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),w=0;w<C.length;w++)S=C[w],this.addNodeToGrid(S,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},b.prototype.calculateRepulsionForceOfANode=function(w,S,C,A){if(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&C||A){var k=new Set;w.surrounding=new Array;for(var I,N=this.grid,L=w.startX-1;L<w.finishX+2;L++)for(var P=w.startY-1;P<w.finishY+2;P++)if(!(L<0||P<0||L>=N.length||P>=N[0].length)){for(var M=0;M<N[L][P].length;M++)if(I=N[L][P][M],!(w.getOwner()!=I.getOwner()||w==I)&&!S.has(I)&&!k.has(I)){var F=Math.abs(w.getCenterX()-I.getCenterX())-(w.getWidth()/2+I.getWidth()/2),U=Math.abs(w.getCenterY()-I.getCenterY())-(w.getHeight()/2+I.getHeight()/2);F<=this.repulsionRange&&U<=this.repulsionRange&&k.add(I)}}w.surrounding=[].concat(o(k))}for(L=0;L<w.surrounding.length;L++)this.calcRepulsionForce(w,w.surrounding[L])},b.prototype.calcRepulsionRange=function(){return 0},r.exports=b},function(r,a,s){var o=s(1),u=s(4);function h(p,m,b){o.call(this,p,m,b),this.idealLength=u.DEFAULT_EDGE_LENGTH,this.edgeElasticity=u.DEFAULT_SPRING_STRENGTH}h.prototype=Object.create(o.prototype);for(var f in o)h[f]=o[f];r.exports=h},function(r,a,s){var o=s(3),u=s(4);function h(p,m,b,_){o.call(this,p,m,b,_),this.nodeRepulsion=u.DEFAULT_REPULSION_STRENGTH,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=[]}h.prototype=Object.create(o.prototype);for(var f in o)h[f]=o[f];h.prototype.setGridCoordinates=function(p,m,b,_){this.startX=p,this.finishX=m,this.startY=b,this.finishY=_},r.exports=h},function(r,a,s){function o(u,h){this.width=0,this.height=0,u!==null&&h!==null&&(this.height=h,this.width=u)}o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(u){this.width=u},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(u){this.height=u},r.exports=o},function(r,a,s){var o=s(14);function u(){this.map={},this.keys=[]}u.prototype.put=function(h,f){var p=o.createID(h);this.contains(p)||(this.map[p]=f,this.keys.push(h))},u.prototype.contains=function(h){return o.createID(h),this.map[h]!=null},u.prototype.get=function(h){var f=o.createID(h);return this.map[f]},u.prototype.keySet=function(){return this.keys},r.exports=u},function(r,a,s){var o=s(14);function u(){this.set={}}u.prototype.add=function(h){var f=o.createID(h);this.contains(f)||(this.set[f]=h)},u.prototype.remove=function(h){delete this.set[o.createID(h)]},u.prototype.clear=function(){this.set={}},u.prototype.contains=function(h){return this.set[o.createID(h)]==h},u.prototype.isEmpty=function(){return this.size()===0},u.prototype.size=function(){return Object.keys(this.set).length},u.prototype.addAllTo=function(h){for(var f=Object.keys(this.set),p=f.length,m=0;m<p;m++)h.push(this.set[f[m]])},u.prototype.size=function(){return Object.keys(this.set).length},u.prototype.addAll=function(h){for(var f=h.length,p=0;p<f;p++){var m=h[p];this.add(m)}},r.exports=u},function(r,a,s){function o(){}o.multMat=function(u,h){for(var f=[],p=0;p<u.length;p++){f[p]=[];for(var m=0;m<h[0].length;m++){f[p][m]=0;for(var b=0;b<u[0].length;b++)f[p][m]+=u[p][b]*h[b][m]}}return f},o.transpose=function(u){for(var h=[],f=0;f<u[0].length;f++){h[f]=[];for(var p=0;p<u.length;p++)h[f][p]=u[p][f]}return h},o.multCons=function(u,h){for(var f=[],p=0;p<u.length;p++)f[p]=u[p]*h;return f},o.minusOp=function(u,h){for(var f=[],p=0;p<u.length;p++)f[p]=u[p]-h[p];return f},o.dotProduct=function(u,h){for(var f=0,p=0;p<u.length;p++)f+=u[p]*h[p];return f},o.mag=function(u){return Math.sqrt(this.dotProduct(u,u))},o.normalize=function(u){for(var h=[],f=this.mag(u),p=0;p<u.length;p++)h[p]=u[p]/f;return h},o.multGamma=function(u){for(var h=[],f=0,p=0;p<u.length;p++)f+=u[p];f*=-1/u.length;for(var m=0;m<u.length;m++)h[m]=f+u[m];return h},o.multL=function(u,h,f){for(var p=[],m=[],b=[],_=0;_<h[0].length;_++){for(var w=0,S=0;S<h.length;S++)w+=-.5*h[S][_]*u[S];m[_]=w}for(var C=0;C<f.length;C++){for(var A=0,k=0;k<f.length;k++)A+=f[C][k]*m[k];b[C]=A}for(var I=0;I<h.length;I++){for(var N=0,L=0;L<h[0].length;L++)N+=h[I][L]*b[L];p[I]=N}return p},r.exports=o},function(r,a,s){var o=function(){function p(m,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,b,_){return b&&p(m.prototype,b),_&&p(m,_),m}}();function u(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var h=s(11),f=function(){function p(m,b){u(this,p),(b!==null||b!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var _=void 0;m instanceof h?_=m.size():_=m.length,this._quicksort(m,0,_-1)}return o(p,[{key:"_quicksort",value:function(b,_,w){if(_<w){var S=this._partition(b,_,w);this._quicksort(b,_,S),this._quicksort(b,S+1,w)}}},{key:"_partition",value:function(b,_,w){for(var S=this._get(b,_),C=_,A=w;;){for(;this.compareFunction(S,this._get(b,A));)A--;for(;this.compareFunction(this._get(b,C),S);)C++;if(C<A)this._swap(b,C,A),C++,A--;else return A}}},{key:"_get",value:function(b,_){return b instanceof h?b.get_object_at(_):b[_]}},{key:"_set",value:function(b,_,w){b instanceof h?b.set_object_at(_,w):b[_]=w}},{key:"_swap",value:function(b,_,w){var S=this._get(b,_);this._set(b,_,this._get(b,w)),this._set(b,w,S)}},{key:"_defaultCompareFunction",value:function(b,_){return _>b}}]),p}();r.exports=f},function(r,a,s){function o(){}o.svd=function(u){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=u.length,this.n=u[0].length;var h=Math.min(this.m,this.n);this.s=function(Ln){for(var pr=[];Ln-- >0;)pr.push(0);return pr}(Math.min(this.m+1,this.n)),this.U=function(Ln){var pr=function Cr(Zr){if(Zr.length==0)return 0;for(var Pr=[],Ci=0;Ci<Zr[0];Ci++)Pr.push(Cr(Zr.slice(1)));return Pr};return pr(Ln)}([this.m,h]),this.V=function(Ln){var pr=function Cr(Zr){if(Zr.length==0)return 0;for(var Pr=[],Ci=0;Ci<Zr[0];Ci++)Pr.push(Cr(Zr.slice(1)));return Pr};return pr(Ln)}([this.n,this.n]);for(var f=function(Ln){for(var pr=[];Ln-- >0;)pr.push(0);return pr}(this.n),p=function(Ln){for(var pr=[];Ln-- >0;)pr.push(0);return pr}(this.m),m=!0,b=Math.min(this.m-1,this.n),_=Math.max(0,Math.min(this.n-2,this.m)),w=0;w<Math.max(b,_);w++){if(w<b){this.s[w]=0;for(var S=w;S<this.m;S++)this.s[w]=o.hypot(this.s[w],u[S][w]);if(this.s[w]!==0){u[w][w]<0&&(this.s[w]=-this.s[w]);for(var C=w;C<this.m;C++)u[C][w]/=this.s[w];u[w][w]+=1}this.s[w]=-this.s[w]}for(var A=w+1;A<this.n;A++){if(function(Ln,pr){return Ln&&pr}(w<b,this.s[w]!==0)){for(var k=0,I=w;I<this.m;I++)k+=u[I][w]*u[I][A];k=-k/u[w][w];for(var N=w;N<this.m;N++)u[N][A]+=k*u[N][w]}f[A]=u[w][A]}if(function(Ln,pr){return pr}(m,w<b))for(var L=w;L<this.m;L++)this.U[L][w]=u[L][w];if(w<_){f[w]=0;for(var P=w+1;P<this.n;P++)f[w]=o.hypot(f[w],f[P]);if(f[w]!==0){f[w+1]<0&&(f[w]=-f[w]);for(var M=w+1;M<this.n;M++)f[M]/=f[w];f[w+1]+=1}if(f[w]=-f[w],function(Ln,pr){return Ln&&pr}(w+1<this.m,f[w]!==0)){for(var F=w+1;F<this.m;F++)p[F]=0;for(var U=w+1;U<this.n;U++)for(var $=w+1;$<this.m;$++)p[$]+=f[U]*u[$][U];for(var G=w+1;G<this.n;G++)for(var B=-f[G]/f[w+1],Z=w+1;Z<this.m;Z++)u[Z][G]+=B*p[Z]}for(var z=w+1;z<this.n;z++)this.V[z][w]=f[z]}}var Y=Math.min(this.n,this.m+1);b<this.n&&(this.s[b]=u[b][b]),this.m<Y&&(this.s[Y-1]=0),_+1<Y&&(f[_]=u[_][Y-1]),f[Y-1]=0;{for(var W=b;W<h;W++){for(var Q=0;Q<this.m;Q++)this.U[Q][W]=0;this.U[W][W]=1}for(var V=b-1;V>=0;V--)if(this.s[V]!==0){for(var j=V+1;j<h;j++){for(var ee=0,te=V;te<this.m;te++)ee+=this.U[te][V]*this.U[te][j];ee=-ee/this.U[V][V];for(var ne=V;ne<this.m;ne++)this.U[ne][j]+=ee*this.U[ne][V]}for(var se=V;se<this.m;se++)this.U[se][V]=-this.U[se][V];this.U[V][V]=1+this.U[V][V];for(var ie=0;ie<V-1;ie++)this.U[ie][V]=0}else{for(var ge=0;ge<this.m;ge++)this.U[ge][V]=0;this.U[V][V]=1}}for(var ce=this.n-1;ce>=0;ce--){if(function(Ln,pr){return Ln&&pr}(ce<_,f[ce]!==0))for(var be=ce+1;be<h;be++){for(var ve=0,De=ce+1;De<this.n;De++)ve+=this.V[De][ce]*this.V[De][be];ve=-ve/this.V[ce+1][ce];for(var ye=ce+1;ye<this.n;ye++)this.V[ye][be]+=ve*this.V[ye][ce]}for(var Ee=0;Ee<this.n;Ee++)this.V[Ee][ce]=0;this.V[ce][ce]=1}for(var he=Y-1,we=Math.pow(2,-52),Ce=Math.pow(2,-966);Y>0;){var Ie=void 0,Le=void 0;for(Ie=Y-2;Ie>=-1&&Ie!==-1;Ie--)if(Math.abs(f[Ie])<=Ce+we*(Math.abs(this.s[Ie])+Math.abs(this.s[Ie+1]))){f[Ie]=0;break}if(Ie===Y-2)Le=4;else{var Fe=void 0;for(Fe=Y-1;Fe>=Ie&&Fe!==Ie;Fe--){var Ve=(Fe!==Y?Math.abs(f[Fe]):0)+(Fe!==Ie+1?Math.abs(f[Fe-1]):0);if(Math.abs(this.s[Fe])<=Ce+we*Ve){this.s[Fe]=0;break}}Fe===Ie?Le=3:Fe===Y-1?Le=1:(Le=2,Ie=Fe)}switch(Ie++,Le){case 1:{var Oe=f[Y-2];f[Y-2]=0;for(var Dt=Y-2;Dt>=Ie;Dt--){var ot=o.hypot(this.s[Dt],Oe),sn=this.s[Dt]/ot,Kt=Oe/ot;this.s[Dt]=ot,Dt!==Ie&&(Oe=-Kt*f[Dt-1],f[Dt-1]=sn*f[Dt-1]);for(var Ft=0;Ft<this.n;Ft++)ot=sn*this.V[Ft][Dt]+Kt*this.V[Ft][Y-1],this.V[Ft][Y-1]=-Kt*this.V[Ft][Dt]+sn*this.V[Ft][Y-1],this.V[Ft][Dt]=ot}}break;case 2:{var Je=f[Ie-1];f[Ie-1]=0;for(var ht=Ie;ht<Y;ht++){var et=o.hypot(this.s[ht],Je),qe=this.s[ht]/et,He=Je/et;this.s[ht]=et,Je=-He*f[ht],f[ht]=qe*f[ht];for(var Ge=0;Ge<this.m;Ge++)et=qe*this.U[Ge][ht]+He*this.U[Ge][Ie-1],this.U[Ge][Ie-1]=-He*this.U[Ge][ht]+qe*this.U[Ge][Ie-1],this.U[Ge][ht]=et}}break;case 3:{var Ye=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[Y-1]),Math.abs(this.s[Y-2])),Math.abs(f[Y-2])),Math.abs(this.s[Ie])),Math.abs(f[Ie])),Ae=this.s[Y-1]/Ye,Xe=this.s[Y-2]/Ye,fe=f[Y-2]/Ye,Qe=this.s[Ie]/Ye,Ke=f[Ie]/Ye,mt=((Xe+Ae)*(Xe-Ae)+fe*fe)/2,lt=Ae*fe*(Ae*fe),$t=0;(function(Ln,pr){return Ln||pr})(mt!==0,lt!==0)&&($t=Math.sqrt(mt*mt+lt),mt<0&&($t=-$t),$t=lt/(mt+$t));for(var Ut=(Qe+Ae)*(Qe-Ae)+$t,Jt=Qe*Ke,wn=Ie;wn<Y-1;wn++){var Vn=o.hypot(Ut,Jt),Wn=Ut/Vn,Dn=Jt/Vn;wn!==Ie&&(f[wn-1]=Vn),Ut=Wn*this.s[wn]+Dn*f[wn],f[wn]=Wn*f[wn]-Dn*this.s[wn],Jt=Dn*this.s[wn+1],this.s[wn+1]=Wn*this.s[wn+1];for(var zn=0;zn<this.n;zn++)Vn=Wn*this.V[zn][wn]+Dn*this.V[zn][wn+1],this.V[zn][wn+1]=-Dn*this.V[zn][wn]+Wn*this.V[zn][wn+1],this.V[zn][wn]=Vn;if(Vn=o.hypot(Ut,Jt),Wn=Ut/Vn,Dn=Jt/Vn,this.s[wn]=Vn,Ut=Wn*f[wn]+Dn*this.s[wn+1],this.s[wn+1]=-Dn*f[wn]+Wn*this.s[wn+1],Jt=Dn*f[wn+1],f[wn+1]=Wn*f[wn+1],wn<this.m-1)for(var vn=0;vn<this.m;vn++)Vn=Wn*this.U[vn][wn]+Dn*this.U[vn][wn+1],this.U[vn][wn+1]=-Dn*this.U[vn][wn]+Wn*this.U[vn][wn+1],this.U[vn][wn]=Vn}f[Y-2]=Ut}break;case 4:{if(this.s[Ie]<=0){this.s[Ie]=this.s[Ie]<0?-this.s[Ie]:0;for(var Cn=0;Cn<=he;Cn++)this.V[Cn][Ie]=-this.V[Cn][Ie]}for(;Ie<he&&!(this.s[Ie]>=this.s[Ie+1]);){var Ar=this.s[Ie];if(this.s[Ie]=this.s[Ie+1],this.s[Ie+1]=Ar,Ie<this.n-1)for(var ur=0;ur<this.n;ur++)Ar=this.V[ur][Ie+1],this.V[ur][Ie+1]=this.V[ur][Ie],this.V[ur][Ie]=Ar;if(Ie<this.m-1)for(var On=0;On<this.m;On++)Ar=this.U[On][Ie+1],this.U[On][Ie+1]=this.U[On][Ie],this.U[On][Ie]=Ar;Ie++}Y--}break}}var Ir={U:this.U,V:this.V,S:this.s};return Ir},o.hypot=function(u,h){var f=void 0;return Math.abs(u)>Math.abs(h)?(f=h/u,f=Math.abs(u)*Math.sqrt(1+f*f)):h!=0?(f=u/h,f=Math.abs(h)*Math.sqrt(1+f*f)):f=0,f},r.exports=o},function(r,a,s){var o=function(){function f(p,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,_.key,_)}}return function(p,m,b){return m&&f(p.prototype,m),b&&f(p,b),p}}();function u(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}var h=function(){function f(p,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;u(this,f),this.sequence1=p,this.sequence2=m,this.match_score=b,this.mismatch_penalty=_,this.gap_penalty=w,this.iMax=p.length+1,this.jMax=m.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 A=0;A<this.iMax;A++){this.tracebackGrid[A]=new Array(this.jMax);for(var k=0;k<this.jMax;k++)this.tracebackGrid[A][k]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return o(f,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var m=1;m<this.jMax;m++)this.grid[0][m]=this.grid[0][m-1]+this.gap_penalty,this.tracebackGrid[0][m]=[!1,!1,!0];for(var b=1;b<this.iMax;b++)this.grid[b][0]=this.grid[b-1][0]+this.gap_penalty,this.tracebackGrid[b][0]=[!1,!0,!1];for(var _=1;_<this.iMax;_++)for(var w=1;w<this.jMax;w++){var S=void 0;this.sequence1[_-1]===this.sequence2[w-1]?S=this.grid[_-1][w-1]+this.match_score:S=this.grid[_-1][w-1]+this.mismatch_penalty;var C=this.grid[_-1][w]+this.gap_penalty,A=this.grid[_][w-1]+this.gap_penalty,k=[S,C,A],I=this.arrayAllMaxIndexes(k);this.grid[_][w]=k[I[0]],this.tracebackGrid[_][w]=[I.includes(0),I.includes(1),I.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var m=[];for(m.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});m[0];){var b=m[0],_=this.tracebackGrid[b.pos[0]][b.pos[1]];_[0]&&m.push({pos:[b.pos[0]-1,b.pos[1]-1],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),_[1]&&m.push({pos:[b.pos[0]-1,b.pos[1]],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:"-"+b.seq2}),_[2]&&m.push({pos:[b.pos[0],b.pos[1]-1],seq1:"-"+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),b.pos[0]===0&&b.pos[1]===0&&this.alignments.push({sequence1:b.seq1,sequence2:b.seq2}),m.shift()}return this.alignments}},{key:"getAllIndexes",value:function(m,b){for(var _=[],w=-1;(w=m.indexOf(b,w+1))!==-1;)_.push(w);return _}},{key:"arrayAllMaxIndexes",value:function(m){return this.getAllIndexes(m,Math.max.apply(null,m))}}]),f}();r.exports=h},function(r,a,s){var o=function(){};o.FDLayout=s(18),o.FDLayoutConstants=s(4),o.FDLayoutEdge=s(19),o.FDLayoutNode=s(20),o.DimensionD=s(21),o.HashMap=s(22),o.HashSet=s(23),o.IGeometry=s(8),o.IMath=s(9),o.Integer=s(10),o.Point=s(12),o.PointD=s(5),o.RandomSeed=s(16),o.RectangleD=s(13),o.Transform=s(17),o.UniqueIDGeneretor=s(14),o.Quicksort=s(25),o.LinkedList=s(11),o.LGraphObject=s(2),o.LGraph=s(6),o.LEdge=s(1),o.LGraphManager=s(7),o.LNode=s(3),o.Layout=s(15),o.LayoutConstants=s(0),o.NeedlemanWunsch=s(27),o.Matrix=s(24),o.SVD=s(26),r.exports=o},function(r,a,s){function o(){this.listeners=[]}var u=o.prototype;u.addListener=function(h,f){this.listeners.push({event:h,callback:f})},u.removeListener=function(h,f){for(var p=this.listeners.length;p>=0;p--){var m=this.listeners[p];m.event===h&&m.callback===f&&this.listeners.splice(p,1)}},u.emit=function(h,f){for(var p=0;p<this.listeners.length;p++){var m=this.listeners[p];h===m.event&&m.callback(f)}},r.exports=o}])})}(sat)),sat.exports}var HTn;function dea(){return HTn||(HTn=1,function(e,t){(function(a,s){e.exports=s(hea())})(ml,function(r){return(()=>{var a={45:(h,f,p)=>{var m={};m.layoutBase=p(551),m.CoSEConstants=p(806),m.CoSEEdge=p(767),m.CoSEGraph=p(880),m.CoSEGraphManager=p(578),m.CoSELayout=p(765),m.CoSENode=p(991),m.ConstraintHandler=p(902),h.exports=m},806:(h,f,p)=>{var m=p(551).FDLayoutConstants;function b(){}for(var _ in m)b[_]=m[_];b.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,b.DEFAULT_RADIAL_SEPARATION=m.DEFAULT_EDGE_LENGTH,b.DEFAULT_COMPONENT_SEPERATION=60,b.TILE=!0,b.TILING_PADDING_VERTICAL=10,b.TILING_PADDING_HORIZONTAL=10,b.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,b.ENFORCE_CONSTRAINTS=!0,b.APPLY_LAYOUT=!0,b.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,b.TREE_REDUCTION_ON_INCREMENTAL=!0,b.PURE_INCREMENTAL=b.DEFAULT_INCREMENTAL,h.exports=b},767:(h,f,p)=>{var m=p(551).FDLayoutEdge;function b(w,S,C){m.call(this,w,S,C)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},880:(h,f,p)=>{var m=p(551).LGraph;function b(w,S,C){m.call(this,w,S,C)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},578:(h,f,p)=>{var m=p(551).LGraphManager;function b(w){m.call(this,w)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},765:(h,f,p)=>{var m=p(551).FDLayout,b=p(578),_=p(880),w=p(991),S=p(767),C=p(806),A=p(902),k=p(551).FDLayoutConstants,I=p(551).LayoutConstants,N=p(551).Point,L=p(551).PointD,P=p(551).DimensionD,M=p(551).Layout,F=p(551).Integer,U=p(551).IGeometry,$=p(551).LGraph,G=p(551).Transform,B=p(551).LinkedList;function Z(){m.call(this),this.toBeTiled={},this.constraints={}}Z.prototype=Object.create(m.prototype);for(var z in m)Z[z]=m[z];Z.prototype.newGraphManager=function(){var Y=new b(this);return this.graphManager=Y,Y},Z.prototype.newGraph=function(Y){return new _(null,this.graphManager,Y)},Z.prototype.newNode=function(Y){return new w(this.graphManager,Y)},Z.prototype.newEdge=function(Y){return new S(null,null,Y)},Z.prototype.initParameters=function(){m.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.gravityConstant=k.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=k.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=k.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},Z.prototype.initSpringEmbedder=function(){m.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/k.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},Z.prototype.layout=function(){var Y=I.DEFAULT_CREATE_BENDS_AS_NEEDED;return Y&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},Z.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){if(C.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var W=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(ee){return W.has(ee)});this.graphManager.setAllNodesToApplyGravitation(Q)}}else{var Y=this.getFlatForest();if(Y.length>0)this.positionNodesRadially(Y);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var W=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(V){return W.has(V)});this.graphManager.setAllNodesToApplyGravitation(Q),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(A.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),C.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},Z.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%k.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(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 Y=new Set(this.getAllNodes()),W=this.nodesWithGravity.filter(function(j){return Y.has(j)});this.graphManager.setAllNodesToApplyGravitation(W),this.graphManager.updateBounds(),this.updateGrid(),C.PURE_INCREMENTAL?this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=k.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()),C.PURE_INCREMENTAL?this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var Q=!this.isTreeGrowing&&!this.isGrowthFinished,V=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(Q,V),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Z.prototype.getPositionsData=function(){for(var Y=this.graphManager.getAllNodes(),W={},Q=0;Q<Y.length;Q++){var V=Y[Q].rect,j=Y[Q].id;W[j]={id:j,x:V.getCenterX(),y:V.getCenterY(),w:V.width,h:V.height}}return W},Z.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var Y=!1;if(k.ANIMATE==="during")this.emit("layoutstarted");else{for(;!Y;)Y=this.tick();this.graphManager.updateBounds()}},Z.prototype.moveNodes=function(){for(var Y=this.getAllNodes(),W,Q=0;Q<Y.length;Q++)W=Y[Q],W.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var Q=0;Q<Y.length;Q++)W=Y[Q],W.move()},Z.prototype.initConstraintVariables=function(){var Y=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var W=this.graphManager.getAllNodes(),Q=0;Q<W.length;Q++){var V=W[Q];this.idToNodeMap.set(V.id,V)}var j=function ye(Ee){for(var he=Ee.getChild().getNodes(),we,Ce=0,Ie=0;Ie<he.length;Ie++)we=he[Ie],we.getChild()==null?Y.fixedNodeSet.has(we.id)&&(Ce+=100):Ce+=ye(we);return Ce};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(he){Y.fixedNodeSet.add(he.nodeId)});for(var W=this.graphManager.getAllNodes(),V,Q=0;Q<W.length;Q++)if(V=W[Q],V.getChild()!=null){var ee=j(V);ee>0&&(V.fixedNodeWeight=ee)}}if(this.constraints.relativePlacementConstraint){var te=new Map,ne=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(ye){Y.fixedNodesOnHorizontal.add(ye),Y.fixedNodesOnVertical.add(ye)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var se=this.constraints.alignmentConstraint.vertical,Q=0;Q<se.length;Q++)this.dummyToNodeForVerticalAlignment.set("dummy"+Q,[]),se[Q].forEach(function(Ee){te.set(Ee,"dummy"+Q),Y.dummyToNodeForVerticalAlignment.get("dummy"+Q).push(Ee),Y.fixedNodeSet.has(Ee)&&Y.fixedNodesOnHorizontal.add("dummy"+Q)});if(this.constraints.alignmentConstraint.horizontal)for(var ie=this.constraints.alignmentConstraint.horizontal,Q=0;Q<ie.length;Q++)this.dummyToNodeForHorizontalAlignment.set("dummy"+Q,[]),ie[Q].forEach(function(Ee){ne.set(Ee,"dummy"+Q),Y.dummyToNodeForHorizontalAlignment.get("dummy"+Q).push(Ee),Y.fixedNodeSet.has(Ee)&&Y.fixedNodesOnVertical.add("dummy"+Q)})}if(C.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(ye){var Ee,he,we;for(we=ye.length-1;we>=2*ye.length/3;we--)Ee=Math.floor(Math.random()*(we+1)),he=ye[we],ye[we]=ye[Ee],ye[Ee]=he;return ye},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(ye){if(ye.left){var Ee=te.has(ye.left)?te.get(ye.left):ye.left,he=te.has(ye.right)?te.get(ye.right):ye.right;Y.nodesInRelativeHorizontal.includes(Ee)||(Y.nodesInRelativeHorizontal.push(Ee),Y.nodeToRelativeConstraintMapHorizontal.set(Ee,[]),Y.dummyToNodeForVerticalAlignment.has(Ee)?Y.nodeToTempPositionMapHorizontal.set(Ee,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(Ee)[0]).getCenterX()):Y.nodeToTempPositionMapHorizontal.set(Ee,Y.idToNodeMap.get(Ee).getCenterX())),Y.nodesInRelativeHorizontal.includes(he)||(Y.nodesInRelativeHorizontal.push(he),Y.nodeToRelativeConstraintMapHorizontal.set(he,[]),Y.dummyToNodeForVerticalAlignment.has(he)?Y.nodeToTempPositionMapHorizontal.set(he,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(he)[0]).getCenterX()):Y.nodeToTempPositionMapHorizontal.set(he,Y.idToNodeMap.get(he).getCenterX())),Y.nodeToRelativeConstraintMapHorizontal.get(Ee).push({right:he,gap:ye.gap}),Y.nodeToRelativeConstraintMapHorizontal.get(he).push({left:Ee,gap:ye.gap})}else{var we=ne.has(ye.top)?ne.get(ye.top):ye.top,Ce=ne.has(ye.bottom)?ne.get(ye.bottom):ye.bottom;Y.nodesInRelativeVertical.includes(we)||(Y.nodesInRelativeVertical.push(we),Y.nodeToRelativeConstraintMapVertical.set(we,[]),Y.dummyToNodeForHorizontalAlignment.has(we)?Y.nodeToTempPositionMapVertical.set(we,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(we)[0]).getCenterY()):Y.nodeToTempPositionMapVertical.set(we,Y.idToNodeMap.get(we).getCenterY())),Y.nodesInRelativeVertical.includes(Ce)||(Y.nodesInRelativeVertical.push(Ce),Y.nodeToRelativeConstraintMapVertical.set(Ce,[]),Y.dummyToNodeForHorizontalAlignment.has(Ce)?Y.nodeToTempPositionMapVertical.set(Ce,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(Ce)[0]).getCenterY()):Y.nodeToTempPositionMapVertical.set(Ce,Y.idToNodeMap.get(Ce).getCenterY())),Y.nodeToRelativeConstraintMapVertical.get(we).push({bottom:Ce,gap:ye.gap}),Y.nodeToRelativeConstraintMapVertical.get(Ce).push({top:we,gap:ye.gap})}});else{var ge=new Map,ce=new Map;this.constraints.relativePlacementConstraint.forEach(function(ye){if(ye.left){var Ee=te.has(ye.left)?te.get(ye.left):ye.left,he=te.has(ye.right)?te.get(ye.right):ye.right;ge.has(Ee)?ge.get(Ee).push(he):ge.set(Ee,[he]),ge.has(he)?ge.get(he).push(Ee):ge.set(he,[Ee])}else{var we=ne.has(ye.top)?ne.get(ye.top):ye.top,Ce=ne.has(ye.bottom)?ne.get(ye.bottom):ye.bottom;ce.has(we)?ce.get(we).push(Ce):ce.set(we,[Ce]),ce.has(Ce)?ce.get(Ce).push(we):ce.set(Ce,[we])}});var be=function(Ee,he){var we=[],Ce=[],Ie=new B,Le=new Set,Fe=0;return Ee.forEach(function(Ve,Oe){if(!Le.has(Oe)){we[Fe]=[],Ce[Fe]=!1;var Dt=Oe;for(Ie.push(Dt),Le.add(Dt),we[Fe].push(Dt);Ie.length!=0;){Dt=Ie.shift(),he.has(Dt)&&(Ce[Fe]=!0);var ot=Ee.get(Dt);ot.forEach(function(sn){Le.has(sn)||(Ie.push(sn),Le.add(sn),we[Fe].push(sn))})}Fe++}}),{components:we,isFixed:Ce}},ve=be(ge,Y.fixedNodesOnHorizontal);this.componentsOnHorizontal=ve.components,this.fixedComponentsOnHorizontal=ve.isFixed;var De=be(ce,Y.fixedNodesOnVertical);this.componentsOnVertical=De.components,this.fixedComponentsOnVertical=De.isFixed}}},Z.prototype.updateDisplacements=function(){var Y=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(De){var ye=Y.idToNodeMap.get(De.nodeId);ye.displacementX=0,ye.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,Q=0;Q<W.length;Q++){for(var V=0,j=0;j<W[Q].length;j++){if(this.fixedNodeSet.has(W[Q][j])){V=0;break}V+=this.idToNodeMap.get(W[Q][j]).displacementX}for(var ee=V/W[Q].length,j=0;j<W[Q].length;j++)this.idToNodeMap.get(W[Q][j]).displacementX=ee}if(this.constraints.alignmentConstraint.horizontal)for(var te=this.constraints.alignmentConstraint.horizontal,Q=0;Q<te.length;Q++){for(var ne=0,j=0;j<te[Q].length;j++){if(this.fixedNodeSet.has(te[Q][j])){ne=0;break}ne+=this.idToNodeMap.get(te[Q][j]).displacementY}for(var se=ne/te[Q].length,j=0;j<te[Q].length;j++)this.idToNodeMap.get(te[Q][j]).displacementY=se}}if(this.constraints.relativePlacementConstraint)if(C.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(De){if(!Y.fixedNodesOnHorizontal.has(De)){var ye=0;Y.dummyToNodeForVerticalAlignment.has(De)?ye=Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(De)[0]).displacementX:ye=Y.idToNodeMap.get(De).displacementX,Y.nodeToRelativeConstraintMapHorizontal.get(De).forEach(function(Ee){if(Ee.right){var he=Y.nodeToTempPositionMapHorizontal.get(Ee.right)-Y.nodeToTempPositionMapHorizontal.get(De)-ye;he<Ee.gap&&(ye-=Ee.gap-he)}else{var he=Y.nodeToTempPositionMapHorizontal.get(De)-Y.nodeToTempPositionMapHorizontal.get(Ee.left)+ye;he<Ee.gap&&(ye+=Ee.gap-he)}}),Y.nodeToTempPositionMapHorizontal.set(De,Y.nodeToTempPositionMapHorizontal.get(De)+ye),Y.dummyToNodeForVerticalAlignment.has(De)?Y.dummyToNodeForVerticalAlignment.get(De).forEach(function(Ee){Y.idToNodeMap.get(Ee).displacementX=ye}):Y.idToNodeMap.get(De).displacementX=ye}}),this.nodesInRelativeVertical.forEach(function(De){if(!Y.fixedNodesOnHorizontal.has(De)){var ye=0;Y.dummyToNodeForHorizontalAlignment.has(De)?ye=Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(De)[0]).displacementY:ye=Y.idToNodeMap.get(De).displacementY,Y.nodeToRelativeConstraintMapVertical.get(De).forEach(function(Ee){if(Ee.bottom){var he=Y.nodeToTempPositionMapVertical.get(Ee.bottom)-Y.nodeToTempPositionMapVertical.get(De)-ye;he<Ee.gap&&(ye-=Ee.gap-he)}else{var he=Y.nodeToTempPositionMapVertical.get(De)-Y.nodeToTempPositionMapVertical.get(Ee.top)+ye;he<Ee.gap&&(ye+=Ee.gap-he)}}),Y.nodeToTempPositionMapVertical.set(De,Y.nodeToTempPositionMapVertical.get(De)+ye),Y.dummyToNodeForHorizontalAlignment.has(De)?Y.dummyToNodeForHorizontalAlignment.get(De).forEach(function(Ee){Y.idToNodeMap.get(Ee).displacementY=ye}):Y.idToNodeMap.get(De).displacementY=ye}});else{for(var Q=0;Q<this.componentsOnHorizontal.length;Q++){var ie=this.componentsOnHorizontal[Q];if(this.fixedComponentsOnHorizontal[Q])for(var j=0;j<ie.length;j++)this.dummyToNodeForVerticalAlignment.has(ie[j])?this.dummyToNodeForVerticalAlignment.get(ie[j]).forEach(function(Ee){Y.idToNodeMap.get(Ee).displacementX=0}):this.idToNodeMap.get(ie[j]).displacementX=0;else{for(var ge=0,ce=0,j=0;j<ie.length;j++)if(this.dummyToNodeForVerticalAlignment.has(ie[j])){var be=this.dummyToNodeForVerticalAlignment.get(ie[j]);ge+=be.length*this.idToNodeMap.get(be[0]).displacementX,ce+=be.length}else ge+=this.idToNodeMap.get(ie[j]).displacementX,ce++;for(var ve=ge/ce,j=0;j<ie.length;j++)this.dummyToNodeForVerticalAlignment.has(ie[j])?this.dummyToNodeForVerticalAlignment.get(ie[j]).forEach(function(Ee){Y.idToNodeMap.get(Ee).displacementX=ve}):this.idToNodeMap.get(ie[j]).displacementX=ve}}for(var Q=0;Q<this.componentsOnVertical.length;Q++){var ie=this.componentsOnVertical[Q];if(this.fixedComponentsOnVertical[Q])for(var j=0;j<ie.length;j++)this.dummyToNodeForHorizontalAlignment.has(ie[j])?this.dummyToNodeForHorizontalAlignment.get(ie[j]).forEach(function(he){Y.idToNodeMap.get(he).displacementY=0}):this.idToNodeMap.get(ie[j]).displacementY=0;else{for(var ge=0,ce=0,j=0;j<ie.length;j++)if(this.dummyToNodeForHorizontalAlignment.has(ie[j])){var be=this.dummyToNodeForHorizontalAlignment.get(ie[j]);ge+=be.length*this.idToNodeMap.get(be[0]).displacementY,ce+=be.length}else ge+=this.idToNodeMap.get(ie[j]).displacementY,ce++;for(var ve=ge/ce,j=0;j<ie.length;j++)this.dummyToNodeForHorizontalAlignment.has(ie[j])?this.dummyToNodeForHorizontalAlignment.get(ie[j]).forEach(function(Ie){Y.idToNodeMap.get(Ie).displacementY=ve}):this.idToNodeMap.get(ie[j]).displacementY=ve}}}},Z.prototype.calculateNodesToApplyGravitationTo=function(){var Y=[],W,Q=this.graphManager.getGraphs(),V=Q.length,j;for(j=0;j<V;j++)W=Q[j],W.updateConnected(),W.isConnected||(Y=Y.concat(W.getNodes()));return Y},Z.prototype.createBendpoints=function(){var Y=[];Y=Y.concat(this.graphManager.getAllEdges());var W=new Set,Q;for(Q=0;Q<Y.length;Q++){var V=Y[Q];if(!W.has(V)){var j=V.getSource(),ee=V.getTarget();if(j==ee)V.getBendpoints().push(new L),V.getBendpoints().push(new L),this.createDummyNodesForBendpoints(V),W.add(V);else{var te=[];if(te=te.concat(j.getEdgeListToNode(ee)),te=te.concat(ee.getEdgeListToNode(j)),!W.has(te[0])){if(te.length>1){var ne;for(ne=0;ne<te.length;ne++){var se=te[ne];se.getBendpoints().push(new L),this.createDummyNodesForBendpoints(se)}}te.forEach(function(ie){W.add(ie)})}}}if(W.size==Y.length)break}},Z.prototype.positionNodesRadially=function(Y){for(var W=new N(0,0),Q=Math.ceil(Math.sqrt(Y.length)),V=0,j=0,ee=0,te=new L(0,0),ne=0;ne<Y.length;ne++){ne%Q==0&&(ee=0,j=V,ne!=0&&(j+=C.DEFAULT_COMPONENT_SEPERATION),V=0);var se=Y[ne],ie=M.findCenterOfTree(se);W.x=ee,W.y=j,te=Z.radialLayout(se,ie,W),te.y>V&&(V=Math.floor(te.y)),ee=Math.floor(te.x+C.DEFAULT_COMPONENT_SEPERATION)}this.transform(new L(I.WORLD_CENTER_X-te.x/2,I.WORLD_CENTER_Y-te.y/2))},Z.radialLayout=function(Y,W,Q){var V=Math.max(this.maxDiagonalInTree(Y),C.DEFAULT_RADIAL_SEPARATION);Z.branchRadialLayout(W,null,0,359,0,V);var j=$.calculateBounds(Y),ee=new G;ee.setDeviceOrgX(j.getMinX()),ee.setDeviceOrgY(j.getMinY()),ee.setWorldOrgX(Q.x),ee.setWorldOrgY(Q.y);for(var te=0;te<Y.length;te++){var ne=Y[te];ne.transform(ee)}var se=new L(j.getMaxX(),j.getMaxY());return ee.inverseTransformPoint(se)},Z.branchRadialLayout=function(Y,W,Q,V,j,ee){var te=(V-Q+1)/2;te<0&&(te+=180);var ne=(te+Q)%360,se=ne*U.TWO_PI/360,ie=j*Math.cos(se),ge=j*Math.sin(se);Y.setCenter(ie,ge);var ce=[];ce=ce.concat(Y.getEdges());var be=ce.length;W!=null&&be--;for(var ve=0,De=ce.length,ye,Ee=Y.getEdgesBetween(W);Ee.length>1;){var he=Ee[0];Ee.splice(0,1);var we=ce.indexOf(he);we>=0&&ce.splice(we,1),De--,be--}W!=null?ye=(ce.indexOf(Ee[0])+1)%De:ye=0;for(var Ce=Math.abs(V-Q)/be,Ie=ye;ve!=be;Ie=++Ie%De){var Le=ce[Ie].getOtherEnd(Y);if(Le!=W){var Fe=(Q+ve*Ce)%360,Ve=(Fe+Ce)%360;Z.branchRadialLayout(Le,Y,Fe,Ve,j+ee,ee),ve++}}},Z.maxDiagonalInTree=function(Y){for(var W=F.MIN_VALUE,Q=0;Q<Y.length;Q++){var V=Y[Q],j=V.getDiagonal();j>W&&(W=j)}return W},Z.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Z.prototype.groupZeroDegreeMembers=function(){var Y=this,W={};this.memberGroups={},this.idToDummyNode={};for(var Q=[],V=this.graphManager.getAllNodes(),j=0;j<V.length;j++){var ee=V[j],te=ee.getParent();this.getNodeDegreeWithChildren(ee)===0&&(te.id==null||!this.getToBeTiled(te))&&Q.push(ee)}for(var j=0;j<Q.length;j++){var ee=Q[j],ne=ee.getParent().id;typeof W[ne]>"u"&&(W[ne]=[]),W[ne]=W[ne].concat(ee)}Object.keys(W).forEach(function(se){if(W[se].length>1){var ie="DummyCompound_"+se;Y.memberGroups[ie]=W[se];var ge=W[se][0].getParent(),ce=new w(Y.graphManager);ce.id=ie,ce.paddingLeft=ge.paddingLeft||0,ce.paddingRight=ge.paddingRight||0,ce.paddingBottom=ge.paddingBottom||0,ce.paddingTop=ge.paddingTop||0,Y.idToDummyNode[ie]=ce;var be=Y.getGraphManager().add(Y.newGraph(),ce),ve=ge.getChild();ve.add(ce);for(var De=0;De<W[se].length;De++){var ye=W[se][De];ve.remove(ye),be.add(ye)}}})},Z.prototype.clearCompounds=function(){var Y={},W={};this.performDFSOnCompounds();for(var Q=0;Q<this.compoundOrder.length;Q++)W[this.compoundOrder[Q].id]=this.compoundOrder[Q],Y[this.compoundOrder[Q].id]=[].concat(this.compoundOrder[Q].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[Q].getChild()),this.compoundOrder[Q].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(Y,W)},Z.prototype.clearZeroDegreeMembers=function(){var Y=this,W=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(Q){var V=Y.idToDummyNode[Q];if(W[Q]=Y.tileNodes(Y.memberGroups[Q],V.paddingLeft+V.paddingRight),V.rect.width=W[Q].width,V.rect.height=W[Q].height,V.setCenter(W[Q].centerX,W[Q].centerY),V.labelMarginLeft=0,V.labelMarginTop=0,C.NODE_DIMENSIONS_INCLUDE_LABELS){var j=V.rect.width,ee=V.rect.height;V.labelWidth&&(V.labelPosHorizontal=="left"?(V.rect.x-=V.labelWidth,V.setWidth(j+V.labelWidth),V.labelMarginLeft=V.labelWidth):V.labelPosHorizontal=="center"&&V.labelWidth>j?(V.rect.x-=(V.labelWidth-j)/2,V.setWidth(V.labelWidth),V.labelMarginLeft=(V.labelWidth-j)/2):V.labelPosHorizontal=="right"&&V.setWidth(j+V.labelWidth)),V.labelHeight&&(V.labelPosVertical=="top"?(V.rect.y-=V.labelHeight,V.setHeight(ee+V.labelHeight),V.labelMarginTop=V.labelHeight):V.labelPosVertical=="center"&&V.labelHeight>ee?(V.rect.y-=(V.labelHeight-ee)/2,V.setHeight(V.labelHeight),V.labelMarginTop=(V.labelHeight-ee)/2):V.labelPosVertical=="bottom"&&V.setHeight(ee+V.labelHeight))}})},Z.prototype.repopulateCompounds=function(){for(var Y=this.compoundOrder.length-1;Y>=0;Y--){var W=this.compoundOrder[Y],Q=W.id,V=W.paddingLeft,j=W.paddingTop,ee=W.labelMarginLeft,te=W.labelMarginTop;this.adjustLocations(this.tiledMemberPack[Q],W.rect.x,W.rect.y,V,j,ee,te)}},Z.prototype.repopulateZeroDegreeMembers=function(){var Y=this,W=this.tiledZeroDegreePack;Object.keys(W).forEach(function(Q){var V=Y.idToDummyNode[Q],j=V.paddingLeft,ee=V.paddingTop,te=V.labelMarginLeft,ne=V.labelMarginTop;Y.adjustLocations(W[Q],V.rect.x,V.rect.y,j,ee,te,ne)})},Z.prototype.getToBeTiled=function(Y){var W=Y.id;if(this.toBeTiled[W]!=null)return this.toBeTiled[W];var Q=Y.getChild();if(Q==null)return this.toBeTiled[W]=!1,!1;for(var V=Q.getNodes(),j=0;j<V.length;j++){var ee=V[j];if(this.getNodeDegree(ee)>0)return this.toBeTiled[W]=!1,!1;if(ee.getChild()==null){this.toBeTiled[ee.id]=!1;continue}if(!this.getToBeTiled(ee))return this.toBeTiled[W]=!1,!1}return this.toBeTiled[W]=!0,!0},Z.prototype.getNodeDegree=function(Y){Y.id;for(var W=Y.getEdges(),Q=0,V=0;V<W.length;V++){var j=W[V];j.getSource().id!==j.getTarget().id&&(Q=Q+1)}return Q},Z.prototype.getNodeDegreeWithChildren=function(Y){var W=this.getNodeDegree(Y);if(Y.getChild()==null)return W;for(var Q=Y.getChild().getNodes(),V=0;V<Q.length;V++){var j=Q[V];W+=this.getNodeDegreeWithChildren(j)}return W},Z.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},Z.prototype.fillCompexOrderByDFS=function(Y){for(var W=0;W<Y.length;W++){var Q=Y[W];Q.getChild()!=null&&this.fillCompexOrderByDFS(Q.getChild().getNodes()),this.getToBeTiled(Q)&&this.compoundOrder.push(Q)}},Z.prototype.adjustLocations=function(Y,W,Q,V,j,ee,te){W+=V+ee,Q+=j+te;for(var ne=W,se=0;se<Y.rows.length;se++){var ie=Y.rows[se];W=ne;for(var ge=0,ce=0;ce<ie.length;ce++){var be=ie[ce];be.rect.x=W,be.rect.y=Q,W+=be.rect.width+Y.horizontalPadding,be.rect.height>ge&&(ge=be.rect.height)}Q+=ge+Y.verticalPadding}},Z.prototype.tileCompoundMembers=function(Y,W){var Q=this;this.tiledMemberPack=[],Object.keys(Y).forEach(function(V){var j=W[V];if(Q.tiledMemberPack[V]=Q.tileNodes(Y[V],j.paddingLeft+j.paddingRight),j.rect.width=Q.tiledMemberPack[V].width,j.rect.height=Q.tiledMemberPack[V].height,j.setCenter(Q.tiledMemberPack[V].centerX,Q.tiledMemberPack[V].centerY),j.labelMarginLeft=0,j.labelMarginTop=0,C.NODE_DIMENSIONS_INCLUDE_LABELS){var ee=j.rect.width,te=j.rect.height;j.labelWidth&&(j.labelPosHorizontal=="left"?(j.rect.x-=j.labelWidth,j.setWidth(ee+j.labelWidth),j.labelMarginLeft=j.labelWidth):j.labelPosHorizontal=="center"&&j.labelWidth>ee?(j.rect.x-=(j.labelWidth-ee)/2,j.setWidth(j.labelWidth),j.labelMarginLeft=(j.labelWidth-ee)/2):j.labelPosHorizontal=="right"&&j.setWidth(ee+j.labelWidth)),j.labelHeight&&(j.labelPosVertical=="top"?(j.rect.y-=j.labelHeight,j.setHeight(te+j.labelHeight),j.labelMarginTop=j.labelHeight):j.labelPosVertical=="center"&&j.labelHeight>te?(j.rect.y-=(j.labelHeight-te)/2,j.setHeight(j.labelHeight),j.labelMarginTop=(j.labelHeight-te)/2):j.labelPosVertical=="bottom"&&j.setHeight(te+j.labelHeight))}})},Z.prototype.tileNodes=function(Y,W){var Q=this.tileNodesByFavoringDim(Y,W,!0),V=this.tileNodesByFavoringDim(Y,W,!1),j=this.getOrgRatio(Q),ee=this.getOrgRatio(V),te;return ee<j?te=V:te=Q,te},Z.prototype.getOrgRatio=function(Y){var W=Y.width,Q=Y.height,V=W/Q;return V<1&&(V=1/V),V},Z.prototype.calcIdealRowWidth=function(Y,W){var Q=C.TILING_PADDING_VERTICAL,V=C.TILING_PADDING_HORIZONTAL,j=Y.length,ee=0,te=0,ne=0;Y.forEach(function(De){ee+=De.getWidth(),te+=De.getHeight(),De.getWidth()>ne&&(ne=De.getWidth())});var se=ee/j,ie=te/j,ge=Math.pow(Q-V,2)+4*(se+V)*(ie+Q)*j,ce=(V-Q+Math.sqrt(ge))/(2*(se+V)),be;W?(be=Math.ceil(ce),be==ce&&be++):be=Math.floor(ce);var ve=be*(se+V)-V;return ne>ve&&(ve=ne),ve+=V*2,ve},Z.prototype.tileNodesByFavoringDim=function(Y,W,Q){var V=C.TILING_PADDING_VERTICAL,j=C.TILING_PADDING_HORIZONTAL,ee=C.TILING_COMPARE_BY,te={rows:[],rowWidth:[],rowHeight:[],width:0,height:W,verticalPadding:V,horizontalPadding:j,centerX:0,centerY:0};ee&&(te.idealRowWidth=this.calcIdealRowWidth(Y,Q));var ne=function(ye){return ye.rect.width*ye.rect.height},se=function(ye,Ee){return ne(Ee)-ne(ye)};Y.sort(function(De,ye){var Ee=se;return te.idealRowWidth?(Ee=ee,Ee(De.id,ye.id)):Ee(De,ye)});for(var ie=0,ge=0,ce=0;ce<Y.length;ce++){var be=Y[ce];ie+=be.getCenterX(),ge+=be.getCenterY()}te.centerX=ie/Y.length,te.centerY=ge/Y.length;for(var ce=0;ce<Y.length;ce++){var be=Y[ce];if(te.rows.length==0)this.insertNodeToRow(te,be,0,W);else if(this.canAddHorizontal(te,be.rect.width,be.rect.height)){var ve=te.rows.length-1;te.idealRowWidth||(ve=this.getShortestRowIndex(te)),this.insertNodeToRow(te,be,ve,W)}else this.insertNodeToRow(te,be,te.rows.length,W);this.shiftToLastRow(te)}return te},Z.prototype.insertNodeToRow=function(Y,W,Q,V){var j=V;if(Q==Y.rows.length){var ee=[];Y.rows.push(ee),Y.rowWidth.push(j),Y.rowHeight.push(0)}var te=Y.rowWidth[Q]+W.rect.width;Y.rows[Q].length>0&&(te+=Y.horizontalPadding),Y.rowWidth[Q]=te,Y.width<te&&(Y.width=te);var ne=W.rect.height;Q>0&&(ne+=Y.verticalPadding);var se=0;ne>Y.rowHeight[Q]&&(se=Y.rowHeight[Q],Y.rowHeight[Q]=ne,se=Y.rowHeight[Q]-se),Y.height+=se,Y.rows[Q].push(W)},Z.prototype.getShortestRowIndex=function(Y){for(var W=-1,Q=Number.MAX_VALUE,V=0;V<Y.rows.length;V++)Y.rowWidth[V]<Q&&(W=V,Q=Y.rowWidth[V]);return W},Z.prototype.getLongestRowIndex=function(Y){for(var W=-1,Q=Number.MIN_VALUE,V=0;V<Y.rows.length;V++)Y.rowWidth[V]>Q&&(W=V,Q=Y.rowWidth[V]);return W},Z.prototype.canAddHorizontal=function(Y,W,Q){if(Y.idealRowWidth){var V=Y.rows.length-1,j=Y.rowWidth[V];return j+W+Y.horizontalPadding<=Y.idealRowWidth}var ee=this.getShortestRowIndex(Y);if(ee<0)return!0;var te=Y.rowWidth[ee];if(te+Y.horizontalPadding+W<=Y.width)return!0;var ne=0;Y.rowHeight[ee]<Q&&ee>0&&(ne=Q+Y.verticalPadding-Y.rowHeight[ee]);var se;Y.width-te>=W+Y.horizontalPadding?se=(Y.height+ne)/(te+W+Y.horizontalPadding):se=(Y.height+ne)/Y.width,ne=Q+Y.verticalPadding;var ie;return Y.width<W?ie=(Y.height+ne)/W:ie=(Y.height+ne)/Y.width,ie<1&&(ie=1/ie),se<1&&(se=1/se),se<ie},Z.prototype.shiftToLastRow=function(Y){var W=this.getLongestRowIndex(Y),Q=Y.rowWidth.length-1,V=Y.rows[W],j=V[V.length-1],ee=j.width+Y.horizontalPadding;if(Y.width-Y.rowWidth[Q]>ee&&W!=Q){V.splice(-1,1),Y.rows[Q].push(j),Y.rowWidth[W]=Y.rowWidth[W]-ee,Y.rowWidth[Q]=Y.rowWidth[Q]+ee,Y.width=Y.rowWidth[instance.getLongestRowIndex(Y)];for(var te=Number.MIN_VALUE,ne=0;ne<V.length;ne++)V[ne].height>te&&(te=V[ne].height);W>0&&(te+=Y.verticalPadding);var se=Y.rowHeight[W]+Y.rowHeight[Q];Y.rowHeight[W]=te,Y.rowHeight[Q]<j.height+Y.verticalPadding&&(Y.rowHeight[Q]=j.height+Y.verticalPadding);var ie=Y.rowHeight[W]+Y.rowHeight[Q];Y.height+=ie-se,this.shiftToLastRow(Y)}},Z.prototype.tilingPreLayout=function(){C.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},Z.prototype.tilingPostLayout=function(){C.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},Z.prototype.reduceTrees=function(){for(var Y=[],W=!0,Q;W;){var V=this.graphManager.getAllNodes(),j=[];W=!1;for(var ee=0;ee<V.length;ee++)if(Q=V[ee],Q.getEdges().length==1&&!Q.getEdges()[0].isInterGraph&&Q.getChild()==null){if(C.PURE_INCREMENTAL){var te=Q.getEdges()[0].getOtherEnd(Q),ne=new P(Q.getCenterX()-te.getCenterX(),Q.getCenterY()-te.getCenterY());j.push([Q,Q.getEdges()[0],Q.getOwner(),ne])}else j.push([Q,Q.getEdges()[0],Q.getOwner()]);W=!0}if(W==!0){for(var se=[],ie=0;ie<j.length;ie++)j[ie][0].getEdges().length==1&&(se.push(j[ie]),j[ie][0].getOwner().remove(j[ie][0]));Y.push(se),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=Y},Z.prototype.growTree=function(Y){for(var W=Y.length,Q=Y[W-1],V,j=0;j<Q.length;j++)V=Q[j],this.findPlaceforPrunedNode(V),V[2].add(V[0]),V[2].add(V[1],V[1].source,V[1].target);Y.splice(Y.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},Z.prototype.findPlaceforPrunedNode=function(Y){var W,Q,V=Y[0];if(V==Y[1].source?Q=Y[1].target:Q=Y[1].source,C.PURE_INCREMENTAL)V.setCenter(Q.getCenterX()+Y[3].getWidth(),Q.getCenterY()+Y[3].getHeight());else{var j=Q.startX,ee=Q.finishX,te=Q.startY,ne=Q.finishY,se=0,ie=0,ge=0,ce=0,be=[se,ge,ie,ce];if(te>0)for(var ve=j;ve<=ee;ve++)be[0]+=this.grid[ve][te-1].length+this.grid[ve][te].length-1;if(ee<this.grid.length-1)for(var ve=te;ve<=ne;ve++)be[1]+=this.grid[ee+1][ve].length+this.grid[ee][ve].length-1;if(ne<this.grid[0].length-1)for(var ve=j;ve<=ee;ve++)be[2]+=this.grid[ve][ne+1].length+this.grid[ve][ne].length-1;if(j>0)for(var ve=te;ve<=ne;ve++)be[3]+=this.grid[j-1][ve].length+this.grid[j][ve].length-1;for(var De=F.MAX_VALUE,ye,Ee,he=0;he<be.length;he++)be[he]<De?(De=be[he],ye=1,Ee=he):be[he]==De&&ye++;if(ye==3&&De==0)be[0]==0&&be[1]==0&&be[2]==0?W=1:be[0]==0&&be[1]==0&&be[3]==0?W=0:be[0]==0&&be[2]==0&&be[3]==0?W=3:be[1]==0&&be[2]==0&&be[3]==0&&(W=2);else if(ye==2&&De==0){var we=Math.floor(Math.random()*2);be[0]==0&&be[1]==0?we==0?W=0:W=1:be[0]==0&&be[2]==0?we==0?W=0:W=2:be[0]==0&&be[3]==0?we==0?W=0:W=3:be[1]==0&&be[2]==0?we==0?W=1:W=2:be[1]==0&&be[3]==0?we==0?W=1:W=3:we==0?W=2:W=3}else if(ye==4&&De==0){var we=Math.floor(Math.random()*4);W=we}else W=Ee;W==0?V.setCenter(Q.getCenterX(),Q.getCenterY()-Q.getHeight()/2-k.DEFAULT_EDGE_LENGTH-V.getHeight()/2):W==1?V.setCenter(Q.getCenterX()+Q.getWidth()/2+k.DEFAULT_EDGE_LENGTH+V.getWidth()/2,Q.getCenterY()):W==2?V.setCenter(Q.getCenterX(),Q.getCenterY()+Q.getHeight()/2+k.DEFAULT_EDGE_LENGTH+V.getHeight()/2):V.setCenter(Q.getCenterX()-Q.getWidth()/2-k.DEFAULT_EDGE_LENGTH-V.getWidth()/2,Q.getCenterY())}},h.exports=Z},991:(h,f,p)=>{var m=p(551).FDLayoutNode,b=p(551).IMath;function _(S,C,A,k){m.call(this,S,C,A,k)}_.prototype=Object.create(m.prototype);for(var w in m)_[w]=m[w];_.prototype.calculateDisplacement=function(){var S=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=S.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=S.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=S.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=S.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>S.coolingFactor*S.maxNodeDisplacement&&(this.displacementX=S.coolingFactor*S.maxNodeDisplacement*b.sign(this.displacementX)),Math.abs(this.displacementY)>S.coolingFactor*S.maxNodeDisplacement&&(this.displacementY=S.coolingFactor*S.maxNodeDisplacement*b.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},_.prototype.propogateDisplacementToChildren=function(S,C){for(var A=this.getChild().getNodes(),k,I=0;I<A.length;I++)k=A[I],k.getChild()==null?(k.displacementX+=S,k.displacementY+=C):k.propogateDisplacementToChildren(S,C)},_.prototype.move=function(){var S=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),S.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},_.prototype.setPred1=function(S){this.pred1=S},_.prototype.getPred1=function(){return pred1},_.prototype.getPred2=function(){return pred2},_.prototype.setNext=function(S){this.next=S},_.prototype.getNext=function(){return next},_.prototype.setProcessed=function(S){this.processed=S},_.prototype.isProcessed=function(){return processed},h.exports=_},902:(h,f,p)=>{function m(A){if(Array.isArray(A)){for(var k=0,I=Array(A.length);k<A.length;k++)I[k]=A[k];return I}else return Array.from(A)}var b=p(806),_=p(551).LinkedList,w=p(551).Matrix,S=p(551).SVD;function C(){}C.handleConstraints=function(A){var k={};k.fixedNodeConstraint=A.constraints.fixedNodeConstraint,k.alignmentConstraint=A.constraints.alignmentConstraint,k.relativePlacementConstraint=A.constraints.relativePlacementConstraint;for(var I=new Map,N=new Map,L=[],P=[],M=A.getAllNodes(),F=0,U=0;U<M.length;U++){var $=M[U];$.getChild()==null&&(N.set($.id,F++),L.push($.getCenterX()),P.push($.getCenterY()),I.set($.id,$))}k.relativePlacementConstraint&&k.relativePlacementConstraint.forEach(function(Xe){!Xe.gap&&Xe.gap!=0&&(Xe.left?Xe.gap=b.DEFAULT_EDGE_LENGTH+I.get(Xe.left).getWidth()/2+I.get(Xe.right).getWidth()/2:Xe.gap=b.DEFAULT_EDGE_LENGTH+I.get(Xe.top).getHeight()/2+I.get(Xe.bottom).getHeight()/2)});var G=function(fe,Qe){return{x:fe.x-Qe.x,y:fe.y-Qe.y}},B=function(fe){var Qe=0,Ke=0;return fe.forEach(function(mt){Qe+=L[N.get(mt)],Ke+=P[N.get(mt)]}),{x:Qe/fe.size,y:Ke/fe.size}},Z=function(fe,Qe,Ke,mt,lt){function $t(vn,Cn){var Ar=new Set(vn),ur=!0,On=!1,Ir=void 0;try{for(var Ln=Cn[Symbol.iterator](),pr;!(ur=(pr=Ln.next()).done);ur=!0){var Cr=pr.value;Ar.add(Cr)}}catch(Zr){On=!0,Ir=Zr}finally{try{!ur&&Ln.return&&Ln.return()}finally{if(On)throw Ir}}return Ar}var Ut=new Map;fe.forEach(function(vn,Cn){Ut.set(Cn,0)}),fe.forEach(function(vn,Cn){vn.forEach(function(Ar){Ut.set(Ar.id,Ut.get(Ar.id)+1)})});var Jt=new Map,wn=new Map,Vn=new _;Ut.forEach(function(vn,Cn){vn==0?(Vn.push(Cn),Ke||(Qe=="horizontal"?Jt.set(Cn,N.has(Cn)?L[N.get(Cn)]:mt.get(Cn)):Jt.set(Cn,N.has(Cn)?P[N.get(Cn)]:mt.get(Cn)))):Jt.set(Cn,Number.NEGATIVE_INFINITY),Ke&&wn.set(Cn,new Set([Cn]))}),Ke&&lt.forEach(function(vn){var Cn=[];if(vn.forEach(function(On){Ke.has(On)&&Cn.push(On)}),Cn.length>0){var Ar=0;Cn.forEach(function(On){Qe=="horizontal"?(Jt.set(On,N.has(On)?L[N.get(On)]:mt.get(On)),Ar+=Jt.get(On)):(Jt.set(On,N.has(On)?P[N.get(On)]:mt.get(On)),Ar+=Jt.get(On))}),Ar=Ar/Cn.length,vn.forEach(function(On){Ke.has(On)||Jt.set(On,Ar)})}else{var ur=0;vn.forEach(function(On){Qe=="horizontal"?ur+=N.has(On)?L[N.get(On)]:mt.get(On):ur+=N.has(On)?P[N.get(On)]:mt.get(On)}),ur=ur/vn.length,vn.forEach(function(On){Jt.set(On,ur)})}});for(var Wn=function(){var Cn=Vn.shift(),Ar=fe.get(Cn);Ar.forEach(function(ur){if(Jt.get(ur.id)<Jt.get(Cn)+ur.gap)if(Ke&&Ke.has(ur.id)){var On=void 0;if(Qe=="horizontal"?On=N.has(ur.id)?L[N.get(ur.id)]:mt.get(ur.id):On=N.has(ur.id)?P[N.get(ur.id)]:mt.get(ur.id),Jt.set(ur.id,On),On<Jt.get(Cn)+ur.gap){var Ir=Jt.get(Cn)+ur.gap-On;wn.get(Cn).forEach(function(Ln){Jt.set(Ln,Jt.get(Ln)-Ir)})}}else Jt.set(ur.id,Jt.get(Cn)+ur.gap);Ut.set(ur.id,Ut.get(ur.id)-1),Ut.get(ur.id)==0&&Vn.push(ur.id),Ke&&wn.set(ur.id,$t(wn.get(Cn),wn.get(ur.id)))})};Vn.length!=0;)Wn();if(Ke){var Dn=new Set;fe.forEach(function(vn,Cn){vn.length==0&&Dn.add(Cn)});var zn=[];wn.forEach(function(vn,Cn){if(Dn.has(Cn)){var Ar=!1,ur=!0,On=!1,Ir=void 0;try{for(var Ln=vn[Symbol.iterator](),pr;!(ur=(pr=Ln.next()).done);ur=!0){var Cr=pr.value;Ke.has(Cr)&&(Ar=!0)}}catch(Ci){On=!0,Ir=Ci}finally{try{!ur&&Ln.return&&Ln.return()}finally{if(On)throw Ir}}if(!Ar){var Zr=!1,Pr=void 0;zn.forEach(function(Ci,ds){Ci.has([].concat(m(vn))[0])&&(Zr=!0,Pr=ds)}),Zr?vn.forEach(function(Ci){zn[Pr].add(Ci)}):zn.push(new Set(vn))}}}),zn.forEach(function(vn,Cn){var Ar=Number.POSITIVE_INFINITY,ur=Number.POSITIVE_INFINITY,On=Number.NEGATIVE_INFINITY,Ir=Number.NEGATIVE_INFINITY,Ln=!0,pr=!1,Cr=void 0;try{for(var Zr=vn[Symbol.iterator](),Pr;!(Ln=(Pr=Zr.next()).done);Ln=!0){var Ci=Pr.value,ds=void 0;Qe=="horizontal"?ds=N.has(Ci)?L[N.get(Ci)]:mt.get(Ci):ds=N.has(Ci)?P[N.get(Ci)]:mt.get(Ci);var ta=Jt.get(Ci);ds<Ar&&(Ar=ds),ds>On&&(On=ds),ta<ur&&(ur=ta),ta>Ir&&(Ir=ta)}}catch(St){pr=!0,Cr=St}finally{try{!Ln&&Zr.return&&Zr.return()}finally{if(pr)throw Cr}}var Os=(Ar+On)/2-(ur+Ir)/2,uo=!0,Ls=!1,La=void 0;try{for(var to=vn[Symbol.iterator](),Fi;!(uo=(Fi=to.next()).done);uo=!0){var Pt=Fi.value;Jt.set(Pt,Jt.get(Pt)+Os)}}catch(St){Ls=!0,La=St}finally{try{!uo&&to.return&&to.return()}finally{if(Ls)throw La}}})}return Jt},z=function(fe){var Qe=0,Ke=0,mt=0,lt=0;if(fe.forEach(function(wn){wn.left?L[N.get(wn.left)]-L[N.get(wn.right)]>=0?Qe++:Ke++:P[N.get(wn.top)]-P[N.get(wn.bottom)]>=0?mt++:lt++}),Qe>Ke&&mt>lt)for(var $t=0;$t<N.size;$t++)L[$t]=-1*L[$t],P[$t]=-1*P[$t];else if(Qe>Ke)for(var Ut=0;Ut<N.size;Ut++)L[Ut]=-1*L[Ut];else if(mt>lt)for(var Jt=0;Jt<N.size;Jt++)P[Jt]=-1*P[Jt]},Y=function(fe){var Qe=[],Ke=new _,mt=new Set,lt=0;return fe.forEach(function($t,Ut){if(!mt.has(Ut)){Qe[lt]=[];var Jt=Ut;for(Ke.push(Jt),mt.add(Jt),Qe[lt].push(Jt);Ke.length!=0;){Jt=Ke.shift();var wn=fe.get(Jt);wn.forEach(function(Vn){mt.has(Vn.id)||(Ke.push(Vn.id),mt.add(Vn.id),Qe[lt].push(Vn.id))})}lt++}}),Qe},W=function(fe){var Qe=new Map;return fe.forEach(function(Ke,mt){Qe.set(mt,[])}),fe.forEach(function(Ke,mt){Ke.forEach(function(lt){Qe.get(mt).push(lt),Qe.get(lt.id).push({id:mt,gap:lt.gap,direction:lt.direction})})}),Qe},Q=function(fe){var Qe=new Map;return fe.forEach(function(Ke,mt){Qe.set(mt,[])}),fe.forEach(function(Ke,mt){Ke.forEach(function(lt){Qe.get(lt.id).push({id:mt,gap:lt.gap,direction:lt.direction})})}),Qe},V=[],j=[],ee=!1,te=!1,ne=new Set,se=new Map,ie=new Map,ge=[];if(k.fixedNodeConstraint&&k.fixedNodeConstraint.forEach(function(Xe){ne.add(Xe.nodeId)}),k.relativePlacementConstraint&&(k.relativePlacementConstraint.forEach(function(Xe){Xe.left?(se.has(Xe.left)?se.get(Xe.left).push({id:Xe.right,gap:Xe.gap,direction:"horizontal"}):se.set(Xe.left,[{id:Xe.right,gap:Xe.gap,direction:"horizontal"}]),se.has(Xe.right)||se.set(Xe.right,[])):(se.has(Xe.top)?se.get(Xe.top).push({id:Xe.bottom,gap:Xe.gap,direction:"vertical"}):se.set(Xe.top,[{id:Xe.bottom,gap:Xe.gap,direction:"vertical"}]),se.has(Xe.bottom)||se.set(Xe.bottom,[]))}),ie=W(se),ge=Y(ie)),b.TRANSFORM_ON_CONSTRAINT_HANDLING){if(k.fixedNodeConstraint&&k.fixedNodeConstraint.length>1)k.fixedNodeConstraint.forEach(function(Xe,fe){V[fe]=[Xe.position.x,Xe.position.y],j[fe]=[L[N.get(Xe.nodeId)],P[N.get(Xe.nodeId)]]}),ee=!0;else if(k.alignmentConstraint)(function(){var Xe=0;if(k.alignmentConstraint.vertical){for(var fe=k.alignmentConstraint.vertical,Qe=function(Jt){var wn=new Set;fe[Jt].forEach(function(Dn){wn.add(Dn)});var Vn=new Set([].concat(m(wn)).filter(function(Dn){return ne.has(Dn)})),Wn=void 0;Vn.size>0?Wn=L[N.get(Vn.values().next().value)]:Wn=B(wn).x,fe[Jt].forEach(function(Dn){V[Xe]=[Wn,P[N.get(Dn)]],j[Xe]=[L[N.get(Dn)],P[N.get(Dn)]],Xe++})},Ke=0;Ke<fe.length;Ke++)Qe(Ke);ee=!0}if(k.alignmentConstraint.horizontal){for(var mt=k.alignmentConstraint.horizontal,lt=function(Jt){var wn=new Set;mt[Jt].forEach(function(Dn){wn.add(Dn)});var Vn=new Set([].concat(m(wn)).filter(function(Dn){return ne.has(Dn)})),Wn=void 0;Vn.size>0?Wn=L[N.get(Vn.values().next().value)]:Wn=B(wn).y,mt[Jt].forEach(function(Dn){V[Xe]=[L[N.get(Dn)],Wn],j[Xe]=[L[N.get(Dn)],P[N.get(Dn)]],Xe++})},$t=0;$t<mt.length;$t++)lt($t);ee=!0}k.relativePlacementConstraint&&(te=!0)})();else if(k.relativePlacementConstraint){for(var ce=0,be=0,ve=0;ve<ge.length;ve++)ge[ve].length>ce&&(ce=ge[ve].length,be=ve);if(ce<ie.size/2)z(k.relativePlacementConstraint),ee=!1,te=!1;else{var De=new Map,ye=new Map,Ee=[];ge[be].forEach(function(Xe){se.get(Xe).forEach(function(fe){fe.direction=="horizontal"?(De.has(Xe)?De.get(Xe).push(fe):De.set(Xe,[fe]),De.has(fe.id)||De.set(fe.id,[]),Ee.push({left:Xe,right:fe.id})):(ye.has(Xe)?ye.get(Xe).push(fe):ye.set(Xe,[fe]),ye.has(fe.id)||ye.set(fe.id,[]),Ee.push({top:Xe,bottom:fe.id}))})}),z(Ee),te=!1;var he=Z(De,"horizontal"),we=Z(ye,"vertical");ge[be].forEach(function(Xe,fe){j[fe]=[L[N.get(Xe)],P[N.get(Xe)]],V[fe]=[],he.has(Xe)?V[fe][0]=he.get(Xe):V[fe][0]=L[N.get(Xe)],we.has(Xe)?V[fe][1]=we.get(Xe):V[fe][1]=P[N.get(Xe)]}),ee=!0}}if(ee){for(var Ce=void 0,Ie=w.transpose(V),Le=w.transpose(j),Fe=0;Fe<Ie.length;Fe++)Ie[Fe]=w.multGamma(Ie[Fe]),Le[Fe]=w.multGamma(Le[Fe]);var Ve=w.multMat(Ie,w.transpose(Le)),Oe=S.svd(Ve);Ce=w.multMat(Oe.V,w.transpose(Oe.U));for(var Dt=0;Dt<N.size;Dt++){var ot=[L[Dt],P[Dt]],sn=[Ce[0][0],Ce[1][0]],Kt=[Ce[0][1],Ce[1][1]];L[Dt]=w.dotProduct(ot,sn),P[Dt]=w.dotProduct(ot,Kt)}te&&z(k.relativePlacementConstraint)}}if(b.ENFORCE_CONSTRAINTS){if(k.fixedNodeConstraint&&k.fixedNodeConstraint.length>0){var Ft={x:0,y:0};k.fixedNodeConstraint.forEach(function(Xe,fe){var Qe={x:L[N.get(Xe.nodeId)],y:P[N.get(Xe.nodeId)]},Ke=Xe.position,mt=G(Ke,Qe);Ft.x+=mt.x,Ft.y+=mt.y}),Ft.x/=k.fixedNodeConstraint.length,Ft.y/=k.fixedNodeConstraint.length,L.forEach(function(Xe,fe){L[fe]+=Ft.x}),P.forEach(function(Xe,fe){P[fe]+=Ft.y}),k.fixedNodeConstraint.forEach(function(Xe){L[N.get(Xe.nodeId)]=Xe.position.x,P[N.get(Xe.nodeId)]=Xe.position.y})}if(k.alignmentConstraint){if(k.alignmentConstraint.vertical)for(var Je=k.alignmentConstraint.vertical,ht=function(fe){var Qe=new Set;Je[fe].forEach(function(lt){Qe.add(lt)});var Ke=new Set([].concat(m(Qe)).filter(function(lt){return ne.has(lt)})),mt=void 0;Ke.size>0?mt=L[N.get(Ke.values().next().value)]:mt=B(Qe).x,Qe.forEach(function(lt){ne.has(lt)||(L[N.get(lt)]=mt)})},et=0;et<Je.length;et++)ht(et);if(k.alignmentConstraint.horizontal)for(var qe=k.alignmentConstraint.horizontal,He=function(fe){var Qe=new Set;qe[fe].forEach(function(lt){Qe.add(lt)});var Ke=new Set([].concat(m(Qe)).filter(function(lt){return ne.has(lt)})),mt=void 0;Ke.size>0?mt=P[N.get(Ke.values().next().value)]:mt=B(Qe).y,Qe.forEach(function(lt){ne.has(lt)||(P[N.get(lt)]=mt)})},Ge=0;Ge<qe.length;Ge++)He(Ge)}k.relativePlacementConstraint&&function(){var Xe=new Map,fe=new Map,Qe=new Map,Ke=new Map,mt=new Map,lt=new Map,$t=new Set,Ut=new Set;if(ne.forEach(function(Wi){$t.add(Wi),Ut.add(Wi)}),k.alignmentConstraint){if(k.alignmentConstraint.vertical)for(var Jt=k.alignmentConstraint.vertical,wn=function(Tt){Qe.set("dummy"+Tt,[]),Jt[Tt].forEach(function(xr){Xe.set(xr,"dummy"+Tt),Qe.get("dummy"+Tt).push(xr),ne.has(xr)&&$t.add("dummy"+Tt)}),mt.set("dummy"+Tt,L[N.get(Jt[Tt][0])])},Vn=0;Vn<Jt.length;Vn++)wn(Vn);if(k.alignmentConstraint.horizontal)for(var Wn=k.alignmentConstraint.horizontal,Dn=function(Tt){Ke.set("dummy"+Tt,[]),Wn[Tt].forEach(function(xr){fe.set(xr,"dummy"+Tt),Ke.get("dummy"+Tt).push(xr),ne.has(xr)&&Ut.add("dummy"+Tt)}),lt.set("dummy"+Tt,P[N.get(Wn[Tt][0])])},zn=0;zn<Wn.length;zn++)Dn(zn)}var vn=new Map,Cn=new Map,Ar=function(Tt){se.get(Tt).forEach(function(xr){var qs=void 0,Rt=void 0;xr.direction=="horizontal"?(qs=Xe.get(Tt)?Xe.get(Tt):Tt,Xe.get(xr.id)?Rt={id:Xe.get(xr.id),gap:xr.gap,direction:xr.direction}:Rt=xr,vn.has(qs)?vn.get(qs).push(Rt):vn.set(qs,[Rt]),vn.has(Rt.id)||vn.set(Rt.id,[])):(qs=fe.get(Tt)?fe.get(Tt):Tt,fe.get(xr.id)?Rt={id:fe.get(xr.id),gap:xr.gap,direction:xr.direction}:Rt=xr,Cn.has(qs)?Cn.get(qs).push(Rt):Cn.set(qs,[Rt]),Cn.has(Rt.id)||Cn.set(Rt.id,[]))})},ur=!0,On=!1,Ir=void 0;try{for(var Ln=se.keys()[Symbol.iterator](),pr;!(ur=(pr=Ln.next()).done);ur=!0){var Cr=pr.value;Ar(Cr)}}catch(Wi){On=!0,Ir=Wi}finally{try{!ur&&Ln.return&&Ln.return()}finally{if(On)throw Ir}}var Zr=W(vn),Pr=W(Cn),Ci=Y(Zr),ds=Y(Pr),ta=Q(vn),Os=Q(Cn),uo=[],Ls=[];Ci.forEach(function(Wi,Tt){uo[Tt]=[],Wi.forEach(function(xr){ta.get(xr).length==0&&uo[Tt].push(xr)})}),ds.forEach(function(Wi,Tt){Ls[Tt]=[],Wi.forEach(function(xr){Os.get(xr).length==0&&Ls[Tt].push(xr)})});var La=Z(vn,"horizontal",$t,mt,uo),to=Z(Cn,"vertical",Ut,lt,Ls),Fi=function(Tt){Qe.get(Tt)?Qe.get(Tt).forEach(function(xr){L[N.get(xr)]=La.get(Tt)}):L[N.get(Tt)]=La.get(Tt)},Pt=!0,St=!1,Un=void 0;try{for(var Hr=La.keys()[Symbol.iterator](),za;!(Pt=(za=Hr.next()).done);Pt=!0){var Rs=za.value;Fi(Rs)}}catch(Wi){St=!0,Un=Wi}finally{try{!Pt&&Hr.return&&Hr.return()}finally{if(St)throw Un}}var Vr=function(Tt){Ke.get(Tt)?Ke.get(Tt).forEach(function(xr){P[N.get(xr)]=to.get(Tt)}):P[N.get(Tt)]=to.get(Tt)},Ii=!0,Pa=!1,Or=void 0;try{for(var no=to.keys()[Symbol.iterator](),dt;!(Ii=(dt=no.next()).done);Ii=!0){var Rs=dt.value;Vr(Rs)}}catch(Wi){Pa=!0,Or=Wi}finally{try{!Ii&&no.return&&no.return()}finally{if(Pa)throw Or}}}()}for(var Ye=0;Ye<M.length;Ye++){var Ae=M[Ye];Ae.getChild()==null&&Ae.setCenter(L[N.get(Ae.id)],P[N.get(Ae.id)])}},h.exports=C},551:h=>{h.exports=r}},s={};function o(h){var f=s[h];if(f!==void 0)return f.exports;var p=s[h]={exports:{}};return a[h](p,p.exports,o),p.exports}var u=o(45);return u})()})}(aat)),aat.exports}(function(e,t){(function(a,s){e.exports=s(dea())})(ml,function(r){return(()=>{var a={658:h=>{h.exports=Object.assign!=null?Object.assign.bind(Object):function(f){for(var p=arguments.length,m=Array(p>1?p-1:0),b=1;b<p;b++)m[b-1]=arguments[b];return m.forEach(function(_){Object.keys(_).forEach(function(w){return f[w]=_[w]})}),f}},548:(h,f,p)=>{var m=function(){function w(S,C){var A=[],k=!0,I=!1,N=void 0;try{for(var L=S[Symbol.iterator](),P;!(k=(P=L.next()).done)&&(A.push(P.value),!(C&&A.length===C));k=!0);}catch(M){I=!0,N=M}finally{try{!k&&L.return&&L.return()}finally{if(I)throw N}}return A}return function(S,C){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=p(140).layoutBase.LinkedList,_={};_.getTopMostNodes=function(w){for(var S={},C=0;C<w.length;C++)S[w[C].id()]=!0;var A=w.filter(function(k,I){typeof k=="number"&&(k=I);for(var N=k.parent()[0];N!=null;){if(S[N.id()])return!1;N=N.parent()[0]}return!0});return A},_.connectComponents=function(w,S,C,A){var k=new b,I=new Set,N=[],L=void 0,P=void 0,M=void 0,F=!1,U=1,$=[],G=[],B=function(){var z=w.collection();G.push(z);var Y=C[0],W=w.collection();W.merge(Y).merge(Y.descendants().intersection(S)),N.push(Y),W.forEach(function(j){k.push(j),I.add(j),z.merge(j)});for(var Q=function(){Y=k.shift();var ee=w.collection();Y.neighborhood().nodes().forEach(function(ie){S.intersection(Y.edgesWith(ie)).length>0&&ee.merge(ie)});for(var te=0;te<ee.length;te++){var ne=ee[te];if(L=C.intersection(ne.union(ne.ancestors())),L!=null&&!I.has(L[0])){var se=L.union(L.descendants());se.forEach(function(ie){k.push(ie),I.add(ie),z.merge(ie),C.has(ie)&&N.push(ie)})}}};k.length!=0;)Q();if(z.forEach(function(j){S.intersection(j.connectedEdges()).forEach(function(ee){z.has(ee.source())&&z.has(ee.target())&&z.merge(ee)})}),N.length==C.length&&(F=!0),!F||F&&U>1){P=N[0],M=P.connectedEdges().length,N.forEach(function(j){j.connectedEdges().length<M&&(M=j.connectedEdges().length,P=j)}),$.push(P.id());var V=w.collection();V.merge(N[0]),N.forEach(function(j){V.merge(j)}),N=[],C=C.difference(V),U++}};do B();while(!F);return A&&$.length>0&&A.set("dummy"+(A.size+1),$),G},_.relocateComponent=function(w,S,C){if(!C.fixedNodeConstraint){var A=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,I=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY;if(C.quality=="draft"){var L=!0,P=!1,M=void 0;try{for(var F=S.nodeIndexes[Symbol.iterator](),U;!(L=(U=F.next()).done);L=!0){var $=U.value,G=m($,2),B=G[0],Z=G[1],z=C.cy.getElementById(B);if(z){var Y=z.boundingBox(),W=S.xCoords[Z]-Y.w/2,Q=S.xCoords[Z]+Y.w/2,V=S.yCoords[Z]-Y.h/2,j=S.yCoords[Z]+Y.h/2;W<A&&(A=W),Q>k&&(k=Q),V<I&&(I=V),j>N&&(N=j)}}}catch(ie){P=!0,M=ie}finally{try{!L&&F.return&&F.return()}finally{if(P)throw M}}var ee=w.x-(k+A)/2,te=w.y-(N+I)/2;S.xCoords=S.xCoords.map(function(ie){return ie+ee}),S.yCoords=S.yCoords.map(function(ie){return ie+te})}else{Object.keys(S).forEach(function(ie){var ge=S[ie],ce=ge.getRect().x,be=ge.getRect().x+ge.getRect().width,ve=ge.getRect().y,De=ge.getRect().y+ge.getRect().height;ce<A&&(A=ce),be>k&&(k=be),ve<I&&(I=ve),De>N&&(N=De)});var ne=w.x-(k+A)/2,se=w.y-(N+I)/2;Object.keys(S).forEach(function(ie){var ge=S[ie];ge.setCenter(ge.getCenterX()+ne,ge.getCenterY()+se)})}}},_.calcBoundingBox=function(w,S,C,A){for(var k=Number.MAX_SAFE_INTEGER,I=Number.MIN_SAFE_INTEGER,N=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,P=void 0,M=void 0,F=void 0,U=void 0,$=w.descendants().not(":parent"),G=$.length,B=0;B<G;B++){var Z=$[B];P=S[A.get(Z.id())]-Z.width()/2,M=S[A.get(Z.id())]+Z.width()/2,F=C[A.get(Z.id())]-Z.height()/2,U=C[A.get(Z.id())]+Z.height()/2,k>P&&(k=P),I<M&&(I=M),N>F&&(N=F),L<U&&(L=U)}var z={};return z.topLeftX=k,z.topLeftY=N,z.width=I-k,z.height=L-N,z},_.calcParentsWithoutChildren=function(w,S){var C=w.collection();return S.nodes(":parent").forEach(function(A){var k=!1;A.children().forEach(function(I){I.css("display")!="none"&&(k=!0)}),k||C.merge(A)}),C},h.exports=_},816:(h,f,p)=>{var m=p(548),b=p(140).CoSELayout,_=p(140).CoSENode,w=p(140).layoutBase.PointD,S=p(140).layoutBase.DimensionD,C=p(140).layoutBase.LayoutConstants,A=p(140).layoutBase.FDLayoutConstants,k=p(140).CoSEConstants,I=function(L,P){var M=L.cy,F=L.eles,U=F.nodes(),$=F.edges(),G=void 0,B=void 0,Z=void 0,z={};L.randomize&&(G=P.nodeIndexes,B=P.xCoords,Z=P.yCoords);var Y=function(ie){return typeof ie=="function"},W=function(ie,ge){return Y(ie)?ie(ge):ie},Q=m.calcParentsWithoutChildren(M,F),V=function se(ie,ge,ce,be){for(var ve=ge.length,De=0;De<ve;De++){var ye=ge[De],Ee=null;ye.intersection(Q).length==0&&(Ee=ye.children());var he=void 0,we=ye.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(ye.outerWidth()!=null&&ye.outerHeight()!=null)if(be.randomize)if(!ye.isParent())he=ie.add(new _(ce.graphManager,new w(B[G.get(ye.id())]-we.w/2,Z[G.get(ye.id())]-we.h/2),new S(parseFloat(we.w),parseFloat(we.h))));else{var Ce=m.calcBoundingBox(ye,B,Z,G);ye.intersection(Q).length==0?he=ie.add(new _(ce.graphManager,new w(Ce.topLeftX,Ce.topLeftY),new S(Ce.width,Ce.height))):he=ie.add(new _(ce.graphManager,new w(Ce.topLeftX,Ce.topLeftY),new S(parseFloat(we.w),parseFloat(we.h))))}else he=ie.add(new _(ce.graphManager,new w(ye.position("x")-we.w/2,ye.position("y")-we.h/2),new S(parseFloat(we.w),parseFloat(we.h))));else he=ie.add(new _(this.graphManager));if(he.id=ye.data("id"),he.nodeRepulsion=W(be.nodeRepulsion,ye),he.paddingLeft=parseInt(ye.css("padding")),he.paddingTop=parseInt(ye.css("padding")),he.paddingRight=parseInt(ye.css("padding")),he.paddingBottom=parseInt(ye.css("padding")),be.nodeDimensionsIncludeLabels&&(he.labelWidth=ye.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,he.labelHeight=ye.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,he.labelPosVertical=ye.css("text-valign"),he.labelPosHorizontal=ye.css("text-halign")),z[ye.data("id")]=he,isNaN(he.rect.x)&&(he.rect.x=0),isNaN(he.rect.y)&&(he.rect.y=0),Ee!=null&&Ee.length>0){var Ie=void 0;Ie=ce.getGraphManager().add(ce.newGraph(),he),se(Ie,Ee,ce,be)}}},j=function(ie,ge,ce){for(var be=0,ve=0,De=0;De<ce.length;De++){var ye=ce[De],Ee=z[ye.data("source")],he=z[ye.data("target")];if(Ee&&he&&Ee!==he&&Ee.getEdgesBetween(he).length==0){var we=ge.add(ie.newEdge(),Ee,he);we.id=ye.id(),we.idealLength=W(L.idealEdgeLength,ye),we.edgeElasticity=W(L.edgeElasticity,ye),be+=we.idealLength,ve++}}L.idealEdgeLength!=null&&(ve>0?k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=be/ve:Y(L.idealEdgeLength)?k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=50:k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=L.idealEdgeLength,k.MIN_REPULSION_DIST=A.MIN_REPULSION_DIST=A.DEFAULT_EDGE_LENGTH/10,k.DEFAULT_RADIAL_SEPARATION=A.DEFAULT_EDGE_LENGTH)},ee=function(ie,ge){ge.fixedNodeConstraint&&(ie.constraints.fixedNodeConstraint=ge.fixedNodeConstraint),ge.alignmentConstraint&&(ie.constraints.alignmentConstraint=ge.alignmentConstraint),ge.relativePlacementConstraint&&(ie.constraints.relativePlacementConstraint=ge.relativePlacementConstraint)};L.nestingFactor!=null&&(k.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=A.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=L.nestingFactor),L.gravity!=null&&(k.DEFAULT_GRAVITY_STRENGTH=A.DEFAULT_GRAVITY_STRENGTH=L.gravity),L.numIter!=null&&(k.MAX_ITERATIONS=A.MAX_ITERATIONS=L.numIter),L.gravityRange!=null&&(k.DEFAULT_GRAVITY_RANGE_FACTOR=A.DEFAULT_GRAVITY_RANGE_FACTOR=L.gravityRange),L.gravityCompound!=null&&(k.DEFAULT_COMPOUND_GRAVITY_STRENGTH=A.DEFAULT_COMPOUND_GRAVITY_STRENGTH=L.gravityCompound),L.gravityRangeCompound!=null&&(k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=A.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=L.gravityRangeCompound),L.initialEnergyOnIncremental!=null&&(k.DEFAULT_COOLING_FACTOR_INCREMENTAL=A.DEFAULT_COOLING_FACTOR_INCREMENTAL=L.initialEnergyOnIncremental),L.tilingCompareBy!=null&&(k.TILING_COMPARE_BY=L.tilingCompareBy),L.quality=="proof"?C.QUALITY=2:C.QUALITY=0,k.NODE_DIMENSIONS_INCLUDE_LABELS=A.NODE_DIMENSIONS_INCLUDE_LABELS=C.NODE_DIMENSIONS_INCLUDE_LABELS=L.nodeDimensionsIncludeLabels,k.DEFAULT_INCREMENTAL=A.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=!L.randomize,k.ANIMATE=A.ANIMATE=C.ANIMATE=L.animate,k.TILE=L.tile,k.TILING_PADDING_VERTICAL=typeof L.tilingPaddingVertical=="function"?L.tilingPaddingVertical.call():L.tilingPaddingVertical,k.TILING_PADDING_HORIZONTAL=typeof L.tilingPaddingHorizontal=="function"?L.tilingPaddingHorizontal.call():L.tilingPaddingHorizontal,k.DEFAULT_INCREMENTAL=A.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=!0,k.PURE_INCREMENTAL=!L.randomize,C.DEFAULT_UNIFORM_LEAF_NODE_SIZES=L.uniformNodeDimensions,L.step=="transformed"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!1),L.step=="enforced"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!1),L.step=="cose"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!0),L.step=="all"&&(L.randomize?k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!0),L.fixedNodeConstraint||L.alignmentConstraint||L.relativePlacementConstraint?k.TREE_REDUCTION_ON_INCREMENTAL=!1:k.TREE_REDUCTION_ON_INCREMENTAL=!0;var te=new b,ne=te.newGraphManager();return V(ne.addRoot(),m.getTopMostNodes(U),te,L),j(te,ne,$),ee(te,L),te.runLayout(),z};h.exports={coseLayout:I}},212:(h,f,p)=>{var m=function(){function L(P,M){for(var F=0;F<M.length;F++){var U=M[F];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(P,U.key,U)}}return function(P,M,F){return M&&L(P.prototype,M),F&&L(P,F),P}}();function b(L,P){if(!(L instanceof P))throw new TypeError("Cannot call a class as a function")}var _=p(658),w=p(548),S=p(657),C=S.spectralLayout,A=p(816),k=A.coseLayout,I=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(P){return 4500},idealEdgeLength:function(P){return 50},edgeElasticity:function(P){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),N=function(){function L(P){b(this,L),this.options=_({},I,P)}return m(L,[{key:"run",value:function(){var M=this,F=this.options,U=F.cy,$=F.eles,G=[],B=[],Z=void 0,z=[];F.fixedNodeConstraint&&(!Array.isArray(F.fixedNodeConstraint)||F.fixedNodeConstraint.length==0)&&(F.fixedNodeConstraint=void 0),F.alignmentConstraint&&(F.alignmentConstraint.vertical&&(!Array.isArray(F.alignmentConstraint.vertical)||F.alignmentConstraint.vertical.length==0)&&(F.alignmentConstraint.vertical=void 0),F.alignmentConstraint.horizontal&&(!Array.isArray(F.alignmentConstraint.horizontal)||F.alignmentConstraint.horizontal.length==0)&&(F.alignmentConstraint.horizontal=void 0)),F.relativePlacementConstraint&&(!Array.isArray(F.relativePlacementConstraint)||F.relativePlacementConstraint.length==0)&&(F.relativePlacementConstraint=void 0);var Y=F.fixedNodeConstraint||F.alignmentConstraint||F.relativePlacementConstraint;Y&&(F.tile=!1,F.packComponents=!1);var W=void 0,Q=!1;if(U.layoutUtilities&&F.packComponents&&(W=U.layoutUtilities("get"),W||(W=U.layoutUtilities()),Q=!0),$.nodes().length>0)if(Q){var ee=w.getTopMostNodes(F.eles.nodes());if(Z=w.connectComponents(U,F.eles,ee),Z.forEach(function(Ve){var Oe=Ve.boundingBox();z.push({x:Oe.x1+Oe.w/2,y:Oe.y1+Oe.h/2})}),F.randomize&&Z.forEach(function(Ve){F.eles=Ve,G.push(C(F))}),F.quality=="default"||F.quality=="proof"){var te=U.collection();if(F.tile){var ne=new Map,se=[],ie=[],ge=0,ce={nodeIndexes:ne,xCoords:se,yCoords:ie},be=[];if(Z.forEach(function(Ve,Oe){Ve.edges().length==0&&(Ve.nodes().forEach(function(Dt,ot){te.merge(Ve.nodes()[ot]),Dt.isParent()||(ce.nodeIndexes.set(Ve.nodes()[ot].id(),ge++),ce.xCoords.push(Ve.nodes()[0].position().x),ce.yCoords.push(Ve.nodes()[0].position().y))}),be.push(Oe))}),te.length>1){var ve=te.boundingBox();z.push({x:ve.x1+ve.w/2,y:ve.y1+ve.h/2}),Z.push(te),G.push(ce);for(var De=be.length-1;De>=0;De--)Z.splice(be[De],1),G.splice(be[De],1),z.splice(be[De],1)}}Z.forEach(function(Ve,Oe){F.eles=Ve,B.push(k(F,G[Oe])),w.relocateComponent(z[Oe],B[Oe],F)})}else Z.forEach(function(Ve,Oe){w.relocateComponent(z[Oe],G[Oe],F)});var ye=new Set;if(Z.length>1){var Ee=[],he=$.filter(function(Ve){return Ve.css("display")=="none"});Z.forEach(function(Ve,Oe){var Dt=void 0;if(F.quality=="draft"&&(Dt=G[Oe].nodeIndexes),Ve.nodes().not(he).length>0){var ot={};ot.edges=[],ot.nodes=[];var sn=void 0;Ve.nodes().not(he).forEach(function(Kt){if(F.quality=="draft")if(!Kt.isParent())sn=Dt.get(Kt.id()),ot.nodes.push({x:G[Oe].xCoords[sn]-Kt.boundingbox().w/2,y:G[Oe].yCoords[sn]-Kt.boundingbox().h/2,width:Kt.boundingbox().w,height:Kt.boundingbox().h});else{var Ft=w.calcBoundingBox(Kt,G[Oe].xCoords,G[Oe].yCoords,Dt);ot.nodes.push({x:Ft.topLeftX,y:Ft.topLeftY,width:Ft.width,height:Ft.height})}else B[Oe][Kt.id()]&&ot.nodes.push({x:B[Oe][Kt.id()].getLeft(),y:B[Oe][Kt.id()].getTop(),width:B[Oe][Kt.id()].getWidth(),height:B[Oe][Kt.id()].getHeight()})}),Ve.edges().forEach(function(Kt){var Ft=Kt.source(),Je=Kt.target();if(Ft.css("display")!="none"&&Je.css("display")!="none")if(F.quality=="draft"){var ht=Dt.get(Ft.id()),et=Dt.get(Je.id()),qe=[],He=[];if(Ft.isParent()){var Ge=w.calcBoundingBox(Ft,G[Oe].xCoords,G[Oe].yCoords,Dt);qe.push(Ge.topLeftX+Ge.width/2),qe.push(Ge.topLeftY+Ge.height/2)}else qe.push(G[Oe].xCoords[ht]),qe.push(G[Oe].yCoords[ht]);if(Je.isParent()){var Ye=w.calcBoundingBox(Je,G[Oe].xCoords,G[Oe].yCoords,Dt);He.push(Ye.topLeftX+Ye.width/2),He.push(Ye.topLeftY+Ye.height/2)}else He.push(G[Oe].xCoords[et]),He.push(G[Oe].yCoords[et]);ot.edges.push({startX:qe[0],startY:qe[1],endX:He[0],endY:He[1]})}else B[Oe][Ft.id()]&&B[Oe][Je.id()]&&ot.edges.push({startX:B[Oe][Ft.id()].getCenterX(),startY:B[Oe][Ft.id()].getCenterY(),endX:B[Oe][Je.id()].getCenterX(),endY:B[Oe][Je.id()].getCenterY()})}),ot.nodes.length>0&&(Ee.push(ot),ye.add(Oe))}});var we=W.packComponents(Ee,F.randomize).shifts;if(F.quality=="draft")G.forEach(function(Ve,Oe){var Dt=Ve.xCoords.map(function(sn){return sn+we[Oe].dx}),ot=Ve.yCoords.map(function(sn){return sn+we[Oe].dy});Ve.xCoords=Dt,Ve.yCoords=ot});else{var Ce=0;ye.forEach(function(Ve){Object.keys(B[Ve]).forEach(function(Oe){var Dt=B[Ve][Oe];Dt.setCenter(Dt.getCenterX()+we[Ce].dx,Dt.getCenterY()+we[Ce].dy)}),Ce++})}}}else{var V=F.eles.boundingBox();if(z.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),F.randomize){var j=C(F);G.push(j)}F.quality=="default"||F.quality=="proof"?(B.push(k(F,G[0])),w.relocateComponent(z[0],B[0],F)):w.relocateComponent(z[0],G[0],F)}var Ie=function(Oe,Dt){if(F.quality=="default"||F.quality=="proof"){typeof Oe=="number"&&(Oe=Dt);var ot=void 0,sn=void 0,Kt=Oe.data("id");return B.forEach(function(Je){Kt in Je&&(ot={x:Je[Kt].getRect().getCenterX(),y:Je[Kt].getRect().getCenterY()},sn=Je[Kt])}),F.nodeDimensionsIncludeLabels&&(sn.labelWidth&&(sn.labelPosHorizontal=="left"?ot.x+=sn.labelWidth/2:sn.labelPosHorizontal=="right"&&(ot.x-=sn.labelWidth/2)),sn.labelHeight&&(sn.labelPosVertical=="top"?ot.y+=sn.labelHeight/2:sn.labelPosVertical=="bottom"&&(ot.y-=sn.labelHeight/2))),ot==null&&(ot={x:Oe.position("x"),y:Oe.position("y")}),{x:ot.x,y:ot.y}}else{var Ft=void 0;return G.forEach(function(Je){var ht=Je.nodeIndexes.get(Oe.id());ht!=null&&(Ft={x:Je.xCoords[ht],y:Je.yCoords[ht]})}),Ft==null&&(Ft={x:Oe.position("x"),y:Oe.position("y")}),{x:Ft.x,y:Ft.y}}};if(F.quality=="default"||F.quality=="proof"||F.randomize){var Le=w.calcParentsWithoutChildren(U,$),Fe=$.filter(function(Ve){return Ve.css("display")=="none"});F.eles=$.not(Fe),$.nodes().not(":parent").not(Fe).layoutPositions(M,F,Ie),Le.length>0&&Le.forEach(function(Ve){Ve.position(Ie(Ve))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),L}();h.exports=N},657:(h,f,p)=>{var m=p(548),b=p(140).layoutBase.Matrix,_=p(140).layoutBase.SVD,w=function(C){var A=C.cy,k=C.eles,I=k.nodes(),N=k.nodes(":parent"),L=new Map,P=new Map,M=new Map,F=[],U=[],$=[],G=[],B=[],Z=[],z=[],Y=[],W=void 0,Q=1e8,V=1e-9,j=C.piTol,ee=C.samplingType,te=C.nodeSeparation,ne=void 0,se=function(){for(var fe=0,Qe=0,Ke=!1;Qe<ne;){fe=Math.floor(Math.random()*W),Ke=!1;for(var mt=0;mt<Qe;mt++)if(G[mt]==fe){Ke=!0;break}if(!Ke)G[Qe]=fe,Qe++;else continue}},ie=function(fe,Qe,Ke){for(var mt=[],lt=0,$t=0,Ut=0,Jt=void 0,wn=[],Vn=0,Wn=1,Dn=0;Dn<W;Dn++)wn[Dn]=Q;for(mt[$t]=fe,wn[fe]=0;$t>=lt;){Ut=mt[lt++];for(var zn=F[Ut],vn=0;vn<zn.length;vn++)Jt=P.get(zn[vn]),wn[Jt]==Q&&(wn[Jt]=wn[Ut]+1,mt[++$t]=Jt);Z[Ut][Qe]=wn[Ut]*te}if(Ke){for(var Cn=0;Cn<W;Cn++)Z[Cn][Qe]<B[Cn]&&(B[Cn]=Z[Cn][Qe]);for(var Ar=0;Ar<W;Ar++)B[Ar]>Vn&&(Vn=B[Ar],Wn=Ar)}return Wn},ge=function(fe){var Qe=void 0;if(fe){Qe=Math.floor(Math.random()*W);for(var mt=0;mt<W;mt++)B[mt]=Q;for(var lt=0;lt<ne;lt++)G[lt]=Qe,Qe=ie(Qe,lt,fe)}else{se();for(var Ke=0;Ke<ne;Ke++)ie(G[Ke],Ke,fe)}for(var $t=0;$t<W;$t++)for(var Ut=0;Ut<ne;Ut++)Z[$t][Ut]*=Z[$t][Ut];for(var Jt=0;Jt<ne;Jt++)z[Jt]=[];for(var wn=0;wn<ne;wn++)for(var Vn=0;Vn<ne;Vn++)z[wn][Vn]=Z[G[Vn]][wn]},ce=function(){for(var fe=_.svd(z),Qe=fe.S,Ke=fe.U,mt=fe.V,lt=Qe[0]*Qe[0]*Qe[0],$t=[],Ut=0;Ut<ne;Ut++){$t[Ut]=[];for(var Jt=0;Jt<ne;Jt++)$t[Ut][Jt]=0,Ut==Jt&&($t[Ut][Jt]=Qe[Ut]/(Qe[Ut]*Qe[Ut]+lt/(Qe[Ut]*Qe[Ut])))}Y=b.multMat(b.multMat(mt,$t),b.transpose(Ke))},be=function(){for(var fe=void 0,Qe=void 0,Ke=[],mt=[],lt=[],$t=[],Ut=0;Ut<W;Ut++)Ke[Ut]=Math.random(),mt[Ut]=Math.random();Ke=b.normalize(Ke),mt=b.normalize(mt);for(var Jt=V,wn=V,Vn=void 0;;){for(var Wn=0;Wn<W;Wn++)lt[Wn]=Ke[Wn];if(Ke=b.multGamma(b.multL(b.multGamma(lt),Z,Y)),fe=b.dotProduct(lt,Ke),Ke=b.normalize(Ke),Jt=b.dotProduct(lt,Ke),Vn=Math.abs(Jt/wn),Vn<=1+j&&Vn>=1)break;wn=Jt}for(var Dn=0;Dn<W;Dn++)lt[Dn]=Ke[Dn];for(wn=V;;){for(var zn=0;zn<W;zn++)$t[zn]=mt[zn];if($t=b.minusOp($t,b.multCons(lt,b.dotProduct(lt,$t))),mt=b.multGamma(b.multL(b.multGamma($t),Z,Y)),Qe=b.dotProduct($t,mt),mt=b.normalize(mt),Jt=b.dotProduct($t,mt),Vn=Math.abs(Jt/wn),Vn<=1+j&&Vn>=1)break;wn=Jt}for(var vn=0;vn<W;vn++)$t[vn]=mt[vn];U=b.multCons(lt,Math.sqrt(Math.abs(fe))),$=b.multCons($t,Math.sqrt(Math.abs(Qe)))};m.connectComponents(A,k,m.getTopMostNodes(I),L),N.forEach(function(Xe){m.connectComponents(A,k,m.getTopMostNodes(Xe.descendants().intersection(k)),L)});for(var ve=0,De=0;De<I.length;De++)I[De].isParent()||P.set(I[De].id(),ve++);var ye=!0,Ee=!1,he=void 0;try{for(var we=L.keys()[Symbol.iterator](),Ce;!(ye=(Ce=we.next()).done);ye=!0){var Ie=Ce.value;P.set(Ie,ve++)}}catch(Xe){Ee=!0,he=Xe}finally{try{!ye&&we.return&&we.return()}finally{if(Ee)throw he}}for(var Le=0;Le<P.size;Le++)F[Le]=[];N.forEach(function(Xe){for(var fe=Xe.children().intersection(k);fe.nodes(":childless").length==0;)fe=fe.nodes()[0].children().intersection(k);var Qe=0,Ke=fe.nodes(":childless")[0].connectedEdges().length;fe.nodes(":childless").forEach(function(mt,lt){mt.connectedEdges().length<Ke&&(Ke=mt.connectedEdges().length,Qe=lt)}),M.set(Xe.id(),fe.nodes(":childless")[Qe].id())}),I.forEach(function(Xe){var fe=void 0;Xe.isParent()?fe=P.get(M.get(Xe.id())):fe=P.get(Xe.id()),Xe.neighborhood().nodes().forEach(function(Qe){k.intersection(Xe.edgesWith(Qe)).length>0&&(Qe.isParent()?F[fe].push(M.get(Qe.id())):F[fe].push(Qe.id()))})});var Fe=function(fe){var Qe=P.get(fe),Ke=void 0;L.get(fe).forEach(function(mt){A.getElementById(mt).isParent()?Ke=M.get(mt):Ke=mt,F[Qe].push(Ke),F[P.get(Ke)].push(fe)})},Ve=!0,Oe=!1,Dt=void 0;try{for(var ot=L.keys()[Symbol.iterator](),sn;!(Ve=(sn=ot.next()).done);Ve=!0){var Kt=sn.value;Fe(Kt)}}catch(Xe){Oe=!0,Dt=Xe}finally{try{!Ve&&ot.return&&ot.return()}finally{if(Oe)throw Dt}}W=P.size;var Ft=void 0;if(W>2){ne=W<C.sampleSize?W:C.sampleSize;for(var Je=0;Je<W;Je++)Z[Je]=[];for(var ht=0;ht<ne;ht++)Y[ht]=[];return C.quality=="draft"||C.step=="all"?(ge(ee),ce(),be(),Ft={nodeIndexes:P,xCoords:U,yCoords:$}):(P.forEach(function(Xe,fe){U.push(A.getElementById(fe).position("x")),$.push(A.getElementById(fe).position("y"))}),Ft={nodeIndexes:P,xCoords:U,yCoords:$}),Ft}else{var et=P.keys(),qe=A.getElementById(et.next().value),He=qe.position(),Ge=qe.outerWidth();if(U.push(He.x),$.push(He.y),W==2){var Ye=A.getElementById(et.next().value),Ae=Ye.outerWidth();U.push(He.x+Ge/2+Ae/2+C.idealEdgeLength),$.push(He.y)}return Ft={nodeIndexes:P,xCoords:U,yCoords:$},Ft}};h.exports={spectralLayout:w}},579:(h,f,p)=>{var m=p(212),b=function(w){w&&w("layout","fcose",m)};typeof cytoscape<"u"&&b(cytoscape),h.exports=b},140:h=>{h.exports=r}},s={};function o(h){var f=s[h];if(f!==void 0)return f.exports;var p=s[h]={exports:{}};return a[h](p,p.exports,o),p.exports}var u=o(579);return u})()})})(gQn);var fea=gQn.exports;const pea=O1(fea);var VTn={L:"left",R:"right",T:"top",B:"bottom"},YTn={L:X(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:X(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:X(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:X(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},gEe={L:X((e,t)=>e-t+2,"L"),R:X((e,t)=>e-2,"R"),T:X((e,t)=>e-t+2,"T"),B:X((e,t)=>e-2,"B")},gea=X(function(e){return qy(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),jTn=X(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),qy=X(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),y9=X(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),fbt=X(function(e,t){const r=qy(e)&&y9(t),a=y9(e)&&qy(t);return r||a},"isArchitectureDirectionXY"),mea=X(function(e){const t=e[0],r=e[1],a=qy(t)&&y9(r),s=y9(t)&&qy(r);return a||s},"isArchitecturePairXY"),bea=X(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),jut=X(function(e,t){const r=`${e}${t}`;return bea(r)?r:void 0},"getArchitectureDirectionPair"),yea=X(function([e,t],r){const a=r[0],s=r[1];return qy(a)?y9(s)?[e+(a==="L"?-1:1),t+(s==="T"?1:-1)]:[e+(a==="L"?-1:1),t]:qy(s)?[e+(s==="L"?1:-1),t+(a==="T"?1:-1)]:[e,t+(a==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),vea=X(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),_ea=X(function(e,t){return fbt(e,t)?"bend":qy(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wea=X(function(e){return e.type==="service"},"isArchitectureService"),Eea=X(function(e){return e.type==="junction"},"isArchitectureJunction"),mQn=X(e=>e.data(),"edgeData"),BV=X(e=>e.data(),"nodeData"),xea=Cc.architecture,uj,bQn=(uj=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},M1()}addService({id:t,icon:r,in:a,title:s,iconText:o}){if(this.registeredIds[t]!==void 0)throw new Error(`The service id [${t}] is already in use by another ${this.registeredIds[t]}`);if(a!==void 0){if(t===a)throw new Error(`The service [${t}] cannot be placed within itself`);if(this.registeredIds[a]===void 0)throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[a]==="node")throw new Error(`The service [${t}]'s parent is not a group`)}this.registeredIds[t]="node",this.nodes[t]={id:t,type:"service",icon:r,iconText:o,title:s,edges:[],in:a}}getServices(){return Object.values(this.nodes).filter(wea)}addJunction({id:t,in:r}){this.registeredIds[t]="node",this.nodes[t]={id:t,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(Eea)}getNodes(){return Object.values(this.nodes)}getNode(t){return this.nodes[t]??null}addGroup({id:t,icon:r,in:a,title:s}){var o,u,h;if(((o=this.registeredIds)==null?void 0:o[t])!==void 0)throw new Error(`The group id [${t}] is already in use by another ${this.registeredIds[t]}`);if(a!==void 0){if(t===a)throw new Error(`The group [${t}] cannot be placed within itself`);if(((u=this.registeredIds)==null?void 0:u[a])===void 0)throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if(((h=this.registeredIds)==null?void 0:h[a])==="node")throw new Error(`The group [${t}]'s parent is not a group`)}this.registeredIds[t]="group",this.groups[t]={id:t,icon:r,title:s,in:a}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:t,rhsId:r,lhsDir:a,rhsDir:s,lhsInto:o,rhsInto:u,lhsGroup:h,rhsGroup:f,title:p}){if(!jTn(a))throw new Error(`Invalid direction given for left hand side of edge ${t}--${r}. Expected (L,R,T,B) got ${String(a)}`);if(!jTn(s))throw new Error(`Invalid direction given for right hand side of edge ${t}--${r}. Expected (L,R,T,B) got ${String(s)}`);if(this.nodes[t]===void 0&&this.groups[t]===void 0)throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);const m=this.nodes[t].in,b=this.nodes[r].in;if(h&&m&&b&&m==b)throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(f&&m&&b&&m==b)throw new Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const _={lhsId:t,lhsDir:a,lhsInto:o,lhsGroup:h,rhsId:r,rhsDir:s,rhsInto:u,rhsGroup:f,title:p};this.edges.push(_),this.nodes[t]&&this.nodes[r]&&(this.nodes[t].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const t={},r=Object.entries(this.nodes).reduce((f,[p,m])=>(f[p]=m.edges.reduce((b,_)=>{var C,A;const w=(C=this.getNode(_.lhsId))==null?void 0:C.in,S=(A=this.getNode(_.rhsId))==null?void 0:A.in;if(w&&S&&w!==S){const k=_ea(_.lhsDir,_.rhsDir);k!=="bend"&&(t[w]??(t[w]={}),t[w][S]=k,t[S]??(t[S]={}),t[S][w]=k)}if(_.lhsId===p){const k=jut(_.lhsDir,_.rhsDir);k&&(b[k]=_.rhsId)}else{const k=jut(_.rhsDir,_.lhsDir);k&&(b[k]=_.lhsId)}return b},{}),f),{}),a=Object.keys(r)[0],s={[a]:1},o=Object.keys(r).reduce((f,p)=>p===a?f:{...f,[p]:1},{}),u=X(f=>{const p={[f]:[0,0]},m=[f];for(;m.length>0;){const b=m.shift();if(b){s[b]=1,delete o[b];const _=r[b],[w,S]=p[b];Object.entries(_).forEach(([C,A])=>{s[A]||(p[A]=yea([w,S],C),m.push(A))})}}return p},"BFS"),h=[u(a)];for(;Object.keys(o).length>0;)h.push(u(Object.keys(o)[0]));this.dataStructures={adjList:r,spatialMaps:h,groupAlignments:t}}return this.dataStructures}setElementForId(t,r){this.elements[t]=r}getElementById(t){return this.elements[t]}getConfig(){return cv({...xea,...$c().architecture})}getConfigField(t){return this.getConfig()[t]}},X(uj,"ArchitectureDB"),uj),Sea=X((e,t)=>{z$(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r))},"populateDb"),yQn={parser:{yy:void 0},parse:X(async e=>{var a;const t=await iL("architecture",e);it.debug(t);const r=(a=yQn.parser)==null?void 0:a.yy;if(!(r instanceof bQn))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Sea(t,r)},"parse")},Tea=X(e=>`
  .edge {
    stroke-width: ${e.archEdgeWidth};
    stroke: ${e.archEdgeColor};
    fill: none;
  }

  .arrow {
    fill: ${e.archEdgeArrowColor};
  }

  .node-bkg {
    fill: none;
    stroke: ${e.archGroupBorderColor};
    stroke-width: ${e.archGroupBorderWidth};
    stroke-dasharray: 8;
  }
  .node-icon-text {
    display: flex; 
    align-items: center;
  }
  
  .node-icon-text > div {
    color: #fff;
    margin: 1px;
    height: fit-content;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
`,"getStyles"),Cea=Tea,nV=X(e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),fle={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:nV('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:nV('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:nV('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:nV('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:nV('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:mBn,blank:{body:nV("")}}},Aea=X(async function(e,t,r){const a=r.getConfigField("padding"),s=r.getConfigField("iconSize"),o=s/2,u=s/6,h=u/2;await Promise.all(t.edges().map(async f=>{var $,G;const{source:p,sourceDir:m,sourceArrow:b,sourceGroup:_,target:w,targetDir:S,targetArrow:C,targetGroup:A,label:k}=mQn(f);let{x:I,y:N}=f[0].sourceEndpoint();const{x:L,y:P}=f[0].midpoint();let{x:M,y:F}=f[0].targetEndpoint();const U=a+4;if(_&&(qy(m)?I+=m==="L"?-U:U:N+=m==="T"?-U:U+18),A&&(qy(S)?M+=S==="L"?-U:U:F+=S==="T"?-U:U+18),!_&&(($=r.getNode(p))==null?void 0:$.type)==="junction"&&(qy(m)?I+=m==="L"?o:-o:N+=m==="T"?o:-o),!A&&((G=r.getNode(w))==null?void 0:G.type)==="junction"&&(qy(S)?M+=S==="L"?o:-o:F+=S==="T"?o:-o),f[0]._private.rscratch){const B=e.insert("g");if(B.insert("path").attr("d",`M ${I},${N} L ${L},${P} L${M},${F} `).attr("class","edge").attr("id",XV(p,w,{prefix:"L"})),b){const Z=qy(m)?gEe[m](I,u):I-h,z=y9(m)?gEe[m](N,u):N-h;B.insert("polygon").attr("points",YTn[m](u)).attr("transform",`translate(${Z},${z})`).attr("class","arrow")}if(C){const Z=qy(S)?gEe[S](M,u):M-h,z=y9(S)?gEe[S](F,u):F-h;B.insert("polygon").attr("points",YTn[S](u)).attr("transform",`translate(${Z},${z})`).attr("class","arrow")}if(k){const Z=fbt(m,S)?"XY":qy(m)?"X":"Y";let z=0;Z==="X"?z=Math.abs(I-M):Z==="Y"?z=Math.abs(N-F)/1.5:z=Math.abs(I-M)/2;const Y=B.append("g");if(await Yw(Y,k,{useHtmlLabels:!1,width:z,classes:"architecture-service-label"},nn()),Y.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),Z==="X")Y.attr("transform","translate("+L+", "+P+")");else if(Z==="Y")Y.attr("transform","translate("+L+", "+P+") rotate(-90)");else if(Z==="XY"){const W=jut(m,S);if(W&&mea(W)){const Q=Y.node().getBoundingClientRect(),[V,j]=vea(W);Y.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*V*j*45})`);const ee=Y.node().getBoundingClientRect();Y.attr("transform",`
                translate(${L}, ${P-Q.height/2})
                translate(${V*ee.width/2}, ${j*ee.height/2})
                rotate(${-1*V*j*45}, 0, ${Q.height/2})
              `)}}}}}))},"drawEdges"),kea=X(async function(e,t,r){const s=r.getConfigField("padding")*.75,o=r.getConfigField("fontSize"),h=r.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async f=>{const p=BV(f);if(p.type==="group"){const{h:m,w:b,x1:_,y1:w}=f.boundingBox(),S=e.append("rect");S.attr("id",`group-${p.id}`).attr("x",_+h).attr("y",w+h).attr("width",b).attr("height",m).attr("class","node-bkg");const C=e.append("g");let A=_,k=w;if(p.icon){const I=C.append("g");I.html(`<g>${await QO(p.icon,{height:s,width:s,fallbackPrefix:fle.prefix})}</g>`),I.attr("transform","translate("+(A+h+1)+", "+(k+h+1)+")"),A+=s,k+=o/2-1-2}if(p.label){const I=C.append("g");await Yw(I,p.label,{useHtmlLabels:!1,width:b,classes:"architecture-service-label"},nn()),I.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),I.attr("transform","translate("+(A+h+4)+", "+(k+h+2)+")")}r.setElementForId(p.id,S)}}))},"drawGroups"),Rea=X(async function(e,t,r){const a=nn();for(const s of r){const o=t.append("g"),u=e.getConfigField("iconSize");if(s.title){const m=o.append("g");await Yw(m,s.title,{useHtmlLabels:!1,width:u*1.5,classes:"architecture-service-label"},a),m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),m.attr("transform","translate("+u/2+", "+u+")")}const h=o.append("g");if(s.icon)h.html(`<g>${await QO(s.icon,{height:u,width:u,fallbackPrefix:fle.prefix})}</g>`);else if(s.iconText){h.html(`<g>${await QO("blank",{height:u,width:u,fallbackPrefix:fle.prefix})}</g>`);const _=h.append("g").append("foreignObject").attr("width",u).attr("height",u).append("div").attr("class","node-icon-text").attr("style",`height: ${u}px;`).append("div").html(Ic(s.iconText,a)),w=parseInt(window.getComputedStyle(_.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;_.attr("style",`-webkit-line-clamp: ${Math.floor((u-2)/w)};`)}else h.append("path").attr("class","node-bkg").attr("id","node-"+s.id).attr("d",`M0 ${u} v${-u} q0,-5 5,-5 h${u} q5,0 5,5 v${u} H0 Z`);o.attr("id",`service-${s.id}`).attr("class","architecture-service");const{width:f,height:p}=o.node().getBBox();s.width=f,s.height=p,e.setElementForId(s.id,o)}return 0},"drawServices"),Iea=X(function(e,t,r){r.forEach(a=>{const s=t.append("g"),o=e.getConfigField("iconSize");s.append("g").append("rect").attr("id","node-"+a.id).attr("fill-opacity","0").attr("width",o).attr("height",o),s.attr("class","architecture-junction");const{width:h,height:f}=s._groups[0][0].getBBox();s.width=h,s.height=f,e.setElementForId(a.id,s)})},"drawJunctions");yBn([{name:fle.prefix,icons:fle}]);CS.use(pea);function vQn(e,t,r){e.forEach(a=>{t.add({group:"nodes",data:{type:"service",id:a.id,icon:a.icon,label:a.title,parent:a.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}X(vQn,"addServices");function _Qn(e,t,r){e.forEach(a=>{t.add({group:"nodes",data:{type:"junction",id:a.id,parent:a.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}X(_Qn,"addJunctions");function wQn(e,t){t.nodes().map(r=>{const a=BV(r);if(a.type==="group")return;a.x=r.position().x,a.y=r.position().y,e.getElementById(a.id).attr("transform","translate("+(a.x||0)+","+(a.y||0)+")")})}X(wQn,"positionNodes");function EQn(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}X(EQn,"addGroups");function xQn(e,t){e.forEach(r=>{const{lhsId:a,rhsId:s,lhsInto:o,lhsGroup:u,rhsInto:h,lhsDir:f,rhsDir:p,rhsGroup:m,title:b}=r,_=fbt(r.lhsDir,r.rhsDir)?"segments":"straight",w={id:`${a}-${s}`,label:b,source:a,sourceDir:f,sourceArrow:o,sourceGroup:u,sourceEndpoint:f==="L"?"0 50%":f==="R"?"100% 50%":f==="T"?"50% 0":"50% 100%",target:s,targetDir:p,targetArrow:h,targetGroup:m,targetEndpoint:p==="L"?"0 50%":p==="R"?"100% 50%":p==="T"?"50% 0":"50% 100%"};t.add({group:"edges",data:w,classes:_})})}X(xQn,"addEdges");function SQn(e,t,r){const a=X((h,f)=>Object.entries(h).reduce((p,[m,b])=>{var S;let _=0;const w=Object.entries(b);if(w.length===1)return p[m]=w[0][1],p;for(let C=0;C<w.length-1;C++)for(let A=C+1;A<w.length;A++){const[k,I]=w[C],[N,L]=w[A];if(((S=r[k])==null?void 0:S[N])===f)p[m]??(p[m]=[]),p[m]=[...p[m],...I,...L];else if(k==="default"||N==="default")p[m]??(p[m]=[]),p[m]=[...p[m],...I,...L];else{const M=`${m}-${_++}`;p[M]=I;const F=`${m}-${_++}`;p[F]=L}}return p},{}),"flattenAlignments"),s=t.map(h=>{const f={},p={};return Object.entries(h).forEach(([m,[b,_]])=>{var S,C,A;const w=((S=e.getNode(m))==null?void 0:S.in)??"default";f[_]??(f[_]={}),(C=f[_])[w]??(C[w]=[]),f[_][w].push(m),p[b]??(p[b]={}),(A=p[b])[w]??(A[w]=[]),p[b][w].push(m)}),{horiz:Object.values(a(f,"horizontal")).filter(m=>m.length>1),vert:Object.values(a(p,"vertical")).filter(m=>m.length>1)}}),[o,u]=s.reduce(([h,f],{horiz:p,vert:m})=>[[...h,...p],[...f,...m]],[[],[]]);return{horizontal:o,vertical:u}}X(SQn,"getAlignments");function TQn(e,t){const r=[],a=X(o=>`${o[0]},${o[1]}`,"posToStr"),s=X(o=>o.split(",").map(u=>parseInt(u)),"strToPos");return e.forEach(o=>{const u=Object.fromEntries(Object.entries(o).map(([m,b])=>[a(b),m])),h=[a([0,0])],f={},p={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;h.length>0;){const m=h.shift();if(m){f[m]=1;const b=u[m];if(b){const _=s(m);Object.entries(p).forEach(([w,S])=>{const C=a([_[0]+S[0],_[1]+S[1]]),A=u[C];A&&!f[C]&&(h.push(C),r.push({[VTn[w]]:A,[VTn[gea(w)]]:b,gap:1.5*t.getConfigField("iconSize")}))})}}}}),r}X(TQn,"getRelativeConstraints");function CQn(e,t,r,a,s,{spatialMaps:o,groupAlignments:u}){return new Promise(h=>{const f=gn("body").append("div").attr("id","cy").attr("style","display:none"),p=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${s.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${s.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});f.remove(),EQn(r,p),vQn(e,p,s),_Qn(t,p,s),xQn(a,p);const m=SQn(s,o,u),b=TQn(o,s),_=p.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(w){const[S,C]=w.connectedNodes(),{parent:A}=BV(S),{parent:k}=BV(C);return A===k?1.5*s.getConfigField("iconSize"):.5*s.getConfigField("iconSize")},edgeElasticity(w){const[S,C]=w.connectedNodes(),{parent:A}=BV(S),{parent:k}=BV(C);return A===k?.45:.001},alignmentConstraint:m,relativePlacementConstraint:b});_.one("layoutstop",()=>{var S;function w(C,A,k,I){let N,L;const{x:P,y:M}=C,{x:F,y:U}=A;L=(I-M+(P-k)*(M-U)/(P-F))/Math.sqrt(1+Math.pow((M-U)/(P-F),2)),N=Math.sqrt(Math.pow(I-M,2)+Math.pow(k-P,2)-Math.pow(L,2));const $=Math.sqrt(Math.pow(F-P,2)+Math.pow(U-M,2));N=N/$;let G=(F-P)*(I-M)-(U-M)*(k-P);switch(!0){case G>=0:G=1;break;case G<0:G=-1;break}let B=(F-P)*(k-P)+(U-M)*(I-M);switch(!0){case B>=0:B=1;break;case B<0:B=-1;break}return L=Math.abs(L)*G,N=N*B,{distances:L,weights:N}}X(w,"getSegmentWeights"),p.startBatch();for(const C of Object.values(p.edges()))if((S=C.data)!=null&&S.call(C)){const{x:A,y:k}=C.source().position(),{x:I,y:N}=C.target().position();if(A!==I&&k!==N){const L=C.sourceEndpoint(),P=C.targetEndpoint(),{sourceDir:M}=mQn(C),[F,U]=y9(M)?[L.x,P.y]:[P.x,L.y],{weights:$,distances:G}=w(L,P,F,U);C.style("segment-distances",G),C.style("segment-weights",$)}}p.endBatch(),_.run()}),_.run(),p.ready(w=>{it.info("Ready",w),h(p)})})}X(CQn,"layoutArchitecture");var Nea=X(async(e,t,r,a)=>{const s=a.db,o=s.getServices(),u=s.getJunctions(),h=s.getGroups(),f=s.getEdges(),p=s.getDataStructures(),m=bR(t),b=m.append("g");b.attr("class","architecture-edges");const _=m.append("g");_.attr("class","architecture-services");const w=m.append("g");w.attr("class","architecture-groups"),await Rea(s,_,o),Iea(s,_,u);const S=await CQn(o,u,h,f,s,p);await Aea(b,S,s),await kea(w,S,s),wQn(s,S),rce(void 0,m,s.getConfigField("padding"),s.getConfigField("useMaxWidth"))},"draw"),Oea={draw:Nea},Lea={parser:yQn,get db(){return new bQn},renderer:Oea,styles:Cea};const Dea=Object.freeze(Object.defineProperty({__proto__:null,diagram:Lea},Symbol.toStringTag,{value:"Module"}));var hj,AQn=(hj=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp}getNodes(){return this.nodes}getConfig(){const t=Cc,r=$c();return cv({...t.treemap,...r.treemap??{}})}addNode(t,r){this.nodes.push(t),this.levels.set(t,r),r===0&&(this.outerNodes.push(t),this.root??(this.root=t))}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,r){const a=this.classes.get(t)??{id:t,styles:[],textStyles:[]},s=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(o=>{R1t(o)&&(a!=null&&a.textStyles?a.textStyles.push(o):a.textStyles=[o]),a!=null&&a.styles?a.styles.push(o):a.styles=[o]}),this.classes.set(t,a)}getClasses(){return this.classes}getStylesForClass(t){var r;return((r=this.classes.get(t))==null?void 0:r.styles)??[]}clear(){M1(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},X(hj,"TreeMapDB"),hj);function kQn(e){if(!e.length)return[];const t=[],r=[];return e.forEach(a=>{const s={name:a.name,children:a.type==="Leaf"?void 0:[]};for(s.classSelector=a==null?void 0:a.classSelector,a!=null&&a.cssCompiledStyles&&(s.cssCompiledStyles=[a.cssCompiledStyles]),a.type==="Leaf"&&a.value!==void 0&&(s.value=a.value);r.length>0&&r[r.length-1].level>=a.level;)r.pop();if(r.length===0)t.push(s);else{const o=r[r.length-1].node;o.children?o.children.push(s):o.children=[s]}a.type!=="Leaf"&&r.push({node:s,level:a.level})}),t}X(kQn,"buildHierarchy");var Mea=X((e,t)=>{z$(e,t);const r=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&t.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const u=o.item;if(!u)continue;const h=o.indent?parseInt(o.indent):0,f=Pea(u),p=u.classSelector?t.getStylesForClass(u.classSelector):[],m=p.length>0?p.join(";"):void 0,b={level:h,name:f,type:u.$type,value:u.value,classSelector:u.classSelector,cssCompiledStyles:m};r.push(b)}const a=kQn(r),s=X((o,u)=>{for(const h of o)t.addNode(h,u),h.children&&h.children.length>0&&s(h.children,u+1)},"addNodesRecursively");s(a,0)},"populate"),Pea=X(e=>e.name?String(e.name):"","getItemName"),RQn={parser:{yy:void 0},parse:X(async e=>{var t;try{const a=await iL("treemap",e);it.debug("Treemap AST:",a);const s=(t=RQn.parser)==null?void 0:t.yy;if(!(s instanceof AQn))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Mea(a,s)}catch(r){throw it.error("Error parsing treemap:",r),r}},"parse")},Bea=10,rV=10,die=25,Fea=X((e,t,r,a)=>{const s=a.db,o=s.getConfig(),u=o.padding??Bea,h=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:p}=$c();if(!f)return;const m=h?30:0,b=bR(t),_=o.nodeWidth?o.nodeWidth*rV:960,w=o.nodeHeight?o.nodeHeight*rV:500,S=_,C=w+m;b.attr("viewBox",`0 0 ${S} ${C}`),yv(b,C,S,o.useMaxWidth);let A;try{const Y=o.valueFormat||",";if(Y==="$0,0")A=X(W=>"$"+PB(",")(W),"valueFormat");else if(Y.startsWith("$")&&Y.includes(",")){const W=/\.\d+/.exec(Y),Q=W?W[0]:"";A=X(V=>"$"+PB(","+Q)(V),"valueFormat")}else if(Y.startsWith("$")){const W=Y.substring(1);A=X(Q=>"$"+PB(W||"")(Q),"valueFormat")}else A=PB(Y)}catch(Y){it.error("Error creating format function:",Y),A=PB(",")}const k=cA().range(["transparent",p.cScale0,p.cScale1,p.cScale2,p.cScale3,p.cScale4,p.cScale5,p.cScale6,p.cScale7,p.cScale8,p.cScale9,p.cScale10,p.cScale11]),I=cA().range(["transparent",p.cScalePeer0,p.cScalePeer1,p.cScalePeer2,p.cScalePeer3,p.cScalePeer4,p.cScalePeer5,p.cScalePeer6,p.cScalePeer7,p.cScalePeer8,p.cScalePeer9,p.cScalePeer10,p.cScalePeer11]),N=cA().range([p.cScaleLabel0,p.cScaleLabel1,p.cScaleLabel2,p.cScaleLabel3,p.cScaleLabel4,p.cScaleLabel5,p.cScaleLabel6,p.cScaleLabel7,p.cScaleLabel8,p.cScaleLabel9,p.cScaleLabel10,p.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",m/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const L=b.append("g").attr("transform",`translate(0, ${m})`).attr("class","treemapContainer"),P=e1t(f).sum(Y=>Y.value??0).sort((Y,W)=>(W.value??0)-(Y.value??0)),F=Bci().size([_,w]).paddingTop(Y=>Y.children&&Y.children.length>0?die+rV:0).paddingInner(u).paddingLeft(Y=>Y.children&&Y.children.length>0?rV:0).paddingRight(Y=>Y.children&&Y.children.length>0?rV:0).paddingBottom(Y=>Y.children&&Y.children.length>0?rV:0).round(!0)(P),U=F.descendants().filter(Y=>Y.children&&Y.children.length>0),$=L.selectAll(".treemapSection").data(U).enter().append("g").attr("class","treemapSection").attr("transform",Y=>`translate(${Y.x0},${Y.y0})`);$.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",die).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",Y=>Y.depth===0?"display: none;":""),$.append("clipPath").attr("id",(Y,W)=>`clip-section-${t}-${W}`).append("rect").attr("width",Y=>Math.max(0,Y.x1-Y.x0-12)).attr("height",die),$.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",Y=>Y.y1-Y.y0).attr("class",(Y,W)=>`treemapSection section${W}`).attr("fill",Y=>k(Y.data.name)).attr("fill-opacity",.6).attr("stroke",Y=>I(Y.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",Y=>{if(Y.depth===0)return"display: none;";const W=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W.nodeStyles+";"+W.borderStyles.join(";")}),$.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",die/2).attr("dominant-baseline","middle").text(Y=>Y.depth===0?"":Y.data.name).attr("font-weight","bold").attr("style",Y=>{if(Y.depth===0)return"display: none;";const W="dominant-baseline: middle; font-size: 12px; fill:"+N(Y.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")}).each(function(Y){if(Y.depth===0)return;const W=gn(this),Q=Y.data.name;W.text(Q);const V=Y.x1-Y.x0,j=6;let ee;o.showValues!==!1&&Y.value?ee=V-10-30-10-j:ee=V-j-6;const ne=Math.max(15,ee),se=W.node();if(se.getComputedTextLength()>ne){const ge="...";let ce=Q;for(;ce.length>0;){if(ce=Q.substring(0,ce.length-1),ce.length===0){W.text(ge),se.getComputedTextLength()>ne&&W.text("");break}if(W.text(ce+ge),se.getComputedTextLength()<=ne)break}}}),o.showValues!==!1&&$.append("text").attr("class","treemapSectionValue").attr("x",Y=>Y.x1-Y.x0-10).attr("y",die/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(Y=>Y.value?A(Y.value):"").attr("font-style","italic").attr("style",Y=>{if(Y.depth===0)return"display: none;";const W="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(Y.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")});const G=F.leaves(),B=L.selectAll(".treemapLeafGroup").data(G).enter().append("g").attr("class",(Y,W)=>`treemapNode treemapLeafGroup leaf${W}${Y.data.classSelector?` ${Y.data.classSelector}`:""}x`).attr("transform",Y=>`translate(${Y.x0},${Y.y0})`);B.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",Y=>Y.y1-Y.y0).attr("class","treemapLeaf").attr("fill",Y=>Y.parent?k(Y.parent.data.name):k(Y.data.name)).attr("style",Y=>Ia({cssCompiledStyles:Y.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",Y=>Y.parent?k(Y.parent.data.name):k(Y.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(Y,W)=>`clip-${t}-${W}`).append("rect").attr("width",Y=>Math.max(0,Y.x1-Y.x0-4)).attr("height",Y=>Math.max(0,Y.y1-Y.y0-4)),B.append("text").attr("class","treemapLabel").attr("x",Y=>(Y.x1-Y.x0)/2).attr("y",Y=>(Y.y1-Y.y0)/2).attr("style",Y=>{const W="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+N(Y.data.name)+";",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")}).attr("clip-path",(Y,W)=>`url(#clip-${t}-${W})`).text(Y=>Y.data.name).each(function(Y){const W=gn(this),Q=Y.x1-Y.x0,V=Y.y1-Y.y0,j=W.node(),ee=4,te=Q-2*ee,ne=V-2*ee;if(te<10||ne<10){W.style("display","none");return}let se=parseInt(W.style("font-size"),10);const ie=8,ge=28,ce=.6,be=6,ve=2;for(;j.getComputedTextLength()>te&&se>ie;)se--,W.style("font-size",`${se}px`);let De=Math.max(be,Math.min(ge,Math.round(se*ce))),ye=se+ve+De;for(;ye>ne&&se>ie&&(se--,De=Math.max(be,Math.min(ge,Math.round(se*ce))),!(De<be&&se===ie));)W.style("font-size",`${se}px`),ye=se+ve+De;W.style("font-size",`${se}px`),(j.getComputedTextLength()>te||se<ie||ne<se)&&W.style("display","none")}),o.showValues!==!1&&B.append("text").attr("class","treemapValue").attr("x",W=>(W.x1-W.x0)/2).attr("y",function(W){return(W.y1-W.y0)/2}).attr("style",W=>{const Q="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+N(W.data.name)+";",V=Ia({cssCompiledStyles:W.data.cssCompiledStyles});return Q+V.labelStyles.replace("color:","fill:")}).attr("clip-path",(W,Q)=>`url(#clip-${t}-${Q})`).text(W=>W.value?A(W.value):"").each(function(W){const Q=gn(this),V=this.parentNode;if(!V){Q.style("display","none");return}const j=gn(V).select(".treemapLabel");if(j.empty()||j.style("display")==="none"){Q.style("display","none");return}const ee=parseFloat(j.style("font-size")),te=28,ne=.6,se=6,ie=2,ge=Math.max(se,Math.min(te,Math.round(ee*ne)));Q.style("font-size",`${ge}px`);const be=(W.y1-W.y0)/2+ee/2+ie;Q.attr("y",be);const ve=W.x1-W.x0,Ee=W.y1-W.y0-4,he=ve-2*4;Q.node().getComputedTextLength()>he||be+ge>Ee||ge<se?Q.style("display","none"):Q.style("display",null)});const z=o.diagramPadding??8;U$(b,z,"flowchart",(o==null?void 0:o.useMaxWidth)||!1)},"draw"),$ea=X(function(e,t){return t.db.getClasses()},"getClasses"),Uea={draw:Fea,getClasses:$ea},zea={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},Gea=X(({treemap:e}={})=>{const t=cv(zea,e);return`
  .treemapNode.section {
    stroke: ${t.sectionStrokeColor};
    stroke-width: ${t.sectionStrokeWidth};
    fill: ${t.sectionFillColor};
  }
  .treemapNode.leaf {
    stroke: ${t.leafStrokeColor};
    stroke-width: ${t.leafStrokeWidth};
    fill: ${t.leafFillColor};
  }
  .treemapLabel {
    fill: ${t.labelColor};
    font-size: ${t.labelFontSize};
  }
  .treemapValue {
    fill: ${t.valueColor};
    font-size: ${t.valueFontSize};
  }
  .treemapTitle {
    fill: ${t.titleColor};
    font-size: ${t.titleFontSize};
  }
  `},"getStyles"),qea=Gea,Hea={parser:RQn,get db(){return new AQn},renderer:Uea,styles:qea};const Vea=Object.freeze(Object.defineProperty({__proto__:null,diagram:Hea},Symbol.toStringTag,{value:"Module"})),Yea=async e=>{const t=await e.getFile();return t.handle=e,t};var jea=async(e=[{}])=>{Array.isArray(e)||(e=[e]);const t=[];e.forEach((s,o)=>{t[o]={description:s.description||"",accept:{}},s.mimeTypes?s.mimeTypes.map(u=>{t[o].accept[u]=s.extensions||[]}):t[o].accept["*/*"]=s.extensions||[]});const r=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),a=await Promise.all(r.map(Yea));return e[0].multiple?a:a[0]};const Wea=Object.freeze(Object.defineProperty({__proto__:null,default:jea},Symbol.toStringTag,{value:"Module"}));var Kea=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,r)=>{const a=document.createElement("input");a.type="file";const s=[...e.map(h=>h.mimeTypes||[]),...e.map(h=>h.extensions||[])].join();a.multiple=e[0].multiple||!1,a.accept=s||"";const o=h=>{typeof u=="function"&&u(),t(h)},u=e[0].legacySetup&&e[0].legacySetup(o,()=>u(r),a);a.addEventListener("change",()=>{o(a.multiple?Array.from(a.files):a.files[0])}),a.click()}));const Xea=Object.freeze(Object.defineProperty({__proto__:null,default:Kea},Symbol.toStringTag,{value:"Module"}));function eSe(e){function t(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var a=r.done;return Promise.resolve(r.value).then(function(s){return{value:s,done:a}})}return eSe=function(r){this.s=r,this.n=r.next},eSe.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(r){var a=this.s.return;return a===void 0?Promise.resolve({value:r,done:!0}):t(a.apply(this.s,arguments))},throw:function(r){var a=this.s.return;return a===void 0?Promise.reject(r):t(a.apply(this.s,arguments))}},new eSe(e)}const IQn=async(e,t,r=e.name,a)=>{const s=[],o=[];var u,h=!1,f=!1;try{for(var p,m=function(b){var _,w,S,C=2;for(typeof Symbol<"u"&&(w=Symbol.asyncIterator,S=Symbol.iterator);C--;){if(w&&(_=b[w])!=null)return _.call(b);if(S&&(_=b[S])!=null)return new eSe(_.call(b));w="@@asyncIterator",S="@@iterator"}throw new TypeError("Object is not async iterable")}(e.values());h=!(p=await m.next()).done;h=!1){const b=p.value,_=`${r}/${b.name}`;b.kind==="file"?o.push(b.getFile().then(w=>(w.directoryHandle=e,w.handle=b,Object.defineProperty(w,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>_})))):b.kind!=="directory"||!t||a&&a(b)||s.push(IQn(b,t,_,a))}}catch(b){f=!0,u=b}finally{try{h&&m.return!=null&&await m.return()}finally{if(f)throw u}}return[...(await Promise.all(s)).flat(),...await Promise.all(o)]};var Qea=async(e={})=>{e.recursive=e.recursive||!1;const t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return IQn(t,e.recursive,void 0,e.skipDirectory)};const Zea=Object.freeze(Object.defineProperty({__proto__:null,default:Qea},Symbol.toStringTag,{value:"Module"}));var Jea=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,r)=>{const a=document.createElement("input");a.type="file",a.webkitdirectory=!0;const s=u=>{typeof o=="function"&&o(),t(u)},o=e[0].legacySetup&&e[0].legacySetup(s,()=>o(r),a);a.addEventListener("change",()=>{let u=Array.from(a.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(u=u.filter(h=>h.webkitRelativePath.split("/").every(f=>!e[0].skipDirectory({name:f,kind:"directory"})))):u=u.filter(h=>h.webkitRelativePath.split("/").length===2),s(u)}),a.click()}));const eta=Object.freeze(Object.defineProperty({__proto__:null,default:Jea},Symbol.toStringTag,{value:"Module"}));var tta=async(e,t=[{}],r=null,a=!1,s=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";const o=[];let u=null;if(e instanceof Blob&&e.type?u=e.type:e.headers&&e.headers.get("content-type")&&(u=e.headers.get("content-type")),t.forEach((p,m)=>{o[m]={description:p.description||"",accept:{}},p.mimeTypes?(m===0&&u&&p.mimeTypes.push(u),p.mimeTypes.map(b=>{o[m].accept[b]=p.extensions||[]})):u&&(o[m].accept[u]=p.extensions||[])}),r)try{await r.getFile()}catch(p){if(r=null,a)throw p}const h=r||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:o,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!r&&s&&s();const f=await h.createWritable();return"stream"in e?(await e.stream().pipeTo(f),h):"body"in e?(await e.body.pipeTo(f),h):(await f.write(await e),await f.close(),h)};const nta=Object.freeze(Object.defineProperty({__proto__:null,default:tta},Symbol.toStringTag,{value:"Module"}));var rta=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);const r=document.createElement("a");let a=e;"body"in e&&(a=await async function(u,h){const f=u.getReader(),p=new ReadableStream({start:_=>async function w(){return f.read().then(({done:S,value:C})=>{if(!S)return _.enqueue(C),w();_.close()})}()}),m=new Response(p),b=await m.blob();return f.releaseLock(),new Blob([b],{type:h})}(e.body,e.headers.get("content-type"))),r.download=t.fileName||"Untitled",r.href=URL.createObjectURL(await a);const s=()=>{typeof o=="function"&&o()},o=t.legacySetup&&t.legacySetup(s,()=>o(reject),r);return r.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(r.href),3e4),s()}),r.click(),null};const ita=Object.freeze(Object.defineProperty({__proto__:null,default:rta},Symbol.toStringTag,{value:"Module"}));var NQn={exports:{}};/*!

pica
https://github.com/nodeca/pica

*/(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(a,s,o){function u(p,m){if(!s[p]){if(!a[p]){var b=typeof sO=="function"&&sO;if(!m&&b)return b(p,!0);if(h)return h(p,!0);var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}var w=s[p]={exports:{}};a[p][0].call(w.exports,function(S){var C=a[p][1][S];return u(C||S)},w,w.exports,r,a,s,o)}return s[p].exports}for(var h=typeof sO=="function"&&sO,f=0;f<o.length;f++)u(o[f]);return u}return r}()({1:[function(r,a,s){var o=r("inherits"),u=r("multimath"),h=r("./mm_unsharp_mask"),f=r("./mm_resize");function p(m){var b=m||[],_={js:b.indexOf("js")>=0,wasm:b.indexOf("wasm")>=0};u.call(this,_),this.features={js:_.js,wasm:_.wasm&&this.has_wasm()},this.use(h),this.use(f)}o(p,u),p.prototype.resizeAndUnsharp=function(b,_){var w=this.resize(b,_);return b.unsharpAmount&&this.unsharp_mask(w,b.toWidth,b.toHeight,b.unsharpAmount,b.unsharpRadius,b.unsharpThreshold),w},a.exports=p},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(r,a,s){function o(f){return f<0?0:f>255?255:f}function u(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M<b;M++){for(I=0,F=0;F<_;F++){for(N=w[I++],L=w[I++],P=$+N*4|0,S=C=A=k=0;L>0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}function h(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M<b;M++){for(I=0,F=0;F<_;F++){for(N=w[I++],L=w[I++],P=$+N*4|0,S=C=A=k=0;L>0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}a.exports={convolveHorizontally:u,convolveVertically:h}},{}],3:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(r,a,s){a.exports={name:"resize",fn:r("./resize"),wasm_fn:r("./resize_wasm"),wasm_src:r("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(r,a,s){var o=r("./resize_filter_gen"),u=r("./convolve").convolveHorizontally,h=r("./convolve").convolveVertically;function f(p,m,b){for(var _=3,w=m*b*4|0;_<w;)p[_]=255,_=_+4|0}a.exports=function(m){var b=m.src,_=m.width,w=m.height,S=m.toWidth,C=m.toHeight,A=m.scaleX||m.toWidth/m.width,k=m.scaleY||m.toHeight/m.height,I=m.offsetX||0,N=m.offsetY||0,L=m.dest||new Uint8Array(S*C*4),P=typeof m.quality>"u"?3:m.quality,M=m.alpha||!1,F=o(P,_,S,A,I),U=o(P,w,C,k,N),$=new Uint8Array(S*w*4);return u(b,$,_,w,S,F),h($,L,w,S,C,U),M||f(L,S,C),L}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(r,a,s){var o=r("./resize_filter_info"),u=14;function h(f){return Math.round(f*((1<<u)-1))}a.exports=function(p,m,b,_,w){var S=o[p].filter,C=1/_,A=Math.min(1,_),k=o[p].win/A,I,N,L,P,M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee=Math.floor((k+1)*2),te=new Int16Array((ee+2)*b),ne=0,se=!te.subarray||!te.set;for(I=0;I<b;I++){for(N=(I+.5)*C+w,L=Math.max(0,Math.floor(N-k)),P=Math.min(m-1,Math.ceil(N+k)),M=P-L+1,F=new Float32Array(M),U=new Int16Array(M),$=0,G=L,B=0;G<=P;G++,B++)Z=S((G+.5-N)*A),$+=Z,F[B]=Z;for(z=0,B=0;B<F.length;B++)Y=F[B]/$,z+=Y,U[B]=h(Y);for(U[b>>1]+=h(1-z),W=0;W<U.length&&U[W]===0;)W++;if(W<U.length){for(Q=U.length-1;Q>0&&U[Q]===0;)Q--;if(V=L+W,j=Q-W+1,te[ne++]=V,te[ne++]=j,!se)te.set(U.subarray(W,Q+1),ne),ne+=j;else for(B=W;B<=Q;B++)te[ne++]=U[B]}else te[ne++]=0,te[ne++]=0}return te}},{"./resize_filter_info":7}],7:[function(r,a,s){a.exports=[{win:.5,filter:function(u){return u>=-.5&&u<.5?1:0}},{win:1,filter:function(u){if(u<=-1||u>=1)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*(.54+.46*Math.cos(h/1))}},{win:2,filter:function(u){if(u<=-2||u>=2)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/2)/(h/2)}},{win:3,filter:function(u){if(u<=-3||u>=3)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/3)/(h/3)}}]},{}],8:[function(r,a,s){var o=r("./resize_filter_gen");function u(m,b,_){for(var w=3,S=b*_*4|0;w<S;)m[w]=255,w=w+4|0}function h(m){return new Uint8Array(m.buffer,0,m.byteLength)}var f=!0;try{f=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch{}function p(m,b,_){if(f){b.set(h(m),_);return}for(var w=_,S=0;S<m.length;S++){var C=m[S];b[w++]=C&255,b[w++]=C>>8&255}}a.exports=function(b){var _=b.src,w=b.width,S=b.height,C=b.toWidth,A=b.toHeight,k=b.scaleX||b.toWidth/b.width,I=b.scaleY||b.toHeight/b.height,N=b.offsetX||0,L=b.offsetY||0,P=b.dest||new Uint8Array(C*A*4),M=typeof b.quality>"u"?3:b.quality,F=b.alpha||!1,U=o(M,w,C,k,N),$=o(M,S,A,I,L),G=0,B=this.__align(G+Math.max(_.byteLength,P.byteLength)),Z=this.__align(B+S*C*4),z=this.__align(Z+U.byteLength),Y=z+$.byteLength,W=this.__instance("resize",Y),Q=new Uint8Array(this.__memory.buffer),V=new Uint32Array(this.__memory.buffer),j=new Uint32Array(_.buffer);V.set(j),p(U,Q,Z),p($,Q,z);var ee=W.exports.convolveHV||W.exports._convolveHV;ee(Z,z,B,w,S,C,A);var te=new Uint32Array(P.buffer);return te.set(new Uint32Array(this.__memory.buffer,0,A*C)),F||u(P,C,A),P}},{"./resize_filter_gen":6}],9:[function(r,a,s){a.exports={name:"unsharp_mask",fn:r("./unsharp_mask"),wasm_fn:r("./unsharp_mask_wasm"),wasm_src:r("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(r,a,s){var o=r("glur/mono16");function u(h,f,p){for(var m=f*p,b=new Uint16Array(m),_,w,S,C,A=0;A<m;A++)_=h[4*A],w=h[4*A+1],S=h[4*A+2],C=_>=w&&_>=S?_:w>=S&&w>=_?w:S,b[A]=C<<8;return b}a.exports=function(f,p,m,b,_,w){var S,C,A,k,I;if(!(b===0||_<.5)){_>2&&(_=2);var N=u(f,p,m),L=new Uint16Array(N);o(L,p,m,_);for(var P=b/100*4096+.5|0,M=w<<8,F=p*m,U=0;U<F;U++)S=N[U],k=S-L[U],Math.abs(k)>=M&&(C=S+(P*k+2048>>12),C=C>65280?65280:C,C=C<0?0:C,S=S!==0?S:1,A=(C<<12)/S|0,I=U*4,f[I]=f[I]*A+2048>>12,f[I+1]=f[I+1]*A+2048>>12,f[I+2]=f[I+2]*A+2048>>12)}}},{"glur/mono16":18}],11:[function(r,a,s){a.exports=function(u,h,f,p,m,b){if(!(p===0||m<.5)){m>2&&(m=2);var _=h*f,w=_*4,S=_*2,C=_*2,A=Math.max(h,f)*4,k=8*4,I=0,N=w,L=N+S,P=L+C,M=P+C,F=M+A,U=this.__instance("unsharp_mask",w+S+C*2+A+k,{exp:Math.exp}),$=new Uint32Array(u.buffer),G=new Uint32Array(this.__memory.buffer);G.set($);var B=U.exports.hsv_v16||U.exports._hsv_v16;B(I,N,h,f),B=U.exports.blurMono16||U.exports._blurMono16,B(N,L,P,M,F,h,f,m),B=U.exports.unsharp||U.exports._unsharp,B(I,I,N,L,h,f,p,b),$.set(new Uint32Array(this.__memory.buffer,0,_))}}},{}],12:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(r,a,s){var o=100;function u(h,f){this.create=h,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=f||2e3}u.prototype.acquire=function(){var h=this,f;return this.available.length!==0?f=this.available.pop():(f=this.create(),f.id=this.lastId++,f.release=function(){return h.release(f)}),this.acquired[f.id]=f,f},u.prototype.release=function(h){var f=this;delete this.acquired[h.id],h.lastUsed=Date.now(),this.available.push(h),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return f.gc()},o))},u.prototype.gc=function(){var h=this,f=Date.now();this.available=this.available.filter(function(p){return f-p.lastUsed>h.idle?(p.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return h.gc()},o):this.timeoutId=0},a.exports=u},{}],14:[function(r,a,s){var o=2;a.exports=function(h,f,p,m,b,_){var w=p/h,S=m/f,C=(2*_+o+1)/b;if(C>.5)return[[p,m]];var A=Math.ceil(Math.log(Math.min(w,S))/Math.log(C));if(A<=1)return[[p,m]];for(var k=[],I=0;I<A;I++){var N=Math.round(Math.pow(Math.pow(h,A-I-1)*Math.pow(p,I+1),1/A)),L=Math.round(Math.pow(Math.pow(f,A-I-1)*Math.pow(m,I+1),1/A));k.push([N,L])}return k}},{}],15:[function(r,a,s){var o=1e-5;function u(f){var p=Math.round(f);return Math.abs(f-p)<o?p:Math.floor(f)}function h(f){var p=Math.round(f);return Math.abs(f-p)<o?p:Math.ceil(f)}a.exports=function(p){var m=p.toWidth/p.width,b=p.toHeight/p.height,_=u(p.srcTileSize*m)-2*p.destTileBorder,w=u(p.srcTileSize*b)-2*p.destTileBorder;if(_<1||w<1)throw new Error("Internal error in pica: target tile width/height is too small.");var S,C,A,k,I,N,L=[],P;for(k=0;k<p.toHeight;k+=w)for(A=0;A<p.toWidth;A+=_)S=A-p.destTileBorder,S<0&&(S=0),I=A+_+p.destTileBorder-S,S+I>=p.toWidth&&(I=p.toWidth-S),C=k-p.destTileBorder,C<0&&(C=0),N=k+w+p.destTileBorder-C,C+N>=p.toHeight&&(N=p.toHeight-C),P={toX:S,toY:C,toWidth:I,toHeight:N,toInnerX:A,toInnerY:k,toInnerWidth:_,toInnerHeight:w,offsetX:S/m-u(S/m),offsetY:C/b-u(C/b),scaleX:m,scaleY:b,x:u(S/m),y:u(C/b),width:h(I/m),height:h(N/b)},L.push(P);return L}},{}],16:[function(r,a,s){function o(u){return Object.prototype.toString.call(u)}a.exports.isCanvas=function(h){var f=o(h);return f==="[object HTMLCanvasElement]"||f==="[object OffscreenCanvas]"||f==="[object Canvas]"},a.exports.isImage=function(h){return o(h)==="[object HTMLImageElement]"},a.exports.isImageBitmap=function(h){return o(h)==="[object ImageBitmap]"},a.exports.limiter=function(h){var f=0,p=[];function m(){f<h&&p.length&&(f++,p.shift()())}return function(_){return new Promise(function(w,S){p.push(function(){_().then(function(C){w(C),f--,m()},function(C){S(C),f--,m()})}),m()})}},a.exports.cib_quality_name=function(h){switch(h){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},a.exports.cib_support=function(h){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var f=h(100,100);return createImageBitmap(f,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(p){var m=p.width===10;return p.close(),f=null,m})}).catch(function(){return!1})},a.exports.worker_offscreen_canvas_support=function(){return new Promise(function(h,f){if(typeof OffscreenCanvas>"u"){h(!1);return}function p(_){if(typeof createImageBitmap>"u"){_.postMessage(!1);return}Promise.resolve().then(function(){var w=new OffscreenCanvas(10,10),S=w.getContext("2d");return S.rect(0,0,1,1),createImageBitmap(w,0,0,1,1)}).then(function(){return _.postMessage(!0)},function(){return _.postMessage(!1)})}var m=btoa("(".concat(p.toString(),")(self);")),b=new Worker("data:text/javascript;base64,".concat(m));b.onmessage=function(_){return h(_.data)},b.onerror=f}).then(function(h){return h},function(){return!1})},a.exports.can_use_canvas=function(h){var f=!1;try{var p=h(2,1),m=p.getContext("2d"),b=m.createImageData(2,1);b.data[0]=12,b.data[1]=23,b.data[2]=34,b.data[3]=255,b.data[4]=45,b.data[5]=56,b.data[6]=67,b.data[7]=255,m.putImageData(b,0,0),b=null,b=m.getImageData(0,0,2,1),b.data[0]===12&&b.data[1]===23&&b.data[2]===34&&b.data[3]===255&&b.data[4]===45&&b.data[5]===56&&b.data[6]===67&&b.data[7]===255&&(f=!0)}catch{}return f},a.exports.cib_can_use_region=function(){return new Promise(function(h){if(typeof createImageBitmap>"u"){h(!1);return}var f=new Image;f.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",f.onload=function(){createImageBitmap(f,0,0,f.width,f.height).then(function(p){p.width===f.width&&p.height===f.height?h(!0):h(!1)},function(){return h(!1)})},f.onerror=function(){return h(!1)}})}},{}],17:[function(r,a,s){a.exports=function(){var o=r("./mathlib"),u;onmessage=function(f){var p=f.data.opts;if(!p.src&&p.srcBitmap){var m=new OffscreenCanvas(p.width,p.height),b=m.getContext("2d",{alpha:!!p.alpha});b.drawImage(p.srcBitmap,0,0),p.src=b.getImageData(0,0,p.width,p.height).data,m.width=m.height=0,m=null,p.srcBitmap.close(),p.srcBitmap=null}u||(u=new o(f.data.features));var _=u.resizeAndUnsharp(p);postMessage({data:_},[_.buffer])}}},{"./mathlib":1}],18:[function(r,a,s){var o,u,h,f,p,m,b,_;function w(A){A<.5&&(A=.5);var k=Math.exp(.726*.726)/A,I=Math.exp(-k),N=Math.exp(-2*k),L=(1-I)*(1-I)/(1+2*k*I-N);return o=L,u=L*(k-1)*I,h=L*(k+1)*I,f=-L*N,p=2*I,m=-N,b=(o+u)/(1-p-m),_=(h+f)/(1-p-m),new Float32Array([o,u,h,f,p,m,b,_])}function S(A,k,I,N,L,P){var M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee;for(Y=0;Y<P;Y++){for(B=Y*L,Z=Y,z=0,M=A[B],G=M*N[6],$=G,Q=N[0],V=N[1],j=N[4],ee=N[5],W=0;W<L;W++)F=A[B],U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,I[z]=$,z++,B++;for(B--,z--,Z+=P*(L-1),M=A[B],G=M*N[7],$=G,F=M,Q=N[2],V=N[3],W=L-1;W>=0;W--)U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,F=A[B],k[Z]=I[z]+$,B--,z--,Z-=P}}function C(A,k,I,N){if(N){var L=new Uint16Array(A.length),P=new Float32Array(Math.max(k,I)),M=w(N);S(A,L,P,M,k,I),S(L,A,P,M,I,k)}}a.exports=C},{}],19:[function(r,a,s){typeof Object.create=="function"?a.exports=function(u,h){h&&(u.super_=h,u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(u,h){if(h){u.super_=h;var f=function(){};f.prototype=h.prototype,u.prototype=new f,u.prototype.constructor=u}}},{}],20:[function(r,a,s){var o=r("object-assign"),u=r("./lib/base64decode"),h=r("./lib/wa_detect"),f={js:!0,wasm:!0};function p(m){if(!(this instanceof p))return new p(m);var b=o({},f,m||{});if(this.options=b,this.__cache={},this.__init_promise=null,this.__modules=b.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}p.prototype.has_wasm=h,p.prototype.use=function(m){return this.__modules[m.name]=m,this.options.wasm&&this.has_wasm()&&m.wasm_fn?this[m.name]=m.wasm_fn:this[m.name]=m.fn,this},p.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var m=this;return this.__init_promise=Promise.all(Object.keys(m.__modules).map(function(b){var _=m.__modules[b];return!m.options.wasm||!m.has_wasm()||!_.wasm_fn||m.__wasm[b]?null:WebAssembly.compile(m.__base64decode(_.wasm_src)).then(function(w){m.__wasm[b]=w})})).then(function(){return m}),this.__init_promise},p.prototype.__base64decode=u,p.prototype.__reallocate=function(b){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(b/(64*1024))}),this.__memory;var _=this.__memory.buffer.byteLength;return _<b&&this.__memory.grow(Math.ceil((b-_)/(64*1024))),this.__memory},p.prototype.__instance=function(b,_,w){if(_&&this.__reallocate(_),!this.__wasm[b]){var S=this.__modules[b];this.__wasm[b]=new WebAssembly.Module(this.__base64decode(S.wasm_src))}if(!this.__cache[b]){var C={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[b]=new WebAssembly.Instance(this.__wasm[b],{env:o(C,w||{})})}return this.__cache[b]},p.prototype.__align=function(b,_){_=_||8;var w=b%_;return b+(w?_-w:0)},a.exports=p},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(r,a,s){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";a.exports=function(h){for(var f=h.replace(/[\r\n=]/g,""),p=f.length,m=new Uint8Array(p*3>>2),b=0,_=0,w=0;w<p;w++)w%4===0&&w&&(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255),b=b<<6|o.indexOf(f.charAt(w));var S=p%4*6;return S===0?(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255):S===18?(m[_++]=b>>10&255,m[_++]=b>>2&255):S===12&&(m[_++]=b>>4&255),m}},{}],22:[function(r,a,s){var o;a.exports=function(){if(typeof o<"u"||(o=!1,typeof WebAssembly>"u"))return o;try{var h=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),f=new WebAssembly.Module(h),p=new WebAssembly.Instance(f,{});return p.exports.test(4)!==0&&(o=!0),o}catch{}return o}},{}],23:[function(r,a,s){var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function p(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var b={},_=0;_<10;_++)b["_"+String.fromCharCode(_)]=_;var w=Object.getOwnPropertyNames(b).map(function(C){return b[C]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(C){S[C]=C}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}a.exports=p()?Object.assign:function(m,b){for(var _,w=f(m),S,C=1;C<arguments.length;C++){_=Object(arguments[C]);for(var A in _)u.call(_,A)&&(w[A]=_[A]);if(o){S=o(_);for(var k=0;k<S.length;k++)h.call(_,S[k])&&(w[S[k]]=_[S[k]])}}return w}},{}],24:[function(r,a,s){var o=arguments[3],u=arguments[4],h=arguments[5],f=JSON.stringify;a.exports=function(p,m){for(var b,_=Object.keys(h),w=0,S=_.length;w<S;w++){var C=_[w],A=h[C].exports;if(A===p||A&&A.default===p){b=C;break}}if(!b){b=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var k={},w=0,S=_.length;w<S;w++){var C=_[w];k[C]=C}u[b]=["function(require,module,exports){"+p+"(self); }",k]}var I=Math.floor(Math.pow(16,8)*Math.random()).toString(16),N={};N[b]=b,u[I]=["function(require,module,exports){var f = require("+f(b)+");(f.default ? f.default : f)(self);}",N];var L={};P(I);function P(B){L[B]=!0;for(var Z in u[B][1]){var z=u[B][1][Z];L[z]||P(z)}}var M="("+o+")({"+Object.keys(L).map(function(B){return f(B)+":["+u[B][0]+","+f(u[B][1])+"]"}).join(",")+"},{},["+f(I)+"])",F=window.URL||window.webkitURL||window.mozURL||window.msURL,U=new Blob([M],{type:"text/javascript"});if(m&&m.bare)return U;var $=F.createObjectURL(U),G=new Worker($);return G.objectURL=$,G}},{}],"/index.js":[function(r,a,s){function o(W,Q){return m(W)||p(W,Q)||h(W,Q)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(W,Q){if(W){if(typeof W=="string")return f(W,Q);var V=Object.prototype.toString.call(W).slice(8,-1);if(V==="Object"&&W.constructor&&(V=W.constructor.name),V==="Map"||V==="Set")return Array.from(W);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return f(W,Q)}}function f(W,Q){(Q==null||Q>W.length)&&(Q=W.length);for(var V=0,j=new Array(Q);V<Q;V++)j[V]=W[V];return j}function p(W,Q){var V=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(V!=null){var j=[],ee=!0,te=!1,ne,se;try{for(V=V.call(W);!(ee=(ne=V.next()).done)&&(j.push(ne.value),!(Q&&j.length===Q));ee=!0);}catch(ie){te=!0,se=ie}finally{try{!ee&&V.return!=null&&V.return()}finally{if(te)throw se}}return j}}function m(W){if(Array.isArray(W))return W}var b=r("object-assign"),_=r("webworkify"),w=r("./lib/mathlib"),S=r("./lib/pool"),C=r("./lib/utils"),A=r("./lib/worker"),k=r("./lib/stepper"),I=r("./lib/tiler"),N={},L=!1;try{typeof navigator<"u"&&navigator.userAgent&&(L=navigator.userAgent.indexOf("Safari")>=0)}catch{}var P=1;typeof navigator<"u"&&(P=Math.min(navigator.hardwareConcurrency||1,4));var M={tile:1024,concurrency:P,features:["js","wasm","ww"],idle:2e3,createCanvas:function(Q,V){var j=document.createElement("canvas");return j.width=Q,j.height=V,j}},F={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},U=!1,$=!1,G=!1,B=!1,Z=!1;function z(){return{value:_(A),destroy:function(){if(this.value.terminate(),typeof window<"u"){var Q=window.URL||window.webkitURL||window.mozURL||window.msURL;Q&&Q.revokeObjectURL&&this.value.objectURL&&Q.revokeObjectURL(this.value.objectURL)}}}}function Y(W){if(!(this instanceof Y))return new Y(W);this.options=b({},M,W||{});var Q="lk_".concat(this.options.concurrency);this.__limit=N[Q]||C.limiter(this.options.concurrency),N[Q]||(N[Q]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}Y.prototype.init=function(){var W=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),U=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?$=!0:this.debug("ImageBitmap does not support .close(), disabled"));var Q=this.options.features.slice();if(Q.indexOf("all")>=0&&(Q=["cib","wasm","js","ww"]),this.__requested_features=Q,this.__mathlib=new w(Q),Q.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var V=r("webworkify")(function(){});V.terminate(),this.features.ww=!0;var j="wp_".concat(JSON.stringify(this.options));N[j]?this.__workersPool=N[j]:(this.__workersPool=new S(z,this.options.idle),N[j]=this.__workersPool)}catch{}var ee=this.__mathlib.init().then(function(ie){b(W.features,ie.features)}),te;$?te=C.cib_support(this.options.createCanvas).then(function(ie){if(W.features.cib&&Q.indexOf("cib")<0){W.debug("createImageBitmap() resize supported, but disabled by config");return}Q.indexOf("cib")>=0&&(W.features.cib=ie)}):te=Promise.resolve(!1),G=C.can_use_canvas(this.options.createCanvas);var ne;$&&U&&Q.indexOf("ww")!==-1?ne=C.worker_offscreen_canvas_support():ne=Promise.resolve(!1),ne=ne.then(function(ie){B=ie});var se=C.cib_can_use_region().then(function(ie){Z=ie});return this.__initPromise=Promise.all([ee,te,ne,se]).then(function(){return W}),this.__initPromise},Y.prototype.__invokeResize=function(W,Q){var V=this;return Q.__mathCache=Q.__mathCache||{},Promise.resolve().then(function(){return V.features.ww?new Promise(function(j,ee){var te=V.__workersPool.acquire();Q.cancelToken&&Q.cancelToken.catch(function(se){return ee(se)}),te.value.onmessage=function(se){te.release(),se.data.err?ee(se.data.err):j(se.data)};var ne=[];W.src&&ne.push(W.src.buffer),W.srcBitmap&&ne.push(W.srcBitmap),te.value.postMessage({opts:W,features:V.__requested_features,preload:{wasm_nodule:V.__mathlib.__}},ne)}):{data:V.__mathlib.resizeAndUnsharp(W,Q.__mathCache)}})},Y.prototype.__extractTileData=function(W,Q,V,j,ee){if(this.features.ww&&B&&(C.isCanvas(Q)||Z))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height).then(function(se){return ee.srcBitmap=se,ee});if(C.isCanvas(Q))return j.srcCtx||(j.srcCtx=Q.getContext("2d",{alpha:!!V.alpha})),this.debug("Get tile pixel data"),ee.src=j.srcCtx.getImageData(W.x,W.y,W.width,W.height).data,ee;this.debug("Draw tile imageBitmap/image to temporary canvas");var te=this.options.createCanvas(W.width,W.height),ne=te.getContext("2d",{alpha:!!V.alpha});return ne.globalCompositeOperation="copy",ne.drawImage(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height,0,0,W.width,W.height),this.debug("Get tile pixel data"),ee.src=ne.getImageData(0,0,W.width,W.height).data,te.width=te.height=0,ee},Y.prototype.__landTileData=function(W,Q,V){var j;if(this.debug("Convert raw rgba tile result to ImageData"),Q.bitmap)return V.toCtx.drawImage(Q.bitmap,W.toX,W.toY),null;if(U)j=new ImageData(new Uint8ClampedArray(Q.data),W.toWidth,W.toHeight);else if(j=V.toCtx.createImageData(W.toWidth,W.toHeight),j.data.set)j.data.set(Q.data);else for(var ee=j.data.length-1;ee>=0;ee--)j.data[ee]=Q.data[ee];return this.debug("Draw tile"),L?V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth+1e-5,W.toInnerHeight+1e-5):V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth,W.toInnerHeight),null},Y.prototype.__tileAndResize=function(W,Q,V){var j=this,ee={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},te=function(se){return j.__limit(function(){if(V.canceled)return V.cancelToken;var ie={width:se.width,height:se.height,toWidth:se.toWidth,toHeight:se.toHeight,scaleX:se.scaleX,scaleY:se.scaleY,offsetX:se.offsetX,offsetY:se.offsetY,quality:V.quality,alpha:V.alpha,unsharpAmount:V.unsharpAmount,unsharpRadius:V.unsharpRadius,unsharpThreshold:V.unsharpThreshold};return j.debug("Invoke resize math"),Promise.resolve(ie).then(function(ge){return j.__extractTileData(se,W,V,ee,ge)}).then(function(ge){return j.debug("Invoke resize math"),j.__invokeResize(ge,V)}).then(function(ge){return V.canceled?V.cancelToken:(ee.srcImageData=null,j.__landTileData(se,ge,ee))})})};return Promise.resolve().then(function(){if(ee.toCtx=Q.getContext("2d",{alpha:!!V.alpha}),C.isCanvas(W))return null;if(C.isImageBitmap(W))return ee.srcImageBitmap=W,ee.isImageBitmapReused=!0,null;if(C.isImage(W))return $?(j.debug("Decode image via createImageBitmap"),createImageBitmap(W).then(function(ne){ee.srcImageBitmap=ne}).catch(function(ne){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(V.canceled)return V.cancelToken;j.debug("Calculate tiles");var ne=I({width:V.width,height:V.height,srcTileSize:j.options.tile,toWidth:V.toWidth,toHeight:V.toHeight,destTileBorder:V.__destTileBorder}),se=ne.map(function(ge){return te(ge)});function ie(ge){ge.srcImageBitmap&&(ge.isImageBitmapReused||ge.srcImageBitmap.close(),ge.srcImageBitmap=null)}return j.debug("Process tiles"),Promise.all(se).then(function(){return j.debug("Finished!"),ie(ee),Q},function(ge){throw ie(ee),ge})})},Y.prototype.__processStages=function(W,Q,V,j){var ee=this;if(j.canceled)return j.cancelToken;var te=W.shift(),ne=o(te,2),se=ne[0],ie=ne[1],ge=W.length===0;j=b({},j,{toWidth:se,toHeight:ie,quality:ge?j.quality:Math.min(1,j.quality)});var ce;return ge||(ce=this.options.createCanvas(se,ie)),this.__tileAndResize(Q,ge?V:ce,j).then(function(){return ge?V:(j.width=se,j.height=ie,ee.__processStages(W,ce,V,j))}).then(function(be){return ce&&(ce.width=ce.height=0),be})},Y.prototype.__resizeViaCreateImageBitmap=function(W,Q,V){var j=this,ee=Q.getContext("2d",{alpha:!!V.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(W,{resizeWidth:V.toWidth,resizeHeight:V.toHeight,resizeQuality:C.cib_quality_name(V.quality)}).then(function(te){if(V.canceled)return V.cancelToken;if(!V.unsharpAmount)return ee.drawImage(te,0,0),te.close(),ee=null,j.debug("Finished!"),Q;j.debug("Unsharp result");var ne=j.options.createCanvas(V.toWidth,V.toHeight),se=ne.getContext("2d",{alpha:!!V.alpha});se.drawImage(te,0,0),te.close();var ie=se.getImageData(0,0,V.toWidth,V.toHeight);return j.__mathlib.unsharp_mask(ie.data,V.toWidth,V.toHeight,V.unsharpAmount,V.unsharpRadius,V.unsharpThreshold),ee.putImageData(ie,0,0),ne.width=ne.height=0,ie=se=ne=ee=null,j.debug("Finished!"),Q})},Y.prototype.resize=function(W,Q,V){var j=this;this.debug("Start resize...");var ee=b({},F);if(isNaN(V)?V&&(ee=b(ee,V)):ee=b(ee,{quality:V}),ee.toWidth=Q.width,ee.toHeight=Q.height,ee.width=W.naturalWidth||W.width,ee.height=W.naturalHeight||W.height,Q.width===0||Q.height===0)return Promise.reject(new Error("Invalid output size: ".concat(Q.width,"x").concat(Q.height)));ee.unsharpRadius>2&&(ee.unsharpRadius=2),ee.canceled=!1,ee.cancelToken&&(ee.cancelToken=ee.cancelToken.then(function(ne){throw ee.canceled=!0,ne},function(ne){throw ee.canceled=!0,ne}));var te=3;return ee.__destTileBorder=Math.ceil(Math.max(te,2.5*ee.unsharpRadius|0)),this.init().then(function(){if(ee.canceled)return ee.cancelToken;if(j.features.cib)return j.__resizeViaCreateImageBitmap(W,Q,ee);if(!G){var ne=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw ne.code="ERR_GET_IMAGE_DATA",ne}var se=k(ee.width,ee.height,ee.toWidth,ee.toHeight,j.options.tile,ee.__destTileBorder);return j.__processStages(se,W,Q,ee)})},Y.prototype.resizeBuffer=function(W){var Q=this,V=b({},F,W);return this.init().then(function(){return Q.__mathlib.resizeAndUnsharp(V)})},Y.prototype.toBlob=function(W,Q,V){return Q=Q||"image/png",new Promise(function(j){if(W.toBlob){W.toBlob(function(ie){return j(ie)},Q,V);return}if(W.convertToBlob){j(W.convertToBlob({type:Q,quality:V}));return}for(var ee=atob(W.toDataURL(Q,V).split(",")[1]),te=ee.length,ne=new Uint8Array(te),se=0;se<te;se++)ne[se]=ee.charCodeAt(se);j(new Blob([ne],{type:Q}))})},Y.prototype.debug=function(){},a.exports=Y},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")})})(NQn);var OQn=NQn.exports;const ata=O1(OQn),J5a=cIr({__proto__:null,default:ata},[OQn]);/*! image-blob-reduce 3.0.1 https://github.com/nodeca/image-blob-reduce @license MIT */var sta=function(t){for(var r,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t};function LQn(e,t){var r={};return t.forEach(function(a){Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}),r}function ota(e){return LQn(e,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}var lta=LQn,cta=ota,pbt={assign:sta,pick:lta,pick_pica_resize_options:cta};function DQn(e){var t={exports:{}};return e(t,t.exports),t.exports}function mEe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}/*!

pica
https://github.com/nodeca/pica

*/var MQn=DQn(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(a,s,o){function u(p,m){if(!s[p]){if(!a[p]){var b=typeof mEe=="function"&&mEe;if(!m&&b)return b(p,!0);if(h)return h(p,!0);var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}var w=s[p]={exports:{}};a[p][0].call(w.exports,function(S){var C=a[p][1][S];return u(C||S)},w,w.exports,r,a,s,o)}return s[p].exports}for(var h=typeof mEe=="function"&&mEe,f=0;f<o.length;f++)u(o[f]);return u}return r}()({1:[function(r,a,s){var o=r("inherits"),u=r("multimath"),h=r("./mm_unsharp_mask"),f=r("./mm_resize");function p(m){var b=m||[],_={js:b.indexOf("js")>=0,wasm:b.indexOf("wasm")>=0};u.call(this,_),this.features={js:_.js,wasm:_.wasm&&this.has_wasm()},this.use(h),this.use(f)}o(p,u),p.prototype.resizeAndUnsharp=function(b,_){var w=this.resize(b,_);return b.unsharpAmount&&this.unsharp_mask(w,b.toWidth,b.toHeight,b.unsharpAmount,b.unsharpRadius,b.unsharpThreshold),w},a.exports=p},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(r,a,s){function o(f){return f<0?0:f>255?255:f}function u(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M<b;M++){for(I=0,F=0;F<_;F++){for(N=w[I++],L=w[I++],P=$+N*4|0,S=C=A=k=0;L>0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}function h(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M<b;M++){for(I=0,F=0;F<_;F++){for(N=w[I++],L=w[I++],P=$+N*4|0,S=C=A=k=0;L>0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}a.exports={convolveHorizontally:u,convolveVertically:h}},{}],3:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(r,a,s){a.exports={name:"resize",fn:r("./resize"),wasm_fn:r("./resize_wasm"),wasm_src:r("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(r,a,s){var o=r("./resize_filter_gen"),u=r("./convolve").convolveHorizontally,h=r("./convolve").convolveVertically;function f(p,m,b){for(var _=3,w=m*b*4|0;_<w;)p[_]=255,_=_+4|0}a.exports=function(m){var b=m.src,_=m.width,w=m.height,S=m.toWidth,C=m.toHeight,A=m.scaleX||m.toWidth/m.width,k=m.scaleY||m.toHeight/m.height,I=m.offsetX||0,N=m.offsetY||0,L=m.dest||new Uint8Array(S*C*4),P=typeof m.quality>"u"?3:m.quality,M=m.alpha||!1,F=o(P,_,S,A,I),U=o(P,w,C,k,N),$=new Uint8Array(S*w*4);return u(b,$,_,w,S,F),h($,L,w,S,C,U),M||f(L,S,C),L}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(r,a,s){var o=r("./resize_filter_info"),u=14;function h(f){return Math.round(f*((1<<u)-1))}a.exports=function(p,m,b,_,w){var S=o[p].filter,C=1/_,A=Math.min(1,_),k=o[p].win/A,I,N,L,P,M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee=Math.floor((k+1)*2),te=new Int16Array((ee+2)*b),ne=0,se=!te.subarray||!te.set;for(I=0;I<b;I++){for(N=(I+.5)*C+w,L=Math.max(0,Math.floor(N-k)),P=Math.min(m-1,Math.ceil(N+k)),M=P-L+1,F=new Float32Array(M),U=new Int16Array(M),$=0,G=L,B=0;G<=P;G++,B++)Z=S((G+.5-N)*A),$+=Z,F[B]=Z;for(z=0,B=0;B<F.length;B++)Y=F[B]/$,z+=Y,U[B]=h(Y);for(U[b>>1]+=h(1-z),W=0;W<U.length&&U[W]===0;)W++;if(W<U.length){for(Q=U.length-1;Q>0&&U[Q]===0;)Q--;if(V=L+W,j=Q-W+1,te[ne++]=V,te[ne++]=j,!se)te.set(U.subarray(W,Q+1),ne),ne+=j;else for(B=W;B<=Q;B++)te[ne++]=U[B]}else te[ne++]=0,te[ne++]=0}return te}},{"./resize_filter_info":7}],7:[function(r,a,s){a.exports=[{win:.5,filter:function(u){return u>=-.5&&u<.5?1:0}},{win:1,filter:function(u){if(u<=-1||u>=1)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*(.54+.46*Math.cos(h/1))}},{win:2,filter:function(u){if(u<=-2||u>=2)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/2)/(h/2)}},{win:3,filter:function(u){if(u<=-3||u>=3)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/3)/(h/3)}}]},{}],8:[function(r,a,s){var o=r("./resize_filter_gen");function u(m,b,_){for(var w=3,S=b*_*4|0;w<S;)m[w]=255,w=w+4|0}function h(m){return new Uint8Array(m.buffer,0,m.byteLength)}var f=!0;try{f=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch{}function p(m,b,_){if(f){b.set(h(m),_);return}for(var w=_,S=0;S<m.length;S++){var C=m[S];b[w++]=C&255,b[w++]=C>>8&255}}a.exports=function(b){var _=b.src,w=b.width,S=b.height,C=b.toWidth,A=b.toHeight,k=b.scaleX||b.toWidth/b.width,I=b.scaleY||b.toHeight/b.height,N=b.offsetX||0,L=b.offsetY||0,P=b.dest||new Uint8Array(C*A*4),M=typeof b.quality>"u"?3:b.quality,F=b.alpha||!1,U=o(M,w,C,k,N),$=o(M,S,A,I,L),G=0,B=this.__align(G+Math.max(_.byteLength,P.byteLength)),Z=this.__align(B+S*C*4),z=this.__align(Z+U.byteLength),Y=z+$.byteLength,W=this.__instance("resize",Y),Q=new Uint8Array(this.__memory.buffer),V=new Uint32Array(this.__memory.buffer),j=new Uint32Array(_.buffer);V.set(j),p(U,Q,Z),p($,Q,z);var ee=W.exports.convolveHV||W.exports._convolveHV;ee(Z,z,B,w,S,C,A);var te=new Uint32Array(P.buffer);return te.set(new Uint32Array(this.__memory.buffer,0,A*C)),F||u(P,C,A),P}},{"./resize_filter_gen":6}],9:[function(r,a,s){a.exports={name:"unsharp_mask",fn:r("./unsharp_mask"),wasm_fn:r("./unsharp_mask_wasm"),wasm_src:r("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(r,a,s){var o=r("glur/mono16");function u(h,f,p){for(var m=f*p,b=new Uint16Array(m),_,w,S,C,A=0;A<m;A++)_=h[4*A],w=h[4*A+1],S=h[4*A+2],C=_>=w&&_>=S?_:w>=S&&w>=_?w:S,b[A]=C<<8;return b}a.exports=function(f,p,m,b,_,w){var S,C,A,k,I;if(!(b===0||_<.5)){_>2&&(_=2);var N=u(f,p,m),L=new Uint16Array(N);o(L,p,m,_);for(var P=b/100*4096+.5|0,M=w<<8,F=p*m,U=0;U<F;U++)S=N[U],k=S-L[U],Math.abs(k)>=M&&(C=S+(P*k+2048>>12),C=C>65280?65280:C,C=C<0?0:C,S=S!==0?S:1,A=(C<<12)/S|0,I=U*4,f[I]=f[I]*A+2048>>12,f[I+1]=f[I+1]*A+2048>>12,f[I+2]=f[I+2]*A+2048>>12)}}},{"glur/mono16":18}],11:[function(r,a,s){a.exports=function(u,h,f,p,m,b){if(!(p===0||m<.5)){m>2&&(m=2);var _=h*f,w=_*4,S=_*2,C=_*2,A=Math.max(h,f)*4,k=8*4,I=0,N=w,L=N+S,P=L+C,M=P+C,F=M+A,U=this.__instance("unsharp_mask",w+S+C*2+A+k,{exp:Math.exp}),$=new Uint32Array(u.buffer),G=new Uint32Array(this.__memory.buffer);G.set($);var B=U.exports.hsv_v16||U.exports._hsv_v16;B(I,N,h,f),B=U.exports.blurMono16||U.exports._blurMono16,B(N,L,P,M,F,h,f,m),B=U.exports.unsharp||U.exports._unsharp,B(I,I,N,L,h,f,p,b),$.set(new Uint32Array(this.__memory.buffer,0,_))}}},{}],12:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(r,a,s){var o=100;function u(h,f){this.create=h,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=f||2e3}u.prototype.acquire=function(){var h=this,f;return this.available.length!==0?f=this.available.pop():(f=this.create(),f.id=this.lastId++,f.release=function(){return h.release(f)}),this.acquired[f.id]=f,f},u.prototype.release=function(h){var f=this;delete this.acquired[h.id],h.lastUsed=Date.now(),this.available.push(h),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return f.gc()},o))},u.prototype.gc=function(){var h=this,f=Date.now();this.available=this.available.filter(function(p){return f-p.lastUsed>h.idle?(p.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return h.gc()},o):this.timeoutId=0},a.exports=u},{}],14:[function(r,a,s){var o=2;a.exports=function(h,f,p,m,b,_){var w=p/h,S=m/f,C=(2*_+o+1)/b;if(C>.5)return[[p,m]];var A=Math.ceil(Math.log(Math.min(w,S))/Math.log(C));if(A<=1)return[[p,m]];for(var k=[],I=0;I<A;I++){var N=Math.round(Math.pow(Math.pow(h,A-I-1)*Math.pow(p,I+1),1/A)),L=Math.round(Math.pow(Math.pow(f,A-I-1)*Math.pow(m,I+1),1/A));k.push([N,L])}return k}},{}],15:[function(r,a,s){var o=1e-5;function u(f){var p=Math.round(f);return Math.abs(f-p)<o?p:Math.floor(f)}function h(f){var p=Math.round(f);return Math.abs(f-p)<o?p:Math.ceil(f)}a.exports=function(p){var m=p.toWidth/p.width,b=p.toHeight/p.height,_=u(p.srcTileSize*m)-2*p.destTileBorder,w=u(p.srcTileSize*b)-2*p.destTileBorder;if(_<1||w<1)throw new Error("Internal error in pica: target tile width/height is too small.");var S,C,A,k,I,N,L=[],P;for(k=0;k<p.toHeight;k+=w)for(A=0;A<p.toWidth;A+=_)S=A-p.destTileBorder,S<0&&(S=0),I=A+_+p.destTileBorder-S,S+I>=p.toWidth&&(I=p.toWidth-S),C=k-p.destTileBorder,C<0&&(C=0),N=k+w+p.destTileBorder-C,C+N>=p.toHeight&&(N=p.toHeight-C),P={toX:S,toY:C,toWidth:I,toHeight:N,toInnerX:A,toInnerY:k,toInnerWidth:_,toInnerHeight:w,offsetX:S/m-u(S/m),offsetY:C/b-u(C/b),scaleX:m,scaleY:b,x:u(S/m),y:u(C/b),width:h(I/m),height:h(N/b)},L.push(P);return L}},{}],16:[function(r,a,s){function o(u){return Object.prototype.toString.call(u)}a.exports.isCanvas=function(h){var f=o(h);return f==="[object HTMLCanvasElement]"||f==="[object OffscreenCanvas]"||f==="[object Canvas]"},a.exports.isImage=function(h){return o(h)==="[object HTMLImageElement]"},a.exports.isImageBitmap=function(h){return o(h)==="[object ImageBitmap]"},a.exports.limiter=function(h){var f=0,p=[];function m(){f<h&&p.length&&(f++,p.shift()())}return function(_){return new Promise(function(w,S){p.push(function(){_().then(function(C){w(C),f--,m()},function(C){S(C),f--,m()})}),m()})}},a.exports.cib_quality_name=function(h){switch(h){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},a.exports.cib_support=function(h){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var f=h(100,100);return createImageBitmap(f,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(p){var m=p.width===10;return p.close(),f=null,m})}).catch(function(){return!1})},a.exports.worker_offscreen_canvas_support=function(){return new Promise(function(h,f){if(typeof OffscreenCanvas>"u"){h(!1);return}function p(_){if(typeof createImageBitmap>"u"){_.postMessage(!1);return}Promise.resolve().then(function(){var w=new OffscreenCanvas(10,10),S=w.getContext("2d");return S.rect(0,0,1,1),createImageBitmap(w,0,0,1,1)}).then(function(){return _.postMessage(!0)},function(){return _.postMessage(!1)})}var m=btoa("(".concat(p.toString(),")(self);")),b=new Worker("data:text/javascript;base64,".concat(m));b.onmessage=function(_){return h(_.data)},b.onerror=f}).then(function(h){return h},function(){return!1})},a.exports.can_use_canvas=function(h){var f=!1;try{var p=h(2,1),m=p.getContext("2d"),b=m.createImageData(2,1);b.data[0]=12,b.data[1]=23,b.data[2]=34,b.data[3]=255,b.data[4]=45,b.data[5]=56,b.data[6]=67,b.data[7]=255,m.putImageData(b,0,0),b=null,b=m.getImageData(0,0,2,1),b.data[0]===12&&b.data[1]===23&&b.data[2]===34&&b.data[3]===255&&b.data[4]===45&&b.data[5]===56&&b.data[6]===67&&b.data[7]===255&&(f=!0)}catch{}return f},a.exports.cib_can_use_region=function(){return new Promise(function(h){if(typeof createImageBitmap>"u"){h(!1);return}var f=new Image;f.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",f.onload=function(){createImageBitmap(f,0,0,f.width,f.height).then(function(p){p.width===f.width&&p.height===f.height?h(!0):h(!1)},function(){return h(!1)})},f.onerror=function(){return h(!1)}})}},{}],17:[function(r,a,s){a.exports=function(){var o=r("./mathlib"),u;onmessage=function(f){var p=f.data.opts,m=!1;if(!p.src&&p.srcBitmap){var b=new OffscreenCanvas(p.width,p.height),_=b.getContext("2d",{alpha:!!p.alpha});_.drawImage(p.srcBitmap,0,0),p.src=_.getImageData(0,0,p.width,p.height).data,b.width=b.height=0,b=null,p.srcBitmap.close(),p.srcBitmap=null,m=!0}u||(u=new o(f.data.features));var w=u.resizeAndUnsharp(p);if(m){var S=new ImageData(new Uint8ClampedArray(w),p.toWidth,p.toHeight),C=new OffscreenCanvas(p.toWidth,p.toHeight),A=C.getContext("2d",{alpha:!!p.alpha});A.putImageData(S,0,0),createImageBitmap(C).then(function(k){postMessage({bitmap:k},[k])})}else postMessage({data:w},[w.buffer])}}},{"./mathlib":1}],18:[function(r,a,s){var o,u,h,f,p,m,b,_;function w(A){A<.5&&(A=.5);var k=Math.exp(.726*.726)/A,I=Math.exp(-k),N=Math.exp(-2*k),L=(1-I)*(1-I)/(1+2*k*I-N);return o=L,u=L*(k-1)*I,h=L*(k+1)*I,f=-L*N,p=2*I,m=-N,b=(o+u)/(1-p-m),_=(h+f)/(1-p-m),new Float32Array([o,u,h,f,p,m,b,_])}function S(A,k,I,N,L,P){var M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee;for(Y=0;Y<P;Y++){for(B=Y*L,Z=Y,z=0,M=A[B],G=M*N[6],$=G,Q=N[0],V=N[1],j=N[4],ee=N[5],W=0;W<L;W++)F=A[B],U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,I[z]=$,z++,B++;for(B--,z--,Z+=P*(L-1),M=A[B],G=M*N[7],$=G,F=M,Q=N[2],V=N[3],W=L-1;W>=0;W--)U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,F=A[B],k[Z]=I[z]+$,B--,z--,Z-=P}}function C(A,k,I,N){if(N){var L=new Uint16Array(A.length),P=new Float32Array(Math.max(k,I)),M=w(N);S(A,L,P,M,k,I),S(L,A,P,M,I,k)}}a.exports=C},{}],19:[function(r,a,s){typeof Object.create=="function"?a.exports=function(u,h){h&&(u.super_=h,u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(u,h){if(h){u.super_=h;var f=function(){};f.prototype=h.prototype,u.prototype=new f,u.prototype.constructor=u}}},{}],20:[function(r,a,s){var o=r("object-assign"),u=r("./lib/base64decode"),h=r("./lib/wa_detect"),f={js:!0,wasm:!0};function p(m){if(!(this instanceof p))return new p(m);var b=o({},f,m||{});if(this.options=b,this.__cache={},this.__init_promise=null,this.__modules=b.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}p.prototype.has_wasm=h,p.prototype.use=function(m){return this.__modules[m.name]=m,this.options.wasm&&this.has_wasm()&&m.wasm_fn?this[m.name]=m.wasm_fn:this[m.name]=m.fn,this},p.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var m=this;return this.__init_promise=Promise.all(Object.keys(m.__modules).map(function(b){var _=m.__modules[b];return!m.options.wasm||!m.has_wasm()||!_.wasm_fn||m.__wasm[b]?null:WebAssembly.compile(m.__base64decode(_.wasm_src)).then(function(w){m.__wasm[b]=w})})).then(function(){return m}),this.__init_promise},p.prototype.__base64decode=u,p.prototype.__reallocate=function(b){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(b/(64*1024))}),this.__memory;var _=this.__memory.buffer.byteLength;return _<b&&this.__memory.grow(Math.ceil((b-_)/(64*1024))),this.__memory},p.prototype.__instance=function(b,_,w){if(_&&this.__reallocate(_),!this.__wasm[b]){var S=this.__modules[b];this.__wasm[b]=new WebAssembly.Module(this.__base64decode(S.wasm_src))}if(!this.__cache[b]){var C={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[b]=new WebAssembly.Instance(this.__wasm[b],{env:o(C,w||{})})}return this.__cache[b]},p.prototype.__align=function(b,_){_=_||8;var w=b%_;return b+(w?_-w:0)},a.exports=p},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(r,a,s){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";a.exports=function(h){for(var f=h.replace(/[\r\n=]/g,""),p=f.length,m=new Uint8Array(p*3>>2),b=0,_=0,w=0;w<p;w++)w%4===0&&w&&(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255),b=b<<6|o.indexOf(f.charAt(w));var S=p%4*6;return S===0?(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255):S===18?(m[_++]=b>>10&255,m[_++]=b>>2&255):S===12&&(m[_++]=b>>4&255),m}},{}],22:[function(r,a,s){var o;a.exports=function(){if(typeof o<"u"||(o=!1,typeof WebAssembly>"u"))return o;try{var h=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),f=new WebAssembly.Module(h),p=new WebAssembly.Instance(f,{});return p.exports.test(4)!==0&&(o=!0),o}catch{}return o}},{}],23:[function(r,a,s){var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function p(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var b={},_=0;_<10;_++)b["_"+String.fromCharCode(_)]=_;var w=Object.getOwnPropertyNames(b).map(function(C){return b[C]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(C){S[C]=C}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}a.exports=p()?Object.assign:function(m,b){for(var _,w=f(m),S,C=1;C<arguments.length;C++){_=Object(arguments[C]);for(var A in _)u.call(_,A)&&(w[A]=_[A]);if(o){S=o(_);for(var k=0;k<S.length;k++)h.call(_,S[k])&&(w[S[k]]=_[S[k]])}}return w}},{}],24:[function(r,a,s){var o=arguments[3],u=arguments[4],h=arguments[5],f=JSON.stringify;a.exports=function(p,m){for(var b,_=Object.keys(h),w=0,S=_.length;w<S;w++){var C=_[w],A=h[C].exports;if(A===p||A&&A.default===p){b=C;break}}if(!b){b=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var k={},w=0,S=_.length;w<S;w++){var C=_[w];k[C]=C}u[b]=["function(require,module,exports){"+p+"(self); }",k]}var I=Math.floor(Math.pow(16,8)*Math.random()).toString(16),N={};N[b]=b,u[I]=["function(require,module,exports){var f = require("+f(b)+");(f.default ? f.default : f)(self);}",N];var L={};P(I);function P(B){L[B]=!0;for(var Z in u[B][1]){var z=u[B][1][Z];L[z]||P(z)}}var M="("+o+")({"+Object.keys(L).map(function(B){return f(B)+":["+u[B][0]+","+f(u[B][1])+"]"}).join(",")+"},{},["+f(I)+"])",F=window.URL||window.webkitURL||window.mozURL||window.msURL,U=new Blob([M],{type:"text/javascript"});if(m&&m.bare)return U;var $=F.createObjectURL(U),G=new Worker($);return G.objectURL=$,G}},{}],"/index.js":[function(r,a,s){function o(W,Q){return m(W)||p(W,Q)||h(W,Q)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(W,Q){if(W){if(typeof W=="string")return f(W,Q);var V=Object.prototype.toString.call(W).slice(8,-1);if(V==="Object"&&W.constructor&&(V=W.constructor.name),V==="Map"||V==="Set")return Array.from(W);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return f(W,Q)}}function f(W,Q){(Q==null||Q>W.length)&&(Q=W.length);for(var V=0,j=new Array(Q);V<Q;V++)j[V]=W[V];return j}function p(W,Q){var V=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(V!=null){var j=[],ee=!0,te=!1,ne,se;try{for(V=V.call(W);!(ee=(ne=V.next()).done)&&(j.push(ne.value),!(Q&&j.length===Q));ee=!0);}catch(ie){te=!0,se=ie}finally{try{!ee&&V.return!=null&&V.return()}finally{if(te)throw se}}return j}}function m(W){if(Array.isArray(W))return W}var b=r("object-assign"),_=r("webworkify"),w=r("./lib/mathlib"),S=r("./lib/pool"),C=r("./lib/utils"),A=r("./lib/worker"),k=r("./lib/stepper"),I=r("./lib/tiler"),N={},L=!1;try{typeof navigator<"u"&&navigator.userAgent&&(L=navigator.userAgent.indexOf("Safari")>=0)}catch{}var P=1;typeof navigator<"u"&&(P=Math.min(navigator.hardwareConcurrency||1,4));var M={tile:1024,concurrency:P,features:["js","wasm","ww"],idle:2e3,createCanvas:function(Q,V){var j=document.createElement("canvas");return j.width=Q,j.height=V,j}},F={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},U=!1,$=!1,G=!1,B=!1,Z=!1;function z(){return{value:_(A),destroy:function(){if(this.value.terminate(),typeof window<"u"){var Q=window.URL||window.webkitURL||window.mozURL||window.msURL;Q&&Q.revokeObjectURL&&this.value.objectURL&&Q.revokeObjectURL(this.value.objectURL)}}}}function Y(W){if(!(this instanceof Y))return new Y(W);this.options=b({},M,W||{});var Q="lk_".concat(this.options.concurrency);this.__limit=N[Q]||C.limiter(this.options.concurrency),N[Q]||(N[Q]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}Y.prototype.init=function(){var W=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),U=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?$=!0:this.debug("ImageBitmap does not support .close(), disabled"));var Q=this.options.features.slice();if(Q.indexOf("all")>=0&&(Q=["cib","wasm","js","ww"]),this.__requested_features=Q,this.__mathlib=new w(Q),Q.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var V=r("webworkify")(function(){});V.terminate(),this.features.ww=!0;var j="wp_".concat(JSON.stringify(this.options));N[j]?this.__workersPool=N[j]:(this.__workersPool=new S(z,this.options.idle),N[j]=this.__workersPool)}catch{}var ee=this.__mathlib.init().then(function(ie){b(W.features,ie.features)}),te;$?te=C.cib_support(this.options.createCanvas).then(function(ie){if(W.features.cib&&Q.indexOf("cib")<0){W.debug("createImageBitmap() resize supported, but disabled by config");return}Q.indexOf("cib")>=0&&(W.features.cib=ie)}):te=Promise.resolve(!1),G=C.can_use_canvas(this.options.createCanvas);var ne;$&&U&&Q.indexOf("ww")!==-1?ne=C.worker_offscreen_canvas_support():ne=Promise.resolve(!1),ne=ne.then(function(ie){B=ie});var se=C.cib_can_use_region().then(function(ie){Z=ie});return this.__initPromise=Promise.all([ee,te,ne,se]).then(function(){return W}),this.__initPromise},Y.prototype.__invokeResize=function(W,Q){var V=this;return Q.__mathCache=Q.__mathCache||{},Promise.resolve().then(function(){return V.features.ww?new Promise(function(j,ee){var te=V.__workersPool.acquire();Q.cancelToken&&Q.cancelToken.catch(function(se){return ee(se)}),te.value.onmessage=function(se){te.release(),se.data.err?ee(se.data.err):j(se.data)};var ne=[];W.src&&ne.push(W.src.buffer),W.srcBitmap&&ne.push(W.srcBitmap),te.value.postMessage({opts:W,features:V.__requested_features,preload:{wasm_nodule:V.__mathlib.__}},ne)}):{data:V.__mathlib.resizeAndUnsharp(W,Q.__mathCache)}})},Y.prototype.__extractTileData=function(W,Q,V,j,ee){if(this.features.ww&&B&&(C.isCanvas(Q)||Z))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height).then(function(se){return ee.srcBitmap=se,ee});if(C.isCanvas(Q))return j.srcCtx||(j.srcCtx=Q.getContext("2d",{alpha:!!V.alpha})),this.debug("Get tile pixel data"),ee.src=j.srcCtx.getImageData(W.x,W.y,W.width,W.height).data,ee;this.debug("Draw tile imageBitmap/image to temporary canvas");var te=this.options.createCanvas(W.width,W.height),ne=te.getContext("2d",{alpha:!!V.alpha});return ne.globalCompositeOperation="copy",ne.drawImage(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height,0,0,W.width,W.height),this.debug("Get tile pixel data"),ee.src=ne.getImageData(0,0,W.width,W.height).data,te.width=te.height=0,ee},Y.prototype.__landTileData=function(W,Q,V){var j;if(this.debug("Convert raw rgba tile result to ImageData"),Q.bitmap)return V.toCtx.drawImage(Q.bitmap,W.toX,W.toY),null;if(U)j=new ImageData(new Uint8ClampedArray(Q.data),W.toWidth,W.toHeight);else if(j=V.toCtx.createImageData(W.toWidth,W.toHeight),j.data.set)j.data.set(Q.data);else for(var ee=j.data.length-1;ee>=0;ee--)j.data[ee]=Q.data[ee];return this.debug("Draw tile"),L?V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth+1e-5,W.toInnerHeight+1e-5):V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth,W.toInnerHeight),null},Y.prototype.__tileAndResize=function(W,Q,V){var j=this,ee={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},te=function(se){return j.__limit(function(){if(V.canceled)return V.cancelToken;var ie={width:se.width,height:se.height,toWidth:se.toWidth,toHeight:se.toHeight,scaleX:se.scaleX,scaleY:se.scaleY,offsetX:se.offsetX,offsetY:se.offsetY,quality:V.quality,alpha:V.alpha,unsharpAmount:V.unsharpAmount,unsharpRadius:V.unsharpRadius,unsharpThreshold:V.unsharpThreshold};return j.debug("Invoke resize math"),Promise.resolve(ie).then(function(ge){return j.__extractTileData(se,W,V,ee,ge)}).then(function(ge){return j.debug("Invoke resize math"),j.__invokeResize(ge,V)}).then(function(ge){return V.canceled?V.cancelToken:(ee.srcImageData=null,j.__landTileData(se,ge,ee))})})};return Promise.resolve().then(function(){if(ee.toCtx=Q.getContext("2d",{alpha:!!V.alpha}),C.isCanvas(W))return null;if(C.isImageBitmap(W))return ee.srcImageBitmap=W,ee.isImageBitmapReused=!0,null;if(C.isImage(W))return $?(j.debug("Decode image via createImageBitmap"),createImageBitmap(W).then(function(ne){ee.srcImageBitmap=ne}).catch(function(ne){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(V.canceled)return V.cancelToken;j.debug("Calculate tiles");var ne=I({width:V.width,height:V.height,srcTileSize:j.options.tile,toWidth:V.toWidth,toHeight:V.toHeight,destTileBorder:V.__destTileBorder}),se=ne.map(function(ge){return te(ge)});function ie(ge){ge.srcImageBitmap&&(ge.isImageBitmapReused||ge.srcImageBitmap.close(),ge.srcImageBitmap=null)}return j.debug("Process tiles"),Promise.all(se).then(function(){return j.debug("Finished!"),ie(ee),Q},function(ge){throw ie(ee),ge})})},Y.prototype.__processStages=function(W,Q,V,j){var ee=this;if(j.canceled)return j.cancelToken;var te=W.shift(),ne=o(te,2),se=ne[0],ie=ne[1],ge=W.length===0;j=b({},j,{toWidth:se,toHeight:ie,quality:ge?j.quality:Math.min(1,j.quality)});var ce;return ge||(ce=this.options.createCanvas(se,ie)),this.__tileAndResize(Q,ge?V:ce,j).then(function(){return ge?V:(j.width=se,j.height=ie,ee.__processStages(W,ce,V,j))}).then(function(be){return ce&&(ce.width=ce.height=0),be})},Y.prototype.__resizeViaCreateImageBitmap=function(W,Q,V){var j=this,ee=Q.getContext("2d",{alpha:!!V.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(W,{resizeWidth:V.toWidth,resizeHeight:V.toHeight,resizeQuality:C.cib_quality_name(V.quality)}).then(function(te){if(V.canceled)return V.cancelToken;if(!V.unsharpAmount)return ee.drawImage(te,0,0),te.close(),ee=null,j.debug("Finished!"),Q;j.debug("Unsharp result");var ne=j.options.createCanvas(V.toWidth,V.toHeight),se=ne.getContext("2d",{alpha:!!V.alpha});se.drawImage(te,0,0),te.close();var ie=se.getImageData(0,0,V.toWidth,V.toHeight);return j.__mathlib.unsharp_mask(ie.data,V.toWidth,V.toHeight,V.unsharpAmount,V.unsharpRadius,V.unsharpThreshold),ee.putImageData(ie,0,0),ne.width=ne.height=0,ie=se=ne=ee=null,j.debug("Finished!"),Q})},Y.prototype.resize=function(W,Q,V){var j=this;this.debug("Start resize...");var ee=b({},F);if(isNaN(V)?V&&(ee=b(ee,V)):ee=b(ee,{quality:V}),ee.toWidth=Q.width,ee.toHeight=Q.height,ee.width=W.naturalWidth||W.width,ee.height=W.naturalHeight||W.height,Q.width===0||Q.height===0)return Promise.reject(new Error("Invalid output size: ".concat(Q.width,"x").concat(Q.height)));ee.unsharpRadius>2&&(ee.unsharpRadius=2),ee.canceled=!1,ee.cancelToken&&(ee.cancelToken=ee.cancelToken.then(function(ne){throw ee.canceled=!0,ne},function(ne){throw ee.canceled=!0,ne}));var te=3;return ee.__destTileBorder=Math.ceil(Math.max(te,2.5*ee.unsharpRadius|0)),this.init().then(function(){if(ee.canceled)return ee.cancelToken;if(j.features.cib)return j.__resizeViaCreateImageBitmap(W,Q,ee);if(!G){var ne=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw ne.code="ERR_GET_IMAGE_DATA",ne}var se=k(ee.width,ee.height,ee.toWidth,ee.toHeight,j.options.tile,ee.__destTileBorder);return j.__processStages(se,W,Q,ee)})},Y.prototype.resizeBuffer=function(W){var Q=this,V=b({},F,W);return this.init().then(function(){return Q.__mathlib.resizeAndUnsharp(V)})},Y.prototype.toBlob=function(W,Q,V){return Q=Q||"image/png",new Promise(function(j){if(W.toBlob){W.toBlob(function(ie){return j(ie)},Q,V);return}if(W.convertToBlob){j(W.convertToBlob({type:Q,quality:V}));return}for(var ee=atob(W.toDataURL(Q,V).split(",")[1]),te=ee.length,ne=new Uint8Array(te),se=0;se<te;se++)ne[se]=ee.charCodeAt(se);j(new Blob([ne],{type:Q}))})},Y.prototype.debug=function(){},a.exports=Y},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")})}),GTe=DQn(function(e){function t(h,f){var p=new Error(h);return p.code=f,p}function r(h){for(var f=h.toString(16).toUpperCase(),p=2-f.length;p>0;p--)f="0"+f;return"0x"+f}function a(h){try{return unescape(encodeURIComponent(h))}catch{return h}}function s(h){try{return decodeURIComponent(escape(h))}catch{return h}}function o(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}function u(h,f,p){this.input=h.subarray(f,p),this.start=f;var m=String.fromCharCode.apply(null,this.input.subarray(0,4));if(m!=="II*\0"&&m!=="MM\0*")throw t("invalid TIFF signature","EBADDATA");this.big_endian=m[0]==="M"}u.prototype.each=function(h){this.aborted=!1;var f=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:f}];this.ifds_to_read.length>0&&!this.aborted;){var p=this.ifds_to_read.shift();p.offset&&this.scan_ifd(p.id,p.offset,h)}},u.prototype.filter=function(h){var f={};f.ifd0={id:0,entries:[]},this.each(function(_){h(_)===!1&&!_.is_subifd_link||_.is_subifd_link&&_.count!==1&&_.format!==4||(f["ifd"+_.ifd]||(f["ifd"+_.ifd]={id:_.ifd,entries:[]}),f["ifd"+_.ifd].entries.push(_))}),delete f.ifd1;var p=8;Object.keys(f).forEach(function(_){p+=2,f[_].entries.forEach(function(w){p+=12+(w.data_length>4?Math.ceil(w.data_length/2)*2:0)}),p+=4}),this.output=new Uint8Array(p),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var m=8,b=this;if(this.write_uint32(4,m),Object.keys(f).forEach(function(_){f[_].written_offset=m;var w=m,S=w+2+f[_].entries.length*12+4;m=S,b.write_uint16(w,f[_].entries.length),f[_].entries.sort(function(A,k){return A.tag-k.tag}).forEach(function(A,k){var I=w+2+k*12;b.write_uint16(I,A.tag),b.write_uint16(I+2,A.format),b.write_uint32(I+4,A.count),A.is_subifd_link?f["ifd"+A.tag]&&(f["ifd"+A.tag].link_offset=I+8):A.data_length<=4?b.output.set(b.input.subarray(A.data_offset-b.start,A.data_offset-b.start+4),I+8):(b.write_uint32(I+8,m),b.output.set(b.input.subarray(A.data_offset-b.start,A.data_offset-b.start+A.data_length),m),m+=Math.ceil(A.data_length/2)*2)});var C=f["ifd"+(f[_].id+1)];C&&(C.link_offset=S-4)}),Object.keys(f).forEach(function(_){f[_].written_offset&&f[_].link_offset&&b.write_uint32(f[_].link_offset,f[_].written_offset)}),this.output.length!==m)throw t("internal error: incorrect buffer size allocated");return this.output},u.prototype.read_uint16=function(h){var f=this.input;if(h+2>f.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?f[h]*256+f[h+1]:f[h]+f[h+1]*256},u.prototype.read_uint32=function(h){var f=this.input;if(h+4>f.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?f[h]*16777216+f[h+1]*65536+f[h+2]*256+f[h+3]:f[h]+f[h+1]*256+f[h+2]*65536+f[h+3]*16777216},u.prototype.write_uint16=function(h,f){var p=this.output;this.big_endian?(p[h]=f>>>8&255,p[h+1]=f&255):(p[h]=f&255,p[h+1]=f>>>8&255)},u.prototype.write_uint32=function(h,f){var p=this.output;this.big_endian?(p[h]=f>>>24&255,p[h+1]=f>>>16&255,p[h+2]=f>>>8&255,p[h+3]=f&255):(p[h]=f&255,p[h+1]=f>>>8&255,p[h+2]=f>>>16&255,p[h+3]=f>>>24&255)},u.prototype.is_subifd_link=function(h,f){return h===0&&f===34665||h===0&&f===34853||h===34665&&f===40965},u.prototype.exif_format_length=function(h){switch(h){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},u.prototype.exif_format_read=function(h,f){var p;switch(h){case 1:case 2:return p=this.input[f],p;case 6:return p=this.input[f],p|(p&128)*33554430;case 3:return p=this.read_uint16(f),p;case 8:return p=this.read_uint16(f),p|(p&32768)*131070;case 4:return p=this.read_uint32(f),p;case 9:return p=this.read_uint32(f),p|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},u.prototype.scan_ifd=function(h,f,p){var m=this.read_uint16(f);f+=2;for(var b=0;b<m;b++){var _=this.read_uint16(f),w=this.read_uint16(f+2),S=this.read_uint32(f+4),C=this.exif_format_length(w),A=S*C,k=A<=4?f+8:this.read_uint32(f+8),I=!1;if(k+A>this.input.length)throw t("unexpected EOF","EBADDATA");for(var N=[],L=k,P=0;P<S;P++,L+=C){var M=this.exif_format_read(w,L);if(M===null){N=null;break}N.push(M)}if(Array.isArray(N)&&w===2){try{N=s(String.fromCharCode.apply(null,N))}catch{N=null}N&&N[N.length-1]==="\0"&&(N=N.slice(0,-1))}this.is_subifd_link(h,_)&&Array.isArray(N)&&Number.isInteger(N[0])&&N[0]>0&&(this.ifds_to_read.push({id:_,offset:N[0]}),I=!0);var F={is_big_endian:this.big_endian,ifd:h,tag:_,format:w,count:S,entry_offset:f+this.start,data_length:A,data_offset:k+this.start,value:N,is_subifd_link:I};if(p(F)===!1){this.aborted=!0;return}f+=12}h===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(f)})},e.exports.is_jpeg=function(h){return h.length>=4&&h[0]===255&&h[1]===216&&h[2]===255},e.exports.jpeg_segments_each=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_segment), Function expected","EINVAL");if(!e.exports.is_jpeg(h))throw t("Unknown file format","ENOTJPEG");for(var p=0,m=h.length,b=!1;;){var _,w;if(p+1>=m)throw t("Unexpected EOF","EBADDATA");var S=h[p],C=h[p+1];if(S===255&&C===255)_=255,w=1;else if(S===255&&C!==0){if(_=C,w=2,!(208<=_&&_<=217||_===1)){if(p+3>=m)throw t("Unexpected EOF","EBADDATA");if(w+=h[p+2]*256+h[p+3],w<2)throw t("Invalid segment length","EBADDATA");if(p+w-1>=m)throw t("Unexpected EOF","EBADDATA")}b&&(_>=208&&_<=215||(b=!1)),_===218&&(b=!0)}else if(b)for(var A=p+1;;A++){if(A>=m)throw t("Unexpected EOF","EBADDATA");if(h[A]===255){if(A+1>=m)throw t("Unexpected EOF","EBADDATA");if(h[A+1]!==0){_=0,w=A-p;break}}}else throw t("Unexpected byte at segment start: "+r(S)+" (offset "+r(p)+")","EBADDATA");if(f({code:_,offset:p,length:w})===!1||_===217)break;p+=w}},e.exports.jpeg_segments_filter=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_segment), Function expected","EINVAL");var p=[],m=0;e.exports.jpeg_segments_each(h,function(w){var S=f(w);if(o(S))p.push({data:S}),m+=S.length;else if(Array.isArray(S))S.filter(o).forEach(function(A){p.push({data:A}),m+=A.length});else if(S!==!1){var C={start:w.offset,end:w.offset+w.length};p.length>0&&p[p.length-1].end===C.start?p[p.length-1].end=C.end:p.push(C),m+=w.length}});var b=new Uint8Array(m),_=0;return p.forEach(function(w){var S=w.data||h.subarray(w.start,w.end);b.set(S,_),_+=S.length}),b},e.exports.jpeg_exif_tags_each=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");e.exports.jpeg_segments_each(h,function(p){if(p.code===218)return!1;if(p.code===225&&p.length>=10&&h[p.offset+4]===69&&h[p.offset+5]===120&&h[p.offset+6]===105&&h[p.offset+7]===102&&h[p.offset+8]===0&&h[p.offset+9]===0)return new u(h,p.offset+10,p.offset+p.length).each(f),!1})},e.exports.jpeg_exif_tags_filter=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");var p=!1;return e.exports.jpeg_segments_filter(h,function(m){if(!p&&(m.code===218&&(p=!0),m.code===225&&m.length>=10&&h[m.offset+4]===69&&h[m.offset+5]===120&&h[m.offset+6]===105&&h[m.offset+7]===102&&h[m.offset+8]===0&&h[m.offset+9]===0)){var b=new u(h,m.offset+10,m.offset+m.length).filter(f);if(!b)return!1;var _=new Uint8Array(10);return _.set(h.slice(m.offset,m.offset+10)),_[2]=b.length+8>>>8&255,_[3]=b.length+8&255,p=!0,[_,b]}})},e.exports.jpeg_add_comment=function(h,f){var p=!1,m=0;return e.exports.jpeg_segments_filter(h,function(b){if(m++,!(m===1&&b.code===216)&&!(m===2&&b.code===224)&&!p){f=a(f);var _=new Uint8Array(5+f.length),w=0;return _[w++]=255,_[w++]=254,_[w++]=f.length+3>>>8&255,_[w++]=f.length+3&255,f.split("").forEach(function(S){_[w++]=S.charCodeAt(0)&255}),_[w++]=0,p=!0,[_,h.subarray(b.offset,b.offset+b.length)]}})}});function uta(e){return this._getUint8Array(e.blob).then(function(t){if(e.is_jpeg=GTe.is_jpeg(t),!e.is_jpeg)return Promise.resolve(e);e.orig_blob=e.blob;try{var r,a;if(GTe.jpeg_exif_tags_each(t,function(o){if(o.ifd===0&&o.tag===274&&Array.isArray(o.value))return e.orientation=o.value[0]||1,r=o.is_big_endian,a=o.data_offset,!1}),a){var s=r?new Uint8Array([0,1]):new Uint8Array([1,0]);e.blob=new Blob([t.slice(0,a),s,t.slice(a+2)],{type:"image/jpeg"})}}catch{}return e})}function hta(e){if(!e.is_jpeg)return Promise.resolve(e);var t=e.orientation-1;if(!t)return Promise.resolve(e);var r;t&4?r=this.pica.options.createCanvas(e.out_canvas.height,e.out_canvas.width):r=this.pica.options.createCanvas(e.out_canvas.width,e.out_canvas.height);var a=r.getContext("2d");return a.save(),t&1&&a.transform(-1,0,0,1,r.width,0),t&2&&a.transform(-1,0,0,-1,r.width,r.height),t&4&&a.transform(0,1,1,0,0,0),a.drawImage(e.out_canvas,0,0),a.restore(),e.out_canvas.width=e.out_canvas.height=0,e.out_canvas=r,Promise.resolve(e)}function dta(e){return e.is_jpeg?Promise.all([this._getUint8Array(e.blob),this._getUint8Array(e.out_blob)]).then(function(t){var r=t[0],a=t[1];if(!GTe.is_jpeg(r))return Promise.resolve(e);var s=[];return GTe.jpeg_segments_each(r,function(o){if(o.code===218)return!1;s.push(o)}),s=s.filter(function(o){return o.code===226?!1:o.code>=224&&o.code<240||o.code===254}).map(function(o){return r.slice(o.offset,o.offset+o.length)}),e.out_blob=new Blob([a.slice(0,2)].concat(s).concat([a.slice(20)]),{type:"image/jpeg"}),e}):Promise.resolve(e)}function fta(e){e.before("_blob_to_image",uta),e.after("_transform",hta),e.after("_create_blob",dta)}var pta=fta,gta={assign:pta};function Nb(e){if(!(this instanceof Nb))return new Nb(e);e=e||{},this.pica=e.pica||MQn({}),this.initialized=!1,this.utils=pbt}Nb.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Nb.prototype.init=function(){this.use(gta.assign)};Nb.prototype.toBlob=function(e,t){var r=pbt.assign({max:1/0},t),a={blob:e,opts:r};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then(function(s){return s.out_canvas.width=s.out_canvas.height=0,s.out_blob})};Nb.prototype.toCanvas=function(e,t){var r=pbt.assign({max:1/0},t),a={blob:e,opts:r};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(function(s){return s.out_canvas})};Nb.prototype.before=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if(typeof t!="function")throw new Error('Invalid argument "fn", function expected');var r=this[e],a=this;return this[e]=function(s){return t.call(a,s).then(function(o){return r.call(a,o)})},this};Nb.prototype.after=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if(typeof t!="function")throw new Error('Invalid argument "fn", function expected');var r=this[e],a=this;return this[e]=function(s){return r.call(a,s).then(function(o){return t.call(a,o)})},this};Nb.prototype._blob_to_image=function(e){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return e.image=document.createElement("img"),e.image_url=t.createObjectURL(e.blob),e.image.src=e.image_url,new Promise(function(r,a){e.image.onerror=function(){a(new Error("ImageBlobReduce: failed to create Image() from blob"))},e.image.onload=function(){r(e)}})};Nb.prototype._calculate_size=function(e){var t=e.opts.max/Math.max(e.image.width,e.image.height);return t>1&&(t=1),e.transform_width=Math.max(Math.round(e.image.width*t),1),e.transform_height=Math.max(Math.round(e.image.height*t),1),e.scale_factor=t,Promise.resolve(e)};Nb.prototype._transform=function(e){e.out_canvas=this.pica.options.createCanvas(e.transform_width,e.transform_height),e.transform_width=null,e.transform_height=null;var t={alpha:e.blob.type==="image/png"};return this.utils.assign(t,this.utils.pick_pica_resize_options(e.opts)),this.pica.resize(e.image,e.out_canvas,t).then(function(){return e})};Nb.prototype._cleanup=function(e){e.image.src="",e.image=null;var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return t.revokeObjectURL&&t.revokeObjectURL(e.image_url),e.image_url=null,Promise.resolve(e)};Nb.prototype._create_blob=function(e){return this.pica.toBlob(e.out_canvas,e.blob.type).then(function(t){return e.out_blob=t,e})};Nb.prototype._getUint8Array=function(e){return e.arrayBuffer?e.arrayBuffer().then(function(t){return new Uint8Array(t)}):new Promise(function(t,r){var a=new FileReader;a.readAsArrayBuffer(e),a.onload=function(){t(new Uint8Array(a.result))},a.onerror=function(){r(new Error("ImageBlobReduce: failed to load data from input blob")),a.abort()},a.onabort=function(){r(new Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}})};Nb.pica=MQn;var mta=Nb;const eCa=Object.freeze(Object.defineProperty({__proto__:null,default:mta},Symbol.toStringTag,{value:"Module"}));let tCa=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:PQn,setPrototypeOf:WTn,isFrozen:bta,getPrototypeOf:yta,getOwnPropertyDescriptor:vta}=Object;let{freeze:fv,seal:NS,create:BQn}=Object,{apply:Wut,construct:Kut}=typeof Reflect<"u"&&Reflect;fv||(fv=function(t){return t});NS||(NS=function(t){return t});Wut||(Wut=function(t,r,a){return t.apply(r,a)});Kut||(Kut=function(t,r){return new t(...r)});const bEe=qw(Array.prototype.forEach),KTn=qw(Array.prototype.pop),fie=qw(Array.prototype.push),tSe=qw(String.prototype.toLowerCase),oat=qw(String.prototype.toString),XTn=qw(String.prototype.match),pie=qw(String.prototype.replace),_ta=qw(String.prototype.indexOf),wta=qw(String.prototype.trim),T3=qw(Object.prototype.hasOwnProperty),$y=qw(RegExp.prototype.test),gie=Eta(TypeError);function qw(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return Wut(e,t,a)}}function Eta(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Kut(e,r)}}function cc(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tSe;WTn&&WTn(e,null);let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const o=r(s);o!==s&&(bta(t)||(t[a]=o),s=o)}e[s]=!0}return e}function xta(e){for(let t=0;t<e.length;t++)T3(e,t)||(e[t]=null);return e}function DB(e){const t=BQn(null);for(const[r,a]of PQn(e))T3(e,r)&&(Array.isArray(a)?t[r]=xta(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=DB(a):t[r]=a);return t}function mie(e,t){for(;e!==null;){const a=vta(e,t);if(a){if(a.get)return qw(a.get);if(typeof a.value=="function")return qw(a.value)}e=yta(e)}function r(){return null}return r}const QTn=fv(["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"]),lat=fv(["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"]),cat=fv(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Sta=fv(["animate","color-profile","cursor","discard","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"]),uat=fv(["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","mprescripts"]),Tta=fv(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ZTn=fv(["#text"]),JTn=fv(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),hat=fv(["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"]),e5n=fv(["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"]),yEe=fv(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cta=NS(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ata=NS(/<%[\w\W]*|[\w\W]*%>/gm),kta=NS(/\${[\w\W]*}/gm),Rta=NS(/^data-[\-\w.\u00B7-\uFFFF]/),Ita=NS(/^aria-[\-\w]+$/),FQn=NS(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nta=NS(/^(?:\w+script|data):/i),Ota=NS(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$Qn=NS(/^html$/i),Lta=NS(/^[a-z][.\w]*(-[.\w]+)+$/i);var t5n=Object.freeze({__proto__:null,MUSTACHE_EXPR:Cta,ERB_EXPR:Ata,TMPLIT_EXPR:kta,DATA_ATTR:Rta,ARIA_ATTR:Ita,IS_ALLOWED_URI:FQn,IS_SCRIPT_OR_DATA:Nta,ATTR_WHITESPACE:Ota,DOCTYPE_NAME:$Qn,CUSTOM_ELEMENT:Lta});const bie={element:1,text:3,progressingInstruction:7,comment:8,document:9},Dta=function(){return typeof window>"u"?null:window},Mta=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(a=r.getAttribute(s));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function UQn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dta();const t=Fi=>UQn(Fi);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==bie.document)return t.isSupported=!1,t;let{document:r}=e;const a=r,s=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:h,Element:f,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:_,trustedTypes:w}=e,S=f.prototype,C=mie(S,"cloneNode"),A=mie(S,"remove"),k=mie(S,"nextSibling"),I=mie(S,"childNodes"),N=mie(S,"parentNode");if(typeof u=="function"){const Fi=r.createElement("template");Fi.content&&Fi.content.ownerDocument&&(r=Fi.content.ownerDocument)}let L,P="";const{implementation:M,createNodeIterator:F,createDocumentFragment:U,getElementsByTagName:$}=r,{importNode:G}=a;let B={};t.isSupported=typeof PQn=="function"&&typeof N=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:z,TMPLIT_EXPR:Y,DATA_ATTR:W,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ee}=t5n;let{IS_ALLOWED_URI:te}=t5n,ne=null;const se=cc({},[...QTn,...lat,...cat,...uat,...ZTn]);let ie=null;const ge=cc({},[...JTn,...hat,...e5n,...yEe]);let ce=Object.seal(BQn(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}})),be=null,ve=null,De=!0,ye=!0,Ee=!1,he=!0,we=!1,Ce=!0,Ie=!1,Le=!1,Fe=!1,Ve=!1,Oe=!1,Dt=!1,ot=!0,sn=!1;const Kt="user-content-";let Ft=!0,Je=!1,ht={},et=null;const qe=cc({},["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"]);let He=null;const Ge=cc({},["audio","video","img","source","image","track"]);let Ye=null;const Ae=cc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Ke=Qe,mt=!1,lt=null;const $t=cc({},[Xe,fe,Qe],oat);let Ut=null;const Jt=["application/xhtml+xml","text/html"],wn="text/html";let Vn=null,Wn=null;const Dn=r.createElement("form"),zn=function(Pt){return Pt instanceof RegExp||Pt instanceof Function},vn=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wn&&Wn===Pt)){if((!Pt||typeof Pt!="object")&&(Pt={}),Pt=DB(Pt),Ut=Jt.indexOf(Pt.PARSER_MEDIA_TYPE)===-1?wn:Pt.PARSER_MEDIA_TYPE,Vn=Ut==="application/xhtml+xml"?oat:tSe,ne=T3(Pt,"ALLOWED_TAGS")?cc({},Pt.ALLOWED_TAGS,Vn):se,ie=T3(Pt,"ALLOWED_ATTR")?cc({},Pt.ALLOWED_ATTR,Vn):ge,lt=T3(Pt,"ALLOWED_NAMESPACES")?cc({},Pt.ALLOWED_NAMESPACES,oat):$t,Ye=T3(Pt,"ADD_URI_SAFE_ATTR")?cc(DB(Ae),Pt.ADD_URI_SAFE_ATTR,Vn):Ae,He=T3(Pt,"ADD_DATA_URI_TAGS")?cc(DB(Ge),Pt.ADD_DATA_URI_TAGS,Vn):Ge,et=T3(Pt,"FORBID_CONTENTS")?cc({},Pt.FORBID_CONTENTS,Vn):qe,be=T3(Pt,"FORBID_TAGS")?cc({},Pt.FORBID_TAGS,Vn):{},ve=T3(Pt,"FORBID_ATTR")?cc({},Pt.FORBID_ATTR,Vn):{},ht=T3(Pt,"USE_PROFILES")?Pt.USE_PROFILES:!1,De=Pt.ALLOW_ARIA_ATTR!==!1,ye=Pt.ALLOW_DATA_ATTR!==!1,Ee=Pt.ALLOW_UNKNOWN_PROTOCOLS||!1,he=Pt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=Pt.SAFE_FOR_TEMPLATES||!1,Ce=Pt.SAFE_FOR_XML!==!1,Ie=Pt.WHOLE_DOCUMENT||!1,Ve=Pt.RETURN_DOM||!1,Oe=Pt.RETURN_DOM_FRAGMENT||!1,Dt=Pt.RETURN_TRUSTED_TYPE||!1,Fe=Pt.FORCE_BODY||!1,ot=Pt.SANITIZE_DOM!==!1,sn=Pt.SANITIZE_NAMED_PROPS||!1,Ft=Pt.KEEP_CONTENT!==!1,Je=Pt.IN_PLACE||!1,te=Pt.ALLOWED_URI_REGEXP||FQn,Ke=Pt.NAMESPACE||Qe,ce=Pt.CUSTOM_ELEMENT_HANDLING||{},Pt.CUSTOM_ELEMENT_HANDLING&&zn(Pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=Pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Pt.CUSTOM_ELEMENT_HANDLING&&zn(Pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=Pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Pt.CUSTOM_ELEMENT_HANDLING&&typeof Pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(ye=!1),Oe&&(Ve=!0),ht&&(ne=cc({},ZTn),ie=[],ht.html===!0&&(cc(ne,QTn),cc(ie,JTn)),ht.svg===!0&&(cc(ne,lat),cc(ie,hat),cc(ie,yEe)),ht.svgFilters===!0&&(cc(ne,cat),cc(ie,hat),cc(ie,yEe)),ht.mathMl===!0&&(cc(ne,uat),cc(ie,e5n),cc(ie,yEe))),Pt.ADD_TAGS&&(ne===se&&(ne=DB(ne)),cc(ne,Pt.ADD_TAGS,Vn)),Pt.ADD_ATTR&&(ie===ge&&(ie=DB(ie)),cc(ie,Pt.ADD_ATTR,Vn)),Pt.ADD_URI_SAFE_ATTR&&cc(Ye,Pt.ADD_URI_SAFE_ATTR,Vn),Pt.FORBID_CONTENTS&&(et===qe&&(et=DB(et)),cc(et,Pt.FORBID_CONTENTS,Vn)),Ft&&(ne["#text"]=!0),Ie&&cc(ne,["html","head","body"]),ne.table&&(cc(ne,["tbody"]),delete be.tbody),Pt.TRUSTED_TYPES_POLICY){if(typeof Pt.TRUSTED_TYPES_POLICY.createHTML!="function")throw gie('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Pt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw gie('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=Pt.TRUSTED_TYPES_POLICY,P=L.createHTML("")}else L===void 0&&(L=Mta(w,s)),L!==null&&typeof P=="string"&&(P=L.createHTML(""));fv&&fv(Pt),Wn=Pt}},Cn=cc({},["mi","mo","mn","ms","mtext"]),Ar=cc({},["foreignobject","annotation-xml"]),ur=cc({},["title","style","font","a","script"]),On=cc({},[...lat,...cat,...Sta]),Ir=cc({},[...uat,...Tta]),Ln=function(Pt){let St=N(Pt);(!St||!St.tagName)&&(St={namespaceURI:Ke,tagName:"template"});const Un=tSe(Pt.tagName),Hr=tSe(St.tagName);return lt[Pt.namespaceURI]?Pt.namespaceURI===fe?St.namespaceURI===Qe?Un==="svg":St.namespaceURI===Xe?Un==="svg"&&(Hr==="annotation-xml"||Cn[Hr]):!!On[Un]:Pt.namespaceURI===Xe?St.namespaceURI===Qe?Un==="math":St.namespaceURI===fe?Un==="math"&&Ar[Hr]:!!Ir[Un]:Pt.namespaceURI===Qe?St.namespaceURI===fe&&!Ar[Hr]||St.namespaceURI===Xe&&!Cn[Hr]?!1:!Ir[Un]&&(ur[Un]||!On[Un]):!!(Ut==="application/xhtml+xml"&&lt[Pt.namespaceURI]):!1},pr=function(Pt){fie(t.removed,{element:Pt});try{N(Pt).removeChild(Pt)}catch{A(Pt)}},Cr=function(Pt,St){try{fie(t.removed,{attribute:St.getAttributeNode(Pt),from:St})}catch{fie(t.removed,{attribute:null,from:St})}if(St.removeAttribute(Pt),Pt==="is"&&!ie[Pt])if(Ve||Oe)try{pr(St)}catch{}else try{St.setAttribute(Pt,"")}catch{}},Zr=function(Pt){let St=null,Un=null;if(Fe)Pt="<remove></remove>"+Pt;else{const Rs=XTn(Pt,/^[\r\n\t ]+/);Un=Rs&&Rs[0]}Ut==="application/xhtml+xml"&&Ke===Qe&&(Pt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Pt+"</body></html>");const Hr=L?L.createHTML(Pt):Pt;if(Ke===Qe)try{St=new _().parseFromString(Hr,Ut)}catch{}if(!St||!St.documentElement){St=M.createDocument(Ke,"template",null);try{St.documentElement.innerHTML=mt?P:Hr}catch{}}const za=St.body||St.documentElement;return Pt&&Un&&za.insertBefore(r.createTextNode(Un),za.childNodes[0]||null),Ke===Qe?$.call(St,Ie?"html":"body")[0]:Ie?St.documentElement:za},Pr=function(Pt){return F.call(Pt.ownerDocument||Pt,Pt,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ci=function(Pt){return Pt instanceof b&&(typeof Pt.nodeName!="string"||typeof Pt.textContent!="string"||typeof Pt.removeChild!="function"||!(Pt.attributes instanceof m)||typeof Pt.removeAttribute!="function"||typeof Pt.setAttribute!="function"||typeof Pt.namespaceURI!="string"||typeof Pt.insertBefore!="function"||typeof Pt.hasChildNodes!="function")},ds=function(Pt){return typeof h=="function"&&Pt instanceof h},ta=function(Pt,St,Un){B[Pt]&&bEe(B[Pt],Hr=>{Hr.call(t,St,Un,Wn)})},Os=function(Pt){let St=null;if(ta("beforeSanitizeElements",Pt,null),Ci(Pt))return pr(Pt),!0;const Un=Vn(Pt.nodeName);if(ta("uponSanitizeElement",Pt,{tagName:Un,allowedTags:ne}),Pt.hasChildNodes()&&!ds(Pt.firstElementChild)&&$y(/<[/\w]/g,Pt.innerHTML)&&$y(/<[/\w]/g,Pt.textContent)||Pt.nodeType===bie.progressingInstruction||Ce&&Pt.nodeType===bie.comment&&$y(/<[/\w]/g,Pt.data))return pr(Pt),!0;if(!ne[Un]||be[Un]){if(!be[Un]&&Ls(Un)&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Un)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Un)))return!1;if(Ft&&!et[Un]){const Hr=N(Pt)||Pt.parentNode,za=I(Pt)||Pt.childNodes;if(za&&Hr){const Rs=za.length;for(let Vr=Rs-1;Vr>=0;--Vr){const Ii=C(za[Vr],!0);Ii.__removalCount=(Pt.__removalCount||0)+1,Hr.insertBefore(Ii,k(Pt))}}}return pr(Pt),!0}return Pt instanceof f&&!Ln(Pt)||(Un==="noscript"||Un==="noembed"||Un==="noframes")&&$y(/<\/no(script|embed|frames)/i,Pt.innerHTML)?(pr(Pt),!0):(we&&Pt.nodeType===bie.text&&(St=Pt.textContent,bEe([Z,z,Y],Hr=>{St=pie(St,Hr," ")}),Pt.textContent!==St&&(fie(t.removed,{element:Pt.cloneNode()}),Pt.textContent=St)),ta("afterSanitizeElements",Pt,null),!1)},uo=function(Pt,St,Un){if(ot&&(St==="id"||St==="name")&&(Un in r||Un in Dn))return!1;if(!(ye&&!ve[St]&&$y(W,St))){if(!(De&&$y(Q,St))){if(!ie[St]||ve[St]){if(!(Ls(Pt)&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Pt)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Pt))&&(ce.attributeNameCheck instanceof RegExp&&$y(ce.attributeNameCheck,St)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(St))||St==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Un)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Un))))return!1}else if(!Ye[St]){if(!$y(te,pie(Un,j,""))){if(!((St==="src"||St==="xlink:href"||St==="href")&&Pt!=="script"&&_ta(Un,"data:")===0&&He[Pt])){if(!(Ee&&!$y(V,pie(Un,j,"")))){if(Un)return!1}}}}}}return!0},Ls=function(Pt){return Pt!=="annotation-xml"&&XTn(Pt,ee)},La=function(Pt){ta("beforeSanitizeAttributes",Pt,null);const{attributes:St}=Pt;if(!St)return;const Un={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie};let Hr=St.length;for(;Hr--;){const za=St[Hr],{name:Rs,namespaceURI:Vr,value:Ii}=za,Pa=Vn(Rs);let Or=Rs==="value"?Ii:wta(Ii);if(Un.attrName=Pa,Un.attrValue=Or,Un.keepAttr=!0,Un.forceKeepAttr=void 0,ta("uponSanitizeAttribute",Pt,Un),Or=Un.attrValue,Ce&&$y(/((--!?|])>)|<\/(style|title)/i,Or)){Cr(Rs,Pt);continue}if(Un.forceKeepAttr||(Cr(Rs,Pt),!Un.keepAttr))continue;if(!he&&$y(/\/>/i,Or)){Cr(Rs,Pt);continue}we&&bEe([Z,z,Y],dt=>{Or=pie(Or,dt," ")});const no=Vn(Pt.nodeName);if(uo(no,Pa,Or)){if(sn&&(Pa==="id"||Pa==="name")&&(Cr(Rs,Pt),Or=Kt+Or),L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Vr)switch(w.getAttributeType(no,Pa)){case"TrustedHTML":{Or=L.createHTML(Or);break}case"TrustedScriptURL":{Or=L.createScriptURL(Or);break}}try{Vr?Pt.setAttributeNS(Vr,Rs,Or):Pt.setAttribute(Rs,Or),Ci(Pt)?pr(Pt):KTn(t.removed)}catch{}}}ta("afterSanitizeAttributes",Pt,null)},to=function Fi(Pt){let St=null;const Un=Pr(Pt);for(ta("beforeSanitizeShadowDOM",Pt,null);St=Un.nextNode();)ta("uponSanitizeShadowNode",St,null),!Os(St)&&(St.content instanceof o&&Fi(St.content),La(St));ta("afterSanitizeShadowDOM",Pt,null)};return t.sanitize=function(Fi){let Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=null,Un=null,Hr=null,za=null;if(mt=!Fi,mt&&(Fi="<!-->"),typeof Fi!="string"&&!ds(Fi))if(typeof Fi.toString=="function"){if(Fi=Fi.toString(),typeof Fi!="string")throw gie("dirty is not a string, aborting")}else throw gie("toString is not a function");if(!t.isSupported)return Fi;if(Le||vn(Pt),t.removed=[],typeof Fi=="string"&&(Je=!1),Je){if(Fi.nodeName){const Ii=Vn(Fi.nodeName);if(!ne[Ii]||be[Ii])throw gie("root node is forbidden and cannot be sanitized in-place")}}else if(Fi instanceof h)St=Zr("<!---->"),Un=St.ownerDocument.importNode(Fi,!0),Un.nodeType===bie.element&&Un.nodeName==="BODY"||Un.nodeName==="HTML"?St=Un:St.appendChild(Un);else{if(!Ve&&!we&&!Ie&&Fi.indexOf("<")===-1)return L&&Dt?L.createHTML(Fi):Fi;if(St=Zr(Fi),!St)return Ve?null:Dt?P:""}St&&Fe&&pr(St.firstChild);const Rs=Pr(Je?Fi:St);for(;Hr=Rs.nextNode();)Os(Hr)||(Hr.content instanceof o&&to(Hr.content),La(Hr));if(Je)return Fi;if(Ve){if(Oe)for(za=U.call(St.ownerDocument);St.firstChild;)za.appendChild(St.firstChild);else za=St;return(ie.shadowroot||ie.shadowrootmode)&&(za=G.call(a,za,!0)),za}let Vr=Ie?St.outerHTML:St.innerHTML;return Ie&&ne["!doctype"]&&St.ownerDocument&&St.ownerDocument.doctype&&St.ownerDocument.doctype.name&&$y($Qn,St.ownerDocument.doctype.name)&&(Vr="<!DOCTYPE "+St.ownerDocument.doctype.name+`>
`+Vr),we&&bEe([Z,z,Y],Ii=>{Vr=pie(Vr,Ii," ")}),L&&Dt?L.createHTML(Vr):Vr},t.setConfig=function(){let Fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vn(Fi),Le=!0},t.clearConfig=function(){Wn=null,Le=!1},t.isValidAttribute=function(Fi,Pt,St){Wn||vn({});const Un=Vn(Fi),Hr=Vn(Pt);return uo(Un,Hr,St)},t.addHook=function(Fi,Pt){typeof Pt=="function"&&(B[Fi]=B[Fi]||[],fie(B[Fi],Pt))},t.removeHook=function(Fi){if(B[Fi])return KTn(B[Fi])},t.removeHooks=function(Fi){B[Fi]&&(B[Fi]=[])},t.removeAllHooks=function(){B={}},t}var rW=UQn();const e7={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ut={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},gbt=function(e="fatal"){let t=e7.fatal;typeof e=="string"?(e=e.toLowerCase(),e in e7&&(t=e7[e])):typeof e=="number"&&(t=e),ut.trace=()=>{},ut.debug=()=>{},ut.info=()=>{},ut.warn=()=>{},ut.error=()=>{},ut.fatal=()=>{},t<=e7.fatal&&(ut.fatal=console.error?console.error.bind(console,$x("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$x("FATAL"))),t<=e7.error&&(ut.error=console.error?console.error.bind(console,$x("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$x("ERROR"))),t<=e7.warn&&(ut.warn=console.warn?console.warn.bind(console,$x("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$x("WARN"))),t<=e7.info&&(ut.info=console.info?console.info.bind(console,$x("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$x("INFO"))),t<=e7.debug&&(ut.debug=console.debug?console.debug.bind(console,$x("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$x("DEBUG"))),t<=e7.trace&&(ut.trace=console.debug?console.debug.bind(console,$x("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$x("TRACE")))},$x=e=>`%c${Fc().format("ss.SSS")} : ${e} : `,aK=/<br\s*\/?>/gi,Pta=e=>e?GQn(e).replace(/\\n/g,"#br#").split("#br#"):[""],Bta=(()=>{let e=!1;return()=>{e||(Fta(),e=!0)}})();function Fta(){const e="data-temp-href-target";rW.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")||"")}),rW.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)||""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}const zQn=e=>(Bta(),rW.sanitize(e)),n5n=(e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const a=t.securityLevel;a==="antiscript"||a==="strict"?e=zQn(e):a!=="loose"&&(e=GQn(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Gta(e))}return e},J0=(e,t)=>e&&(t.dompurifyConfig?e=rW.sanitize(n5n(e,t),t.dompurifyConfig).toString():e=rW.sanitize(n5n(e,t),{FORBID_TAGS:["style"]}).toString(),e),$ta=(e,t)=>typeof e=="string"?J0(e,t):e.flat().map(r=>J0(r,t)),Uta=e=>aK.test(e),zta=e=>e.split(aK),Gta=e=>e.replace(/#br#/g,"<br/>"),GQn=e=>e.replace(aK,"#br#"),qta=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},Np=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),Hta=function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},Vta=function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},Nse=function(e){const t=e.split(/(,)/),r=[];for(let a=0;a<t.length;a++){let s=t[a];if(s===","&&a>0&&a+1<t.length){const o=t[a-1],u=t[a+1];Yta(o,u)&&(s=o+","+u,a++,r.pop())}r.push(jta(s))}return r.join("")},Xut=(e,t)=>Math.max(0,e.split(t).length-1),Yta=(e,t)=>{const r=Xut(e,"~"),a=Xut(t,"~");return r===1&&a===1},jta=e=>{const t=Xut(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const a=[...e];let s=a.indexOf("~"),o=a.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)a[s]="<",a[o]=">",s=a.indexOf("~"),o=a.lastIndexOf("~");return r&&a.unshift("~"),a.join("")},r5n=()=>window.MathMLElement!==void 0,Qut=/\$\$(.*)\$\$/g,OS=e=>{var t;return(((t=e.match(Qut))==null?void 0:t.length)??0)>0},Xce=async(e,t)=>{e=await Z$(e,t);const r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const a=document.querySelector("body");a==null||a.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},Z$=async(e,t)=>{if(!OS(e))return e;if(!r5n()&&!t.legacyMathML)return e.replace(Qut,"MathML is unsupported in this environment.");const{default:r}=await ea(async()=>{const{default:a}=await Promise.resolve().then(()=>rzr);return{default:a}},void 0);return e.split(aK).map(a=>OS(a)?`
            <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
              ${a}
            </div>
          `:`<div>${a}</div>`).join("").replace(Qut,(a,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:r5n()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},mi={getRows:Pta,sanitizeText:J0,sanitizeTextOrArray:$ta,hasBreaks:Uta,splitBreaks:zta,lineBreakRegex:aK,removeScript:zQn,getUrl:qta,evaluate:Np,getMax:Hta,getMin:Vta},tv=(e,t)=>t?gt(e,{s:-40,l:10}):gt(e,{s:-40,l:-10}),s6e="#ffffff",o6e="#f2f2f2";let Wta=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(){var t,r,a,s,o,u,h,f,p,m,b;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||gt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||gt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||tv(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||tv(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ir(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ir(this.tertiaryColor),this.lineColor=this.lineColor||ir(this.background),this.arrowheadColor=this.arrowheadColor||ir(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,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?qr(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||qr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ir(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||Nr(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||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.darkMode)for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=qr(this["cScale"+w],75);else for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=qr(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||ir(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||Nr(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||qr(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;const _=this.darkMode?-4:-1;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||gt(this.mainBkg,{h:180,s:-15,l:_*(5+w*3)}),this["surfacePeer"+w]=this["surfacePeer"+w]||gt(this.mainBkg,{h:180,s:-15,l:_*(8+w*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||gt(this.primaryColor,{h:64}),this.fillType3=this.fillType3||gt(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||gt(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||gt(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||gt(this.primaryColor,{h:128}),this.fillType7=this.fillType7||gt(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||gt(this.primaryColor,{l:-10}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-10}),this.pie6=this.pie6||gt(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||gt(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qr(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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(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||s6e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||o6e}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const Kta=e=>{const t=new Wta;return t.calculate(e),t};let Xta=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Nr(this.primaryColor,16),this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=ir(this.background),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Nr(ir("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Z2(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=qr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qr(this.sectionBkgColor,10),this.taskBorderColor=Z2(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Z2(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.secondBkg=Nr(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=Nr(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=Nr(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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(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||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||ir(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScalePeer"+_]=this["cScalePeer"+_]||Nr(this["cScale"+_],10);for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||gt(this.mainBkg,{h:30,s:-30,l:-(-10+_*4)}),this["surfacePeer"+_]=this["surfacePeer"+_]||gt(this.mainBkg,{h:30,s:-30,l:-(-7+_*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Nr(this.secondaryColor,20),this.git1=Nr(this.pie2||this.secondaryColor,20),this.git2=Nr(this.pie3||this.tertiaryColor,20),this.git3=Nr(this.pie4||gt(this.primaryColor,{h:-30}),20),this.git4=Nr(this.pie5||gt(this.primaryColor,{h:-60}),20),this.git5=Nr(this.pie6||gt(this.primaryColor,{h:-90}),10),this.git6=Nr(this.pie7||gt(this.primaryColor,{h:60}),10),this.git7=Nr(this.pie8||gt(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||Nr(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nr(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const Qta=e=>{const t=new Xta;return t.calculate(e),t};let Zta=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=gt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(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=Z2(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=qr(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||qr(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||gt(this["cScale"+_],{h:180});for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||gt(this.mainBkg,{h:30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||gt(this.mainBkg,{h:30,l:-(7+_*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ir(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ir(this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||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=Nr(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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||gt(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||gt(this.primaryColor,{l:-10}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||gt(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||gt(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||qr(ir(this.git0),25),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||s6e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||o6e}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const mbt=e=>{const t=new Zta;return t.calculate(e),t};let Jta=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=Nr("#cde498",10),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.primaryColor),this.lineColor=ir(this.background),this.textColor=ir(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.actorBorder=qr(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=qr(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||qr(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||gt(this["cScale"+_],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||gt(this.mainBkg,{h:30,s:-30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||gt(this.mainBkg,{h:30,s:-30,l:-(8+_*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(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||gt(this.primaryColor,{l:-30}),this.pie5=this.pie5||gt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||gt(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||gt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||gt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||gt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||gt(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||gt(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||gt(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||gt(this.primaryColor,{h:-30}),this.git4=this.git4||gt(this.primaryColor,{h:-60}),this.git5=this.git5||gt(this.primaryColor,{h:-90}),this.git6=this.git6||gt(this.primaryColor,{h:60}),this.git7=this.git7||gt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Nr(this.git0,25),this.git1=Nr(this.git1,25),this.git2=Nr(this.git2,25),this.git3=Nr(this.git3,25),this.git4=Nr(this.git4,25),this.git5=Nr(this.git5,25),this.git6=Nr(this.git6,25),this.git7=Nr(this.git7,25)):(this.git0=qr(this.git0,25),this.git1=qr(this.git1,25),this.git2=qr(this.git2,25),this.git3=qr(this.git3,25),this.git4=qr(this.git4,25),this.git5=qr(this.git5,25),this.git6=qr(this.git6,25),this.git7=qr(this.git7,25)),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ir(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ir(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||s6e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||o6e}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const ena=e=>{const t=new Jta;return t.calculate(e),t};class tna{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Nr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.secondBkg=Nr(this.contrast,55),this.border2=this.contrast,this.actorBorder=Nr(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.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 _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||ir(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this.darkMode?this["cScalePeer"+_]=this["cScalePeer"+_]||Nr(this["cScale"+_],10):this["cScalePeer"+_]=this["cScalePeer"+_]||qr(this["cScale"+_],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||gt(this.mainBkg,{l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||gt(this.mainBkg,{l:-(8+_*5)});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.sectionBkgColor=Nr(this.contrast,30),this.sectionBkgColor2=Nr(this.contrast,30),this.taskBorderColor=qr(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=Nr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=qr(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=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||gt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||gt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||gt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||gt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||gt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||gt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||bv(this.quadrant1Fill)?Nr(this.quadrant1Fill):qr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((b=this.xyChart)==null?void 0:b.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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=qr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||gt(this.primaryColor,{h:-30}),this.git4=this.pie5||gt(this.primaryColor,{h:-60}),this.git5=this.pie6||gt(this.primaryColor,{h:-90}),this.git6=this.pie7||gt(this.primaryColor,{h:60}),this.git7=this.pie8||gt(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ir(this.git0),this.gitInv1=this.gitInv1||ir(this.git1),this.gitInv2=this.gitInv2||ir(this.git2),this.gitInv3=this.gitInv3||ir(this.git3),this.gitInv4=this.gitInv4||ir(this.git4),this.gitInv5=this.gitInv5||ir(this.git5),this.gitInv6=this.gitInv6||ir(this.git6),this.gitInv7=this.gitInv7||ir(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||s6e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||o6e}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}}const nna=e=>{const t=new tna;return t.calculate(e),t},V7={base:{getThemeVariables:Kta},dark:{getThemeVariables:Qta},default:{getThemeVariables:mbt},forest:{getThemeVariables:ena},neutral:{getThemeVariables:nna}},t7={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,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,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},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{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},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,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,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"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},qQn={...t7,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:V7.default.getThemeVariables(),sequence:{...t7.sequence,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:{...t7.gantt,tickInterval:void 0,useWidth:void 0},c4:{...t7.c4,useWidth:void 0,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}}},pie:{...t7.pie,useWidth:984},xyChart:{...t7.xyChart,useWidth:void 0},requirement:{...t7.requirement,useWidth:void 0},gitGraph:{...t7.gitGraph,useMaxWidth:!1},sankey:{...t7.sankey,useMaxWidth:!1}},HQn=(e,t="")=>Object.keys(e).reduce((r,a)=>Array.isArray(e[a])?r:typeof e[a]=="object"&&e[a]!==null?[...r,t+a,...HQn(e[a],"")]:[...r,t+a],[]),rna=new Set(HQn(qQn,"")),fd=qQn,qTe=e=>{if(ut.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>qTe(t));return}for(const t of Object.keys(e)){if(ut.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!rna.has(t)||e[t]==null){ut.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ut.debug("sanitizing object",t),qTe(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(ut.debug("sanitizing css option",t),e[t]=ina(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ut.debug("After sanitization",e)}},ina=e=>{let t=0,r=0;for(const a of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?t++:a==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},VQn=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Ose=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ana=/\s*%%.*\n/gm;class YQn extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const iW={},l6e=function(e,t){e=e.replace(VQn,"").replace(Ose,"").replace(ana,`
`);for(const[r,{detector:a}]of Object.entries(iW))if(a(e,t))return r;throw new YQn(`No diagram type detected matching given configuration for text: ${e}`)},jQn=(...e)=>{for(const{id:t,detector:r,loader:a}of e)WQn(t,r,a)},WQn=(e,t,r)=>{iW[e]?ut.error(`Detector with key ${e} already exists`):iW[e]={detector:t,loader:r},ut.debug(`Detector with key ${e} added${r?" with loader":""}`)},sna=e=>iW[e].loader,Zut=(e,t,{depth:r=2,clobber:a=!1}={})=>{const s={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>Zut(e,o,s)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=Zut(e[o],t[o],{depth:r-1,clobber:a})):(a||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},Tg=Zut,KQn="​",ona={curveBasis:j3,curveBasisClosed:IDn,curveBasisOpen:ODn,curveBumpX:l1t,curveBumpY:c1t,curveBundle:DDn,curveCardinalClosed:MDn,curveCardinalOpen:PDn,curveCardinal:h1t,curveCatmullRomClosed:$Dn,curveCatmullRomOpen:zDn,curveCatmullRom:g1t,curveLinear:Cg,curveLinearClosed:qDn,curveMonotoneX:m1t,curveMonotoneY:b1t,curveNatural:y1t,curveStep:v1t,curveStepAfter:w1t,curveStepBefore:_1t},lna=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,cna=function(e,t){const r=XQn(e,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const u=r.map(h=>h.args);qTe(u),a=Tg(a,[...u])}else a=r.args;if(!a)return;let s=l6e(e,t);const o="config";return a[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),a[s]=a[o],delete a[o]),a},XQn=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${lna.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),ut.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const s=[];for(;(a=Ose.exec(e))!==null;)if(a.index===Ose.lastIndex&&Ose.lastIndex++,a&&!t||t&&a[1]&&a[1].match(t)||t&&a[2]&&a[2].match(t)){const o=a[1]?a[1]:a[2],u=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:u})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(r){return ut.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},una=function(e){return e.replace(Ose,"")},hna=function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1};function fS(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return ona[r]??t}function dna(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?U9(r):r}const fna=(e,...t)=>{const r=e.split("."),a=r.length-1,s=r[a];let o=window;for(let u=0;u<a;u++)if(o=o[r[u]],!o){ut.error(`Function name: ${e} not found in window`);return}o[s](...t)};function QQn(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function pna(e){let t,r=0;e.forEach(s=>{r+=QQn(s,t),t=s});const a=r/2;return bbt(e,a)}function gna(e){return e.length===1?e[0]:pna(e)}const i5n=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},bbt=(e,t)=>{let r,a=t;for(const s of e){if(r){const o=QQn(s,r);if(o<a)a-=o;else{const u=a/o;if(u<=0)return r;if(u>=1)return{x:s.x,y:s.y};if(u>0&&u<1)return{x:i5n((1-u)*r.x+u*s.x,5),y:i5n((1-u)*r.y+u*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},mna=(e,t,r)=>{ut.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=bbt(t,25),o=e?10:5,u=Math.atan2(t[0].y-s.y,t[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(u)*o+(t[0].x+s.x)/2,h.y=-Math.cos(u)*o+(t[0].y+s.y)/2,h};function bna(e,t,r){const a=structuredClone(r);ut.info("our points",a),t!=="start_left"&&t!=="start_right"&&a.reverse();const s=25+e,o=bbt(a,s),u=10+e*.5,h=Math.atan2(a[0].y-o.y,a[0].x-o.x),f={x:0,y:0};return t==="start_left"?(f.x=Math.sin(h+Math.PI)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h+Math.PI)*u+(a[0].y+o.y)/2):t==="end_right"?(f.x=Math.sin(h-Math.PI)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h-Math.PI)*u+(a[0].y+o.y)/2-5):t==="end_left"?(f.x=Math.sin(h)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2-5):(f.x=Math.sin(h)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2),f}function Hw(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}let a5n=0;const ZQn=()=>(a5n++,"id-"+Math.random().toString(36).substr(2,12)+"-"+a5n);function yna(e){let t="";const r="0123456789abcdef",a=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*a));return t}const JQn=e=>yna(e.length),vna=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,text:""}},_na=function(e,t){const r=t.text.replace(mi.lineBreakRegex," "),[,a]=J$(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",a),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},eZn=_R((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),mi.lineBreakRegex.test(e)))return e;const a=e.split(" "),s=[];let o="";return a.forEach((u,h)=>{const f=dA(`${u} `,r),p=dA(o,r);if(f>t){const{hyphenatedStrings:_,remainingWord:w}=wna(u,t,"-",r);s.push(o,..._),o=w}else p+f>=t?(s.push(o),o=u):o=[o,u].filter(Boolean).join(" ");h+1===a.length&&s.push(o)}),s.filter(u=>u!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),wna=_R((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const s=[...e],o=[];let u="";return s.forEach((h,f)=>{const p=`${u}${h}`;if(dA(p,a)>=t){const b=f+1,_=s.length===b,w=`${p}${r}`;o.push(_?p:w),u=""}else u=p}),{hyphenatedStrings:o,remainingWord:u}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function Jut(e,t){return ybt(e,t).height}function dA(e,t){return ybt(e,t).width}const ybt=_R((e,t)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=J$(r),u=["sans-serif",a],h=e.split(mi.lineBreakRegex),f=[],p=gn("body");if(!p.remove)return{width:0,height:0,lineHeight:0};const m=p.append("svg");for(const _ of u){let w=0;const S={width:0,height:0,lineHeight:0};for(const C of h){const A=vna();A.text=C||KQn;const k=_na(m,A).style("font-size",o).style("font-weight",s).style("font-family",_),I=(k._groups||k)[0][0].getBBox();if(I.width===0&&I.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,I.width)),w=Math.round(I.height),S.height+=w,S.lineHeight=Math.round(Math.max(S.lineHeight,w))}f.push(S)}m.remove();const b=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class Ena{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let vEe;const xna=function(e){return vEe=vEe||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),vEe.innerHTML=e,unescape(vEe.textContent)};function tZn(e){return"str"in e}const Sna=(e,t,r,a)=>{var s;if(!a)return;const o=(s=e.node())==null?void 0:s.getBBox();o&&e.append("text").text(a).attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},J$=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function Qce(e,t){return XO({},e,t)}const il={assignWithDepth:Tg,wrapLabel:eZn,calculateTextHeight:Jut,calculateTextWidth:dA,calculateTextDimensions:ybt,cleanAndMerge:Qce,detectInit:cna,detectDirective:XQn,isSubstringInArray:hna,interpolateToCurve:fS,calcLabelPosition:gna,calcCardinalityPosition:mna,calcTerminalLabelPosition:bna,formatUrl:dna,getStylesFromArray:Hw,generateId:ZQn,random:JQn,runFunc:fna,entityDecode:xna,insertTitle:Sna,parseFontSize:J$,InitIDGenerator:Ena},Tna=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"ﬂ°°"+a+"¶ß":"ﬂ°"+a+"¶ß"}),t},ple=function(e){return e.replace(/ﬂ°°/g,"&#").replace(/ﬂ°/g,"&").replace(/¶ß/g,";")},s5n="10.9.3",aW=Object.freeze(fd);let U2=Tg({},aW),nZn,sW=[],Lse=Tg({},aW);const c6e=(e,t)=>{let r=Tg({},e),a={};for(const s of t)aZn(s),a=Tg(a,s);if(r=Tg(r,a),a.theme&&a.theme in V7){const s=Tg({},nZn),o=Tg(s.themeVariables||{},a.themeVariables);r.theme&&r.theme in V7&&(r.themeVariables=V7[r.theme].getThemeVariables(o))}return Lse=r,sZn(Lse),Lse},Cna=e=>(U2=Tg({},aW),U2=Tg(U2,e),e.theme&&V7[e.theme]&&(U2.themeVariables=V7[e.theme].getThemeVariables(e.themeVariables)),c6e(U2,sW),U2),Ana=e=>{nZn=Tg({},e)},kna=e=>(U2=Tg(U2,e),c6e(U2,sW),U2),rZn=()=>Tg({},U2),iZn=e=>(sZn(e),Tg(Lse,e),Lf()),Lf=()=>Tg({},Lse),aZn=e=>{e&&(["secure",...U2.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ut.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&aZn(e[t])}))},Rna=e=>{qTe(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),sW.push(e),c6e(U2,sW)},HTe=(e=U2)=>{sW=[],c6e(e,sW)},Ina={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},o5n={},Nna=e=>{o5n[e]||(ut.warn(Ina[e]),o5n[e]=!0)},sZn=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Nna("LAZY_LOAD_DEPRECATED")},oZn="c4",Ona=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Lna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>xua);return{diagram:t}},void 0);return{id:oZn,diagram:e}},Dna={id:oZn,detector:Ona,loader:Lna},Mna=Dna,lZn="flowchart",Pna=(e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Bna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Ppa);return{diagram:t}},void 0);return{id:lZn,diagram:e}},Fna={id:lZn,detector:Pna,loader:Bna},$na=Fna,cZn="flowchart-v2",Una=(e,t)=>{var r,a,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},zna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Fpa);return{diagram:t}},void 0);return{id:cZn,diagram:e}},Gna={id:cZn,detector:Una,loader:zna},qna=Gna,uZn="er",Hna=e=>/^\s*erDiagram/.test(e),Vna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>_ga);return{diagram:t}},void 0);return{id:uZn,diagram:e}},Yna={id:uZn,detector:Hna,loader:Vna},jna=Yna,hZn="gitGraph",Wna=e=>/^\s*gitGraph/.test(e),Kna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Qga);return{diagram:t}},void 0);return{id:hZn,diagram:e}},Xna={id:hZn,detector:Wna,loader:Kna},Qna=Xna,dZn="gantt",Zna=e=>/^\s*gantt/.test(e),Jna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zma);return{diagram:t}},void 0);return{id:dZn,diagram:e}},era={id:dZn,detector:Zna,loader:Jna},tra=era,fZn="info",nra=e=>/^\s*info/.test(e),rra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Xma);return{diagram:t}},void 0);return{id:fZn,diagram:e}},ira={id:fZn,detector:nra,loader:rra},pZn="pie",ara=e=>/^\s*pie/.test(e),sra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>pba);return{diagram:t}},void 0);return{id:pZn,diagram:e}},ora={id:pZn,detector:ara,loader:sra},gZn="quadrantChart",lra=e=>/^\s*quadrantChart/.test(e),cra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Mba);return{diagram:t}},void 0);return{id:gZn,diagram:e}},ura={id:gZn,detector:lra,loader:cra},hra=ura,mZn="xychart",dra=e=>/^\s*xychart-beta/.test(e),fra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uya);return{diagram:t}},void 0);return{id:mZn,diagram:e}},pra={id:mZn,detector:dra,loader:fra},gra=pra,bZn="requirement",mra=e=>/^\s*requirement(Diagram)?/.test(e),bra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Gya);return{diagram:t}},void 0);return{id:bZn,diagram:e}},yra={id:bZn,detector:mra,loader:bra},vra=yra,yZn="sequence",_ra=e=>/^\s*sequenceDiagram/.test(e),wra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Wva);return{diagram:t}},void 0);return{id:yZn,diagram:e}},Era={id:yZn,detector:_ra,loader:wra},xra=Era,vZn="class",Sra=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},Tra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>R2a);return{diagram:t}},void 0);return{id:vZn,diagram:e}},Cra={id:vZn,detector:Sra,loader:Tra},Ara=Cra,_Zn="classDiagram",kra=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},Rra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>B2a);return{diagram:t}},void 0);return{id:_Zn,diagram:e}},Ira={id:_Zn,detector:kra,loader:Rra},Nra=Ira,wZn="state",Ora=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},Lra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>A_a);return{diagram:t}},void 0);return{id:wZn,diagram:e}},Dra={id:wZn,detector:Ora,loader:Lra},Mra=Dra,EZn="stateDiagram",Pra=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},Bra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>J_a);return{diagram:t}},void 0);return{id:EZn,diagram:e}},Fra={id:EZn,detector:Pra,loader:Bra},$ra=Fra,xZn="journey",Ura=e=>/^\s*journey/.test(e),zra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Ewa);return{diagram:t}},void 0);return{id:xZn,diagram:e}},Gra={id:xZn,detector:Ura,loader:zra},qra=Gra,Hra=function(e,t){for(let r of t)e.attr(r[0],r[1])},Vra=function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},Db=function(e,t,r,a){const s=Vra(t,r,a);Hra(e,s)},oL=function(e,t,r,a){const s=t.node().getBBox(),o=s.width,u=s.height;ut.info(`SVG bounds: ${o}x${u}`,s);let h=0,f=0;ut.info(`Graph bounds: ${h}x${f}`,e),h=o+r*2,f=u+r*2,ut.info(`Calculated bounds: ${h}x${f}`),Db(t,f,h,a);const p=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",p)},nSe={},Yra=(e,t,r)=>{let a="";return e in nSe&&nSe[e]?a=nSe[e](r):ut.warn(`No theme found for ${e}`),` & {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
    fill: ${r.textColor}
  }

  /* Classes common for multiple diagrams */

  & .error-icon {
    fill: ${r.errorBkgColor};
  }
  & .error-text {
    fill: ${r.errorTextColor};
    stroke: ${r.errorTextColor};
  }

  & .edge-thickness-normal {
    stroke-width: 2px;
  }
  & .edge-thickness-thick {
    stroke-width: 3.5px
  }
  & .edge-pattern-solid {
    stroke-dasharray: 0;
  }

  & .edge-pattern-dashed{
    stroke-dasharray: 3;
  }
  .edge-pattern-dotted {
    stroke-dasharray: 2;
  }

  & .marker {
    fill: ${r.lineColor};
    stroke: ${r.lineColor};
  }
  & .marker.cross {
    stroke: ${r.lineColor};
  }

  & svg {
    font-family: ${r.fontFamily};
    font-size: ${r.fontSize};
  }

  ${a}

  ${t}
`},jra=(e,t)=>{t!==void 0&&(nSe[e]=t)},Wra=Yra;let vbt="",_bt="",wbt="";const Ebt=e=>J0(e,Lf()),Mb=()=>{vbt="",wbt="",_bt=""},Pb=e=>{vbt=Ebt(e).replace(/^\s+/g,"")},Ev=()=>vbt,xv=e=>{wbt=Ebt(e).replace(/\n\s+/g,`
`)},Sv=()=>wbt,Zw=e=>{_bt=Ebt(e)},Tv=()=>_bt,SZn=Object.freeze(Object.defineProperty({__proto__:null,clear:Mb,getAccDescription:Sv,getAccTitle:Ev,getDiagramTitle:Tv,setAccDescription:xv,setAccTitle:Pb,setDiagramTitle:Zw},Symbol.toStringTag,{value:"Module"})),Kra=ut,Xra=gbt,Qt=Lf,Qra=iZn,TZn=aW,Zra=e=>J0(e,Qt()),CZn=oL,Jra=()=>SZn,VTe={},YTe=(e,t,r)=>{var a;if(VTe[e])throw new Error(`Diagram ${e} already registered.`);VTe[e]=t,r&&WQn(e,r),jra(e,t.styles),(a=t.injectUtils)==null||a.call(t,Kra,Xra,Qt,Zra,CZn,Jra(),()=>{})},xbt=e=>{if(e in VTe)return VTe[e];throw new eia(e)};class eia extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const Zce=e=>{var t;const{securityLevel:r}=Qt();let a=gn("body");if(r==="sandbox"){const u=((t=gn(`#i${e}`).node())==null?void 0:t.contentDocument)??document;a=gn(u.body)}return a.select(`#${e}`)},tia=(e,t,r)=>{ut.debug(`rendering svg for syntax error
`);const a=Zce(t),s=a.append("g");a.attr("viewBox","0 0 2412 512"),Db(a,100,512,!0),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},AZn={draw:tia},nia=AZn,ria={db:{},renderer:AZn,parser:{parser:{yy:{}},parse:()=>{}}},iia=ria,kZn="flowchart-elk",aia=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},sia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zwa);return{diagram:t}},void 0);return{id:kZn,diagram:e}},oia={id:kZn,detector:aia,loader:sia},lia=oia,RZn="timeline",cia=e=>/^\s*timeline/.test(e),uia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uEa);return{diagram:t}},void 0);return{id:RZn,diagram:e}},hia={id:RZn,detector:cia,loader:uia},dia=hia,IZn="mindmap",fia=e=>/^\s*mindmap/.test(e),pia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>HEa);return{diagram:t}},void 0);return{id:IZn,diagram:e}},gia={id:IZn,detector:fia,loader:pia},mia=gia,NZn="sankey",bia=e=>/^\s*sankey-beta/.test(e),yia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>sxa);return{diagram:t}},void 0);return{id:NZn,diagram:e}},via={id:NZn,detector:bia,loader:yia},_ia=via,OZn="block",wia=e=>/^\s*block-beta/.test(e),Eia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Hxa);return{diagram:t}},void 0);return{id:OZn,diagram:e}},xia={id:OZn,detector:wia,loader:Eia},Sia=xia;let l5n=!1;const Sbt=()=>{l5n||(l5n=!0,YTe("error",iia,e=>e.toLowerCase().trim()==="error"),YTe("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},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 un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),jQn(Mna,Nra,Ara,jna,tra,ira,ora,vra,xra,lia,qna,$na,mia,dia,Qna,$ra,Mra,qra,hra,_ia,gra,Sia))};class LZn{constructor(t,r={}){this.text=t,this.metadata=r,this.type="graph",this.text=Tna(t),this.text+=`
`;const a=Lf();try{this.type=l6e(t,a)}catch(o){this.type="error",this.detectError=o}const s=xbt(this.type);ut.debug("Type "+this.type),this.db=s.db,this.renderer=s.renderer,this.parser=s.parser,this.parser.parser.yy=this.db,this.init=s.init,this.parse()}parse(){var t,r,a,s,o;if(this.detectError)throw this.detectError;(r=(t=this.db).clear)==null||r.call(t);const u=Lf();(a=this.init)==null||a.call(this,u),this.metadata.title&&((o=(s=this.db).setDiagramTitle)==null||o.call(s,this.metadata.title)),this.parser.parse(this.text)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}}const Tia=async(e,t={})=>{const r=l6e(e,Lf());try{xbt(r)}catch{const s=sna(r);if(!s)throw new YQn(`Diagram ${r} not found.`);const{id:o,diagram:u}=await s();YTe(o,u)}return new LZn(e,t)};let c5n=[];const Cia=()=>{c5n.forEach(e=>{e()}),c5n=[]},Aia="graphics-document document";function kia(e,t){e.attr("role",Aia),t!==""&&e.attr("aria-roledescription",t)}function Ria(e,t,r,a){if(e.insert!==void 0){if(r){const s=`chart-desc-${a}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${a}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}const Iia=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function DZn(e){return typeof e>"u"||e===null}function Nia(e){return typeof e=="object"&&e!==null}function Oia(e){return Array.isArray(e)?e:DZn(e)?[]:[e]}function Lia(e,t){var r,a,s,o;if(t)for(o=Object.keys(t),r=0,a=o.length;r<a;r+=1)s=o[r],e[s]=t[s];return e}function Dia(e,t){var r="",a;for(a=0;a<t;a+=1)r+=e;return r}function Mia(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pia=DZn,Bia=Nia,Fia=Oia,$ia=Dia,Uia=Mia,zia=Lia,Hy={isNothing:Pia,isObject:Bia,toArray:Fia,repeat:$ia,isNegativeZero:Uia,extend:zia};function MZn(e,t){var r="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`

`+e.mark.snippet),a+" "+r):a}function gle(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=MZn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}gle.prototype=Object.create(Error.prototype);gle.prototype.constructor=gle;gle.prototype.toString=function(t){return this.name+": "+MZn(this,t)};var _7=gle;function dat(e,t,r,a,s){var o="",u="",h=Math.floor(s/2)-1;return a-t>h&&(o=" ... ",t=a-h+o.length),r-a>h&&(u=" ...",r=a+h-u.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+u,pos:a-t+o.length}}function fat(e,t){return Hy.repeat(" ",t-e.length)+e}function Gia(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,a=[0],s=[],o,u=-1;o=r.exec(e.buffer);)s.push(o.index),a.push(o.index+o[0].length),e.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);var h="",f,p,m=Math.min(e.line+t.linesAfter,s.length).toString().length,b=t.maxLength-(t.indent+m+3);for(f=1;f<=t.linesBefore&&!(u-f<0);f++)p=dat(e.buffer,a[u-f],s[u-f],e.position-(a[u]-a[u-f]),b),h=Hy.repeat(" ",t.indent)+fat((e.line-f+1).toString(),m)+" | "+p.str+`
`+h;for(p=dat(e.buffer,a[u],s[u],e.position,b),h+=Hy.repeat(" ",t.indent)+fat((e.line+1).toString(),m)+" | "+p.str+`
`,h+=Hy.repeat("-",t.indent+m+3+p.pos)+`^
`,f=1;f<=t.linesAfter&&!(u+f>=s.length);f++)p=dat(e.buffer,a[u+f],s[u+f],e.position-(a[u]-a[u+f]),b),h+=Hy.repeat(" ",t.indent)+fat((e.line+f+1).toString(),m)+" | "+p.str+`
`;return h.replace(/\n$/,"")}var qia=Gia,Hia=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Via=["scalar","sequence","mapping"];function Yia(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){t[String(a)]=r})}),t}function jia(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Hia.indexOf(r)===-1)throw new _7('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Yia(t.styleAliases||null),Via.indexOf(this.kind)===-1)throw new _7('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ab=jia;function u5n(e,t){var r=[];return e[t].forEach(function(a){var s=r.length;r.forEach(function(o,u){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(s=u)}),r[s]=a}),r}function Wia(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(a);return e}function eht(e){return this.extend(e)}eht.prototype.extend=function(t){var r=[],a=[];if(t instanceof Ab)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new _7("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Ab))throw new _7("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new _7("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new _7("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(o){if(!(o instanceof Ab))throw new _7("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(eht.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=u5n(s,"implicit"),s.compiledExplicit=u5n(s,"explicit"),s.compiledTypeMap=Wia(s.compiledImplicit,s.compiledExplicit),s};var Kia=eht,Xia=new Ab("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Qia=new Ab("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Zia=new Ab("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Jia=new Kia({explicit:[Xia,Qia,Zia]});function eaa(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function taa(){return null}function naa(e){return e===null}var raa=new Ab("tag:yaml.org,2002:null",{kind:"scalar",resolve:eaa,construct:taa,predicate:naa,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function iaa(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function aaa(e){return e==="true"||e==="True"||e==="TRUE"}function saa(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var oaa=new Ab("tag:yaml.org,2002:bool",{kind:"scalar",resolve:iaa,construct:aaa,predicate:saa,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function laa(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function caa(e){return 48<=e&&e<=55}function uaa(e){return 48<=e&&e<=57}function haa(e){if(e===null)return!1;var t=e.length,r=0,a=!1,s;if(!t)return!1;if(s=e[r],(s==="-"||s==="+")&&(s=e[++r]),s==="0"){if(r+1===t)return!0;if(s=e[++r],s==="b"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!laa(e.charCodeAt(r)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!caa(e.charCodeAt(r)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;r<t;r++)if(s=e[r],s!=="_"){if(!uaa(e.charCodeAt(r)))return!1;a=!0}return!(!a||s==="_")}function daa(e){var t=e,r=1,a;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),a=t[0],(a==="-"||a==="+")&&(a==="-"&&(r=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function faa(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Hy.isNegativeZero(e)}var paa=new Ab("tag:yaml.org,2002:int",{kind:"scalar",resolve:haa,construct:daa,predicate:faa,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gaa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function maa(e){return!(e===null||!gaa.test(e)||e[e.length-1]==="_")}function baa(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var yaa=/^[-+]?[0-9]+e/;function vaa(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Hy.isNegativeZero(e))return"-0.0";return r=e.toString(10),yaa.test(r)?r.replace("e",".e"):r}function _aa(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Hy.isNegativeZero(e))}var waa=new Ab("tag:yaml.org,2002:float",{kind:"scalar",resolve:maa,construct:baa,predicate:_aa,represent:vaa,defaultStyle:"lowercase"}),PZn=Jia.extend({implicit:[raa,oaa,paa,waa]}),Eaa=PZn,BZn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),FZn=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 xaa(e){return e===null?!1:BZn.exec(e)!==null||FZn.exec(e)!==null}function Saa(e){var t,r,a,s,o,u,h,f=0,p=null,m,b,_;if(t=BZn.exec(e),t===null&&(t=FZn.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],a=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,a,s));if(o=+t[4],u=+t[5],h=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(m=+t[10],b=+(t[11]||0),p=(m*60+b)*6e4,t[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,s,o,u,h,f)),p&&_.setTime(_.getTime()-p),_}function Taa(e){return e.toISOString()}var Caa=new Ab("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xaa,construct:Saa,instanceOf:Date,represent:Taa});function Aaa(e){return e==="<<"||e===null}var kaa=new Ab("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Aaa}),Tbt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Raa(e){if(e===null)return!1;var t,r,a=0,s=e.length,o=Tbt;for(r=0;r<s;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;a+=6}return a%8===0}function Iaa(e){var t,r,a=e.replace(/[\r\n=]/g,""),s=a.length,o=Tbt,u=0,h=[];for(t=0;t<s;t++)t%4===0&&t&&(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)),u=u<<6|o.indexOf(a.charAt(t));return r=s%4*6,r===0?(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)):r===18?(h.push(u>>10&255),h.push(u>>2&255)):r===12&&h.push(u>>4&255),new Uint8Array(h)}function Naa(e){var t="",r=0,a,s,o=e.length,u=Tbt;for(a=0;a<o;a++)a%3===0&&a&&(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]),r=(r<<8)+e[a];return s=o%3,s===0?(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]):s===2?(t+=u[r>>10&63],t+=u[r>>4&63],t+=u[r<<2&63],t+=u[64]):s===1&&(t+=u[r>>2&63],t+=u[r<<4&63],t+=u[64],t+=u[64]),t}function Oaa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Laa=new Ab("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Raa,construct:Iaa,predicate:Oaa,represent:Naa}),Daa=Object.prototype.hasOwnProperty,Maa=Object.prototype.toString;function Paa(e){if(e===null)return!0;var t=[],r,a,s,o,u,h=e;for(r=0,a=h.length;r<a;r+=1){if(s=h[r],u=!1,Maa.call(s)!=="[object Object]")return!1;for(o in s)if(Daa.call(s,o))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function Baa(e){return e!==null?e:[]}var Faa=new Ab("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Paa,construct:Baa}),$aa=Object.prototype.toString;function Uaa(e){if(e===null)return!0;var t,r,a,s,o,u=e;for(o=new Array(u.length),t=0,r=u.length;t<r;t+=1){if(a=u[t],$aa.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;o[t]=[s[0],a[s[0]]]}return!0}function zaa(e){if(e===null)return[];var t,r,a,s,o,u=e;for(o=new Array(u.length),t=0,r=u.length;t<r;t+=1)a=u[t],s=Object.keys(a),o[t]=[s[0],a[s[0]]];return o}var Gaa=new Ab("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Uaa,construct:zaa}),qaa=Object.prototype.hasOwnProperty;function Haa(e){if(e===null)return!0;var t,r=e;for(t in r)if(qaa.call(r,t)&&r[t]!==null)return!1;return!0}function Vaa(e){return e!==null?e:{}}var Yaa=new Ab("tag:yaml.org,2002:set",{kind:"mapping",resolve:Haa,construct:Vaa}),jaa=Eaa.extend({implicit:[Caa,kaa],explicit:[Laa,Faa,Gaa,Yaa]}),v9=Object.prototype.hasOwnProperty,jTe=1,$Zn=2,UZn=3,WTe=4,pat=1,Waa=2,h5n=3,Kaa=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xaa=/[\x85\u2028\u2029]/,Qaa=/[,\[\]\{\}]/,zZn=/^(?:!|!!|![a-z\-]+!)$/i,GZn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function d5n(e){return Object.prototype.toString.call(e)}function fA(e){return e===10||e===13}function pF(e){return e===9||e===32}function K2(e){return e===9||e===32||e===10||e===13}function FV(e){return e===44||e===91||e===93||e===123||e===125}function Zaa(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Jaa(e){return e===120?2:e===117?4:e===85?8:0}function esa(e){return 48<=e&&e<=57?e-48:-1}function f5n(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function tsa(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var qZn=new Array(256),HZn=new Array(256);for(var iV=0;iV<256;iV++)qZn[iV]=f5n(iV)?1:0,HZn[iV]=f5n(iV);function nsa(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jaa,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function VZn(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=qia(r),new _7(t,r)}function Is(e,t){throw VZn(e,t)}function KTe(e,t){e.onWarning&&e.onWarning.call(null,VZn(e,t))}var p5n={YAML:function(t,r,a){var s,o,u;t.version!==null&&Is(t,"duplication of %YAML directive"),a.length!==1&&Is(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&Is(t,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),u=parseInt(s[2],10),o!==1&&Is(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&KTe(t,"unsupported YAML version of the document")},TAG:function(t,r,a){var s,o;a.length!==2&&Is(t,"TAG directive accepts exactly two arguments"),s=a[0],o=a[1],zZn.test(s)||Is(t,"ill-formed tag handle (first argument) of the TAG directive"),v9.call(t.tagMap,s)&&Is(t,'there is a previously declared suffix for "'+s+'" tag handle'),GZn.test(o)||Is(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Is(t,"tag prefix is malformed: "+o)}t.tagMap[s]=o}};function MO(e,t,r,a){var s,o,u,h;if(t<r){if(h=e.input.slice(t,r),a)for(s=0,o=h.length;s<o;s+=1)u=h.charCodeAt(s),u===9||32<=u&&u<=1114111||Is(e,"expected valid JSON character");else Kaa.test(h)&&Is(e,"the stream contains non-printable characters");e.result+=h}}function g5n(e,t,r,a){var s,o,u,h;for(Hy.isObject(r)||Is(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),u=0,h=s.length;u<h;u+=1)o=s[u],v9.call(t,o)||(t[o]=r[o],a[o]=!0)}function $V(e,t,r,a,s,o,u,h,f){var p,m;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),p=0,m=s.length;p<m;p+=1)Array.isArray(s[p])&&Is(e,"nested arrays are not supported inside keys"),typeof s=="object"&&d5n(s[p])==="[object Object]"&&(s[p]="[object Object]");if(typeof s=="object"&&d5n(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(p=0,m=o.length;p<m;p+=1)g5n(e,t,o[p],r);else g5n(e,t,o,r);else!e.json&&!v9.call(r,s)&&v9.call(t,s)&&(e.line=u||e.line,e.lineStart=h||e.lineStart,e.position=f||e.position,Is(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[s]=o,delete r[s];return t}function Cbt(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Is(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function R1(e,t,r){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;pF(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(fA(s))for(Cbt(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return r!==-1&&a!==0&&e.lineIndent<r&&KTe(e,"deficient indentation"),a}function u6e(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||K2(r)))}function Abt(e,t){t===1?e.result+=" ":t>1&&(e.result+=Hy.repeat(`
`,t-1))}function rsa(e,t,r){var a,s,o,u,h,f,p,m,b=e.kind,_=e.result,w;if(w=e.input.charCodeAt(e.position),K2(w)||FV(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(s=e.input.charCodeAt(e.position+1),K2(s)||r&&FV(s)))return!1;for(e.kind="scalar",e.result="",o=u=e.position,h=!1;w!==0;){if(w===58){if(s=e.input.charCodeAt(e.position+1),K2(s)||r&&FV(s))break}else if(w===35){if(a=e.input.charCodeAt(e.position-1),K2(a))break}else{if(e.position===e.lineStart&&u6e(e)||r&&FV(w))break;if(fA(w))if(f=e.line,p=e.lineStart,m=e.lineIndent,R1(e,!1,-1),e.lineIndent>=t){h=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=p,e.lineIndent=m;break}}h&&(MO(e,o,u,!1),Abt(e,e.line-f),o=u=e.position,h=!1),pF(w)||(u=e.position+1),w=e.input.charCodeAt(++e.position)}return MO(e,o,u,!1),e.result?!0:(e.kind=b,e.result=_,!1)}function isa(e,t){var r,a,s;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(MO(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,s=e.position;else return!0;else fA(r)?(MO(e,a,s,!0),Abt(e,R1(e,!1,t)),a=s=e.position):e.position===e.lineStart&&u6e(e)?Is(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Is(e,"unexpected end of the stream within a single quoted scalar")}function asa(e,t){var r,a,s,o,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return MO(e,r,e.position,!0),e.position++,!0;if(h===92){if(MO(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),fA(h))R1(e,!1,t);else if(h<256&&qZn[h])e.result+=HZn[h],e.position++;else if((u=Jaa(h))>0){for(s=u,o=0;s>0;s--)h=e.input.charCodeAt(++e.position),(u=Zaa(h))>=0?o=(o<<4)+u:Is(e,"expected hexadecimal character");e.result+=tsa(o),e.position++}else Is(e,"unknown escape sequence");r=a=e.position}else fA(h)?(MO(e,r,a,!0),Abt(e,R1(e,!1,t)),r=a=e.position):e.position===e.lineStart&&u6e(e)?Is(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}Is(e,"unexpected end of the stream within a double quoted scalar")}function ssa(e,t){var r=!0,a,s,o,u=e.tag,h,f=e.anchor,p,m,b,_,w,S=Object.create(null),C,A,k,I;if(I=e.input.charCodeAt(e.position),I===91)m=93,w=!1,h=[];else if(I===123)m=125,w=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),I=e.input.charCodeAt(++e.position);I!==0;){if(R1(e,!0,t),I=e.input.charCodeAt(e.position),I===m)return e.position++,e.tag=u,e.anchor=f,e.kind=w?"mapping":"sequence",e.result=h,!0;r?I===44&&Is(e,"expected the node content, but found ','"):Is(e,"missed comma between flow collection entries"),A=C=k=null,b=_=!1,I===63&&(p=e.input.charCodeAt(e.position+1),K2(p)&&(b=_=!0,e.position++,R1(e,!0,t))),a=e.line,s=e.lineStart,o=e.position,oW(e,t,jTe,!1,!0),A=e.tag,C=e.result,R1(e,!0,t),I=e.input.charCodeAt(e.position),(_||e.line===a)&&I===58&&(b=!0,I=e.input.charCodeAt(++e.position),R1(e,!0,t),oW(e,t,jTe,!1,!0),k=e.result),w?$V(e,h,S,A,C,k,a,s,o):b?h.push($V(e,null,S,A,C,k,a,s,o)):h.push(C),R1(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(r=!0,I=e.input.charCodeAt(++e.position)):r=!1}Is(e,"unexpected end of the stream within a flow collection")}function osa(e,t){var r,a,s=pat,o=!1,u=!1,h=t,f=0,p=!1,m,b;if(b=e.input.charCodeAt(e.position),b===124)a=!1;else if(b===62)a=!0;else return!1;for(e.kind="scalar",e.result="";b!==0;)if(b=e.input.charCodeAt(++e.position),b===43||b===45)pat===s?s=b===43?h5n:Waa:Is(e,"repeat of a chomping mode identifier");else if((m=esa(b))>=0)m===0?Is(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?Is(e,"repeat of an indentation width identifier"):(h=t+m-1,u=!0);else break;if(pF(b)){do b=e.input.charCodeAt(++e.position);while(pF(b));if(b===35)do b=e.input.charCodeAt(++e.position);while(!fA(b)&&b!==0)}for(;b!==0;){for(Cbt(e),e.lineIndent=0,b=e.input.charCodeAt(e.position);(!u||e.lineIndent<h)&&b===32;)e.lineIndent++,b=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>h&&(h=e.lineIndent),fA(b)){f++;continue}if(e.lineIndent<h){s===h5n?e.result+=Hy.repeat(`
`,o?1+f:f):s===pat&&o&&(e.result+=`
`);break}for(a?pF(b)?(p=!0,e.result+=Hy.repeat(`
`,o?1+f:f)):p?(p=!1,e.result+=Hy.repeat(`
`,f+1)):f===0?o&&(e.result+=" "):e.result+=Hy.repeat(`
`,f):e.result+=Hy.repeat(`
`,o?1+f:f),o=!0,u=!0,f=0,r=e.position;!fA(b)&&b!==0;)b=e.input.charCodeAt(++e.position);MO(e,r,e.position,!1)}return!0}function m5n(e,t){var r,a=e.tag,s=e.anchor,o=[],u,h=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Is(e,"tab characters must not be used in indentation")),!(f!==45||(u=e.input.charCodeAt(e.position+1),!K2(u))));){if(h=!0,e.position++,R1(e,!0,-1)&&e.lineIndent<=t){o.push(null),f=e.input.charCodeAt(e.position);continue}if(r=e.line,oW(e,t,UZn,!1,!0),o.push(e.result),R1(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&f!==0)Is(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return h?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=o,!0):!1}function lsa(e,t,r){var a,s,o,u,h,f,p=e.tag,m=e.anchor,b={},_=Object.create(null),w=null,S=null,C=null,A=!1,k=!1,I;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=b),I=e.input.charCodeAt(e.position);I!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Is(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),o=e.line,(I===63||I===58)&&K2(a))I===63?(A&&($V(e,b,_,w,S,null,u,h,f),w=S=C=null),k=!0,A=!0,s=!0):A?(A=!1,s=!0):Is(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,I=a;else{if(u=e.line,h=e.lineStart,f=e.position,!oW(e,r,$Zn,!1,!0))break;if(e.line===o){for(I=e.input.charCodeAt(e.position);pF(I);)I=e.input.charCodeAt(++e.position);if(I===58)I=e.input.charCodeAt(++e.position),K2(I)||Is(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&($V(e,b,_,w,S,null,u,h,f),w=S=C=null),k=!0,A=!1,s=!1,w=e.tag,S=e.result;else if(k)Is(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=p,e.anchor=m,!0}else if(k)Is(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=p,e.anchor=m,!0}if((e.line===o||e.lineIndent>t)&&(A&&(u=e.line,h=e.lineStart,f=e.position),oW(e,t,WTe,!0,s)&&(A?S=e.result:C=e.result),A||($V(e,b,_,w,S,C,u,h,f),w=S=C=null),R1(e,!0,-1),I=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&I!==0)Is(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&$V(e,b,_,w,S,null,u,h,f),k&&(e.tag=p,e.anchor=m,e.kind="mapping",e.result=b),k}function csa(e){var t,r=!1,a=!1,s,o,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&Is(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(r=!0,u=e.input.charCodeAt(++e.position)):u===33?(a=!0,s="!!",u=e.input.charCodeAt(++e.position)):s="!",t=e.position,r){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(o=e.input.slice(t,e.position),u=e.input.charCodeAt(++e.position)):Is(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!K2(u);)u===33&&(a?Is(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),zZn.test(s)||Is(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),u=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),Qaa.test(o)&&Is(e,"tag suffix cannot contain flow indicator characters")}o&&!GZn.test(o)&&Is(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Is(e,"tag name is malformed: "+o)}return r?e.tag=o:v9.call(e.tagMap,s)?e.tag=e.tagMap[s]+o:s==="!"?e.tag="!"+o:s==="!!"?e.tag="tag:yaml.org,2002:"+o:Is(e,'undeclared tag handle "'+s+'"'),!0}function usa(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Is(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!K2(r)&&!FV(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Is(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function hsa(e){var t,r,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!K2(a)&&!FV(a);)a=e.input.charCodeAt(++e.position);return e.position===t&&Is(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),v9.call(e.anchorMap,r)||Is(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],R1(e,!0,-1),!0}function oW(e,t,r,a,s){var o,u,h,f=1,p=!1,m=!1,b,_,w,S,C,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=u=h=WTe===r||UZn===r,a&&R1(e,!0,-1)&&(p=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),f===1)for(;csa(e)||usa(e);)R1(e,!0,-1)?(p=!0,h=o,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):h=!1;if(h&&(h=p||s),(f===1||WTe===r)&&(jTe===r||$Zn===r?C=t:C=t+1,A=e.position-e.lineStart,f===1?h&&(m5n(e,A)||lsa(e,A,C))||ssa(e,C)?m=!0:(u&&osa(e,C)||isa(e,C)||asa(e,C)?m=!0:hsa(e)?(m=!0,(e.tag!==null||e.anchor!==null)&&Is(e,"alias node should not have any properties")):rsa(e,C,jTe===r)&&(m=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(m=h&&m5n(e,A))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Is(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),b=0,_=e.implicitTypes.length;b<_;b+=1)if(S=e.implicitTypes[b],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(v9.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,w=e.typeMap.multi[e.kind||"fallback"],b=0,_=w.length;b<_;b+=1)if(e.tag.slice(0,w[b].tag.length)===w[b].tag){S=w[b];break}S||Is(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&Is(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Is(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||m}function dsa(e){var t=e.position,r,a,s,o=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(R1(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(o=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!K2(u);)u=e.input.charCodeAt(++e.position);for(a=e.input.slice(r,e.position),s=[],a.length<1&&Is(e,"directive name must not be less than one character in length");u!==0;){for(;pF(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!fA(u));break}if(fA(u))break;for(r=e.position;u!==0&&!K2(u);)u=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}u!==0&&Cbt(e),v9.call(p5n,a)?p5n[a](e,a,s):KTe(e,'unknown document directive "'+a+'"')}if(R1(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R1(e,!0,-1)):o&&Is(e,"directives end mark is expected"),oW(e,e.lineIndent-1,WTe,!1,!0),R1(e,!0,-1),e.checkLineBreaks&&Xaa.test(e.input.slice(t,e.position))&&KTe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&u6e(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R1(e,!0,-1));return}if(e.position<e.length-1)Is(e,"end of the stream or a document separator is expected");else return}function fsa(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new nsa(e,t),a=e.indexOf("\0");for(a!==-1&&(r.position=a,Is(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dsa(r);return r.documents}function psa(e,t){var r=fsa(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new _7("expected a single document in the stream, but found more")}}var gsa=psa,msa={load:gsa},bsa=PZn,ysa=msa.load;function vsa(e){const t=e.match(VQn);if(!t)return{text:e,metadata:{}};let r=ysa(t[1],{schema:bsa})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const a={};return r.displayMode&&(a.displayMode=r.displayMode.toString()),r.title&&(a.title=r.title.toString()),r.config&&(a.config=r.config),{text:e.slice(t[0].length),metadata:a}}const _sa=e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),wsa=e=>{const{text:t,metadata:r}=vsa(e),{displayMode:a,title:s,config:o={}}=r;return a&&(o.gantt||(o.gantt={}),o.gantt.displayMode=a),{title:s,config:o,text:t}},Esa=e=>{const t=il.detectInit(e)??{},r=il.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:a})=>{}):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:una(e),directive:t}};function YZn(e){const t=_sa(e),r=wsa(t),a=Esa(r.text),s=Qce(r.config,a.directive);return e=Iia(a.text),{code:e,title:r.title,config:s}}const xsa=5e4,Ssa="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Tsa="sandbox",Csa="loose",Asa="http://www.w3.org/2000/svg",ksa="http://www.w3.org/1999/xlink",Rsa="http://www.w3.org/1999/xhtml",Isa="100%",Nsa="100%",Osa="border:0;margin:0;",Lsa="margin:0",Dsa="allow-top-navigation-by-user-activation allow-popups",Msa='The "iframe" tag is not supported by your browser.',Psa=["foreignobject"],Bsa=["dominant-baseline"];function jZn(e){const t=YZn(e);return HTe(),Rna(t.config??{}),t}async function Fsa(e,t){Sbt(),e=jZn(e).code;try{await kbt(e)}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}return!0}const b5n=(e,t,r=[])=>`
.${e} ${t} { ${r.join(" !important; ")} !important; }`,$sa=(e,t={})=>{var r;let a="";if(e.themeCSS!==void 0&&(a+=`
${e.themeCSS}`),e.fontFamily!==void 0&&(a+=`
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(a+=`
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!uA(t)){const h=e.htmlLabels||((r=e.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const f in t){const p=t[f];uA(p.styles)||h.forEach(m=>{a+=b5n(p.id,m,p.styles)}),uA(p.textStyles)||(a+=b5n(p.id,"tspan",p.textStyles))}}return a},Usa=(e,t,r,a)=>{const s=$sa(e,r),o=Wra(t,s,e.themeVariables);return Gse(RAn(`${a}{${o}}`),NAn)},zsa=(e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=ple(a),a=a.replace(/<br>/g,"<br/>"),a},Gsa=(e="",t)=>{var r,a;const s=(a=(r=t==null?void 0:t.viewBox)==null?void 0:r.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":Nsa,o=btoa('<body style="'+Lsa+'">'+e+"</body>");return`<iframe style="width:${Isa};height:${s};${Osa}" src="data:text/html;base64,${o}" sandbox="${Dsa}">
  ${Msa}
</iframe>`},y5n=(e,t,r,a,s)=>{const o=e.append("div");o.attr("id",r),a&&o.attr("style",a);const u=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Asa);return s&&u.attr("xmlns:xlink",s),u.append("g"),e};function v5n(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qsa=(e,t,r,a)=>{var s,o,u;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(u=e.getElementById(a))==null||u.remove()},Hsa=async function(e,t,r){var a,s,o,u,h,f;Sbt();const p=jZn(t);t=p.code;const m=Lf();ut.debug(m),t.length>((m==null?void 0:m.maxTextSize)??xsa)&&(t=Ssa);const b="#"+e,_="i"+e,w="#"+_,S="d"+e,C="#"+S;let A=gn("body");const k=m.securityLevel===Tsa,I=m.securityLevel===Csa,N=m.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),k){const ee=v5n(gn(r),_);A=gn(ee.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=gn(r);y5n(A,e,S,`font-family: ${N}`,ksa)}else{if(qsa(document,e,S,_),k){const ee=v5n(gn("body"),_);A=gn(ee.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=gn("body");y5n(A,e,S)}let L,P;try{L=await kbt(t,{title:p.title})}catch(ee){L=new LZn("error"),P=ee}const M=A.select(C).node(),F=L.type,U=M.firstChild,$=U.firstChild,G=(s=(a=L.renderer).getClasses)==null?void 0:s.call(a,t,L),B=Usa(m,F,G,b),Z=document.createElement("style");Z.innerHTML=B,U.insertBefore(Z,$);try{await L.renderer.draw(t,e,s5n,L)}catch(ee){throw nia.draw(t,e,s5n),ee}const z=A.select(`${C} svg`),Y=(u=(o=L.db).getAccTitle)==null?void 0:u.call(o),W=(f=(h=L.db).getAccDescription)==null?void 0:f.call(h);Ysa(F,z,Y,W),A.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Rsa);let Q=A.select(C).node().innerHTML;if(ut.debug("config.arrowMarkerAbsolute",m.arrowMarkerAbsolute),Q=zsa(Q,k,Np(m.arrowMarkerAbsolute)),k){const ee=A.select(C+" svg").node();Q=Gsa(Q,ee)}else I||(Q=rW.sanitize(Q,{ADD_TAGS:Psa,ADD_ATTR:Bsa}));if(Cia(),P)throw P;const j=gn(k?w:C).node();return j&&"remove"in j&&j.remove(),{svg:Q,bindFunctions:L.db.bindFunctions}};function Vsa(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Ana(e),e!=null&&e.theme&&e.theme in V7?e.themeVariables=V7[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=V7.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?Cna(e):rZn();gbt(r.logLevel),Sbt()}const kbt=(e,t={})=>{const{code:r}=YZn(e);return Tia(r,t)};function Ysa(e,t,r,a){kia(t,e),Ria(t,r,a,t.attr("id"))}const l$=Object.freeze({render:Hsa,parse:Fsa,getDiagramFromText:kbt,initialize:Vsa,getConfig:Lf,setConfig:iZn,getSiteConfig:rZn,updateSiteConfig:kna,reset:()=>{HTe()},globalReset:()=>{HTe(aW)},defaultConfig:aW});gbt(Lf().logLevel);HTe(Lf());const jsa=async()=>{ut.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(iW).map(async([r,{detector:a,loader:s}])=>{if(s)try{xbt(r)}catch{try{const{diagram:u,id:h}=await s();YTe(h,u,a)}catch(u){throw ut.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete iW[r],u}}}))).filter(r=>r.status==="rejected");if(t.length>0){ut.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ut.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},Wsa=(e,t,r)=>{ut.warn(e),tZn(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},WZn=async function(e={querySelector:".mermaid"}){try{await Ksa(e)}catch(t){if(tZn(t)&&ut.error(t.str),EA.parseError&&EA.parseError(t),!e.suppressErrors)throw ut.error("Use the suppressErrors option to suppress these errors"),t}},Ksa=async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=l$.getConfig();ut.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ut.debug(`Found ${s.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(ut.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),l$.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const o=new il.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed);let u;const h=[];for(const f of Array.from(s)){ut.info("Rendering diagram: "+f.id);/*! Check if previously processed */if(f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const p=`mermaid-${o.next()}`;u=f.innerHTML,u=TAe(il.entityDecode(u)).trim().replace(/<br\s*\/?>/gi,"<br/>");const m=il.detectInit(u);m&&ut.debug("Detected early reinit: ",m);try{const{svg:b,bindFunctions:_}=await ZZn(p,u,f);f.innerHTML=b,e&&await e(p),_&&_(f)}catch(b){Wsa(b,h,EA.parseError)}}if(h.length>0)throw h[0]},KZn=function(e){l$.initialize(e)},Xsa=async function(e,t,r){ut.warn("mermaid.init is deprecated. Please use run instead."),e&&KZn(e);const a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await WZn(a)},Qsa=async(e,{lazyLoad:t=!0}={})=>{jQn(...e),t===!1&&await jsa()},XZn=function(){if(EA.startOnLoad){const{startOnLoad:e}=l$.getConfig();e&&EA.run().catch(t=>ut.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*!
 * Wait for document loaded before starting the execution
 */window.addEventListener("load",XZn,!1)}const Zsa=function(e){EA.parseError=e},XTe=[];let gat=!1;const QZn=async()=>{if(!gat){for(gat=!0;XTe.length>0;){const e=XTe.shift();if(e)try{await e()}catch(t){ut.error("Error executing queue",t)}}gat=!1}},Jsa=async(e,t)=>new Promise((r,a)=>{const s=()=>new Promise((o,u)=>{l$.parse(e,t).then(h=>{o(h),r(h)},h=>{var f;ut.error("Error parsing",h),(f=EA.parseError)==null||f.call(EA,h),u(h),a(h)})});XTe.push(s),QZn().catch(a)}),ZZn=(e,t,r)=>new Promise((a,s)=>{const o=()=>new Promise((u,h)=>{l$.render(e,t,r).then(f=>{u(f),a(f)},f=>{var p;ut.error("Error parsing",f),(p=EA.parseError)==null||p.call(EA,f),h(f),s(f)})});XTe.push(o),QZn().catch(s)}),EA={startOnLoad:!0,mermaidAPI:l$,parse:Jsa,render:ZZn,init:Xsa,run:WZn,registerExternalDiagrams:Qsa,initialize:KZn,parseError:void 0,contentLoaded:XZn,setParseErrorHandler:Zsa,detectType:l6e};(()=>{var a,s,o;(a=Path2D.prototype).roundRect??(a.roundRect=e),globalThis.CanvasRenderingContext2D&&((s=globalThis.CanvasRenderingContext2D.prototype).roundRect??(s.roundRect=e)),globalThis.OffscreenCanvasRenderingContext2D&&((o=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect??(o.roundRect=e));function e(u,h,f,p,m){if(![u,h,f,p].every(M=>Number.isFinite(M)))return;m=I(m);let b,_,w,S;if(m.length===4)b=L(m[0]),_=L(m[1]),w=L(m[2]),S=L(m[3]);else if(m.length===3)b=L(m[0]),_=L(m[1]),S=L(m[1]),w=L(m[2]);else if(m.length===2)b=L(m[0]),w=L(m[0]),_=L(m[1]),S=L(m[1]);else if(m.length===1)b=L(m[0]),_=L(m[0]),w=L(m[0]),S=L(m[0]);else throw new RangeError(`${t(this)} ${m.length} is not a valid size for radii sequence.`);const C=[b,_,w,S],A=C.find(({x:M,y:F})=>M<0||F<0);if((A==null?void 0:A.x)<0?A.x:A==null||A.y,C.some(({x:M,y:F})=>!Number.isFinite(M)||!Number.isFinite(F)))return;if(A)throw new RangeError(`${t(this)} Radius value ${A} is negative.`);P(C),f<0&&p<0?(this.moveTo(u-b.x,h),this.ellipse(u+f+_.x,h-_.y,_.x,_.y,0,-Math.PI*1.5,-Math.PI),this.ellipse(u+f+w.x,h+p+w.y,w.x,w.y,0,-Math.PI,-Math.PI/2),this.ellipse(u-S.x,h+p+S.y,S.x,S.y,0,-Math.PI/2,0),this.ellipse(u-b.x,h-b.y,b.x,b.y,0,0,-Math.PI/2)):f<0?(this.moveTo(u-b.x,h),this.ellipse(u+f+_.x,h+_.y,_.x,_.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(u+f+w.x,h+p-w.y,w.x,w.y,0,-Math.PI,-Math.PI*1.5,1),this.ellipse(u-S.x,h+p-S.y,S.x,S.y,0,Math.PI/2,0,1),this.ellipse(u-b.x,h+b.y,b.x,b.y,0,0,-Math.PI/2,1)):p<0?(this.moveTo(u+b.x,h),this.ellipse(u+f-_.x,h-_.y,_.x,_.y,0,Math.PI/2,0,1),this.ellipse(u+f-w.x,h+p+w.y,w.x,w.y,0,0,-Math.PI/2,1),this.ellipse(u+S.x,h+p+S.y,S.x,S.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(u+b.x,h-b.y,b.x,b.y,0,-Math.PI,-Math.PI*1.5,1)):(this.moveTo(u+b.x,h),this.ellipse(u+f-_.x,h+_.y,_.x,_.y,0,-Math.PI/2,0),this.ellipse(u+f-w.x,h+p-w.y,w.x,w.y,0,0,Math.PI/2),this.ellipse(u+S.x,h+p-S.y,S.x,S.y,0,Math.PI/2,Math.PI),this.ellipse(u+b.x,h+b.y,b.x,b.y,0,Math.PI,Math.PI*1.5)),this.closePath(),this.moveTo(u,h);function k(M){const{x:F,y:U,z:$,w:G}=M;return{x:F,y:U,z:$,w:G}}function I(M){const F=typeof M;return F==="undefined"||M===null?[0]:F==="function"?[NaN]:F==="object"?typeof M[Symbol.iterator]=="function"?[...M].map(U=>{const $=typeof U;return $==="undefined"||U===null?0:$==="function"?NaN:$==="object"?k(U):N(U)}):[k(M)]:[N(M)]}function N(M){return+M}function L(M){const F=N(M);return Number.isFinite(F)?{x:F,y:F}:Object(M)===M?{x:N(M.x??0),y:N(M.y??0)}:{x:NaN,y:NaN}}function P(M){const[F,U,$,G]=M,B=[Math.abs(f)/(F.x+U.x),Math.abs(p)/(U.y+$.y),Math.abs(f)/($.x+G.x),Math.abs(p)/(F.y+G.y)],Z=Math.min(...B);if(Z<=1)for(const z of M)z.x*=Z,z.y*=Z}}function t(u){return`Failed to execute 'roundRect' on '${r(u)}':`}function r(u){return Object(u)===u&&u instanceof Path2D?"Path2D":u instanceof(globalThis==null?void 0:globalThis.CanvasRenderingContext2D)?"CanvasRenderingContext2D":u instanceof(globalThis==null?void 0:globalThis.OffscreenCanvasRenderingContext2D)?"OffscreenCanvasRenderingContext2D":(u==null?void 0:u.constructor.name)||u}})();const sCa=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var na={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function eoa(e="soft"){switch(na.session.__counterEpoch=(na.session.__counterEpoch||0)+1,e){case"auto":{na.session.styleMap=new Map,na.session.nodeMap=new Map;return}case"soft":{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap,na.computedStyle=new WeakMap,na.baseStyle=new Map,na.defaultStyle=new Map,na.image=new Map,na.background=new Map,na.resource=new Map,na.font=new Set;return}default:{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap;return}}}function Rbt(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let r=t[2].trim();return r.startsWith("#")?null:r}function toa(e){if(!e||e==="none")return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(r,a)=>{let s=a.split(",").map(o=>o.trim());return s.length!==6?`matrix(${a})`:(s[4]="0",s[5]="0",`matrix(${s.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(r,a)=>{let s=a.split(",").map(o=>o.trim());return s.length!==16?`matrix3d(${a})`:(s[12]="0",s[13]="0",`matrix3d(${s.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function QTe(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function noa(e="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:r=12}={}){let a=new Map,s=0;function o(u,h,f){if(s>=r)return;let p=Date.now();(a.get(h)||0)>p||(a.set(h,p+t),s++,u==="warn"&&console&&console.warn?console.warn(`${e} ${f}`):console&&console.error&&console.error(`${e} ${f}`))}return{warnOnce(u,h){o("warn",u,h)},errorOnce(u,h){o("error",u,h)},reset(){a.clear(),s=0}}}var _5n=noa("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),mat=new Map,_Ee=new Map;function roa(e){return/^data:|^blob:|^about:blank$/i.test(e)}function ioa(e,t){try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",a=t.includes("{url}")?t.split("{url}")[0]:t,s=new URL(a||".",r),o=new URL(e,r);if(o.origin===s.origin)return!0;let u=o.searchParams;if(u&&(u.has("url")||u.has("target")))return!0}catch{}return!1}function aoa(e,t){if(!t||roa(e)||ioa(e,t))return!1;try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",a=new URL(e,r);return typeof location<"u"?a.origin!==location.origin:!0}catch{return!!t}}function soa(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",QTe(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${QTe(e)}`;let r=t.includes("?")?"&":"?";return`${t}${r}url=${encodeURIComponent(e)}`}function w5n(e){return new Promise((t,r)=>{let a=new FileReader;a.onload=()=>t(String(a.result||"")),a.onerror=()=>r(new Error("read_failed")),a.readAsDataURL(e)})}function ooa(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}async function pA(e,t={}){let r=t.as??"blob",a=t.timeout??3e3,s=t.useProxy||"",o=t.errorTTL??8e3,u=t.headers||{},h=!!t.silent;if(/^data:/i.test(e))try{if(r==="text")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if(r==="dataURL")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,A="",k=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],I=/;base64/i.test(A)?atob(k):decodeURIComponent(k),N=new Uint8Array([...I].map(P=>P.charCodeAt(0))),L=new Blob([N],{type:(A||"").split(";")[0]||""});return{ok:!0,data:L,status:200,url:e,fromCache:!1,mime:L.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let A=await fetch(e);if(!A.ok)return{ok:!1,data:null,status:A.status,url:e,fromCache:!1,reason:"http_error"};let k=await A.blob(),I=k.type||A.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await w5n(k),status:A.status,url:e,fromCache:!1,mime:I}:r==="text"?{ok:!0,data:await k.text(),status:A.status,url:e,fromCache:!1,mime:I}:{ok:!0,data:k,status:A.status,url:e,fromCache:!1,mime:I}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return r==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:r==="text"?"":new Blob([]),status:200,url:e,fromCache:!1};let f=ooa(e,{as:r,timeout:a,useProxy:s,errorTTL:o}),p=_Ee.get(f);if(p&&p.until>Date.now())return{...p.result,fromCache:!0};p&&_Ee.delete(f);let m=mat.get(f);if(m)return m;let b=aoa(e,s)?soa(e,s):e,_=t.credentials;if(!_)try{let A=typeof location<"u"&&location.href?location.href:"http://localhost/",k=new URL(e,A);_=typeof location<"u"&&k.origin===location.origin?"include":"omit"}catch{_="omit"}let w=new AbortController,S=setTimeout(()=>w.abort("timeout"),a),C=(async()=>{try{let A=await fetch(b,{signal:w.signal,credentials:_,headers:u});if(!A.ok){let N={ok:!1,data:null,status:A.status,url:b,fromCache:!1,reason:"http_error"};if(o>0&&_Ee.set(f,{until:Date.now()+o,result:N}),!h){let L=`${A.status} ${A.statusText||""}`.trim();_5n.warnOnce(`http:${A.status}:${r}:${new URL(e,(location==null?void 0:location.href)??"http://localhost/").origin}`,`HTTP error ${L} while fetching ${r} ${e}`)}return t.onError&&t.onError(N),N}if(r==="text")return{ok:!0,data:await A.text(),status:A.status,url:b,fromCache:!1};let k=await A.blob(),I=k.type||A.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await w5n(k),status:A.status,url:b,fromCache:!1,mime:I}:{ok:!0,data:k,status:A.status,url:b,fromCache:!1,mime:I}}catch(A){let k=A&&typeof A=="object"&&"name"in A&&A.name==="AbortError"?String(A.message||"").includes("timeout")?"timeout":"abort":"network",I={ok:!1,data:null,status:0,url:b,fromCache:!1,reason:k};if(!/^blob:/i.test(e)&&o>0&&_Ee.set(f,{until:Date.now()+o,result:I}),!h){let N=`${k}:${r}:${new URL(e,(location==null?void 0:location.href)??"http://localhost/").origin}`,L=k==="timeout"?`Timeout after ${a}ms. Consider increasing timeout or using a proxy for ${e}`:k==="abort"?`Request aborted while fetching ${r} ${e}`:`Network/CORS issue while fetching ${r} ${e}. A proxy may be required`;_5n.errorOnce(N,L)}return t.onError&&t.onError(I),I}finally{clearTimeout(S),mat.delete(f)}})();return mat.set(f,C),C}async function JZn(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||e.trim()==="none")return e;let r=Rbt(e);if(!r)return e;let a=QTe(r);if(na.background.has(a)){let s=na.background.get(a);return s?`url("${s}")`:"none"}try{let s=await pA(a,{as:"dataURL",useProxy:t.useProxy});return s.ok?(na.background.set(a,s.data),`url("${s.data}")`):(na.background.set(a,null),"none")}catch{return na.background.set(a,null),"none"}}var loa=new Set(["meta","script","noscript","title","link","template"]),Ibt=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]);function coa(e){if(e=String(e).toLowerCase(),Ibt.has(e)){let o={};return na.defaultStyle.set(e,o),o}if(na.defaultStyle.has(e))return na.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let r=document.createElement(e);r.style.all="initial",t.appendChild(r);let a=getComputedStyle(r),s={};for(let o of a){if(eJn(o))continue;let u=a.getPropertyValue(o);s[o]=u}return t.removeChild(r),na.defaultStyle.set(e,s),s}var uoa=/(?:^|-)(animation|transition)(?:-|$)/i,hoa=/^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,doa=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope"]);function eJn(e){let t=String(e).toLowerCase();return!!(doa.has(t)||hoa.test(t)||uoa.test(t))}function tht(e,t){if(t=String(t||"").toLowerCase(),Ibt.has(t))return"";let r=[],a=coa(t);for(let[s,o]of Object.entries(e)){if(eJn(s))continue;let u=a[s];o&&o!==u&&r.push(`${s}:${o}`)}return r.sort(),r.join(";")}function foa(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),typeof e.querySelectorAll=="function"&&e.querySelectorAll("*").forEach(r=>t.add(r.tagName.toLowerCase())),Array.from(t))}function poa(e){let t=new Map;for(let a of e){let s=na.defaultStyle.get(a);if(!s)continue;let o=Object.entries(s).map(([u,h])=>`${u}:${h};`).sort().join("");o&&(t.has(o)||t.set(o,[]),t.get(o).push(a))}let r="";for(let[a,s]of t.entries())r+=`${s.join(",")} { ${a} }
`;return r}function goa(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),r=new Map,a=1;for(let s of t)r.set(s,`c${a++}`);return r}function tJn(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let r=na.computedStyle.get(e);if(r||(r=new Map,na.computedStyle.set(e,r)),!r.has(t)){let a=window.getComputedStyle(e,t);r.set(t,a)}return r.get(t)}function E5n(e){let t={};for(let r of e)t[r]=e.getPropertyValue(r);return t}function nJn(e){let t=[],r=0,a=0;for(let s=0;s<e.length;s++){let o=e[s];o==="("&&r++,o===")"&&r--,o===","&&r===0&&(t.push(e.slice(a,s).trim()),a=s+1)}return t.push(e.slice(a).trim()),t}var moa=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],aV=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),nht=[];function boa(e){let t=Array.isArray(e)?e:[e];for(let r of t)r instanceof RegExp?nht.push(r):typeof r=="string"?nht.push(new RegExp(r,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",r)}function y7(e){let t=typeof e=="string"?e:"",r=[...moa,...nht];for(let a of r)if(a instanceof RegExp&&a.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}function yoa(e=""){let t=String(e).toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var x5n=new Map;function voa(e=""){let t=Object.create(null),r=String(e||""),a=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g,s;for(;s=a.exec(r);)t[s[1].toUpperCase()]=Number(s[2]);return t}async function _oa(e,t,r){let a=String(e||""),s=a.toLowerCase(),o=String(t||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(s)&&!/\bsymbols\b/.test(s))return{familyForMeasure:a,familyForCanvas:a};if(!/\bmaterial\s*symbols\b/.test(s))return{familyForMeasure:a,familyForCanvas:a};let u=r&&(r.FILL??r.fill),h="outlined";/\brounded\b/.test(o)||/\bround\b/.test(o)?h="rounded":/\bsharp\b/.test(o)?h="sharp":/\boutlined\b/.test(o)&&(h="outlined");let f=u===1,p=null;if(f&&(h==="outlined"&&aV.materialIconsFilled?p={url:aV.materialIconsFilled,alias:"snapdom-mi-filled"}:h==="rounded"&&aV.materialIconsRound?p={url:aV.materialIconsRound,alias:"snapdom-mi-round"}:h==="sharp"&&aV.materialIconsSharp&&(p={url:aV.materialIconsSharp,alias:"snapdom-mi-sharp"})),!p)return{familyForMeasure:a,familyForCanvas:a};if(!x5n.has(p.alias))try{let b=new FontFace(p.alias,`url(${p.url})`,{style:"normal",weight:"400"});document.fonts.add(b),await b.load(),x5n.set(p.alias,!0)}catch{return{familyForMeasure:a,familyForCanvas:a}}let m=`"${p.alias}"`;return{familyForMeasure:m,familyForCanvas:m}}async function woa(e="Material Icons",t=24){try{await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g,"")}"`),document.fonts.ready])}catch{}}function Eoa(e){var s,o;let t=((s=e.getPropertyValue("-webkit-text-fill-color"))==null?void 0:s.trim())||"",r=/^transparent$/i.test(t)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);if(t&&!r&&t.toLowerCase()!=="currentcolor")return t;let a=(o=e.color)==null?void 0:o.trim();return a&&a!=="inherit"?a:"#000"}async function xoa(e,{family:t="Material Icons",weight:r="normal",fontSize:a=32,color:s="#000",variation:o="",className:u=""}={}){let h=String(t||"").replace(/^['"]+|['"]+$/g,""),f=window.devicePixelRatio||1,p=voa(o),{familyForMeasure:m,familyForCanvas:b}=await _oa(h,u,p);await woa(b.replace(/^["']+|["']+$/g,""),a);let _=document.createElement("span");_.textContent=e,_.style.position="absolute",_.style.visibility="hidden",_.style.left="-99999px",_.style.whiteSpace="nowrap",_.style.fontFamily=m,_.style.fontWeight=String(r||"normal"),_.style.fontSize=`${a}px`,_.style.lineHeight="1",_.style.margin="0",_.style.padding="0",_.style.fontFeatureSettings="'liga' 1",_.style.fontVariantLigatures="normal",_.style.color=s,document.body.appendChild(_);let w=_.getBoundingClientRect(),S=Math.max(1,Math.ceil(w.width)),C=Math.max(1,Math.ceil(w.height));document.body.removeChild(_);let A=document.createElement("canvas");A.width=S*f,A.height=C*f;let k=A.getContext("2d");k.scale(f,f),k.font=`${r?`${r} `:""}${a}px ${b}`,k.textAlign="left",k.textBaseline="top",k.fillStyle=s;try{k.fontKerning="normal"}catch{}return k.fillText(e,0,0),{dataUrl:A.toDataURL(),width:S,height:C}}async function Soa(e,t){if(!(e instanceof Element))return 0;let r='.material-icons, [class*="material-symbols"]',a=Array.from(e.querySelectorAll(r)).filter(u=>u&&u.textContent&&u.textContent.trim());if(a.length===0)return 0;let s=t instanceof Element?Array.from(t.querySelectorAll(r)).filter(u=>u&&u.textContent&&u.textContent.trim()):[],o=0;for(let u=0;u<a.length;u++){let h=a[u],f=s[u]||null;try{let p=getComputedStyle(f||h),m=p.fontFamily||"Material Icons";if(!yoa(m))continue;let b=(f||h).textContent.trim();if(!b)continue;let _=parseInt(p.fontSize,10)||24,w=p.fontWeight&&p.fontWeight!=="normal"?p.fontWeight:"normal",S=Eoa(p),C=p.fontVariationSettings&&p.fontVariationSettings!=="normal"?p.fontVariationSettings:"",A=(f||h).className||"",{dataUrl:k,width:I,height:N}=await xoa(b,{family:m,weight:w,fontSize:_,color:S,variation:C,className:A});h.textContent="";let L=h.ownerDocument.createElement("img");L.src=k,L.alt=b,L.style.height=`${_}px`,L.style.width=`${Math.max(1,Math.round(I/N*_))}px`,L.style.objectFit="contain",L.style.verticalAlign=getComputedStyle(h).verticalAlign||"baseline",h.appendChild(L),o++}catch{}}return o}async function Toa(e,t,r,a=32,s="#000"){t=t.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let u=document.createElement("span");u.textContent=e,u.style.position="absolute",u.style.visibility="hidden",u.style.fontFamily=`"${t}"`,u.style.fontWeight=r||"normal",u.style.fontSize=`${a}px`,u.style.lineHeight="1",u.style.whiteSpace="nowrap",u.style.padding="0",u.style.margin="0",document.body.appendChild(u);let h=u.getBoundingClientRect(),f=Math.ceil(h.width),p=Math.ceil(h.height);document.body.removeChild(u);let m=document.createElement("canvas");m.width=Math.max(1,f*o),m.height=Math.max(1,p*o);let b=m.getContext("2d");return b.scale(o,o),b.font=r?`${r} ${a}px "${t}"`:`${a}px "${t}"`,b.textAlign="left",b.textBaseline="top",b.fillStyle=s,b.fillText(e,0,0),{dataUrl:m.toDataURL(),width:f,height:p}}var Coa=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function h6e(e){if(!e)return"";for(let t of e.split(",")){let r=t.trim().replace(/^['"]+|['"]+$/g,"");if(r&&!Coa.has(r.toLowerCase()))return r}return""}function rSe(e){let t=String(e??"400").trim().toLowerCase();if(t==="normal")return 400;if(t==="bold")return 700;let r=parseInt(t,10);return Number.isFinite(r)?Math.min(900,Math.max(100,r)):400}function iSe(e){let t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function Aoa(e){let t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}function koa(e){let t=String(e||"400").trim(),r=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(r){let s=rSe(r[1]),o=rSe(r[2]);return{min:Math.min(s,o),max:Math.max(s,o)}}let a=rSe(t);return{min:a,max:a}}function Roa(e){let t=String(e||"normal").trim().toLowerCase();return t==="italic"?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}function Ioa(e){let t=String(e||"100%").trim(),r=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(r){let o=parseFloat(r[1]),u=parseFloat(r[2]);return{min:Math.min(o,u),max:Math.max(o,u)}}let a=t.match(/(\d+(?:\.\d+)?)\s*%/),s=a?parseFloat(a[1]):100;return{min:s,max:s}}function Noa(e,t){if(!e)return!1;try{let r=new URL(e,location.href);if(r.origin===location.origin)return!0;let a=r.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com"].some(o=>a.endsWith(o)))return!0;let s=(r.pathname+r.search).toLowerCase();if(/\bfont(s)?\b/.test(s)||/\.woff2?(\b|$)/.test(s))return!0;for(let o of t){let u=o.toLowerCase().replace(/\s+/g,"+"),h=o.toLowerCase().replace(/\s+/g,"-");if(s.includes(u)||s.includes(h))return!0}return!1}catch{return!1}}function Ooa(e){var r;let t=new Set;for(let a of e||[]){let s=(r=String(a).split("__")[0])==null?void 0:r.trim();s&&t.add(s)}return t}function S5n(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(r,a,s)=>{let o=(s||"").trim();if(!o||/^data:|^blob:|^https?:|^file:|^about:/i.test(o))return r;let u=o;try{u=new URL(o,t||location.href).href}catch{}return`url("${u}")`})}var rht=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g,ZTe=4;async function Loa(e,t,r){if(!e)return e;let a=new Set;function s(h,f){try{return new URL(h,f||location.href).href}catch{return h}}async function o(h,f,p=0){if(p>ZTe)return console.warn(`[snapDOM] @import depth exceeded (${ZTe}) at ${f}`),h;let m="",b=0,_;for(;_=rht.exec(h);){m+=h.slice(b,_.index),b=rht.lastIndex;let w=(_[2]||_[4]||"").trim(),S=s(w,f);if(a.has(S)){console.warn(`[snapDOM] Skipping circular @import: ${S}`);continue}a.add(S);let C="";try{let A=await pA(S,{as:"text",useProxy:r,silent:!0});A.ok&&typeof A.data=="string"&&(C=A.data)}catch{}C?(C=S5n(C,S),C=await o(C,S,p+1),m+=`
/* inlined: ${S} */
${C}
`):m+=_[0]}return m+=h.slice(b),m}let u=S5n(e,t||location.href);return u=await o(u,t||location.href,0),u}var rJn=/url\((["']?)([^"')]+)\1\)/g,Doa=/@font-face[^{}]*\{[^}]*\}/g;function iJn(e){if(!e)return[];let t=[],r=e.split(",").map(a=>a.trim()).filter(Boolean);for(let a of r){let s=a.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!s)continue;let o=s[1],u=s[2],h=f=>{if(!f.includes("?"))return parseInt(f,16);let p=parseInt(f.replace(/\?/g,"0"),16),m=parseInt(f.replace(/\?/g,"F"),16);return[p,m]};if(u){let f=h(o),p=h(u),m=Array.isArray(f)?f[0]:f,b=Array.isArray(p)?p[1]:p;t.push([Math.min(m,b),Math.max(m,b)])}else{let f=h(o);Array.isArray(f)?t.push([f[0],f[1]]):t.push([f,f])}}return t}function aJn(e,t){if(!t.length||!e||e.size===0)return!0;for(let r of e)for(let[a,s]of t)if(r>=a&&r<=s)return!0;return!1}function Nbt(e,t){let r=[];if(!e)return r;for(let a of e.matchAll(rJn)){let s=(a[2]||"").trim();if(!(!s||s.startsWith("data:"))){if(!/^https?:/i.test(s))try{s=new URL(s,t||location.href).href}catch{}r.push(s)}}return r}async function sJn(e,t,r=""){var s,o,u,h,f;let a=e;for(let p of e.matchAll(rJn)){let m=Rbt(p[0]);if(!m)continue;let b=m;if(!b.startsWith("http")&&!b.startsWith("data:"))try{b=new URL(b,t||location.href).href}catch{}if(!y7(b)){if((s=na.resource)!=null&&s.has(b)){(o=na.font)==null||o.add(b),a=a.replace(p[0],`url(${na.resource.get(b)})`);continue}if(!((u=na.font)!=null&&u.has(b)))try{let _=await pA(b,{as:"dataURL",useProxy:r,silent:!0});if(_.ok&&typeof _.data=="string"){let w=_.data;(h=na.resource)==null||h.set(b,w),(f=na.font)==null||f.add(b),a=a.replace(p[0],`url(${w})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",b)}}}return a}function Moa(e){if(!e.length)return null;let t=(u,h)=>e.some(([f,p])=>!(p<u||f>h)),r=t(0,255)||t(305,305),a=t(256,591)||t(7680,7935),s=t(880,1023),o=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":o?"cyrillic":s?"greek":a?"latin-ext":r?"latin":null}function T5n(e={}){let t=new Set((e.families||[]).map(s=>String(s).toLowerCase())),r=new Set((e.domains||[]).map(s=>String(s).toLowerCase())),a=new Set((e.subsets||[]).map(s=>String(s).toLowerCase()));return(s,o)=>{if(t.size&&t.has(s.family.toLowerCase()))return!0;if(r.size)for(let u of s.srcUrls)try{if(r.has(new URL(u).host.toLowerCase()))return!0}catch{}if(a.size){let u=Moa(o);if(u&&a.has(u))return!0}return!1}}function Poa(e){var o,u,h,f,p,m;if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,r=new Set,a=[];for(let b of e.match(t)||[]){let _=((o=b.match(/font-family:\s*([^;]+);/i))==null?void 0:o[1])||"",w=h6e(_),S=(((u=b.match(/font-weight:\s*([^;]+);/i))==null?void 0:u[1])||"400").trim(),C=(((h=b.match(/font-style:\s*([^;]+);/i))==null?void 0:h[1])||"normal").trim(),A=(((f=b.match(/font-stretch:\s*([^;]+);/i))==null?void 0:f[1])||"100%").trim(),k=(((p=b.match(/unicode-range:\s*([^;]+);/i))==null?void 0:p[1])||"").trim(),I=(((m=b.match(/src\s*:\s*([^;}]+)[;}]/i))==null?void 0:m[1])||"").trim(),N=Nbt(I,location.href),L=N.length?N.map(M=>String(M).toLowerCase()).sort().join("|"):I.toLowerCase(),P=[String(w||"").toLowerCase(),S,C,A,k.toLowerCase(),L].join("|");r.has(P)||(r.add(P),a.push(b))}if(a.length===0)return e;let s=0;return e.replace(t,()=>a[s++]||"")}function Boa(e,t,r,a){let s=Array.from(e||[]).sort().join("|"),o=t?JSON.stringify({families:(t.families||[]).map(h=>String(h).toLowerCase()).sort(),domains:(t.domains||[]).map(h=>String(h).toLowerCase()).sort(),subsets:(t.subsets||[]).map(h=>String(h).toLowerCase()).sort()}):"",u=(r||[]).map(h=>`${(h.family||"").toLowerCase()}::${h.weight||"normal"}::${h.style||"normal"}::${h.src||""}`).sort().join("|");return`fonts-embed-css::req=${s}::ex=${o}::lf=${u}::px=${a||""}`}async function oJn(e,t,r,a){let s;try{s=e.cssRules||[]}catch{return}let o=(u,h)=>{try{return new URL(u,h||location.href).href}catch{return u}};for(let u of s){if(u.type===CSSRule.IMPORT_RULE&&u.styleSheet){let h=u.href?o(u.href,t):t;if(a.depth>=ZTe){console.warn(`[snapDOM] CSSOM import depth exceeded (${ZTe}) at ${h}`);continue}if(h&&a.visitedSheets.has(h)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${h}`);continue}h&&a.visitedSheets.add(h);let f={...a,depth:(a.depth||0)+1};await oJn(u.styleSheet,h,r,f);continue}if(u.type===CSSRule.FONT_FACE_RULE){let h=(u.style.getPropertyValue("font-family")||"").trim(),f=h6e(h);if(!f||y7(f))continue;let p=(u.style.getPropertyValue("font-weight")||"400").trim(),m=(u.style.getPropertyValue("font-style")||"normal").trim(),b=(u.style.getPropertyValue("font-stretch")||"100%").trim(),_=(u.style.getPropertyValue("src")||"").trim(),w=(u.style.getPropertyValue("unicode-range")||"").trim();if(!a.faceMatchesRequired(f,m,p,b))continue;let S=iJn(w);if(!aJn(a.usedCodepoints,S))continue;let C={family:f,weightSpec:p,styleSpec:m,stretchSpec:b,unicodeRange:w,srcRaw:_,srcUrls:Nbt(_,t||location.href),href:t||location.href};if(a.simpleExcluder&&a.simpleExcluder(C,S))continue;if(/url\(/i.test(_)){let A=await sJn(_,t||location.href,a.useProxy);await r(`@font-face{font-family:${f};src:${A};font-style:${m};font-weight:${p};font-stretch:${b};${w?`unicode-range:${w};`:""}}`)}else await r(`@font-face{font-family:${f};src:${_};font-style:${m};font-weight:${p};font-stretch:${b};${w?`unicode-range:${w};`:""}}`)}}}async function Foa({required:e,usedCodepoints:t,exclude:r=void 0,localFonts:a=[],useProxy:s=""}={}){var C,A,k,I,N,L,P,M,F,U,$,G,B,Z,z,Y,W,Q;e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let o=new Map;for(let V of e){let[j,ee,te,ne]=String(V).split("__");if(!j)continue;let se=o.get(j)||[];se.push({w:parseInt(ee,10),s:te,st:parseInt(ne,10)}),o.set(j,se)}function u(V,j,ee,te){if(!o.has(V))return!1;let ne=o.get(V),se=koa(ee),ie=Roa(j),ge=Ioa(te),ce=se.min!==se.max,be=se.min,ve=ye=>ie.kind==="normal"&&ye==="normal"||ie.kind!=="normal"&&(ye==="italic"||ye==="oblique"),De=!1;for(let ye of ne){let Ee=ce?ye.w>=se.min&&ye.w<=se.max:ye.w===be,he=ve(iSe(ye.s)),we=ye.st>=ge.min&&ye.st<=ge.max;if(Ee&&he&&we){De=!0;break}}if(De)return!0;if(!ce)for(let ye of ne){let Ee=ve(iSe(ye.s)),he=ye.st>=ge.min&&ye.st<=ge.max;if(Math.abs(be-ye.w)<=300&&Ee&&he)return!0}if(!ce&&ie.kind==="normal"&&ne.some(ye=>iSe(ye.s)!=="normal"))for(let ye of ne){let Ee=Math.abs(be-ye.w)<=300,he=ye.st>=ge.min&&ye.st<=ge.max;if(Ee&&he)return!0}return!1}let h=T5n(r),f=Boa(e,r,a,s);if((C=na.resource)!=null&&C.has(f))return na.resource.get(f);let p=Ooa(e),m=[],b=rht;for(let V of document.querySelectorAll("style")){let j=V.textContent||"";for(let ee of j.matchAll(b)){let te=(ee[2]||ee[4]||"").trim();!te||y7(te)||document.querySelector(`link[rel="stylesheet"][href="${te}"]`)||m.push(te)}}m.length&&await Promise.all(m.map(V=>new Promise(j=>{if(document.querySelector(`link[rel="stylesheet"][href="${V}"]`))return j(null);let ee=document.createElement("link");ee.rel="stylesheet",ee.href=V,ee.setAttribute("data-snapdom","injected-import"),ee.onload=()=>j(ee),ee.onerror=()=>j(null),document.head.appendChild(ee)})));let _="",w=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(V=>!!V.href);for(let V of w)try{if(y7(V.href))continue;let j="",ee=!1;try{ee=new URL(V.href,location.href).origin===location.origin}catch{}if(!ee&&!Noa(V.href,p))continue;if(ee){let ne=Array.from(document.styleSheets).find(se=>se.href===V.href);if(ne)try{let se=ne.cssRules||[];j=Array.from(se).map(ie=>ie.cssText).join("")}catch{}}if(!j&&(j=(await pA(V.href,{as:"text",useProxy:s})).data,y7(V.href)))continue;j=await Loa(j,V.href,s);let te="";for(let ne of j.match(Doa)||[]){let se=(((A=ne.match(/font-family:\s*([^;]+);/i))==null?void 0:A[1])||"").trim(),ie=h6e(se);if(!ie||y7(ie))continue;let ge=(((k=ne.match(/font-weight:\s*([^;]+);/i))==null?void 0:k[1])||"400").trim(),ce=(((I=ne.match(/font-style:\s*([^;]+);/i))==null?void 0:I[1])||"normal").trim(),be=(((N=ne.match(/font-stretch:\s*([^;]+);/i))==null?void 0:N[1])||"100%").trim(),ve=(((L=ne.match(/unicode-range:\s*([^;]+);/i))==null?void 0:L[1])||"").trim(),De=(((P=ne.match(/src\s*:\s*([^;}]+)[;}]/i))==null?void 0:P[1])||"").trim(),ye=Nbt(De,V.href);if(!u(ie,ce,ge,be))continue;let Ee=iJn(ve);if(!aJn(t,Ee))continue;let he={family:ie,weightSpec:ge,styleSpec:ce,stretchSpec:be,unicodeRange:ve,srcRaw:De,srcUrls:ye,href:V.href};if(r&&h(he,Ee))continue;let we=/url\(/i.test(De)?await sJn(ne,V.href,s):ne;te+=we}te.trim()&&(_+=te)}catch{console.warn("[snapDOM] Failed to process stylesheet:",V.href)}let S={requiredIndex:o,usedCodepoints:t,faceMatchesRequired:u,simpleExcluder:r?T5n(r):null,useProxy:s,visitedSheets:new Set,depth:0};for(let V of document.styleSheets)if(!(V.href&&w.some(j=>j.href===V.href)))try{let j=V.href||location.href;j&&S.visitedSheets.add(j),await oJn(V,j,async ee=>{_+=ee},S)}catch{}try{for(let V of document.fonts||[]){if(!V||!V.family||V.status!=="loaded"||!V._snapdomSrc)continue;let j=String(V.family).replace(/^['"]+|['"]+$/g,"");if(y7(j)||!o.has(j)||r!=null&&r.families&&r.families.some(te=>String(te).toLowerCase()===j.toLowerCase()))continue;let ee=V._snapdomSrc;if(!String(ee).startsWith("data:")){if((M=na.resource)!=null&&M.has(V._snapdomSrc))ee=na.resource.get(V._snapdomSrc),(F=na.font)==null||F.add(V._snapdomSrc);else if(!((U=na.font)!=null&&U.has(V._snapdomSrc)))try{let te=await pA(V._snapdomSrc,{as:"dataURL",useProxy:s,silent:!0});if(te.ok&&typeof te.data=="string")ee=te.data,($=na.resource)==null||$.set(V._snapdomSrc,ee),(G=na.font)==null||G.add(V._snapdomSrc);else continue}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",V._snapdomSrc);continue}}_+=`@font-face{font-family:'${j}';src:url(${ee});font-style:${V.style||"normal"};font-weight:${V.weight||"normal"};}`}}catch{}for(let V of a){if(!V||typeof V!="object")continue;let j=String(V.family||"").replace(/^['"]+|['"]+$/g,"");if(!j||y7(j)||!o.has(j)||r!=null&&r.families&&r.families.some(ge=>String(ge).toLowerCase()===j.toLowerCase()))continue;let ee=V.weight!=null?String(V.weight):"normal",te=V.style!=null?String(V.style):"normal",ne=V.stretchPct!=null?`${V.stretchPct}%`:"100%",se=String(V.src||""),ie=se;if(!ie.startsWith("data:")){if((B=na.resource)!=null&&B.has(se))ie=na.resource.get(se),(Z=na.font)==null||Z.add(se);else if(!((z=na.font)!=null&&z.has(se)))try{let ge=await pA(se,{as:"dataURL",useProxy:s,silent:!0});if(ge.ok&&typeof ge.data=="string")ie=ge.data,(Y=na.resource)==null||Y.set(se,ie),(W=na.font)==null||W.add(se);else continue}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",se);continue}}_+=`@font-face{font-family:'${j}';src:url(${ie});font-style:${te};font-weight:${ee};font-stretch:${ne};}`}return _&&(_=Poa(_),(Q=na.resource)==null||Q.set(f,_)),_}function $oa(e){let t=new Set;if(!e)return t;let r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),a=u=>{let h=h6e(u.fontFamily);if(!h)return;let f=(p,m,b)=>`${h}__${rSe(p)}__${iSe(m)}__${Aoa(b)}`;t.add(f(u.fontWeight,u.fontStyle,u.fontStretch))};a(getComputedStyle(e));let s=getComputedStyle(e,"::before");s&&s.content&&s.content!=="none"&&a(s);let o=getComputedStyle(e,"::after");for(o&&o.content&&o.content!=="none"&&a(o);r.nextNode();){let u=r.currentNode,h=getComputedStyle(u);a(h);let f=getComputedStyle(u,"::before");f&&f.content&&f.content!=="none"&&a(f);let p=getComputedStyle(u,"::after");p&&p.content&&p.content!=="none"&&a(p)}return t}function Uoa(e){var s;let t=new Set,r=o=>{if(o)for(let u of o)t.add(u.codePointAt(0))},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.TEXT_NODE)r(o.nodeValue||"");else if(o.nodeType===Node.ELEMENT_NODE){let u=o;for(let h of["::before","::after"]){let f=(s=getComputedStyle(u,h))==null?void 0:s.getPropertyValue("content");if(!(!f||f==="none"))if(/^"/.test(f)||/^'/.test(f))r(f.slice(1,-1));else{let p=f.match(/\\[0-9A-Fa-f]{1,6}/g);if(p)for(let m of p)try{t.add(parseInt(m.slice(1),16))}catch{}}}}}return t}async function zoa(e,t=2){try{await document.fonts.ready}catch{}let r=Array.from(e||[]).filter(Boolean);if(r.length===0)return;let a=()=>{let s=document.createElement("div");s.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let o of r){let u=document.createElement("span");u.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",u.style.fontFamily=`"${o}"`,u.style.fontWeight="700",u.style.fontStyle="italic",u.style.fontSize="32px",u.style.lineHeight="1",u.style.whiteSpace="nowrap",u.style.margin="0",u.style.padding="0",s.appendChild(u)}document.body.appendChild(s),s.offsetWidth,document.body.removeChild(s)};for(let s=0;s<Math.max(1,t);s++)a(),await new Promise(o=>requestAnimationFrame(()=>requestAnimationFrame(o)))}async function Goa(e,t,r,a={}){let s=[[e,t]],o=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],u=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],h=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],f=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;s.length;){let[p,m]=s.shift(),b=r.get(p)||tJn(p);r.has(p)||r.set(p,b);let _=(()=>{let C=b.getPropertyValue("border-image"),A=b.getPropertyValue("border-image-source");return C&&C!=="none"||A&&A!=="none"})();for(let C of h){let A=b.getPropertyValue(C);A&&m.style.setProperty(C,A)}for(let C of o){let A=b.getPropertyValue(C);if(!A||A==="none")continue;let k=nJn(A),I=await Promise.all(k.map(N=>JZn(N,a)));I.some(N=>N&&N!=="none"&&!/^url\(undefined/.test(N))&&m.style.setProperty(C,I.join(", "))}for(let C of u){let A=b.getPropertyValue(C);!A||A==="initial"||m.style.setProperty(C,A)}if(_)for(let C of f){let A=b.getPropertyValue(C);!A||A==="initial"||m.style.setProperty(C,A)}let w=Array.from(p.children),S=Array.from(m.children).filter(C=>!(C.dataset&&C.dataset.snapdomPseudo));for(let C=0;C<Math.min(w.length,S.length);C++)s.push([w[C],S[C]])}}function _V(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function cF(){if(typeof navigator>"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),r=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),a=/applewebkit/i.test(e),s=/mobile/i.test(e),o=!/safari/i.test(e),u=a&&s&&o,h=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),f=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),p=/ipad|iphone|ipod/.test(t)&&a;return r||u||h||f||p}var mle=[];function lJn(e){if(!e)return null;if(Array.isArray(e)){let[t,r]=e;return typeof t=="function"?t(r):t}if(typeof e=="object"&&"plugin"in e){let{plugin:t,options:r}=e;return typeof t=="function"?t(r):t}return typeof e=="function"?e():e}function qoa(...e){let t=e.flat();for(let r of t){let a=lJn(r);a&&(mle.some(s=>s&&s.name&&a.name&&s.name===a.name)||mle.push(a))}}function cJn(e){return(e&&Array.isArray(e.plugins)?e.plugins:mle)||mle}async function iO(e,t,r){let a=r,s=cJn(t);for(let o of s){let u=o&&typeof o[e]=="function"?o[e]:null;if(!u)continue;let h=await u(t,a);typeof h<"u"&&(a=h)}return a}async function Hoa(e,t,r){let a=[],s=cJn(t);for(let o of s){let u=o&&typeof o[e]=="function"?o[e]:null;if(!u)continue;let h=await u(t,r);typeof h<"u"&&a.push(h)}return a}function Voa(e){let t=[];if(Array.isArray(e))for(let r of e){let a=lJn(r);if(!a||!a.name)continue;let s=t.findIndex(o=>o&&o.name===a.name);s>=0&&t.splice(s,1),t.push(a)}for(let r of mle)r&&r.name&&!t.some(a=>a.name===r.name)&&t.push(r);return Object.freeze(t)}function Yoa(e,t,r=!1){return!e||e.plugins&&!r||(e.plugins=Voa(t)),e}var C5n=new WeakMap,iht=new Map,aht=0;function Bae(){aht++}var A5n=!1;function joa(e=document.documentElement){var t,r;if(!A5n){A5n=!0;try{new MutationObserver(()=>Bae()).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>Bae()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let a=document.fonts;a&&((t=a.addEventListener)==null||t.call(a,"loadingdone",Bae),(r=a.ready)==null||r.then(()=>Bae()).catch(()=>{}))}catch{}}}function Woa(e,t={}){let r={},a=e.getPropertyValue("visibility");for(let o=0;o<e.length;o++){let u=e[o],h=e.getPropertyValue(u);(u==="background-image"||u==="content")&&h.includes("url(")&&!h.includes("data:")&&(h="none"),r[u]=h}let s=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let o of s)if(!r[o])try{let u=e.getPropertyValue(o);u&&(r[o]=u)}catch{}if(t.embedFonts){let o=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let u of o)if(!r[u])try{let h=e.getPropertyValue(u);h&&(r[u]=h)}catch{}}return a==="hidden"&&(r.opacity="0"),r}var k5n=new WeakMap;function Koa(e){let t=k5n.get(e);return t||(t=Object.entries(e).sort((r,a)=>r[0]<a[0]?-1:r[0]>a[0]?1:0).map(([r,a])=>`${r}:${a}`).join(";"),k5n.set(e,t),t)}function Xoa(e,t=null,r={}){let a=C5n.get(e);if(a&&a.epoch===aht)return a.snapshot;let s=t||getComputedStyle(e),o=Woa(s,r);return nla(e,s,o),C5n.set(e,{epoch:aht,snapshot:o}),o}function Qoa(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:iht,defaultStyle:na.defaultStyle,baseStyle:na.baseStyle,image:na.image,resource:na.resource,background:na.background,font:na.font},options:t||{}}:{session:na.session,persist:{snapshotKeyCache:iht,defaultStyle:na.defaultStyle,baseStyle:na.baseStyle,image:na.image,resource:na.resource,background:na.background,font:na.font},options:e||t||{}}}async function wV(e,t,r,a){var _,w,S;if(e.tagName==="STYLE")return;let s=Qoa(r,a),o=s.options&&s.options.cache||"auto";if(o!=="disabled"&&joa(document.documentElement),o==="disabled"&&!s.session.__bumpedForDisabled&&(Bae(),iht.clear(),s.session.__bumpedForDisabled=!0),Ibt.has((_=e.tagName)==null?void 0:_.toLowerCase())){let C=(w=e.getAttribute)==null?void 0:w.call(e,"style");C&&t.setAttribute("style",C)}let{session:u,persist:h}=s;u.styleCache.has(e)||u.styleCache.set(e,getComputedStyle(e));let f=u.styleCache.get(e),p=Xoa(e,f,s.options),m=Koa(p),b=h.snapshotKeyCache.get(m);if(!b){let C=((S=e.tagName)==null?void 0:S.toLowerCase())||"div";b=tht(p,C),h.snapshotKeyCache.set(m,b)}u.styleMap.set(t,b)}function Zoa(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Joa(e){return e.backgroundImage&&e.backgroundImage!=="none"||e.backgroundColor&&e.backgroundColor!=="rgba(0, 0, 0, 0)"&&e.backgroundColor!=="transparent"||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0?!0:(e.overflowBlock||e.overflowY||"visible")!=="visible"}function ela(e){let t=e.parentElement;if(!t)return!1;let r=getComputedStyle(t).display||"";return r.includes("flex")||r.includes("grid")}function tla(e,t){if(e.textContent&&/\S/.test(e.textContent))return!0;let r=e.firstElementChild,a=e.lastElementChild;if(r&&r.tagName==="BR"||a&&a.tagName==="BR")return!0;let s=e.scrollHeight;if(s===0)return!1;let o=parseFloat(t.paddingTop)||0,u=parseFloat(t.paddingBottom)||0;return s>o+u}function nla(e,t,r){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let a=e.tagName&&e.tagName.toLowerCase();if(!a||a!=="div"&&a!=="section"&&a!=="article"&&a!=="main"&&a!=="aside"&&a!=="header"&&a!=="footer"&&a!=="nav"&&a!=="ol"&&a!=="ul"&&a!=="li")return;let s=t.display||"";if(s.includes("flex")||s.includes("grid")||Zoa(e))return;let o=t.position;if(o==="absolute"||o==="fixed"||o==="sticky"||t.transform!=="none"||Joa(t)||ela(e))return;let u=t.overflowX||t.overflow||"visible",h=t.overflowY||t.overflow||"visible";if(u!=="visible"||h!=="visible")return;let f=t.clip;f&&f!=="auto"&&f!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||tla(e,t)&&(delete r.height,delete r["block-size"])}var uJn=["fill","stroke","color","background-color","stop-color"],R5n=new Map;function rla(e,t){let r=t+"::"+e.toLowerCase(),a=R5n.get(r);if(a)return a;let s=document,o=t==="http://www.w3.org/2000/svg"?s.createElementNS(t,e):s.createElement(e),u=s.createElement("div");u.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",u.appendChild(o),s.documentElement.appendChild(u);let h=getComputedStyle(o),f={};for(let p of uJn)f[p]=h.getPropertyValue(p)||"";return u.remove(),R5n.set(r,f),f}function ila(e,t){var o,u,h;if(!(e instanceof Element)||!(t instanceof Element))return;let r=(o=e.getAttribute)==null?void 0:o.call(e,"style"),a=!!(r&&r.includes("var("));if(!a&&((u=e.attributes)!=null&&u.length)){let f=e.attributes;for(let p=0;p<f.length;p++){let m=f[p];if(m&&typeof m.value=="string"&&m.value.includes("var(")){a=!0;break}}}let s=null;if(a)try{s=getComputedStyle(e)}catch{}if(a){let f=e.style;if(f&&f.length)for(let p=0;p<f.length;p++){let m=f[p],b=f.getPropertyValue(m);if(!b||!b.includes("var("))continue;let _=s&&s.getPropertyValue(m);if(_)try{t.style.setProperty(m,_.trim(),f.getPropertyPriority(m))}catch{}}}if(a&&((h=e.attributes)!=null&&h.length)){let f=e.attributes;for(let p=0;p<f.length;p++){let m=f[p];if(!m||typeof m.value!="string"||!m.value.includes("var("))continue;let b=m.name,_=s&&s.getPropertyValue(b);if(_)try{t.style.setProperty(b,_.trim())}catch{}}}if(!a){if(!s)try{s=getComputedStyle(e)}catch{s=null}if(!s)return;let f=e.namespaceURI||"html",p=rla(e.tagName,f);for(let m of uJn){let b=s.getPropertyValue(m)||"",_=p[m]||"";if(b&&b!==_)try{t.style.setProperty(m,b.trim())}catch{}}}}function bat(e,t,r){return Promise.all(e.map(a=>new Promise(s=>{function o(){_V(u=>{!(u&&typeof u.timeRemaining=="function")||u.timeRemaining()>0?t(a,s):o()},{fast:r})}o()})))}function ala(e){return e=e.trim(),!e||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e)?e:`${e}:not([data-sd-slotted])`}function sla(e,t,r=!0){return e.split(",").map(a=>a.trim()).filter(Boolean).map(a=>{if(a.startsWith(":where(")||a.startsWith("@"))return a;let s=r?ala(a):a;return`:where(${t} ${s})`}).join(", ")}function ola(e,t){return e?(e=e.replace(/:host\(([^)]+)\)/g,(r,a)=>`:where(${t}:is(${a.trim()}))`),e=e.replace(/:host\b/g,`:where(${t})`),e=e.replace(/:host-context\(([^)]+)\)/g,(r,a)=>`:where(:where(${a.trim()}) ${t})`),e=e.replace(/::slotted\(([^)]+)\)/g,(r,a)=>`:where(${t} ${a.trim()})`),e=e.replace(/(^|})(\s*)([^@}{]+){/g,(r,a,s,o)=>{let u=sla(o,t,!0);return`${a}${s}${u}{`}),e):""}function lla(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}function cla(e){let t="";try{e.querySelectorAll("style").forEach(a=>{t+=(a.textContent||"")+`
`});let r=e.adoptedStyleSheets||[];for(let a of r)try{if(a&&a.cssRules)for(let s of a.cssRules)t+=s.cssText+`
`}catch{}}catch{}return t}function ula(e,t,r){if(!t)return;let a=document.createElement("style");a.setAttribute("data-sd",r),a.textContent=t,e.insertBefore(a,e.firstChild||null)}function hla(e,t){try{let r=e.currentSrc||e.src||"";if(!r)return;t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}function dla(e){let t=new Set;if(!e)return t;let r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g,a;for(;a=r.exec(e);)t.add(a[1]);return t}function fla(e,t){try{let r=getComputedStyle(e).getPropertyValue(t).trim();if(r)return r}catch{}try{let r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(r)return r}catch{}return""}function pla(e,t,r){let a=[];for(let s of t){let o=fla(e,s);o&&a.push(`${s}: ${o};`)}return a.length?`${r}{${a.join("")}}
`:""}function gla(e){e&&(e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-sd-slotted",""),e.querySelectorAll&&e.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted","")))}async function mla(e,t=3){let r=()=>{var o;try{return e.contentDocument||((o=e.contentWindow)==null?void 0:o.document)||null}catch{return null}},a=r(),s=0;for(;s<t&&(!a||!a.body&&!a.documentElement);)await new Promise(o=>setTimeout(o,0)),a=r(),s++;return a&&(a.body||a.documentElement)?a:null}function bla(e){let t=e.getBoundingClientRect(),r=0,a=0,s=0,o=0;try{let f=getComputedStyle(e);r=parseFloat(f.borderLeftWidth)||0,a=parseFloat(f.borderRightWidth)||0,s=parseFloat(f.borderTopWidth)||0,o=parseFloat(f.borderBottomWidth)||0}catch{}let u=Math.max(0,Math.round(t.width-(r+a))),h=Math.max(0,Math.round(t.height-(s+o)));return{contentWidth:u,contentHeight:h,rect:t}}function yla(e,t,r){let a=e.createElement("style");return a.setAttribute("data-sd-iframe-pin",""),a.textContent=`html, body {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${r}px !important;min-width: ${t}px !important;min-height: ${r}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(a),()=>{try{a.remove()}catch{}}}async function vla(e,t,r){let a=await mla(e,3);if(!a)throw new Error("iframe document not accessible/ready");let{contentWidth:s,contentHeight:o,rect:u}=bla(e),h=r==null?void 0:r.snap;if(!h||typeof h.toPng!="function")throw new Error("snapdom.toPng not available in iframe or window");let f={...r,scale:1},p=yla(a,s,o),m;try{m=await h.toPng(a.documentElement,f)}finally{p()}m.style.display="block",m.style.width=`${s}px`,m.style.height=`${o}px`;let b=document.createElement("div");return t.nodeMap.set(b,e),wV(e,b,t,r),b.style.overflow="hidden",b.style.display="block",b.style.width||(b.style.width=`${Math.round(u.width)}px`),b.style.height||(b.style.height=`${Math.round(u.height)}px`),b.appendChild(m),b}var yie=new Map;async function Fae(e){var r;if((r=na.resource)!=null&&r.has(e))return na.resource.get(e);if(yie.has(e))return yie.get(e);let t=(async()=>{var s;let a=await pA(e,{as:"dataURL",silent:!0});if(!a.ok||typeof a.data!="string")throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return(s=na.resource)==null||s.set(e,a.data),a.data})();yie.set(e,t);try{let a=await t;return yie.set(e,a),a}catch(a){throw yie.delete(e),a}}var _la=/\bblob:[^)"'\s]+/g;async function I5n(e){if(!e||e.indexOf("blob:")===-1)return e;let t=Array.from(new Set(e.match(_la)||[]));if(t.length===0)return e;let r=e;for(let a of t)try{let s=await Fae(a);r=r.split(a).join(s)}catch{}return r}function wEe(e){return typeof e=="string"&&e.startsWith("blob:")}function wla(e){return(e||"").split(",").map(t=>t.trim()).filter(Boolean).map(t=>{let r=t.match(/^(\S+)(\s+.+)?$/);return r?{url:r[1],desc:r[2]||""}:null}).filter(Boolean)}function Ela(e){return e.map(t=>t.desc?`${t.url} ${t.desc.trim()}`:t.url).join(", ")}async function xla(e){var u,h;if(!e)return;let t=e.querySelectorAll?e.querySelectorAll("img"):[];for(let f of t)try{let p=f.getAttribute("src")||f.currentSrc||"";if(wEe(p)){let b=await Fae(p);f.setAttribute("src",b)}let m=f.getAttribute("srcset");if(m&&m.includes("blob:")){let b=wla(m),_=!1;for(let w of b)if(wEe(w.url))try{w.url=await Fae(w.url),_=!0}catch{}_&&f.setAttribute("srcset",Ela(b))}}catch{}let r=e.querySelectorAll?e.querySelectorAll("image"):[];for(let f of r)try{let p="http://www.w3.org/1999/xlink",m=f.getAttribute("href")||((u=f.getAttributeNS)==null?void 0:u.call(f,p,"href"));if(wEe(m)){let b=await Fae(m);f.setAttribute("href",b),(h=f.removeAttributeNS)==null||h.call(f,p,"href")}}catch{}let a=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(let f of a)try{let p=f.getAttribute("style");if(p&&p.includes("blob:")){let m=await I5n(p);f.setAttribute("style",m)}}catch{}let s=e.querySelectorAll?e.querySelectorAll("style"):[];for(let f of s)try{let p=f.textContent||"";p.includes("blob:")&&(f.textContent=await I5n(p))}catch{}let o=["poster"];for(let f of o){let p=e.querySelectorAll?e.querySelectorAll(`[${f}^='blob:']`):[];for(let m of p)try{let b=m.getAttribute(f);wEe(b)&&m.setAttribute(f,await Fae(b))}catch{}}}async function aSe(e,t,r){var p,m,b,_,w,S;if(!e)throw new Error("Invalid node");let a=new Set,s=null,o=null;if(e.nodeType===Node.ELEMENT_NODE){let C=(e.localName||e.tagName||"").toLowerCase();if(e.id==="snapdom-sandbox"||e.hasAttribute("data-snapdom-sandbox")||loa.has(C))return null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if(e.getAttribute("data-capture")==="exclude"){if(r.excludeMode==="hide"){let C=document.createElement("div"),A=e.getBoundingClientRect();return C.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,C}else if(r.excludeMode==="remove")return null}if(r.exclude&&Array.isArray(r.exclude))for(let C of r.exclude)try{if((p=e.matches)!=null&&p.call(e,C)){if(r.excludeMode==="hide"){let A=document.createElement("div"),k=e.getBoundingClientRect();return A.style.cssText=`display:inline-block;width:${k.width}px;height:${k.height}px;visibility:hidden;`,A}else if(r.excludeMode==="remove")return null}}catch(A){console.warn(`Invalid selector in exclude option: ${C}`,A)}if(typeof r.filter=="function")try{if(!r.filter(e)){if(r.filterMode==="hide"){let C=document.createElement("div"),A=e.getBoundingClientRect();return C.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,C}else if(r.filterMode==="remove")return null}}catch(C){console.warn("Error in filter function:",C)}if(e.tagName==="IFRAME"){let C=!1;try{C=!!(e.contentDocument||(m=e.contentWindow)!=null&&m.document)}catch{C=!1}if(C)try{return await vla(e,t,r)}catch(A){console.warn("[SnapDOM] iframe rasterization failed, fallback:",A)}if(r.placeholders){let A=document.createElement("div");return A.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,wV(e,A,t,r),A}else{let A=e.getBoundingClientRect(),k=document.createElement("div");return k.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,wV(e,k,t,r),k}}if(e.getAttribute("data-capture")==="placeholder"){let C=e.cloneNode(!1);t.nodeMap.set(C,e),wV(e,C,t,r);let A=document.createElement("div");return A.textContent=e.getAttribute("data-placeholder-text")||"",A.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",C.appendChild(A),C}if(e.tagName==="CANVAS"){let C="";try{let k=e.getContext("2d",{willReadFrequently:!0});try{k&&k.getImageData(0,0,1,1)}catch{}if(await new Promise(I=>requestAnimationFrame(I)),C=e.toDataURL("image/png"),!C||C==="data:,"){try{k&&k.getImageData(0,0,1,1)}catch{}if(await new Promise(I=>requestAnimationFrame(I)),C=e.toDataURL("image/png"),!C||C==="data:,"){let I=document.createElement("canvas");I.width=e.width,I.height=e.height;let N=I.getContext("2d");N&&(N.drawImage(e,0,0),C=I.toDataURL("image/png"))}}}catch{}let A=document.createElement("img");try{A.decoding="sync",A.loading="eager"}catch{}C&&(A.src=C),A.width=e.width,A.height=e.height;try{let k=getComputedStyle(e);k.width&&(A.style.width=k.width),k.height&&(A.style.height=k.height)}catch{}return t.nodeMap.set(A,e),wV(e,A,t,r),A}let u;try{if(u=e.cloneNode(!1),ila(e,u),t.nodeMap.set(u,e),e.tagName==="IMG"){hla(e,u);try{let C=e.getBoundingClientRect(),A=Math.round(C.width||0),k=Math.round(C.height||0);if(!A||!k){let I=window.getComputedStyle(e),N=parseFloat(I.width)||0,L=parseFloat(I.height)||0,P=parseInt(e.getAttribute("width")||"",10)||0,M=parseInt(e.getAttribute("height")||"",10)||0,F=e.width||e.naturalWidth||0,U=e.height||e.naturalHeight||0;A=Math.round(A||N||P||F||0),k=Math.round(k||L||M||U||0)}A&&(u.dataset.snapdomWidth=String(A)),k&&(u.dataset.snapdomHeight=String(k))}catch{}try{let C=e.getAttribute("style")||"",A=window.getComputedStyle(e),k=M=>{let F=C.match(new RegExp(`${M}\\s*:\\s*([^;]+)`,"i")),U=F?F[1].trim():A.getPropertyValue(M);return/%|auto/i.test(String(U||""))},I=parseInt(u.dataset.snapdomWidth||"0",10),N=parseInt(u.dataset.snapdomHeight||"0",10),L=k("width")||!I,P=k("height")||!N;L&&I&&(u.style.width=`${I}px`),P&&N&&(u.style.height=`${N}px`),I&&(u.style.minWidth=`${I}px`),N&&(u.style.minHeight=`${N}px`)}catch{}}}catch(C){throw console.error("[Snapdom] Failed to clone node:",e,C),C}if(e instanceof HTMLTextAreaElement){let C=e.getBoundingClientRect();u.style.width=`${C.width}px`,u.style.height=`${C.height}px`}if(e instanceof HTMLInputElement&&(u.value=e.value,u.setAttribute("value",e.value),e.checked!==void 0&&(u.checked=e.checked,e.checked&&u.setAttribute("checked",""),e.indeterminate&&(u.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(s=e.value),e instanceof HTMLTextAreaElement&&(o=e.value),wV(e,u,t,r),e.shadowRoot){let C=function(U,$){if(U.nodeType===Node.ELEMENT_NODE&&U.tagName==="STYLE")return $(null);aSe(U,t,r).then(G=>{$(G||null)}).catch(()=>{$(null)})};try{let U=e.shadowRoot.querySelectorAll("slot");for(let $ of U){let G=[];try{G=((b=$.assignedNodes)==null?void 0:b.call($,{flatten:!0}))||((_=$.assignedNodes)==null?void 0:_.call($))||[]}catch{G=((w=$.assignedNodes)==null?void 0:w.call($))||[]}for(let B of G)a.add(B)}}catch{}let A=lla(t),k=`[data-sd="${A}"]`;try{u.setAttribute("data-sd",A)}catch{}let I=cla(e.shadowRoot),N=ola(I,k),L=dla(I),P=pla(e,L,k);ula(u,P+N,A);let M=document.createDocumentFragment(),F=await bat(Array.from(e.shadowRoot.childNodes),C,r.fast);M.append(...F.filter(U=>!!U)),u.appendChild(M)}if(e.tagName==="SLOT"){let C=function(L,P){aSe(L,t,r).then(M=>{M&&gla(M),P(M||null)}).catch(()=>{P(null)})},A=((S=e.assignedNodes)==null?void 0:S.call(e,{flatten:!0}))||[],k=A.length>0?A:Array.from(e.childNodes),I=document.createDocumentFragment(),N=await bat(Array.from(k),C,r.fast);return I.append(...N.filter(L=>!!L)),I}function h(C,A){if(a.has(C))return A(null);aSe(C,t,r).then(k=>{A(k||null)}).catch(()=>{A(null)})}let f=await bat(Array.from(e.childNodes),h,r.fast);if(u.append(...f.filter(C=>!!C)),s!==null&&u instanceof HTMLSelectElement){u.value=s;for(let C of u.options)C.value===s?C.setAttribute("selected",""):C.removeAttribute("selected")}return o!==null&&u instanceof HTMLTextAreaElement&&(u.textContent=o),u}function Sla(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}function Tla(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function N5n(e,t=!1){let r="",a=Math.max(1,e);for(;a>0;)a--,r=String.fromCharCode(97+a%26)+r,a=Math.floor(a/26);return t?r.toUpperCase():r}function O5n(e,t=!0){let r=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],a=Math.max(1,Math.min(3999,e)),s="";for(let[o,u]of r)for(;a>=o;)s+=u,a-=o;return t?s:s.toLowerCase()}function L5n(e,t){switch((t||"decimal").toLowerCase()){case"decimal":return String(Math.max(0,e));case"decimal-leading-zero":return(e<10?"0":"")+String(Math.max(0,e));case"lower-alpha":return N5n(e,!1);case"upper-alpha":return N5n(e,!0);case"lower-roman":return O5n(e,!1);case"upper-roman":return O5n(e,!0);default:return String(Math.max(0,e))}}function Cla(e){let t=()=>{var _;return((_=na==null?void 0:na.session)==null?void 0:_.__counterEpoch)??0},r=t(),a=new WeakMap,s=e instanceof Document?e.documentElement:e,o=_=>_&&_.tagName==="LI",u=_=>{let w=0,S=_==null?void 0:_.parentElement;if(!S)return 0;for(let C of S.children){if(C===_)break;C.tagName==="LI"&&w++}return w},h=_=>{let w=new Map;for(let[S,C]of _)w.set(S,C.slice());return w},f=(_,w,S)=>{var I,N;let C=h(_),A;try{A=((I=S.style)==null?void 0:I.counterReset)||getComputedStyle(S).counterReset}catch{}if(A&&A!=="none")for(let L of A.split(",")){let P=L.trim().split(/\s+/),M=P[0],F=Number.isFinite(Number(P[1]))?Number(P[1]):0;if(!M)continue;let U=w.get(M);if(U&&U.length){let $=U.slice();$.push(F),C.set(M,$)}else C.set(M,[F])}let k;try{k=((N=S.style)==null?void 0:N.counterIncrement)||getComputedStyle(S).counterIncrement}catch{}if(k&&k!=="none")for(let L of k.split(",")){let P=L.trim().split(/\s+/),M=P[0],F=Number.isFinite(Number(P[1]))?Number(P[1]):1;if(!M)continue;let U=C.get(M)||[];U.length===0&&U.push(0),U[U.length-1]+=F,C.set(M,U)}try{if(getComputedStyle(S).display==="list-item"&&o(S)){let L=S.parentElement,P=1;if(L&&L.tagName==="OL"){let F=L.getAttribute("start"),U=Number.isFinite(Number(F))?Number(F):1,$=u(S),G=S.getAttribute("value");P=Number.isFinite(Number(G))?Number(G):U+$}else P=1+u(S);let M=C.get("list-item")||[];M.length===0&&M.push(0),M[M.length-1]=P,C.set("list-item",M)}}catch{}return C},p=(_,w,S)=>{let C=f(S,w,_);a.set(_,C);let A=C;for(let k of _.children)A=p(k,C,A);return C},m=new Map;p(s,m,m);function b(){let _=t();if(_!==r){r=_;let w=new Map;p(s,w,w)}}return{get(_,w){var C;b();let S=(C=a.get(_))==null?void 0:C.get(w);return S&&S.length?S[S.length-1]:0},getStack(_,w){var C;b();let S=(C=a.get(_))==null?void 0:C.get(w);return S?S.slice():[]}}}function Ala(e,t,r){if(!e||e==="none")return e;try{let a=/\b(counter|counters)\s*\(([^)]+)\)/g,s=e.replace(a,(o,u,h)=>{var p,m,b;let f=String(h).split(",").map(_=>_.trim());if(u==="counter"){let _=(p=f[0])==null?void 0:p.replace(/^["']|["']$/g,""),w=(f[1]||"decimal").toLowerCase(),S=r.get(t,_);return L5n(S,w)}else{let _=(m=f[0])==null?void 0:m.replace(/^["']|["']$/g,""),w=((b=f[1])==null?void 0:b.replace(/^["']|["']$/g,""))??"",S=(f[2]||"decimal").toLowerCase(),C=r.getStack(t,_);return C.length?C.map(A=>L5n(A,S)).join(w):""}});return Tla(s)}catch{return"- "}}var sV=new WeakMap,D5n=300;function kla(e,t){let r=hJn(e);return t?(t.__pseudoPreflightFp!==r&&(t.__pseudoPreflight=P5n(e),t.__pseudoPreflightFp=r),!!t.__pseudoPreflight):P5n(e)}function sht(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function hJn(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),r=`n:${t.length}|`,a=0;for(let o=0;o<t.length;o++){let u=t[o];if(u.tagName==="STYLE"){let h=u.textContent?u.textContent.length:0;r+=`S${h}|`;let f=u.sheet,p=f?sht(f):null;p&&(a+=p.length)}else{let h=u.getAttribute("href")||"",f=u.getAttribute("media")||"all";r+=`L${h}|m:${f}|`;let p=u.sheet,m=p?sht(p):null;m&&(a+=m.length)}}let s=e.adoptedStyleSheets;return r+=`ass:${Array.isArray(s)?s.length:0}|tr:${a}`,r}function M5n(e,t,r){let a=sht(e);if(!a)return!1;for(let s=0;s<a.length;s++){if(r.budget<=0)return!1;let o=a[s],u=o&&o.cssText?o.cssText:"";r.budget--;for(let h of t)if(u.includes(h))return!0;if(o&&o.cssRules&&o.cssRules.length)for(let h=0;h<o.cssRules.length&&r.budget>0;h++){let f=o.cssRules[h],p=f&&f.cssText?f.cssText:"";r.budget--;for(let m of t)if(p.includes(m))return!0}if(r.budget<=0)return!1}return!1}function P5n(e=document){let t=hJn(e),r=sV.get(e);if(r&&r.fingerprint===t)return r.result;let a=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],s=e.querySelectorAll("style");for(let u=0;u<s.length;u++){let h=s[u].textContent||"";for(let f of a)if(h.includes(f))return sV.set(e,{fingerprint:t,result:!0}),!0}let o=e.adoptedStyleSheets;if(Array.isArray(o)&&o.length){let u={budget:D5n};try{for(let h of o)if(M5n(h,a,u))return sV.set(e,{fingerprint:t,result:!0}),!0}catch{}}{let u=e.querySelectorAll('style,link[rel~="stylesheet"]'),h={budget:D5n};for(let f=0;f<u.length&&h.budget>0;f++){let p=u[f],m=null;if(p.tagName,m=p.sheet||null,m&&M5n(m,a,h))return sV.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(sV.set(e,{fingerprint:t,result:!0}),!0):(sV.set(e,{fingerprint:t,result:!1}),!1)}var EV=new WeakMap,B5n=-1;function Rla(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function Ila(e){if(!e)return"";let t=[],r=/"([^"]*)"/g,a;for(;a=r.exec(e);)t.push(a[1]);return t.length?t.join(""):Rla(e)}function oht(e,t){let r=e.parentElement,a=r?EV.get(r):null;return a?{get(s,o){let u=t.get(s,o),h=a.get(o);return typeof h=="number"?Math.max(u,h):u},getStack(s,o){let u=t.getStack(s,o);if(!u.length)return u;let h=a.get(o);if(typeof h=="number"){let f=u.slice();return f[f.length-1]=Math.max(f[f.length-1],h),f}return u}}:t}function lht(e,t,r){let a=new Map;function s(f){let p=[];if(!f||f==="none")return p;for(let m of String(f).split(",")){let b=m.trim().split(/\s+/),_=b[0],w=Number.isFinite(Number(b[1]))?Number(b[1]):void 0;_&&p.push({name:_,num:w})}return p}let o=s(t==null?void 0:t.counterReset),u=s(t==null?void 0:t.counterIncrement);function h(f){if(a.has(f))return a.get(f).slice();let p=r.getStack(e,f);p=p.length?p.slice():[];let m=o.find(_=>_.name===f);if(m){let _=Number.isFinite(m.num)?m.num:0;p=p.length?[...p,_]:[_]}let b=u.find(_=>_.name===f);if(b){let _=Number.isFinite(b.num)?b.num:1;p.length===0&&(p=[0]),p[p.length-1]+=_}return a.set(f,p.slice()),p}return{get(f,p){let m=h(p);return m.length?m[m.length-1]:0},getStack(f,p){return h(p)},__incs:u}}function Nla(e,t,r){let a;try{a=getComputedStyle(e,t)}catch{}let s=a==null?void 0:a.content;if(!s||s==="none"||s==="normal")return{text:"",incs:[]};let o=oht(e,r),u=lht(e,a,o),h=Sla(s)?Ala(s,e,u):s;return{text:Ila(h),incs:u.__incs||[]}}async function dJn(e,t,r,a){var p,m,b;if(!(e instanceof Element)||!(t instanceof Element))return;let s=e.ownerDocument||document;if(!kla(s,r))return;let o=((p=na==null?void 0:na.session)==null?void 0:p.__counterEpoch)??0;if(B5n!==o&&(EV=new WeakMap,r&&(r.__counterCtx=null),B5n=o),!r.__counterCtx)try{r.__counterCtx=Cla(e.ownerDocument||document)}catch{}let u=r.__counterCtx;for(let _ of["::before","::after","::first-letter"])try{let w=tJn(e,_);if(!w||w.content==="none"&&w.backgroundImage==="none"&&w.backgroundColor==="transparent"&&(w.borderStyle==="none"||parseFloat(w.borderWidth)===0)&&(!w.transform||w.transform==="none")&&w.display==="inline")continue;if(_==="::first-letter"){let ne=getComputedStyle(e);if(!(w.color!==ne.color||w.fontSize!==ne.fontSize||w.fontWeight!==ne.fontWeight))continue;let se=Array.from(t.childNodes).find(Ee=>{var he;return Ee.nodeType===Node.TEXT_NODE&&((he=Ee.textContent)==null?void 0:he.trim().length)>0});if(!se)continue;let ie=se.textContent,ge=(m=ie.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u))==null?void 0:m[0],ce=ie.slice((ge==null?void 0:ge.length)||0);if(!ge||/[\uD800-\uDFFF]/.test(ge))continue;let be=document.createElement("span");be.textContent=ge,be.dataset.snapdomPseudo="::first-letter";let ve=E5n(w),De=tht(ve,"span");r.styleMap.set(be,De);let ye=document.createTextNode(ce);t.replaceChild(ye,se),t.insertBefore(be,ye);continue}let S=w.content??"",C=S===""||S==="none"||S==="normal",{text:A,incs:k}=Nla(e,_,u),I=w.backgroundImage,N=w.backgroundColor,L=w.fontFamily,P=parseInt(w.fontSize)||32,M=parseInt(w.fontWeight)||!1,F=w.color||"#000",U=w.borderStyle,$=parseFloat(w.borderWidth),G=w.transform,B=y7(L),Z=!C&&A!=="",z=I&&I!=="none",Y=N&&N!=="transparent"&&N!=="rgba(0, 0, 0, 0)",W=U&&U!=="none"&&$>0,Q=G&&G!=="none";if(!(Z||z||Y||W||Q)){if(k&&k.length&&e.parentElement){let ne=EV.get(e.parentElement)||new Map;for(let{name:se}of k){if(!se)continue;let ie=oht(e,u),ge=lht(e,getComputedStyle(e,_),ie).get(e,se);ne.set(se,ge)}EV.set(e.parentElement,ne)}continue}let V=document.createElement("span");V.dataset.snapdomPseudo=_,V.style.pointerEvents="none";let j=E5n(w),ee=tht(j,"span");if(r.styleMap.set(V,ee),B&&A&&A.length===1){let{dataUrl:ne,width:se,height:ie}=await Toa(A,L,M,P,F),ge=document.createElement("img");ge.src=ne,ge.style=`height:${P}px;width:${se/ie*P}px;object-fit:contain;`,V.appendChild(ge),t.dataset.snapdomHasIcon="true"}else if(A&&A.startsWith("url(")){let ne=Rbt(A);if(ne!=null&&ne.trim())try{let se=document.createElement("img"),ie=await pA(QTe(ne),{as:"dataURL",useProxy:a.useProxy});se.src=ie.data,se.style=`width:${P}px;height:auto;object-fit:contain;`,V.appendChild(se)}catch(se){console.error(`[snapdom] Error in pseudo ${_} for`,e,se)}}else!B&&Z&&(V.textContent=A);V.style.backgroundImage="none","maskImage"in V.style&&(V.style.maskImage="none"),"webkitMaskImage"in V.style&&(V.style.webkitMaskImage="none");try{V.style.backgroundRepeat=w.backgroundRepeat,V.style.backgroundSize=w.backgroundSize,w.backgroundPositionX&&w.backgroundPositionY?(V.style.backgroundPositionX=w.backgroundPositionX,V.style.backgroundPositionY=w.backgroundPositionY):V.style.backgroundPosition=w.backgroundPosition,V.style.backgroundOrigin=w.backgroundOrigin,V.style.backgroundClip=w.backgroundClip,V.style.backgroundAttachment=w.backgroundAttachment,V.style.backgroundBlendMode=w.backgroundBlendMode}catch{}if(z)try{let ne=nJn(I),se=await Promise.all(ne.map(JZn));V.style.backgroundImage=se.join(", ")}catch(ne){console.warn(`[snapdom] Failed to inline background-image for ${_}`,ne)}Y&&(V.style.backgroundColor=N);let te=V.childNodes.length>0||((b=V.textContent)==null?void 0:b.trim())!==""||z||Y||W||Q;if(k&&k.length&&e.parentElement){let ne=EV.get(e.parentElement)||new Map,se=oht(e,u),ie=lht(e,getComputedStyle(e,_),se);for(let{name:ge}of k){if(!ge)continue;let ce=ie.get(e,ge);ne.set(ge,ce)}EV.set(e.parentElement,ne)}if(!te)continue;_==="::before"?t.insertBefore(V,t.firstChild):t.appendChild(V)}catch(w){console.warn(`[snapdom] Failed to capture ${_} for`,e,w)}let h=Array.from(e.children),f=Array.from(t.children).filter(_=>!_.dataset.snapdomPseudo);for(let _=0;_<Math.min(h.length,f.length);_++)await dJn(h[_],f[_],r,a)}function Ola(e,t){var L,P;if(!e||!(e instanceof Element))return;let r=e.ownerDocument||document,a=r,s=e instanceof SVGSVGElement?[e]:Array.from(e.querySelectorAll("svg"));if(s.length===0)return;let o=/url\(\s*#([^)]+)\)/g,u=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],h=M=>window.CSS&&CSS.escape?CSS.escape(M):M.replace(/[^a-zA-Z0-9_-]/g,"\\$&"),f="http://www.w3.org/1999/xlink",p=M=>{if(!M||!M.getAttribute)return null;let F=M.getAttribute("href")||M.getAttribute("xlink:href")||(typeof M.getAttributeNS=="function"?M.getAttributeNS(f,"href"):null);if(F)return F;let U=M.attributes;if(!U)return null;for(let $=0;$<U.length;$++){let G=U[$];if(!G||!G.name)continue;if(G.name==="href")return G.value;let B=G.name.indexOf(":");if(B!==-1&&G.name.slice(B+1)==="href")return G.value}return null},m=new Set(Array.from(e.querySelectorAll("[id]")).map(M=>M.id)),b=new Set,_=!1,w=(M,F=null)=>{if(!M)return;o.lastIndex=0;let U;for(;U=o.exec(M);){_=!0;let $=(U[1]||"").trim();$&&(m.has($)||(b.add($),F&&!F.has($)&&F.add($)))}},S=M=>{let F=M.querySelectorAll("use");for(let $ of F){let G=p($);if(!G||!G.startsWith("#"))continue;_=!0;let B=G.slice(1).trim();B&&!m.has(B)&&b.add(B)}let U=M.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let $ of U){w($.getAttribute("style")||"");for(let G of u)w($.getAttribute(G))}};for(let M of s)S(M);if(!_)return;let C=e.querySelector("svg.inline-defs-container");C||(C=r.createElementNS("http://www.w3.org/2000/svg","svg"),C.classList.add("inline-defs-container"),C.setAttribute("aria-hidden","true"),C.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(C,e.firstChild||null));let A=C.querySelector("defs")||null,k=M=>{if(!M||m.has(M))return null;let F=h(M),U=$=>{let G=a.querySelector($);return G&&!e.contains(G)?G:null};return U(`svg defs > *#${F}`)||U(`svg > symbol#${F}`)||U(`*#${F}`)};if(!b.size)return;let I=new Set(b),N=new Set;for(;I.size;){let M=I.values().next().value;if(I.delete(M),!M||m.has(M)||N.has(M))continue;let F=k(M);if(!F){N.add(M);continue}A||(A=r.createElementNS("http://www.w3.org/2000/svg","defs"),C.appendChild(A));let U=F.cloneNode(!0);U.id||U.setAttribute("id",M),A.appendChild(U),N.add(M),m.add(M);let $=[U,...U.querySelectorAll("*")];for(let G of $){let B=p(G);if(B&&B.startsWith("#")){let z=B.slice(1).trim();z&&!m.has(z)&&!N.has(z)&&I.add(z)}let Z=((L=G.getAttribute)==null?void 0:L.call(G,"style"))||"";Z&&w(Z,I);for(let z of u){let Y=(P=G.getAttribute)==null?void 0:P.call(G,z);Y&&w(Y,I)}}}}function Lla(e,t){var h;if(!e||!t)return;let r=e.scrollTop||0;if(!r)return;getComputedStyle(t).position==="static"&&(t.style.position="relative");let a=e.getBoundingClientRect(),s=e.clientHeight,o="data-snap-ph",u=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;u.nextNode();){let f=u.currentNode,p=getComputedStyle(f),m=p.position;if(m!=="sticky"&&m!=="-webkit-sticky")continue;let b=F5n(p.top),_=F5n(p.bottom);if(b==null&&_==null)continue;let w=Dla(f,e),S=Mla(t,w,o);if(!S)continue;let C=f.getBoundingClientRect(),A=C.width,k=C.height,I=C.left-a.left;if(!(A>0&&k>0)||!Number.isFinite(I))continue;let N=b!=null?b+r:r+(s-k-_);if(!Number.isFinite(N))continue;let L=Number.parseInt(p.zIndex,10),P=Number.isFinite(L),M=P?Math.max(L,1)+1:2,F=P?L-1:0,U=S.cloneNode(!1);U.setAttribute(o,"1"),U.style.position="sticky",U.style.left=`${I}px`,U.style.top=`${N}px`,U.style.width=`${A}px`,U.style.height=`${k}px`,U.style.visibility="hidden",U.style.zIndex=String(F),U.style.overflow="hidden",U.style.background="transparent",U.style.boxShadow="none",U.style.filter="none",(h=S.parentElement)==null||h.insertBefore(U,S),S.style.position="absolute",S.style.left=`${I}px`,S.style.top=`${N}px`,S.style.bottom="auto",S.style.zIndex=String(M),S.style.pointerEvents="none"}}function F5n(e){if(!e||e==="auto")return null;let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}function Dla(e,t){let r=[];for(let a=e;a&&a!==t;){let s=a.parentElement;if(!s)break;r.push(Array.prototype.indexOf.call(s.children,a)),a=s}return r.reverse()}function Mla(e,t,r){let a=e;for(let s=0;s<t.length;s++)if(a=Pla(a,r)[t[s]],!a)return null;return a instanceof HTMLElement?a:null}function Pla(e,t){let r=[],a=e.children;for(let s=0;s<a.length;s++){let o=a[s];o.hasAttribute(t)||r.push(o)}return r}function Bla(e){let t=getComputedStyle(e),r=t.outlineStyle,a=t.outlineWidth,s=t.borderStyle,o=t.borderWidth,u=r!=="none"&&parseFloat(a)>0,h=s==="none"||parseFloat(o)===0;u&&h&&(e.style.border=`${a} solid transparent`)}async function Fla(e,t={}){var f,p;let r={styleMap:na.session.styleMap,styleCache:na.session.styleCache,nodeMap:na.session.nodeMap},a,s="",o="";Bla(e);try{Ola(e)}catch(m){console.warn("inlineExternal defs or symbol failed:",m)}try{a=await aSe(e,r,t,e)}catch(m){throw console.warn("deepClone failed:",m),m}try{await dJn(e,a,r,t)}catch(m){console.warn("inlinePseudoElements failed:",m)}await xla(a);try{let m=a.querySelectorAll("style[data-sd]");for(let b of m)o+=b.textContent||"",b.remove()}catch{}let u=goa(r.styleMap);s=Array.from(u.entries()).map(([m,b])=>`.${b}{${m}}`).join(""),s=o+s;for(let[m,b]of r.styleMap.entries()){if(m.tagName==="STYLE")continue;if(m.getRootNode&&m.getRootNode()instanceof ShadowRoot){m.setAttribute("style",b.replace(/;/g,"; "));continue}let _=u.get(b);_&&m.classList.add(_);let w=(f=m.style)==null?void 0:f.backgroundImage,S=(p=m.dataset)==null?void 0:p.snapdomHasIcon;w&&w!=="none"&&(m.style.backgroundImage=w),S&&(m.style.verticalAlign="middle",m.style.display="inline")}for(let[m,b]of r.nodeMap.entries()){let _=b.scrollLeft,w=b.scrollTop;if((_||w)&&m instanceof HTMLElement){m.style.overflow="hidden",m.style.scrollbarWidth="none",m.style.msOverflowStyle="none";let S=document.createElement("div");for(S.style.transform=`translate(${-_}px, ${-w}px)`,S.style.willChange="transform",S.style.display="inline-block",S.style.width="100%";m.firstChild;)S.appendChild(m.firstChild);m.appendChild(S)}}let h=a instanceof HTMLElement&&a.firstElementChild instanceof HTMLElement?a.firstElementChild:a;if(Lla(e,h),e===r.nodeMap.get(a)){let m=r.styleCache.get(e)||window.getComputedStyle(e);r.styleCache.set(e,m);let b=toa(m.transform);a.style.margin="0",a.style.top="auto",a.style.left="auto",a.style.right="auto",a.style.bottom="auto",a.style.animation="none",a.style.transition="none",a.style.willChange="auto",a.style.float="none",a.style.clear="none",a.style.transform=b||""}for(let[m,b]of r.nodeMap.entries())b.tagName==="PRE"&&(m.style.marginTop="0",m.style.marginBlockStart="0");return{clone:a,classCSS:s,styleCache:r.styleCache}}function $la(e){var p,m,b,_;let t=parseInt(((p=e.dataset)==null?void 0:p.snapdomWidth)||"",10)||0,r=parseInt(((m=e.dataset)==null?void 0:m.snapdomHeight)||"",10)||0,a=parseInt(e.getAttribute("width")||"",10)||0,s=parseInt(e.getAttribute("height")||"",10)||0,o=parseFloat(((b=e.style)==null?void 0:b.width)||"")||0,u=parseFloat(((_=e.style)==null?void 0:_.height)||"")||0,h=t||o||a||e.width||e.naturalWidth||100,f=r||u||s||e.height||e.naturalHeight||100;return{width:h,height:f}}async function Ula(e,t={}){let r=Array.from(e.querySelectorAll("img")),a=async s=>{if(!s.getAttribute("src")){let m=s.currentSrc||s.src||"";m&&s.setAttribute("src",m)}s.removeAttribute("srcset"),s.removeAttribute("sizes");let o=s.src||"";if(!o)return;let u=await pA(o,{as:"dataURL",useProxy:t.useProxy});if(u.ok&&typeof u.data=="string"&&u.data.startsWith("data:")){s.src=u.data,s.width||(s.width=s.naturalWidth||100),s.height||(s.height=s.naturalHeight||100);return}let{width:h,height:f}=$la(s),{fallbackURL:p}=t||{};if(p)try{let m=typeof p=="function"?await p({width:h,height:f,src:o,element:s}):p;if(m){let b=await pA(m,{as:"dataURL",useProxy:t.useProxy});s.src=b.data,s.width||(s.width=h),s.height||(s.height=f);return}}catch{}if(t.placeholders!==!1){let m=document.createElement("div");m.style.cssText=[`width:${h}px`,`height:${f}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${f}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),m.textContent="img",s.replaceWith(m)}else{let m=document.createElement("div");m.style.cssText=`display:inline-block;width:${h}px;height:${f}px;visibility:hidden;`,s.replaceWith(m)}};for(let s=0;s<r.length;s+=4){let o=r.slice(s,s+4).map(a);await Promise.allSettled(o)}}function zla(e){if(!e)return()=>{};let t=Gla(e);if(t<=0)return()=>{};if(!Vla(e))return()=>{};let r=getComputedStyle(e),a=Math.round(qla(r)*t+Hla(r)),s=e.textContent??"",o=s;if(e.scrollHeight<=a+.5)return()=>{};let u=0,h=s.length,f=-1;for(;u<=h;){let p=u+h>>1;e.textContent=s.slice(0,p)+"…",e.scrollHeight<=a+.5?(f=p,u=p+1):h=p-1}return e.textContent=(f>=0?s.slice(0,f):"")+"…",()=>{e.textContent=o}}function Gla(e){let t=getComputedStyle(e),r=t.getPropertyValue("-webkit-line-clamp")||t.getPropertyValue("line-clamp");r=(r||"").trim();let a=parseInt(r,10);return Number.isFinite(a)&&a>0?a:0}function qla(e){let t=(e.lineHeight||"").trim(),r=parseFloat(e.fontSize)||16;return!t||t==="normal"?Math.round(r*1.2):t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*r):t.endsWith("%")?Math.round(parseFloat(t)/100*r):Math.round(r*1.2)}function Hla(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}function Vla(e){return e.childElementCount>0?!1:Array.from(e.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)}function Yla(e,t){if(!e||!t||!t.style)return;let r=getComputedStyle(e);try{t.style.boxShadow="none"}catch{}try{t.style.textShadow="none"}catch{}try{t.style.outline="none"}catch{}let a=(r.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=a.length?a:"none"}catch{}}function jla(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),r=[];for(;t.nextNode();)r.push(t.currentNode);for(let a of r)a.remove()}function Wla(e,t={}){let{stripFrameworkDirectives:r=!0}=t,a=new Set(["xml","xlink"]),s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;s.nextNode();){let o=s.currentNode;for(let u of Array.from(o.attributes)){let h=u.name;if(h.includes("@")){o.removeAttribute(h);continue}if(h.includes(":")){let f=h.split(":",1)[0];if(!a.has(f)){o.removeAttribute(h);continue}}if(r&&(h.startsWith("x-")||h.startsWith("v-")||h.startsWith(":")||h.startsWith("on:")||h.startsWith("bind:")||h.startsWith("let:")||h.startsWith("class:"))){o.removeAttribute(h);continue}}}}function Kla(e,t={}){e&&(Wla(e,t),jla(e))}function Xla(e){var t;try{let r=((t=e.getAttribute)==null?void 0:t.call(e,"style"))||"";return/\b(height|width|block-size|inline-size)\s*:/.test(r)}catch{return!1}}function Qla(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Zla(e,t){if(!(e instanceof Element)||Xla(e)||Qla(e))return!1;let r=t.position;if(r==="absolute"||r==="fixed"||r==="sticky")return!1;let a=t.display||"";return!(a.includes("flex")||a.includes("grid")||a.startsWith("table")||t.transform&&t.transform!=="none")}function Jla(e,t,r=new Map){function a(s,o){if(!(s instanceof Element)||!(o instanceof Element))return;let u=s.childElementCount>o.childElementCount,h=r.get(s)||getComputedStyle(s);if(r.has(s)||r.set(s,h),u&&Zla(s,h)){o.style.height||(o.style.height="auto"),o.style.width||(o.style.width="auto"),o.style.removeProperty("block-size"),o.style.removeProperty("inline-size"),o.style.minHeight||(o.style.minHeight="0"),o.style.minWidth||(o.style.minWidth="0"),o.style.maxHeight||(o.style.maxHeight="none"),o.style.maxWidth||(o.style.maxWidth="none");let m=h.overflowY||h.overflowBlock||"visible",b=h.overflowX||h.overflowInline||"visible";(m!=="visible"||b!=="visible")&&(o.style.overflow="visible")}let f=Array.from(s.children),p=Array.from(o.children);for(let m=0;m<Math.min(f.length,p.length);m++)a(f[m],p[m])}a(e,t)}function eca(e){let t=getComputedStyle(e);return!(t.display==="none"||t.position==="absolute"||t.position==="fixed"||t.position==="sticky"||(t.cssFloat||t.float||"none")!=="none"||t.transform&&t.transform!=="none")}function tca(e,t){if(!(e instanceof Element))return!1;if(e.getAttribute("data-capture")==="exclude"&&(t==null?void 0:t.excludeMode)==="remove")return!0;if(Array.isArray(t==null?void 0:t.exclude))for(let r of t.exclude)try{if(e.matches(r))return t.excludeMode==="remove"}catch{}return!1}function nca(e,t){let r=getComputedStyle(e),a=e.getBoundingClientRect(),s=1/0,o=-1/0,u=!1,h=Array.from(e.children);for(let w of h){if(tca(w,t)||!eca(w))continue;let S=w.getBoundingClientRect(),C=S.top-a.top,A=S.bottom-a.top;A<=C||(C<s&&(s=C),A>o&&(o=A),u=!0)}let f=u?Math.max(0,o-s):0,p=parseFloat(r.borderTopWidth)||0,m=parseFloat(r.borderBottomWidth)||0,b=parseFloat(r.paddingTop)||0,_=parseFloat(r.paddingBottom)||0;return p+m+b+_+f}var Ro=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e;function rca(e){var h;let t=e.boxShadow||"";if(!t||t==="none")return{top:0,right:0,bottom:0,left:0};let r=t.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(f=>f.trim()),a=0,s=0,o=0,u=0;for(let f of r){let p=((h=f.match(/-?\d+(\.\d+)?px/g))==null?void 0:h.map(A=>parseFloat(A)))||[];if(p.length<2)continue;let[m,b,_=0,w=0]=p,S=Math.abs(m)+_+w,C=Math.abs(b)+_+w;s=Math.max(s,S+Math.max(m,0)),u=Math.max(u,S+Math.max(-m,0)),o=Math.max(o,C+Math.max(b,0)),a=Math.max(a,C+Math.max(-b,0))}return{top:Math.ceil(a),right:Math.ceil(s),bottom:Math.ceil(o),left:Math.ceil(u)}}function ica(e){let t=(e.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),r=t?Math.ceil(parseFloat(t[1])||0):0;return{top:r,right:r,bottom:r,left:r}}function aca(e){if((e.outlineStyle||"none")==="none")return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0);return{top:t,right:t,bottom:t,left:t}}function sca(e){var f;let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||t==="none")return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let r=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],a=0,s=0,o=0,u=0,h=!1;for(let p of r){h=!0;let m=((f=p.match(/-?\d+(?:\.\d+)?px/gi))==null?void 0:f.map(A=>parseFloat(A)))||[],[b=0,_=0,w=0]=m,S=Math.abs(b)+w,C=Math.abs(_)+w;s=Math.max(s,S+Math.max(b,0)),u=Math.max(u,S+Math.max(-b,0)),o=Math.max(o,C+Math.max(_,0)),a=Math.max(a,C+Math.max(-_,0))}return{bleed:{top:Ro(a),right:Ro(s),bottom:Ro(o),left:Ro(u)},has:h}}function oca(e,t){if(!e||!t||!t.style)return null;let r=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let a=r.transform||"none";if(a==="none")try{let o=fJn(e);if(o.a===1&&o.b===0&&o.c===0&&o.d===1)return t.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}let s=a.match(/^matrix\(\s*([^)]+)\)$/i);if(s){let o=s[1].split(",").map(u=>parseFloat(u.trim()));if(o.length===6&&o.every(Number.isFinite)){let[u,h,f,p]=o,m=Math.sqrt(u*u+h*h)||0,b=0,_=0,w=0,S=0,C=0,A=0;m>0&&(b=u/m,_=h/m,w=b*f+_*p,S=f-b*w,C=p-_*w,A=Math.sqrt(S*S+C*C)||0,A>0?w=w/A:w=0);let k=m,I=0,N=w*A,L=A;try{t.style.transform=`matrix(${k}, ${I}, ${N}, ${L}, 0, 0)`}catch{}return{a:k,b:I,c:N,d:L}}}try{let o=String(a).trim();return t.style.transform=o+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}function $5n(e,t,r,a,s){let o=r.a,u=r.b,h=r.c,f=r.d,p=r.e||0,m=r.f||0;function b(k,I){let N=k-a,L=I-s,P=o*N+h*L,M=u*N+f*L;return P+=a+p,M+=s+m,[P,M]}let _=[b(0,0),b(e,0),b(0,t),b(e,t)],w=1/0,S=1/0,C=-1/0,A=-1/0;for(let[k,I]of _)k<w&&(w=k),I<S&&(S=I),k>C&&(C=k),I>A&&(A=I);return{minX:w,minY:S,maxX:C,maxY:A,width:C-w,height:A-S}}function lca(e,t,r){let a=(e.transformOrigin||"0 0").trim().split(/\s+/),[s,o]=[a[0]||"0",a[1]||"0"],u=(h,f)=>{let p=h.toLowerCase();return p==="left"||p==="top"?0:p==="center"?f/2:p==="right"||p==="bottom"?f:p.endsWith("px")?parseFloat(p)||0:p.endsWith("%")?(parseFloat(p)||0)*f/100:/^-?\d+(\.\d+)?$/.test(p)&&parseFloat(p)||0};return{ox:u(s,t),oy:u(o,r)}}function cca(e){var s,o,u,h,f,p,m,b;let t={rotate:"0deg",scale:null,translate:null},r=typeof e.computedStyleMap=="function"?e.computedStyleMap():null;if(r){let _=A=>{try{return typeof r.has=="function"&&!r.has(A)||typeof r.get!="function"?null:r.get(A)}catch{return null}},w=_("rotate");if(w)if(w.angle){let A=w.angle;t.rotate=A.unit==="rad"?A.value*180/Math.PI+"deg":A.value+A.unit}else w.unit?t.rotate=w.unit==="rad"?w.value*180/Math.PI+"deg":w.value+w.unit:t.rotate=String(w);else{let A=getComputedStyle(e);t.rotate=A.rotate&&A.rotate!=="none"?A.rotate:"0deg"}let S=_("scale");if(S){let A="x"in S&&((s=S.x)==null?void 0:s.value)!=null?S.x.value:Array.isArray(S)?(o=S[0])==null?void 0:o.value:Number(S)||1,k="y"in S&&((u=S.y)==null?void 0:u.value)!=null?S.y.value:Array.isArray(S)?(h=S[1])==null?void 0:h.value:A;t.scale=`${A} ${k}`}else{let A=getComputedStyle(e);t.scale=A.scale&&A.scale!=="none"?A.scale:null}let C=_("translate");if(C){let A="x"in C&&"value"in C.x?C.x.value:Array.isArray(C)?(f=C[0])==null?void 0:f.value:0,k="y"in C&&"value"in C.y?C.y.value:Array.isArray(C)?(p=C[1])==null?void 0:p.value:0,I="x"in C&&((m=C.x)!=null&&m.unit)?C.x.unit:"px",N="y"in C&&((b=C.y)!=null&&b.unit)?C.y.unit:"px";t.translate=`${A}${I} ${k}${N}`}else{let A=getComputedStyle(e);t.translate=A.translate&&A.translate!=="none"?A.translate:null}return t}let a=getComputedStyle(e);return t.rotate=a.rotate&&a.rotate!=="none"?a.rotate:"0deg",t.scale=a.scale&&a.scale!=="none"?a.scale:null,t.translate=a.translate&&a.translate!=="none"?a.translate:null,t}var yat=null;function uca(){if(yat)return yat;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),yat=e,e}function hca(e){let t=uca(),r=document.createElement("div");r.style.transformOrigin="0 0",e.baseTransform&&(r.style.transform=e.baseTransform),e.rotate&&(r.style.rotate=e.rotate),e.scale&&(r.style.scale=e.scale),e.translate&&(r.style.translate=e.translate),t.appendChild(r);let a=fJn(r);return t.removeChild(r),a}function dca(e){let t=getComputedStyle(e),r=t.transform||"none";if(r!=="none"&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(r))return!0;let a=t.rotate&&t.rotate!=="none"&&t.rotate!=="0deg",s=t.scale&&t.scale!=="none"&&t.scale!=="1",o=t.translate&&t.translate!=="none"&&t.translate!=="0px 0px";return!!(a||s||o)}function fJn(e){let t=getComputedStyle(e).transform;if(!t||t==="none")return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}async function pJn(e,t){var I;if(!e)throw new Error("Element cannot be null or undefined");eoa(t.cache);let r=t.fast,a=t.outerTransforms!==!1,s=!!t.outerShadows,o={element:e,options:t,plugins:t.plugins},u,h,f,p="",m="",b,_,w=null;await iO("beforeSnap",o),await iO("beforeClone",o);let S=zla(o.element);try{({clone:u,classCSS:h,styleCache:f}=await Fla(o.element,o.options)),!a&&u&&(w=oca(o.element,u)),!s&&u&&Yla(o.element,u)}finally{S()}if(o={clone:u,classCSS:h,styleCache:f,...o},await iO("afterClone",o),Kla(o.clone),((I=o.options)==null?void 0:I.excludeMode)==="remove")try{Jla(o.element,o.clone,o.styleCache)}catch(N){console.warn("[snapdom] shrink pass failed:",N)}try{await Soa(o.clone,o.element)}catch{}await new Promise(N=>{_V(async()=>{await Ula(o.clone,o.options),N()},{fast:r})}),await new Promise(N=>{_V(async()=>{await Goa(o.element,o.clone,o.styleCache,o.options),N()},{fast:r})}),t.embedFonts&&await new Promise(N=>{_V(async()=>{let L=$oa(o.element),P=Uoa(o.element);if(cF()){let M=new Set(Array.from(L).map(F=>String(F).split("__")[0]).filter(Boolean));await zoa(M,1)}p=await Foa({required:L,usedCodepoints:P,exclude:o.options.excludeFonts,useProxy:o.options.useProxy}),N()},{fast:r})});let C=foa(o.clone).sort(),A=C.join(",");na.baseStyle.has(A)?m=na.baseStyle.get(A):await new Promise(N=>{_V(()=>{m=poa(C),na.baseStyle.set(A,m),N()},{fast:r})}),o={fontsCSS:p,baseCSS:m,...o},await iO("beforeRender",o),await new Promise(N=>{_V(()=>{var ht;let L=getComputedStyle(o.element),P=o.element.getBoundingClientRect(),M=Math.max(1,Ro(o.element.offsetWidth||parseFloat(L.width)||P.width||1)),F=Math.max(1,Ro(o.element.offsetHeight||parseFloat(L.height)||P.height||1));if(((ht=o.options)==null?void 0:ht.excludeMode)==="remove"){let et=nca(o.element,o.options);Number.isFinite(et)&&et>0&&(F=Math.max(1,Math.min(F,Ro(et+1))))}let U=(et,qe=NaN)=>{let He=typeof et=="string"?parseFloat(et):et;return Number.isFinite(He)?He:qe},$=U(o.options.width),G=U(o.options.height),B=M,Z=F,z=Number.isFinite($),Y=Number.isFinite(G),W=F>0?M/F:1;z&&Y?(B=Math.max(1,Ro($)),Z=Math.max(1,Ro(G))):z?(B=Math.max(1,Ro($)),Z=Math.max(1,Ro(B/(W||1)))):Y?(Z=Math.max(1,Ro(G)),B=Math.max(1,Ro(Z*(W||1)))):(B=M,Z=F);let Q=0,V=0,j=M,ee=F;if(!a&&w&&Number.isFinite(w.a)){let et={a:w.a,b:w.b||0,c:w.c||0,d:w.d||1,e:0,f:0},qe=$5n(M,F,et,0,0);Q=Ro(qe.minX),V=Ro(qe.minY),j=Ro(qe.maxX),ee=Ro(qe.maxY)}else if(a&&fca(o.element)){let et=L.transform&&L.transform!=="none"?L.transform:"",qe=cca(o.element),He=hca({baseTransform:et,rotate:qe.rotate||"0deg",scale:qe.scale,translate:qe.translate}),{ox:Ge,oy:Ye}=lca(L,M,F),Ae=He.is2D?He:new DOMMatrix(He.toString()),Xe=$5n(M,F,Ae,Ge,Ye);Q=Ro(Xe.minX),V=Ro(Xe.minY),j=Ro(Xe.maxX),ee=Ro(Xe.maxY)}let te=rca(L),ne=ica(L),se=aca(L),ie=sca(L),ge=s?{top:Ro(te.top+ne.top+se.top+ie.bleed.top),right:Ro(te.right+ne.right+se.right+ie.bleed.right),bottom:Ro(te.bottom+ne.bottom+se.bottom+ie.bleed.bottom),left:Ro(te.left+ne.left+se.left+ie.bleed.left)}:{top:0,right:0,bottom:0,left:0};Q=Ro(Q-ge.left),V=Ro(V-ge.top),j=Ro(j+ge.right),ee=Ro(ee+ge.bottom);let ce=Math.max(1,Ro(j-Q)),be=Math.max(1,Ro(ee-V)),ve=z||Y?Ro(B/M):1,De=Y||z?Ro(Z/F):1,ye=Math.max(1,Ro(ce*ve)),Ee=Math.max(1,Ro(be*De)),he="http://www.w3.org/2000/svg",we=cF()?1:0,Ce=Ro(we+(a?0:1)),Ie=document.createElementNS(he,"foreignObject"),Le=Ro(Q),Fe=Ro(V);Ie.setAttribute("x",String(Ro(-(Le-Ce)))),Ie.setAttribute("y",String(Ro(-(Fe-Ce)))),Ie.setAttribute("width",String(Ro(M+Ce*2))),Ie.setAttribute("height",String(Ro(F+Ce*2))),Ie.style.overflow="visible";let Ve=document.createElement("style");Ve.textContent=o.baseCSS+o.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+o.classCSS,Ie.appendChild(Ve);let Oe=document.createElement("div");Oe.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Oe.style.width=`${Ro(M)}px`,Oe.style.height=`${Ro(F)}px`,Oe.style.overflow="visible",Oe.appendChild(o.clone),Ie.appendChild(Oe);let Dt=new XMLSerializer().serializeToString(Ie),ot=Ro(ce+Ce*2),sn=Ro(be+Ce*2),Kt=z||Y;t.meta={w0:M,h0:F,vbW:ot,vbH:sn,targetW:B,targetH:Z};let Ft=cF()&&Kt?ot:Ro(ye+Ce*2),Je=cF()&&Kt?sn:Ro(Ee+Ce*2);_=`<svg xmlns="${he}" width="${Ft}" height="${Je}" viewBox="0 0 ${ot} ${sn}">`+Dt+"</svg>",b=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(_)}`,o={svgString:_,dataURL:b,...o},N()},{fast:r})}),await iO("afterRender",o);let k=document.getElementById("snapdom-sandbox");return k&&k.style.position==="absolute"&&k.remove(),o.dataURL}function fca(e){return dca(e)}function pca(e){if(typeof e=="string"){let t=e.toLowerCase().trim();if(t==="disabled"||t==="full"||t==="auto"||t==="soft")return t}return"soft"}function gca(e={}){let t=e.format??"png";t==="jpg"&&(t="jpeg");let r=pca(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:e.placeholders!==!1,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fallbackURL:e.fallbackURL??void 0,cache:r,useProxy:typeof e.useProxy=="string"?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1}}function gJn(...e){return qoa(...e),Wd}var Wd=Object.assign(mca,{plugins:gJn}),mJn=Symbol("snapdom.internal"),FN=Symbol("snapdom.internal.silent"),cht=!1;async function mca(e,t){if(!e)throw new Error("Element cannot be null or undefined");let r=gca(t);if(Yoa(r,t&&t.plugins),cF()&&(r.embedFonts===!0||yca(e)))for(let a=0;a<3;a++)try{await bca(e,t),cht=!1}catch{}return r.iconFonts&&r.iconFonts.length>0&&boa(r.iconFonts),r.snap||(r.snap={toPng:(a,s)=>Wd.toPng(a,s),toSvg:(a,s)=>Wd.toSvg(a,s)}),Wd.capture(e,r,mJn)}Wd.capture=async(e,t,r)=>{if(r!==mJn)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let a=await pJn(e,t),s={img:async(S,C)=>{let{toImg:A}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return A(a,{...S,...C||{}})},svg:async(S,C)=>{let{toSvg:A}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return A(a,{...S,...C||{}})},canvas:async(S,C)=>{let{toCanvas:A}=await ea(()=>Promise.resolve().then(()=>fAn),void 0);return A(a,{...S,...C||{}})},blob:async(S,C)=>{let{toBlob:A}=await ea(()=>Promise.resolve().then(()=>pAn),void 0);return A(a,{...S,...C||{}})},png:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"png"})},jpeg:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"jpeg"})},webp:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"webp"})},download:async(S,C)=>{let{download:A}=await ea(()=>Promise.resolve().then(()=>eSa),void 0);return A(a,{...S,...C||{}})}},o={...t,export:{url:a},exports:{svg:async S=>{let{toSvg:C}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return C(a,{...t,...S||{},[FN]:!0})},canvas:async S=>{let{toCanvas:C}=await ea(()=>Promise.resolve().then(()=>fAn),void 0);return C(a,{...t,...S||{},[FN]:!0})},png:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"png",[FN]:!0})},jpeg:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"jpeg",[FN]:!0})},jpg:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"jpeg",[FN]:!0})},webp:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"webp",[FN]:!0})},blob:async S=>{let{toBlob:C}=await ea(()=>Promise.resolve().then(()=>pAn),void 0);return C(a,{...t,...S||{},[FN]:!0})},img:async S=>{let{toImg:C}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return C(a,{...t,...S||{},[FN]:!0})}}},u=await Hoa("defineExports",o),h=Object.assign({},...u.filter(S=>S&&typeof S=="object")),f={...s,...h};f.jpeg&&!f.jpg&&(f.jpg=(S,C)=>f.jpeg(S,C));function p(S,C){let A={...t,...C||{}};return(S==="jpeg"||S==="jpg")&&(A.backgroundColor==null||A.backgroundColor==="transparent")&&(A.backgroundColor="#ffffff"),A}let m=!1,b=Promise.resolve();async function _(S,C){let A=async()=>{let k=f[S];if(!k)throw new Error(`[snapdom] Unknown export type: ${S}`);let I=p(S,C),N={...t,export:{type:S,options:I,url:a}};await iO("beforeExport",N);let L=await k(N,I);return await iO("afterExport",N,L),m||(m=!0,await iO("afterSnap",t)),L};return b=b.then(A)}let w={url:a,toRaw:()=>a,to:(S,C)=>_(S,C),toImg:S=>_("img",S),toSvg:S=>_("svg",S),toCanvas:S=>_("canvas",S),toBlob:S=>_("blob",S),toPng:S=>_("png",S),toJpg:S=>_("jpg",S),toWebp:S=>_("webp",S),download:S=>_("download",S)};for(let S of Object.keys(f)){let C="to"+S.charAt(0).toUpperCase()+S.slice(1);w[C]||(w[C]=A=>_(S,A))}return w};Wd.toRaw=(e,t)=>Wd(e,t).then(r=>r.toRaw());Wd.toImg=(e,t)=>Wd(e,t).then(r=>r.toImg());Wd.toSvg=(e,t)=>Wd(e,t).then(r=>r.toSvg());Wd.toCanvas=(e,t)=>Wd(e,t).then(r=>r.toCanvas());Wd.toBlob=(e,t)=>Wd(e,t).then(r=>r.toBlob());Wd.toPng=(e,t)=>Wd(e,{...t,format:"png"}).then(r=>r.toPng());Wd.toJpg=(e,t)=>Wd(e,{...t,format:"jpeg"}).then(r=>r.toJpg());Wd.toWebp=(e,t)=>Wd(e,{...t,format:"webp"}).then(r=>r.toWebp());Wd.download=(e,t)=>Wd(e,t).then(r=>r.download());async function bca(e,t){if(cht)return;let r={...t,fast:!0,embedFonts:!0,scale:.2},a;try{a=await pJn(e,r)}catch{}await new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(s))),a&&await new Promise(s=>{let o=new Image;try{o.decoding="sync",o.loading="eager"}catch{}o.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",o.src=a,document.body.appendChild(o),(async()=>{try{typeof o.decode=="function"&&await o.decode()}catch{}let u=performance.now();for(;!(o.complete&&o.naturalWidth>0)&&performance.now()-u<900;)await new Promise(h=>setTimeout(h,200));await new Promise(h=>requestAnimationFrame(h));try{o.remove()}catch{}s()})()}),e.querySelectorAll("canvas").forEach(s=>{try{let o=s.getContext("2d",{willReadFrequently:!0});o&&o.getImageData(0,0,1,1)}catch{}}),cht=!0}function yca(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;t.nextNode();){let r=t.currentNode,a=getComputedStyle(r),s=a.backgroundImage&&a.backgroundImage!=="none",o=a.maskImage&&a.maskImage!=="none"||a.webkitMaskImage&&a.webkitMaskImage!=="none";if(s||o||r.tagName==="CANVAS")return!0}return!1}const oCa=Object.freeze(Object.defineProperty({__proto__:null,plugins:gJn,snapdom:Wd},Symbol.toStringTag,{value:"Module"})),vca=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:IWn,createInfoServices:NWn},Symbol.toStringTag,{value:"Module"})),_ca=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:OWn,createPacketServices:LWn},Symbol.toStringTag,{value:"Module"})),wca=Object.freeze(Object.defineProperty({__proto__:null,PieModule:DWn,createPieServices:MWn},Symbol.toStringTag,{value:"Module"})),Eca=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:PWn,createArchitectureServices:BWn},Symbol.toStringTag,{value:"Module"})),xca=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:kWn,createGitGraphServices:RWn},Symbol.toStringTag,{value:"Module"})),Sca=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:FWn,createRadarServices:$Wn},Symbol.toStringTag,{value:"Module"})),Tca=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:zWn,createTreemapServices:GWn},Symbol.toStringTag,{value:"Module"})),d6e=(e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},bJn=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};d6e(e,r).lower()},Cca=(e,t)=>{const r=t.text.replace(aK," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},Aca=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const o=U9(a);s.attr("xlink:href",o)},kca=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const o=U9(a);s.attr("xlink:href",`#${o}`)},eU=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),Obt=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});var JTe=function(){var e=function(Ft,Je,ht,et){for(ht=ht||{},et=Ft.length;et--;ht[Ft[et]]=Je);return ht},t=[1,24],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,63],h=[1,64],f=[1,65],p=[1,66],m=[1,67],b=[1,68],_=[1,69],w=[1,29],S=[1,30],C=[1,31],A=[1,32],k=[1,33],I=[1,34],N=[1,35],L=[1,36],P=[1,37],M=[1,38],F=[1,39],U=[1,40],$=[1,41],G=[1,42],B=[1,43],Z=[1,44],z=[1,45],Y=[1,46],W=[1,47],Q=[1,48],V=[1,50],j=[1,51],ee=[1,52],te=[1,53],ne=[1,54],se=[1,55],ie=[1,56],ge=[1,57],ce=[1,58],be=[1,59],ve=[1,60],De=[14,42],ye=[14,34,36,37,38,39,40,41,42,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,70,71,72,73,74],Ee=[12,14,34,36,37,38,39,40,41,42,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,70,71,72,73,74],he=[1,82],we=[1,83],Ce=[1,84],Ie=[1,85],Le=[12,14,42],Fe=[12,14,33,42],Ve=[12,14,33,42,76,77,79,80],Oe=[12,33],Dt=[34,36,37,38,39,40,41,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,70,71,72,73,74],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(Je,ht,et,qe,He,Ge,Ye){var Ae=Ge.length-1;switch(He){case 3:qe.setDirection("TB");break;case 4:qe.setDirection("BT");break;case 5:qe.setDirection("RL");break;case 6:qe.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:qe.setC4Type(Ge[Ae-3]);break;case 19:qe.setTitle(Ge[Ae].substring(6)),this.$=Ge[Ae].substring(6);break;case 20:qe.setAccDescription(Ge[Ae].substring(15)),this.$=Ge[Ae].substring(15);break;case 21:this.$=Ge[Ae].trim(),qe.setTitle(this.$);break;case 22:case 23:this.$=Ge[Ae].trim(),qe.setAccDescription(this.$);break;case 28:case 29:Ge[Ae].splice(2,0,"ENTERPRISE"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 30:qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 31:Ge[Ae].splice(2,0,"CONTAINER"),qe.addContainerBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 32:qe.addDeploymentNode("node",...Ge[Ae]),this.$=Ge[Ae];break;case 33:qe.addDeploymentNode("nodeL",...Ge[Ae]),this.$=Ge[Ae];break;case 34:qe.addDeploymentNode("nodeR",...Ge[Ae]),this.$=Ge[Ae];break;case 35:qe.popBoundaryParseStack();break;case 39:qe.addPersonOrSystem("person",...Ge[Ae]),this.$=Ge[Ae];break;case 40:qe.addPersonOrSystem("external_person",...Ge[Ae]),this.$=Ge[Ae];break;case 41:qe.addPersonOrSystem("system",...Ge[Ae]),this.$=Ge[Ae];break;case 42:qe.addPersonOrSystem("system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 43:qe.addPersonOrSystem("system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 44:qe.addPersonOrSystem("external_system",...Ge[Ae]),this.$=Ge[Ae];break;case 45:qe.addPersonOrSystem("external_system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 46:qe.addPersonOrSystem("external_system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 47:qe.addContainer("container",...Ge[Ae]),this.$=Ge[Ae];break;case 48:qe.addContainer("container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 49:qe.addContainer("container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 50:qe.addContainer("external_container",...Ge[Ae]),this.$=Ge[Ae];break;case 51:qe.addContainer("external_container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 52:qe.addContainer("external_container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 53:qe.addComponent("component",...Ge[Ae]),this.$=Ge[Ae];break;case 54:qe.addComponent("component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 55:qe.addComponent("component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 56:qe.addComponent("external_component",...Ge[Ae]),this.$=Ge[Ae];break;case 57:qe.addComponent("external_component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 58:qe.addComponent("external_component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 60:qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 61:qe.addRel("birel",...Ge[Ae]),this.$=Ge[Ae];break;case 62:qe.addRel("rel_u",...Ge[Ae]),this.$=Ge[Ae];break;case 63:qe.addRel("rel_d",...Ge[Ae]),this.$=Ge[Ae];break;case 64:qe.addRel("rel_l",...Ge[Ae]),this.$=Ge[Ae];break;case 65:qe.addRel("rel_r",...Ge[Ae]),this.$=Ge[Ae];break;case 66:qe.addRel("rel_b",...Ge[Ae]),this.$=Ge[Ae];break;case 67:Ge[Ae].splice(0,1),qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 68:qe.updateElStyle("update_el_style",...Ge[Ae]),this.$=Ge[Ae];break;case 69:qe.updateRelStyle("update_rel_style",...Ge[Ae]),this.$=Ge[Ae];break;case 70:qe.updateLayoutConfig("update_layout_config",...Ge[Ae]),this.$=Ge[Ae];break;case 71:this.$=[Ge[Ae]];break;case 72:Ge[Ae].unshift(Ge[Ae-1]),this.$=Ge[Ae];break;case 73:case 75:this.$=Ge[Ae].trim();break;case 74:let Xe={};Xe[Ge[Ae-1].trim()]=Ge[Ae].trim(),this.$=Xe;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:70,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:71,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:72,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:73,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{14:[1,74]},e(De,[2,13],{43:23,29:49,30:61,32:62,20:75,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(De,[2,14]),e(ye,[2,16],{12:[1,76]}),e(De,[2,36],{12:[1,77]}),e(Ee,[2,19]),e(Ee,[2,20]),{25:[1,78]},{27:[1,79]},e(Ee,[2,23]),{35:80,75:81,76:he,77:we,79:Ce,80:Ie},{35:86,75:81,76:he,77:we,79:Ce,80:Ie},{35:87,75:81,76:he,77:we,79:Ce,80:Ie},{35:88,75:81,76:he,77:we,79:Ce,80:Ie},{35:89,75:81,76:he,77:we,79:Ce,80:Ie},{35:90,75:81,76:he,77:we,79:Ce,80:Ie},{35:91,75:81,76:he,77:we,79:Ce,80:Ie},{35:92,75:81,76:he,77:we,79:Ce,80:Ie},{35:93,75:81,76:he,77:we,79:Ce,80:Ie},{35:94,75:81,76:he,77:we,79:Ce,80:Ie},{35:95,75:81,76:he,77:we,79:Ce,80:Ie},{35:96,75:81,76:he,77:we,79:Ce,80:Ie},{35:97,75:81,76:he,77:we,79:Ce,80:Ie},{35:98,75:81,76:he,77:we,79:Ce,80:Ie},{35:99,75:81,76:he,77:we,79:Ce,80:Ie},{35:100,75:81,76:he,77:we,79:Ce,80:Ie},{35:101,75:81,76:he,77:we,79:Ce,80:Ie},{35:102,75:81,76:he,77:we,79:Ce,80:Ie},{35:103,75:81,76:he,77:we,79:Ce,80:Ie},{35:104,75:81,76:he,77:we,79:Ce,80:Ie},e(Le,[2,59]),{35:105,75:81,76:he,77:we,79:Ce,80:Ie},{35:106,75:81,76:he,77:we,79:Ce,80:Ie},{35:107,75:81,76:he,77:we,79:Ce,80:Ie},{35:108,75:81,76:he,77:we,79:Ce,80:Ie},{35:109,75:81,76:he,77:we,79:Ce,80:Ie},{35:110,75:81,76:he,77:we,79:Ce,80:Ie},{35:111,75:81,76:he,77:we,79:Ce,80:Ie},{35:112,75:81,76:he,77:we,79:Ce,80:Ie},{35:113,75:81,76:he,77:we,79:Ce,80:Ie},{35:114,75:81,76:he,77:we,79:Ce,80:Ie},{35:115,75:81,76:he,77:we,79:Ce,80:Ie},{20:116,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:we,79:Ce,80:Ie},{35:120,75:81,76:he,77:we,79:Ce,80:Ie},{35:121,75:81,76:he,77:we,79:Ce,80:Ie},{35:122,75:81,76:he,77:we,79:Ce,80:Ie},{35:123,75:81,76:he,77:we,79:Ce,80:Ie},{35:124,75:81,76:he,77:we,79:Ce,80:Ie},{35:125,75:81,76:he,77:we,79:Ce,80:Ie},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(De,[2,15]),e(ye,[2,17],{21:22,19:130,22:t,23:r,24:a,26:s,28:o}),e(De,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:a,26:s,28:o,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(Ee,[2,21]),e(Ee,[2,22]),e(Le,[2,39]),e(Fe,[2,71],{75:81,35:132,76:he,77:we,79:Ce,80:Ie}),e(Ve,[2,73]),{78:[1,133]},e(Ve,[2,75]),e(Ve,[2,76]),e(Le,[2,40]),e(Le,[2,41]),e(Le,[2,42]),e(Le,[2,43]),e(Le,[2,44]),e(Le,[2,45]),e(Le,[2,46]),e(Le,[2,47]),e(Le,[2,48]),e(Le,[2,49]),e(Le,[2,50]),e(Le,[2,51]),e(Le,[2,52]),e(Le,[2,53]),e(Le,[2,54]),e(Le,[2,55]),e(Le,[2,56]),e(Le,[2,57]),e(Le,[2,58]),e(Le,[2,60]),e(Le,[2,61]),e(Le,[2,62]),e(Le,[2,63]),e(Le,[2,64]),e(Le,[2,65]),e(Le,[2,66]),e(Le,[2,67]),e(Le,[2,68]),e(Le,[2,69]),e(Le,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Oe,[2,28]),e(Oe,[2,29]),e(Oe,[2,30]),e(Oe,[2,31]),e(Oe,[2,32]),e(Oe,[2,33]),e(Oe,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ye,[2,18]),e(De,[2,38]),e(Fe,[2,72]),e(Ve,[2,74]),e(Le,[2,24]),e(Le,[2,35]),e(Dt,[2,25]),e(Dt,[2,26],{12:[1,138]}),e(Dt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(Je,ht){if(ht.recoverable)this.trace(Je);else{var et=new Error(Je);throw et.hash=ht,et}},parse:function(Je){var ht=this,et=[0],qe=[],He=[null],Ge=[],Ye=this.table,Ae="",Xe=0,fe=0,Qe=2,Ke=1,mt=Ge.slice.call(arguments,1),lt=Object.create(this.lexer),$t={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&($t.yy[Ut]=this.yy[Ut]);lt.setInput(Je,$t.yy),$t.yy.lexer=lt,$t.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var Jt=lt.yylloc;Ge.push(Jt);var wn=lt.options&&lt.options.ranges;typeof $t.yy.parseError=="function"?this.parseError=$t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vn(){var pr;return pr=qe.pop()||lt.lex()||Ke,typeof pr!="number"&&(pr instanceof Array&&(qe=pr,pr=qe.pop()),pr=ht.symbols_[pr]||pr),pr}for(var Wn,Dn,zn,vn,Cn={},Ar,ur,On,Ir;;){if(Dn=et[et.length-1],this.defaultActions[Dn]?zn=this.defaultActions[Dn]:((Wn===null||typeof Wn>"u")&&(Wn=Vn()),zn=Ye[Dn]&&Ye[Dn][Wn]),typeof zn>"u"||!zn.length||!zn[0]){var Ln="";Ir=[];for(Ar in Ye[Dn])this.terminals_[Ar]&&Ar>Qe&&Ir.push("'"+this.terminals_[Ar]+"'");lt.showPosition?Ln="Parse error on line "+(Xe+1)+`:
`+lt.showPosition()+`
Expecting `+Ir.join(", ")+", got '"+(this.terminals_[Wn]||Wn)+"'":Ln="Parse error on line "+(Xe+1)+": Unexpected "+(Wn==Ke?"end of input":"'"+(this.terminals_[Wn]||Wn)+"'"),this.parseError(Ln,{text:lt.match,token:this.terminals_[Wn]||Wn,line:lt.yylineno,loc:Jt,expected:Ir})}if(zn[0]instanceof Array&&zn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dn+", token: "+Wn);switch(zn[0]){case 1:et.push(Wn),He.push(lt.yytext),Ge.push(lt.yylloc),et.push(zn[1]),Wn=null,fe=lt.yyleng,Ae=lt.yytext,Xe=lt.yylineno,Jt=lt.yylloc;break;case 2:if(ur=this.productions_[zn[1]][1],Cn.$=He[He.length-ur],Cn._$={first_line:Ge[Ge.length-(ur||1)].first_line,last_line:Ge[Ge.length-1].last_line,first_column:Ge[Ge.length-(ur||1)].first_column,last_column:Ge[Ge.length-1].last_column},wn&&(Cn._$.range=[Ge[Ge.length-(ur||1)].range[0],Ge[Ge.length-1].range[1]]),vn=this.performAction.apply(Cn,[Ae,fe,Xe,$t.yy,zn[1],He,Ge].concat(mt)),typeof vn<"u")return vn;ur&&(et=et.slice(0,-1*ur*2),He=He.slice(0,-1*ur),Ge=Ge.slice(0,-1*ur)),et.push(this.productions_[zn[1]][0]),He.push(Cn.$),Ge.push(Cn._$),On=Ye[et[et.length-2]][et[et.length-1]],et.push(On);break;case 3:return!0}}return!0}},sn=function(){var Ft={EOF:1,parseError:function(ht,et){if(this.yy.parser)this.yy.parser.parseError(ht,et);else throw new Error(ht)},setInput:function(Je,ht){return this.yy=ht||this.yy||{},this._input=Je,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 Je=this._input[0];this.yytext+=Je,this.yyleng++,this.offset++,this.match+=Je,this.matched+=Je;var ht=Je.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Je},unput:function(Je){var ht=Je.length,et=Je.split(/(?:\r\n?|\n)/g);this._input=Je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var qe=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),et.length-1&&(this.yylineno-=et.length-1);var He=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:et?(et.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-et.length].length-et[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Je){this.unput(this.match.slice(Je))},pastInput:function(){var Je=this.matched.substr(0,this.matched.length-this.match.length);return(Je.length>20?"...":"")+Je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Je=this.match;return Je.length<20&&(Je+=this._input.substr(0,20-Je.length)),(Je.substr(0,20)+(Je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Je=this.pastInput(),ht=new Array(Je.length+1).join("-");return Je+this.upcomingInput()+`
`+ht+"^"},test_match:function(Je,ht){var et,qe,He;if(this.options.backtrack_lexer&&(He={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&&(He.yylloc.range=this.yylloc.range.slice(0))),qe=Je[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Je[0].length},this.yytext+=Je[0],this.match+=Je[0],this.matches=Je,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(Je[0].length),this.matched+=Je[0],et=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var Ge in He)this[Ge]=He[Ge];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Je,ht,et,qe;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),Ge=0;Ge<He.length;Ge++)if(et=this._input.match(this.rules[He[Ge]]),et&&(!ht||et[0].length>ht[0].length)){if(ht=et,qe=Ge,this.options.backtrack_lexer){if(Je=this.test_match(et,He[Ge]),Je!==!1)return Je;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(Je=this.test_match(ht,He[qe]),Je!==!1?Je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ht=this.next();return ht||this.lex()},begin:function(ht){this.conditionStack.push(ht)},popState:function(){var ht=this.conditionStack.length-1;return ht>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(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},pushState:function(ht){this.begin(ht)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ht,et,qe,He){switch(qe){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,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,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ft}();ot.lexer=sn;function Kt(){this.yy={}}return Kt.prototype=ot,ot.Parser=Kt,new Kt}();JTe.parser=JTe;const Rca=JTe;let dT=[],PO=[""],iv="global",rT="",xA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ble=[],Lbt="",Dbt=!1,e5e=4,t5e=2;var yJn;const Ica=function(){return yJn},Nca=function(e){yJn=J0(e,Qt())},Oca=function(e,t,r,a,s,o,u,h,f){if(e==null||t===void 0||t===null||r===void 0||r===null||a===void 0||a===null)return;let p={};const m=ble.find(b=>b.from===t&&b.to===r);if(m?p=m:ble.push(p),p.type=e,p.from=t,p.to=r,p.label={text:a},s==null)p.techn={text:""};else if(typeof s=="object"){let[b,_]=Object.entries(s)[0];p[b]={text:_}}else p.techn={text:s};if(o==null)p.descr={text:""};else if(typeof o=="object"){let[b,_]=Object.entries(o)[0];p[b]={text:_}}else p.descr={text:o};if(typeof u=="object"){let[b,_]=Object.entries(u)[0];p[b]=_}else p.sprite=u;if(typeof h=="object"){let[b,_]=Object.entries(h)[0];p[b]=_}else p.tags=h;if(typeof f=="object"){let[b,_]=Object.entries(f)[0];p[b]=_}else p.link=f;p.wrap=lL()},Lca=function(e,t,r,a,s,o,u){if(t===null||r===null)return;let h={};const f=dT.find(p=>p.alias===t);if(f&&t===f.alias?h=f:(h.alias=t,dT.push(h)),r==null?h.label={text:""}:h.label={text:r},a==null)h.descr={text:""};else if(typeof a=="object"){let[p,m]=Object.entries(a)[0];h[p]={text:m}}else h.descr={text:a};if(typeof s=="object"){let[p,m]=Object.entries(s)[0];h[p]=m}else h.sprite=s;if(typeof o=="object"){let[p,m]=Object.entries(o)[0];h[p]=m}else h.tags=o;if(typeof u=="object"){let[p,m]=Object.entries(u)[0];h[p]=m}else h.link=u;h.typeC4Shape={text:e},h.parentBoundary=iv,h.wrap=lL()},Dca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=dT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,dT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=lL(),f.typeC4Shape={text:e},f.parentBoundary=iv},Mca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=dT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,dT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=lL(),f.typeC4Shape={text:e},f.parentBoundary=iv},Pca=function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=xA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,xA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"system"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=iv,o.wrap=lL(),rT=iv,iv=e,PO.push(rT)},Bca=function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=xA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,xA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"container"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=iv,o.wrap=lL(),rT=iv,iv=e,PO.push(rT)},Fca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=xA.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,xA.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.type={text:"node"};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.type={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.nodeType=e,f.parentBoundary=iv,f.wrap=lL(),rT=iv,iv=t,PO.push(rT)},$ca=function(){iv=rT,PO.pop(),rT=PO.pop(),PO.push(rT)},Uca=function(e,t,r,a,s,o,u,h,f,p,m){let b=dT.find(_=>_.alias===t);if(!(b===void 0&&(b=xA.find(_=>_.alias===t),b===void 0))){if(r!=null)if(typeof r=="object"){let[_,w]=Object.entries(r)[0];b[_]=w}else b.bgColor=r;if(a!=null)if(typeof a=="object"){let[_,w]=Object.entries(a)[0];b[_]=w}else b.fontColor=a;if(s!=null)if(typeof s=="object"){let[_,w]=Object.entries(s)[0];b[_]=w}else b.borderColor=s;if(o!=null)if(typeof o=="object"){let[_,w]=Object.entries(o)[0];b[_]=w}else b.shadowing=o;if(u!=null)if(typeof u=="object"){let[_,w]=Object.entries(u)[0];b[_]=w}else b.shape=u;if(h!=null)if(typeof h=="object"){let[_,w]=Object.entries(h)[0];b[_]=w}else b.sprite=h;if(f!=null)if(typeof f=="object"){let[_,w]=Object.entries(f)[0];b[_]=w}else b.techn=f;if(p!=null)if(typeof p=="object"){let[_,w]=Object.entries(p)[0];b[_]=w}else b.legendText=p;if(m!=null)if(typeof m=="object"){let[_,w]=Object.entries(m)[0];b[_]=w}else b.legendSprite=m}},zca=function(e,t,r,a,s,o,u){const h=ble.find(f=>f.from===t&&f.to===r);if(h!==void 0){if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.textColor=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.lineColor=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=parseInt(p)}else h.offsetX=parseInt(o);if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=parseInt(p)}else h.offsetY=parseInt(u)}},Gca=function(e,t,r){let a=e5e,s=t5e;if(typeof t=="object"){const o=Object.values(t)[0];a=parseInt(o)}else a=parseInt(t);if(typeof r=="object"){const o=Object.values(r)[0];s=parseInt(o)}else s=parseInt(r);a>=1&&(e5e=a),s>=1&&(t5e=s)},qca=function(){return e5e},Hca=function(){return t5e},Vca=function(){return iv},Yca=function(){return rT},vJn=function(e){return e==null?dT:dT.filter(t=>t.parentBoundary===e)},jca=function(e){return dT.find(t=>t.alias===e)},Wca=function(e){return Object.keys(vJn(e))},_Jn=function(e){return e==null?xA:xA.filter(t=>t.parentBoundary===e)},Kca=_Jn,Xca=function(){return ble},Qca=function(){return Lbt},Zca=function(e){Dbt=e},lL=function(){return Dbt},Jca=function(){dT=[],xA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rT="",iv="global",PO=[""],ble=[],PO=[""],Lbt="",Dbt=!1,e5e=4,t5e=2},eua={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},tua={FILLED:0,OPEN:1},nua={LEFTOF:0,RIGHTOF:1,OVER:2},rua=function(e){Lbt=J0(e,Qt())},uht={addPersonOrSystem:Lca,addPersonOrSystemBoundary:Pca,addContainer:Dca,addContainerBoundary:Bca,addComponent:Mca,addDeploymentNode:Fca,popBoundaryParseStack:$ca,addRel:Oca,updateElStyle:Uca,updateRelStyle:zca,updateLayoutConfig:Gca,autoWrap:lL,setWrap:Zca,getC4ShapeArray:vJn,getC4Shape:jca,getC4ShapeKeys:Wca,getBoundaries:_Jn,getBoundarys:Kca,getCurrentBoundaryParse:Vca,getParentBoundaryParse:Yca,getRels:Xca,getTitle:Qca,getC4Type:Ica,getC4ShapeInRow:qca,getC4BoundaryInRow:Hca,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,getConfig:()=>Qt().c4,clear:Jca,LINETYPE:eua,ARROWTYPE:tua,PLACEMENT:nua,setTitle:rua,setC4Type:Nca},Mbt=function(e,t){return d6e(e,t)},wJn=function(e,t,r,a,s,o){const u=e.append("image");u.attr("width",t),u.attr("height",r),u.attr("x",a),u.attr("y",s);let h=o.startsWith("data:image/png;base64")?o:U9(o);u.attr("xlink:href",h)},iua=(e,t,r)=>{const a=e.append("g");let s=0;for(let o of t){let u=o.textColor?o.textColor:"#444444",h=o.lineColor?o.lineColor:"#444444",f=o.offsetX?parseInt(o.offsetX):0,p=o.offsetY?parseInt(o.offsetY):0,m="";if(s===0){let _=a.append("line");_.attr("x1",o.startPoint.x),_.attr("y1",o.startPoint.y),_.attr("x2",o.endPoint.x),_.attr("y2",o.endPoint.y),_.attr("stroke-width","1"),_.attr("stroke",h),_.style("fill","none"),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)"),s=-1}else{let _=a.append("path");_.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)")}let b=r.messageFont();N7(r)(o.label.text,a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+p,o.label.width,o.label.height,{fill:u},b),o.techn&&o.techn.text!==""&&(b=r.messageFont(),N7(r)("["+o.techn.text+"]",a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+p,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:u,"font-style":"italic"},b))}},aua=function(e,t,r){const a=e.append("g");let s=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",u=t.fontColor?t.fontColor:"black",h={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(h={"stroke-width":1});let f={x:t.x,y:t.y,fill:s,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:h};Mbt(a,f);let p=r.boundaryFont();p.fontWeight="bold",p.fontSize=p.fontSize+2,p.fontColor=u,N7(r)(t.label.text,a,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},p),t.type&&t.type.text!==""&&(p=r.boundaryFont(),p.fontColor=u,N7(r)(t.type.text,a,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},p)),t.descr&&t.descr.text!==""&&(p=r.boundaryFont(),p.fontSize=p.fontSize-2,p.fontColor=u,N7(r)(t.descr.text,a,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},p))},sua=function(e,t,r){var a;let s=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],o=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],u=t.fontColor?t.fontColor:"#FFFFFF",h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":h="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":h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const f=e.append("g");f.attr("class","person-man");const p=eU();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":p.x=t.x,p.y=t.y,p.fill=s,p.width=t.width,p.height=t.height,p.stroke=o,p.rx=2.5,p.ry=2.5,p.attrs={"stroke-width":.5},Mbt(f,p);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":f.append("path").attr("fill",s).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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),f.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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":f.append("path").attr("fill",s).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",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),f.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",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let m=gua(r,t.typeC4Shape.text);switch(f.append("text").attr("fill",u).attr("font-family",m.fontFamily).attr("font-size",m.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":wJn(f,48,48,t.x+t.width/2-24,t.y+t.image.Y,h);break}let b=r[t.typeC4Shape.text+"Font"]();return b.fontWeight="bold",b.fontSize=b.fontSize+2,b.fontColor=u,N7(r)(t.label.text,f,t.x,t.y+t.label.Y,t.width,t.height,{fill:u},b),b=r[t.typeC4Shape.text+"Font"](),b.fontColor=u,t.techn&&((a=t.techn)==null?void 0:a.text)!==""?N7(r)(t.techn.text,f,t.x,t.y+t.techn.Y,t.width,t.height,{fill:u,"font-style":"italic"},b):t.type&&t.type.text!==""&&N7(r)(t.type.text,f,t.x,t.y+t.type.Y,t.width,t.height,{fill:u,"font-style":"italic"},b),t.descr&&t.descr.text!==""&&(b=r.personFont(),b.fontColor=u,N7(r)(t.descr.text,f,t.x,t.y+t.descr.Y,t.width,t.height,{fill:u},b)),t.height},oua=function(e){e.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")},lua=function(e){e.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")},cua=function(e){e.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")},uua=function(e){e.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")},hua=function(e){e.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")},dua=function(e){e.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")},fua=function(e){e.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)},pua=function(e){const r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.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"),r.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")},gua=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),N7=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("text-anchor","middle").text(s);a(b,m)}function t(s,o,u,h,f,p,m,b){const{fontSize:_,fontFamily:w,fontWeight:S}=b,C=s.split(mi.lineBreakRegex);for(let A=0;A<C.length;A++){const k=A*_-_*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",_).style("font-weight",S).style("font-family",w);I.append("tspan").attr("dy",k).text(C[A]).attr("alignment-baseline","mathematical"),a(I,m)}}function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}function a(s,o){for(const u in o)o.hasOwnProperty(u)&&s.attr(u,o[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),OC={drawRect:Mbt,drawBoundary:aua,drawC4Shape:sua,drawRels:iua,drawImage:wJn,insertArrowHead:uua,insertArrowEnd:hua,insertArrowFilledHead:dua,insertDynamicNumber:fua,insertArrowCrossHead:pua,insertDatabaseIcon:oua,insertComputerIcon:lua,insertClockIcon:cua};let n5e=0,r5e=0,EJn=4,hht=2;JTe.yy=uht;let cs={};class xJn{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,dht(t.db.getConfig())}setData(t,r,a,s){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=s}updateVal(t,r,a,s){t[r]===void 0?t[r]=a:t[r]=s(a,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,a=r+t.width,s=this.nextData.starty+t.margin*2,o=s+t.height;(r>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>EJn)&&(r=this.nextData.startx+t.margin+cs.nextLinePaddingX,s=this.nextData.stopy+t.margin*2,this.nextData.stopx=a=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=s+t.height,this.nextData.cnt=1),t.x=r,t.y=s,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",s,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",o,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",s,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",o,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},dht(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const dht=function(e){Tg(cs,e),e.fontFamily&&(cs.personFontFamily=cs.systemFontFamily=cs.messageFontFamily=e.fontFamily),e.fontSize&&(cs.personFontSize=cs.systemFontSize=cs.messageFontSize=e.fontSize),e.fontWeight&&(cs.personFontWeight=cs.systemFontWeight=cs.messageFontWeight=e.fontWeight)},vie=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),sSe=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),mua=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function U3(e,t,r,a,s){if(!t[e].width)if(r)t[e].text=eZn(t[e].text,s,a),t[e].textLines=t[e].text.split(mi.lineBreakRegex).length,t[e].width=s,t[e].height=Jut(t[e].text,a);else{let o=t[e].text.split(mi.lineBreakRegex);t[e].textLines=o.length;let u=0;t[e].height=0,t[e].width=0;for(const h of o)t[e].width=Math.max(dA(h,a),t[e].width),u=Jut(h,a),t[e].height=t[e].height+u}}const SJn=function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=cs.c4ShapeMargin-35;let a=t.wrap&&cs.wrap,s=sSe(cs);s.fontSize=s.fontSize+2,s.fontWeight="bold";let o=dA(t.label.text,s);U3("label",t,a,s,o),OC.drawBoundary(e,t,cs)},TJn=function(e,t,r,a){let s=0;for(const o of a){s=0;const u=r[o];let h=vie(cs,u.typeC4Shape.text);switch(h.fontSize=h.fontSize-2,u.typeC4Shape.width=dA("«"+u.typeC4Shape.text+"»",h),u.typeC4Shape.height=h.fontSize+2,u.typeC4Shape.Y=cs.c4ShapePadding,s=u.typeC4Shape.Y+u.typeC4Shape.height-4,u.image={width:0,height:0,Y:0},u.typeC4Shape.text){case"person":case"external_person":u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height;break}u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height);let f=u.wrap&&cs.wrap,p=cs.width-cs.c4ShapePadding*2,m=vie(cs,u.typeC4Shape.text);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",U3("label",u,f,m,p),u.label.Y=s+8,s=u.label.Y+u.label.height,u.type&&u.type.text!==""){u.type.text="["+u.type.text+"]";let w=vie(cs,u.typeC4Shape.text);U3("type",u,f,w,p),u.type.Y=s+5,s=u.type.Y+u.type.height}else if(u.techn&&u.techn.text!==""){u.techn.text="["+u.techn.text+"]";let w=vie(cs,u.techn.text);U3("techn",u,f,w,p),u.techn.Y=s+5,s=u.techn.Y+u.techn.height}let b=s,_=u.label.width;if(u.descr&&u.descr.text!==""){let w=vie(cs,u.typeC4Shape.text);U3("descr",u,f,w,p),u.descr.Y=s+20,s=u.descr.Y+u.descr.height,_=Math.max(u.label.width,u.descr.width),b=s-u.descr.textLines*5}_=_+cs.c4ShapePadding,u.width=Math.max(u.width||cs.width,_,cs.width),u.height=Math.max(u.height||cs.height,b,cs.height),u.margin=u.margin||cs.c4ShapeMargin,e.insert(u),OC.drawC4Shape(t,u,cs)}e.bumpLastMargin(cs.c4ShapeMargin)};let Ux=class{constructor(t,r){this.x=t,this.y=r}},U5n=function(e,t){let r=e.x,a=e.y,s=t.x,o=t.y,u=r+e.width/2,h=a+e.height/2,f=Math.abs(r-s),p=Math.abs(a-o),m=p/f,b=e.height/e.width,_=null;return a==o&&r<s?_=new Ux(r+e.width,h):a==o&&r>s?_=new Ux(r,h):r==s&&a<o?_=new Ux(u,a+e.height):r==s&&a>o&&(_=new Ux(u,a)),r>s&&a<o?b>=m?_=new Ux(r,h+m*e.width/2):_=new Ux(u-f/p*e.height/2,a+e.height):r<s&&a<o?b>=m?_=new Ux(r+e.width,h+m*e.width/2):_=new Ux(u+f/p*e.height/2,a+e.height):r<s&&a>o?b>=m?_=new Ux(r+e.width,h-m*e.width/2):_=new Ux(u+e.height/2*f/p,a):r>s&&a>o&&(b>=m?_=new Ux(r,h-e.width/2*m):_=new Ux(u-e.height/2*f/p,a)),_},bua=function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=U5n(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let s=U5n(t,r);return{startPoint:a,endPoint:s}};const yua=function(e,t,r,a){let s=0;for(let o of t){s=s+1;let u=o.wrap&&cs.wrap,h=mua(cs);a.db.getC4Type()==="C4Dynamic"&&(o.label.text=s+": "+o.label.text);let p=dA(o.label.text,h);U3("label",o,u,h,p),o.techn&&o.techn.text!==""&&(p=dA(o.techn.text,h),U3("techn",o,u,h,p)),o.descr&&o.descr.text!==""&&(p=dA(o.descr.text,h),U3("descr",o,u,h,p));let m=r(o.from),b=r(o.to),_=bua(m,b);o.startPoint=_.startPoint,o.endPoint=_.endPoint}OC.drawRels(e,t,cs)};function CJn(e,t,r,a,s){let o=new xJn(s);o.data.widthLimit=r.data.widthLimit/Math.min(hht,a.length);for(let[u,h]of a.entries()){let f=0;h.image={width:0,height:0,Y:0},h.sprite&&(h.image.width=48,h.image.height=48,h.image.Y=f,f=h.image.Y+h.image.height);let p=h.wrap&&cs.wrap,m=sSe(cs);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",U3("label",h,p,m,o.data.widthLimit),h.label.Y=f+8,f=h.label.Y+h.label.height,h.type&&h.type.text!==""){h.type.text="["+h.type.text+"]";let S=sSe(cs);U3("type",h,p,S,o.data.widthLimit),h.type.Y=f+5,f=h.type.Y+h.type.height}if(h.descr&&h.descr.text!==""){let S=sSe(cs);S.fontSize=S.fontSize-2,U3("descr",h,p,S,o.data.widthLimit),h.descr.Y=f+20,f=h.descr.Y+h.descr.height}if(u==0||u%hht===0){let S=r.data.startx+cs.diagramMarginX,C=r.data.stopy+cs.diagramMarginY+f;o.setData(S,S,C,C)}else{let S=o.data.stopx!==o.data.startx?o.data.stopx+cs.diagramMarginX:o.data.startx,C=o.data.starty;o.setData(S,S,C,C)}o.name=h.alias;let b=s.db.getC4ShapeArray(h.alias),_=s.db.getC4ShapeKeys(h.alias);_.length>0&&TJn(o,e,b,_),t=h.alias;let w=s.db.getBoundarys(t);w.length>0&&CJn(e,t,o,w,s),h.alias!=="global"&&SJn(e,h,o),r.data.stopy=Math.max(o.data.stopy+cs.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(o.data.stopx+cs.c4ShapeMargin,r.data.stopx),n5e=Math.max(n5e,r.data.stopx),r5e=Math.max(r5e,r.data.stopy)}}const vua=function(e,t,r,a){cs=Qt().c4;const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body");let h=a.db;a.db.setWrap(cs.wrap),EJn=h.getC4ShapeInRow(),hht=h.getC4BoundaryInRow(),ut.debug(`C:${JSON.stringify(cs,null,2)}`);const f=s==="sandbox"?u.select(`[id="${t}"]`):gn(`[id="${t}"]`);OC.insertComputerIcon(f),OC.insertDatabaseIcon(f),OC.insertClockIcon(f);let p=new xJn(a);p.setData(cs.diagramMarginX,cs.diagramMarginX,cs.diagramMarginY,cs.diagramMarginY),p.data.widthLimit=screen.availWidth,n5e=cs.diagramMarginX,r5e=cs.diagramMarginY;const m=a.db.getTitle();let b=a.db.getBoundarys("");CJn(f,"",p,b,a),OC.insertArrowHead(f),OC.insertArrowEnd(f),OC.insertArrowCrossHead(f),OC.insertArrowFilledHead(f),yua(f,a.db.getRels(),a.db.getC4Shape,a),p.data.stopx=n5e,p.data.stopy=r5e;const _=p.data;let S=_.stopy-_.starty+2*cs.diagramMarginY;const A=_.stopx-_.startx+2*cs.diagramMarginX;m&&f.append("text").text(m).attr("x",(_.stopx-_.startx)/2-4*cs.diagramMarginX).attr("y",_.starty+cs.diagramMarginY),Db(f,S,A,cs.useMaxWidth);const k=m?60:0;f.attr("viewBox",_.startx-cs.diagramMarginX+" -"+(cs.diagramMarginY+k)+" "+A+" "+(S+k)),ut.debug("models:",_)},z5n={drawPersonOrSystemArray:TJn,drawBoundary:SJn,setConf:dht,draw:vua},_ua=e=>`.person {
    stroke: ${e.personBorder};
    fill: ${e.personBkg};
  }
`,wua=_ua,Eua={parser:Rca,db:uht,renderer:z5n,styles:wua,init:({c4:e,wrap:t})=>{z5n.setConf(e),uht.setWrap(t)}},xua=Object.freeze(Object.defineProperty({__proto__:null,diagram:Eua},Symbol.toStringTag,{value:"Module"}));var fht=function(){var e=function(Rs,Vr,Ii,Pa){for(Ii=Ii||{},Pa=Rs.length;Pa--;Ii[Rs[Pa]]=Vr);return Ii},t=[1,4],r=[1,3],a=[1,5],s=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],o=[2,2],u=[1,13],h=[1,14],f=[1,15],p=[1,16],m=[1,23],b=[1,25],_=[1,26],w=[1,27],S=[1,49],C=[1,48],A=[1,29],k=[1,30],I=[1,31],N=[1,32],L=[1,33],P=[1,44],M=[1,46],F=[1,42],U=[1,47],$=[1,43],G=[1,50],B=[1,45],Z=[1,51],z=[1,52],Y=[1,34],W=[1,35],Q=[1,36],V=[1,37],j=[1,57],ee=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],te=[1,61],ne=[1,60],se=[1,62],ie=[8,9,11,73,75],ge=[1,88],ce=[1,93],be=[1,92],ve=[1,89],De=[1,85],ye=[1,91],Ee=[1,87],he=[1,94],we=[1,90],Ce=[1,95],Ie=[1,86],Le=[8,9,10,11,73,75],Fe=[8,9,10,11,44,73,75],Ve=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Oe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],Dt=[42,58,86,99,102,103,106,108,111,112,113],ot=[1,121],sn=[1,120],Kt=[1,128],Ft=[1,142],Je=[1,143],ht=[1,144],et=[1,145],qe=[1,130],He=[1,132],Ge=[1,136],Ye=[1,137],Ae=[1,138],Xe=[1,139],fe=[1,140],Qe=[1,141],Ke=[1,146],mt=[1,147],lt=[1,126],$t=[1,127],Ut=[1,134],Jt=[1,129],wn=[1,133],Vn=[1,131],Wn=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Dn=[1,149],zn=[8,9,11],vn=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Cn=[1,169],Ar=[1,165],ur=[1,166],On=[1,170],Ir=[1,167],Ln=[1,168],pr=[75,113,116],Cr=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Zr=[10,103],Pr=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Ci=[1,235],ds=[1,233],ta=[1,237],Os=[1,231],uo=[1,232],Ls=[1,234],La=[1,236],to=[1,238],Fi=[1,255],Pt=[8,9,11,103],St=[8,9,10,11,58,81,102,103,106,107,108,109],Un={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(Vr,Ii,Pa,Or,no,dt,Wi){var Tt=dt.length-1;switch(no){case 2:this.$=[];break;case 3:(!Array.isArray(dt[Tt])||dt[Tt].length>0)&&dt[Tt-1].push(dt[Tt]),this.$=dt[Tt-1];break;case 4:case 176:this.$=dt[Tt];break;case 11:Or.setDirection("TB"),this.$="TB";break;case 12:Or.setDirection(dt[Tt-1]),this.$=dt[Tt-1];break;case 27:this.$=dt[Tt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Or.addSubGraph(dt[Tt-6],dt[Tt-1],dt[Tt-4]);break;case 34:this.$=Or.addSubGraph(dt[Tt-3],dt[Tt-1],dt[Tt-3]);break;case 35:this.$=Or.addSubGraph(void 0,dt[Tt-1],void 0);break;case 37:this.$=dt[Tt].trim(),Or.setAccTitle(this.$);break;case 38:case 39:this.$=dt[Tt].trim(),Or.setAccDescription(this.$);break;case 43:Or.addLink(dt[Tt-2].stmt,dt[Tt],dt[Tt-1]),this.$={stmt:dt[Tt],nodes:dt[Tt].concat(dt[Tt-2].nodes)};break;case 44:Or.addLink(dt[Tt-3].stmt,dt[Tt-1],dt[Tt-2]),this.$={stmt:dt[Tt-1],nodes:dt[Tt-1].concat(dt[Tt-3].nodes)};break;case 45:this.$={stmt:dt[Tt-1],nodes:dt[Tt-1]};break;case 46:this.$={stmt:dt[Tt],nodes:dt[Tt]};break;case 47:this.$=[dt[Tt]];break;case 48:this.$=dt[Tt-4].concat(dt[Tt]);break;case 49:this.$=dt[Tt];break;case 50:this.$=dt[Tt-2],Or.setClass(dt[Tt-2],dt[Tt]);break;case 51:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"square");break;case 52:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"doublecircle");break;case 53:this.$=dt[Tt-5],Or.addVertex(dt[Tt-5],dt[Tt-2],"circle");break;case 54:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"ellipse");break;case 55:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"stadium");break;case 56:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"subroutine");break;case 57:this.$=dt[Tt-7],Or.addVertex(dt[Tt-7],dt[Tt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[dt[Tt-5],dt[Tt-3]]]));break;case 58:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"cylinder");break;case 59:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"round");break;case 60:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"diamond");break;case 61:this.$=dt[Tt-5],Or.addVertex(dt[Tt-5],dt[Tt-2],"hexagon");break;case 62:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"odd");break;case 63:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"trapezoid");break;case 64:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"inv_trapezoid");break;case 65:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"lean_right");break;case 66:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"lean_left");break;case 67:this.$=dt[Tt],Or.addVertex(dt[Tt]);break;case 68:dt[Tt-1].text=dt[Tt],this.$=dt[Tt-1];break;case 69:case 70:dt[Tt-2].text=dt[Tt-1],this.$=dt[Tt-2];break;case 71:this.$=dt[Tt];break;case 72:var xr=Or.destructLink(dt[Tt],dt[Tt-2]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length,text:dt[Tt-1]};break;case 73:this.$={text:dt[Tt],type:"text"};break;case 74:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 75:this.$={text:dt[Tt],type:"string"};break;case 76:this.$={text:dt[Tt],type:"markdown"};break;case 77:var xr=Or.destructLink(dt[Tt]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length};break;case 78:this.$=dt[Tt-1];break;case 79:this.$={text:dt[Tt],type:"text"};break;case 80:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 81:this.$={text:dt[Tt],type:"string"};break;case 82:case 97:this.$={text:dt[Tt],type:"markdown"};break;case 94:this.$={text:dt[Tt],type:"text"};break;case 95:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 96:this.$={text:dt[Tt],type:"text"};break;case 98:this.$=dt[Tt-4],Or.addClass(dt[Tt-2],dt[Tt]);break;case 99:this.$=dt[Tt-4],Or.setClass(dt[Tt-2],dt[Tt]);break;case 100:case 108:this.$=dt[Tt-1],Or.setClickEvent(dt[Tt-1],dt[Tt]);break;case 101:case 109:this.$=dt[Tt-3],Or.setClickEvent(dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-3],dt[Tt]);break;case 102:this.$=dt[Tt-2],Or.setClickEvent(dt[Tt-2],dt[Tt-1],dt[Tt]);break;case 103:this.$=dt[Tt-4],Or.setClickEvent(dt[Tt-4],dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-4],dt[Tt]);break;case 104:this.$=dt[Tt-2],Or.setLink(dt[Tt-2],dt[Tt]);break;case 105:this.$=dt[Tt-4],Or.setLink(dt[Tt-4],dt[Tt-2]),Or.setTooltip(dt[Tt-4],dt[Tt]);break;case 106:this.$=dt[Tt-4],Or.setLink(dt[Tt-4],dt[Tt-2],dt[Tt]);break;case 107:this.$=dt[Tt-6],Or.setLink(dt[Tt-6],dt[Tt-4],dt[Tt]),Or.setTooltip(dt[Tt-6],dt[Tt-2]);break;case 110:this.$=dt[Tt-1],Or.setLink(dt[Tt-1],dt[Tt]);break;case 111:this.$=dt[Tt-3],Or.setLink(dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-3],dt[Tt]);break;case 112:this.$=dt[Tt-3],Or.setLink(dt[Tt-3],dt[Tt-2],dt[Tt]);break;case 113:this.$=dt[Tt-5],Or.setLink(dt[Tt-5],dt[Tt-4],dt[Tt]),Or.setTooltip(dt[Tt-5],dt[Tt-2]);break;case 114:this.$=dt[Tt-4],Or.addVertex(dt[Tt-2],void 0,void 0,dt[Tt]);break;case 115:this.$=dt[Tt-4],Or.updateLink([dt[Tt-2]],dt[Tt]);break;case 116:this.$=dt[Tt-4],Or.updateLink(dt[Tt-2],dt[Tt]);break;case 117:this.$=dt[Tt-8],Or.updateLinkInterpolate([dt[Tt-6]],dt[Tt-2]),Or.updateLink([dt[Tt-6]],dt[Tt]);break;case 118:this.$=dt[Tt-8],Or.updateLinkInterpolate(dt[Tt-6],dt[Tt-2]),Or.updateLink(dt[Tt-6],dt[Tt]);break;case 119:this.$=dt[Tt-6],Or.updateLinkInterpolate([dt[Tt-4]],dt[Tt]);break;case 120:this.$=dt[Tt-6],Or.updateLinkInterpolate(dt[Tt-4],dt[Tt]);break;case 121:case 123:this.$=[dt[Tt]];break;case 122:case 124:dt[Tt-2].push(dt[Tt]),this.$=dt[Tt-2];break;case 126:this.$=dt[Tt-1]+dt[Tt];break;case 174:this.$=dt[Tt];break;case 175:this.$=dt[Tt-1]+""+dt[Tt];break;case 177:this.$=dt[Tt-1]+""+dt[Tt];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:t,10:r,12:a},{1:[3]},e(s,o,{5:6}),{4:7,9:t,10:r,12:a},{4:8,9:t,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},e(s,[2,9]),e(s,[2,10]),e(s,[2,11]),{8:[1,54],9:[1,55],10:j,15:53,18:56},e(ee,[2,3]),e(ee,[2,4]),e(ee,[2,5]),e(ee,[2,6]),e(ee,[2,7]),e(ee,[2,8]),{8:te,9:ne,11:se,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:te,9:ne,11:se,21:66},{8:te,9:ne,11:se,21:67},{8:te,9:ne,11:se,21:68},{8:te,9:ne,11:se,21:69},{8:te,9:ne,11:se,21:70},{8:te,9:ne,10:[1,71],11:se,21:72},e(ee,[2,36]),{35:[1,73]},{37:[1,74]},e(ee,[2,39]),e(ie,[2,46],{18:75,10:j}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:ge,42:ce,58:be,77:[1,83],86:ve,92:[1,80],94:[1,81],98:82,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},e(ee,[2,178]),e(ee,[2,179]),e(ee,[2,180]),e(ee,[2,181]),e(Le,[2,47]),e(Le,[2,49],{44:[1,96]}),e(Fe,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:C,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),e(Ve,[2,174]),e(Ve,[2,135]),e(Ve,[2,136]),e(Ve,[2,137]),e(Ve,[2,138]),e(Ve,[2,139]),e(Ve,[2,140]),e(Ve,[2,141]),e(Ve,[2,142]),e(Ve,[2,143]),e(Ve,[2,144]),e(Ve,[2,145]),e(s,[2,12]),e(s,[2,18]),e(s,[2,19]),{9:[1,110]},e(Oe,[2,26],{18:111,10:j}),e(ee,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(ee,[2,40]),e(ee,[2,41]),e(ee,[2,42]),e(Dt,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ot,116:sn},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(ee,[2,28]),e(ee,[2,29]),e(ee,[2,30]),e(ee,[2,31]),e(ee,[2,32]),{10:Kt,12:Ft,14:Je,27:ht,28:122,32:et,42:qe,58:He,73:Ge,77:[1,124],78:[1,125],80:135,81:Ye,82:Ae,83:Xe,84:fe,85:Qe,86:Ke,87:mt,88:123,102:lt,106:$t,108:Ut,111:Jt,112:wn,113:Vn},e(Wn,o,{5:148}),e(ee,[2,37]),e(ee,[2,38]),e(ie,[2,45],{42:Dn}),{42:S,45:150,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{42:S,45:155,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(zn,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(zn,[2,108],{117:160,10:[1,159],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,110],{10:[1,161]}),e(vn,[2,176]),e(vn,[2,163]),e(vn,[2,164]),e(vn,[2,165]),e(vn,[2,166]),e(vn,[2,167]),e(vn,[2,168]),e(vn,[2,169]),e(vn,[2,170]),e(vn,[2,171]),e(vn,[2,172]),e(vn,[2,173]),{42:S,45:162,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{30:163,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:171,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:173,48:[1,172],65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:174,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:175,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:176,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{106:[1,177]},{30:178,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:179,63:[1,180],65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:181,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:182,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:183,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Ve,[2,175]),e(s,[2,20]),e(Oe,[2,25]),e(ie,[2,43],{18:184,10:j}),e(Dt,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{75:[1,188],76:189,113:ot,116:sn},e(pr,[2,73]),e(pr,[2,75]),e(pr,[2,76]),e(pr,[2,161]),e(pr,[2,162]),{8:te,9:ne,10:Kt,11:se,12:Ft,14:Je,21:191,27:ht,29:[1,190],32:et,42:qe,58:He,73:Ge,80:135,81:Ye,82:Ae,83:Xe,84:fe,85:Qe,86:Ke,87:mt,88:192,102:lt,106:$t,108:Ut,111:Jt,112:wn,113:Vn},e(Cr,[2,94]),e(Cr,[2,96]),e(Cr,[2,97]),e(Cr,[2,150]),e(Cr,[2,151]),e(Cr,[2,152]),e(Cr,[2,153]),e(Cr,[2,154]),e(Cr,[2,155]),e(Cr,[2,156]),e(Cr,[2,157]),e(Cr,[2,158]),e(Cr,[2,159]),e(Cr,[2,160]),e(Cr,[2,83]),e(Cr,[2,84]),e(Cr,[2,85]),e(Cr,[2,86]),e(Cr,[2,87]),e(Cr,[2,88]),e(Cr,[2,89]),e(Cr,[2,90]),e(Cr,[2,91]),e(Cr,[2,92]),e(Cr,[2,93]),{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,193],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},{10:j,18:194},{10:[1,195],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{10:[1,196]},{10:[1,197],103:[1,198]},e(Zr,[2,121]),{10:[1,199],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{10:[1,200],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{77:[1,201]},e(zn,[2,102],{10:[1,202]}),e(zn,[2,104],{10:[1,203]}),{77:[1,204]},e(vn,[2,177]),{77:[1,205],95:[1,206]},e(Le,[2,50],{110:109,42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),{31:[1,207],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Pr,[2,79]),e(Pr,[2,81]),e(Pr,[2,82]),e(Pr,[2,146]),e(Pr,[2,147]),e(Pr,[2,148]),e(Pr,[2,149]),{47:[1,209],65:Cn,79:208,113:On,114:Ir,115:Ln},{30:210,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{49:[1,211],65:Cn,79:208,113:On,114:Ir,115:Ln},{51:[1,212],65:Cn,79:208,113:On,114:Ir,115:Ln},{53:[1,213],65:Cn,79:208,113:On,114:Ir,115:Ln},{55:[1,214],65:Cn,79:208,113:On,114:Ir,115:Ln},{58:[1,215]},{62:[1,216],65:Cn,79:208,113:On,114:Ir,115:Ln},{64:[1,217],65:Cn,79:208,113:On,114:Ir,115:Ln},{30:218,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{31:[1,219],65:Cn,79:208,113:On,114:Ir,115:Ln},{65:Cn,67:[1,220],69:[1,221],79:208,113:On,114:Ir,115:Ln},{65:Cn,67:[1,223],69:[1,222],79:208,113:On,114:Ir,115:Ln},e(ie,[2,44],{42:Dn}),e(Dt,[2,70]),e(Dt,[2,69]),{60:[1,224],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Dt,[2,72]),e(pr,[2,74]),{30:225,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Wn,o,{5:226}),e(Cr,[2,95]),e(ee,[2,35]),{41:227,42:S,43:39,45:40,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{10:Ci,58:ds,81:ta,89:228,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:239,101:[1,240],102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:241,101:[1,242],102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{102:[1,243]},{10:Ci,58:ds,81:ta,89:244,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{42:S,45:245,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(zn,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(zn,[2,109]),e(zn,[2,111],{10:[1,249]}),e(zn,[2,112]),e(Fe,[2,51]),e(Pr,[2,80]),e(Fe,[2,52]),{49:[1,250],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Fe,[2,59]),e(Fe,[2,54]),e(Fe,[2,55]),e(Fe,[2,56]),{106:[1,251]},e(Fe,[2,58]),e(Fe,[2,60]),{64:[1,252],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Fe,[2,62]),e(Fe,[2,63]),e(Fe,[2,65]),e(Fe,[2,64]),e(Fe,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:Cn,79:208,113:On,114:Ir,115:Ln},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,254],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},e(Le,[2,48]),e(zn,[2,114],{103:Fi}),e(Pt,[2,123],{105:256,10:Ci,58:ds,81:ta,102:Os,106:uo,107:Ls,108:La,109:to}),e(St,[2,125]),e(St,[2,127]),e(St,[2,128]),e(St,[2,129]),e(St,[2,130]),e(St,[2,131]),e(St,[2,132]),e(St,[2,133]),e(St,[2,134]),e(zn,[2,115],{103:Fi}),{10:[1,257]},e(zn,[2,116],{103:Fi}),{10:[1,258]},e(Zr,[2,122]),e(zn,[2,98],{103:Fi}),e(zn,[2,99],{110:109,42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),e(zn,[2,103]),e(zn,[2,105],{10:[1,259]}),e(zn,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:te,9:ne,11:se,21:264},e(ee,[2,34]),{10:Ci,58:ds,81:ta,102:Os,104:265,105:230,106:uo,107:Ls,108:La,109:to},e(St,[2,126]),{14:ge,42:ce,58:be,86:ve,98:266,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},{14:ge,42:ce,58:be,86:ve,98:267,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},{95:[1,268]},e(zn,[2,113]),e(Fe,[2,53]),{30:269,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Fe,[2,61]),e(Wn,o,{5:270}),e(Pt,[2,124],{105:256,10:Ci,58:ds,81:ta,102:Os,106:uo,107:Ls,108:La,109:to}),e(zn,[2,119],{117:160,10:[1,271],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,120],{117:160,10:[1,272],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,107]),{31:[1,273],65:Cn,79:208,113:On,114:Ir,115:Ln},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,274],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},{10:Ci,58:ds,81:ta,89:275,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:276,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},e(Fe,[2,57]),e(ee,[2,33]),e(zn,[2,117],{103:Fi}),e(zn,[2,118],{103:Fi})],defaultActions:{},parseError:function(Vr,Ii){if(Ii.recoverable)this.trace(Vr);else{var Pa=new Error(Vr);throw Pa.hash=Ii,Pa}},parse:function(Vr){var Ii=this,Pa=[0],Or=[],no=[null],dt=[],Wi=this.table,Tt="",xr=0,qs=0,Rt=2,Bb=1,Gt=dt.slice.call(arguments,1),Ds=Object.create(this.lexer),Lm={yy:{}};for(var BS in this.yy)Object.prototype.hasOwnProperty.call(this.yy,BS)&&(Lm.yy[BS]=this.yy[BS]);Ds.setInput(Vr,Lm.yy),Lm.yy.lexer=Ds,Lm.yy.parser=this,typeof Ds.yylloc>"u"&&(Ds.yylloc={});var eE=Ds.yylloc;dt.push(eE);var uL=Ds.options&&Ds.options.ranges;typeof Lm.yy.parseError=="function"?this.parseError=Lm.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rd(){var Pf;return Pf=Or.pop()||Ds.lex()||Bb,typeof Pf!="number"&&(Pf instanceof Array&&(Or=Pf,Pf=Or.pop()),Pf=Ii.symbols_[Pf]||Pf),Pf}for(var Fh,Fb,e1,wT,d_={},tE,qu,$b,Mf;;){if(Fb=Pa[Pa.length-1],this.defaultActions[Fb]?e1=this.defaultActions[Fb]:((Fh===null||typeof Fh>"u")&&(Fh=rd()),e1=Wi[Fb]&&Wi[Fb][Fh]),typeof e1>"u"||!e1.length||!e1[0]){var nE="";Mf=[];for(tE in Wi[Fb])this.terminals_[tE]&&tE>Rt&&Mf.push("'"+this.terminals_[tE]+"'");Ds.showPosition?nE="Parse error on line "+(xr+1)+`:
`+Ds.showPosition()+`
Expecting `+Mf.join(", ")+", got '"+(this.terminals_[Fh]||Fh)+"'":nE="Parse error on line "+(xr+1)+": Unexpected "+(Fh==Bb?"end of input":"'"+(this.terminals_[Fh]||Fh)+"'"),this.parseError(nE,{text:Ds.match,token:this.terminals_[Fh]||Fh,line:Ds.yylineno,loc:eE,expected:Mf})}if(e1[0]instanceof Array&&e1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fb+", token: "+Fh);switch(e1[0]){case 1:Pa.push(Fh),no.push(Ds.yytext),dt.push(Ds.yylloc),Pa.push(e1[1]),Fh=null,qs=Ds.yyleng,Tt=Ds.yytext,xr=Ds.yylineno,eE=Ds.yylloc;break;case 2:if(qu=this.productions_[e1[1]][1],d_.$=no[no.length-qu],d_._$={first_line:dt[dt.length-(qu||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(qu||1)].first_column,last_column:dt[dt.length-1].last_column},uL&&(d_._$.range=[dt[dt.length-(qu||1)].range[0],dt[dt.length-1].range[1]]),wT=this.performAction.apply(d_,[Tt,qs,xr,Lm.yy,e1[1],no,dt].concat(Gt)),typeof wT<"u")return wT;qu&&(Pa=Pa.slice(0,-1*qu*2),no=no.slice(0,-1*qu),dt=dt.slice(0,-1*qu)),Pa.push(this.productions_[e1[1]][0]),no.push(d_.$),dt.push(d_._$),$b=Wi[Pa[Pa.length-2]][Pa[Pa.length-1]],Pa.push($b);break;case 3:return!0}}return!0}},Hr=function(){var Rs={EOF:1,parseError:function(Ii,Pa){if(this.yy.parser)this.yy.parser.parseError(Ii,Pa);else throw new Error(Ii)},setInput:function(Vr,Ii){return this.yy=Ii||this.yy||{},this._input=Vr,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 Vr=this._input[0];this.yytext+=Vr,this.yyleng++,this.offset++,this.match+=Vr,this.matched+=Vr;var Ii=Vr.match(/(?:\r\n?|\n).*/g);return Ii?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Vr},unput:function(Vr){var Ii=Vr.length,Pa=Vr.split(/(?:\r\n?|\n)/g);this._input=Vr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ii),this.offset-=Ii;var Or=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),Pa.length-1&&(this.yylineno-=Pa.length-1);var no=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:Pa?(Pa.length===Or.length?this.yylloc.first_column:0)+Or[Or.length-Pa.length].length-Pa[0].length:this.yylloc.first_column-Ii},this.options.ranges&&(this.yylloc.range=[no[0],no[0]+this.yyleng-Ii]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Vr){this.unput(this.match.slice(Vr))},pastInput:function(){var Vr=this.matched.substr(0,this.matched.length-this.match.length);return(Vr.length>20?"...":"")+Vr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Vr=this.match;return Vr.length<20&&(Vr+=this._input.substr(0,20-Vr.length)),(Vr.substr(0,20)+(Vr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Vr=this.pastInput(),Ii=new Array(Vr.length+1).join("-");return Vr+this.upcomingInput()+`
`+Ii+"^"},test_match:function(Vr,Ii){var Pa,Or,no;if(this.options.backtrack_lexer&&(no={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&&(no.yylloc.range=this.yylloc.range.slice(0))),Or=Vr[0].match(/(?:\r\n?|\n).*/g),Or&&(this.yylineno+=Or.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Or?Or[Or.length-1].length-Or[Or.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Vr[0].length},this.yytext+=Vr[0],this.match+=Vr[0],this.matches=Vr,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(Vr[0].length),this.matched+=Vr[0],Pa=this.performAction.call(this,this.yy,this,Ii,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pa)return Pa;if(this._backtrack){for(var dt in no)this[dt]=no[dt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Vr,Ii,Pa,Or;this._more||(this.yytext="",this.match="");for(var no=this._currentRules(),dt=0;dt<no.length;dt++)if(Pa=this._input.match(this.rules[no[dt]]),Pa&&(!Ii||Pa[0].length>Ii[0].length)){if(Ii=Pa,Or=dt,this.options.backtrack_lexer){if(Vr=this.test_match(Pa,no[dt]),Vr!==!1)return Vr;if(this._backtrack){Ii=!1;continue}else return!1}else if(!this.options.flex)break}return Ii?(Vr=this.test_match(Ii,no[Or]),Vr!==!1?Vr:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ii=this.next();return Ii||this.lex()},begin:function(Ii){this.conditionStack.push(Ii)},popState:function(){var Ii=this.conditionStack.length-1;return Ii>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(Ii){return Ii=this.conditionStack.length-1-Math.abs(Ii||0),Ii>=0?this.conditionStack[Ii]:"INITIAL"},pushState:function(Ii){this.begin(Ii)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ii,Pa,Or,no){switch(Or){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;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:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 30:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 31:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\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<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return Rs}();Un.lexer=Hr;function za(){this.yy={}}return za.prototype=Un,Un.Parser=za,new za}();fht.parser=fht;const Pbt=fht,Sua="flowchart-";let G5n=0,lW=Qt(),bd={},z3=[],UV={},pR=[],i5e={},a5e={},oSe=0,pht=!0,qx,f6e,p6e=[];const g6e=e=>mi.sanitizeText(e,lW),Jce=function(e){const t=Object.keys(bd);for(const r of t)if(bd[r].id===e)return bd[r].domId;return e},AJn=function(e,t,r,a,s,o,u={}){let h,f=e;f!==void 0&&f.trim().length!==0&&(bd[f]===void 0&&(bd[f]={id:f,labelType:"text",domId:Sua+f+"-"+G5n,styles:[],classes:[]}),G5n++,t!==void 0?(lW=Qt(),h=g6e(t.text.trim()),bd[f].labelType=t.type,h[0]==='"'&&h[h.length-1]==='"'&&(h=h.substring(1,h.length-1)),bd[f].text=h):bd[f].text===void 0&&(bd[f].text=e),r!==void 0&&(bd[f].type=r),a!=null&&a.forEach(function(p){bd[f].styles.push(p)}),s!=null&&s.forEach(function(p){bd[f].classes.push(p)}),o!==void 0&&(bd[f].dir=o),bd[f].props===void 0?bd[f].props=u:u!==void 0&&Object.assign(bd[f].props,u))},kJn=function(e,t,r){const o={start:e,end:t,type:void 0,text:"",labelType:"text"};ut.info("abc78 Got edge...",o);const u=r.text;if(u!==void 0&&(o.text=g6e(u.text.trim()),o.text[0]==='"'&&o.text[o.text.length-1]==='"'&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=u.type),r!==void 0&&(o.type=r.type,o.stroke=r.stroke,o.length=r.length),(o==null?void 0:o.length)>10&&(o.length=10),z3.length<(lW.maxEdges??500))ut.info("abc78 pushing edge..."),z3.push(o);else throw new Error(`Edge limit exceeded. ${z3.length} edges found, but the limit is ${lW.maxEdges}.

Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},RJn=function(e,t,r){ut.info("addLink (abc78)",e,t,r);let a,s;for(a=0;a<e.length;a++)for(s=0;s<t.length;s++)kJn(e[a],t[s],r)},IJn=function(e,t){e.forEach(function(r){r==="default"?z3.defaultInterpolate=t:z3[r].interpolate=t})},NJn=function(e,t){e.forEach(function(r){if(r>=z3.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z3.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?z3.defaultStyle=t:(il.isSubstringInArray("fill",t)===-1&&t.push("fill:none"),z3[r].style=t)})},OJn=function(e,t){e.split(",").forEach(function(r){UV[r]===void 0&&(UV[r]={id:r,styles:[],textStyles:[]}),t!=null&&t.forEach(function(a){if(a.match("color")){const s=a.replace("fill","bgFill").replace("color","fill");UV[r].textStyles.push(s)}UV[r].styles.push(a)})})},LJn=function(e){qx=e,qx.match(/.*</)&&(qx="RL"),qx.match(/.*\^/)&&(qx="BT"),qx.match(/.*>/)&&(qx="LR"),qx.match(/.*v/)&&(qx="TB"),qx==="TD"&&(qx="TB")},m6e=function(e,t){e.split(",").forEach(function(r){let a=r;bd[a]!==void 0&&bd[a].classes.push(t),i5e[a]!==void 0&&i5e[a].classes.push(t)})},Tua=function(e,t){e.split(",").forEach(function(r){t!==void 0&&(a5e[f6e==="gen-1"?Jce(r):r]=g6e(t))})},Cua=function(e,t,r){let a=Jce(e);if(Qt().securityLevel!=="loose"||t===void 0)return;let s=[];if(typeof r=="string"){s=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<s.length;o++){let u=s[o].trim();u.charAt(0)==='"'&&u.charAt(u.length-1)==='"'&&(u=u.substr(1,u.length-2)),s[o]=u}}s.length===0&&s.push(e),bd[e]!==void 0&&(bd[e].haveCallback=!0,p6e.push(function(){const o=document.querySelector(`[id="${a}"]`);o!==null&&o.addEventListener("click",function(){il.runFunc(t,...s)},!1)}))},DJn=function(e,t,r){e.split(",").forEach(function(a){bd[a]!==void 0&&(bd[a].link=il.formatUrl(t,lW),bd[a].linkTarget=r)}),m6e(e,"clickable")},MJn=function(e){if(a5e.hasOwnProperty(e))return a5e[e]},PJn=function(e,t,r){e.split(",").forEach(function(a){Cua(a,t,r)}),m6e(e,"clickable")},BJn=function(e){p6e.forEach(function(t){t(e)})},FJn=function(){return qx.trim()},$Jn=function(){return bd},UJn=function(){return z3},zJn=function(){return UV},GJn=function(e){let t=gn(".mermaidTooltip");(t._groups||t)[0][0]===null&&(t=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(e).select("svg").selectAll("g.node").on("mouseover",function(){const s=gn(this);if(s.attr("title")===null)return;const u=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),s.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),gn(this).classed("hover",!1)})};p6e.push(GJn);const qJn=function(e="gen-1"){bd={},UV={},z3=[],p6e=[GJn],pR=[],i5e={},oSe=0,a5e={},pht=!0,f6e=e,lW=Qt(),Mb()},HJn=e=>{f6e=e||"gen-2"},VJn=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},YJn=function(e,t,r){let a=e.text.trim(),s=r.text;e===r&&r.text.match(/\s/)&&(a=void 0);function o(m){const b={boolean:{},number:{},string:{}},_=[];let w;return{nodeList:m.filter(function(C){const A=typeof C;return C.stmt&&C.stmt==="dir"?(w=C.value,!1):C.trim()===""?!1:A in b?b[A].hasOwnProperty(C)?!1:b[A][C]=!0:_.includes(C)?!1:_.push(C)}),dir:w}}let u=[];const{nodeList:h,dir:f}=o(u.concat.apply(u,t));if(u=h,f6e==="gen-1")for(let m=0;m<u.length;m++)u[m]=Jce(u[m]);a=a||"subGraph"+oSe,s=s||"",s=g6e(s),oSe=oSe+1;const p={id:a,nodes:u,title:s.trim(),classes:[],dir:f,labelType:r.type};return ut.info("Adding",p.id,p.nodes,p.dir),p.nodes=ter(p,pR).nodes,pR.push(p),i5e[a]=p,a},Aua=function(e){for(const[t,r]of pR.entries())if(r.id===e)return t;return-1};let $ae=-1;const jJn=[],WJn=function(e,t){const r=pR[t].nodes;if($ae=$ae+1,$ae>2e3)return;if(jJn[$ae]=t,pR[t].id===e)return{result:!0,count:0};let a=0,s=1;for(;a<r.length;){const o=Aua(r[a]);if(o>=0){const u=WJn(e,o);if(u.result)return{result:!0,count:s+u.count};s=s+u.count}a=a+1}return{result:!1,count:s}},KJn=function(e){return jJn[e]},XJn=function(){$ae=-1,pR.length>0&&WJn("none",pR.length-1)},QJn=function(){return pR},ZJn=()=>pht?(pht=!1,!0):!1,kua=e=>{let t=e.trim(),r="arrow_open";switch(t[0]){case"<":r="arrow_point",t=t.slice(1);break;case"x":r="arrow_cross",t=t.slice(1);break;case"o":r="arrow_circle",t=t.slice(1);break}let a="normal";return t.includes("=")&&(a="thick"),t.includes(".")&&(a="dotted"),{type:r,stroke:a}},Rua=(e,t)=>{const r=t.length;let a=0;for(let s=0;s<r;++s)t[s]===e&&++a;return a},Iua=e=>{const t=e.trim();let r=t.slice(0,-1),a="arrow_open";switch(t.slice(-1)){case"x":a="arrow_cross",t[0]==="x"&&(a="double_"+a,r=r.slice(1));break;case">":a="arrow_point",t[0]==="<"&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",t[0]==="o"&&(a="double_"+a,r=r.slice(1));break}let s="normal",o=r.length-1;r[0]==="="&&(s="thick"),r[0]==="~"&&(s="invisible");let u=Rua(".",r);return u&&(s="dotted",o=u),{type:a,stroke:s,length:o}},JJn=(e,t)=>{const r=Iua(e);let a;if(t){if(a=kua(t),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r},eer=(e,t)=>{let r=!1;return e.forEach(a=>{a.nodes.indexOf(t)>=0&&(r=!0)}),r},ter=(e,t)=>{const r=[];return e.nodes.forEach((a,s)=>{eer(t,a)||r.push(e.nodes[s])}),{nodes:r}},ner={firstGraph:ZJn},gF={defaultConfig:()=>TZn.flowchart,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,addVertex:AJn,lookUpDomId:Jce,addLink:RJn,updateLinkInterpolate:IJn,updateLink:NJn,addClass:OJn,setDirection:LJn,setClass:m6e,setTooltip:Tua,getTooltip:MJn,setClickEvent:PJn,setLink:DJn,bindFunctions:BJn,getDirection:FJn,getVertices:$Jn,getEdges:UJn,getClasses:zJn,clear:qJn,setGen:HJn,defaultStyle:VJn,addSubGraph:YJn,getDepthFirstPos:KJn,indexNodes:XJn,getSubGraphs:QJn,destructLink:JJn,lex:ner,exists:eer,makeUniq:ter,setDiagramTitle:Zw,getDiagramTitle:Tv},Nua=Object.freeze(Object.defineProperty({__proto__:null,addClass:OJn,addLink:RJn,addSingleLink:kJn,addSubGraph:YJn,addVertex:AJn,bindFunctions:BJn,clear:qJn,default:gF,defaultStyle:VJn,destructLink:JJn,firstGraph:ZJn,getClasses:zJn,getDepthFirstPos:KJn,getDirection:FJn,getEdges:UJn,getSubGraphs:QJn,getTooltip:MJn,getVertices:$Jn,indexNodes:XJn,lex:ner,lookUpDomId:Jce,setClass:m6e,setClickEvent:PJn,setDirection:LJn,setGen:HJn,setLink:DJn,updateLink:NJn,updateLinkInterpolate:IJn},Symbol.toStringTag,{value:"Module"}));var Oua="\0",xB="\0",q5n="";class F1{constructor(t={}){this._isDirected=Ho(t,"directed")?t.directed:!0,this._isMultigraph=Ho(t,"multigraph")?t.multigraph:!1,this._isCompound=Ho(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=$3(void 0),this._defaultEdgeLabelFn=$3(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[xB]={}),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 KO(t)||(t=$3(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Tp(this._nodes)}sources(){var t=this;return Rp(this.nodes(),function(r){return uA(t._in[r])})}sinks(){var t=this;return Rp(this.nodes(),function(r){return uA(t._out[r])})}setNodes(t,r){var a=arguments,s=this;return Zt(t,function(o){a.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Ho(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=xB,this._children[t]={},this._children[xB][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 Ho(this._nodes,t)}removeNode(t){var r=this;if(Ho(this._nodes,t)){var a=function(s){r.removeEdge(r._edgeObjs[s])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Zt(this.children(t),function(s){r.setParent(s)}),delete this._children[t]),Zt(Tp(this._in[t]),a),delete this._in[t],delete this._preds[t],Zt(Tp(this._out[t]),a),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gl(r))r=xB;else{r+="";for(var a=r;!gl(a);a=this.parent(a))if(a===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==xB)return r}}children(t){if(gl(t)&&(t=xB),this._isCompound){var r=this._children[t];if(r)return Tp(r)}else{if(t===xB)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Tp(r)}successors(t){var r=this._sucs[t];if(r)return Tp(r)}neighbors(t){var r=this.predecessors(t);if(r)return Dqn(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var a=this;Zt(this._nodes,function(u,h){t(h)&&r.setNode(h,u)}),Zt(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,a.edge(u))});var s={};function o(u){var h=a.parent(u);return h===void 0||r.hasNode(h)?(s[u]=h,h):h in s?s[h]:o(h)}return this._isCompound&&Zt(r.nodes(),function(u){r.setParent(u,o(u))}),r}setDefaultEdgeLabel(t){return KO(t)||(t=$3(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ag(this._edgeObjs)}setPath(t,r){var a=this,s=arguments;return TS(t,function(o,u){return s.length>1?a.setEdge(o,u,r):a.setEdge(o,u),u}),this}setEdge(){var t,r,a,s,o=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,a=u.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=u,r=arguments[1],a=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,gl(a)||(a=""+a);var h=Uae(this._isDirected,t,r,a);if(Ho(this._edgeLabels,h))return o&&(this._edgeLabels[h]=s),this;if(!gl(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[h]=o?s:this._defaultEdgeLabelFn(t,r,a);var f=Lua(this._isDirected,t,r,a);return t=f.v,r=f.w,Object.freeze(f),this._edgeObjs[h]=f,H5n(this._preds[r],t),H5n(this._sucs[t],r),this._in[r][h]=f,this._out[t][h]=f,this._edgeCount++,this}edge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a);return this._edgeLabels[s]}hasEdge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a);return Ho(this._edgeLabels,s)}removeEdge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],V5n(this._preds[r],t),V5n(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var a=this._in[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.v===r}):s}}outEdges(t,r){var a=this._out[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var a=this.inEdges(t,r);if(a)return a.concat(this.outEdges(t,r))}}F1.prototype._nodeCount=0;F1.prototype._edgeCount=0;function H5n(e,t){e[t]?e[t]++:e[t]=1}function V5n(e,t){--e[t]||delete e[t]}function Uae(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}return s+q5n+o+q5n+(gl(a)?Oua:a)}function Lua(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}var h={v:s,w:o};return a&&(h.name=a),h}function vat(e,t){return Uae(e,t.v,t.w,t.name)}class Dua{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return Y5n(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&Y5n(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,a=r._prev;a!==r;)t.push(JSON.stringify(a,Mua)),a=a._prev;return"["+t.join(", ")+"]"}}function Y5n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Mua(e,t){if(e!=="_next"&&e!=="_prev")return t}var Pua=$3(1);function Bua(e,t){if(e.nodeCount()<=1)return[];var r=$ua(e,t||Pua),a=Fua(r.graph,r.buckets,r.zeroIdx);return MS(wo(a,function(s){return e.outEdges(s.v,s.w)}))}function Fua(e,t,r){for(var a=[],s=t[t.length-1],o=t[0],u;e.nodeCount();){for(;u=o.dequeue();)_at(e,t,r,u);for(;u=s.dequeue();)_at(e,t,r,u);if(e.nodeCount()){for(var h=t.length-2;h>0;--h)if(u=t[h].dequeue(),u){a=a.concat(_at(e,t,r,u,!0));break}}}return a}function _at(e,t,r,a,s){var o=s?[]:void 0;return Zt(e.inEdges(a.v),function(u){var h=e.edge(u),f=e.node(u.v);s&&o.push({v:u.v,w:u.w}),f.out-=h,ght(t,r,f)}),Zt(e.outEdges(a.v),function(u){var h=e.edge(u),f=u.w,p=e.node(f);p.in-=h,ght(t,r,p)}),e.removeNode(a.v),o}function $ua(e,t){var r=new F1,a=0,s=0;Zt(e.nodes(),function(h){r.setNode(h,{v:h,in:0,out:0})}),Zt(e.edges(),function(h){var f=r.edge(h.v,h.w)||0,p=t(h),m=f+p;r.setEdge(h.v,h.w,m),s=Math.max(s,r.node(h.v).out+=p),a=Math.max(a,r.node(h.w).in+=p)});var o=Uw(s+a+3).map(function(){return new Dua}),u=a+1;return Zt(r.nodes(),function(h){ght(o,u,r.node(h))}),{graph:r,buckets:o,zeroIdx:u}}function ght(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Uua(e){var t=e.graph().acyclicer==="greedy"?Bua(e,r(e)):zua(e);Zt(t,function(a){var s=e.edge(a);e.removeEdge(a),s.forwardName=a.name,s.reversed=!0,e.setEdge(a.w,a.v,s,P$("rev"))});function r(a){return function(s){return a.edge(s).weight}}}function zua(e){var t=[],r={},a={};function s(o){Ho(a,o)||(a[o]=!0,r[o]=!0,Zt(e.outEdges(o),function(u){Ho(r,u.w)?t.push(u):s(u.w)}),delete r[o])}return Zt(e.nodes(),s),t}function Gua(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,a)}})}function sK(e,t,r,a){var s;do s=P$(a);while(e.hasNode(s));return r.dummy=t,e.setNode(s,r),s}function qua(e){var t=new F1().setGraph(e.graph());return Zt(e.nodes(),function(r){t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){var a=t.edge(r.v,r.w)||{weight:0,minlen:1},s=e.edge(r);t.setEdge(r.v,r.w,{weight:a.weight+s.weight,minlen:Math.max(a.minlen,s.minlen)})}),t}function rer(e){var t=new F1({multigraph:e.isMultigraph()}).setGraph(e.graph());return Zt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function j5n(e,t){var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=h*s/o,p=h):(s<0&&(u=-u),f=u,p=u*o/s),{x:r+f,y:a+p}}function b6e(e){var t=wo(Uw(ier(e)+1),function(){return[]});return Zt(e.nodes(),function(r){var a=e.node(r),s=a.rank;gl(s)||(t[s][a.order]=r)}),t}function Hua(e){var t=oT(wo(e.nodes(),function(r){return e.node(r).rank}));Zt(e.nodes(),function(r){var a=e.node(r);Ho(a,"rank")&&(a.rank-=t)})}function Vua(e){var t=oT(wo(e.nodes(),function(o){return e.node(o).rank})),r=[];Zt(e.nodes(),function(o){var u=e.node(o).rank-t;r[u]||(r[u]=[]),r[u].push(o)});var a=0,s=e.graph().nodeRankFactor;Zt(r,function(o,u){gl(o)&&u%s!==0?--a:a&&Zt(o,function(h){e.node(h).rank+=a})})}function W5n(e,t,r,a){var s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=a),sK(e,"border",s,t)}function ier(e){return i_(wo(e.nodes(),function(t){var r=e.node(t).rank;if(!gl(r))return r}))}function Yua(e,t){var r={lhs:[],rhs:[]};return Zt(e,function(a){t(a)?r.lhs.push(a):r.rhs.push(a)}),r}function jua(e,t){return t()}function Wua(e){function t(r){var a=e.children(r),s=e.node(r);if(a.length&&Zt(a,t),Ho(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var o=s.minRank,u=s.maxRank+1;o<u;++o)K5n(e,"borderLeft","_bl",r,s,o),K5n(e,"borderRight","_br",r,s,o)}}Zt(e.children(),t)}function K5n(e,t,r,a,s,o){var u={width:0,height:0,rank:o,borderType:t},h=s[t][o-1],f=sK(e,"border",u,r);s[t][o]=f,e.setParent(f,a),h&&e.setEdge(h,f,{weight:1})}function Kua(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&aer(e)}function Xua(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&Qua(e),(t==="lr"||t==="rl")&&(Zua(e),aer(e))}function aer(e){Zt(e.nodes(),function(t){X5n(e.node(t))}),Zt(e.edges(),function(t){X5n(e.edge(t))})}function X5n(e){var t=e.width;e.width=e.height,e.height=t}function Qua(e){Zt(e.nodes(),function(t){wat(e.node(t))}),Zt(e.edges(),function(t){var r=e.edge(t);Zt(r.points,wat),Ho(r,"y")&&wat(r)})}function wat(e){e.y=-e.y}function Zua(e){Zt(e.nodes(),function(t){Eat(e.node(t))}),Zt(e.edges(),function(t){var r=e.edge(t);Zt(r.points,Eat),Ho(r,"x")&&Eat(r)})}function Eat(e){var t=e.x;e.x=e.y,e.y=t}function Jua(e){e.graph().dummyChains=[],Zt(e.edges(),function(t){eha(e,t)})}function eha(e,t){var r=t.v,a=e.node(r).rank,s=t.w,o=e.node(s).rank,u=t.name,h=e.edge(t),f=h.labelRank;if(o!==a+1){e.removeEdge(t);var p,m,b;for(b=0,++a;a<o;++b,++a)h.points=[],m={width:0,height:0,edgeLabel:h,edgeObj:t,rank:a},p=sK(e,"edge",m,"_d"),a===f&&(m.width=h.width,m.height=h.height,m.dummy="edge-label",m.labelpos=h.labelpos),e.setEdge(r,p,{weight:h.weight},u),b===0&&e.graph().dummyChains.push(p),r=p;e.setEdge(r,s,{weight:h.weight},u)}}function tha(e){Zt(e.graph().dummyChains,function(t){var r=e.node(t),a=r.edgeLabel,s;for(e.setEdge(r.edgeObj,a);r.dummy;)s=e.successors(t)[0],e.removeNode(t),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),t=s,r=e.node(t)})}function Bbt(e){var t={};function r(a){var s=e.node(a);if(Ho(t,a))return s.rank;t[a]=!0;var o=oT(wo(e.outEdges(a),function(u){return r(u.w)-e.edge(u).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),s.rank=o}Zt(e.sources(),r)}function yle(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function ser(e){var t=new F1({directed:!1}),r=e.nodes()[0],a=e.nodeCount();t.setNode(r,{});for(var s,o;nha(t,e)<a;)s=rha(t,e),o=t.hasNode(s.v)?yle(e,s):-yle(e,s),iha(t,e,o);return t}function nha(e,t){function r(a){Zt(t.nodeEdges(a),function(s){var o=s.v,u=a===o?s.w:o;!e.hasNode(u)&&!yle(t,s)&&(e.setNode(u,{}),e.setEdge(a,u,{}),r(u))})}return Zt(e.nodes(),r),e.nodeCount()}function rha(e,t){return YW(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return yle(t,r)})}function iha(e,t,r){Zt(e.nodes(),function(a){t.node(a).rank+=r})}function aha(){}aha.prototype=new Error;function oer(e,t,r){Z0(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),s=[],o={};return Zt(t,function(u){if(!e.hasNode(u))throw new Error("Graph does not have node: "+u);ler(e,u,r==="post",o,a,s)}),s}function ler(e,t,r,a,s,o){Ho(a,t)||(a[t]=!0,r||o.push(t),Zt(s(t),function(u){ler(e,u,r,a,s,o)}),r&&o.push(t))}function sha(e,t){return oer(e,t,"post")}function oha(e,t){return oer(e,t,"pre")}tU.initLowLimValues=$bt;tU.initCutValues=Fbt;tU.calcCutValue=cer;tU.leaveEdge=her;tU.enterEdge=der;tU.exchangeEdges=fer;function tU(e){e=qua(e),Bbt(e);var t=ser(e);$bt(t),Fbt(t,e);for(var r,a;r=her(t);)a=der(t,e,r),fer(t,e,r,a)}function Fbt(e,t){var r=sha(e,e.nodes());r=r.slice(0,r.length-1),Zt(r,function(a){lha(e,t,a)})}function lha(e,t,r){var a=e.node(r),s=a.parent;e.edge(r,s).cutvalue=cer(e,t,r)}function cer(e,t,r){var a=e.node(r),s=a.parent,o=!0,u=t.edge(r,s),h=0;return u||(o=!1,u=t.edge(s,r)),h=u.weight,Zt(t.nodeEdges(r),function(f){var p=f.v===r,m=p?f.w:f.v;if(m!==s){var b=p===o,_=t.edge(f).weight;if(h+=b?_:-_,uha(e,r,m)){var w=e.edge(r,m).cutvalue;h+=b?-w:w}}}),h}function $bt(e,t){arguments.length<2&&(t=e.nodes()[0]),uer(e,{},1,t)}function uer(e,t,r,a,s){var o=r,u=e.node(a);return t[a]=!0,Zt(e.neighbors(a),function(h){Ho(t,h)||(r=uer(e,t,r,h,a))}),u.low=o,u.lim=r++,s?u.parent=s:delete u.parent,r}function her(e){return VW(e.edges(),function(t){return e.edge(t).cutvalue<0})}function der(e,t,r){var a=r.v,s=r.w;t.hasEdge(a,s)||(a=r.w,s=r.v);var o=e.node(a),u=e.node(s),h=o,f=!1;o.lim>u.lim&&(h=u,f=!0);var p=Rp(t.edges(),function(m){return f===Q5n(e,e.node(m.v),h)&&f!==Q5n(e,e.node(m.w),h)});return YW(p,function(m){return yle(t,m)})}function fer(e,t,r,a){var s=r.v,o=r.w;e.removeEdge(s,o),e.setEdge(a.v,a.w,{}),$bt(e),Fbt(e,t),cha(e,t)}function cha(e,t){var r=VW(e.nodes(),function(s){return!t.node(s).parent}),a=oha(e,r);a=a.slice(1),Zt(a,function(s){var o=e.node(s).parent,u=t.edge(s,o),h=!1;u||(u=t.edge(o,s),h=!0),t.node(s).rank=t.node(o).rank+(h?u.minlen:-u.minlen)})}function uha(e,t,r){return e.hasEdge(t,r)}function Q5n(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}function hha(e){switch(e.graph().ranker){case"network-simplex":Z5n(e);break;case"tight-tree":fha(e);break;case"longest-path":dha(e);break;default:Z5n(e)}}var dha=Bbt;function fha(e){Bbt(e),ser(e)}function Z5n(e){tU(e)}function pha(e){var t=sK(e,"root",{},"_root"),r=gha(e),a=i_(Ag(r))-1,s=2*a+1;e.graph().nestingRoot=t,Zt(e.edges(),function(u){e.edge(u).minlen*=s});var o=mha(e)+1;Zt(e.children(),function(u){per(e,t,s,o,a,r,u)}),e.graph().nodeRankFactor=s}function per(e,t,r,a,s,o,u){var h=e.children(u);if(!h.length){u!==t&&e.setEdge(t,u,{weight:0,minlen:r});return}var f=W5n(e,"_bt"),p=W5n(e,"_bb"),m=e.node(u);e.setParent(f,u),m.borderTop=f,e.setParent(p,u),m.borderBottom=p,Zt(h,function(b){per(e,t,r,a,s,o,b);var _=e.node(b),w=_.borderTop?_.borderTop:b,S=_.borderBottom?_.borderBottom:b,C=_.borderTop?a:2*a,A=w!==S?1:s-o[u]+1;e.setEdge(f,w,{weight:C,minlen:A,nestingEdge:!0}),e.setEdge(S,p,{weight:C,minlen:A,nestingEdge:!0})}),e.parent(u)||e.setEdge(t,f,{weight:0,minlen:s+o[u]})}function gha(e){var t={};function r(a,s){var o=e.children(a);o&&o.length&&Zt(o,function(u){r(u,s+1)}),t[a]=s}return Zt(e.children(),function(a){r(a,1)}),t}function mha(e){return TS(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function bha(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zt(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function yha(e,t,r){var a={},s;Zt(r,function(o){for(var u=e.parent(o),h,f;u;){if(h=e.parent(u),h?(f=a[h],a[h]=u):(f=s,s=u),f&&f!==u){t.setEdge(f,u);return}u=h}})}function vha(e,t,r){var a=_ha(e),s=new F1({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return Zt(e.nodes(),function(o){var u=e.node(o),h=e.parent(o);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(s.setNode(o),s.setParent(o,h||a),Zt(e[r](o),function(f){var p=f.v===o?f.w:f.v,m=s.edge(p,o),b=gl(m)?0:m.weight;s.setEdge(p,o,{weight:e.edge(f).weight+b})}),Ho(u,"minRank")&&s.setNode(o,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),s}function _ha(e){for(var t;e.hasNode(t=P$("_root")););return t}function wha(e,t){for(var r=0,a=1;a<t.length;++a)r+=Eha(e,t[a-1],t[a]);return r}function Eha(e,t,r){for(var a=Mqn(r,wo(r,function(p,m){return m})),s=MS(wo(t,function(p){return PA(wo(e.outEdges(p),function(m){return{pos:a[m.w],weight:e.edge(m).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var u=2*o-1;o-=1;var h=wo(new Array(u),function(){return 0}),f=0;return Zt(s.forEach(function(p){var m=p.pos+o;h[m]+=p.weight;for(var b=0;m>0;)m%2&&(b+=h[m+1]),m=m-1>>1,h[m]+=p.weight;f+=p.weight*b})),f}function xha(e){var t={},r=Rp(e.nodes(),function(h){return!e.children(h).length}),a=i_(wo(r,function(h){return e.node(h).rank})),s=wo(Uw(a+1),function(){return[]});function o(h){if(!Ho(t,h)){t[h]=!0;var f=e.node(h);s[f.rank].push(h),Zt(e.successors(h),o)}}var u=PA(r,function(h){return e.node(h).rank});return Zt(u,o),s}function Sha(e,t){return wo(t,function(r){var a=e.inEdges(r);if(a.length){var s=TS(a,function(o,u){var h=e.edge(u),f=e.node(u.v);return{sum:o.sum+h.weight*f.order,weight:o.weight+h.weight}},{sum:0,weight:0});return{v:r,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:r}})}function Tha(e,t){var r={};Zt(e,function(s,o){var u=r[s.v]={indegree:0,in:[],out:[],vs:[s.v],i:o};gl(s.barycenter)||(u.barycenter=s.barycenter,u.weight=s.weight)}),Zt(t.edges(),function(s){var o=r[s.v],u=r[s.w];!gl(o)&&!gl(u)&&(u.indegree++,o.out.push(r[s.w]))});var a=Rp(r,function(s){return!s.indegree});return Cha(a)}function Cha(e){var t=[];function r(o){return function(u){u.merged||(gl(u.barycenter)||gl(o.barycenter)||u.barycenter>=o.barycenter)&&Aha(o,u)}}function a(o){return function(u){u.in.push(o),--u.indegree===0&&e.push(u)}}for(;e.length;){var s=e.pop();t.push(s),Zt(s.in.reverse(),r(s)),Zt(s.out,a(s))}return wo(Rp(t,function(o){return!o.merged}),function(o){return lR(o,["vs","i","barycenter","weight"])})}function Aha(e,t){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),t.weight&&(r+=t.barycenter*t.weight,a+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(t.i,e.i),t.merged=!0}function kha(e,t){var r=Yua(e,function(m){return Ho(m,"barycenter")}),a=r.lhs,s=PA(r.rhs,function(m){return-m.i}),o=[],u=0,h=0,f=0;a.sort(Rha(!!t)),f=J5n(o,s,f),Zt(a,function(m){f+=m.vs.length,o.push(m.vs),u+=m.barycenter*m.weight,h+=m.weight,f=J5n(o,s,f)});var p={vs:MS(o)};return h&&(p.barycenter=u/h,p.weight=h),p}function J5n(e,t,r){for(var a;t.length&&(a=i9(t)).i<=r;)t.pop(),e.push(a.vs),r++;return r}function Rha(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}function ger(e,t,r,a){var s=e.children(t),o=e.node(t),u=o?o.borderLeft:void 0,h=o?o.borderRight:void 0,f={};u&&(s=Rp(s,function(S){return S!==u&&S!==h}));var p=Sha(e,s);Zt(p,function(S){if(e.children(S.v).length){var C=ger(e,S.v,r,a);f[S.v]=C,Ho(C,"barycenter")&&Nha(S,C)}});var m=Tha(p,r);Iha(m,f);var b=kha(m,a);if(u&&(b.vs=MS([u,b.vs,h]),e.predecessors(u).length)){var _=e.node(e.predecessors(u)[0]),w=e.node(e.predecessors(h)[0]);Ho(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+w.order)/(b.weight+2),b.weight+=2}return b}function Iha(e,t){Zt(e,function(r){r.vs=MS(r.vs.map(function(a){return t[a]?t[a].vs:a}))})}function Nha(e,t){gl(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function Oha(e){var t=ier(e),r=eCn(e,Uw(1,t+1),"inEdges"),a=eCn(e,Uw(t-1,-1,-1),"outEdges"),s=xha(e);tCn(e,s);for(var o=Number.POSITIVE_INFINITY,u,h=0,f=0;f<4;++h,++f){Lha(h%2?r:a,h%4>=2),s=b6e(e);var p=wha(e,s);p<o&&(f=0,u=wqn(s),o=p)}tCn(e,u)}function eCn(e,t,r){return wo(t,function(a){return vha(e,a,r)})}function Lha(e,t){var r=new F1;Zt(e,function(a){var s=a.graph().root,o=ger(a,s,r,t);Zt(o.vs,function(u,h){a.node(u).order=h}),yha(a,r,o.vs)})}function tCn(e,t){Zt(t,function(r){Zt(r,function(a,s){e.node(a).order=s})})}function Dha(e){var t=Pha(e);Zt(e.graph().dummyChains,function(r){for(var a=e.node(r),s=a.edgeObj,o=Mha(e,t,s.v,s.w),u=o.path,h=o.lca,f=0,p=u[f],m=!0;r!==s.w;){if(a=e.node(r),m){for(;(p=u[f])!==h&&e.node(p).maxRank<a.rank;)f++;p===h&&(m=!1)}if(!m){for(;f<u.length-1&&e.node(p=u[f+1]).minRank<=a.rank;)f++;p=u[f]}e.setParent(r,p),r=e.successors(r)[0]}})}function Mha(e,t,r,a){var s=[],o=[],u=Math.min(t[r].low,t[a].low),h=Math.max(t[r].lim,t[a].lim),f,p;f=r;do f=e.parent(f),s.push(f);while(f&&(t[f].low>u||h>t[f].lim));for(p=f,f=a;(f=e.parent(f))!==p;)o.push(f);return{path:s.concat(o.reverse()),lca:p}}function Pha(e){var t={},r=0;function a(s){var o=r;Zt(e.children(s),a),t[s]={low:o,lim:r++}}return Zt(e.children(),a),t}function Bha(e,t){var r={};function a(s,o){var u=0,h=0,f=s.length,p=i9(o);return Zt(o,function(m,b){var _=$ha(e,m),w=_?e.node(_).order:f;(_||m===p)&&(Zt(o.slice(h,b+1),function(S){Zt(e.predecessors(S),function(C){var A=e.node(C),k=A.order;(k<u||w<k)&&!(A.dummy&&e.node(S).dummy)&&mer(r,C,S)})}),h=b+1,u=w)}),o}return TS(t,a),r}function Fha(e,t){var r={};function a(o,u,h,f,p){var m;Zt(Uw(u,h),function(b){m=o[b],e.node(m).dummy&&Zt(e.predecessors(m),function(_){var w=e.node(_);w.dummy&&(w.order<f||w.order>p)&&mer(r,_,m)})})}function s(o,u){var h=-1,f,p=0;return Zt(u,function(m,b){if(e.node(m).dummy==="border"){var _=e.predecessors(m);_.length&&(f=e.node(_[0]).order,a(u,p,b,h,f),p=b,h=f)}a(u,p,u.length,f,o.length)}),u}return TS(t,s),r}function $ha(e,t){if(e.node(t).dummy)return VW(e.predecessors(t),function(r){return e.node(r).dummy})}function mer(e,t,r){if(t>r){var a=t;t=r,r=a}var s=e[t];s||(e[t]=s={}),s[r]=!0}function Uha(e,t,r){if(t>r){var a=t;t=r,r=a}return Ho(e[t],r)}function zha(e,t,r,a){var s={},o={},u={};return Zt(t,function(h){Zt(h,function(f,p){s[f]=f,o[f]=f,u[f]=p})}),Zt(t,function(h){var f=-1;Zt(h,function(p){var m=a(p);if(m.length){m=PA(m,function(C){return u[C]});for(var b=(m.length-1)/2,_=Math.floor(b),w=Math.ceil(b);_<=w;++_){var S=m[_];o[p]===p&&f<u[S]&&!Uha(r,p,S)&&(o[S]=p,o[p]=s[p]=s[S],f=u[S])}}})}),{root:s,align:o}}function Gha(e,t,r,a,s){var o={},u=qha(e,t,r,s),h=s?"borderLeft":"borderRight";function f(b,_){for(var w=u.nodes(),S=w.pop(),C={};S;)C[S]?b(S):(C[S]=!0,w.push(S),w=w.concat(_(S))),S=w.pop()}function p(b){o[b]=u.inEdges(b).reduce(function(_,w){return Math.max(_,o[w.v]+u.edge(w))},0)}function m(b){var _=u.outEdges(b).reduce(function(S,C){return Math.min(S,o[C.w]-u.edge(C))},Number.POSITIVE_INFINITY),w=e.node(b);_!==Number.POSITIVE_INFINITY&&w.borderType!==h&&(o[b]=Math.max(o[b],_))}return f(p,u.predecessors.bind(u)),f(m,u.successors.bind(u)),Zt(a,function(b){o[b]=o[r[b]]}),o}function qha(e,t,r,a){var s=new F1,o=e.graph(),u=Wha(o.nodesep,o.edgesep,a);return Zt(t,function(h){var f;Zt(h,function(p){var m=r[p];if(s.setNode(m),f){var b=r[f],_=s.edge(b,m);s.setEdge(b,m,Math.max(u(e,p,f),_||0))}f=p})}),s}function Hha(e,t){return YW(Ag(t),function(r){var a=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return Iqn(r,function(o,u){var h=Kha(e,u)/2;a=Math.max(o+h,a),s=Math.min(o-h,s)}),a-s})}function Vha(e,t){var r=Ag(t),a=oT(r),s=i_(r);Zt(["u","d"],function(o){Zt(["l","r"],function(u){var h=o+u,f=e[h],p;if(f!==t){var m=Ag(f);p=u==="l"?a-oT(m):s-i_(m),p&&(e[h]=H9(f,function(b){return b+p}))}})})}function Yha(e,t){return H9(e.ul,function(r,a){if(t)return e[t.toLowerCase()][a];var s=PA(wo(e,a));return(s[1]+s[2])/2})}function jha(e){var t=b6e(e),r=XO(Bha(e,t),Fha(e,t)),a={},s;Zt(["u","d"],function(u){s=u==="u"?t:Ag(t).reverse(),Zt(["l","r"],function(h){h==="r"&&(s=wo(s,function(b){return Ag(b).reverse()}));var f=(u==="u"?e.predecessors:e.successors).bind(e),p=zha(e,s,r,f),m=Gha(e,s,p.root,p.align,h==="r");h==="r"&&(m=H9(m,function(b){return-b})),a[u+h]=m})});var o=Hha(e,a);return Vha(a,o),Yha(a,e.graph().align)}function Wha(e,t,r){return function(a,s,o){var u=a.node(s),h=a.node(o),f=0,p;if(f+=u.width/2,Ho(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":p=-u.width/2;break;case"r":p=u.width/2;break}if(p&&(f+=r?p:-p),p=0,f+=(u.dummy?t:e)/2,f+=(h.dummy?t:e)/2,f+=h.width/2,Ho(h,"labelpos"))switch(h.labelpos.toLowerCase()){case"l":p=h.width/2;break;case"r":p=-h.width/2;break}return p&&(f+=r?p:-p),p=0,f}}function Kha(e,t){return e.node(t).width}function Xha(e){e=rer(e),Qha(e),Nqn(jha(e),function(t,r){e.node(r).x=t})}function Qha(e){var t=b6e(e),r=e.graph().ranksep,a=0;Zt(t,function(s){var o=i_(wo(s,function(u){return e.node(u).height}));Zt(s,function(u){e.node(u).y=a+o/2}),a+=o+r})}function oK(e,t){var r=jua;r("layout",function(){var a=r("  buildLayoutGraph",function(){return lda(e)});r("  runLayout",function(){Zha(a,r)}),r("  updateInputGraph",function(){Jha(e,a)})})}function Zha(e,t){t("    makeSpaceForEdgeLabels",function(){cda(e)}),t("    removeSelfEdges",function(){yda(e)}),t("    acyclic",function(){Uua(e)}),t("    nestingGraph.run",function(){pha(e)}),t("    rank",function(){hha(rer(e))}),t("    injectEdgeLabelProxies",function(){uda(e)}),t("    removeEmptyRanks",function(){Vua(e)}),t("    nestingGraph.cleanup",function(){bha(e)}),t("    normalizeRanks",function(){Hua(e)}),t("    assignRankMinMax",function(){hda(e)}),t("    removeEdgeLabelProxies",function(){dda(e)}),t("    normalize.run",function(){Jua(e)}),t("    parentDummyChains",function(){Dha(e)}),t("    addBorderSegments",function(){Wua(e)}),t("    order",function(){Oha(e)}),t("    insertSelfEdges",function(){vda(e)}),t("    adjustCoordinateSystem",function(){Kua(e)}),t("    position",function(){Xha(e)}),t("    positionSelfEdges",function(){_da(e)}),t("    removeBorderNodes",function(){bda(e)}),t("    normalize.undo",function(){tha(e)}),t("    fixupEdgeLabelCoords",function(){gda(e)}),t("    undoCoordinateSystem",function(){Xua(e)}),t("    translateGraph",function(){fda(e)}),t("    assignNodeIntersects",function(){pda(e)}),t("    reversePoints",function(){mda(e)}),t("    acyclic.undo",function(){Gua(e)})}function Jha(e,t){Zt(e.nodes(),function(r){var a=e.node(r),s=t.node(r);a&&(a.x=s.x,a.y=s.y,t.children(r).length&&(a.width=s.width,a.height=s.height))}),Zt(e.edges(),function(r){var a=e.edge(r),s=t.edge(r);a.points=s.points,Ho(s,"x")&&(a.x=s.x,a.y=s.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var eda=["nodesep","edgesep","ranksep","marginx","marginy"],tda={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nda=["acyclicer","ranker","rankdir","align"],rda=["width","height"],ida={width:0,height:0},ada=["minlen","weight","width","height","labeloffset"],sda={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},oda=["labelpos"];function lda(e){var t=new F1({multigraph:!0,compound:!0}),r=Sat(e.graph());return t.setGraph(XO({},tda,xat(r,eda),lR(r,nda))),Zt(e.nodes(),function(a){var s=Sat(e.node(a));t.setNode(a,BB(xat(s,rda),ida)),t.setParent(a,e.parent(a))}),Zt(e.edges(),function(a){var s=Sat(e.edge(a));t.setEdge(a,XO({},sda,xat(s,ada),lR(s,oda)))}),t}function cda(e){var t=e.graph();t.ranksep/=2,Zt(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function uda(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var a=e.node(t.v),s=e.node(t.w),o={rank:(s.rank-a.rank)/2+a.rank,e:t};sK(e,"edge-proxy",o,"_ep")}})}function hda(e){var t=0;Zt(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,t=i_(t,a.maxRank))}),e.graph().maxRank=t}function dda(e){Zt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function fda(e){var t=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,s=0,o=e.graph(),u=o.marginx||0,h=o.marginy||0;function f(p){var m=p.x,b=p.y,_=p.width,w=p.height;t=Math.min(t,m-_/2),r=Math.max(r,m+_/2),a=Math.min(a,b-w/2),s=Math.max(s,b+w/2)}Zt(e.nodes(),function(p){f(e.node(p))}),Zt(e.edges(),function(p){var m=e.edge(p);Ho(m,"x")&&f(m)}),t-=u,a-=h,Zt(e.nodes(),function(p){var m=e.node(p);m.x-=t,m.y-=a}),Zt(e.edges(),function(p){var m=e.edge(p);Zt(m.points,function(b){b.x-=t,b.y-=a}),Ho(m,"x")&&(m.x-=t),Ho(m,"y")&&(m.y-=a)}),o.width=r-t+u,o.height=s-a+h}function pda(e){Zt(e.edges(),function(t){var r=e.edge(t),a=e.node(t.v),s=e.node(t.w),o,u;r.points?(o=r.points[0],u=r.points[r.points.length-1]):(r.points=[],o=s,u=a),r.points.unshift(j5n(a,o)),r.points.push(j5n(s,u))})}function gda(e){Zt(e.edges(),function(t){var r=e.edge(t);if(Ho(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function mda(e){Zt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function bda(e){Zt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),a=e.node(r.borderTop),s=e.node(r.borderBottom),o=e.node(i9(r.borderLeft)),u=e.node(i9(r.borderRight));r.width=Math.abs(u.x-o.x),r.height=Math.abs(s.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),Zt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function yda(e){Zt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function vda(e){var t=b6e(e);Zt(t,function(r){var a=0;Zt(r,function(s,o){var u=e.node(s);u.order=o+a,Zt(u.selfEdges,function(h){sK(e,"selfedge",{width:h.label.width,height:h.label.height,rank:u.rank,order:o+ ++a,e:h.e,label:h.label},"_se")}),delete u.selfEdges})})}function _da(e){Zt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var a=e.node(r.e.v),s=a.x+a.width/2,o=a.y,u=r.x-s,h=a.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:s+2*u/3,y:o-h},{x:s+5*u/6,y:o-h},{x:s+u,y:o},{x:s+5*u/6,y:o+h},{x:s+2*u/3,y:o+h}],r.label.x=r.x,r.label.y=r.y}})}function xat(e,t){return H9(lR(e,t),Number)}function Sat(e){var t={};return Zt(e,function(r,a){t[a.toLowerCase()]=r}),t}function ber(e,t){return!!e.children(t).length}function yer(e){return Tat(e.v)+":"+Tat(e.w)+":"+Tat(e.name)}var wda=/:/g;function Tat(e){return e?String(e).replace(wda,"\\:"):""}function HA(e,t){t&&e.attr("style",t)}function ver(e,t,r){t&&e.attr("class",t).attr("class",r+" "+e.attr("class"))}function fT(e,t){var r=t.graph();if(zPn(r)){var a=r.transition;if(KO(a))return a(e)}return e}var mht={normal:xda,vee:Sda,undirected:Tda};function Eda(e){mht=e}function xda(e,t,r,a){var s=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=s.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");HA(o,r[a+"Style"]),r[a+"Class"]&&o.attr("class",r[a+"Class"])}function Sda(e,t,r,a){var s=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=s.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");HA(o,r[a+"Style"]),r[a+"Class"]&&o.attr("class",r[a+"Class"])}function Tda(e,t,r,a){var s=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=s.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");HA(o,r[a+"Style"]),r[a+"Class"]&&o.attr("class",r[a+"Class"])}function Ubt(e,t){var r=e.append("foreignObject").attr("width","100000"),a=r.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var s=t.label;switch(typeof s){case"function":a.insert(s);break;case"object":a.insert(function(){return s});break;default:a.html(s)}HA(a,t.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var o=a.node().getBoundingClientRect();return r.attr("width",o.width).attr("height",o.height),r}function Cda(e,t){var r=e;return r.node().appendChild(t.label),HA(r,t.labelStyle),r}function Ada(e,t){for(var r=e.append("text"),a=kda(t.label).split(`
`),s=0;s<a.length;s++)r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[s]);return HA(r,t.labelStyle),r}function kda(e){for(var t="",r=!1,a,s=0;s<e.length;++s)if(a=e[s],r){switch(a){case"n":t+=`
`;break;default:t+=a}r=!1}else a==="\\"?r=!0:t+=a;return t}function zbt(e,t,r){var a=t.label,s=e.append("g");t.labelType==="svg"?Cda(s,t):typeof a!="string"||t.labelType==="html"?Ubt(s,t):Ada(s,t);var o=s.node().getBBox(),u;switch(r){case"top":u=-t.height/2;break;case"bottom":u=t.height/2-o.height;break;default:u=-o.height/2}return s.attr("transform","translate("+-o.width/2+","+u+")"),s}var bht=function(e,t){var r=t.nodes().filter(function(o){return ber(t,o)}),a=e.selectAll("g.cluster").data(r,function(o){return o});fT(a.exit(),t).style("opacity",0).remove();var s=a.enter().append("g").attr("class","cluster").attr("id",function(o){var u=t.node(o);return u.id}).style("opacity",0).each(function(o){var u=t.node(o),h=gn(this);gn(this).append("rect");var f=h.append("g").attr("class","label");zbt(f,u,u.clusterLabelPos)});return a=a.merge(s),a=fT(a,t).style("opacity",1),a.selectAll("rect").each(function(o){var u=t.node(o),h=gn(this);HA(h,u.style)}),a};function Rda(e){bht=e}let yht=function(e,t){var r=e.selectAll("g.edgeLabel").data(t.edges(),function(s){return yer(s)}).classed("update",!0);r.exit().remove(),r.enter().append("g").classed("edgeLabel",!0).style("opacity",0),r=e.selectAll("g.edgeLabel"),r.each(function(s){var o=gn(this);o.select(".label").remove();var u=t.edge(s),h=zbt(o,t.edge(s),0).classed("label",!0),f=h.node().getBBox();u.labelId&&h.attr("id",u.labelId),Ho(u,"width")||(u.width=f.width),Ho(u,"height")||(u.height=f.height)});var a;return r.exit?a=r.exit():a=r.selectAll(null),fT(a,t).style("opacity",0).remove(),r};function Ida(e){yht=e}function nCn(e,t){return e.intersect(t)}var vht=function(e,t,r){var a=e.selectAll("g.edgePath").data(t.edges(),function(u){return yer(u)}).classed("update",!0),s=Mda(a,t);Pda(a,t);var o=a.merge!==void 0?a.merge(s):a;return fT(o,t).style("opacity",1),o.each(function(u){var h=gn(this),f=t.edge(u);f.elem=this,f.id&&h.attr("id",f.id),ver(h,f.class,(h.classed("update")?"update ":"")+"edgePath")}),o.selectAll("path.path").each(function(u){var h=t.edge(u);h.arrowheadId=P$("arrowhead");var f=gn(this).attr("marker-end",function(){return"url("+Oda(location.href,h.arrowheadId)+")"}).style("fill","none");fT(f,t).attr("d",function(p){return Lda(t,p)}),HA(f,h.style)}),o.selectAll("defs *").remove(),o.selectAll("defs").each(function(u){var h=t.edge(u),f=r[h.arrowhead];f(gn(this),h.arrowheadId,h,"arrowhead")}),o};function Nda(e){vht=e}function Oda(e,t){var r=e.split("#")[0];return r+"#"+t}function Lda(e,t){var r=e.edge(t),a=e.node(t.v),s=e.node(t.w),o=r.points.slice(1,r.points.length-1);return o.unshift(nCn(a,o[0])),o.push(nCn(s,o[o.length-1])),_er(r,o)}function _er(e,t){var r=(r_||Zli.line)().x(function(a){return a.x}).y(function(a){return a.y});return(r.curve||r.interpolate)(e.curve),r(t)}function Dda(e){var t=e.getBBox(),r=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2);return{x:r.e,y:r.f}}function Mda(e,t){var r=e.enter().append("g").attr("class","edgePath").style("opacity",0);return r.append("path").attr("class","path").attr("d",function(a){var s=t.edge(a),o=t.node(a.v).elem,u=Uw(s.points.length).map(function(){return Dda(o)});return _er(s,u)}),r.append("defs"),r}function Pda(e,t){var r=e.exit();fT(r,t).style("opacity",0).remove()}var _ht=function(e,t,r){var a=t.nodes().filter(function(u){return!ber(t,u)}),s=e.selectAll("g.node").data(a,function(u){return u}).classed("update",!0);s.exit().remove(),s.enter().append("g").attr("class","node").style("opacity",0),s=e.selectAll("g.node"),s.each(function(u){var h=t.node(u),f=gn(this);ver(f,h.class,(f.classed("update")?"update ":"")+"node"),f.select("g.label").remove();var p=f.append("g").attr("class","label"),m=zbt(p,h),b=r[h.shape],_=lR(m.node().getBBox(),"width","height");h.elem=this,h.id&&f.attr("id",h.id),h.labelId&&p.attr("id",h.labelId),Ho(h,"width")&&(_.width=h.width),Ho(h,"height")&&(_.height=h.height),_.width+=h.paddingLeft+h.paddingRight,_.height+=h.paddingTop+h.paddingBottom,p.attr("transform","translate("+(h.paddingLeft-h.paddingRight)/2+","+(h.paddingTop-h.paddingBottom)/2+")");var w=gn(this);w.select(".label-container").remove();var S=b(w,_,h).classed("label-container",!0);HA(S,h.style);var C=S.node().getBBox();h.width=C.width,h.height=C.height});var o;return s.exit?o=s.exit():o=s.selectAll(null),fT(o,t).style("opacity",0).remove(),s};function Bda(e){_ht=e}function Fda(e,t){var r=e.filter(function(){return!gn(this).classed("update")});function a(s){var o=t.node(s);return"translate("+o.x+","+o.y+")"}r.attr("transform",a),fT(e,t).style("opacity",1).attr("transform",a),fT(r.selectAll("rect"),t).attr("width",function(s){return t.node(s).width}).attr("height",function(s){return t.node(s).height}).attr("x",function(s){var o=t.node(s);return-o.width/2}).attr("y",function(s){var o=t.node(s);return-o.height/2})}function $da(e,t){var r=e.filter(function(){return!gn(this).classed("update")});function a(s){var o=t.edge(s);return Ho(o,"x")?"translate("+o.x+","+o.y+")":""}r.attr("transform",a),fT(e,t).style("opacity",1).attr("transform",a)}function Uda(e,t){var r=e.filter(function(){return!gn(this).classed("update")});function a(s){var o=t.node(s);return"translate("+o.x+","+o.y+")"}r.attr("transform",a),fT(e,t).style("opacity",1).attr("transform",a)}function wer(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x<s&&(p=-p);var m=Math.abs(t*r*h/f);return a.y<o&&(m=-m),{x:s+p,y:o+m}}function zda(e,t,r){return wer(e,t,t,r)}function Gda(e,t,r,a){var s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;if(s=t.y-e.y,u=e.x-t.x,f=t.x*e.y-e.x*t.y,_=s*r.x+u*r.y+f,w=s*a.x+u*a.y+f,!(_!==0&&w!==0&&rCn(_,w))&&(o=a.y-r.y,h=r.x-a.x,p=a.x*r.y-r.x*a.y,m=o*e.x+h*e.y+p,b=o*t.x+h*t.y+p,!(m!==0&&b!==0&&rCn(m,b))&&(S=s*h-o*u,S!==0)))return C=Math.abs(S/2),A=u*p-h*f,k=A<0?(A-C)/S:(A+C)/S,A=o*f-s*p,I=A<0?(A-C)/S:(A+C)/S,{x:k,y:I}}function rCn(e,t){return e*t>0}function VA(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)});for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m<t.length;m++){var b=t[m],_=t[m<t.length-1?m+1:0],w=Gda(e,r,{x:f+b.x,y:p+b.y},{x:f+_.x,y:p+_.y});w&&o.push(w)}return o.length?(o.length>1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return I<P?-1:I===P?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",e),e)}function Gbt(e,t){var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}}var wht={rect:Hda,ellipse:Vda,circle:Yda,diamond:jda};function qda(e){wht=e}function Hda(e,t,r){var a=e.insert("rect",":first-child").attr("rx",r.rx).attr("ry",r.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return r.intersect=function(s){return Gbt(r,s)},a}function Vda(e,t,r){var a=t.width/2,s=t.height/2,o=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",a).attr("ry",s);return r.intersect=function(u){return wer(r,a,s,u)},o}function Yda(e,t,r){var a=Math.max(t.width,t.height)/2,s=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",a);return r.intersect=function(o){return zda(r,a,o)},s}function jda(e,t,r){var a=t.width*Math.SQRT2/2,s=t.height*Math.SQRT2/2,o=[{x:0,y:-s},{x:-a,y:0},{x:0,y:s},{x:a,y:0}],u=e.insert("polygon",":first-child").attr("points",o.map(function(h){return h.x+","+h.y}).join(" "));return r.intersect=function(h){return VA(r,o,h)},u}function Wda(){var e=function(t,r){Qda(r);var a=_ie(t,"output"),s=_ie(a,"clusters"),o=_ie(a,"edgePaths"),u=yht(_ie(a,"edgeLabels"),r),h=_ht(_ie(a,"nodes"),r,wht);oK(r),Uda(h,r),$da(u,r),vht(o,r,mht);var f=bht(s,r);Fda(f,r),Zda(r)};return e.createNodes=function(t){return arguments.length?(Bda(t),e):_ht},e.createClusters=function(t){return arguments.length?(Rda(t),e):bht},e.createEdgeLabels=function(t){return arguments.length?(Ida(t),e):yht},e.createEdgePaths=function(t){return arguments.length?(Nda(t),e):vht},e.shapes=function(t){return arguments.length?(qda(t),e):wht},e.arrows=function(t){return arguments.length?(Eda(t),e):mht},e}var Kda={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},Xda={arrowhead:"normal",curve:Cg};function Qda(e){e.nodes().forEach(function(t){var r=e.node(t);!Ho(r,"label")&&!e.children(t).length&&(r.label=t),Ho(r,"paddingX")&&BB(r,{paddingLeft:r.paddingX,paddingRight:r.paddingX}),Ho(r,"paddingY")&&BB(r,{paddingTop:r.paddingY,paddingBottom:r.paddingY}),Ho(r,"padding")&&BB(r,{paddingLeft:r.padding,paddingRight:r.padding,paddingTop:r.padding,paddingBottom:r.padding}),BB(r,Kda),Zt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(a){r[a]=Number(r[a])}),Ho(r,"width")&&(r._prevWidth=r.width),Ho(r,"height")&&(r._prevHeight=r.height)}),e.edges().forEach(function(t){var r=e.edge(t);Ho(r,"label")||(r.label=""),BB(r,Xda)})}function Zda(e){Zt(e.nodes(),function(t){var r=e.node(t);Ho(r,"_prevWidth")?r.width=r._prevWidth:delete r.width,Ho(r,"_prevHeight")?r.height=r._prevHeight:delete r.height,delete r._prevWidth,delete r._prevHeight})}function _ie(e,t){var r=e.select("g."+t);return r.empty()&&(r=e.append("g").attr("class",t)),r}function O7(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Jda(e),edges:efa(e)};return gl(e.graph())||(t.value=ZAe(e.graph())),t}function Jda(e){return wo(e.nodes(),function(t){var r=e.node(t),a=e.parent(t),s={v:t};return gl(r)||(s.value=r),gl(a)||(s.parent=a),s})}function efa(e){return wo(e.edges(),function(t){var r=e.edge(t),a={v:t.v,w:t.w};return gl(t.name)||(a.name=t.name),gl(r)||(a.value=r),a})}const tfa={};function nfa(e,t){const r=tfa,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Eer(e,a,s)}function Eer(e,t,r){if(rfa(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return iCn(e.children,t,r)}return Array.isArray(e)?iCn(e,t,r):""}function iCn(e,t,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=Eer(e[s],t,r);return a.join("")}function rfa(e){return!!(e&&typeof e=="object")}function SA(e,t,r,a){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,a.length<1e4)u=Array.from(a),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);o<a.length;)u=a.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function eS(e,t){return e.length>0?(SA(e,e.length,0,t),e):t}const aCn={}.hasOwnProperty;function ifa(e){const t={};let r=-1;for(;++r<e.length;)afa(t,e[r]);return t}function afa(e,t){let r;for(r in t){const s=(aCn.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let u;if(o)for(u in o){aCn.call(s,u)||(s[u]=[]);const h=o[u];sfa(s[u],Array.isArray(h)?h:h?[h]:[])}}}function sfa(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);SA(e,0,0,a)}const ofa=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,qC=cL(/[A-Za-z]/),G3=cL(/[\dA-Za-z]/),lfa=cL(/[#-'*+\--9=?A-Z^-~]/);function Eht(e){return e!==null&&(e<32||e===127)}const xht=cL(/\d/),cfa=cL(/[\dA-Fa-f]/),ufa=cL(/[!-/:-@[-`{-~]/);function $o(e){return e!==null&&e<-2}function t_(e){return e!==null&&(e<0||e===32)}function xu(e){return e===-2||e===-1||e===32}const hfa=cL(ofa),dfa=cL(/\s/);function cL(e){return t;function t(r){return r!==null&&e.test(String.fromCharCode(r))}}function Zh(e,t,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(f){return xu(f)?(e.enter(r),h(f)):t(f)}function h(f){return xu(f)&&o++<s?(e.consume(f),h):(e.exit(r),t(f))}}const ffa={tokenize:pfa};function pfa(e){const t=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return t;function a(h){if(h===null){e.consume(h);return}return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Zh(e,t,"linePrefix")}function s(h){return e.enter("paragraph"),o(h)}function o(h){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(h)}function u(h){if(h===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(h);return}return $o(h)?(e.consume(h),e.exit("chunkText"),o):(e.consume(h),u)}}const gfa={tokenize:mfa},sCn={tokenize:bfa};function mfa(e){const t=this,r=[];let a=0,s,o,u;return h;function h(N){if(a<r.length){const L=r[a];return t.containerState=L[1],e.attempt(L[0].continuation,f,p)(N)}return p(N)}function f(N){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&I();const L=t.events.length;let P=L,M;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){M=t.events[P][1].end;break}k(a);let F=L;for(;F<t.events.length;)t.events[F][1].end=Object.assign({},M),F++;return SA(t.events,P+1,0,t.events.slice(L)),t.events.length=F,p(N)}return h(N)}function p(N){if(a===r.length){if(!s)return _(N);if(s.currentConstruct&&s.currentConstruct.concrete)return S(N);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sCn,m,b)(N)}function m(N){return s&&I(),k(a),_(N)}function b(N){return t.parser.lazy[t.now().line]=a!==r.length,u=t.now().offset,S(N)}function _(N){return t.containerState={},e.attempt(sCn,w,S)(N)}function w(N){return a++,r.push([t.currentConstruct,t.containerState]),_(N)}function S(N){if(N===null){s&&I(),k(0),e.consume(N);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:s}),C(N)}function C(N){if(N===null){A(e.exit("chunkFlow"),!0),k(0),e.consume(N);return}return $o(N)?(e.consume(N),A(e.exit("chunkFlow")),a=0,t.interrupt=void 0,h):(e.consume(N),C)}function A(N,L){const P=t.sliceStream(N);if(L&&P.push(null),N.previous=o,o&&(o.next=N),o=N,s.defineSkip(N.start),s.write(P),t.parser.lazy[N.start.line]){let M=s.events.length;for(;M--;)if(s.events[M][1].start.offset<u&&(!s.events[M][1].end||s.events[M][1].end.offset>u))return;const F=t.events.length;let U=F,$,G;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if($){G=t.events[U][1].end;break}$=!0}for(k(a),M=F;M<t.events.length;)t.events[M][1].end=Object.assign({},G),M++;SA(t.events,U+1,0,t.events.slice(F)),t.events.length=M}}function k(N){let L=r.length;for(;L-- >N;){const P=r[L];t.containerState=P[1],P[0].exit.call(t,e)}r.length=N}function I(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function bfa(e,t,r){return Zh(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oCn(e){if(e===null||t_(e)||dfa(e))return 1;if(hfa(e))return 2}function qbt(e,t,r){const a=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!a.includes(o)&&(t=o(t,r),a.push(o))}return t}const Sht={name:"attention",tokenize:vfa,resolveAll:yfa};function yfa(e,t){let r=-1,a,s,o,u,h,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const b=Object.assign({},e[a][1].end),_=Object.assign({},e[r][1].start);lCn(b,-f),lCn(_,f),u={type:f>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},e[a][1].end)},h={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:_},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},s={type:f>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},h.end)},e[a][1].end=Object.assign({},u.start),e[r][1].start=Object.assign({},h.end),p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=eS(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=eS(p,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),p=eS(p,qbt(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),p=eS(p,[["exit",o,t],["enter",h,t],["exit",h,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=eS(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,SA(e,a-1,r-a+3,p),r=a+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function vfa(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=oCn(a);let o;return u;function u(f){return o=f,e.enter("attentionSequence"),h(f)}function h(f){if(f===o)return e.consume(f),h;const p=e.exit("attentionSequence"),m=oCn(f),b=!m||m===2&&s||r.includes(f),_=!s||s===2&&m||r.includes(a);return p._open=!!(o===42?b:b&&(s||!_)),p._close=!!(o===42?_:_&&(m||!b)),t(f)}}function lCn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _fa={name:"autolink",tokenize:wfa};function wfa(e,t,r){let a=0;return s;function s(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(w){return qC(w)?(e.consume(w),u):p(w)}function u(w){return w===43||w===45||w===46||G3(w)?(a=1,h(w)):p(w)}function h(w){return w===58?(e.consume(w),a=0,f):(w===43||w===45||w===46||G3(w))&&a++<32?(e.consume(w),h):(a=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Eht(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):lfa(w)?(e.consume(w),p):r(w)}function m(w){return G3(w)?b(w):r(w)}function b(w){return w===46?(e.consume(w),a=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):_(w)}function _(w){if((w===45||G3(w))&&a++<63){const S=w===45?_:b;return e.consume(w),S}return r(w)}}const y6e={tokenize:Efa,partial:!0};function Efa(e,t,r){return a;function a(o){return xu(o)?Zh(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||$o(o)?t(o):r(o)}}const xer={name:"blockQuote",tokenize:xfa,continuation:{tokenize:Sfa},exit:Tfa};function xfa(e,t,r){const a=this;return s;function s(u){if(u===62){const h=a.containerState;return h.open||(e.enter("blockQuote",{_container:!0}),h.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return r(u)}function o(u){return xu(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Sfa(e,t,r){const a=this;return s;function s(u){return xu(u)?Zh(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(xer,t,r)(u)}}function Tfa(e){e.exit("blockQuote")}const Ser={name:"characterEscape",tokenize:Cfa};function Cfa(e,t,r){return a;function a(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return ufa(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const Ter={name:"characterReference",tokenize:Afa};function Afa(e,t,r){const a=this;let s=0,o,u;return h;function h(b){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),f}function f(b){return b===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(b),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),o=31,u=G3,m(b))}function p(b){return b===88||b===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(b),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=cfa,m):(e.enter("characterReferenceValue"),o=7,u=xht,m(b))}function m(b){if(b===59&&s){const _=e.exit("characterReferenceValue");return u===G3&&!_ft(a.sliceSerialize(_))?r(b):(e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(b)&&s++<o?(e.consume(b),m):r(b)}}const cCn={tokenize:Rfa,partial:!0},uCn={name:"codeFenced",tokenize:kfa,concrete:!0};function kfa(e,t,r){const a=this,s={tokenize:P,partial:!0};let o=0,u=0,h;return f;function f(M){return p(M)}function p(M){const F=a.events[a.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,h=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(M)}function m(M){return M===h?(u++,e.consume(M),m):u<3?r(M):(e.exit("codeFencedFenceSequence"),xu(M)?Zh(e,b,"whitespace")(M):b(M))}function b(M){return M===null||$o(M)?(e.exit("codeFencedFence"),a.interrupt?t(M):e.check(cCn,C,L)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),_(M))}function _(M){return M===null||$o(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b(M)):xu(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Zh(e,w,"whitespace")(M)):M===96&&M===h?r(M):(e.consume(M),_)}function w(M){return M===null||$o(M)?b(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||$o(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(M)):M===96&&M===h?r(M):(e.consume(M),S)}function C(M){return e.attempt(s,L,A)(M)}function A(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),k}function k(M){return o>0&&xu(M)?Zh(e,I,"linePrefix",o+1)(M):I(M)}function I(M){return M===null||$o(M)?e.check(cCn,C,L)(M):(e.enter("codeFlowValue"),N(M))}function N(M){return M===null||$o(M)?(e.exit("codeFlowValue"),I(M)):(e.consume(M),N)}function L(M){return e.exit("codeFenced"),t(M)}function P(M,F,U){let $=0;return G;function G(W){return M.enter("lineEnding"),M.consume(W),M.exit("lineEnding"),B}function B(W){return M.enter("codeFencedFence"),xu(W)?Zh(M,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Z(W)}function Z(W){return W===h?(M.enter("codeFencedFenceSequence"),z(W)):U(W)}function z(W){return W===h?($++,M.consume(W),z):$>=u?(M.exit("codeFencedFenceSequence"),xu(W)?Zh(M,Y,"whitespace")(W):Y(W)):U(W)}function Y(W){return W===null||$o(W)?(M.exit("codeFencedFence"),F(W)):U(W)}}}function Rfa(e,t,r){const a=this;return s;function s(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}const Cat={name:"codeIndented",tokenize:Nfa},Ifa={tokenize:Ofa,partial:!0};function Nfa(e,t,r){const a=this;return s;function s(p){return e.enter("codeIndented"),Zh(e,o,"linePrefix",5)(p)}function o(p){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):$o(p)?e.attempt(Ifa,u,f)(p):(e.enter("codeFlowValue"),h(p))}function h(p){return p===null||$o(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),h)}function f(p){return e.exit("codeIndented"),t(p)}}function Ofa(e,t,r){const a=this;return s;function s(u){return a.parser.lazy[a.now().line]?r(u):$o(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Zh(e,o,"linePrefix",5)(u)}function o(u){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?t(u):$o(u)?s(u):r(u)}}const Lfa={name:"codeText",tokenize:Pfa,resolve:Dfa,previous:Mfa};function Dfa(e){let t=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)s===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(s=a):(a===t||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),t-=a-s-2,a=s+2),s=void 0);return e}function Mfa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pfa(e,t,r){let a=0,s,o;return u;function u(b){return e.enter("codeText"),e.enter("codeTextSequence"),h(b)}function h(b){return b===96?(e.consume(b),a++,h):(e.exit("codeTextSequence"),f(b))}function f(b){return b===null?r(b):b===32?(e.enter("space"),e.consume(b),e.exit("space"),f):b===96?(o=e.enter("codeTextSequence"),s=0,m(b)):$o(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(b))}function p(b){return b===null||b===32||b===96||$o(b)?(e.exit("codeTextData"),f(b)):(e.consume(b),p)}function m(b){return b===96?(e.consume(b),s++,m):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(b)):(o.type="codeTextData",p(b))}}function Cer(e){const t={};let r=-1,a,s,o,u,h,f,p;for(;++r<e.length;){for(;r in t;)r=t[r];if(a=e[r],r&&a[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(f=a[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,Bfa(e,r)),r=t[r],p=!0);else if(a[1]._container){for(o=r,s=void 0;o--&&(u=e[o],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(s&&(e[s][1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);s&&(a[1].end=Object.assign({},e[s][1].start),h=e.slice(s,r),h.unshift(a),SA(e,s,r-s+1,h))}}return!p}function Bfa(e,t){const r=e[t][1],a=e[t][2];let s=t-1;const o=[],u=r._tokenizer||a.parser[r.contentType](r.start),h=u.events,f=[],p={};let m,b,_=-1,w=r,S=0,C=0;const A=[C];for(;w;){for(;e[++s][1]!==w;);o.push(s),w._tokenizer||(m=a.sliceStream(w),w.next||m.push(null),b&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),b=w,w=w.next}for(w=r;++_<h.length;)h[_][0]==="exit"&&h[_-1][0]==="enter"&&h[_][1].type===h[_-1][1].type&&h[_][1].start.line!==h[_][1].end.line&&(C=_+1,A.push(C),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):A.pop(),_=A.length;_--;){const k=h.slice(A[_],A[_+1]),I=o.pop();f.unshift([I,I+k.length-1]),SA(e,I,2,k)}for(_=-1;++_<f.length;)p[S+f[_][0]]=S+f[_][1],S+=f[_][1]-f[_][0]-1;return p}const Ffa={tokenize:zfa,resolve:Ufa},$fa={tokenize:Gfa,partial:!0};function Ufa(e){return Cer(e),e}function zfa(e,t){let r;return a;function a(h){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?o(h):$o(h)?e.check($fa,u,o)(h):(e.consume(h),s)}function o(h){return e.exit("chunkContent"),e.exit("content"),t(h)}function u(h){return e.consume(h),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function Gfa(e,t,r){const a=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Zh(e,o,"linePrefix")}function o(u){if(u===null||$o(u))return r(u);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?t(u):e.interrupt(a.parser.constructs.flow,r,t)(u)}}function Aer(e,t,r,a,s,o,u,h,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return b;function b(k){return k===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(k),e.exit(o),_):k===null||k===32||k===41||Eht(k)?r(k):(e.enter(a),e.enter(u),e.enter(h),e.enter("chunkString",{contentType:"string"}),C(k))}function _(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(h),e.enter("chunkString",{contentType:"string"}),w(k))}function w(k){return k===62?(e.exit("chunkString"),e.exit(h),_(k)):k===null||k===60||$o(k)?r(k):(e.consume(k),k===92?S:w)}function S(k){return k===60||k===62||k===92?(e.consume(k),w):w(k)}function C(k){return!m&&(k===null||k===41||t_(k))?(e.exit("chunkString"),e.exit(h),e.exit(u),e.exit(a),t(k)):m<p&&k===40?(e.consume(k),m++,C):k===41?(e.consume(k),m--,C):k===null||k===32||k===40||Eht(k)?r(k):(e.consume(k),k===92?A:C)}function A(k){return k===40||k===41||k===92?(e.consume(k),C):C(k)}}function ker(e,t,r,a,s,o){const u=this;let h=0,f;return p;function p(w){return e.enter(a),e.enter(s),e.consume(w),e.exit(s),e.enter(o),m}function m(w){return h>999||w===null||w===91||w===93&&!f||w===94&&!h&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(o),e.enter(s),e.consume(w),e.exit(s),e.exit(a),t):$o(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||w===91||w===93||$o(w)||h++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!xu(w)),w===92?_:b)}function _(w){return w===91||w===92||w===93?(e.consume(w),h++,b):b(w)}}function Rer(e,t,r,a,s,o){let u;return h;function h(_){return _===34||_===39||_===40?(e.enter(a),e.enter(s),e.consume(_),e.exit(s),u=_===40?41:_,f):r(_)}function f(_){return _===u?(e.enter(s),e.consume(_),e.exit(s),e.exit(a),t):(e.enter(o),p(_))}function p(_){return _===u?(e.exit(o),f(u)):_===null?r(_):$o(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Zh(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===u||_===null||$o(_)?(e.exit("chunkString"),p(_)):(e.consume(_),_===92?b:m)}function b(_){return _===u||_===92?(e.consume(_),m):m(_)}}function Dse(e,t){let r;return a;function a(s){return $o(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):xu(s)?Zh(e,a,r?"linePrefix":"lineSuffix")(s):t(s)}}function uY(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qfa={name:"definition",tokenize:Vfa},Hfa={tokenize:Yfa,partial:!0};function Vfa(e,t,r){const a=this;let s;return o;function o(w){return e.enter("definition"),u(w)}function u(w){return ker.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function h(w){return s=uY(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return t_(w)?Dse(e,p)(w):p(w)}function p(w){return Aer(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(Hfa,b,b)(w)}function b(w){return xu(w)?Zh(e,_,"whitespace")(w):_(w)}function _(w){return w===null||$o(w)?(e.exit("definition"),a.parser.defined.push(s),t(w)):r(w)}}function Yfa(e,t,r){return a;function a(h){return t_(h)?Dse(e,s)(h):r(h)}function s(h){return Rer(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function o(h){return xu(h)?Zh(e,u,"whitespace")(h):u(h)}function u(h){return h===null||$o(h)?t(h):r(h)}}const jfa={name:"hardBreakEscape",tokenize:Wfa};function Wfa(e,t,r){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return $o(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const Kfa={name:"headingAtx",tokenize:Qfa,resolve:Xfa};function Xfa(e,t){let r=e.length-2,a=3,s,o;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},o={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},SA(e,a,r-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function Qfa(e,t,r){let a=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&a++<6?(e.consume(m),u):m===null||t_(m)?(e.exit("atxHeadingSequence"),h(m)):r(m)}function h(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||$o(m)?(e.exit("atxHeading"),t(m)):xu(m)?Zh(e,h,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),h(m))}function p(m){return m===null||m===35||t_(m)?(e.exit("atxHeadingText"),h(m)):(e.consume(m),p)}}const Zfa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hCn=["pre","script","style","textarea"],Jfa={name:"htmlFlow",tokenize:r0a,resolveTo:n0a,concrete:!0},e0a={tokenize:a0a,partial:!0},t0a={tokenize:i0a,partial:!0};function n0a(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function r0a(e,t,r){const a=this;let s,o,u,h,f;return p;function p(ie){return m(ie)}function m(ie){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ie),b}function b(ie){return ie===33?(e.consume(ie),_):ie===47?(e.consume(ie),o=!0,C):ie===63?(e.consume(ie),s=3,a.interrupt?t:te):qC(ie)?(e.consume(ie),u=String.fromCharCode(ie),A):r(ie)}function _(ie){return ie===45?(e.consume(ie),s=2,w):ie===91?(e.consume(ie),s=5,h=0,S):qC(ie)?(e.consume(ie),s=4,a.interrupt?t:te):r(ie)}function w(ie){return ie===45?(e.consume(ie),a.interrupt?t:te):r(ie)}function S(ie){const ge="CDATA[";return ie===ge.charCodeAt(h++)?(e.consume(ie),h===ge.length?a.interrupt?t:Z:S):r(ie)}function C(ie){return qC(ie)?(e.consume(ie),u=String.fromCharCode(ie),A):r(ie)}function A(ie){if(ie===null||ie===47||ie===62||t_(ie)){const ge=ie===47,ce=u.toLowerCase();return!ge&&!o&&hCn.includes(ce)?(s=1,a.interrupt?t(ie):Z(ie)):Zfa.includes(u.toLowerCase())?(s=6,ge?(e.consume(ie),k):a.interrupt?t(ie):Z(ie)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(ie):o?I(ie):N(ie))}return ie===45||G3(ie)?(e.consume(ie),u+=String.fromCharCode(ie),A):r(ie)}function k(ie){return ie===62?(e.consume(ie),a.interrupt?t:Z):r(ie)}function I(ie){return xu(ie)?(e.consume(ie),I):G(ie)}function N(ie){return ie===47?(e.consume(ie),G):ie===58||ie===95||qC(ie)?(e.consume(ie),L):xu(ie)?(e.consume(ie),N):G(ie)}function L(ie){return ie===45||ie===46||ie===58||ie===95||G3(ie)?(e.consume(ie),L):P(ie)}function P(ie){return ie===61?(e.consume(ie),M):xu(ie)?(e.consume(ie),P):N(ie)}function M(ie){return ie===null||ie===60||ie===61||ie===62||ie===96?r(ie):ie===34||ie===39?(e.consume(ie),f=ie,F):xu(ie)?(e.consume(ie),M):U(ie)}function F(ie){return ie===f?(e.consume(ie),f=null,$):ie===null||$o(ie)?r(ie):(e.consume(ie),F)}function U(ie){return ie===null||ie===34||ie===39||ie===47||ie===60||ie===61||ie===62||ie===96||t_(ie)?P(ie):(e.consume(ie),U)}function $(ie){return ie===47||ie===62||xu(ie)?N(ie):r(ie)}function G(ie){return ie===62?(e.consume(ie),B):r(ie)}function B(ie){return ie===null||$o(ie)?Z(ie):xu(ie)?(e.consume(ie),B):r(ie)}function Z(ie){return ie===45&&s===2?(e.consume(ie),Q):ie===60&&s===1?(e.consume(ie),V):ie===62&&s===4?(e.consume(ie),ne):ie===63&&s===3?(e.consume(ie),te):ie===93&&s===5?(e.consume(ie),ee):$o(ie)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(e0a,se,z)(ie)):ie===null||$o(ie)?(e.exit("htmlFlowData"),z(ie)):(e.consume(ie),Z)}function z(ie){return e.check(t0a,Y,se)(ie)}function Y(ie){return e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),W}function W(ie){return ie===null||$o(ie)?z(ie):(e.enter("htmlFlowData"),Z(ie))}function Q(ie){return ie===45?(e.consume(ie),te):Z(ie)}function V(ie){return ie===47?(e.consume(ie),u="",j):Z(ie)}function j(ie){if(ie===62){const ge=u.toLowerCase();return hCn.includes(ge)?(e.consume(ie),ne):Z(ie)}return qC(ie)&&u.length<8?(e.consume(ie),u+=String.fromCharCode(ie),j):Z(ie)}function ee(ie){return ie===93?(e.consume(ie),te):Z(ie)}function te(ie){return ie===62?(e.consume(ie),ne):ie===45&&s===2?(e.consume(ie),te):Z(ie)}function ne(ie){return ie===null||$o(ie)?(e.exit("htmlFlowData"),se(ie)):(e.consume(ie),ne)}function se(ie){return e.exit("htmlFlow"),t(ie)}}function i0a(e,t,r){const a=this;return s;function s(u){return $o(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):r(u)}function o(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}function a0a(e,t,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(y6e,t,r)}}const s0a={name:"htmlText",tokenize:o0a};function o0a(e,t,r){const a=this;let s,o,u;return h;function h(te){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(te),f}function f(te){return te===33?(e.consume(te),p):te===47?(e.consume(te),P):te===63?(e.consume(te),N):qC(te)?(e.consume(te),U):r(te)}function p(te){return te===45?(e.consume(te),m):te===91?(e.consume(te),o=0,S):qC(te)?(e.consume(te),I):r(te)}function m(te){return te===45?(e.consume(te),w):r(te)}function b(te){return te===null?r(te):te===45?(e.consume(te),_):$o(te)?(u=b,V(te)):(e.consume(te),b)}function _(te){return te===45?(e.consume(te),w):b(te)}function w(te){return te===62?Q(te):te===45?_(te):b(te)}function S(te){const ne="CDATA[";return te===ne.charCodeAt(o++)?(e.consume(te),o===ne.length?C:S):r(te)}function C(te){return te===null?r(te):te===93?(e.consume(te),A):$o(te)?(u=C,V(te)):(e.consume(te),C)}function A(te){return te===93?(e.consume(te),k):C(te)}function k(te){return te===62?Q(te):te===93?(e.consume(te),k):C(te)}function I(te){return te===null||te===62?Q(te):$o(te)?(u=I,V(te)):(e.consume(te),I)}function N(te){return te===null?r(te):te===63?(e.consume(te),L):$o(te)?(u=N,V(te)):(e.consume(te),N)}function L(te){return te===62?Q(te):N(te)}function P(te){return qC(te)?(e.consume(te),M):r(te)}function M(te){return te===45||G3(te)?(e.consume(te),M):F(te)}function F(te){return $o(te)?(u=F,V(te)):xu(te)?(e.consume(te),F):Q(te)}function U(te){return te===45||G3(te)?(e.consume(te),U):te===47||te===62||t_(te)?$(te):r(te)}function $(te){return te===47?(e.consume(te),Q):te===58||te===95||qC(te)?(e.consume(te),G):$o(te)?(u=$,V(te)):xu(te)?(e.consume(te),$):Q(te)}function G(te){return te===45||te===46||te===58||te===95||G3(te)?(e.consume(te),G):B(te)}function B(te){return te===61?(e.consume(te),Z):$o(te)?(u=B,V(te)):xu(te)?(e.consume(te),B):$(te)}function Z(te){return te===null||te===60||te===61||te===62||te===96?r(te):te===34||te===39?(e.consume(te),s=te,z):$o(te)?(u=Z,V(te)):xu(te)?(e.consume(te),Z):(e.consume(te),Y)}function z(te){return te===s?(e.consume(te),s=void 0,W):te===null?r(te):$o(te)?(u=z,V(te)):(e.consume(te),z)}function Y(te){return te===null||te===34||te===39||te===60||te===61||te===96?r(te):te===47||te===62||t_(te)?$(te):(e.consume(te),Y)}function W(te){return te===47||te===62||t_(te)?$(te):r(te)}function Q(te){return te===62?(e.consume(te),e.exit("htmlTextData"),e.exit("htmlText"),t):r(te)}function V(te){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),j}function j(te){return xu(te)?Zh(e,ee,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ee(te)}function ee(te){return e.enter("htmlTextData"),u(te)}}const Hbt={name:"labelEnd",tokenize:f0a,resolveTo:d0a,resolveAll:h0a},l0a={tokenize:p0a},c0a={tokenize:g0a},u0a={tokenize:m0a};function h0a(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function d0a(e,t){let r=e.length,a=0,s,o,u,h;for(;r--;)if(s=e[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(u=r);const f={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[u][1].end)},m={type:"labelText",start:Object.assign({},e[o+a+2][1].end),end:Object.assign({},e[u-2][1].start)};return h=[["enter",f,t],["enter",p,t]],h=eS(h,e.slice(o+1,o+a+3)),h=eS(h,[["enter",m,t]]),h=eS(h,qbt(t.parser.constructs.insideSpan.null,e.slice(o+a+4,u-3),t)),h=eS(h,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),h=eS(h,e.slice(u+1)),h=eS(h,[["exit",f,t]]),SA(e,o,e.length,h),e}function f0a(e,t,r){const a=this;let s=a.events.length,o,u;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){o=a.events[s][1];break}return h;function h(_){return o?o._inactive?b(_):(u=a.parser.defined.includes(uY(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelEnd"),f):r(_)}function f(_){return _===40?e.attempt(l0a,m,u?m:b)(_):_===91?e.attempt(c0a,m,u?p:b)(_):u?m(_):b(_)}function p(_){return e.attempt(u0a,m,b)(_)}function m(_){return t(_)}function b(_){return o._balanced=!0,r(_)}}function p0a(e,t,r){return a;function a(b){return e.enter("resource"),e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),s}function s(b){return t_(b)?Dse(e,o)(b):o(b)}function o(b){return b===41?m(b):Aer(e,u,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function u(b){return t_(b)?Dse(e,f)(b):m(b)}function h(b){return r(b)}function f(b){return b===34||b===39||b===40?Rer(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):m(b)}function p(b){return t_(b)?Dse(e,m)(b):m(b)}function m(b){return b===41?(e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),e.exit("resource"),t):r(b)}}function g0a(e,t,r){const a=this;return s;function s(h){return ker.call(a,e,o,u,"reference","referenceMarker","referenceString")(h)}function o(h){return a.parser.defined.includes(uY(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(h):r(h)}function u(h){return r(h)}}function m0a(e,t,r){return a;function a(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const b0a={name:"labelStartImage",tokenize:y0a,resolveAll:Hbt.resolveAll};function y0a(e,t,r){const a=this;return s;function s(h){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(h),e.exit("labelImageMarker"),o}function o(h){return h===91?(e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelImage"),u):r(h)}function u(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):t(h)}}const v0a={name:"labelStartLink",tokenize:_0a,resolveAll:Hbt.resolveAll};function _0a(e,t,r){const a=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(u):t(u)}}const Aat={name:"lineEnding",tokenize:w0a};function w0a(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Zh(e,t,"linePrefix")}}const lSe={name:"thematicBreak",tokenize:E0a};function E0a(e,t,r){let a=0,s;return o;function o(p){return e.enter("thematicBreak"),u(p)}function u(p){return s=p,h(p)}function h(p){return p===s?(e.enter("thematicBreakSequence"),f(p)):a>=3&&(p===null||$o(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===s?(e.consume(p),a++,f):(e.exit("thematicBreakSequence"),xu(p)?Zh(e,h,"whitespace")(p):h(p))}}const I2={name:"list",tokenize:T0a,continuation:{tokenize:C0a},exit:k0a},x0a={tokenize:R0a,partial:!0},S0a={tokenize:A0a,partial:!0};function T0a(e,t,r){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return h;function h(w){const S=a.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||w===a.containerState.marker:xht(w)){if(a.containerState.type||(a.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(lSe,r,p)(w):p(w);if(!a.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return xht(w)&&++u<10?(e.consume(w),f):(!a.interrupt||u<2)&&(a.containerState.marker?w===a.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||w,e.check(y6e,a.interrupt?r:m,e.attempt(x0a,_,b))}function m(w){return a.containerState.initialBlankLine=!0,o++,_(w)}function b(w){return xu(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),_):r(w)}function _(w){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function C0a(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(y6e,s,o);function s(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Zh(e,t,"listItemIndent",a.containerState.size+1)(h)}function o(h){return a.containerState.furtherBlankLines||!xu(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(S0a,t,u)(h))}function u(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,Zh(e,e.attempt(I2,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function A0a(e,t,r){const a=this;return Zh(e,s,"listItemIndent",a.containerState.size+1);function s(o){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(o):r(o)}}function k0a(e){e.exit(this.containerState.type)}function R0a(e,t,r){const a=this;return Zh(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=a.events[a.events.length-1];return!xu(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const dCn={name:"setextUnderline",tokenize:N0a,resolveTo:I0a};function I0a(e,t){let r=e.length,a,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const u={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end=Object.assign({},e[o][1].end)):e[a][1]=u,e.push(["exit",u,t]),e}function N0a(e,t,r){const a=this;let s;return o;function o(p){let m=a.events.length,b;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){b=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||b)?(e.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===s?(e.consume(p),h):(e.exit("setextHeadingLineSequence"),xu(p)?Zh(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||$o(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const O0a={tokenize:L0a};function L0a(e){const t=this,r=e.attempt(y6e,a,e.attempt(this.parser.constructs.flowInitial,s,Zh(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Ffa,s)),"linePrefix")));return r;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const D0a={resolveAll:Ner()},M0a=Ier("string"),P0a=Ier("text");function Ier(e){return{tokenize:t,resolveAll:Ner(e==="text"?B0a:void 0)};function t(r){const a=this,s=this.parser.constructs[e],o=r.attempt(s,u,h);return u;function u(m){return p(m)?o(m):h(m)}function h(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),o(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const b=s[m];let _=-1;if(b)for(;++_<b.length;){const w=b[_];if(!w.previous||w.previous.call(a,a.previous))return!0}return!1}}}function Ner(e){return t;function t(r,a){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(r,a):r}}function B0a(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=t.sliceStream(a);let o=s.length,u=-1,h=0,f;for(;o--;){const p=s[o];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)h++,u--;if(u)break;u=-1}else if(p===-2)f=!0,h++;else if(p!==-1){o++;break}}if(h){const p={type:r===e.length||f||h<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-h,offset:a.end.offset-h,_index:a.start._index+o,_bufferIndex:o?u:a.start._bufferIndex+u},end:Object.assign({},a.end)};a.end=Object.assign({},p.start),a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}function F0a(e,t,r){let a=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const s={},o=[];let u=[],h=[];const f={consume:I,enter:N,exit:L,attempt:F(P),check:F(M),interrupt:F(M,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:w,sliceSerialize:_,now:S,defineSkip:C,write:b};let m=t.tokenize.call(p,f);return t.resolveAll&&o.push(t),p;function b(B){return u=eS(u,B),A(),u[u.length-1]!==null?[]:(U(t,0),p.events=qbt(o,p.events,p),p.events)}function _(B,Z){return U0a(w(B),Z)}function w(B){return $0a(u,B)}function S(){const{line:B,column:Z,offset:z,_index:Y,_bufferIndex:W}=a;return{line:B,column:Z,offset:z,_index:Y,_bufferIndex:W}}function C(B){s[B.line]=B.column,G()}function A(){let B;for(;a._index<u.length;){const Z=u[a._index];if(typeof Z=="string")for(B=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===B&&a._bufferIndex<Z.length;)k(Z.charCodeAt(a._bufferIndex));else k(Z)}}function k(B){m=m(B)}function I(B){$o(B)?(a.line++,a.column=1,a.offset+=B===-3?2:1,G()):B!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=B}function N(B,Z){const z=Z||{};return z.type=B,z.start=S(),p.events.push(["enter",z,p]),h.push(z),z}function L(B){const Z=h.pop();return Z.end=S(),p.events.push(["exit",Z,p]),Z}function P(B,Z){U(B,Z.from)}function M(B,Z){Z.restore()}function F(B,Z){return z;function z(Y,W,Q){let V,j,ee,te;return Array.isArray(Y)?se(Y):"tokenize"in Y?se([Y]):ne(Y);function ne(be){return ve;function ve(De){const ye=De!==null&&be[De],Ee=De!==null&&be.null,he=[...Array.isArray(ye)?ye:ye?[ye]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return se(he)(De)}}function se(be){return V=be,j=0,be.length===0?Q:ie(be[j])}function ie(be){return ve;function ve(De){return te=$(),ee=be,be.partial||(p.currentConstruct=be),be.name&&p.parser.constructs.disable.null.includes(be.name)?ce():be.tokenize.call(Z?Object.assign(Object.create(p),Z):p,f,ge,ce)(De)}}function ge(be){return B(ee,te),W}function ce(be){return te.restore(),++j<V.length?ie(V[j]):Q}}}function U(B,Z){B.resolveAll&&!o.includes(B)&&o.push(B),B.resolve&&SA(p.events,Z,p.events.length-Z,B.resolve(p.events.slice(Z),p)),B.resolveTo&&(p.events=B.resolveTo(p.events,p))}function $(){const B=S(),Z=p.previous,z=p.currentConstruct,Y=p.events.length,W=Array.from(h);return{restore:Q,from:Y};function Q(){a=B,p.previous=Z,p.currentConstruct=z,p.events.length=Y,h=W,G()}}function G(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function $0a(e,t){const r=t.start._index,a=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(r===s)u=[e[r].slice(a,o)];else{if(u=e.slice(r,s),a>-1){const h=u[0];typeof h=="string"?u[0]=h.slice(a):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function U0a(e,t){let r=-1;const a=[];let s;for(;++r<e.length;){const o=e[r];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,a.push(u)}return a.join("")}const z0a={42:I2,43:I2,45:I2,48:I2,49:I2,50:I2,51:I2,52:I2,53:I2,54:I2,55:I2,56:I2,57:I2,62:xer},G0a={91:qfa},q0a={[-2]:Cat,[-1]:Cat,32:Cat},H0a={35:Kfa,42:lSe,45:[dCn,lSe],60:Jfa,61:dCn,95:lSe,96:uCn,126:uCn},V0a={38:Ter,92:Ser},Y0a={[-5]:Aat,[-4]:Aat,[-3]:Aat,33:b0a,38:Ter,42:Sht,60:[_fa,s0a],91:v0a,92:[jfa,Ser],93:Hbt,95:Sht,96:Lfa},j0a={null:[Sht,D0a]},W0a={null:[42,95]},K0a={null:[]},X0a=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:W0a,contentInitial:G0a,disable:K0a,document:z0a,flow:H0a,flowInitial:q0a,insideSpan:j0a,string:V0a,text:Y0a},Symbol.toStringTag,{value:"Module"}));function Q0a(e){const r=ifa([X0a,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:r,content:s(ffa),document:s(gfa),flow:s(O0a),string:s(M0a),text:s(P0a)};return a;function s(o){return u;function u(h){return F0a(a,o,h)}}}const fCn=/[\0\t\n\r]/g;function Z0a(){let e=1,t="",r=!0,a;return s;function s(o,u,h){const f=[];let p,m,b,_,w;for(o=t+o.toString(u),b=0,t="",r&&(o.charCodeAt(0)===65279&&b++,r=void 0);b<o.length;){if(fCn.lastIndex=b,p=fCn.exec(o),_=p&&p.index!==void 0?p.index:o.length,w=o.charCodeAt(_),!p){t=o.slice(b);break}if(w===10&&b===_&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),b<_&&(f.push(o.slice(b,_)),e+=_-b),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}b=_+1}return h&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}function J0a(e){for(;!Cer(e););return e}function Oer(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const e1a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t1a(e){return e.replace(e1a,n1a)}function n1a(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Oer(r.slice(o?2:1),o?16:10)}return _ft(r)||e}function cSe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pCn(e.position):"start"in e||"end"in e?pCn(e):"line"in e||"column"in e?Tht(e):""}function Tht(e){return gCn(e&&e.line)+":"+gCn(e&&e.column)}function pCn(e){return Tht(e&&e.start)+"-"+Tht(e&&e.end)}function gCn(e){return e&&typeof e=="number"?e:1}const Ler={}.hasOwnProperty,Der=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),r1a(r)(J0a(Q0a(r).document().write(Z0a()(e,t,!0))))};function r1a(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ot),autolinkProtocol:B,autolinkEmail:B,atxHeading:h(Fe),blockQuote:h(he),characterEscape:B,characterReference:B,codeFenced:h(we),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(we,f),codeText:h(Ce,f),codeTextData:B,data:B,codeFlowValue:B,definition:h(Ie),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(Le),hardBreakEscape:h(Ve),hardBreakTrailing:h(Ve),htmlFlow:h(Oe,f),htmlFlowData:B,htmlText:h(Oe,f),htmlTextData:B,image:h(Dt),label:f,link:h(ot),listItem:h(Kt),listItemValue:S,listOrdered:h(sn,w),listUnordered:h(sn),paragraph:h(Ft),reference:ce,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(Fe),strong:h(Je),thematicBreak:h(et)},exit:{atxHeading:m(),atxHeadingSequence:F,autolink:m(),autolinkEmail:Ee,autolinkProtocol:ye,blockQuote:m(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:De,codeFenced:m(I),codeFencedFence:k,codeFencedFenceInfo:C,codeFencedFenceMeta:A,codeFlowValue:Z,codeIndented:m(N),codeText:m(V),codeTextData:Z,data:Z,definition:m(),definitionDestinationString:M,definitionLabelString:L,definitionTitleString:P,emphasis:m(),hardBreakEscape:m(Y),hardBreakTrailing:m(Y),htmlFlow:m(W),htmlFlowData:Z,htmlText:m(Q),htmlTextData:Z,image:m(ee),label:ne,labelText:te,lineEnding:z,link:m(j),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:be,resourceDestinationString:se,resourceTitleString:ie,resource:ge,setextHeading:m(G),setextHeadingLineSequence:$,setextHeadingText:U,strong:m(),thematicBreak:m()}};Mer(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(qe){let He={type:"root",children:[]};const Ge={stack:[He],tokenStack:[],config:t,enter:p,exit:b,buffer:f,resume:_,setData:o,getData:u},Ye=[];let Ae=-1;for(;++Ae<qe.length;)if(qe[Ae][1].type==="listOrdered"||qe[Ae][1].type==="listUnordered")if(qe[Ae][0]==="enter")Ye.push(Ae);else{const Xe=Ye.pop();Ae=s(qe,Xe,Ae)}for(Ae=-1;++Ae<qe.length;){const Xe=t[qe[Ae][0]];Ler.call(Xe,qe[Ae][1].type)&&Xe[qe[Ae][1].type].call(Object.assign({sliceSerialize:qe[Ae][2].sliceSerialize},Ge),qe[Ae][1])}if(Ge.tokenStack.length>0){const Xe=Ge.tokenStack[Ge.tokenStack.length-1];(Xe[1]||mCn).call(Ge,void 0,Xe[0])}for(He.position={start:$N(qe.length>0?qe[0][1].start:{line:1,column:1,offset:0}),end:$N(qe.length>0?qe[qe.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)He=t.transforms[Ae](He)||He;return He}function s(qe,He,Ge){let Ye=He-1,Ae=-1,Xe=!1,fe,Qe,Ke,mt;for(;++Ye<=Ge;){const lt=qe[Ye];if(lt[1].type==="listUnordered"||lt[1].type==="listOrdered"||lt[1].type==="blockQuote"?(lt[0]==="enter"?Ae++:Ae--,mt=void 0):lt[1].type==="lineEndingBlank"?lt[0]==="enter"&&(fe&&!mt&&!Ae&&!Ke&&(Ke=Ye),mt=void 0):lt[1].type==="linePrefix"||lt[1].type==="listItemValue"||lt[1].type==="listItemMarker"||lt[1].type==="listItemPrefix"||lt[1].type==="listItemPrefixWhitespace"||(mt=void 0),!Ae&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||Ae===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(fe){let $t=Ye;for(Qe=void 0;$t--;){const Ut=qe[$t];if(Ut[1].type==="lineEnding"||Ut[1].type==="lineEndingBlank"){if(Ut[0]==="exit")continue;Qe&&(qe[Qe][1].type="lineEndingBlank",Xe=!0),Ut[1].type="lineEnding",Qe=$t}else if(!(Ut[1].type==="linePrefix"||Ut[1].type==="blockQuotePrefix"||Ut[1].type==="blockQuotePrefixWhitespace"||Ut[1].type==="blockQuoteMarker"||Ut[1].type==="listItemIndent"))break}Ke&&(!Qe||Ke<Qe)&&(fe._spread=!0),fe.end=Object.assign({},Qe?qe[Qe][1].start:lt[1].end),qe.splice(Qe||Ye,0,["exit",fe,lt[2]]),Ye++,Ge++}lt[1].type==="listItemPrefix"&&(fe={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0},qe.splice(Ye,0,["enter",fe,lt[2]]),Ye++,Ge++,Ke=void 0,mt=!0)}}return qe[He][1]._spread=Xe,Ge}function o(qe,He){r[qe]=He}function u(qe){return r[qe]}function h(qe,He){return Ge;function Ge(Ye){p.call(this,qe(Ye),Ye),He&&He.call(this,Ye)}}function f(){this.stack.push({type:"fragment",children:[]})}function p(qe,He,Ge){return this.stack[this.stack.length-1].children.push(qe),this.stack.push(qe),this.tokenStack.push([He,Ge]),qe.position={start:$N(He.start)},qe}function m(qe){return He;function He(Ge){qe&&qe.call(this,Ge),b.call(this,Ge)}}function b(qe,He){const Ge=this.stack.pop(),Ye=this.tokenStack.pop();if(Ye)Ye[0].type!==qe.type&&(He?He.call(this,qe,Ye[0]):(Ye[1]||mCn).call(this,qe,Ye[0]));else throw new Error("Cannot close `"+qe.type+"` ("+cSe({start:qe.start,end:qe.end})+"): it’s not open");return Ge.position.end=$N(qe.end),Ge}function _(){return nfa(this.stack.pop())}function w(){o("expectingFirstListItemValue",!0)}function S(qe){if(u("expectingFirstListItemValue")){const He=this.stack[this.stack.length-2];He.start=Number.parseInt(this.sliceSerialize(qe),10),o("expectingFirstListItemValue")}}function C(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.lang=qe}function A(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.meta=qe}function k(){u("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function I(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.value=qe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function N(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.value=qe.replace(/(\r?\n|\r)$/g,"")}function L(qe){const He=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=He,Ge.identifier=uY(this.sliceSerialize(qe)).toLowerCase()}function P(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.title=qe}function M(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.url=qe}function F(qe){const He=this.stack[this.stack.length-1];if(!He.depth){const Ge=this.sliceSerialize(qe).length;He.depth=Ge}}function U(){o("setextHeadingSlurpLineEnding",!0)}function $(qe){const He=this.stack[this.stack.length-1];He.depth=this.sliceSerialize(qe).charCodeAt(0)===61?1:2}function G(){o("setextHeadingSlurpLineEnding")}function B(qe){const He=this.stack[this.stack.length-1];let Ge=He.children[He.children.length-1];(!Ge||Ge.type!=="text")&&(Ge=ht(),Ge.position={start:$N(qe.start)},He.children.push(Ge)),this.stack.push(Ge)}function Z(qe){const He=this.stack.pop();He.value+=this.sliceSerialize(qe),He.position.end=$N(qe.end)}function z(qe){const He=this.stack[this.stack.length-1];if(u("atHardBreak")){const Ge=He.children[He.children.length-1];Ge.position.end=$N(qe.end),o("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(He.type)&&(B.call(this,qe),Z.call(this,qe))}function Y(){o("atHardBreak",!0)}function W(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.value=qe}function Q(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.value=qe}function V(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.value=qe}function j(){const qe=this.stack[this.stack.length-1];if(u("inReference")){const He=u("referenceType")||"shortcut";qe.type+="Reference",qe.referenceType=He,delete qe.url,delete qe.title}else delete qe.identifier,delete qe.label;o("referenceType")}function ee(){const qe=this.stack[this.stack.length-1];if(u("inReference")){const He=u("referenceType")||"shortcut";qe.type+="Reference",qe.referenceType=He,delete qe.url,delete qe.title}else delete qe.identifier,delete qe.label;o("referenceType")}function te(qe){const He=this.sliceSerialize(qe),Ge=this.stack[this.stack.length-2];Ge.label=t1a(He),Ge.identifier=uY(He).toLowerCase()}function ne(){const qe=this.stack[this.stack.length-1],He=this.resume(),Ge=this.stack[this.stack.length-1];if(o("inReference",!0),Ge.type==="link"){const Ye=qe.children;Ge.children=Ye}else Ge.alt=He}function se(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.url=qe}function ie(){const qe=this.resume(),He=this.stack[this.stack.length-1];He.title=qe}function ge(){o("inReference")}function ce(){o("referenceType","collapsed")}function be(qe){const He=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=He,Ge.identifier=uY(this.sliceSerialize(qe)).toLowerCase(),o("referenceType","full")}function ve(qe){o("characterReferenceType",qe.type)}function De(qe){const He=this.sliceSerialize(qe),Ge=u("characterReferenceType");let Ye;Ge?(Ye=Oer(He,Ge==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Ye=_ft(He);const Ae=this.stack.pop();Ae.value+=Ye,Ae.position.end=$N(qe.end)}function ye(qe){Z.call(this,qe);const He=this.stack[this.stack.length-1];He.url=this.sliceSerialize(qe)}function Ee(qe){Z.call(this,qe);const He=this.stack[this.stack.length-1];He.url="mailto:"+this.sliceSerialize(qe)}function he(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Ce(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function Fe(){return{type:"heading",depth:void 0,children:[]}}function Ve(){return{type:"break"}}function Oe(){return{type:"html",value:""}}function Dt(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function sn(qe){return{type:"list",ordered:qe.type==="listOrdered",start:null,spread:qe._spread,children:[]}}function Kt(qe){return{type:"listItem",spread:qe._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function Je(){return{type:"strong",children:[]}}function ht(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function $N(e){return{line:e.line,column:e.column,offset:e.offset}}function Mer(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?Mer(e,a):i1a(e,a)}}function i1a(e,t){let r;for(r in t)if(Ler.call(t,r)){if(r==="canContainEols"){const a=t[r];a&&e[r].push(...a)}else if(r==="transforms"){const a=t[r];a&&e[r].push(...a)}else if(r==="enter"||r==="exit"){const a=t[r];a&&Object.assign(e[r],a)}}}function mCn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+cSe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cSe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+cSe({start:t.start,end:t.end})+") is still open")}function a1a(e){const t=e.replace(/\n{2,}/g,`
`);return TAe(t)}function s1a(e){const t=a1a(e),{children:r}=Der(t),a=[[]];let s=0;function o(u,h="normal"){u.type==="text"?u.value.split(`
`).forEach((p,m)=>{m!==0&&(s++,a.push([])),p.split(" ").forEach(b=>{b&&a[s].push({content:b,type:h})})}):(u.type==="strong"||u.type==="emphasis")&&u.children.forEach(f=>{o(f,u.type)})}return r.forEach(u=>{u.type==="paragraph"&&u.children.forEach(h=>{o(h)})}),a}function o1a(e){const{children:t}=Der(e);function r(a){return a.type==="text"?a.value.replace(/\n/g,"<br/>"):a.type==="strong"?`<strong>${a.children.map(r).join("")}</strong>`:a.type==="emphasis"?`<em>${a.children.map(r).join("")}</em>`:a.type==="paragraph"?`<p>${a.children.map(r).join("")}</p>`:`Unsupported markdown: ${a.type}`}return t.map(r).join("")}function l1a(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function c1a(e,t){const r=l1a(t.content);return Per(e,[],r,t.type)}function Per(e,t,r,a){if(r.length===0)return[{content:t.join(""),type:a},{content:"",type:a}];const[s,...o]=r,u=[...t,s];return e([{content:u.join(""),type:a}])?Per(e,u,o,a):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:a},{content:r.join(""),type:a}])}function u1a(e,t){if(e.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Cht(e,t)}function Cht(e,t,r=[],a=[]){if(e.length===0)return a.length>0&&r.push(a),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},u=[...a];if(s!==""&&u.push({content:s,type:"normal"}),u.push(o),t(u))return Cht(e,t,r,u);if(a.length>0)r.push(a),e.unshift(o);else if(o.content){const[h,f]=c1a(t,o);r.push([h]),f.content&&e.unshift(f)}return Cht(e,t,r)}function h1a(e,t){t&&e.attr("style",t)}function d1a(e,t,r,a,s=!1){const o=e.append("foreignObject"),u=o.append("xhtml:div"),h=t.label,f=t.isNode?"nodeLabel":"edgeLabel";u.html(`
    <span class="${f} ${a}" `+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+h+"</span>"),h1a(u,t.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",r+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&u.attr("class","labelBkg");let p=u.node().getBoundingClientRect();return p.width===r&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",r+"px"),p=u.node().getBoundingClientRect()),o.style("width",p.width),o.style("height",p.height),o.node()}function Vbt(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function f1a(e,t,r){const a=e.append("text"),s=Vbt(a,1,t);Ybt(s,r);const o=s.node().getComputedTextLength();return a.remove(),o}function p1a(e,t,r){var a;const s=e.append("text"),o=Vbt(s,1,t);Ybt(o,[{content:r,type:"normal"}]);const u=(a=o.node())==null?void 0:a.getBoundingClientRect();return u&&s.remove(),u}function g1a(e,t,r,a=!1){const o=t.append("g"),u=o.insert("rect").attr("class","background"),h=o.append("text").attr("y","-10.1");let f=0;for(const p of r){const m=_=>f1a(o,1.1,_)<=e,b=m(p)?[p]:u1a(p,m);for(const _ of b){const w=Vbt(h,f,1.1);Ybt(w,_),f++}}if(a){const p=h.node().getBBox(),m=2;return u.attr("x",-m).attr("y",-m).attr("width",p.width+2*m).attr("height",p.height+2*m),o.node()}else return h.node()}function Ybt(e,t){e.text(""),t.forEach((r,a)=>{const s=e.append("tspan").attr("font-style",r.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");a===0?s.text(r.content):s.text(" "+r.content)})}const v6e=(e,t="",{style:r="",isTitle:a=!1,classes:s="",useHtmlLabels:o=!0,isNode:u=!0,width:h=200,addSvgBackground:f=!1}={})=>{if(ut.info("createText",t,r,a,s,o,u,f),o){const p=o1a(t),m={isNode:u,label:ple(p).replace(/fa[blrs]?:fa-[\w-]+/g,_=>`<i class='${_.replace(":"," ")}'></i>`),labelStyle:r.replace("fill:","color:")};return d1a(e,m,h,s,f)}else{const p=s1a(t);return g1a(h,e,p,f)}},m1a=(e,t,r,a)=>{t.forEach(s=>{C1a[s](e,r,a)})},b1a=(e,t,r)=>{ut.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},y1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).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")},v1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).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")},_1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).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")},w1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},E1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).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")},x1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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")},S1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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")},T1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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")},C1a={extension:b1a,composition:y1a,aggregation:v1a,dependency:_1a,lollipop:w1a,point:E1a,circle:x1a,cross:S1a,barb:T1a},jbt=m1a;function A1a(e,t){t&&e.attr("style",t)}function k1a(e){const t=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),a=e.label,s=e.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+s+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+a+"</span>"),A1a(r,e.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const R1a=(e,t,r,a)=>{let s=e||"";if(typeof s=="object"&&(s=s[0]),Np(Qt().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"<br />"),ut.debug("vertexText"+s);const o={isNode:a,label:ple(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>`<i class='${h.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return k1a(o)}else{const o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",t.replace("color:","fill:"));let u=[];typeof s=="string"?u=s.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(s)?u=s:u=[];for(const h of u){const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f.setAttribute("dy","1em"),f.setAttribute("x","0"),r?f.setAttribute("class","title-row"):f.setAttribute("class","row"),f.textContent=h.trim(),o.appendChild(f)}return o}},q2=R1a,Up=async(e,t,r,a)=>{let s;const o=t.useHtmlLabels||Np(Qt().flowchart.htmlLabels);r?s=r:s="node default";const u=e.insert("g").attr("class",s).attr("id",t.domId||t.id),h=u.insert("g").attr("class","label").attr("style",t.labelStyle);let f;t.labelText===void 0?f="":f=typeof t.labelText=="string"?t.labelText:t.labelText[0];const p=h.node();let m;t.labelType==="markdown"?m=v6e(h,J0(ple(f),Qt()),{useHtmlLabels:o,width:t.width||Qt().flowchart.wrappingWidth,classes:"markdown-node-label"}):m=p.appendChild(q2(J0(ple(f),Qt()),t.labelStyle,!1,a));let b=m.getBBox();const _=t.padding/2;if(Np(Qt().flowchart.htmlLabels)){const w=m.children[0],S=gn(m),C=w.getElementsByTagName("img");if(C){const A=f.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...C].map(k=>new Promise(I=>{function N(){if(k.style.display="flex",k.style.flexDirection="column",A){const L=Qt().fontSize?Qt().fontSize:window.getComputedStyle(document.body).fontSize,M=parseInt(L,10)*5+"px";k.style.minWidth=M,k.style.maxWidth=M}else k.style.width="100%";I(k)}setTimeout(()=>{k.complete&&N()}),k.addEventListener("error",N),k.addEventListener("load",N)})))}b=w.getBoundingClientRect(),S.attr("width",b.width),S.attr("height",b.height)}return o?h.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"):h.attr("transform","translate(0, "+-b.height/2+")"),t.centerLabel&&h.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:u,bbox:b,halfPadding:_,label:h}},Df=(e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height};function YA(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function I1a(e,t){return e.intersect(t)}function Ber(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x<s&&(p=-p);var m=Math.abs(t*r*h/f);return a.y<o&&(m=-m),{x:s+p,y:o+m}}function N1a(e,t,r){return Ber(e,t,t,r)}function O1a(e,t,r,a){var s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;if(s=t.y-e.y,u=e.x-t.x,f=t.x*e.y-e.x*t.y,_=s*r.x+u*r.y+f,w=s*a.x+u*a.y+f,!(_!==0&&w!==0&&bCn(_,w))&&(o=a.y-r.y,h=r.x-a.x,p=a.x*r.y-r.x*a.y,m=o*e.x+h*e.y+p,b=o*t.x+h*t.y+p,!(m!==0&&b!==0&&bCn(m,b))&&(S=s*h-o*u,S!==0)))return C=Math.abs(S/2),A=u*p-h*f,k=A<0?(A-C)/S:(A+C)/S,A=o*f-s*p,I=A<0?(A-C)/S:(A+C)/S,{x:k,y:I}}function bCn(e,t){return e*t>0}function L1a(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m<t.length;m++){var b=t[m],_=t[m<t.length-1?m+1:0],w=O1a(e,r,{x:f+b.x,y:p+b.y},{x:f+_.x,y:p+_.y});w&&o.push(w)}return o.length?(o.length>1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return I<P?-1:I===P?0:1}),o[0]):e}const D1a=(e,t)=>{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},eue=D1a,Zd={node:I1a,circle:N1a,ellipse:Ber,polygon:L1a,rect:eue},M1a=async(e,t)=>{t.useHtmlLabels||Qt().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:a,bbox:s,halfPadding:o}=await Up(e,t,"node "+t.classes,!0);ut.info("Classes = ",t.classes);const u=a.insert("rect",":first-child");return u.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-o).attr("y",-s.height/2-o).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Df(t,u),t.intersect=function(h){return Zd.rect(t,h)},a},P1a=M1a,B1a=e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},F1a=(e,t,r)=>{const a=B1a(e),s=2,o=t.height+2*r.padding,u=o/s,h=t.width+2*u+r.padding,f=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:u,y:0},{x:h/2,y:2*f},{x:h-u,y:0},{x:h,y:0},{x:h,y:-o/3},{x:h+2*f,y:-o/2},{x:h,y:-2*o/3},{x:h,y:-o},{x:h-u,y:-o},{x:h/2,y:-o-2*f},{x:u,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*f,y:-o/2},{x:0,y:-o/3}]:a.has("right")&&a.has("left")&&a.has("up")?[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:u,y:-o},{x:h-u,y:-o},{x:h,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:h,y:-u},{x:h,y:-o+u},{x:0,y:-o}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:h,y:0},{x:0,y:-u},{x:0,y:-o+u},{x:h,y:-o}]:a.has("right")&&a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")&&a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:h,y:-u},{x:0,y:-o}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-o}]:a.has("left")&&a.has("up")?[{x:h,y:0},{x:0,y:-u},{x:h,y:-o}]:a.has("left")&&a.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-o}]:a.has("right")?[{x:u,y:-f},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o+f}]:a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")?[{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f}]:a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:[{x:0,y:0}]},yCn=e=>e?" "+e:"",Jw=(e,t)=>`node default${yCn(e.classes)} ${yCn(e.class)}`,vCn=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=s+o,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];ut.info("Question main (Circle)");const f=YA(r,u,u,h);return f.attr("style",t.style),Df(t,f),t.intersect=function(p){return ut.warn("Intersect called"),Zd.polygon(t,h,p)},r},$1a=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=28,s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];return r.insert("polygon",":first-child").attr("points",s.map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(u){return Zd.circle(t,14,u)},r},U1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=4,o=a.height+t.padding,u=o/s,h=a.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}],p=YA(r,h,o,f);return p.attr("style",t.style),Df(t,p),t.intersect=function(m){return Zd.polygon(t,f,m)},r},z1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,void 0,!0),s=2,o=a.height+2*t.padding,u=o/s,h=a.width+2*u+t.padding,f=F1a(t.directions,a,t),p=YA(r,h,o,f);return p.attr("style",t.style),Df(t,p),t.intersect=function(m){return Zd.polygon(t,f,m)},r},G1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-o/2,y:0},{x:s,y:0},{x:s,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return YA(r,s,o,u).attr("style",t.style),t.width=s+o,t.height=o,t.intersect=function(f){return Zd.polygon(t,u,f)},r},q1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},H1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},V1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},Y1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},j1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s+o/2,y:0},{x:s,y:-o/2},{x:s+o/2,y:-o},{x:0,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},W1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=s/2,u=o/(2.5+s/50),h=a.height+u+t.padding,f="M 0,"+u+" a "+o+","+u+" 0,0,0 "+s+" 0 a "+o+","+u+" 0,0,0 "+-s+" 0 l 0,"+h+" a "+o+","+u+" 0,0,0 "+s+" 0 l 0,"+-h,p=r.attr("label-offset-y",u).insert("path",":first-child").attr("style",t.style).attr("d",f).attr("transform","translate("+-s/2+","+-(h/2+u)+")");return Df(t,p),t.intersect=function(m){const b=Zd.rect(t,m),_=b.x-t.x;if(o!=0&&(Math.abs(_)<t.width/2||Math.abs(_)==t.width/2&&Math.abs(b.y-t.y)>t.height/2-u)){let w=u*u*(1-_*_/(o*o));w!=0&&(w=Math.sqrt(w)),w=u-w,m.y-t.y>0&&(w=-w),b.y+=w}return b},r},K1a=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,"node "+t.classes+" "+t.class,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(Wbt(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{ut.warn(`Unknown node property ${b}`)})}return Df(t,o),t.intersect=function(m){return Zd.rect(t,m)},r},X1a=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,"node "+t.classes,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(Wbt(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{ut.warn(`Unknown node property ${b}`)})}return Df(t,o),t.intersect=function(m){return Zd.rect(t,m)},r},Q1a=async(e,t)=>{const{shapeSvg:r}=await Up(e,t,"label",!0);ut.trace("Classes = ",t.class);const a=r.insert("rect",":first-child"),s=0,o=0;if(a.attr("width",s).attr("height",o),r.attr("class","label edgeLabel"),t.props){const u=new Set(Object.keys(t.props));t.props.borders&&(Wbt(a,t.props.borders,s,o),u.delete("borders")),u.forEach(h=>{ut.warn(`Unknown node property ${h}`)})}return Df(t,a),t.intersect=function(u){return Zd.rect(t,u)},r};function Wbt(e,t,r,a){const s=[],o=h=>{s.push(h,0)},u=h=>{s.push(0,h)};t.includes("t")?(ut.debug("add top border"),o(r)):u(r),t.includes("r")?(ut.debug("add right border"),o(a)):u(a),t.includes("b")?(ut.debug("add bottom border"),o(r)):u(r),t.includes("l")?(ut.debug("add left border"),o(a)):u(a),e.attr("stroke-dasharray",s.join(" "))}const Z1a=(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const a=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=a.insert("rect",":first-child"),o=a.insert("line"),u=a.insert("g").attr("class","label"),h=t.labelText.flat?t.labelText.flat():t.labelText;let f="";typeof h=="object"?f=h[0]:f=h,ut.info("Label text abc79",f,h,typeof h=="object");const p=u.node().appendChild(q2(f,t.labelStyle,!0,!0));let m={width:0,height:0};if(Np(Qt().flowchart.htmlLabels)){const C=p.children[0],A=gn(p);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}ut.info("Text 2",h);const b=h.slice(1,h.length);let _=p.getBBox();const w=u.node().appendChild(q2(b.join?b.join("<br/>"):b,t.labelStyle,!0,!0));if(Np(Qt().flowchart.htmlLabels)){const C=w.children[0],A=gn(w);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}const S=t.padding/2;return gn(w).attr("transform","translate( "+(m.width>_.width?0:(_.width-m.width)/2)+", "+(_.height+S+5)+")"),gn(p).attr("transform","translate( "+(m.width<_.width?0:-(_.width-m.width)/2)+", 0)"),m=u.node().getBBox(),u.attr("transform","translate("+-m.width/2+", "+(-m.height/2-S+3)+")"),s.attr("class","outer title-state").attr("x",-m.width/2-S).attr("y",-m.height/2-S).attr("width",m.width+t.padding).attr("height",m.height+t.padding),o.attr("class","divider").attr("x1",-m.width/2-S).attr("x2",m.width/2+S).attr("y1",-m.height/2-S+_.height+S).attr("y2",-m.height/2-S+_.height+S),Df(t,s),t.intersect=function(C){return Zd.rect(t,C)},a},J1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.height+t.padding,o=a.width+s/4+t.padding,u=r.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s);return Df(t,u),t.intersect=function(h){return Zd.rect(t,h)},r},epa=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,Jw(t),!0),o=r.insert("circle",":first-child");return o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),ut.info("Circle main"),Df(t,o),t.intersect=function(u){return ut.info("Circle intersect",t,a.width/2+s,u),Zd.circle(t,a.width/2+s,u)},r},tpa=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,Jw(t),!0),o=5,u=r.insert("g",":first-child"),h=u.insert("circle"),f=u.insert("circle");return u.attr("class",t.class),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s+o).attr("width",a.width+t.padding+o*2).attr("height",a.height+t.padding+o*2),f.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),ut.info("DoubleCircle main"),Df(t,h),t.intersect=function(p){return ut.info("DoubleCircle intersect",t,a.width/2+s+o,p),Zd.circle(t,a.width/2+s+o,p)},r},npa=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},rpa=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Df(t,a),t.intersect=function(s){return Zd.circle(t,7,s)},r},_Cn=(e,t,r)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,o=10;r==="LR"&&(s=10,o=70);const u=a.append("rect").attr("x",-1*s/2).attr("y",-1*o/2).attr("width",s).attr("height",o).attr("class","fork-join");return Df(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(h){return Zd.rect(t,h)},a},ipa=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Df(t,s),t.intersect=function(o){return Zd.circle(t,7,o)},r},apa=(e,t)=>{const r=t.padding/2,a=4,s=8;let o;t.classes?o="node "+t.classes:o="node default";const u=e.insert("g").attr("class",o).attr("id",t.domId||t.id),h=u.insert("rect",":first-child"),f=u.insert("line"),p=u.insert("line");let m=0,b=a;const _=u.insert("g").attr("class","label");let w=0;const S=t.classData.annotations&&t.classData.annotations[0],C=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",A=_.node().appendChild(q2(C,t.labelStyle,!0,!0));let k=A.getBBox();if(Np(Qt().flowchart.htmlLabels)){const U=A.children[0],$=gn(A);k=U.getBoundingClientRect(),$.attr("width",k.width),$.attr("height",k.height)}t.classData.annotations[0]&&(b+=k.height+a,m+=k.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(Qt().flowchart.htmlLabels?I+="&lt;"+t.classData.type+"&gt;":I+="<"+t.classData.type+">");const N=_.node().appendChild(q2(I,t.labelStyle,!0,!0));gn(N).attr("class","classTitle");let L=N.getBBox();if(Np(Qt().flowchart.htmlLabels)){const U=N.children[0],$=gn(N);L=U.getBoundingClientRect(),$.attr("width",L.width),$.attr("height",L.height)}b+=L.height+a,L.width>m&&(m=L.width);const P=[];t.classData.members.forEach(U=>{const $=U.getDisplayDetails();let G=$.displayText;Qt().flowchart.htmlLabels&&(G=G.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const B=_.node().appendChild(q2(G,$.cssStyle?$.cssStyle:t.labelStyle,!0,!0));let Z=B.getBBox();if(Np(Qt().flowchart.htmlLabels)){const z=B.children[0],Y=gn(B);Z=z.getBoundingClientRect(),Y.attr("width",Z.width),Y.attr("height",Z.height)}Z.width>m&&(m=Z.width),b+=Z.height+a,P.push(B)}),b+=s;const M=[];if(t.classData.methods.forEach(U=>{const $=U.getDisplayDetails();let G=$.displayText;Qt().flowchart.htmlLabels&&(G=G.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const B=_.node().appendChild(q2(G,$.cssStyle?$.cssStyle:t.labelStyle,!0,!0));let Z=B.getBBox();if(Np(Qt().flowchart.htmlLabels)){const z=B.children[0],Y=gn(B);Z=z.getBoundingClientRect(),Y.attr("width",Z.width),Y.attr("height",Z.height)}Z.width>m&&(m=Z.width),b+=Z.height+a,M.push(B)}),b+=s,S){let U=(m-k.width)/2;gn(A).attr("transform","translate( "+(-1*m/2+U)+", "+-1*b/2+")"),w=k.height+a}let F=(m-L.width)/2;return gn(N).attr("transform","translate( "+(-1*m/2+F)+", "+(-1*b/2+w)+")"),w+=L.height+a,f.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,P.forEach(U=>{gn(U).attr("transform","translate( "+-m/2+", "+(-1*b/2+w+s/2)+")");const $=U==null?void 0:U.getBBox();w+=(($==null?void 0:$.height)??0)+a}),w+=s,p.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,M.forEach(U=>{gn(U).attr("transform","translate( "+-m/2+", "+(-1*b/2+w)+")");const $=U==null?void 0:U.getBBox();w+=(($==null?void 0:$.height)??0)+a}),h.attr("style",t.style).attr("class","outer title-state").attr("x",-m/2-r).attr("y",-(b/2)-r).attr("width",m+t.padding).attr("height",b+t.padding),Df(t,h),t.intersect=function(U){return Zd.rect(t,U)},u},wCn={rhombus:vCn,composite:X1a,question:vCn,rect:K1a,labelRect:Q1a,rectWithTitle:Z1a,choice:$1a,circle:epa,doublecircle:tpa,stadium:J1a,hexagon:U1a,block_arrow:z1a,rect_left_inv_arrow:G1a,lean_right:q1a,lean_left:H1a,trapezoid:V1a,inv_trapezoid:Y1a,rect_right_inv_arrow:j1a,cylinder:W1a,start:rpa,end:ipa,note:P1a,subroutine:npa,fork:_Cn,join:_Cn,class_box:apa};let hY={};const _6e=async(e,t,r)=>{let a,s;if(t.link){let o;Qt().securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o),s=await wCn[t.shape](a,t,r)}else s=await wCn[t.shape](e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),a.attr("data-node","true"),a.attr("data-id",t.id),hY[t.id]=a,t.haveCallback&&hY[t.id].attr("class",hY[t.id].attr("class")+" clickable"),a},spa=(e,t)=>{hY[t.id]=e},opa=()=>{hY={}},Aht=e=>{const t=hY[e.id];ut.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},w6e=({flowchart:e})=>{var t,r;const a=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,s=((r=e==null?void 0:e.subGraphTitleMargin)==null?void 0:r.bottom)??0,o=a+s;return{subGraphTitleTopMargin:a,subGraphTitleBottomMargin:s,subGraphTitleTotalMargin:o}},UN={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function EEe(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=s5e(e),t=s5e(t);const[r,a]=[e.x,e.y],[s,o]=[t.x,t.y],u=s-r,h=o-a;return{angle:Math.atan(h/u),deltaX:u,deltaY:h}}const s5e=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,Fer=e=>({x:function(t,r,a){let s=0;if(r===0&&Object.hasOwn(UN,e.arrowTypeStart)){const{angle:o,deltaX:u}=EEe(a[0],a[1]);s=UN[e.arrowTypeStart]*Math.cos(o)*(u>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(UN,e.arrowTypeEnd)){const{angle:o,deltaX:u}=EEe(a[a.length-1],a[a.length-2]);s=UN[e.arrowTypeEnd]*Math.cos(o)*(u>=0?1:-1)}return s5e(t).x+s},y:function(t,r,a){let s=0;if(r===0&&Object.hasOwn(UN,e.arrowTypeStart)){const{angle:o,deltaY:u}=EEe(a[0],a[1]);s=UN[e.arrowTypeStart]*Math.abs(Math.sin(o))*(u>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(UN,e.arrowTypeEnd)){const{angle:o,deltaY:u}=EEe(a[a.length-1],a[a.length-2]);s=UN[e.arrowTypeEnd]*Math.abs(Math.sin(o))*(u>=0?1:-1)}return s5e(t).y+s}}),$er=(e,t,r,a,s)=>{t.arrowTypeStart&&ECn(e,"start",t.arrowTypeStart,r,a,s),t.arrowTypeEnd&&ECn(e,"end",t.arrowTypeEnd,r,a,s)},lpa={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},ECn=(e,t,r,a,s,o)=>{const u=lpa[r];if(!u){ut.warn(`Unknown arrow type: ${r}`);return}const h=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${a}#${s}_${o}-${u}${h})`)};let o5e={},mm={};const cpa=()=>{o5e={},mm={}},Kbt=(e,t)=>{const r=Np(Qt().flowchart.htmlLabels),a=t.labelType==="markdown"?v6e(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):q2(t.label,t.labelStyle),s=e.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label");o.node().appendChild(a);let u=a.getBBox();if(r){const f=a.children[0],p=gn(a);u=f.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height)}o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o5e[t.id]=s,t.width=u.width,t.height=u.height;let h;if(t.startLabelLeft){const f=q2(t.startLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),mm[t.id]||(mm[t.id]={}),mm[t.id].startLeft=p,xEe(h,t.startLabelLeft)}if(t.startLabelRight){const f=q2(t.startLabelRight,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=p.node().appendChild(f),m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),mm[t.id]||(mm[t.id]={}),mm[t.id].startRight=p,xEe(h,t.startLabelRight)}if(t.endLabelLeft){const f=q2(t.endLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),p.node().appendChild(f),mm[t.id]||(mm[t.id]={}),mm[t.id].endLeft=p,xEe(h,t.endLabelLeft)}if(t.endLabelRight){const f=q2(t.endLabelRight,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),p.node().appendChild(f),mm[t.id]||(mm[t.id]={}),mm[t.id].endRight=p,xEe(h,t.endLabelRight)}return a};function xEe(e,t){Qt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const Uer=(e,t)=>{ut.debug("Moving label abc88 ",e.id,e.label,o5e[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=Qt(),{subGraphTitleTotalMargin:s}=w6e(a);if(e.label){const o=o5e[e.id];let u=e.x,h=e.y;if(r){const f=il.calcLabelPosition(r);ut.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=mm[e.id].startLeft;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=mm[e.id].startRight;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=mm[e.id].endLeft;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=mm[e.id].endRight;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},upa=(e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},hpa=(e,t,r)=>{ut.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(t)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.x<t.x?u-o:u+o;const f=e.height/2,p=Math.abs(t.y-r.y),m=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*u>Math.abs(a-t.x)*f){let b=r.y<t.y?t.y-f-s:s-f-t.y;h=m*b/p;const _={x:r.x<t.x?r.x+h:r.x-m+h,y:r.y<t.y?r.y+p-b:r.y-p+b};return h===0&&(_.x=t.x,_.y=t.y),m===0&&(_.x=t.x),p===0&&(_.y=t.y),ut.debug(`abc89 topp/bott calc, Q ${p}, q ${b}, R ${m}, r ${h}`,_),_}else{r.x<t.x?h=t.x-u-a:h=a-u-t.x;let b=p*h/m,_=r.x<t.x?r.x+m-h:r.x-m+h,w=r.y<t.y?r.y+b:r.y-b;return ut.debug(`sides calc abc89, Q ${p}, q ${b}, R ${m}, r ${h}`,{_x:_,_y:w}),h===0&&(_=t.x,w=t.y),m===0&&(_=t.x),p===0&&(w=t.y),{x:_,y:w}}},xCn=(e,t)=>{ut.debug("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(!upa(t,o)&&!s){const u=hpa(t,a,o);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)||r.push(u),s=!0}else a=o,s||r.push(o)}),r},zer=function(e,t,r,a,s,o,u){let h=r.points;ut.debug("abc88 InsertEdge: edge=",r,"e=",t);let f=!1;const p=o.node(t.v);var m=o.node(t.w);m!=null&&m.intersect&&(p!=null&&p.intersect)&&(h=h.slice(1,r.points.length-1),h.unshift(p.intersect(h[0])),h.push(m.intersect(h[h.length-1]))),r.toCluster&&(ut.debug("to cluster abc88",a[r.toCluster]),h=xCn(r.points,a[r.toCluster].node),f=!0),r.fromCluster&&(ut.debug("from cluster abc88",a[r.fromCluster]),h=xCn(h.reverse(),a[r.fromCluster].node).reverse(),f=!0);const b=h.filter(L=>!Number.isNaN(L.y));let _=j3;r.curve&&(s==="graph"||s==="flowchart")&&(_=r.curve);const{x:w,y:S}=Fer(r),C=r_().x(w).y(S).curve(_);let A;switch(r.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-thick";break;default:A=""}switch(r.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",C(b)).attr("id",r.id).attr("class"," "+A+(r.classes?" "+r.classes:"")).attr("style",r.style);let I="";(Qt().flowchart.arrowMarkerAbsolute||Qt().state.arrowMarkerAbsolute)&&(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,I=I.replace(/\(/g,"\\("),I=I.replace(/\)/g,"\\)")),$er(k,r,I,u,s);let N={};return f&&(N.updatedPath=h),N.originalPath=r.points,N};let rl={},q3={},Ger={};const dpa=()=>{q3={},Ger={},rl={}},l5e=(e,t)=>(ut.trace("In isDescendant",t," ",e," = ",q3[t].includes(e)),!!q3[t].includes(e)),fpa=(e,t)=>(ut.info("Descendants of ",t," is ",q3[t]),ut.info("Edge is ",e),e.v===t||e.w===t?!1:q3[t]?q3[t].includes(e.v)||l5e(e.v,t)||l5e(e.w,t)||q3[t].includes(e.w):(ut.debug("Tilt, ",t,",not in descendants"),!1)),qer=(e,t,r,a)=>{ut.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const s=t.children(e)||[];e!==a&&s.push(e),ut.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)qer(o,t,r,a);else{const u=t.node(o);ut.info("cp ",o," to ",a," with parent ",e),r.setNode(o,u),a!==t.parent(o)&&(ut.warn("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==a&&o!==e?(ut.debug("Setting parent",o,e),r.setParent(o,e)):(ut.info("In copy ",e,"root",a,"data",t.node(e),a),ut.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const h=t.edges(o);ut.debug("Copying Edges",h),h.forEach(f=>{ut.info("Edge",f);const p=t.edge(f.v,f.w,f.name);ut.info("Edge data",p,a);try{fpa(f,a)?(ut.info("Copying as ",f.v,f.w,p,f.name),r.setEdge(f.v,f.w,p,f.name),ut.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):ut.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",a," clusterId:",e)}catch(m){ut.error(m)}})}ut.debug("Removing node",o),t.removeNode(o)})},Her=(e,t)=>{const r=t.children(e);let a=[...r];for(const s of r)Ger[s]=e,a=[...a,...Her(s,t)];return a},vle=(e,t)=>{ut.trace("Searching",e);const r=t.children(e);if(ut.trace("Searching children of id ",e,r),r.length<1)return ut.trace("This is a valid node",e),e;for(const a of r){const s=vle(a,t);if(s)return ut.trace("Found replacement for",e," => ",s),s}},SEe=e=>!rl[e]||!rl[e].externalConnections?e:rl[e]?rl[e].id:e,ppa=(e,t)=>{if(!e||t>10){ut.debug("Opting out, no graph ");return}else ut.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(ut.warn("Cluster identified",r," Replacement id in edges: ",vle(r,e)),q3[r]=Her(r,e),rl[r]={id:vle(r,e),clusterData:e.node(r)})}),e.nodes().forEach(function(r){const a=e.children(r),s=e.edges();a.length>0?(ut.debug("Cluster identified",r,q3),s.forEach(o=>{if(o.v!==r&&o.w!==r){const u=l5e(o.v,r),h=l5e(o.w,r);u^h&&(ut.warn("Edge: ",o," leaves cluster ",r),ut.warn("Descendants of XXX ",r,": ",q3[r]),rl[r].externalConnections=!0)}})):ut.debug("Not a cluster ",r,q3)});for(let r of Object.keys(rl)){const a=rl[r].id,s=e.parent(a);s!==r&&rl[s]&&!rl[s].externalConnections&&(rl[r].id=s)}e.edges().forEach(function(r){const a=e.edge(r);ut.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),ut.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(ut.warn("Fix XXX",rl,"ids:",r.v,r.w,"Translating: ",rl[r.v]," --- ",rl[r.w]),rl[r.v]&&rl[r.w]&&rl[r.v]===rl[r.w]){ut.warn("Fixing and trixing link to self - removing XXX",r.v,r.w,r.name),ut.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=SEe(r.v),o=SEe(r.w),e.removeEdge(r.v,r.w,r.name);const u=r.w+"---"+r.v;e.setNode(u,{domId:u,id:u,labelStyle:"",labelText:a.label,padding:0,shape:"labelRect",style:""});const h=structuredClone(a),f=structuredClone(a);h.label="",h.arrowTypeEnd="none",f.label="",h.fromCluster=r.v,f.toCluster=r.v,e.setEdge(s,u,h,r.name+"-cyclic-special"),e.setEdge(u,o,f,r.name+"-cyclic-special")}else if(rl[r.v]||rl[r.w]){if(ut.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=SEe(r.v),o=SEe(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const u=e.parent(s);rl[u].externalConnections=!0,a.fromCluster=r.v}if(o!==r.w){const u=e.parent(o);rl[u].externalConnections=!0,a.toCluster=r.w}ut.warn("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,a,r.name)}}),ut.warn("Adjusted Graph",O7(e)),Ver(e,0),ut.trace(rl)},Ver=(e,t)=>{if(ut.warn("extractor - ",t,O7(e),e.children("D")),t>10){ut.error("Bailing out");return}let r=e.nodes(),a=!1;for(const s of r){const o=e.children(s);a=a||o.length>0}if(!a){ut.debug("Done, no node has children",e.nodes());return}ut.debug("Nodes = ",r,t);for(const s of r)if(ut.debug("Extracting node",s,rl,rl[s]&&!rl[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!rl[s])ut.debug("Not a cluster",s,t);else if(!rl[s].externalConnections&&e.children(s)&&e.children(s).length>0){ut.warn("Cluster without external connections, without a parent and with children",s,t);let u=e.graph().rankdir==="TB"?"LR":"TB";rl[s]&&rl[s].clusterData&&rl[s].clusterData.dir&&(u=rl[s].clusterData.dir,ut.warn("Fixing dir",rl[s].clusterData.dir,u));const h=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ut.warn("Old graph before copy",O7(e)),qer(s,e,h,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:rl[s].clusterData,labelText:rl[s].labelText,graph:h}),ut.warn("New graph after copy node: (",s,")",O7(h)),ut.debug("Old graph after copy",O7(e))}else ut.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!rl[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),ut.debug(rl);r=e.nodes(),ut.warn("New list of nodes",r);for(const s of r){const o=e.node(s);ut.warn(" Now next level",s,o),o.clusterNode&&Ver(o.graph,t+1)}},Yer=(e,t)=>{if(t.length===0)return[];let r=Object.assign(t);return t.forEach(a=>{const s=e.children(a),o=Yer(e,s);r=[...r,...o]}),r},gpa=e=>Yer(e,e.children()),mpa=(e,t)=>{ut.info("Creating subgraph rect for ",t.id,t);const r=Qt(),a=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=a.insert("rect",":first-child"),o=Np(r.flowchart.htmlLabels),u=a.insert("g").attr("class","cluster-label"),h=t.labelType==="markdown"?v6e(u,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):u.node().appendChild(q2(t.labelText,t.labelStyle,void 0,!0));let f=h.getBBox();if(Np(r.flowchart.htmlLabels)){const S=h.children[0],C=gn(h);f=S.getBoundingClientRect(),C.attr("width",f.width),C.attr("height",f.height)}const p=0*t.padding,m=p/2,b=t.width<=f.width+p?f.width+p:t.width;t.width<=f.width+p?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,ut.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-b/2).attr("y",t.y-t.height/2-m).attr("width",b).attr("height",t.height+p);const{subGraphTitleTopMargin:_}=w6e(r);o?u.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+_})`):u.attr("transform",`translate(${t.x}, ${t.y-t.height/2+_})`);const w=s.node().getBBox();return t.width=w.width,t.height=w.height,t.intersect=function(S){return eue(t,S)},a},bpa=(e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(h){return eue(t,h)},r},ypa=(e,t)=>{const r=Qt(),a=e.insert("g").attr("class",t.classes).attr("id",t.id),s=a.insert("rect",":first-child"),o=a.insert("g").attr("class","cluster-label"),u=a.append("rect"),h=o.node().appendChild(q2(t.labelText,t.labelStyle,void 0,!0));let f=h.getBBox();if(Np(r.flowchart.htmlLabels)){const S=h.children[0],C=gn(h);f=S.getBoundingClientRect(),C.attr("width",f.width),C.attr("height",f.height)}f=h.getBBox();const p=0*t.padding,m=p/2,b=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-b/2-m).attr("y",t.y-t.height/2-m).attr("width",b+p).attr("height",t.height+p),u.attr("class","inner").attr("x",t.x-b/2-m).attr("y",t.y-t.height/2-m+f.height-1).attr("width",b+p).attr("height",t.height+p-f.height-3);const{subGraphTitleTopMargin:_}=w6e(r);o.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(Np(r.flowchart.htmlLabels)?5:3)+_})`);const w=s.node().getBBox();return t.height=w.height,t.intersect=function(S){return eue(t,S)},a},vpa=(e,t)=>{const r=e.insert("g").attr("class",t.classes).attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.diff=-t.padding/2,t.intersect=function(h){return eue(t,h)},r},_pa={rect:mpa,roundedWithTitle:ypa,noteGroup:bpa,divider:vpa};let jer={};const wpa=(e,t)=>{ut.trace("Inserting cluster");const r=t.shape||"rect";jer[t.id]=_pa[r](e,t)},Epa=()=>{jer={}},Wer=async(e,t,r,a,s,o)=>{ut.info("Graph in recursive render: XXX",O7(t),s);const u=t.graph().rankdir;ut.trace("Dir in recursive render - dir:",u);const h=e.insert("g").attr("class","root");t.nodes()?ut.info("Recursive render XXX",t.nodes()):ut.info("No nodes found for",t),t.edges().length>0&&ut.trace("Recursive edges",t.edge(t.edges()[0]));const f=h.insert("g").attr("class","clusters"),p=h.insert("g").attr("class","edgePaths"),m=h.insert("g").attr("class","edgeLabels"),b=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(S){const C=t.node(S);if(s!==void 0){const A=JSON.parse(JSON.stringify(s.clusterData));ut.info("Setting data for cluster XXX (",S,") ",A,s),t.setNode(s.id,A),t.parent(S)||(ut.trace("Setting parent",S,s.id),t.setParent(S,s.id,A))}if(ut.info("(Insert) Node XXX"+S+": "+JSON.stringify(t.node(S))),C&&C.clusterNode){ut.info("Cluster identified",S,C.width,t.node(S));const A=await Wer(b,C.graph,r,a,t.node(S),o),k=A.elem;Df(C,k),C.diff=A.diff||0,ut.info("Node bounds (abc123)",S,C,C.width,C.x,C.y),spa(k,C),ut.warn("Recursive render complete ",k,C)}else t.children(S).length>0?(ut.info("Cluster - the non recursive path XXX",S,C.id,C,t),ut.info(vle(C.id,t)),rl[C.id]={id:vle(C.id,t),node:C}):(ut.info("Node - the non recursive path",S,C.id,C),await _6e(b,t.node(S),u))})),t.edges().forEach(function(S){const C=t.edge(S.v,S.w,S.name);ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(S)),ut.info("Edge "+S.v+" -> "+S.w+": ",S," ",JSON.stringify(t.edge(S))),ut.info("Fix",rl,"ids:",S.v,S.w,"Translating: ",rl[S.v],rl[S.w]),Kbt(m,C)}),t.edges().forEach(function(S){ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(S))}),ut.info("#############################################"),ut.info("###                Layout                 ###"),ut.info("#############################################"),ut.info(t),oK(t),ut.info("Graph after layout:",O7(t));let _=0;const{subGraphTitleTotalMargin:w}=w6e(o);return gpa(t).forEach(function(S){const C=t.node(S);ut.info("Position "+S+": "+JSON.stringify(t.node(S))),ut.info("Position "+S+": ("+C.x,","+C.y,") width: ",C.width," height: ",C.height),C&&C.clusterNode?(C.y+=w,Aht(C)):t.children(S).length>0?(C.height+=w,wpa(f,C),rl[C.id].node=C):(C.y+=w/2,Aht(C))}),t.edges().forEach(function(S){const C=t.edge(S);ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(C),C),C.points.forEach(k=>k.y+=w/2);const A=zer(p,S,C,rl,r,t,a);Uer(C,A)}),t.nodes().forEach(function(S){const C=t.node(S);ut.info(S,C.type,C.diff),C.type==="group"&&(_=C.diff)}),{elem:h,diff:_}},Xbt=async(e,t,r,a,s)=>{jbt(e,r,a,s),opa(),cpa(),Epa(),dpa(),ut.warn("Graph at first:",JSON.stringify(O7(t))),ppa(t),ut.warn("Graph after:",JSON.stringify(O7(t)));const o=Qt();await Wer(e,t,a,s,void 0,o)},Ker={},xpa=function(e){const t=Object.keys(e);for(const r of t)Ker[r]=e[r]},Xer=async function(e,t,r,a,s,o){const u=a.select(`[id="${r}"]`),h=Object.keys(e);for(const f of h){const p=e[f];let m="default";p.classes.length>0&&(m=p.classes.join(" ")),m=m+" flowchart-label";const b=Hw(p.styles);let _=p.text!==void 0?p.text:p.id,w;if(ut.info("vertex",p,p.labelType),p.labelType==="markdown")ut.info("vertex",p,p.labelType);else if(Np(Qt().flowchart.htmlLabels))w=Ubt(u,{label:_}).node(),w.parentNode.removeChild(w);else{const k=s.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",b.labelStyle.replace("color:","fill:"));const I=_.split(mi.lineBreakRegex);for(const N of I){const L=s.createElementNS("http://www.w3.org/2000/svg","tspan");L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),L.setAttribute("dy","1em"),L.setAttribute("x","1"),L.textContent=N,k.appendChild(L)}w=k}let S=0,C="";switch(p.type){case"round":S=5,C="rect";break;case"square":C="rect";break;case"diamond":C="question";break;case"hexagon":C="hexagon";break;case"odd":C="rect_left_inv_arrow";break;case"lean_right":C="lean_right";break;case"lean_left":C="lean_left";break;case"trapezoid":C="trapezoid";break;case"inv_trapezoid":C="inv_trapezoid";break;case"odd_right":C="rect_left_inv_arrow";break;case"circle":C="circle";break;case"ellipse":C="ellipse";break;case"stadium":C="stadium";break;case"subroutine":C="subroutine";break;case"cylinder":C="cylinder";break;case"group":C="rect";break;case"doublecircle":C="doublecircle";break;default:C="rect"}const A=await Z$(_,Qt());t.setNode(p.id,{labelStyle:b.labelStyle,shape:C,labelText:A,labelType:p.labelType,rx:S,ry:S,class:m,style:b.style,id:p.id,link:p.link,linkTarget:p.linkTarget,tooltip:o.db.getTooltip(p.id)||"",domId:o.db.lookUpDomId(p.id),haveCallback:p.haveCallback,width:p.type==="group"?500:void 0,dir:p.dir,type:p.type,props:p.props,padding:Qt().flowchart.padding}),ut.info("setNode",{labelStyle:b.labelStyle,labelType:p.labelType,shape:C,labelText:A,rx:S,ry:S,class:m,style:b.style,id:p.id,domId:o.db.lookUpDomId(p.id),width:p.type==="group"?500:void 0,type:p.type,dir:p.dir,props:p.props,padding:Qt().flowchart.padding})}},Qer=async function(e,t,r){ut.info("abc78 edges = ",e);let a=0,s={},o,u;if(e.defaultStyle!==void 0){const h=Hw(e.defaultStyle);o=h.style,u=h.labelStyle}for(const h of e){a++;const f="L-"+h.start+"-"+h.end;s[f]===void 0?(s[f]=0,ut.info("abc78 new entry",f,s[f])):(s[f]++,ut.info("abc78 new entry",f,s[f]));let p=f+"-"+s[f];ut.info("abc78 new link id to be used is",f,p,s[f]);const m="LS-"+h.start,b="LE-"+h.end,_={style:"",labelStyle:""};switch(_.minlen=h.length||1,h.type==="arrow_open"?_.arrowhead="none":_.arrowhead="normal",_.arrowTypeStart="arrow_open",_.arrowTypeEnd="arrow_open",h.type){case"double_arrow_cross":_.arrowTypeStart="arrow_cross";case"arrow_cross":_.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":_.arrowTypeStart="arrow_point";case"arrow_point":_.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":_.arrowTypeStart="arrow_circle";case"arrow_circle":_.arrowTypeEnd="arrow_circle";break}let w="",S="";switch(h.stroke){case"normal":w="fill:none;",o!==void 0&&(w=o),u!==void 0&&(S=u),_.thickness="normal",_.pattern="solid";break;case"dotted":_.thickness="normal",_.pattern="dotted",_.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":_.thickness="thick",_.pattern="solid",_.style="stroke-width: 3.5px;fill:none;";break;case"invisible":_.thickness="invisible",_.pattern="solid",_.style="stroke-width: 0;fill:none;";break}if(h.style!==void 0){const C=Hw(h.style);w=C.style,S=C.labelStyle}_.style=_.style+=w,_.labelStyle=_.labelStyle+=S,h.interpolate!==void 0?_.curve=fS(h.interpolate,Cg):e.defaultInterpolate!==void 0?_.curve=fS(e.defaultInterpolate,Cg):_.curve=fS(Ker.curve,Cg),h.text===void 0?h.style!==void 0&&(_.arrowheadStyle="fill: #333"):(_.arrowheadStyle="fill: #333",_.labelpos="c"),_.labelType=h.labelType,_.label=await Z$(h.text.replace(mi.lineBreakRegex,`
`),Qt()),h.style===void 0&&(_.style=_.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),_.labelStyle=_.labelStyle.replace("color:","fill:"),_.id=p,_.classes="flowchart-link "+m+" "+b,t.setEdge(h.start,h.end,_,a)}},Spa=function(e,t){return t.db.getClasses()},Tpa=async function(e,t,r,a){ut.info("Drawing flowchart");let s=a.db.getDirection();s===void 0&&(s="TD");const{securityLevel:o,flowchart:u}=Qt(),h=u.nodeSpacing||50,f=u.rankSpacing||50;let p;o==="sandbox"&&(p=gn("#i"+t));const m=gn(o==="sandbox"?p.nodes()[0].contentDocument.body:"body"),b=o==="sandbox"?p.nodes()[0].contentDocument:document,_=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:h,ranksep:f,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let w;const S=a.db.getSubGraphs();ut.info("Subgraphs - ",S);for(let P=S.length-1;P>=0;P--)w=S[P],ut.info("Subgraph - ",w),a.db.addVertex(w.id,{text:w.title,type:w.labelType},"group",void 0,w.classes,w.dir);const C=a.db.getVertices(),A=a.db.getEdges();ut.info("Edges",A);let k=0;for(k=S.length-1;k>=0;k--){w=S[k],HLn("cluster").append("text");for(let P=0;P<w.nodes.length;P++)ut.info("Setting up subgraphs",w.nodes[P],w.id),_.setParent(w.nodes[P],w.id)}await Xer(C,_,t,m,b,a),await Qer(A,_);const I=m.select(`[id="${t}"]`),N=m.select("#"+t+" g");if(await Xbt(N,_,["point","circle","cross"],"flowchart",t),il.insertTitle(I,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),oL(_,I,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const P=b.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const M of P){const F=M.getBBox(),U=b.createElementNS("http://www.w3.org/2000/svg","rect");U.setAttribute("rx",0),U.setAttribute("ry",0),U.setAttribute("width",F.width),U.setAttribute("height",F.height),M.insertBefore(U,M.firstChild)}}Object.keys(C).forEach(function(P){const M=C[P];if(M.link){const F=gn("#"+t+' [id="'+P+'"]');if(F){const U=b.createElementNS("http://www.w3.org/2000/svg","a");U.setAttributeNS("http://www.w3.org/2000/svg","class",M.classes.join(" ")),U.setAttributeNS("http://www.w3.org/2000/svg","href",M.link),U.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),o==="sandbox"?U.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):M.linkTarget&&U.setAttributeNS("http://www.w3.org/2000/svg","target",M.linkTarget);const $=F.insert(function(){return U},":first-child"),G=F.select(".label-container");G&&$.append(function(){return G.node()});const B=F.select(".label");B&&$.append(function(){return B.node()})}}})},kht={setConf:xpa,addVertices:Xer,addEdges:Qer,getClasses:Spa,draw:Tpa},Cpa=(e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},Apa=e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .cluster-label text {
    fill: ${e.titleColor};
  }
  .cluster-label span,p {
    color: ${e.titleColor};
  }

  .label text,span,p {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }
  .flowchart-label text {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .katex path {
    fill: #000;
    stroke: #000;
    stroke-width: 1px;
  }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.5;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${Cpa(e.edgeLabelBackground,.5)};
    // background-color: 
  }

  .cluster rect {
    fill: ${e.clusterBkg};
    stroke: ${e.clusterBorder};
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  .cluster span,p {
    color: ${e.titleColor};
  }
  /* .cluster div {
    color: ${e.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
`,Zer=Apa;function Jer(e,t,r){const a=t.width,s=t.height,o=(a+s)*.9,u=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],h=IR(e,o,o,u);return r.intersect=function(f){return VA(r,u,f)},h}function etr(e,t,r){const s=t.height,o=s/4,u=t.width+2*o,h=[{x:o,y:0},{x:u-o,y:0},{x:u,y:-s/2},{x:u-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}],f=IR(e,u,s,h);return r.intersect=function(p){return VA(r,h,p)},f}function ttr(e,t,r){const a=t.width,s=t.height,o=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function ntr(e,t,r){const a=t.width,s=t.height,o=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function rtr(e,t,r){const a=t.width,s=t.height,o=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function itr(e,t,r){const a=t.width,s=t.height,o=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function atr(e,t,r){const a=t.width,s=t.height,o=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function str(e,t,r){const a=t.width,s=t.height,o=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function otr(e,t,r){const a=t.height,s=t.width+a/4,o=e.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return r.intersect=function(u){return Gbt(r,u)},o}function ltr(e,t,r){const a=t.width,s=t.height,o=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function ctr(e,t,r){const a=t.width,s=a/2,o=s/(2.5+a/50),u=t.height+o,h="M 0,"+o+" a "+s+","+o+" 0,0,0 "+a+" 0 a "+s+","+o+" 0,0,0 "+-a+" 0 l 0,"+u+" a "+s+","+o+" 0,0,0 "+a+" 0 l 0,"+-u,f=e.attr("label-offset-y",o).insert("path",":first-child").attr("d",h).attr("transform","translate("+-a/2+","+-(u/2+o)+")");return r.intersect=function(p){const m=Gbt(r,p),b=m.x-r.x;if(s!=0&&(Math.abs(b)<r.width/2||Math.abs(b)==r.width/2&&Math.abs(m.y-r.y)>r.height/2-o)){let _=o*o*(1-b*b/(s*s));_!=0&&(_=Math.sqrt(_)),_=o-_,p.y-r.y>0&&(_=-_),m.y+=_}return m},f}function kpa(e){e.shapes().question=Jer,e.shapes().hexagon=etr,e.shapes().stadium=otr,e.shapes().subroutine=ltr,e.shapes().cylinder=ctr,e.shapes().rect_left_inv_arrow=ttr,e.shapes().lean_right=ntr,e.shapes().lean_left=rtr,e.shapes().trapezoid=itr,e.shapes().inv_trapezoid=atr,e.shapes().rect_right_inv_arrow=str}function Rpa(e){e({question:Jer}),e({hexagon:etr}),e({stadium:otr}),e({subroutine:ltr}),e({cylinder:ctr}),e({rect_left_inv_arrow:ttr}),e({lean_right:ntr}),e({lean_left:rtr}),e({trapezoid:itr}),e({inv_trapezoid:atr}),e({rect_right_inv_arrow:str})}function IR(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("transform","translate("+-t/2+","+r/2+")")}const Ipa={addToRender:kpa,addToRenderV2:Rpa},utr={},Npa=function(e){const t=Object.keys(e);for(const r of t)utr[r]=e[r]},htr=async function(e,t,r,a,s,o){const u=a?a.select(`[id="${r}"]`):gn(`[id="${r}"]`),h=s||document,f=Object.keys(e);for(const p of f){const m=e[p];let b="default";m.classes.length>0&&(b=m.classes.join(" "));const _=Hw(m.styles);let w=m.text!==void 0?m.text:m.id,S;if(Np(Qt().flowchart.htmlLabels)){const k={label:await Z$(w.replace(/fa[blrs]?:fa-[\w-]+/g,I=>`<i class='${I.replace(":"," ")}'></i>`),Qt())};S=Ubt(u,k).node(),S.parentNode.removeChild(S)}else{const k=h.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",_.labelStyle.replace("color:","fill:"));const I=w.split(mi.lineBreakRegex);for(const N of I){const L=h.createElementNS("http://www.w3.org/2000/svg","tspan");L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),L.setAttribute("dy","1em"),L.setAttribute("x","1"),L.textContent=N,k.appendChild(L)}S=k}let C=0,A="";switch(m.type){case"round":C=5,A="rect";break;case"square":A="rect";break;case"diamond":A="question";break;case"hexagon":A="hexagon";break;case"odd":A="rect_left_inv_arrow";break;case"lean_right":A="lean_right";break;case"lean_left":A="lean_left";break;case"trapezoid":A="trapezoid";break;case"inv_trapezoid":A="inv_trapezoid";break;case"odd_right":A="rect_left_inv_arrow";break;case"circle":A="circle";break;case"ellipse":A="ellipse";break;case"stadium":A="stadium";break;case"subroutine":A="subroutine";break;case"cylinder":A="cylinder";break;case"group":A="rect";break;default:A="rect"}ut.warn("Adding node",m.id,m.domId),t.setNode(o.db.lookUpDomId(m.id),{labelType:"svg",labelStyle:_.labelStyle,shape:A,label:S,rx:C,ry:C,class:b,style:_.style,id:o.db.lookUpDomId(m.id)})}},dtr=async function(e,t,r){let a=0,s,o;if(e.defaultStyle!==void 0){const u=Hw(e.defaultStyle);s=u.style,o=u.labelStyle}for(const u of e){a++;const h="L-"+u.start+"-"+u.end,f="LS-"+u.start,p="LE-"+u.end,m={};u.type==="arrow_open"?m.arrowhead="none":m.arrowhead="normal";let b="",_="";if(u.style!==void 0){const w=Hw(u.style);b=w.style,_=w.labelStyle}else switch(u.stroke){case"normal":b="fill:none",s!==void 0&&(b=s),o!==void 0&&(_=o);break;case"dotted":b="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":b=" stroke-width: 3.5px;fill:none";break}m.style=b,m.labelStyle=_,u.interpolate!==void 0?m.curve=fS(u.interpolate,Cg):e.defaultInterpolate!==void 0?m.curve=fS(e.defaultInterpolate,Cg):m.curve=fS(utr.curve,Cg),u.text===void 0?u.style!==void 0&&(m.arrowheadStyle="fill: #333"):(m.arrowheadStyle="fill: #333",m.labelpos="c",Np(Qt().flowchart.htmlLabels)?(m.labelType="html",m.label=`<span id="L-${h}" class="edgeLabel L-${f}' L-${p}" style="${m.labelStyle}">${await Z$(u.text.replace(/fa[blrs]?:fa-[\w-]+/g,w=>`<i class='${w.replace(":"," ")}'></i>`),Qt())}</span>`):(m.labelType="text",m.label=u.text.replace(mi.lineBreakRegex,`
`),u.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none"),m.labelStyle=m.labelStyle.replace("color:","fill:"))),m.id=h,m.class=f+" "+p,m.minlen=u.length||1,t.setEdge(r.db.lookUpDomId(u.start),r.db.lookUpDomId(u.end),m,a)}},Opa=function(e,t){return ut.info("Extracting classes"),t.db.getClasses()},Lpa=async function(e,t,r,a){ut.info("Drawing flowchart");const{securityLevel:s,flowchart:o}=Qt();let u;s==="sandbox"&&(u=gn("#i"+t));const h=gn(s==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=s==="sandbox"?u.nodes()[0].contentDocument:document;let p=a.db.getDirection();p===void 0&&(p="TD");const m=o.nodeSpacing||50,b=o.rankSpacing||50,_=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:m,ranksep:b,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let w;const S=a.db.getSubGraphs();for(let M=S.length-1;M>=0;M--)w=S[M],a.db.addVertex(w.id,w.title,"group",void 0,w.classes);const C=a.db.getVertices();ut.warn("Get vertices",C);const A=a.db.getEdges();let k=0;for(k=S.length-1;k>=0;k--){w=S[k],HLn("cluster").append("text");for(let M=0;M<w.nodes.length;M++)ut.warn("Setting subgraph",w.nodes[M],a.db.lookUpDomId(w.nodes[M]),a.db.lookUpDomId(w.id)),_.setParent(a.db.lookUpDomId(w.nodes[M]),a.db.lookUpDomId(w.id))}await htr(C,_,t,h,f,a),await dtr(A,_,a);const I=new Wda;Ipa.addToRender(I),I.arrows().none=function(F,U,$,G){const Z=F.append("marker").attr("id",U).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");HA(Z,$[G+"Style"])},I.arrows().normal=function(F,U){F.append("marker").attr("id",U).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 N=h.select(`[id="${t}"]`),L=h.select("#"+t+" g");for(I(L,_),L.selectAll("g.node").attr("title",function(){return a.db.getTooltip(this.id)}),a.db.indexNodes("subGraph"+k),k=0;k<S.length;k++)if(w=S[k],w.title!=="undefined"){const M=f.querySelectorAll("#"+t+' [id="'+a.db.lookUpDomId(w.id)+'"] rect'),F=f.querySelectorAll("#"+t+' [id="'+a.db.lookUpDomId(w.id)+'"]'),U=M[0].x.baseVal.value,$=M[0].y.baseVal.value,G=M[0].width.baseVal.value,Z=gn(F[0]).select(".label");Z.attr("transform",`translate(${U+G/2}, ${$+14})`),Z.attr("id",t+"Text");for(let z=0;z<w.classes.length;z++)F[0].classList.add(w.classes[z])}if(!o.htmlLabels){const M=f.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const F of M){const U=F.getBBox(),$=f.createElementNS("http://www.w3.org/2000/svg","rect");$.setAttribute("rx",0),$.setAttribute("ry",0),$.setAttribute("width",U.width),$.setAttribute("height",U.height),F.insertBefore($,F.firstChild)}}oL(_,N,o.diagramPadding,o.useMaxWidth),Object.keys(C).forEach(function(M){const F=C[M];if(F.link){const U=h.select("#"+t+' [id="'+a.db.lookUpDomId(M)+'"]');if(U){const $=f.createElementNS("http://www.w3.org/2000/svg","a");$.setAttributeNS("http://www.w3.org/2000/svg","class",F.classes.join(" ")),$.setAttributeNS("http://www.w3.org/2000/svg","href",F.link),$.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?$.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):F.linkTarget&&$.setAttributeNS("http://www.w3.org/2000/svg","target",F.linkTarget);const G=U.insert(function(){return $},":first-child"),B=U.select(".label-container");B&&G.append(function(){return B.node()});const Z=U.select(".label");Z&&G.append(function(){return Z.node()})}}})},Dpa={setConf:Npa,addVertices:htr,addEdges:dtr,getClasses:Opa,draw:Lpa},Mpa={parser:Pbt,db:gF,renderer:kht,styles:Zer,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Dpa.setConf(e.flowchart),gF.clear(),gF.setGen("gen-1")}},Ppa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Mpa},Symbol.toStringTag,{value:"Module"})),Bpa={parser:Pbt,db:gF,renderer:kht,styles:Zer,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Qra({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),kht.setConf(e.flowchart),gF.clear(),gF.setGen("gen-2")}},Fpa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Bpa},Symbol.toStringTag,{value:"Module"})),$pa=/^(?:[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 Upa(e){return typeof e=="string"&&$pa.test(e)}const dm=[];for(let e=0;e<256;++e)dm.push((e+256).toString(16).slice(1));function zpa(e,t=0){return dm[e[t+0]]+dm[e[t+1]]+dm[e[t+2]]+dm[e[t+3]]+"-"+dm[e[t+4]]+dm[e[t+5]]+"-"+dm[e[t+6]]+dm[e[t+7]]+"-"+dm[e[t+8]]+dm[e[t+9]]+"-"+dm[e[t+10]]+dm[e[t+11]]+dm[e[t+12]]+dm[e[t+13]]+dm[e[t+14]]+dm[e[t+15]]}function Gpa(e){if(!Upa(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function qpa(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}const Hpa="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vpa="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ypa(e,t,r){function a(s,o,u,h){var f;if(typeof s=="string"&&(s=qpa(s)),typeof o=="string"&&(o=Gpa(o)),((f=o)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let p=new Uint8Array(16+s.length);if(p.set(o),p.set(s,o.length),p=r(p),p[6]=p[6]&15|t,p[8]=p[8]&63|128,u){h=h||0;for(let m=0;m<16;++m)u[h+m]=p[m];return u}return zpa(p)}try{a.name=e}catch{}return a.DNS=Hpa,a.URL=Vpa,a}function jpa(e,t,r,a){switch(e){case 0:return t&r^~t&a;case 1:return t^r^a;case 2:return t&r^t&a^r&a;case 3:return t^r^a}}function kat(e,t){return e<<t|e>>>32-t}function Wpa(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const u=unescape(encodeURIComponent(e));e=[];for(let h=0;h<u.length;++h)e.push(u.charCodeAt(h))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const a=e.length/4+2,s=Math.ceil(a/16),o=new Array(s);for(let u=0;u<s;++u){const h=new Uint32Array(16);for(let f=0;f<16;++f)h[f]=e[u*64+f*4]<<24|e[u*64+f*4+1]<<16|e[u*64+f*4+2]<<8|e[u*64+f*4+3];o[u]=h}o[s-1][14]=(e.length-1)*8/Math.pow(2,32),o[s-1][14]=Math.floor(o[s-1][14]),o[s-1][15]=(e.length-1)*8&4294967295;for(let u=0;u<s;++u){const h=new Uint32Array(80);for(let w=0;w<16;++w)h[w]=o[u][w];for(let w=16;w<80;++w)h[w]=kat(h[w-3]^h[w-8]^h[w-14]^h[w-16],1);let f=r[0],p=r[1],m=r[2],b=r[3],_=r[4];for(let w=0;w<80;++w){const S=Math.floor(w/20),C=kat(f,5)+jpa(S,p,m,b)+_+t[S]+h[w]>>>0;_=b,b=m,m=kat(p,30)>>>0,p=f,f=C}r[0]=r[0]+f>>>0,r[1]=r[1]+p>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Kpa=Ypa("v5",80,Wpa);var Rht=function(){var e=function(U,$,G,B){for(G=G||{},B=U.length;B--;G[U[B]]=$);return G},t=[6,8,10,20,22,24,26,27,28],r=[1,10],a=[1,11],s=[1,12],o=[1,13],u=[1,14],h=[1,15],f=[1,21],p=[1,22],m=[1,23],b=[1,24],_=[1,25],w=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],S=[1,34],C=[27,28,46,47],A=[41,42,43,44,45],k=[17,34],I=[1,54],N=[1,53],L=[17,34,36,38],P={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function($,G,B,Z,z,Y,W){var Q=Y.length-1;switch(z){case 1:break;case 2:this.$=[];break;case 3:Y[Q-1].push(Y[Q]),this.$=Y[Q-1];break;case 4:case 5:this.$=Y[Q];break;case 6:case 7:this.$=[];break;case 8:Z.addEntity(Y[Q-4]),Z.addEntity(Y[Q-2]),Z.addRelationship(Y[Q-4],Y[Q],Y[Q-2],Y[Q-3]);break;case 9:Z.addEntity(Y[Q-3]),Z.addAttributes(Y[Q-3],Y[Q-1]);break;case 10:Z.addEntity(Y[Q-2]);break;case 11:Z.addEntity(Y[Q]);break;case 12:Z.addEntity(Y[Q-6],Y[Q-4]),Z.addAttributes(Y[Q-6],Y[Q-1]);break;case 13:Z.addEntity(Y[Q-5],Y[Q-3]);break;case 14:Z.addEntity(Y[Q-3],Y[Q-1]);break;case 15:case 16:this.$=Y[Q].trim(),Z.setAccTitle(this.$);break;case 17:case 18:this.$=Y[Q].trim(),Z.setAccDescription(this.$);break;case 19:case 43:this.$=Y[Q];break;case 20:case 41:case 42:this.$=Y[Q].replace(/"/g,"");break;case 21:case 29:this.$=[Y[Q]];break;case 22:Y[Q].push(Y[Q-1]),this.$=Y[Q];break;case 23:this.$={attributeType:Y[Q-1],attributeName:Y[Q]};break;case 24:this.$={attributeType:Y[Q-2],attributeName:Y[Q-1],attributeKeyTypeList:Y[Q]};break;case 25:this.$={attributeType:Y[Q-2],attributeName:Y[Q-1],attributeComment:Y[Q]};break;case 26:this.$={attributeType:Y[Q-3],attributeName:Y[Q-2],attributeKeyTypeList:Y[Q-1],attributeComment:Y[Q]};break;case 27:case 28:case 31:this.$=Y[Q];break;case 30:Y[Q-2].push(Y[Q]),this.$=Y[Q-2];break;case 32:this.$=Y[Q].replace(/"/g,"");break;case 33:this.$={cardA:Y[Q],relType:Y[Q-1],cardB:Y[Q-2]};break;case 34:this.$=Z.Cardinality.ZERO_OR_ONE;break;case 35:this.$=Z.Cardinality.ZERO_OR_MORE;break;case 36:this.$=Z.Cardinality.ONE_OR_MORE;break;case 37:this.$=Z.Cardinality.ONLY_ONE;break;case 38:this.$=Z.Cardinality.MD_PARENT;break;case 39:this.$=Z.Identification.NON_IDENTIFYING;break;case 40:this.$=Z.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:a,24:s,26:o,27:u,28:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:16,11:9,20:r,22:a,24:s,26:o,27:u,28:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:f,42:p,43:m,44:b,45:_}),{21:[1,26]},{23:[1,27]},{25:[1,28]},e(t,[2,18]),e(w,[2,19]),e(w,[2,20]),e(t,[2,4]),{11:29,27:u,28:h},{16:30,17:[1,31],29:32,30:33,34:S},{11:35,27:u,28:h},{40:36,46:[1,37],47:[1,38]},e(C,[2,34]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),{13:[1,39]},{17:[1,40]},e(t,[2,10]),{16:41,17:[2,21],29:32,30:33,34:S},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:f,42:p,43:m,44:b,45:_},e(A,[2,39]),e(A,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},e(t,[2,9]),{17:[2,22]},e(k,[2,23],{32:50,33:51,35:52,37:I,38:N}),e([17,34,37,38],[2,28]),e(t,[2,14],{15:[1,55]}),e([27,28],[2,33]),e(t,[2,8]),e(t,[2,41]),e(t,[2,42]),e(t,[2,43]),e(k,[2,24],{33:56,36:[1,57],38:N}),e(k,[2,25]),e(L,[2,29]),e(k,[2,32]),e(L,[2,31]),{16:58,17:[1,59],29:32,30:33,34:S},e(k,[2,26]),{35:60,37:I},{17:[1,61]},e(t,[2,13]),e(L,[2,30]),e(t,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function($,G){if(G.recoverable)this.trace($);else{var B=new Error($);throw B.hash=G,B}},parse:function($){var G=this,B=[0],Z=[],z=[null],Y=[],W=this.table,Q="",V=0,j=0,ee=2,te=1,ne=Y.slice.call(arguments,1),se=Object.create(this.lexer),ie={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(ie.yy[ge]=this.yy[ge]);se.setInput($,ie.yy),ie.yy.lexer=se,ie.yy.parser=this,typeof se.yylloc>"u"&&(se.yylloc={});var ce=se.yylloc;Y.push(ce);var be=se.options&&se.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ve(){var Oe;return Oe=Z.pop()||se.lex()||te,typeof Oe!="number"&&(Oe instanceof Array&&(Z=Oe,Oe=Z.pop()),Oe=G.symbols_[Oe]||Oe),Oe}for(var De,ye,Ee,he,we={},Ce,Ie,Le,Fe;;){if(ye=B[B.length-1],this.defaultActions[ye]?Ee=this.defaultActions[ye]:((De===null||typeof De>"u")&&(De=ve()),Ee=W[ye]&&W[ye][De]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ve="";Fe=[];for(Ce in W[ye])this.terminals_[Ce]&&Ce>ee&&Fe.push("'"+this.terminals_[Ce]+"'");se.showPosition?Ve="Parse error on line "+(V+1)+`:
`+se.showPosition()+`
Expecting `+Fe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":Ve="Parse error on line "+(V+1)+": Unexpected "+(De==te?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Ve,{text:se.match,token:this.terminals_[De]||De,line:se.yylineno,loc:ce,expected:Fe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+De);switch(Ee[0]){case 1:B.push(De),z.push(se.yytext),Y.push(se.yylloc),B.push(Ee[1]),De=null,j=se.yyleng,Q=se.yytext,V=se.yylineno,ce=se.yylloc;break;case 2:if(Ie=this.productions_[Ee[1]][1],we.$=z[z.length-Ie],we._$={first_line:Y[Y.length-(Ie||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(Ie||1)].first_column,last_column:Y[Y.length-1].last_column},be&&(we._$.range=[Y[Y.length-(Ie||1)].range[0],Y[Y.length-1].range[1]]),he=this.performAction.apply(we,[Q,j,V,ie.yy,Ee[1],z,Y].concat(ne)),typeof he<"u")return he;Ie&&(B=B.slice(0,-1*Ie*2),z=z.slice(0,-1*Ie),Y=Y.slice(0,-1*Ie)),B.push(this.productions_[Ee[1]][0]),z.push(we.$),Y.push(we._$),Le=W[B[B.length-2]][B[B.length-1]],B.push(Le);break;case 3:return!0}}return!0}},M=function(){var U={EOF:1,parseError:function(G,B){if(this.yy.parser)this.yy.parser.parseError(G,B);else throw new Error(G)},setInput:function($,G){return this.yy=G||this.yy||{},this._input=$,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 $=this._input[0];this.yytext+=$,this.yyleng++,this.offset++,this.match+=$,this.matched+=$;var G=$.match(/(?:\r\n?|\n).*/g);return G?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$},unput:function($){var G=$.length,B=$.split(/(?:\r\n?|\n)/g);this._input=$+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-G),this.offset-=G;var Z=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),B.length-1&&(this.yylineno-=B.length-1);var z=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:B?(B.length===Z.length?this.yylloc.first_column:0)+Z[Z.length-B.length].length-B[0].length:this.yylloc.first_column-G},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-G]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($){this.unput(this.match.slice($))},pastInput:function(){var $=this.matched.substr(0,this.matched.length-this.match.length);return($.length>20?"...":"")+$.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $=this.match;return $.length<20&&($+=this._input.substr(0,20-$.length)),($.substr(0,20)+($.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $=this.pastInput(),G=new Array($.length+1).join("-");return $+this.upcomingInput()+`
`+G+"^"},test_match:function($,G){var B,Z,z;if(this.options.backtrack_lexer&&(z={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&&(z.yylloc.range=this.yylloc.range.slice(0))),Z=$[0].match(/(?:\r\n?|\n).*/g),Z&&(this.yylineno+=Z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-Z[Z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$[0].length},this.yytext+=$[0],this.match+=$[0],this.matches=$,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($[0].length),this.matched+=$[0],B=this.performAction.call(this,this.yy,this,G,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var Y in z)this[Y]=z[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $,G,B,Z;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),Y=0;Y<z.length;Y++)if(B=this._input.match(this.rules[z[Y]]),B&&(!G||B[0].length>G[0].length)){if(G=B,Z=Y,this.options.backtrack_lexer){if($=this.test_match(B,z[Y]),$!==!1)return $;if(this._backtrack){G=!1;continue}else return!1}else if(!this.options.flex)break}return G?($=this.test_match(G,z[Z]),$!==!1?$:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var G=this.next();return G||this.lex()},begin:function(G){this.conditionStack.push(G)},popState:function(){var G=this.conditionStack.length-1;return G>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(G){return G=this.conditionStack.length-1-Math.abs(G||0),G>=0?this.conditionStack[G]:"INITIAL"},pushState:function(G){this.begin(G)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(G,B,Z,z){switch(Z){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;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 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return B.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return B.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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,/^(?:\[)/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,/^(?:\s*u\b)/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},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,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],inclusive:!0}}};return U}();P.lexer=M;function F(){this.yy={}}return F.prototype=P,P.Parser=F,new F}();Rht.parser=Rht;const Xpa=Rht;let ZN={},Qbt=[];const Qpa={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Zpa={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},ftr=function(e,t=void 0){return ZN[e]===void 0?(ZN[e]={attributes:[],alias:t},ut.info("Added new entity :",e)):ZN[e]&&!ZN[e].alias&&t&&(ZN[e].alias=t,ut.info(`Add alias '${t}' to entity '${e}'`)),ZN[e]},Jpa=()=>ZN,ega=function(e,t){let r=ftr(e),a;for(a=t.length-1;a>=0;a--)r.attributes.push(t[a]),ut.debug("Added attribute ",t[a].attributeName)},tga=function(e,t,r,a){let s={entityA:e,roleA:t,entityB:r,relSpec:a};Qbt.push(s),ut.debug("Added new relationship :",s)},nga=()=>Qbt,rga=function(){ZN={},Qbt=[],Mb()},iga={Cardinality:Qpa,Identification:Zpa,getConfig:()=>Qt().er,addEntity:ftr,addAttributes:ega,getEntities:Jpa,addRelationship:tga,getRelationships:nga,clear:rga,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,setDiagramTitle:Zw,getDiagramTitle:Tv},v3={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",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},aga=function(e,t){let r;e.append("defs").append("marker").attr("id",v3.MD_PARENT_START).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"),e.append("defs").append("marker").attr("id",v3.MD_PARENT_END).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"),e.append("defs").append("marker").attr("id",v3.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",v3.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",v3.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",v3.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},_3={ERMarkers:v3,insertMarkers:aga},sga=/[^\dA-Za-z](\W)*/g;let xp={},_le=new Map;const oga=function(e){const t=Object.keys(e);for(const r of t)xp[r]=e[r]},lga=(e,t,r)=>{const a=xp.entityPadding/3,s=xp.entityPadding/3,o=xp.fontSize*.85,u=t.node().getBBox(),h=[];let f=!1,p=!1,m=0,b=0,_=0,w=0,S=u.height+a*2,C=1;r.forEach(N=>{N.attributeKeyTypeList!==void 0&&N.attributeKeyTypeList.length>0&&(f=!0),N.attributeComment!==void 0&&(p=!0)}),r.forEach(N=>{const L=`${t.node().id}-attr-${C}`;let P=0;const M=Nse(N.attributeType),F=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(M),U=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(N.attributeName),$={};$.tn=F,$.nn=U;const G=F.node().getBBox(),B=U.node().getBBox();if(m=Math.max(m,G.width),b=Math.max(b,B.width),P=Math.max(G.height,B.height),f){const Z=N.attributeKeyTypeList!==void 0?N.attributeKeyTypeList.join(","):"",z=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(Z);$.kn=z;const Y=z.node().getBBox();_=Math.max(_,Y.width),P=Math.max(P,Y.height)}if(p){const Z=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(N.attributeComment||"");$.cn=Z;const z=Z.node().getBBox();w=Math.max(w,z.width),P=Math.max(P,z.height)}$.height=P,h.push($),S+=P+a*2,C+=1});let A=4;f&&(A+=2),p&&(A+=2);const k=m+b+_+w,I={width:Math.max(xp.minEntityWidth,Math.max(u.width+xp.entityPadding*2,k+s*A)),height:r.length>0?S:Math.max(xp.minEntityHeight,u.height+xp.entityPadding*2)};if(r.length>0){const N=Math.max(0,(I.width-k-s*A)/(A/2));t.attr("transform","translate("+I.width/2+","+(a+u.height/2)+")");let L=u.height+a*2,P="attributeBoxOdd";h.forEach(M=>{const F=L+a+M.height/2;M.tn.attr("transform","translate("+s+","+F+")");const U=e.insert("rect","#"+M.tn.node().id).classed(`er ${P}`,!0).attr("x",0).attr("y",L).attr("width",m+s*2+N).attr("height",M.height+a*2),$=parseFloat(U.attr("x"))+parseFloat(U.attr("width"));M.nn.attr("transform","translate("+($+s)+","+F+")");const G=e.insert("rect","#"+M.nn.node().id).classed(`er ${P}`,!0).attr("x",$).attr("y",L).attr("width",b+s*2+N).attr("height",M.height+a*2);let B=parseFloat(G.attr("x"))+parseFloat(G.attr("width"));if(f){M.kn.attr("transform","translate("+(B+s)+","+F+")");const Z=e.insert("rect","#"+M.kn.node().id).classed(`er ${P}`,!0).attr("x",B).attr("y",L).attr("width",_+s*2+N).attr("height",M.height+a*2);B=parseFloat(Z.attr("x"))+parseFloat(Z.attr("width"))}p&&(M.cn.attr("transform","translate("+(B+s)+","+F+")"),e.insert("rect","#"+M.cn.node().id).classed(`er ${P}`,"true").attr("x",B).attr("y",L).attr("width",w+s*2+N).attr("height",M.height+a*2)),L+=M.height+a*2,P=P==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else I.height=Math.max(xp.minEntityHeight,S),t.attr("transform","translate("+I.width/2+","+I.height/2+")");return I},cga=function(e,t,r){const a=Object.keys(t);let s;return a.forEach(function(o){const u=gga(o,"entity");_le.set(o,u);const h=e.append("g").attr("id",u);s=s===void 0?u:s;const f="text-"+u,p=h.append("text").classed("er entityLabel",!0).attr("id",f).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Qt().fontFamily).style("font-size",xp.fontSize+"px").text(t[o].alias??o),{width:m,height:b}=lga(h,p,t[o].attributes),w=h.insert("rect","#"+f).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",b).node().getBBox();r.setNode(u,{width:w.width,height:w.height,shape:"rect",id:u})}),s},uga=function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )")})},ptr=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},hga=function(e,t){return e.forEach(function(r){t.setEdge(_le.get(r.entityA),_le.get(r.entityB),{relationship:r},ptr(r))}),e};let SCn=0;const dga=function(e,t,r,a,s){SCn++;const o=r.edge(_le.get(t.entityA),_le.get(t.entityB),ptr(t)),u=r_().x(function(S){return S.x}).y(function(S){return S.y}).curve(j3),h=e.insert("path","#"+a).classed("er relationshipLine",!0).attr("d",u(o.points)).style("stroke",xp.stroke).style("fill","none");t.relSpec.relType===s.db.Identification.NON_IDENTIFYING&&h.attr("stroke-dasharray","8,8");let f="";switch(xp.arrowMarkerAbsolute&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),t.relSpec.cardA){case s.db.Cardinality.ZERO_OR_ONE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ZERO_OR_ONE_END+")");break;case s.db.Cardinality.ZERO_OR_MORE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ZERO_OR_MORE_END+")");break;case s.db.Cardinality.ONE_OR_MORE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ONE_OR_MORE_END+")");break;case s.db.Cardinality.ONLY_ONE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ONLY_ONE_END+")");break;case s.db.Cardinality.MD_PARENT:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.MD_PARENT_END+")");break}switch(t.relSpec.cardB){case s.db.Cardinality.ZERO_OR_ONE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ZERO_OR_ONE_START+")");break;case s.db.Cardinality.ZERO_OR_MORE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ZERO_OR_MORE_START+")");break;case s.db.Cardinality.ONE_OR_MORE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ONE_OR_MORE_START+")");break;case s.db.Cardinality.ONLY_ONE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ONLY_ONE_START+")");break;case s.db.Cardinality.MD_PARENT:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.MD_PARENT_START+")");break}const p=h.node().getTotalLength(),m=h.node().getPointAtLength(p*.5),b="rel"+SCn,w=e.append("text").classed("er relationshipLabel",!0).attr("id",b).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Qt().fontFamily).style("font-size",xp.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+b).classed("er relationshipLabelBox",!0).attr("x",m.x-w.width/2).attr("y",m.y-w.height/2).attr("width",w.width).attr("height",w.height)},fga=function(e,t,r,a){xp=Qt().er,ut.info("Drawing ER diagram");const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const h=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);_3.insertMarkers(h,xp);let f;f=new F1({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:xp.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const p=cga(h,a.db.getEntities(),f),m=hga(a.db.getRelationships(),f);oK(f),uga(h,f),m.forEach(function(C){dga(h,C,f,p,a)});const b=xp.diagramPadding;il.insertTitle(h,"entityTitleText",xp.titleTopMargin,a.db.getDiagramTitle());const _=h.node().getBBox(),w=_.width+b*2,S=_.height+b*2;Db(h,S,w,xp.useMaxWidth),h.attr("viewBox",`${_.x-b} ${_.y-b} ${w} ${S}`)},pga="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function gga(e="",t=""){const r=e.replace(sga,"");return`${TCn(t)}${TCn(r)}${Kpa(e,pga)}`}function TCn(e=""){return e.length>0?`${e}-`:""}const mga={setConf:oga,draw:fga},bga=e=>`
  .entityBox {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
  }

  .attributeBoxOdd {
    fill: ${e.attributeBackgroundColorOdd};
    stroke: ${e.nodeBorder};
  }

  .attributeBoxEven {
    fill:  ${e.attributeBackgroundColorEven};
    stroke: ${e.nodeBorder};
  }

  .relationshipLabelBox {
    fill: ${e.tertiaryColor};
    opacity: 0.7;
    background-color: ${e.tertiaryColor};
      rect {
        opacity: 0.5;
      }
  }

    .relationshipLine {
      stroke: ${e.lineColor};
    }

  .entityTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }    
  #MD_PARENT_START {
    fill: #f5f5f5 !important;
    stroke: ${e.lineColor} !important;
    stroke-width: 1;
  }
  #MD_PARENT_END {
    fill: #f5f5f5 !important;
    stroke: ${e.lineColor} !important;
    stroke-width: 1;
  }
  
`,yga=bga,vga={parser:Xpa,db:iga,renderer:mga,styles:yga},_ga=Object.freeze(Object.defineProperty({__proto__:null,diagram:vga},Symbol.toStringTag,{value:"Module"}));var Iht=function(){var e=function(P,M,F,U){for(F=F||{},U=P.length;U--;F[P[U]]=M);return F},t=[1,3],r=[1,6],a=[1,4],s=[1,5],o=[2,5],u=[1,12],h=[5,7,13,19,21,23,24,26,28,31,37,40,47],f=[7,13,19,21,23,24,26,28,31,37,40],p=[7,12,13,19,21,23,24,26,28,31,37,40],m=[7,13,47],b=[1,42],_=[1,41],w=[7,13,29,32,35,38,47],S=[1,55],C=[1,56],A=[1,57],k=[7,13,32,35,42,47],I={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT: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,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(M,F,U,$,G,B,Z){var z=B.length-1;switch(G){case 2:return B[z];case 3:return B[z-1];case 4:return $.setDirection(B[z-3]),B[z-1];case 6:$.setOptions(B[z-1]),this.$=B[z];break;case 7:B[z-1]+=B[z],this.$=B[z-1];break;case 9:this.$=[];break;case 10:B[z-1].push(B[z]),this.$=B[z-1];break;case 11:this.$=B[z-1];break;case 16:this.$=B[z].trim(),$.setAccTitle(this.$);break;case 17:case 18:this.$=B[z].trim(),$.setAccDescription(this.$);break;case 19:$.addSection(B[z].substr(8)),this.$=B[z].substr(8);break;case 21:$.checkout(B[z]);break;case 22:$.branch(B[z]);break;case 23:$.branch(B[z-2],B[z]);break;case 24:$.cherryPick(B[z],"",void 0);break;case 25:$.cherryPick(B[z-2],"",void 0,B[z]);break;case 26:$.cherryPick(B[z-2],"",B[z]);break;case 27:$.cherryPick(B[z-4],"",B[z],B[z-2]);break;case 28:$.cherryPick(B[z-4],"",B[z-2],B[z]);break;case 29:$.cherryPick(B[z],"",B[z-2]);break;case 30:$.cherryPick(B[z],"","");break;case 31:$.cherryPick(B[z-2],"","");break;case 32:$.cherryPick(B[z-4],"","",B[z-2]);break;case 33:$.cherryPick(B[z-4],"","",B[z]);break;case 34:$.cherryPick(B[z-2],"",B[z-4],B[z]);break;case 35:$.cherryPick(B[z-2],"","",B[z]);break;case 36:$.merge(B[z],"","","");break;case 37:$.merge(B[z-2],B[z],"","");break;case 38:$.merge(B[z-2],"",B[z],"");break;case 39:$.merge(B[z-2],"","",B[z]);break;case 40:$.merge(B[z-4],B[z],"",B[z-2]);break;case 41:$.merge(B[z-4],"",B[z],B[z-2]);break;case 42:$.merge(B[z-4],"",B[z-2],B[z]);break;case 43:$.merge(B[z-4],B[z-2],B[z],"");break;case 44:$.merge(B[z-4],B[z-2],"",B[z]);break;case 45:$.merge(B[z-4],B[z],B[z-2],"");break;case 46:$.merge(B[z-6],B[z-4],B[z-2],B[z]);break;case 47:$.merge(B[z-6],B[z],B[z-4],B[z-2]);break;case 48:$.merge(B[z-6],B[z-4],B[z],B[z-2]);break;case 49:$.merge(B[z-6],B[z-2],B[z-4],B[z]);break;case 50:$.merge(B[z-6],B[z],B[z-2],B[z-4]);break;case 51:$.merge(B[z-6],B[z-2],B[z],B[z-4]);break;case 52:$.commit(B[z]);break;case 53:$.commit("","",$.commitType.NORMAL,B[z]);break;case 54:$.commit("","",B[z],"");break;case 55:$.commit("","",B[z],B[z-2]);break;case 56:$.commit("","",B[z-2],B[z]);break;case 57:$.commit("",B[z],$.commitType.NORMAL,"");break;case 58:$.commit("",B[z-2],$.commitType.NORMAL,B[z]);break;case 59:$.commit("",B[z],$.commitType.NORMAL,B[z-2]);break;case 60:$.commit("",B[z-2],B[z],"");break;case 61:$.commit("",B[z],B[z-2],"");break;case 62:$.commit("",B[z-4],B[z-2],B[z]);break;case 63:$.commit("",B[z-4],B[z],B[z-2]);break;case 64:$.commit("",B[z-2],B[z-4],B[z]);break;case 65:$.commit("",B[z],B[z-4],B[z-2]);break;case 66:$.commit("",B[z],B[z-2],B[z-4]);break;case 67:$.commit("",B[z-2],B[z],B[z-4]);break;case 68:$.commit(B[z],"",$.commitType.NORMAL,"");break;case 69:$.commit(B[z],"",$.commitType.NORMAL,B[z-2]);break;case 70:$.commit(B[z-2],"",$.commitType.NORMAL,B[z]);break;case 71:$.commit(B[z-2],"",B[z],"");break;case 72:$.commit(B[z],"",B[z-2],"");break;case 73:$.commit(B[z],B[z-2],$.commitType.NORMAL,"");break;case 74:$.commit(B[z-2],B[z],$.commitType.NORMAL,"");break;case 75:$.commit(B[z-4],"",B[z-2],B[z]);break;case 76:$.commit(B[z-4],"",B[z],B[z-2]);break;case 77:$.commit(B[z-2],"",B[z-4],B[z]);break;case 78:$.commit(B[z],"",B[z-4],B[z-2]);break;case 79:$.commit(B[z],"",B[z-2],B[z-4]);break;case 80:$.commit(B[z-2],"",B[z],B[z-4]);break;case 81:$.commit(B[z-4],B[z],B[z-2],"");break;case 82:$.commit(B[z-4],B[z-2],B[z],"");break;case 83:$.commit(B[z-2],B[z],B[z-4],"");break;case 84:$.commit(B[z],B[z-2],B[z-4],"");break;case 85:$.commit(B[z],B[z-4],B[z-2],"");break;case 86:$.commit(B[z-2],B[z-4],B[z],"");break;case 87:$.commit(B[z-4],B[z],$.commitType.NORMAL,B[z-2]);break;case 88:$.commit(B[z-4],B[z-2],$.commitType.NORMAL,B[z]);break;case 89:$.commit(B[z-2],B[z],$.commitType.NORMAL,B[z-4]);break;case 90:$.commit(B[z],B[z-2],$.commitType.NORMAL,B[z-4]);break;case 91:$.commit(B[z],B[z-4],$.commitType.NORMAL,B[z-2]);break;case 92:$.commit(B[z-2],B[z-4],$.commitType.NORMAL,B[z]);break;case 93:$.commit(B[z-6],B[z-4],B[z-2],B[z]);break;case 94:$.commit(B[z-6],B[z-4],B[z],B[z-2]);break;case 95:$.commit(B[z-6],B[z-2],B[z-4],B[z]);break;case 96:$.commit(B[z-6],B[z],B[z-4],B[z-2]);break;case 97:$.commit(B[z-6],B[z-2],B[z],B[z-4]);break;case 98:$.commit(B[z-6],B[z],B[z-2],B[z-4]);break;case 99:$.commit(B[z-4],B[z-6],B[z-2],B[z]);break;case 100:$.commit(B[z-4],B[z-6],B[z],B[z-2]);break;case 101:$.commit(B[z-2],B[z-6],B[z-4],B[z]);break;case 102:$.commit(B[z],B[z-6],B[z-4],B[z-2]);break;case 103:$.commit(B[z-2],B[z-6],B[z],B[z-4]);break;case 104:$.commit(B[z],B[z-6],B[z-2],B[z-4]);break;case 105:$.commit(B[z],B[z-4],B[z-2],B[z-6]);break;case 106:$.commit(B[z-2],B[z-4],B[z],B[z-6]);break;case 107:$.commit(B[z],B[z-2],B[z-4],B[z-6]);break;case 108:$.commit(B[z-2],B[z],B[z-4],B[z-6]);break;case 109:$.commit(B[z-4],B[z-2],B[z],B[z-6]);break;case 110:$.commit(B[z-4],B[z],B[z-2],B[z-6]);break;case 111:$.commit(B[z-2],B[z-4],B[z-6],B[z]);break;case 112:$.commit(B[z],B[z-4],B[z-6],B[z-2]);break;case 113:$.commit(B[z-2],B[z],B[z-6],B[z-4]);break;case 114:$.commit(B[z],B[z-2],B[z-6],B[z-4]);break;case 115:$.commit(B[z-4],B[z-2],B[z-6],B[z]);break;case 116:$.commit(B[z-4],B[z],B[z-6],B[z-2]);break;case 117:this.$="";break;case 118:this.$=B[z];break;case 119:this.$=$.commitType.NORMAL;break;case 120:this.$=$.commitType.REVERSE;break;case 121:this.$=$.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:t,7:r,13:a,47:s},{1:[3]},{3:7,4:2,5:t,7:r,13:a,47:s},{6:8,7:o,8:[1,9],9:[1,10],10:11,13:u},e(h,[2,124]),e(h,[2,125]),e(h,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:o,10:11,13:u},{8:[1,15]},e(f,[2,9],{11:16,12:[1,17]}),e(p,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:o,10:11,13:u},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},e(p,[2,7]),{1:[2,3]},{7:[1,36]},e(f,[2,10]),{4:37,7:r,13:a,47:s},e(f,[2,12]),e(m,[2,13]),e(m,[2,14]),e(m,[2,15]),{20:[1,38]},{22:[1,39]},e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),{27:40,33:b,46:_},e(m,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:b,46:_},{32:[1,50],35:[1,51]},{27:52,33:b,46:_},{1:[2,4]},e(f,[2,11]),e(m,[2,16]),e(m,[2,17]),e(m,[2,21]),e(w,[2,122]),e(w,[2,123]),e(m,[2,52]),{33:[1,53]},{39:54,43:S,44:C,45:A},{33:[1,58]},{33:[1,59]},e(m,[2,118]),e(m,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},e(m,[2,22],{29:[1,66]}),e(m,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),e(m,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),e(k,[2,119]),e(k,[2,120]),e(k,[2,121]),e(m,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),e(m,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:S,44:C,45:A},{33:[1,81]},e(m,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:S,44:C,45:A},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:S,44:C,45:A},{33:[1,95]},{33:[1,96]},{39:97,43:S,44:C,45:A},{33:[1,98]},e(m,[2,37],{35:[1,100],38:[1,99]}),e(m,[2,38],{32:[1,102],35:[1,101]}),e(m,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},e(m,[2,23]),e(m,[2,55],{32:[1,110],42:[1,111]}),e(m,[2,59],{38:[1,112],42:[1,113]}),e(m,[2,69],{32:[1,115],38:[1,114]}),e(m,[2,56],{32:[1,116],42:[1,117]}),e(m,[2,61],{35:[1,118],42:[1,119]}),e(m,[2,72],{32:[1,121],35:[1,120]}),e(m,[2,58],{38:[1,122],42:[1,123]}),e(m,[2,60],{35:[1,124],42:[1,125]}),e(m,[2,73],{35:[1,127],38:[1,126]}),e(m,[2,70],{32:[1,129],38:[1,128]}),e(m,[2,71],{32:[1,131],35:[1,130]}),e(m,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:S,44:C,45:A},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:S,44:C,45:A},e(m,[2,25],{35:[1,140]}),e(m,[2,26],{34:[1,141]}),e(m,[2,31],{34:[1,142]}),e(m,[2,29],{34:[1,143]}),e(m,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:S,44:C,45:A},{33:[1,148]},{39:149,43:S,44:C,45:A},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:S,44:C,45:A},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:S,44:C,45:A},{33:[1,162]},{39:163,43:S,44:C,45:A},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:S,44:C,45:A},{33:[1,168]},e(m,[2,43],{35:[1,169]}),e(m,[2,44],{38:[1,170]}),e(m,[2,42],{32:[1,171]}),e(m,[2,45],{35:[1,172]}),e(m,[2,40],{38:[1,173]}),e(m,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},e(m,[2,66],{42:[1,181]}),e(m,[2,79],{32:[1,182]}),e(m,[2,67],{42:[1,183]}),e(m,[2,90],{38:[1,184]}),e(m,[2,80],{32:[1,185]}),e(m,[2,89],{38:[1,186]}),e(m,[2,65],{42:[1,187]}),e(m,[2,78],{32:[1,188]}),e(m,[2,64],{42:[1,189]}),e(m,[2,84],{35:[1,190]}),e(m,[2,77],{32:[1,191]}),e(m,[2,83],{35:[1,192]}),e(m,[2,63],{42:[1,193]}),e(m,[2,91],{38:[1,194]}),e(m,[2,62],{42:[1,195]}),e(m,[2,85],{35:[1,196]}),e(m,[2,86],{35:[1,197]}),e(m,[2,92],{38:[1,198]}),e(m,[2,76],{32:[1,199]}),e(m,[2,87],{38:[1,200]}),e(m,[2,75],{32:[1,201]}),e(m,[2,81],{35:[1,202]}),e(m,[2,82],{35:[1,203]}),e(m,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:S,44:C,45:A},{33:[1,207]},{33:[1,208]},{39:209,43:S,44:C,45:A},{33:[1,210]},e(m,[2,27]),e(m,[2,32]),e(m,[2,28]),e(m,[2,33]),e(m,[2,34]),e(m,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:S,44:C,45:A},{33:[1,215]},{39:216,43:S,44:C,45:A},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:S,44:C,45:A},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:S,44:C,45:A},{33:[1,229]},{39:230,43:S,44:C,45:A},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:S,44:C,45:A},e(m,[2,46]),e(m,[2,48]),e(m,[2,47]),e(m,[2,49]),e(m,[2,51]),e(m,[2,50]),e(m,[2,107]),e(m,[2,108]),e(m,[2,105]),e(m,[2,106]),e(m,[2,110]),e(m,[2,109]),e(m,[2,114]),e(m,[2,113]),e(m,[2,112]),e(m,[2,111]),e(m,[2,116]),e(m,[2,115]),e(m,[2,104]),e(m,[2,103]),e(m,[2,102]),e(m,[2,101]),e(m,[2,99]),e(m,[2,100]),e(m,[2,98]),e(m,[2,97]),e(m,[2,96]),e(m,[2,95]),e(m,[2,93]),e(m,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(M,F){if(F.recoverable)this.trace(M);else{var U=new Error(M);throw U.hash=F,U}},parse:function(M){var F=this,U=[0],$=[],G=[null],B=[],Z=this.table,z="",Y=0,W=0,Q=2,V=1,j=B.slice.call(arguments,1),ee=Object.create(this.lexer),te={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(te.yy[ne]=this.yy[ne]);ee.setInput(M,te.yy),te.yy.lexer=ee,te.yy.parser=this,typeof ee.yylloc>"u"&&(ee.yylloc={});var se=ee.yylloc;B.push(se);var ie=ee.options&&ee.options.ranges;typeof te.yy.parseError=="function"?this.parseError=te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ge(){var Le;return Le=$.pop()||ee.lex()||V,typeof Le!="number"&&(Le instanceof Array&&($=Le,Le=$.pop()),Le=F.symbols_[Le]||Le),Le}for(var ce,be,ve,De,ye={},Ee,he,we,Ce;;){if(be=U[U.length-1],this.defaultActions[be]?ve=this.defaultActions[be]:((ce===null||typeof ce>"u")&&(ce=ge()),ve=Z[be]&&Z[be][ce]),typeof ve>"u"||!ve.length||!ve[0]){var Ie="";Ce=[];for(Ee in Z[be])this.terminals_[Ee]&&Ee>Q&&Ce.push("'"+this.terminals_[Ee]+"'");ee.showPosition?Ie="Parse error on line "+(Y+1)+`:
`+ee.showPosition()+`
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ie="Parse error on line "+(Y+1)+": Unexpected "+(ce==V?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ie,{text:ee.match,token:this.terminals_[ce]||ce,line:ee.yylineno,loc:se,expected:Ce})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+ce);switch(ve[0]){case 1:U.push(ce),G.push(ee.yytext),B.push(ee.yylloc),U.push(ve[1]),ce=null,W=ee.yyleng,z=ee.yytext,Y=ee.yylineno,se=ee.yylloc;break;case 2:if(he=this.productions_[ve[1]][1],ye.$=G[G.length-he],ye._$={first_line:B[B.length-(he||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(he||1)].first_column,last_column:B[B.length-1].last_column},ie&&(ye._$.range=[B[B.length-(he||1)].range[0],B[B.length-1].range[1]]),De=this.performAction.apply(ye,[z,W,Y,te.yy,ve[1],G,B].concat(j)),typeof De<"u")return De;he&&(U=U.slice(0,-1*he*2),G=G.slice(0,-1*he),B=B.slice(0,-1*he)),U.push(this.productions_[ve[1]][0]),G.push(ye.$),B.push(ye._$),we=Z[U[U.length-2]][U[U.length-1]],U.push(we);break;case 3:return!0}}return!0}},N=function(){var P={EOF:1,parseError:function(F,U){if(this.yy.parser)this.yy.parser.parseError(F,U);else throw new Error(F)},setInput:function(M,F){return this.yy=F||this.yy||{},this._input=M,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 M=this._input[0];this.yytext+=M,this.yyleng++,this.offset++,this.match+=M,this.matched+=M;var F=M.match(/(?:\r\n?|\n).*/g);return F?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),M},unput:function(M){var F=M.length,U=M.split(/(?:\r\n?|\n)/g);this._input=M+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var $=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),U.length-1&&(this.yylineno-=U.length-1);var G=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:U?(U.length===$.length?this.yylloc.first_column:0)+$[$.length-U.length].length-U[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(M){this.unput(this.match.slice(M))},pastInput:function(){var M=this.matched.substr(0,this.matched.length-this.match.length);return(M.length>20?"...":"")+M.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var M=this.match;return M.length<20&&(M+=this._input.substr(0,20-M.length)),(M.substr(0,20)+(M.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var M=this.pastInput(),F=new Array(M.length+1).join("-");return M+this.upcomingInput()+`
`+F+"^"},test_match:function(M,F){var U,$,G;if(this.options.backtrack_lexer&&(G={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&&(G.yylloc.range=this.yylloc.range.slice(0))),$=M[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+M[0].length},this.yytext+=M[0],this.match+=M[0],this.matches=M,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(M[0].length),this.matched+=M[0],U=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var B in G)this[B]=G[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var M,F,U,$;this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),B=0;B<G.length;B++)if(U=this._input.match(this.rules[G[B]]),U&&(!F||U[0].length>F[0].length)){if(F=U,$=B,this.options.backtrack_lexer){if(M=this.test_match(U,G[B]),M!==!1)return M;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(M=this.test_match(F,G[$]),M!==!1?M:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var F=this.next();return F||this.lex()},begin:function(F){this.conditionStack.push(F)},popState:function(){var F=this.conditionStack.length-1;return F>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(F){return F=this.conditionStack.length-1-Math.abs(F||0),F>=0?this.conditionStack[F]:"INITIAL"},pushState:function(F){this.begin(F)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(F,U,$,G){switch($){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;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 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?: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,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\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:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return P}();I.lexer=N;function L(){this.yy={}}return L.prototype=I,I.Parser=L,new L}();Iht.parser=Iht;const wga=Iht;let c5e=Qt().gitGraph.mainBranchName,Ega=Qt().gitGraph.mainBranchOrder,kp={},av=null,wle={};wle[c5e]={name:c5e,order:Ega};let k1={};k1[c5e]=av;let Sg=c5e,gtr="LR",c$=0;function Zbt(){return JQn({length:7})}function xga(e,t){const r=Object.create(null);return e.reduce((a,s)=>{const o=t(s);return r[o]||(r[o]=!0,a.push(s)),a},[])}const Sga=function(e){gtr=e};let mtr={};const Tga=function(e){ut.debug("options str",e),e=e&&e.trim(),e=e||"{}";try{mtr=JSON.parse(e)}catch(t){ut.error("error while parsing gitGraph options",t.message)}},Cga=function(){return mtr},Aga=function(e,t,r,a){ut.debug("Entering commit:",e,t,r,a),t=mi.sanitizeText(t,Qt()),e=mi.sanitizeText(e,Qt()),a=mi.sanitizeText(a,Qt());const s={id:t||c$+"-"+Zbt(),message:e,seq:c$++,type:r||dY.NORMAL,tag:a||"",parents:av==null?[]:[av.id],branch:Sg};av=s,kp[s.id]=s,k1[Sg]=s.id,ut.debug("in pushCommit "+s.id)},kga=function(e,t){if(e=mi.sanitizeText(e,Qt()),k1[e]===void 0)k1[e]=av!=null?av.id:null,wle[e]={name:e,order:t?parseInt(t,10):null},btr(e),ut.debug("in createBranch");else{let r=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 '+e+'")');throw r.hash={text:"branch "+e,token:"branch "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+e+'"']},r}},Rga=function(e,t,r,a){e=mi.sanitizeText(e,Qt()),t=mi.sanitizeText(t,Qt());const s=kp[k1[Sg]],o=kp[k1[e]];if(Sg===e){let h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(s===void 0||!s){let h=new Error('Incorrect usage of "merge". Current branch ('+Sg+")has no commits");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},h}else if(k1[e]===void 0){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+e]},h}else if(o===void 0||!o){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},h}else if(s===o){let h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(t&&kp[t]!==void 0){let h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw h.hash={text:"merge "+e+t+r+a,token:"merge "+e+t+r+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+e+" "+t+"_UNIQUE "+r+" "+a]},h}const u={id:t||c$+"-"+Zbt(),message:"merged branch "+e+" into "+Sg,seq:c$++,parents:[av==null?null:av.id,k1[e]],branch:Sg,type:dY.MERGE,customType:r,customId:!!t,tag:a||""};av=u,kp[u.id]=u,k1[Sg]=u.id,ut.debug(k1),ut.debug("in mergeBranch")},Iga=function(e,t,r,a){if(ut.debug("Entering cherryPick:",e,t,r),e=mi.sanitizeText(e,Qt()),t=mi.sanitizeText(t,Qt()),r=mi.sanitizeText(r,Qt()),a=mi.sanitizeText(a,Qt()),!e||kp[e]===void 0){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},u}let s=kp[e],o=s.branch;if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(s.type===dY.MERGE&&!a)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||kp[t]===void 0){if(o===Sg){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},f}const u=kp[k1[Sg]];if(u===void 0||!u){let f=new Error('Incorrect usage of "cherry-pick". Current branch ('+Sg+")has no commits");throw f.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},f}const h={id:c$+"-"+Zbt(),message:"cherry-picked "+s+" into "+Sg,seq:c$++,parents:[av==null?null:av.id,s.id],branch:Sg,type:dY.CHERRY_PICK,tag:r??`cherry-pick:${s.id}${s.type===dY.MERGE?`|parent:${a}`:""}`};av=h,kp[h.id]=h,k1[Sg]=h.id,ut.debug(k1),ut.debug("in cherryPick")}},btr=function(e){if(e=mi.sanitizeText(e,Qt()),k1[e]===void 0){let t=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+e+'")');throw t.hash={text:"checkout "+e,token:"checkout "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+e+'"']},t}else{Sg=e;const t=k1[Sg];av=kp[t]}};function CCn(e,t,r){const a=e.indexOf(t);a===-1?e.push(r):e.splice(a,1,r)}function ytr(e){const t=e.reduce((s,o)=>s.seq>o.seq?s:o,e[0]);let r="";e.forEach(function(s){s===t?r+="	*":r+="	|"});const a=[r,t.id,t.seq];for(let s in k1)k1[s]===t.id&&a.push(s);if(ut.debug(a.join(" ")),t.parents&&t.parents.length==2){const s=kp[t.parents[0]];CCn(e,t,s),e.push(kp[t.parents[1]])}else{if(t.parents.length==0)return;{const s=kp[t.parents];CCn(e,t,s)}}e=xga(e,s=>s.id),ytr(e)}const Nga=function(){ut.debug(kp);const e=vtr()[0];ytr([e])},Oga=function(){kp={},av=null;let e=Qt().gitGraph.mainBranchName,t=Qt().gitGraph.mainBranchOrder;k1={},k1[e]=null,wle={},wle[e]={name:e,order:t},Sg=e,c$=0,Mb()},Lga=function(){return Object.values(wle).map((t,r)=>t.order!==null?t:{...t,order:parseFloat(`0.${r}`,10)}).sort((t,r)=>t.order-r.order).map(({name:t})=>({name:t}))},Dga=function(){return k1},Mga=function(){return kp},vtr=function(){const e=Object.keys(kp).map(function(t){return kp[t]});return e.forEach(function(t){ut.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},Pga=function(){return Sg},Bga=function(){return gtr},Fga=function(){return av},dY={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$ga={getConfig:()=>Qt().gitGraph,setDirection:Sga,setOptions:Tga,getOptions:Cga,commit:Aga,branch:kga,merge:Rga,cherryPick:Iga,checkout:btr,prettyPrint:Nga,clear:Oga,getBranchesAsObjArray:Lga,getBranches:Dga,getCommits:Mga,getCommitsArray:vtr,getCurrentBranch:Pga,getDirection:Bga,getHead:Fga,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,setDiagramTitle:Zw,getDiagramTitle:Tv,commitType:dY};let zae={};const vg={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},qB=8;let M2={},L7={},u5e=[],Ele=0,x1="LR";const Uga=()=>{M2={},L7={},zae={},Ele=0,u5e=[],x1="LR"},_tr=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");let r=[];typeof e=="string"?r=e.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(e)?r=e:r=[];for(const a of r){const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=a.trim(),t.appendChild(s)}return t},zga=e=>{let t="",r=0;return e.forEach(a=>{const s=x1==="TB"?L7[a].y:L7[a].x;s>=r&&(t=a,r=s)}),t||void 0},ACn=(e,t,r)=>{const a=Qt().gitGraph,s=e.append("g").attr("class","commit-bullets"),o=e.append("g").attr("class","commit-labels");let u=0;x1==="TB"&&(u=30);const f=Object.keys(t).sort((_,w)=>t[_].seq-t[w].seq),p=a.parallelCommits,m=10,b=40;f.forEach(_=>{const w=t[_];if(p)if(w.parents.length){const k=zga(w.parents);u=x1==="TB"?L7[k].y+b:L7[k].x+b}else u=0,x1==="TB"&&(u=30);const S=u+m,C=x1==="TB"?S:M2[w.branch].pos,A=x1==="TB"?M2[w.branch].pos:S;if(r){let k,I=w.customType!==void 0&&w.customType!==""?w.customType:w.type;switch(I){case vg.NORMAL:k="commit-normal";break;case vg.REVERSE:k="commit-reverse";break;case vg.HIGHLIGHT:k="commit-highlight";break;case vg.MERGE:k="commit-merge";break;case vg.CHERRY_PICK:k="commit-cherry-pick";break;default:k="commit-normal"}if(I===vg.HIGHLIGHT){const N=s.append("rect");N.attr("x",A-10),N.attr("y",C-10),N.attr("height",20),N.attr("width",20),N.attr("class",`commit ${w.id} commit-highlight${M2[w.branch].index%qB} ${k}-outer`),s.append("rect").attr("x",A-6).attr("y",C-6).attr("height",12).attr("width",12).attr("class",`commit ${w.id} commit${M2[w.branch].index%qB} ${k}-inner`)}else if(I===vg.CHERRY_PICK)s.append("circle").attr("cx",A).attr("cy",C).attr("r",10).attr("class",`commit ${w.id} ${k}`),s.append("circle").attr("cx",A-3).attr("cy",C+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${w.id} ${k}`),s.append("circle").attr("cx",A+3).attr("cy",C+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${w.id} ${k}`),s.append("line").attr("x1",A+3).attr("y1",C+1).attr("x2",A).attr("y2",C-5).attr("stroke","#fff").attr("class",`commit ${w.id} ${k}`),s.append("line").attr("x1",A-3).attr("y1",C+1).attr("x2",A).attr("y2",C-5).attr("stroke","#fff").attr("class",`commit ${w.id} ${k}`);else{const N=s.append("circle");if(N.attr("cx",A),N.attr("cy",C),N.attr("r",w.type===vg.MERGE?9:10),N.attr("class",`commit ${w.id} commit${M2[w.branch].index%qB}`),I===vg.MERGE){const L=s.append("circle");L.attr("cx",A),L.attr("cy",C),L.attr("r",6),L.attr("class",`commit ${k} ${w.id} commit${M2[w.branch].index%qB}`)}I===vg.REVERSE&&s.append("path").attr("d",`M ${A-5},${C-5}L${A+5},${C+5}M${A-5},${C+5}L${A+5},${C-5}`).attr("class",`commit ${k} ${w.id} commit${M2[w.branch].index%qB}`)}}if(x1==="TB"?L7[w.id]={x:A,y:S}:L7[w.id]={x:S,y:C},r){if(w.type!==vg.CHERRY_PICK&&(w.customId&&w.type===vg.MERGE||w.type!==vg.MERGE)&&a.showCommitLabel){const N=o.append("g"),L=N.insert("rect").attr("class","commit-label-bkg"),P=N.append("text").attr("x",u).attr("y",C+25).attr("class","commit-label").text(w.id);let M=P.node().getBBox();if(L.attr("x",S-M.width/2-2).attr("y",C+13.5).attr("width",M.width+2*2).attr("height",M.height+2*2),x1==="TB"&&(L.attr("x",A-(M.width+4*4+5)).attr("y",C-12),P.attr("x",A-(M.width+4*4)).attr("y",C+M.height-12)),x1!=="TB"&&P.attr("x",S-M.width/2),a.rotateCommitLabel)if(x1==="TB")P.attr("transform","rotate(-45, "+A+", "+C+")"),L.attr("transform","rotate(-45, "+A+", "+C+")");else{let F=-7.5-(M.width+10)/25*9.5,U=10+M.width/25*8.5;N.attr("transform","translate("+F+", "+U+") rotate(-45, "+u+", "+C+")")}}if(w.tag){const N=o.insert("polygon"),L=o.append("circle"),P=o.append("text").attr("y",C-16).attr("class","tag-label").text(w.tag);let M=P.node().getBBox();P.attr("x",S-M.width/2);const F=M.height/2,U=C-19.2;N.attr("class","tag-label-bkg").attr("points",`
          ${u-M.width/2-4/2},${U+2}
          ${u-M.width/2-4/2},${U-2}
          ${S-M.width/2-4},${U-F-2}
          ${S+M.width/2+4},${U-F-2}
          ${S+M.width/2+4},${U+F+2}
          ${S-M.width/2-4},${U+F+2}`),L.attr("cx",u-M.width/2+4/2).attr("cy",U).attr("r",1.5).attr("class","tag-hole"),x1==="TB"&&(N.attr("class","tag-label-bkg").attr("points",`
            ${A},${u+2}
            ${A},${u-2}
            ${A+m},${u-F-2}
            ${A+m+M.width+4},${u-F-2}
            ${A+m+M.width+4},${u+F+2}
            ${A+m},${u+F+2}`).attr("transform","translate(12,12) rotate(45, "+A+","+u+")"),L.attr("cx",A+4/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+A+","+u+")"),P.attr("x",A+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+A+","+u+")"))}}u+=b+m,u>Ele&&(Ele=u)})},Gga=(e,t,r,a,s)=>{const u=(x1==="TB"?r.x<a.x:r.y<a.y)?t.branch:e.branch,h=p=>p.branch===u,f=p=>p.seq>e.seq&&p.seq<t.seq;return Object.values(s).some(p=>f(p)&&h(p))},Gae=(e,t,r=0)=>{const a=e+Math.abs(e-t)/2;if(r>5)return a;if(u5e.every(u=>Math.abs(u-a)>=10))return u5e.push(a),a;const o=Math.abs(e-t);return Gae(e,t-o/5,r+1)},qga=(e,t,r,a)=>{const s=L7[t.id],o=L7[r.id],u=Gga(t,r,s,o,a);let h="",f="",p=0,m=0,b=M2[r.branch].index;r.type===vg.MERGE&&t.id!==r.parents[0]&&(b=M2[t.branch].index);let _;if(u){h="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",p=10,m=10;const w=s.y<o.y?Gae(s.y,o.y):Gae(o.y,s.y),S=s.x<o.x?Gae(s.x,o.x):Gae(o.x,s.x);x1==="TB"?s.x<o.x?_=`M ${s.x} ${s.y} L ${S-p} ${s.y} ${f} ${S} ${s.y+m} L ${S} ${o.y-p} ${h} ${S+m} ${o.y} L ${o.x} ${o.y}`:(b=M2[t.branch].index,_=`M ${s.x} ${s.y} L ${S+p} ${s.y} ${h} ${S} ${s.y+m} L ${S} ${o.y-p} ${f} ${S-m} ${o.y} L ${o.x} ${o.y}`):s.y<o.y?_=`M ${s.x} ${s.y} L ${s.x} ${w-p} ${h} ${s.x+m} ${w} L ${o.x-p} ${w} ${f} ${o.x} ${w+m} L ${o.x} ${o.y}`:(b=M2[t.branch].index,_=`M ${s.x} ${s.y} L ${s.x} ${w+p} ${f} ${s.x+m} ${w} L ${o.x-p} ${w} ${h} ${o.x} ${w-m} L ${o.x} ${o.y}`)}else h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,x1==="TB"?(s.x<o.x&&(r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${h} ${s.x+m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${f} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x>o.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${f} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x+p} ${s.y} ${h} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.y<o.y&&(r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${f} ${o.x} ${s.y+m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${h} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y>o.y&&(r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${f} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));e.append("path").attr("d",_).attr("class","arrow arrow"+b%qB)},Hga=(e,t)=>{const r=e.append("g").attr("class","commit-arrows");Object.keys(t).forEach(a=>{const s=t[a];s.parents&&s.parents.length>0&&s.parents.forEach(o=>{qga(r,t[o],s,t)})})},Vga=(e,t)=>{const r=Qt().gitGraph,a=e.append("g");t.forEach((s,o)=>{const u=o%qB,h=M2[s.name].pos,f=a.append("line");f.attr("x1",0),f.attr("y1",h),f.attr("x2",Ele),f.attr("y2",h),f.attr("class","branch branch"+u),x1==="TB"&&(f.attr("y1",30),f.attr("x1",h),f.attr("y2",Ele),f.attr("x2",h)),u5e.push(h);let p=s.name;const m=_tr(p),b=a.insert("rect"),w=a.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);w.node().appendChild(m);let S=m.getBBox();b.attr("class","branchLabelBkg label"+u).attr("rx",4).attr("ry",4).attr("x",-S.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-S.height/2+8).attr("width",S.width+18).attr("height",S.height+4),w.attr("transform","translate("+(-S.width-14-(r.rotateCommitLabel===!0?30:0))+", "+(h-S.height/2-1)+")"),x1==="TB"&&(b.attr("x",h-S.width/2-10).attr("y",0),w.attr("transform","translate("+(h-S.width/2-5)+", 0)")),x1!=="TB"&&b.attr("transform","translate(-19, "+(h-S.height/2)+")")})},Yga=function(e,t,r,a){Uga();const s=Qt(),o=s.gitGraph;ut.debug("in gitgraph renderer",e+`
`,"id:",t,r),zae=a.db.getCommits();const u=a.db.getBranchesAsObjArray();x1=a.db.getDirection();const h=gn(`[id="${t}"]`);let f=0;u.forEach((p,m)=>{const b=_tr(p.name),_=h.append("g"),w=_.insert("g").attr("class","branchLabel"),S=w.insert("g").attr("class","label branch-label");S.node().appendChild(b);let C=b.getBBox();M2[p.name]={pos:f,index:m},f+=50+(o.rotateCommitLabel?40:0)+(x1==="TB"?C.width/2:0),S.remove(),w.remove(),_.remove()}),ACn(h,zae,!1),o.showBranches&&Vga(h,u),Hga(h,zae),ACn(h,zae,!0),il.insertTitle(h,"gitTitleText",o.titleTopMargin,a.db.getDiagramTitle()),CZn(void 0,h,o.diagramPadding,o.useMaxWidth??s.useMaxWidth)},jga={draw:Yga},Wga=e=>`
  .commit-id,
  .commit-msg,
  .branch-label {
    fill: lightgrey;
    color: lightgrey;
    font-family: 'trebuchet ms', verdana, arial, sans-serif;
    font-family: var(--mermaid-font-family);
  }
  ${[0,1,2,3,4,5,6,7].map(t=>`
        .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; }
        .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
        .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
        .label${t}  { fill: ${e["git"+t]}; }
        .arrow${t} { stroke: ${e["git"+t]}; }
        `).join(`
`)}

  .branch {
    stroke-width: 1;
    stroke: ${e.lineColor};
    stroke-dasharray: 2;
  }
  .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
  .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
  .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
  .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
  .tag-hole { fill: ${e.textColor}; }

  .commit-merge {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
  }
  .commit-reverse {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
    stroke-width: 3;
  }
  .commit-highlight-outer {
  }
  .commit-highlight-inner {
    stroke: ${e.primaryColor};
    fill: ${e.primaryColor};
  }

  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
  .gitTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
`,Kga=Wga,Xga={parser:wga,db:$ga,renderer:jga,styles:Kga},Qga=Object.freeze(Object.defineProperty({__proto__:null,diagram:Xga},Symbol.toStringTag,{value:"Module"}));var Nht=function(){var e=function(B,Z,z,Y){for(z=z||{},Y=B.length;Y--;z[B[Y]]=Z);return z},t=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,29],h=[1,30],f=[1,31],p=[1,9],m=[1,10],b=[1,11],_=[1,12],w=[1,13],S=[1,14],C=[1,15],A=[1,16],k=[1,18],I=[1,19],N=[1,20],L=[1,21],P=[1,22],M=[1,24],F=[1,32],U={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(Z,z,Y,W,Q,V,j){var ee=V.length-1;switch(Q){case 1:return V[ee-1];case 2:this.$=[];break;case 3:V[ee-1].push(V[ee]),this.$=V[ee-1];break;case 4:case 5:this.$=V[ee];break;case 6:case 7:this.$=[];break;case 8:W.setWeekday("monday");break;case 9:W.setWeekday("tuesday");break;case 10:W.setWeekday("wednesday");break;case 11:W.setWeekday("thursday");break;case 12:W.setWeekday("friday");break;case 13:W.setWeekday("saturday");break;case 14:W.setWeekday("sunday");break;case 15:W.setDateFormat(V[ee].substr(11)),this.$=V[ee].substr(11);break;case 16:W.enableInclusiveEndDates(),this.$=V[ee].substr(18);break;case 17:W.TopAxis(),this.$=V[ee].substr(8);break;case 18:W.setAxisFormat(V[ee].substr(11)),this.$=V[ee].substr(11);break;case 19:W.setTickInterval(V[ee].substr(13)),this.$=V[ee].substr(13);break;case 20:W.setExcludes(V[ee].substr(9)),this.$=V[ee].substr(9);break;case 21:W.setIncludes(V[ee].substr(9)),this.$=V[ee].substr(9);break;case 22:W.setTodayMarker(V[ee].substr(12)),this.$=V[ee].substr(12);break;case 24:W.setDiagramTitle(V[ee].substr(6)),this.$=V[ee].substr(6);break;case 25:this.$=V[ee].trim(),W.setAccTitle(this.$);break;case 26:case 27:this.$=V[ee].trim(),W.setAccDescription(this.$);break;case 28:W.addSection(V[ee].substr(8)),this.$=V[ee].substr(8);break;case 30:W.addTask(V[ee-1],V[ee]),this.$="task";break;case 31:this.$=V[ee-1],W.setClickEvent(V[ee-1],V[ee],null);break;case 32:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee-1],V[ee]);break;case 33:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee-1],null),W.setLink(V[ee-2],V[ee]);break;case 34:this.$=V[ee-3],W.setClickEvent(V[ee-3],V[ee-2],V[ee-1]),W.setLink(V[ee-3],V[ee]);break;case 35:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee],null),W.setLink(V[ee-2],V[ee-1]);break;case 36:this.$=V[ee-3],W.setClickEvent(V[ee-3],V[ee-1],V[ee]),W.setLink(V[ee-3],V[ee-2]);break;case 37:this.$=V[ee-1],W.setLink(V[ee-1],V[ee]);break;case 38:case 44:this.$=V[ee-1]+" "+V[ee];break;case 39:case 40:case 42:this.$=V[ee-2]+" "+V[ee-1]+" "+V[ee];break;case 41:case 43:this.$=V[ee-3]+" "+V[ee-2]+" "+V[ee-1]+" "+V[ee];break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:p,20:m,21:b,22:_,23:w,24:S,25:C,26:A,27:k,28:I,30:N,32:L,33:P,34:23,35:M,37:F},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:33,11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:p,20:m,21:b,22:_,23:w,24:S,25:C,26:A,27:k,28:I,30:N,32:L,33:P,34:23,35:M,37:F},e(t,[2,5]),e(t,[2,6]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),{29:[1,34]},{31:[1,35]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),{36:[1,36]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),{38:[1,37],40:[1,38]},e(t,[2,4]),e(t,[2,25]),e(t,[2,26]),e(t,[2,30]),e(t,[2,31],{39:[1,39],40:[1,40]}),e(t,[2,37],{38:[1,41]}),e(t,[2,32],{40:[1,42]}),e(t,[2,33]),e(t,[2,35],{39:[1,43]}),e(t,[2,34]),e(t,[2,36])],defaultActions:{},parseError:function(Z,z){if(z.recoverable)this.trace(Z);else{var Y=new Error(Z);throw Y.hash=z,Y}},parse:function(Z){var z=this,Y=[0],W=[],Q=[null],V=[],j=this.table,ee="",te=0,ne=0,se=2,ie=1,ge=V.slice.call(arguments,1),ce=Object.create(this.lexer),be={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(be.yy[ve]=this.yy[ve]);ce.setInput(Z,be.yy),be.yy.lexer=ce,be.yy.parser=this,typeof ce.yylloc>"u"&&(ce.yylloc={});var De=ce.yylloc;V.push(De);var ye=ce.options&&ce.options.ranges;typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(){var sn;return sn=W.pop()||ce.lex()||ie,typeof sn!="number"&&(sn instanceof Array&&(W=sn,sn=W.pop()),sn=z.symbols_[sn]||sn),sn}for(var he,we,Ce,Ie,Le={},Fe,Ve,Oe,Dt;;){if(we=Y[Y.length-1],this.defaultActions[we]?Ce=this.defaultActions[we]:((he===null||typeof he>"u")&&(he=Ee()),Ce=j[we]&&j[we][he]),typeof Ce>"u"||!Ce.length||!Ce[0]){var ot="";Dt=[];for(Fe in j[we])this.terminals_[Fe]&&Fe>se&&Dt.push("'"+this.terminals_[Fe]+"'");ce.showPosition?ot="Parse error on line "+(te+1)+`:
`+ce.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":ot="Parse error on line "+(te+1)+": Unexpected "+(he==ie?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(ot,{text:ce.match,token:this.terminals_[he]||he,line:ce.yylineno,loc:De,expected:Dt})}if(Ce[0]instanceof Array&&Ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+we+", token: "+he);switch(Ce[0]){case 1:Y.push(he),Q.push(ce.yytext),V.push(ce.yylloc),Y.push(Ce[1]),he=null,ne=ce.yyleng,ee=ce.yytext,te=ce.yylineno,De=ce.yylloc;break;case 2:if(Ve=this.productions_[Ce[1]][1],Le.$=Q[Q.length-Ve],Le._$={first_line:V[V.length-(Ve||1)].first_line,last_line:V[V.length-1].last_line,first_column:V[V.length-(Ve||1)].first_column,last_column:V[V.length-1].last_column},ye&&(Le._$.range=[V[V.length-(Ve||1)].range[0],V[V.length-1].range[1]]),Ie=this.performAction.apply(Le,[ee,ne,te,be.yy,Ce[1],Q,V].concat(ge)),typeof Ie<"u")return Ie;Ve&&(Y=Y.slice(0,-1*Ve*2),Q=Q.slice(0,-1*Ve),V=V.slice(0,-1*Ve)),Y.push(this.productions_[Ce[1]][0]),Q.push(Le.$),V.push(Le._$),Oe=j[Y[Y.length-2]][Y[Y.length-1]],Y.push(Oe);break;case 3:return!0}}return!0}},$=function(){var B={EOF:1,parseError:function(z,Y){if(this.yy.parser)this.yy.parser.parseError(z,Y);else throw new Error(z)},setInput:function(Z,z){return this.yy=z||this.yy||{},this._input=Z,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 Z=this._input[0];this.yytext+=Z,this.yyleng++,this.offset++,this.match+=Z,this.matched+=Z;var z=Z.match(/(?:\r\n?|\n).*/g);return z?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Z},unput:function(Z){var z=Z.length,Y=Z.split(/(?:\r\n?|\n)/g);this._input=Z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-z),this.offset-=z;var W=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),Y.length-1&&(this.yylineno-=Y.length-1);var Q=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:Y?(Y.length===W.length?this.yylloc.first_column:0)+W[W.length-Y.length].length-Y[0].length:this.yylloc.first_column-z},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-z]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Z){this.unput(this.match.slice(Z))},pastInput:function(){var Z=this.matched.substr(0,this.matched.length-this.match.length);return(Z.length>20?"...":"")+Z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Z=this.match;return Z.length<20&&(Z+=this._input.substr(0,20-Z.length)),(Z.substr(0,20)+(Z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Z=this.pastInput(),z=new Array(Z.length+1).join("-");return Z+this.upcomingInput()+`
`+z+"^"},test_match:function(Z,z){var Y,W,Q;if(this.options.backtrack_lexer&&(Q={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&&(Q.yylloc.range=this.yylloc.range.slice(0))),W=Z[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Z[0].length},this.yytext+=Z[0],this.match+=Z[0],this.matches=Z,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(Z[0].length),this.matched+=Z[0],Y=this.performAction.call(this,this.yy,this,z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Y)return Y;if(this._backtrack){for(var V in Q)this[V]=Q[V];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Z,z,Y,W;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),V=0;V<Q.length;V++)if(Y=this._input.match(this.rules[Q[V]]),Y&&(!z||Y[0].length>z[0].length)){if(z=Y,W=V,this.options.backtrack_lexer){if(Z=this.test_match(Y,Q[V]),Z!==!1)return Z;if(this._backtrack){z=!1;continue}else return!1}else if(!this.options.flex)break}return z?(Z=this.test_match(z,Q[W]),Z!==!1?Z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var z=this.next();return z||this.lex()},begin:function(z){this.conditionStack.push(z)},popState:function(){var z=this.conditionStack.length-1;return z>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(z){return z=this.conditionStack.length-1-Math.abs(z||0),z>=0?this.conditionStack[z]:"INITIAL"},pushState:function(z){this.begin(z)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(z,Y,W,Q){switch(W){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/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,/^(?: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,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,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],inclusive:!0}}};return B}();U.lexer=$;function G(){this.yy={}}return G.prototype=U,U.Parser=G,new G}();Nht.parser=Nht;const Zga=Nht;Fc.extend(XWn);Fc.extend(FAn);Fc.extend(PAn);let nA="",Jbt="",eyt,tyt="",tue=[],nue=[],nyt={},ryt=[],h5e=[],cW="",iyt="";const wtr=["active","done","crit","milestone"];let ayt=[],rue=!1,syt=!1,oyt="sunday",Oht=0;const Jga=function(){ryt=[],h5e=[],cW="",ayt=[],uSe=0,Dht=void 0,hSe=void 0,bp=[],nA="",Jbt="",iyt="",eyt=void 0,tyt="",tue=[],nue=[],rue=!1,syt=!1,Oht=0,nyt={},Mb(),oyt="sunday"},ema=function(e){Jbt=e},tma=function(){return Jbt},nma=function(e){eyt=e},rma=function(){return eyt},ima=function(e){tyt=e},ama=function(){return tyt},sma=function(e){nA=e},oma=function(){rue=!0},lma=function(){return rue},cma=function(){syt=!0},uma=function(){return syt},hma=function(e){iyt=e},dma=function(){return iyt},fma=function(){return nA},pma=function(e){tue=e.toLowerCase().split(/[\s,]+/)},gma=function(){return tue},mma=function(e){nue=e.toLowerCase().split(/[\s,]+/)},bma=function(){return nue},yma=function(){return nyt},vma=function(e){cW=e,ryt.push(e)},_ma=function(){return ryt},wma=function(){let e=kCn();const t=10;let r=0;for(;!e&&r<t;)e=kCn(),r++;return h5e=bp,h5e},Etr=function(e,t,r,a){return a.includes(e.format(t.trim()))?!1:e.isoWeekday()>=6&&r.includes("weekends")||r.includes(e.format("dddd").toLowerCase())?!0:r.includes(e.format(t.trim()))},Ema=function(e){oyt=e},xma=function(){return oyt},xtr=function(e,t,r,a){if(!r.length||e.manualEndTime)return;let s;e.startTime instanceof Date?s=Fc(e.startTime):s=Fc(e.startTime,t,!0),s=s.add(1,"d");let o;e.endTime instanceof Date?o=Fc(e.endTime):o=Fc(e.endTime,t,!0);const[u,h]=Sma(s,o,t,r,a);e.endTime=u.toDate(),e.renderEndTime=h},Sma=function(e,t,r,a,s){let o=!1,u=null;for(;e<=t;)o||(u=t.toDate()),o=Etr(e,r,a,s),o&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,u]},Lht=function(e,t,r){r=r.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let u=null;for(const f of s.groups.ids.split(" ")){let p=nU(f);p!==void 0&&(!u||p.endTime>u.endTime)&&(u=p)}if(u)return u.endTime;const h=new Date;return h.setHours(0,0,0,0),h}let o=Fc(r,t.trim(),!0);if(o.isValid())return o.toDate();{ut.debug("Invalid date:"+r),ut.debug("With date format:"+t.trim());const u=new Date(r);if(u===void 0||isNaN(u.getTime())||u.getFullYear()<-1e4||u.getFullYear()>1e4)throw new Error("Invalid date:"+r);return u}},Str=function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},Ttr=function(e,t,r,a=!1){r=r.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(o!==null){let m=null;for(const _ of o.groups.ids.split(" ")){let w=nU(_);w!==void 0&&(!m||w.startTime<m.startTime)&&(m=w)}if(m)return m.startTime;const b=new Date;return b.setHours(0,0,0,0),b}let u=Fc(r,t.trim(),!0);if(u.isValid())return a&&(u=u.add(1,"d")),u.toDate();let h=Fc(e);const[f,p]=Str(r);if(!Number.isNaN(f)){const m=h.add(f,p);m.isValid()&&(h=m)}return h.toDate()};let uSe=0;const fY=function(e){return e===void 0?(uSe=uSe+1,"task"+uSe):e},Tma=function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;const a=r.split(","),s={};Rtr(a,s,wtr);for(let u=0;u<a.length;u++)a[u]=a[u].trim();let o="";switch(a.length){case 1:s.id=fY(),s.startTime=e.endTime,o=a[0];break;case 2:s.id=fY(),s.startTime=Lht(void 0,nA,a[0]),o=a[1];break;case 3:s.id=fY(a[0]),s.startTime=Lht(void 0,nA,a[1]),o=a[2];break}return o&&(s.endTime=Ttr(s.startTime,nA,o,rue),s.manualEndTime=Fc(o,"YYYY-MM-DD",!0).isValid(),xtr(s,nA,nue,tue)),s},Cma=function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;const a=r.split(","),s={};Rtr(a,s,wtr);for(let o=0;o<a.length;o++)a[o]=a[o].trim();switch(a.length){case 1:s.id=fY(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:a[0]};break;case 2:s.id=fY(),s.startTime={type:"getStartDate",startData:a[0]},s.endTime={data:a[1]};break;case 3:s.id=fY(a[0]),s.startTime={type:"getStartDate",startData:a[1]},s.endTime={data:a[2]};break}return s};let Dht,hSe,bp=[];const Ctr={},Ama=function(e,t){const r={section:cW,type:cW,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},a=Cma(hSe,t);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=hSe,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.order=Oht,Oht++;const s=bp.push(r);hSe=r.id,Ctr[r.id]=s-1},nU=function(e){const t=Ctr[e];return bp[t]},kma=function(e,t){const r={section:cW,type:cW,description:e,task:e,classes:[]},a=Tma(Dht,t);r.startTime=a.startTime,r.endTime=a.endTime,r.id=a.id,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,Dht=r,h5e.push(r)},kCn=function(){const e=function(r){const a=bp[r];let s="";switch(bp[r].raw.startTime.type){case"prevTaskEnd":{const o=nU(a.prevTaskId);a.startTime=o.endTime;break}case"getStartDate":s=Lht(void 0,nA,bp[r].raw.startTime.startData),s&&(bp[r].startTime=s);break}return bp[r].startTime&&(bp[r].endTime=Ttr(bp[r].startTime,nA,bp[r].raw.endTime.data,rue),bp[r].endTime&&(bp[r].processed=!0,bp[r].manualEndTime=Fc(bp[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),xtr(bp[r],nA,nue,tue))),bp[r].processed};let t=!0;for(const[r,a]of bp.entries())e(r),t=t&&a.processed;return t},Rma=function(e,t){let r=t;Qt().securityLevel!=="loose"&&(r=U9(t)),e.split(",").forEach(function(a){nU(a)!==void 0&&(ktr(a,()=>{window.open(r,"_self")}),nyt[a]=r)}),Atr(e,"clickable")},Atr=function(e,t){e.split(",").forEach(function(r){let a=nU(r);a!==void 0&&a.classes.push(t)})},Ima=function(e,t,r){if(Qt().securityLevel!=="loose"||t===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<a.length;o++){let u=a[o].trim();u.charAt(0)==='"'&&u.charAt(u.length-1)==='"'&&(u=u.substr(1,u.length-2)),a[o]=u}}a.length===0&&a.push(e),nU(e)!==void 0&&ktr(e,()=>{il.runFunc(t,...a)})},ktr=function(e,t){ayt.push(function(){const r=document.querySelector(`[id="${e}"]`);r!==null&&r.addEventListener("click",function(){t()})},function(){const r=document.querySelector(`[id="${e}-text"]`);r!==null&&r.addEventListener("click",function(){t()})})},Nma=function(e,t,r){e.split(",").forEach(function(a){Ima(a,t,r)}),Atr(e,"clickable")},Oma=function(e){ayt.forEach(function(t){t(e)})},Lma={getConfig:()=>Qt().gantt,clear:Jga,setDateFormat:sma,getDateFormat:fma,enableInclusiveEndDates:oma,endDatesAreInclusive:lma,enableTopAxis:cma,topAxisEnabled:uma,setAxisFormat:ema,getAxisFormat:tma,setTickInterval:nma,getTickInterval:rma,setTodayMarker:ima,getTodayMarker:ama,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,setDisplayMode:hma,getDisplayMode:dma,setAccDescription:xv,getAccDescription:Sv,addSection:vma,getSections:_ma,getTasks:wma,addTask:Ama,findTaskById:nU,addTaskOrg:kma,setIncludes:pma,getIncludes:gma,setExcludes:mma,getExcludes:bma,setClickEvent:Nma,setLink:Rma,getLinks:yma,bindFunctions:Oma,parseDuration:Str,isInvalidDate:Etr,setWeekday:Ema,getWeekday:xma};function Rtr(e,t,r){let a=!0;for(;a;)a=!1,r.forEach(function(s){const o="^\\s*"+s+"\\s*$",u=new RegExp(o);e[0].match(u)&&(t[s]=!0,e.shift(1),a=!0)})}const Dma=function(){ut.debug("Something is calling, setConf, remove the call")},RCn={monday:Rj,tuesday:r1t,wednesday:i1t,thursday:YO,friday:a1t,saturday:s1t,sunday:MW},Mma=(e,t)=>{let r=[...e].map(()=>-1/0),a=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(const o of a)for(let u=0;u<r.length;u++)if(o.startTime>=r[u]){r[u]=o.endTime,o.order=u+t,u>s&&(s=u);break}return s};let n7;const Pma=function(e,t,r,a){const s=Qt().gantt,o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=o==="sandbox"?u.nodes()[0].contentDocument:document,p=f.getElementById(t);n7=p.parentElement.offsetWidth,n7===void 0&&(n7=1200),s.useWidth!==void 0&&(n7=s.useWidth);const m=a.db.getTasks();let b=[];for(const U of m)b.push(U.type);b=F(b);const _={};let w=2*s.topPadding;if(a.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const U={};for(const G of m)U[G.section]===void 0?U[G.section]=[G]:U[G.section].push(G);let $=0;for(const G of Object.keys(U)){const B=Mma(U[G],$)+1;$+=B,w+=B*(s.barHeight+s.barGap),_[G]=B}}else{w+=m.length*(s.barHeight+s.barGap);for(const U of b)_[U]=m.filter($=>$.type===U).length}p.setAttribute("viewBox","0 0 "+n7+" "+w);const S=h.select(`[id="${t}"]`),C=xDn().domain([ALn(m,function(U){return U.startTime}),CLn(m,function(U){return U.endTime})]).rangeRound([0,n7-s.leftPadding-s.rightPadding]);function A(U,$){const G=U.startTime,B=$.startTime;let Z=0;return G>B?Z=1:G<B&&(Z=-1),Z}m.sort(A),k(m,n7,w),Db(S,w,n7,s.useMaxWidth),S.append("text").text(a.db.getDiagramTitle()).attr("x",n7/2).attr("y",s.titleTopMargin).attr("class","titleText");function k(U,$,G){const B=s.barHeight,Z=B+s.barGap,z=s.topPadding,Y=s.leftPadding,W=sT().domain([0,b.length]).range(["#00B9FA","#F95002"]).interpolate(iDn);N(Z,z,Y,$,G,U,a.db.getExcludes(),a.db.getIncludes()),L(Y,z,$,G),I(U,Z,z,Y,B,W,$),P(Z,z),M(Y,z,$,G)}function I(U,$,G,B,Z,z,Y){const Q=[...new Set(U.map(te=>te.order))].map(te=>U.find(ne=>ne.order===te));S.append("g").selectAll("rect").data(Q).enter().append("rect").attr("x",0).attr("y",function(te,ne){return ne=te.order,ne*$+G-2}).attr("width",function(){return Y-s.rightPadding/2}).attr("height",$).attr("class",function(te){for(const[ne,se]of b.entries())if(te.type===se)return"section section"+ne%s.numberSectionStyles;return"section section0"});const V=S.append("g").selectAll("rect").data(U).enter(),j=a.db.getLinks();if(V.append("rect").attr("id",function(te){return te.id}).attr("rx",3).attr("ry",3).attr("x",function(te){return te.milestone?C(te.startTime)+B+.5*(C(te.endTime)-C(te.startTime))-.5*Z:C(te.startTime)+B}).attr("y",function(te,ne){return ne=te.order,ne*$+G}).attr("width",function(te){return te.milestone?Z:C(te.renderEndTime||te.endTime)-C(te.startTime)}).attr("height",Z).attr("transform-origin",function(te,ne){return ne=te.order,(C(te.startTime)+B+.5*(C(te.endTime)-C(te.startTime))).toString()+"px "+(ne*$+G+.5*Z).toString()+"px"}).attr("class",function(te){const ne="task";let se="";te.classes.length>0&&(se=te.classes.join(" "));let ie=0;for(const[ce,be]of b.entries())te.type===be&&(ie=ce%s.numberSectionStyles);let ge="";return te.active?te.crit?ge+=" activeCrit":ge=" active":te.done?te.crit?ge=" doneCrit":ge=" done":te.crit&&(ge+=" crit"),ge.length===0&&(ge=" task"),te.milestone&&(ge=" milestone "+ge),ge+=ie,ge+=" "+se,ne+ge}),V.append("text").attr("id",function(te){return te.id+"-text"}).text(function(te){return te.task}).attr("font-size",s.fontSize).attr("x",function(te){let ne=C(te.startTime),se=C(te.renderEndTime||te.endTime);te.milestone&&(ne+=.5*(C(te.endTime)-C(te.startTime))-.5*Z),te.milestone&&(se=ne+Z);const ie=this.getBBox().width;return ie>se-ne?se+ie+1.5*s.leftPadding>Y?ne+B-5:se+B+5:(se-ne)/2+ne+B}).attr("y",function(te,ne){return ne=te.order,ne*$+s.barHeight/2+(s.fontSize/2-2)+G}).attr("text-height",Z).attr("class",function(te){const ne=C(te.startTime);let se=C(te.endTime);te.milestone&&(se=ne+Z);const ie=this.getBBox().width;let ge="";te.classes.length>0&&(ge=te.classes.join(" "));let ce=0;for(const[ve,De]of b.entries())te.type===De&&(ce=ve%s.numberSectionStyles);let be="";return te.active&&(te.crit?be="activeCritText"+ce:be="activeText"+ce),te.done?te.crit?be=be+" doneCritText"+ce:be=be+" doneText"+ce:te.crit&&(be=be+" critText"+ce),te.milestone&&(be+=" milestoneText"),ie>se-ne?se+ie+1.5*s.leftPadding>Y?ge+" taskTextOutsideLeft taskTextOutside"+ce+" "+be:ge+" taskTextOutsideRight taskTextOutside"+ce+" "+be+" width-"+ie:ge+" taskText taskText"+ce+" "+be+" width-"+ie}),Qt().securityLevel==="sandbox"){let te;te=gn("#i"+t);const ne=te.nodes()[0].contentDocument;V.filter(function(se){return j[se.id]!==void 0}).each(function(se){var ie=ne.querySelector("#"+se.id),ge=ne.querySelector("#"+se.id+"-text");const ce=ie.parentNode;var be=ne.createElement("a");be.setAttribute("xlink:href",j[se.id]),be.setAttribute("target","_top"),ce.appendChild(be),be.appendChild(ie),be.appendChild(ge)})}}function N(U,$,G,B,Z,z,Y,W){if(Y.length===0&&W.length===0)return;let Q,V;for(const{startTime:ie,endTime:ge}of z)(Q===void 0||ie<Q)&&(Q=ie),(V===void 0||ge>V)&&(V=ge);if(!Q||!V)return;if(Fc(V).diff(Fc(Q),"year")>5){ut.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const j=a.db.getDateFormat(),ee=[];let te=null,ne=Fc(Q);for(;ne.valueOf()<=V;)a.db.isInvalidDate(ne,j,Y,W)?te?te.end=ne:te={start:ne,end:ne}:te&&(ee.push(te),te=null),ne=ne.add(1,"d");S.append("g").selectAll("rect").data(ee).enter().append("rect").attr("id",function(ie){return"exclude-"+ie.start.format("YYYY-MM-DD")}).attr("x",function(ie){return C(ie.start)+G}).attr("y",s.gridLineStartPadding).attr("width",function(ie){const ge=ie.end.add(1,"day");return C(ge)-C(ie.start)}).attr("height",Z-$-s.gridLineStartPadding).attr("transform-origin",function(ie,ge){return(C(ie.start)+G+.5*(C(ie.end)-C(ie.start))).toString()+"px "+(ge*U+.5*Z).toString()+"px"}).attr("class","exclude-range")}function L(U,$,G,B){let Z=ILn(C).tickSize(-B+$+s.gridLineStartPadding).tickFormat(Nj(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));const Y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||s.tickInterval);if(Y!==null){const W=Y[1],Q=Y[2],V=a.db.getWeekday()||s.weekday;switch(Q){case"millisecond":Z.ticks(VO.every(W));break;case"second":Z.ticks(WC.every(W));break;case"minute":Z.ticks(DF.every(W));break;case"hour":Z.ticks(MF.every(W));break;case"day":Z.ticks(tR.every(W));break;case"week":Z.ticks(RCn[V].every(W));break;case"month":Z.ticks(PF.every(W));break}}if(S.append("g").attr("class","grid").attr("transform","translate("+U+", "+(B-50)+")").call(Z).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||s.topAxis){let W=RLn(C).tickSize(-B+$+s.gridLineStartPadding).tickFormat(Nj(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));if(Y!==null){const Q=Y[1],V=Y[2],j=a.db.getWeekday()||s.weekday;switch(V){case"millisecond":W.ticks(VO.every(Q));break;case"second":W.ticks(WC.every(Q));break;case"minute":W.ticks(DF.every(Q));break;case"hour":W.ticks(MF.every(Q));break;case"day":W.ticks(tR.every(Q));break;case"week":W.ticks(RCn[j].every(Q));break;case"month":W.ticks(PF.every(Q));break}}S.append("g").attr("class","grid").attr("transform","translate("+U+", "+$+")").call(W).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function P(U,$){let G=0;const B=Object.keys(_).map(Z=>[Z,_[Z]]);S.append("g").selectAll("text").data(B).enter().append(function(Z){const z=Z[0].split(mi.lineBreakRegex),Y=-(z.length-1)/2,W=f.createElementNS("http://www.w3.org/2000/svg","text");W.setAttribute("dy",Y+"em");for(const[Q,V]of z.entries()){const j=f.createElementNS("http://www.w3.org/2000/svg","tspan");j.setAttribute("alignment-baseline","central"),j.setAttribute("x","10"),Q>0&&j.setAttribute("dy","1em"),j.textContent=V,W.appendChild(j)}return W}).attr("x",10).attr("y",function(Z,z){if(z>0)for(let Y=0;Y<z;Y++)return G+=B[z-1][1],Z[1]*U/2+G*U+$;else return Z[1]*U/2+$}).attr("font-size",s.sectionFontSize).attr("class",function(Z){for(const[z,Y]of b.entries())if(Z[0]===Y)return"sectionTitle sectionTitle"+z%s.numberSectionStyles;return"sectionTitle"})}function M(U,$,G,B){const Z=a.db.getTodayMarker();if(Z==="off")return;const z=S.append("g").attr("class","today"),Y=new Date,W=z.append("line");W.attr("x1",C(Y)+U).attr("x2",C(Y)+U).attr("y1",s.titleTopMargin).attr("y2",B-s.titleTopMargin).attr("class","today"),Z!==""&&W.attr("style",Z.replace(/,/g,";"))}function F(U){const $={},G=[];for(let B=0,Z=U.length;B<Z;++B)Object.prototype.hasOwnProperty.call($,U[B])||($[U[B]]=!0,G.push(U[B]));return G}},Bma={setConf:Dma,draw:Pma},Fma=e=>`
  .mermaid-main-font {
    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
  }

  .exclude-range {
    fill: ${e.excludeBkgColor};
  }

  .section {
    stroke: none;
    opacity: 0.2;
  }

  .section0 {
    fill: ${e.sectionBkgColor};
  }

  .section2 {
    fill: ${e.sectionBkgColor2};
  }

  .section1,
  .section3 {
    fill: ${e.altSectionBkgColor};
    opacity: 0.2;
  }

  .sectionTitle0 {
    fill: ${e.titleColor};
  }

  .sectionTitle1 {
    fill: ${e.titleColor};
  }

  .sectionTitle2 {
    fill: ${e.titleColor};
  }

  .sectionTitle3 {
    fill: ${e.titleColor};
  }

  .sectionTitle {
    text-anchor: start;
    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
  }


  /* Grid and axis */

  .grid .tick {
    stroke: ${e.gridColor};
    opacity: 0.8;
    shape-rendering: crispEdges;
  }

  .grid .tick text {
    font-family: ${e.fontFamily};
    fill: ${e.textColor};
  }

  .grid path {
    stroke-width: 0;
  }


  /* Today line */

  .today {
    fill: none;
    stroke: ${e.todayLineColor};
    stroke-width: 2px;
  }


  /* Task styling */

  /* Default task */

  .task {
    stroke-width: 2;
  }

  .taskText {
    text-anchor: middle;
    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
  }

  .taskTextOutsideRight {
    fill: ${e.taskTextDarkColor};
    text-anchor: start;
    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
  }

  .taskTextOutsideLeft {
    fill: ${e.taskTextDarkColor};
    text-anchor: end;
  }


  /* Special case clickable */

  .task.clickable {
    cursor: pointer;
  }

  .taskText.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideLeft.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }

  .taskTextOutsideRight.clickable {
    cursor: pointer;
    fill: ${e.taskTextClickableColor} !important;
    font-weight: bold;
  }


  /* Specific task settings for the sections*/

  .taskText0,
  .taskText1,
  .taskText2,
  .taskText3 {
    fill: ${e.taskTextColor};
  }

  .task0,
  .task1,
  .task2,
  .task3 {
    fill: ${e.taskBkgColor};
    stroke: ${e.taskBorderColor};
  }

  .taskTextOutside0,
  .taskTextOutside2
  {
    fill: ${e.taskTextOutsideColor};
  }

  .taskTextOutside1,
  .taskTextOutside3 {
    fill: ${e.taskTextOutsideColor};
  }


  /* Active task */

  .active0,
  .active1,
  .active2,
  .active3 {
    fill: ${e.activeTaskBkgColor};
    stroke: ${e.activeTaskBorderColor};
  }

  .activeText0,
  .activeText1,
  .activeText2,
  .activeText3 {
    fill: ${e.taskTextDarkColor} !important;
  }


  /* Completed task */

  .done0,
  .done1,
  .done2,
  .done3 {
    stroke: ${e.doneTaskBorderColor};
    fill: ${e.doneTaskBkgColor};
    stroke-width: 2;
  }

  .doneText0,
  .doneText1,
  .doneText2,
  .doneText3 {
    fill: ${e.taskTextDarkColor} !important;
  }


  /* Tasks on the critical line */

  .crit0,
  .crit1,
  .crit2,
  .crit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.critBkgColor};
    stroke-width: 2;
  }

  .activeCrit0,
  .activeCrit1,
  .activeCrit2,
  .activeCrit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.activeTaskBkgColor};
    stroke-width: 2;
  }

  .doneCrit0,
  .doneCrit1,
  .doneCrit2,
  .doneCrit3 {
    stroke: ${e.critBorderColor};
    fill: ${e.doneTaskBkgColor};
    stroke-width: 2;
    cursor: pointer;
    shape-rendering: crispEdges;
  }

  .milestone {
    transform: rotate(45deg) scale(0.8,0.8);
  }

  .milestoneText {
    font-style: italic;
  }
  .doneCritText0,
  .doneCritText1,
  .doneCritText2,
  .doneCritText3 {
    fill: ${e.taskTextDarkColor} !important;
  }

  .activeCritText0,
  .activeCritText1,
  .activeCritText2,
  .activeCritText3 {
    fill: ${e.taskTextDarkColor} !important;
  }

  .titleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.titleColor||e.textColor};
    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
  }
`,$ma=Fma,Uma={parser:Zga,db:Lma,renderer:Bma,styles:$ma},zma=Object.freeze(Object.defineProperty({__proto__:null,diagram:Uma},Symbol.toStringTag,{value:"Module"}));var Mht=function(){var e=function(o,u,h,f){for(h=h||{},f=o.length;f--;h[o[f]]=u);return h},t=[6,9,10],r={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(u,h,f,p,m,b,_){switch(b.length-1,m){case 1:return p;case 4:break;case 6:p.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},parse:function(u){var h=this,f=[0],p=[],m=[null],b=[],_=this.table,w="",S=0,C=0,A=2,k=1,I=b.slice.call(arguments,1),N=Object.create(this.lexer),L={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(L.yy[P]=this.yy[P]);N.setInput(u,L.yy),L.yy.lexer=N,L.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var M=N.yylloc;b.push(M);var F=N.options&&N.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var ee;return ee=p.pop()||N.lex()||k,typeof ee!="number"&&(ee instanceof Array&&(p=ee,ee=p.pop()),ee=h.symbols_[ee]||ee),ee}for(var $,G,B,Z,z={},Y,W,Q,V;;){if(G=f[f.length-1],this.defaultActions[G]?B=this.defaultActions[G]:(($===null||typeof $>"u")&&($=U()),B=_[G]&&_[G][$]),typeof B>"u"||!B.length||!B[0]){var j="";V=[];for(Y in _[G])this.terminals_[Y]&&Y>A&&V.push("'"+this.terminals_[Y]+"'");N.showPosition?j="Parse error on line "+(S+1)+`:
`+N.showPosition()+`
Expecting `+V.join(", ")+", got '"+(this.terminals_[$]||$)+"'":j="Parse error on line "+(S+1)+": Unexpected "+($==k?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(j,{text:N.match,token:this.terminals_[$]||$,line:N.yylineno,loc:M,expected:V})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+$);switch(B[0]){case 1:f.push($),m.push(N.yytext),b.push(N.yylloc),f.push(B[1]),$=null,C=N.yyleng,w=N.yytext,S=N.yylineno,M=N.yylloc;break;case 2:if(W=this.productions_[B[1]][1],z.$=m[m.length-W],z._$={first_line:b[b.length-(W||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(W||1)].first_column,last_column:b[b.length-1].last_column},F&&(z._$.range=[b[b.length-(W||1)].range[0],b[b.length-1].range[1]]),Z=this.performAction.apply(z,[w,C,S,L.yy,B[1],m,b].concat(I)),typeof Z<"u")return Z;W&&(f=f.slice(0,-1*W*2),m=m.slice(0,-1*W),b=b.slice(0,-1*W)),f.push(this.productions_[B[1]][0]),m.push(z.$),b.push(z._$),Q=_[f[f.length-2]][f[f.length-1]],f.push(Q);break;case 3:return!0}}return!0}},a=function(){var o={EOF:1,parseError:function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},setInput:function(u,h){return this.yy=h||this.yy||{},this._input=u,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 u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var h=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=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),f.length-1&&(this.yylineno-=f.length-1);var m=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:f?(f.length===p.length?this.yylloc.first_column:0)+p[p.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
`+h+"^"},test_match:function(u,h){var f,p,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),p=u[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var b in m)this[b]=m[b];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,p;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),b=0;b<m.length;b++)if(f=this._input.match(this.rules[m[b]]),f&&(!h||f[0].length>h[0].length)){if(h=f,p=b,this.options.backtrack_lexer){if(u=this.test_match(f,m[b]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,m[p]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var h=this.next();return h||this.lex()},begin:function(h){this.conditionStack.push(h)},popState:function(){var h=this.conditionStack.length-1;return h>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(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},pushState:function(h){this.begin(h)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(h,f,p,m){switch(p){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}}};return o}();r.lexer=a;function s(){this.yy={}}return s.prototype=r,r.Parser=s,new s}();Mht.parser=Mht;const Gma=Mht,Itr={info:!1};let lyt=Itr.info;const qma=e=>{lyt=e},Hma=()=>lyt,Vma=()=>{lyt=Itr.info},Yma={clear:Vma,setInfo:qma,getInfo:Hma},jma=(e,t,r)=>{ut.debug(`rendering info diagram
`+e);const a=Zce(t);Db(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},Wma={draw:jma},Kma={parser:Gma,db:Yma,renderer:Wma},Xma=Object.freeze(Object.defineProperty({__proto__:null,diagram:Kma},Symbol.toStringTag,{value:"Module"}));var Pht=function(){var e=function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,10,12,14,16,18,19,20,21,22],u=[2,4],h=[1,5,10,12,14,16,18,19,20,21,22],f=[20,21,22],p=[2,7],m=[1,12],b=[1,13],_=[1,14],w=[1,15],S=[1,16],C=[1,17],A={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",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:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 3:F.setShowData(!0);break;case 6:this.$=$[B-1];break;case 8:F.addSection($[B-1],F.cleanupValue($[B]));break;case 9:this.$=$[B].trim(),F.setDiagramTitle(this.$);break;case 10:this.$=$[B].trim(),F.setAccTitle(this.$);break;case 11:case 12:this.$=$[B].trim(),F.setAccDescription(this.$);break;case 13:F.addSection($[B].substr(8)),this.$=$[B].substr(8);break}},table:[{3:1,4:2,5:t,20:r,21:a,22:s},{1:[3]},{3:7,4:2,5:t,20:r,21:a,22:s},e(o,u,{6:8,7:[1,9]}),e(h,[2,14]),e(h,[2,15]),e(h,[2,16]),{1:[2,1]},e(f,p,{8:10,9:11,1:[2,2],10:m,12:b,14:_,16:w,18:S,19:C}),e(o,u,{6:18}),e(o,[2,5]),{4:19,20:r,21:a,22:s},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(f,[2,12]),e(f,[2,13]),e(f,p,{8:10,9:11,1:[2,3],10:m,12:b,14:_,16:w,18:S,19:C}),e(o,[2,6]),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(f,[2,11])],defaultActions:{7:[2,1]},parseError:function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},parse:function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(){var Ce;return Ce=F.pop()||V.lex()||W,typeof Ce!="number"&&(Ce instanceof Array&&(F=Ce,Ce=F.pop()),Ce=P.symbols_[Ce]||Ce),Ce}for(var ie,ge,ce,be,ve={},De,ye,Ee,he;;){if(ge=M[M.length-1],this.defaultActions[ge]?ce=this.defaultActions[ge]:((ie===null||typeof ie>"u")&&(ie=se()),ce=G[ge]&&G[ge][ie]),typeof ce>"u"||!ce.length||!ce[0]){var we="";he=[];for(De in G[ge])this.terminals_[De]&&De>Y&&he.push("'"+this.terminals_[De]+"'");V.showPosition?we="Parse error on line "+(Z+1)+`:
`+V.showPosition()+`
Expecting `+he.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":we="Parse error on line "+(Z+1)+": Unexpected "+(ie==W?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(we,{text:V.match,token:this.terminals_[ie]||ie,line:V.yylineno,loc:te,expected:he})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ie);switch(ce[0]){case 1:M.push(ie),U.push(V.yytext),$.push(V.yylloc),M.push(ce[1]),ie=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(ye=this.productions_[ce[1]][1],ve.$=U[U.length-ye],ve._$={first_line:$[$.length-(ye||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ye||1)].first_column,last_column:$[$.length-1].last_column},ne&&(ve._$.range=[$[$.length-(ye||1)].range[0],$[$.length-1].range[1]]),be=this.performAction.apply(ve,[B,z,Z,j.yy,ce[1],U,$].concat(Q)),typeof be<"u")return be;ye&&(M=M.slice(0,-1*ye*2),U=U.slice(0,-1*ye),$=$.slice(0,-1*ye)),M.push(this.productions_[ce[1]][0]),U.push(ve.$),$.push(ve._$),Ee=G[M[M.length-2]][M[M.length-1]],M.push(Ee);break;case 3:return!0}}return!0}},k=function(){var N={EOF:1,parseError:function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},setInput:function(L,P){return this.yy=P||this.yy||{},this._input=L,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 L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},unput:function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=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),M.length-1&&(this.yylineno-=M.length-1);var U=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:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(L){this.unput(this.match.slice(L))},pastInput:function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+`
`+P+"^"},test_match:function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,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(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$<U.length;$++)if(M=this._input.match(this.rules[U[$]]),M&&(!P||M[0].length>P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P||this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){var P=this.conditionStack.length-1;return P>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(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},pushState:function(P){this.begin(P)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(P,M,F,U){switch(F){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\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:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return I.prototype=A,A.Parser=I,new I}();Pht.parser=Pht;const Qma=Pht,Zma=fd.pie,d5e={sections:{},showData:!1};let f5e=d5e.sections,cyt=d5e.showData;const Jma=structuredClone(Zma),eba=()=>structuredClone(Jma),tba=()=>{f5e=structuredClone(d5e.sections),cyt=d5e.showData,Mb()},nba=(e,t)=>{e=J0(e,Qt()),f5e[e]===void 0&&(f5e[e]=t,ut.debug(`added new section: ${e}, with value: ${t}`))},rba=()=>f5e,iba=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),aba=e=>{cyt=e},sba=()=>cyt,oba={getConfig:eba,clear:tba,setDiagramTitle:Zw,getDiagramTitle:Tv,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addSection:nba,getSections:rba,cleanupValue:iba,setShowData:aba,getShowData:sba},lba=e=>`
  .pieCircle{
    stroke: ${e.pieStrokeColor};
    stroke-width : ${e.pieStrokeWidth};
    opacity : ${e.pieOpacity};
  }
  .pieOuterCircle{
    stroke: ${e.pieOuterStrokeColor};
    stroke-width: ${e.pieOuterStrokeWidth};
    fill: none;
  }
  .pieTitleText {
    text-anchor: middle;
    font-size: ${e.pieTitleTextSize};
    fill: ${e.pieTitleTextColor};
    font-family: ${e.fontFamily};
  }
  .slice {
    font-family: ${e.fontFamily};
    fill: ${e.pieSectionTextColor};
    font-size:${e.pieSectionTextSize};
    // fill: white;
  }
  .legend text {
    fill: ${e.pieLegendTextColor};
    font-family: ${e.fontFamily};
    font-size: ${e.pieLegendTextSize};
  }
`,cba=lba,uba=e=>{const t=Object.entries(e).map(a=>({label:a[0],value:a[1]})).sort((a,s)=>s.value-a.value);return ADn().value(a=>a.value)(t)},hba=(e,t,r,a)=>{ut.debug(`rendering pie chart
`+e);const s=a.db,o=Qt(),u=Qce(s.getConfig(),o.pie),h=40,f=18,p=4,m=450,b=m,_=Zce(t),w=_.append("g"),S=s.getSections();w.attr("transform","translate("+b/2+","+m/2+")");const{themeVariables:C}=o;let[A]=J$(C.pieOuterStrokeWidth);A??(A=2);const k=u.textPosition,I=Math.min(b,m)/2-h,N=_S().innerRadius(0).outerRadius(I),L=_S().innerRadius(I*k).outerRadius(I*k);w.append("circle").attr("cx",0).attr("cy",0).attr("r",I+A/2).attr("class","pieOuterCircle");const P=uba(S),M=[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=cA(M);w.selectAll("mySlices").data(P).enter().append("path").attr("d",N).attr("fill",Z=>F(Z.data.label)).attr("class","pieCircle");let U=0;Object.keys(S).forEach(Z=>{U+=S[Z]}),w.selectAll("mySlices").data(P).enter().append("text").text(Z=>(Z.data.value/U*100).toFixed(0)+"%").attr("transform",Z=>"translate("+L.centroid(Z)+")").style("text-anchor","middle").attr("class","slice"),w.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const $=w.selectAll(".legend").data(F.domain()).enter().append("g").attr("class","legend").attr("transform",(Z,z)=>{const Y=f+p,W=Y*F.domain().length/2,Q=12*f,V=z*Y-W;return"translate("+Q+","+V+")"});$.append("rect").attr("width",f).attr("height",f).style("fill",F).style("stroke",F),$.data(P).append("text").attr("x",f+p).attr("y",f-p).text(Z=>{const{label:z,value:Y}=Z.data;return s.getShowData()?`${z} [${Y}]`:z});const G=Math.max(...$.selectAll("text").nodes().map(Z=>(Z==null?void 0:Z.getBoundingClientRect().width)??0)),B=b+h+f+p+G;_.attr("viewBox",`0 0 ${B} ${m}`),Db(_,m,B,u.useMaxWidth)},dba={draw:hba},fba={parser:Qma,db:oba,renderer:dba,styles:cba},pba=Object.freeze(Object.defineProperty({__proto__:null,diagram:fba},Symbol.toStringTag,{value:"Module"}));var Bht=function(){var e=function(ce,be,ve,De){for(ve=ve||{},De=ce.length;De--;ve[ce[De]]=be);return ve},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,7],u=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],h=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],f=[32,33,34],p=[2,7],m=[1,13],b=[1,17],_=[1,18],w=[1,19],S=[1,20],C=[1,21],A=[1,22],k=[1,23],I=[1,24],N=[1,25],L=[1,26],P=[1,27],M=[1,30],F=[1,31],U=[1,32],$=[1,33],G=[1,34],B=[1,35],Z=[1,36],z=[1,37],Y=[1,38],W=[1,39],Q=[1,40],V=[1,41],j=[1,42],ee=[1,57],te=[1,58],ne=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],se={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points: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,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",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",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(be,ve,De,ye,Ee,he,we){var Ce=he.length-1;switch(Ee){case 12:this.$=he[Ce].trim(),ye.setDiagramTitle(this.$);break;case 13:this.$=he[Ce].trim(),ye.setAccTitle(this.$);break;case 14:case 15:this.$=he[Ce].trim(),ye.setAccDescription(this.$);break;case 16:ye.addSection(he[Ce].substr(8)),this.$=he[Ce].substr(8);break;case 17:ye.addPoint(he[Ce-3],he[Ce-1],he[Ce]);break;case 18:ye.setXAxisLeftText(he[Ce-2]),ye.setXAxisRightText(he[Ce]);break;case 19:he[Ce-1].text+=" ⟶ ",ye.setXAxisLeftText(he[Ce-1]);break;case 20:ye.setXAxisLeftText(he[Ce]);break;case 21:ye.setYAxisBottomText(he[Ce-2]),ye.setYAxisTopText(he[Ce]);break;case 22:he[Ce-1].text+=" ⟶ ",ye.setYAxisBottomText(he[Ce-1]);break;case 23:ye.setYAxisBottomText(he[Ce]);break;case 24:ye.setQuadrant1Text(he[Ce]);break;case 25:ye.setQuadrant2Text(he[Ce]);break;case 26:ye.setQuadrant3Text(he[Ce]);break;case 27:ye.setQuadrant4Text(he[Ce]);break;case 31:this.$={text:he[Ce],type:"text"};break;case 32:this.$={text:he[Ce-1].text+""+he[Ce],type:he[Ce-1].type};break;case 33:this.$={text:he[Ce],type:"text"};break;case 34:this.$={text:he[Ce],type:"markdown"};break;case 35:this.$=he[Ce];break;case 36:this.$=he[Ce-1]+""+he[Ce];break}},table:[{3:1,4:2,5:t,6:r,32:a,33:s,34:o},{1:[3]},{3:8,4:2,5:t,6:r,32:a,33:s,34:o},{3:9,4:2,5:t,6:r,32:a,33:s,34:o},e(u,[2,4],{7:10}),e(h,[2,28]),e(h,[2,29]),e(h,[2,30]),{1:[2,1]},{1:[2,2]},e(f,p,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:m,13:b,15:_,17:w,19:S,20:C,25:A,27:k,28:I,29:N,30:L,31:P,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(u,[2,5]),{4:43,32:a,33:s,34:o},e(f,p,{10:14,11:15,12:16,21:28,35:29,9:44,5:m,13:b,15:_,17:w,19:S,20:C,25:A,27:k,28:I,29:N,30:L,31:P,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(f,[2,9]),e(f,[2,10]),e(f,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(f,[2,15]),e(f,[2,16]),{21:48,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:49,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:50,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:51,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:52,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:53,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{5:ee,22:[1,54],35:56,36:55,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te},e(ne,[2,31]),e(ne,[2,33]),e(ne,[2,34]),e(ne,[2,37]),e(ne,[2,38]),e(ne,[2,39]),e(ne,[2,40]),e(ne,[2,41]),e(ne,[2,42]),e(ne,[2,43]),e(ne,[2,44]),e(ne,[2,45]),e(ne,[2,46]),e(ne,[2,47]),e(u,[2,6]),e(f,[2,8]),e(f,[2,12]),e(f,[2,13]),e(f,[2,14]),e(f,[2,20],{36:55,35:56,5:ee,26:[1,59],40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,23],{36:55,35:56,5:ee,26:[1,60],40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,24],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,25],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,26],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,27],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),{23:[1,61]},e(ne,[2,32]),e(ne,[2,48]),e(ne,[2,49]),e(ne,[2,50]),e(f,[2,19],{35:29,21:62,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(f,[2,22],{35:29,21:63,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),{24:[1,64]},e(f,[2,18],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,21],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(be,ve){if(ve.recoverable)this.trace(be);else{var De=new Error(be);throw De.hash=ve,De}},parse:function(be){var ve=this,De=[0],ye=[],Ee=[null],he=[],we=this.table,Ce="",Ie=0,Le=0,Fe=2,Ve=1,Oe=he.slice.call(arguments,1),Dt=Object.create(this.lexer),ot={yy:{}};for(var sn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,sn)&&(ot.yy[sn]=this.yy[sn]);Dt.setInput(be,ot.yy),ot.yy.lexer=Dt,ot.yy.parser=this,typeof Dt.yylloc>"u"&&(Dt.yylloc={});var Kt=Dt.yylloc;he.push(Kt);var Ft=Dt.options&&Dt.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Ke;return Ke=ye.pop()||Dt.lex()||Ve,typeof Ke!="number"&&(Ke instanceof Array&&(ye=Ke,Ke=ye.pop()),Ke=ve.symbols_[Ke]||Ke),Ke}for(var ht,et,qe,He,Ge={},Ye,Ae,Xe,fe;;){if(et=De[De.length-1],this.defaultActions[et]?qe=this.defaultActions[et]:((ht===null||typeof ht>"u")&&(ht=Je()),qe=we[et]&&we[et][ht]),typeof qe>"u"||!qe.length||!qe[0]){var Qe="";fe=[];for(Ye in we[et])this.terminals_[Ye]&&Ye>Fe&&fe.push("'"+this.terminals_[Ye]+"'");Dt.showPosition?Qe="Parse error on line "+(Ie+1)+`:
`+Dt.showPosition()+`
Expecting `+fe.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":Qe="Parse error on line "+(Ie+1)+": Unexpected "+(ht==Ve?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(Qe,{text:Dt.match,token:this.terminals_[ht]||ht,line:Dt.yylineno,loc:Kt,expected:fe})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+et+", token: "+ht);switch(qe[0]){case 1:De.push(ht),Ee.push(Dt.yytext),he.push(Dt.yylloc),De.push(qe[1]),ht=null,Le=Dt.yyleng,Ce=Dt.yytext,Ie=Dt.yylineno,Kt=Dt.yylloc;break;case 2:if(Ae=this.productions_[qe[1]][1],Ge.$=Ee[Ee.length-Ae],Ge._$={first_line:he[he.length-(Ae||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Ae||1)].first_column,last_column:he[he.length-1].last_column},Ft&&(Ge._$.range=[he[he.length-(Ae||1)].range[0],he[he.length-1].range[1]]),He=this.performAction.apply(Ge,[Ce,Le,Ie,ot.yy,qe[1],Ee,he].concat(Oe)),typeof He<"u")return He;Ae&&(De=De.slice(0,-1*Ae*2),Ee=Ee.slice(0,-1*Ae),he=he.slice(0,-1*Ae)),De.push(this.productions_[qe[1]][0]),Ee.push(Ge.$),he.push(Ge._$),Xe=we[De[De.length-2]][De[De.length-1]],De.push(Xe);break;case 3:return!0}}return!0}},ie=function(){var ce={EOF:1,parseError:function(ve,De){if(this.yy.parser)this.yy.parser.parseError(ve,De);else throw new Error(ve)},setInput:function(be,ve){return this.yy=ve||this.yy||{},this._input=be,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 be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var ve=be.match(/(?:\r\n?|\n).*/g);return ve?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},unput:function(be){var ve=be.length,De=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ve),this.offset-=ve;var ye=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),De.length-1&&(this.yylineno-=De.length-1);var Ee=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:De?(De.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-De.length].length-De[0].length:this.yylloc.first_column-ve},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ve]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(be){this.unput(this.match.slice(be))},pastInput:function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var be=this.pastInput(),ve=new Array(be.length+1).join("-");return be+this.upcomingInput()+`
`+ve+"^"},test_match:function(be,ve){var De,ye,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),ye=be[0].match(/(?:\r\n?|\n).*/g),ye&&(this.yylineno+=ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ye?ye[ye.length-1].length-ye[ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,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(be[0].length),this.matched+=be[0],De=this.performAction.call(this,this.yy,this,ve,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),De)return De;if(this._backtrack){for(var he in Ee)this[he]=Ee[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,ve,De,ye;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),he=0;he<Ee.length;he++)if(De=this._input.match(this.rules[Ee[he]]),De&&(!ve||De[0].length>ve[0].length)){if(ve=De,ye=he,this.options.backtrack_lexer){if(be=this.test_match(De,Ee[he]),be!==!1)return be;if(this._backtrack){ve=!1;continue}else return!1}else if(!this.options.flex)break}return ve?(be=this.test_match(ve,Ee[ye]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ve=this.next();return ve||this.lex()},begin:function(ve){this.conditionStack.push(ve)},popState:function(){var ve=this.conditionStack.length-1;return ve>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(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},pushState:function(ve){this.begin(ve)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ve,De,ye,Ee){switch(ye){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/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,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return ce}();se.lexer=ie;function ge(){this.yy={}}return ge.prototype=se,se.Parser=ge,new ge}();Bht.parser=Bht;const gba=Bht,Uy=mbt();class mba{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=fd.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((r=fd.quadrantChart)==null?void 0:r.chartHeight)||500,titlePadding:((a=fd.quadrantChart)==null?void 0:a.titlePadding)||10,titleFontSize:((s=fd.quadrantChart)==null?void 0:s.titleFontSize)||20,quadrantPadding:((o=fd.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((u=fd.quadrantChart)==null?void 0:u.xAxisLabelPadding)||5,yAxisLabelPadding:((h=fd.quadrantChart)==null?void 0:h.yAxisLabelPadding)||5,xAxisLabelFontSize:((f=fd.quadrantChart)==null?void 0:f.xAxisLabelFontSize)||16,yAxisLabelFontSize:((p=fd.quadrantChart)==null?void 0:p.yAxisLabelFontSize)||16,quadrantLabelFontSize:((m=fd.quadrantChart)==null?void 0:m.quadrantLabelFontSize)||16,quadrantTextTopPadding:((b=fd.quadrantChart)==null?void 0:b.quadrantTextTopPadding)||5,pointTextPadding:((_=fd.quadrantChart)==null?void 0:_.pointTextPadding)||5,pointLabelFontSize:((w=fd.quadrantChart)==null?void 0:w.pointLabelFontSize)||12,pointRadius:((S=fd.quadrantChart)==null?void 0:S.pointRadius)||5,xAxisPosition:((C=fd.quadrantChart)==null?void 0:C.xAxisPosition)||"top",yAxisPosition:((A=fd.quadrantChart)==null?void 0:A.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((k=fd.quadrantChart)==null?void 0:k.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((I=fd.quadrantChart)==null?void 0:I.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:Uy.quadrant1Fill,quadrant2Fill:Uy.quadrant2Fill,quadrant3Fill:Uy.quadrant3Fill,quadrant4Fill:Uy.quadrant4Fill,quadrant1TextFill:Uy.quadrant1TextFill,quadrant2TextFill:Uy.quadrant2TextFill,quadrant3TextFill:Uy.quadrant3TextFill,quadrant4TextFill:Uy.quadrant4TextFill,quadrantPointFill:Uy.quadrantPointFill,quadrantPointTextFill:Uy.quadrantPointTextFill,quadrantXAxisTextFill:Uy.quadrantXAxisTextFill,quadrantYAxisTextFill:Uy.quadrantYAxisTextFill,quadrantTitleFill:Uy.quadrantTitleFill,quadrantInternalBorderStrokeFill:Uy.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Uy.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ut.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}setConfig(t){ut.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){ut.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,a,s){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,u={top:t==="top"&&r?o:0,bottom:t==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,f={left:this.config.yAxisPosition==="left"&&a?h:0,right:this.config.yAxisPosition==="right"&&a?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:s?p:0},b=this.config.quadrantPadding+f.left,_=this.config.quadrantPadding+u.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-f.left-f.right,S=this.config.chartHeight-this.config.quadrantPadding*2-u.top-u.bottom-m.top,C=w/2,A=S/2;return{xAxisSpace:u,yAxisSpace:f,titleSpace:m,quadrantSpace:{quadrantLeft:b,quadrantTop:_,quadrantWidth:w,quadrantHalfWidth:C,quadrantHeight:S,quadrantHalfHeight:A}}}getAxisLabels(t,r,a,s){const{quadrantSpace:o,titleSpace:u}=s,{quadrantHalfHeight:h,quadrantHeight:f,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:b,quadrantWidth:_}=o,w=!!this.data.xAxisRightText,S=!!this.data.yAxisTopText,C=[];return this.data.xAxisLeftText&&r&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&a&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+f-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&a&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+h-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),C}getQuadrants(t){const{quadrantSpace:r}=t,{quadrantHalfHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:u}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u,width:o,height:a,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u,width:o,height:a,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant4Fill}];for(const f of h)f.text.x=f.x+f.width/2,this.data.points.length===0?(f.text.y=f.y+f.height/2,f.text.horizontalPos="middle"):(f.text.y=f.y+this.config.quadrantTextTopPadding,f.text.horizontalPos="top");return h}getQuadrantPoints(t){const{quadrantSpace:r}=t,{quadrantHeight:a,quadrantLeft:s,quadrantTop:o,quadrantWidth:u}=r,h=sT().domain([0,1]).range([s,u+s]),f=sT().domain([0,1]).range([a+o,o]);return this.data.points.map(m=>({x:h(m.x),y:f(m.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:f(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(t){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:a}=t,{quadrantHalfHeight:s,quadrantHeight:o,quadrantLeft:u,quadrantHalfWidth:h,quadrantTop:f,quadrantWidth:p}=a;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f,x2:u+p+r,y2:f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u+p,y1:f+r,x2:u+p,y2:f+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f+o,x2:u+p+r,y2:f+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u,y1:f+r,x2:u,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+h,y1:f+r,x2:u+h,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+r,y1:f+s,x2:u+p-r,y2:f+s}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),a=this.config.showTitle&&!!this.data.titleText,s=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(s,t,r,a);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(s,t,r,o),borderLines:this.getBorders(o),title:this.getTitle(a)}}}const bba=Qt();function NR(e){return J0(e.trim(),bba)}const xb=new mba;function yba(e){xb.setData({quadrant1Text:NR(e.text)})}function vba(e){xb.setData({quadrant2Text:NR(e.text)})}function _ba(e){xb.setData({quadrant3Text:NR(e.text)})}function wba(e){xb.setData({quadrant4Text:NR(e.text)})}function Eba(e){xb.setData({xAxisLeftText:NR(e.text)})}function xba(e){xb.setData({xAxisRightText:NR(e.text)})}function Sba(e){xb.setData({yAxisTopText:NR(e.text)})}function Tba(e){xb.setData({yAxisBottomText:NR(e.text)})}function Cba(e,t,r){xb.addPoints([{x:t,y:r,text:NR(e.text)}])}function Aba(e){xb.setConfig({chartWidth:e})}function kba(e){xb.setConfig({chartHeight:e})}function Rba(){const e=Qt(),{themeVariables:t,quadrantChart:r}=e;return r&&xb.setConfig(r),xb.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),xb.setData({titleText:Tv()}),xb.build()}const Iba=function(){xb.clear(),Mb()},Nba={setWidth:Aba,setHeight:kba,setQuadrant1Text:yba,setQuadrant2Text:vba,setQuadrant3Text:_ba,setQuadrant4Text:wba,setXAxisLeftText:Eba,setXAxisRightText:xba,setYAxisTopText:Sba,setYAxisBottomText:Tba,addPoint:Cba,getQuadrantData:Rba,clear:Iba,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,getAccDescription:Sv,setAccDescription:xv},Oba=(e,t,r,a)=>{var s,o,u;function h(B){return B==="top"?"hanging":"middle"}function f(B){return B==="left"?"start":"middle"}function p(B){return`translate(${B.x}, ${B.y}) rotate(${B.rotation||0})`}const m=Qt();ut.debug(`Rendering quadrant chart
`+e);const b=m.securityLevel;let _;b==="sandbox"&&(_=gn("#i"+t));const S=gn(b==="sandbox"?_.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),C=S.append("g").attr("class","main"),A=((s=m.quadrantChart)==null?void 0:s.chartWidth)||500,k=((o=m.quadrantChart)==null?void 0:o.chartHeight)||500;Db(S,k,A,((u=m.quadrantChart)==null?void 0:u.useMaxWidth)||!0),S.attr("viewBox","0 0 "+A+" "+k),a.db.setHeight(k),a.db.setWidth(A);const I=a.db.getQuadrantData(),N=C.append("g").attr("class","quadrants"),L=C.append("g").attr("class","border"),P=C.append("g").attr("class","data-points"),M=C.append("g").attr("class","labels"),F=C.append("g").attr("class","title");I.title&&F.append("text").attr("x",0).attr("y",0).attr("fill",I.title.fill).attr("font-size",I.title.fontSize).attr("dominant-baseline",h(I.title.horizontalPos)).attr("text-anchor",f(I.title.verticalPos)).attr("transform",p(I.title)).text(I.title.text),I.borderLines&&L.selectAll("line").data(I.borderLines).enter().append("line").attr("x1",B=>B.x1).attr("y1",B=>B.y1).attr("x2",B=>B.x2).attr("y2",B=>B.y2).style("stroke",B=>B.strokeFill).style("stroke-width",B=>B.strokeWidth);const U=N.selectAll("g.quadrant").data(I.quadrants).enter().append("g").attr("class","quadrant");U.append("rect").attr("x",B=>B.x).attr("y",B=>B.y).attr("width",B=>B.width).attr("height",B=>B.height).attr("fill",B=>B.fill),U.append("text").attr("x",0).attr("y",0).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>h(B.text.horizontalPos)).attr("text-anchor",B=>f(B.text.verticalPos)).attr("transform",B=>p(B.text)).text(B=>B.text.text),M.selectAll("g.label").data(I.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(B=>B.text).attr("fill",B=>B.fill).attr("font-size",B=>B.fontSize).attr("dominant-baseline",B=>h(B.horizontalPos)).attr("text-anchor",B=>f(B.verticalPos)).attr("transform",B=>p(B));const G=P.selectAll("g.data-point").data(I.points).enter().append("g").attr("class","data-point");G.append("circle").attr("cx",B=>B.x).attr("cy",B=>B.y).attr("r",B=>B.radius).attr("fill",B=>B.fill),G.append("text").attr("x",0).attr("y",0).text(B=>B.text.text).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>h(B.text.horizontalPos)).attr("text-anchor",B=>f(B.text.verticalPos)).attr("transform",B=>p(B.text))},Lba={draw:Oba},Dba={parser:gba,db:Nba,renderer:Lba,styles:()=>""},Mba=Object.freeze(Object.defineProperty({__proto__:null,diagram:Dba},Symbol.toStringTag,{value:"Module"}));var Fht=function(){var e=function(W,Q,V,j){for(V=V||{},j=W.length;j--;V[W[j]]=Q);return V},t=[1,10,12,14,16,18,19,21,23],r=[2,6],a=[1,3],s=[1,5],o=[1,6],u=[1,7],h=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],p=[1,26],m=[1,28],b=[1,29],_=[1,30],w=[1,31],S=[1,32],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[1,43],P=[1,42],M=[1,47],F=[1,50],U=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],G=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],B=[1,64],Z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(Q,V,j,ee,te,ne,se){var ie=ne.length-1;switch(te){case 5:ee.setOrientation(ne[ie]);break;case 9:ee.setDiagramTitle(ne[ie].text.trim());break;case 12:ee.setLineData({text:"",type:"text"},ne[ie]);break;case 13:ee.setLineData(ne[ie-1],ne[ie]);break;case 14:ee.setBarData({text:"",type:"text"},ne[ie]);break;case 15:ee.setBarData(ne[ie-1],ne[ie]);break;case 16:this.$=ne[ie].trim(),ee.setAccTitle(this.$);break;case 17:case 18:this.$=ne[ie].trim(),ee.setAccDescription(this.$);break;case 19:this.$=ne[ie-1];break;case 20:this.$=[Number(ne[ie-2]),...ne[ie]];break;case 21:this.$=[Number(ne[ie])];break;case 22:ee.setXAxisTitle(ne[ie]);break;case 23:ee.setXAxisTitle(ne[ie-1]);break;case 24:ee.setXAxisTitle({type:"text",text:""});break;case 25:ee.setXAxisBand(ne[ie]);break;case 26:ee.setXAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 27:this.$=ne[ie-1];break;case 28:this.$=[ne[ie-2],...ne[ie]];break;case 29:this.$=[ne[ie]];break;case 30:ee.setYAxisTitle(ne[ie]);break;case 31:ee.setYAxisTitle(ne[ie-1]);break;case 32:ee.setYAxisTitle({type:"text",text:""});break;case 33:ee.setYAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 37:this.$={text:ne[ie],type:"text"};break;case 38:this.$={text:ne[ie],type:"text"};break;case 39:this.$={text:ne[ie],type:"markdown"};break;case 40:this.$=ne[ie];break;case 41:this.$=ne[ie-1]+""+ne[ie];break}},table:[e(t,r,{3:1,4:2,7:4,5:a,34:s,35:o,36:u}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:a,34:s,35:o,36:u}),e(t,r,{4:2,7:4,6:9,3:10,5:a,8:[1,11],34:s,35:o,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(h,[2,34]),e(h,[2,35]),e(h,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:a,34:s,35:o,36:u}),{1:[2,3]},e(h,[2,5]),e(t,[2,7],{4:22,34:s,35:o,36:u}),{11:23,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:39,13:38,24:L,27:P,29:40,30:41,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:45,15:44,27:M,33:46,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:49,17:48,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:52,17:51,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{20:[1,53]},{22:[1,54]},e(U,[2,18]),{1:[2,2]},e(U,[2,8]),e(U,[2,9]),e($,[2,37],{40:55,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N}),e($,[2,38]),e($,[2,39]),e(G,[2,40]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),e(G,[2,47]),e(G,[2,48]),e(G,[2,49]),e(G,[2,50]),e(G,[2,51]),e(U,[2,10]),e(U,[2,22],{30:41,29:56,24:L,27:P}),e(U,[2,24]),e(U,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,11]),e(U,[2,30],{33:60,27:M}),e(U,[2,32]),{31:[1,61]},e(U,[2,12]),{17:62,24:F},{25:63,27:B},e(U,[2,14]),{17:65,24:F},e(U,[2,16]),e(U,[2,17]),e(G,[2,41]),e(U,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(U,[2,31]),{27:[1,69]},e(U,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(U,[2,15]),e(U,[2,26]),e(U,[2,27]),{11:59,32:72,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,33]),e(U,[2,19]),{25:73,27:B},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(Q,V){if(V.recoverable)this.trace(Q);else{var j=new Error(Q);throw j.hash=V,j}},parse:function(Q){var V=this,j=[0],ee=[],te=[null],ne=[],se=this.table,ie="",ge=0,ce=0,be=2,ve=1,De=ne.slice.call(arguments,1),ye=Object.create(this.lexer),Ee={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(Ee.yy[he]=this.yy[he]);ye.setInput(Q,Ee.yy),Ee.yy.lexer=ye,Ee.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var we=ye.yylloc;ne.push(we);var Ce=ye.options&&ye.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var ht;return ht=ee.pop()||ye.lex()||ve,typeof ht!="number"&&(ht instanceof Array&&(ee=ht,ht=ee.pop()),ht=V.symbols_[ht]||ht),ht}for(var Le,Fe,Ve,Oe,Dt={},ot,sn,Kt,Ft;;){if(Fe=j[j.length-1],this.defaultActions[Fe]?Ve=this.defaultActions[Fe]:((Le===null||typeof Le>"u")&&(Le=Ie()),Ve=se[Fe]&&se[Fe][Le]),typeof Ve>"u"||!Ve.length||!Ve[0]){var Je="";Ft=[];for(ot in se[Fe])this.terminals_[ot]&&ot>be&&Ft.push("'"+this.terminals_[ot]+"'");ye.showPosition?Je="Parse error on line "+(ge+1)+`:
`+ye.showPosition()+`
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":Je="Parse error on line "+(ge+1)+": Unexpected "+(Le==ve?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(Je,{text:ye.match,token:this.terminals_[Le]||Le,line:ye.yylineno,loc:we,expected:Ft})}if(Ve[0]instanceof Array&&Ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fe+", token: "+Le);switch(Ve[0]){case 1:j.push(Le),te.push(ye.yytext),ne.push(ye.yylloc),j.push(Ve[1]),Le=null,ce=ye.yyleng,ie=ye.yytext,ge=ye.yylineno,we=ye.yylloc;break;case 2:if(sn=this.productions_[Ve[1]][1],Dt.$=te[te.length-sn],Dt._$={first_line:ne[ne.length-(sn||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(sn||1)].first_column,last_column:ne[ne.length-1].last_column},Ce&&(Dt._$.range=[ne[ne.length-(sn||1)].range[0],ne[ne.length-1].range[1]]),Oe=this.performAction.apply(Dt,[ie,ce,ge,Ee.yy,Ve[1],te,ne].concat(De)),typeof Oe<"u")return Oe;sn&&(j=j.slice(0,-1*sn*2),te=te.slice(0,-1*sn),ne=ne.slice(0,-1*sn)),j.push(this.productions_[Ve[1]][0]),te.push(Dt.$),ne.push(Dt._$),Kt=se[j[j.length-2]][j[j.length-1]],j.push(Kt);break;case 3:return!0}}return!0}},z=function(){var W={EOF:1,parseError:function(V,j){if(this.yy.parser)this.yy.parser.parseError(V,j);else throw new Error(V)},setInput:function(Q,V){return this.yy=V||this.yy||{},this._input=Q,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 Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var V=Q.match(/(?:\r\n?|\n).*/g);return V?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var V=Q.length,j=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var ee=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),j.length-1&&(this.yylineno-=j.length-1);var te=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:j?(j.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-j.length].length-j[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),V=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
`+V+"^"},test_match:function(Q,V){var j,ee,te;if(this.options.backtrack_lexer&&(te={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&&(te.yylloc.range=this.yylloc.range.slice(0))),ee=Q[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],j=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ne in te)this[ne]=te[ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,V,j,ee;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ne=0;ne<te.length;ne++)if(j=this._input.match(this.rules[te[ne]]),j&&(!V||j[0].length>V[0].length)){if(V=j,ee=ne,this.options.backtrack_lexer){if(Q=this.test_match(j,te[ne]),Q!==!1)return Q;if(this._backtrack){V=!1;continue}else return!1}else if(!this.options.flex)break}return V?(Q=this.test_match(V,te[ee]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var V=this.next();return V||this.lex()},begin:function(V){this.conditionStack.push(V)},popState:function(){var V=this.conditionStack.length-1;return V>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(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,j,ee,te){switch(ee){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\)                                    \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+                  \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return W}();Z.lexer=z;function Y(){this.yy={}}return Y.prototype=Z,Z.Parser=Y,new Y}();Fht.parser=Fht;const Pba=Fht;function ICn(e){return e.type==="bar"}function Ntr(e){return e.type==="band"}function Mse(e){return e.type==="linear"}class Otr{constructor(t){this.parentGroup=t}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((o,u)=>Math.max(u.length,o),0)*r,height:r};const a={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const o of t){const u=p1a(s,1,o),h=u?u.width:o.length*r,f=u?u.height:r;a.width=Math.max(a.width,h),a.height=Math.max(a.height,f)}return s.remove(),a}}const NCn=.7,OCn=.2;class Ltr{constructor(t,r,a,s){this.axisConfig=t,this.title=r,this.textDimensionCalculator=a,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){NCn*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(NCn*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=OCn*t.width;this.outerPadding=Math.min(a.width/2,s);const o=a.height+this.axisConfig.labelPadding*2;this.labelTextHeight=a.height,o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=OCn*t.height;this.outerPadding=Math.min(a.height/2,s);const o=a.width+this.axisConfig.labelPadding*2;o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${r},${this.getScaleValue(a)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(a)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r} L ${this.getScaleValue(a)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(a)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class Bba extends Ltr{constructor(t,r,a,s,o){super(t,s,o,r),this.categories=a,this.scale=goe().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=goe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ut.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class Fba extends Ltr{constructor(t,r,a,s,o){super(t,s,o,r),this.domain=a,this.scale=sT().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=sT().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function LCn(e,t,r,a){const s=new Otr(a);return Ntr(e)?new Bba(t,r,e.categories,e.title,s):new Fba(t,r,[e.min,e.max],e.title,s)}class $ba{constructor(t,r,a,s){this.textDimensionCalculator=t,this.chartConfig=r,this.chartData=a,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),a=Math.max(r.width,t.width),s=r.height+2*this.chartConfig.titlePadding;return r.width<=a&&r.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=a,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function Uba(e,t,r,a){const s=new Otr(a);return new $ba(s,e,t,r)}class zba{constructor(t,r,a,s,o){this.plotData=t,this.xAxis=r,this.yAxis=a,this.orientation=s,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let r;return this.orientation==="horizontal"?r=r_().y(a=>a[0]).x(a=>a[1])(t):r=r_().x(a=>a[0]).y(a=>a[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class Gba{constructor(t,r,a,s,o,u){this.barData=t,this.boundingRect=r,this.xAxis=a,this.yAxis=s,this.orientation=o,this.plotIndex=u}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),a=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=a/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-s,height:a,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-s,y:o[1],width:a,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class qba{constructor(t,r,a){this.chartConfig=t,this.chartData=r,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[r,a]of this.chartData.plots.entries())switch(a.type){case"line":{const s=new zba(a,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break;case"bar":{const s=new Gba(a,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break}return t}}function Hba(e,t,r){return new qba(e,t,r)}class Vba{constructor(t,r,a,s){this.chartConfig=t,this.chartData=r,this.componentStore={title:Uba(t,r,a,s),plot:Hba(t,r,a),xAxis:LCn(r.xAxis,t.xAxis,{titleColor:a.xAxisTitleColor,labelColor:a.xAxisLabelColor,tickColor:a.xAxisTickColor,axisLineColor:a.xAxisLineColor},s),yAxis:LCn(r.yAxis,t.yAxis,{titleColor:a.yAxisTitleColor,labelColor:a.yAxisLabelColor,tickColor:a.yAxisTickColor,axisLineColor:a.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:o,height:u});t-=h.width,r-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),s=h.height,r-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:r}),a=h.width,t-=h.width,t>0&&(o+=t,t=0),r>0&&(u+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:u}),this.componentStore.plot.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:a,y:s+u}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(f=>ICn(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=0,u=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:u,height:h});t-=f.width,r-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=f.height,r-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=f.width,s=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=f.height,o=a+f.height,t>0&&(u+=t,t=0),r>0&&(h+=r,r=0),this.componentStore.plot.calculateSpace({width:u,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:o}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([o,o+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(p=>ICn(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}}class Yba{static build(t,r,a,s){return new Vba(t,r,a,s).getDrawableElement()}}let xle=0,Dtr,Sle=Ptr(),Tle=Mtr(),eh=Btr(),$ht=Tle.plotColorPalette.split(",").map(e=>e.trim()),E6e=!1,uyt=!1;function Mtr(){const e=mbt(),t=Lf();return Qce(e.xyChart,t.themeVariables.xyChart)}function Ptr(){const e=Lf();return Qce(fd.xyChart,e.xyChart)}function Btr(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function hyt(e){const t=Lf();return J0(e.trim(),t)}function jba(e){Dtr=e}function Wba(e){e==="horizontal"?Sle.chartOrientation="horizontal":Sle.chartOrientation="vertical"}function Kba(e){eh.xAxis.title=hyt(e.text)}function Ftr(e,t){eh.xAxis={type:"linear",title:eh.xAxis.title,min:e,max:t},E6e=!0}function Xba(e){eh.xAxis={type:"band",title:eh.xAxis.title,categories:e.map(t=>hyt(t.text))},E6e=!0}function Qba(e){eh.yAxis.title=hyt(e.text)}function Zba(e,t){eh.yAxis={type:"linear",title:eh.yAxis.title,min:e,max:t},uyt=!0}function Jba(e){const t=Math.min(...e),r=Math.max(...e),a=Mse(eh.yAxis)?eh.yAxis.min:1/0,s=Mse(eh.yAxis)?eh.yAxis.max:-1/0;eh.yAxis={type:"linear",title:eh.yAxis.title,min:Math.min(a,t),max:Math.max(s,r)}}function $tr(e){let t=[];if(e.length===0)return t;if(!E6e){const r=Mse(eh.xAxis)?eh.xAxis.min:1/0,a=Mse(eh.xAxis)?eh.xAxis.max:-1/0;Ftr(Math.min(r,1),Math.max(a,e.length))}if(uyt||Jba(e),Ntr(eh.xAxis)&&(t=eh.xAxis.categories.map((r,a)=>[r,e[a]])),Mse(eh.xAxis)){const r=eh.xAxis.min,a=eh.xAxis.max,s=(a-r+1)/e.length,o=[];for(let u=r;u<=a;u+=s)o.push(`${u}`);t=o.map((u,h)=>[u,e[h]])}return t}function Utr(e){return $ht[e===0?0:e%$ht.length]}function eya(e,t){const r=$tr(t);eh.plots.push({type:"line",strokeFill:Utr(xle),strokeWidth:2,data:r}),xle++}function tya(e,t){const r=$tr(t);eh.plots.push({type:"bar",fill:Utr(xle),data:r}),xle++}function nya(){if(eh.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return eh.title=Tv(),Yba.build(Sle,eh,Tle,Dtr)}function rya(){return Tle}function iya(){return Sle}const aya=function(){Mb(),xle=0,Sle=Ptr(),eh=Btr(),Tle=Mtr(),$ht=Tle.plotColorPalette.split(",").map(e=>e.trim()),E6e=!1,uyt=!1},sya={getDrawableElem:nya,clear:aya,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,getAccDescription:Sv,setAccDescription:xv,setOrientation:Wba,setXAxisTitle:Kba,setXAxisRangeData:Ftr,setXAxisBand:Xba,setYAxisTitle:Qba,setYAxisRangeData:Zba,setLineData:eya,setBarData:tya,setTmpSVGG:jba,getChartThemeConfig:rya,getChartConfig:iya},oya=(e,t,r,a)=>{const s=a.db,o=s.getChartThemeConfig(),u=s.getChartConfig();function h(A){return A==="top"?"text-before-edge":"middle"}function f(A){return A==="left"?"start":A==="right"?"end":"middle"}function p(A){return`translate(${A.x}, ${A.y}) rotate(${A.rotation||0})`}ut.debug(`Rendering xychart chart
`+e);const m=Zce(t),b=m.append("g").attr("class","main"),_=b.append("rect").attr("width",u.width).attr("height",u.height).attr("class","background");Db(m,u.height,u.width,!0),m.attr("viewBox",`0 0 ${u.width} ${u.height}`),_.attr("fill",o.backgroundColor),s.setTmpSVGG(m.append("g").attr("class","mermaid-tmp-group"));const w=s.getDrawableElem(),S={};function C(A){let k=b,I="";for(const[N]of A.entries()){let L=b;N>0&&S[I]&&(L=S[I]),I+=A[N],k=S[I],k||(k=S[I]=L.append("g").attr("class",A[N]))}return k}for(const A of w){if(A.data.length===0)continue;const k=C(A.groupTexts);switch(A.type){case"rect":k.selectAll("rect").data(A.data).enter().append("rect").attr("x",I=>I.x).attr("y",I=>I.y).attr("width",I=>I.width).attr("height",I=>I.height).attr("fill",I=>I.fill).attr("stroke",I=>I.strokeFill).attr("stroke-width",I=>I.strokeWidth);break;case"text":k.selectAll("text").data(A.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",I=>I.fill).attr("font-size",I=>I.fontSize).attr("dominant-baseline",I=>h(I.verticalPos)).attr("text-anchor",I=>f(I.horizontalPos)).attr("transform",I=>p(I)).text(I=>I.text);break;case"path":k.selectAll("path").data(A.data).enter().append("path").attr("d",I=>I.path).attr("fill",I=>I.fill?I.fill:"none").attr("stroke",I=>I.strokeFill).attr("stroke-width",I=>I.strokeWidth);break}}},lya={draw:oya},cya={parser:Pba,db:sya,renderer:lya},uya=Object.freeze(Object.defineProperty({__proto__:null,diagram:cya},Symbol.toStringTag,{value:"Module"}));var Uht=function(){var e=function(ce,be,ve,De){for(ve=ve||{},De=ce.length;De--;ve[ce[De]]=be);return ve},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],u=[1,18],h=[2,7],f=[1,22],p=[1,23],m=[1,24],b=[1,25],_=[1,26],w=[1,27],S=[1,20],C=[1,28],A=[1,29],k=[62,63],I=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],N=[1,47],L=[1,48],P=[1,49],M=[1,50],F=[1,51],U=[1,52],$=[1,53],G=[53,54],B=[1,64],Z=[1,60],z=[1,61],Y=[1,62],W=[1,63],Q=[1,65],V=[1,69],j=[1,70],ee=[1,67],te=[1,68],ne=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],se={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(be,ve,De,ye,Ee,he,we){var Ce=he.length-1;switch(Ee){case 4:this.$=he[Ce].trim(),ye.setAccTitle(this.$);break;case 5:case 6:this.$=he[Ce].trim(),ye.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:ye.addRequirement(he[Ce-3],he[Ce-4]);break;case 14:ye.setNewReqId(he[Ce-2]);break;case 15:ye.setNewReqText(he[Ce-2]);break;case 16:ye.setNewReqRisk(he[Ce-2]);break;case 17:ye.setNewReqVerifyMethod(he[Ce-2]);break;case 20:this.$=ye.RequirementType.REQUIREMENT;break;case 21:this.$=ye.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=ye.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=ye.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=ye.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=ye.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=ye.RiskLevel.LOW_RISK;break;case 27:this.$=ye.RiskLevel.MED_RISK;break;case 28:this.$=ye.RiskLevel.HIGH_RISK;break;case 29:this.$=ye.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=ye.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=ye.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=ye.VerifyType.VERIFY_TEST;break;case 33:ye.addElement(he[Ce-3]);break;case 34:ye.setNewElementType(he[Ce-2]);break;case 35:ye.setNewElementDocRef(he[Ce-2]);break;case 38:ye.addRelationship(he[Ce-2],he[Ce],he[Ce-4]);break;case 39:ye.addRelationship(he[Ce-2],he[Ce-4],he[Ce]);break;case 40:this.$=ye.Relationships.CONTAINS;break;case 41:this.$=ye.Relationships.COPIES;break;case 42:this.$=ye.Relationships.DERIVES;break;case 43:this.$=ye.Relationships.SATISFIES;break;case 44:this.$=ye.Relationships.VERIFIES;break;case 45:this.$=ye.Relationships.REFINES;break;case 46:this.$=ye.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:r,11:a,13:s},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:a,13:s},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:t,9:r,11:a,13:s},{1:[2,2]},{4:17,5:u,7:13,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:u,7:31,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:32,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:33,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:34,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:35,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(k,[2,20]),e(k,[2,21]),e(k,[2,22]),e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(I,[2,49]),e(I,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:N,56:L,57:P,58:M,59:F,60:U,61:$},{52:54,55:N,56:L,57:P,58:M,59:F,60:U,61:$},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(G,[2,40]),e(G,[2,41]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),{54:[1,58]},{5:B,20:59,21:Z,24:z,26:Y,28:W,30:Q},{5:V,30:j,46:66,47:ee,49:te},{23:71,62:C,63:A},{23:72,62:C,63:A},e(ne,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:B,20:77,21:Z,24:z,26:Y,28:W,30:Q},e(ne,[2,19]),e(ne,[2,33]),{22:[1,78]},{22:[1,79]},{5:V,30:j,46:80,47:ee,49:te},e(ne,[2,37]),e(ne,[2,38]),e(ne,[2,39]),{23:81,62:C,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(ne,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(ne,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:B,20:106,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:107,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:108,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:109,21:Z,24:z,26:Y,28:W,30:Q},{5:V,30:j,46:110,47:ee,49:te},{5:V,30:j,46:111,47:ee,49:te},e(ne,[2,14]),e(ne,[2,15]),e(ne,[2,16]),e(ne,[2,17]),e(ne,[2,34]),e(ne,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(be,ve){if(ve.recoverable)this.trace(be);else{var De=new Error(be);throw De.hash=ve,De}},parse:function(be){var ve=this,De=[0],ye=[],Ee=[null],he=[],we=this.table,Ce="",Ie=0,Le=0,Fe=2,Ve=1,Oe=he.slice.call(arguments,1),Dt=Object.create(this.lexer),ot={yy:{}};for(var sn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,sn)&&(ot.yy[sn]=this.yy[sn]);Dt.setInput(be,ot.yy),ot.yy.lexer=Dt,ot.yy.parser=this,typeof Dt.yylloc>"u"&&(Dt.yylloc={});var Kt=Dt.yylloc;he.push(Kt);var Ft=Dt.options&&Dt.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Ke;return Ke=ye.pop()||Dt.lex()||Ve,typeof Ke!="number"&&(Ke instanceof Array&&(ye=Ke,Ke=ye.pop()),Ke=ve.symbols_[Ke]||Ke),Ke}for(var ht,et,qe,He,Ge={},Ye,Ae,Xe,fe;;){if(et=De[De.length-1],this.defaultActions[et]?qe=this.defaultActions[et]:((ht===null||typeof ht>"u")&&(ht=Je()),qe=we[et]&&we[et][ht]),typeof qe>"u"||!qe.length||!qe[0]){var Qe="";fe=[];for(Ye in we[et])this.terminals_[Ye]&&Ye>Fe&&fe.push("'"+this.terminals_[Ye]+"'");Dt.showPosition?Qe="Parse error on line "+(Ie+1)+`:
`+Dt.showPosition()+`
Expecting `+fe.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":Qe="Parse error on line "+(Ie+1)+": Unexpected "+(ht==Ve?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(Qe,{text:Dt.match,token:this.terminals_[ht]||ht,line:Dt.yylineno,loc:Kt,expected:fe})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+et+", token: "+ht);switch(qe[0]){case 1:De.push(ht),Ee.push(Dt.yytext),he.push(Dt.yylloc),De.push(qe[1]),ht=null,Le=Dt.yyleng,Ce=Dt.yytext,Ie=Dt.yylineno,Kt=Dt.yylloc;break;case 2:if(Ae=this.productions_[qe[1]][1],Ge.$=Ee[Ee.length-Ae],Ge._$={first_line:he[he.length-(Ae||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Ae||1)].first_column,last_column:he[he.length-1].last_column},Ft&&(Ge._$.range=[he[he.length-(Ae||1)].range[0],he[he.length-1].range[1]]),He=this.performAction.apply(Ge,[Ce,Le,Ie,ot.yy,qe[1],Ee,he].concat(Oe)),typeof He<"u")return He;Ae&&(De=De.slice(0,-1*Ae*2),Ee=Ee.slice(0,-1*Ae),he=he.slice(0,-1*Ae)),De.push(this.productions_[qe[1]][0]),Ee.push(Ge.$),he.push(Ge._$),Xe=we[De[De.length-2]][De[De.length-1]],De.push(Xe);break;case 3:return!0}}return!0}},ie=function(){var ce={EOF:1,parseError:function(ve,De){if(this.yy.parser)this.yy.parser.parseError(ve,De);else throw new Error(ve)},setInput:function(be,ve){return this.yy=ve||this.yy||{},this._input=be,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 be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var ve=be.match(/(?:\r\n?|\n).*/g);return ve?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},unput:function(be){var ve=be.length,De=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ve),this.offset-=ve;var ye=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),De.length-1&&(this.yylineno-=De.length-1);var Ee=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:De?(De.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-De.length].length-De[0].length:this.yylloc.first_column-ve},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ve]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(be){this.unput(this.match.slice(be))},pastInput:function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var be=this.pastInput(),ve=new Array(be.length+1).join("-");return be+this.upcomingInput()+`
`+ve+"^"},test_match:function(be,ve){var De,ye,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),ye=be[0].match(/(?:\r\n?|\n).*/g),ye&&(this.yylineno+=ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ye?ye[ye.length-1].length-ye[ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,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(be[0].length),this.matched+=be[0],De=this.performAction.call(this,this.yy,this,ve,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),De)return De;if(this._backtrack){for(var he in Ee)this[he]=Ee[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,ve,De,ye;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),he=0;he<Ee.length;he++)if(De=this._input.match(this.rules[Ee[he]]),De&&(!ve||De[0].length>ve[0].length)){if(ve=De,ye=he,this.options.backtrack_lexer){if(be=this.test_match(De,Ee[he]),be!==!1)return be;if(this._backtrack){ve=!1;continue}else return!1}else if(!this.options.flex)break}return ve?(be=this.test_match(ve,Ee[ye]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ve=this.next();return ve||this.lex()},begin:function(ve){this.conditionStack.push(ve)},popState:function(){var ve=this.conditionStack.length-1;return ve>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(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},pushState:function(ve){this.begin(ve)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ve,De,ye,Ee){switch(ye){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return De.yytext=De.yytext.trim(),62}},rules:[/^(?: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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,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,50],inclusive:!0}}};return ce}();se.lexer=ie;function ge(){this.yy={}}return ge.prototype=se,se.Parser=ge,new ge}();Uht.parser=Uht;const hya=Uht;let dyt=[],H2={},Pse={},BO={},Bse={};const dya={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},fya={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},pya={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},gya={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},mya=(e,t)=>(Pse[e]===void 0&&(Pse[e]={name:e,type:t,id:H2.id,text:H2.text,risk:H2.risk,verifyMethod:H2.verifyMethod}),H2={},Pse[e]),bya=()=>Pse,yya=e=>{H2!==void 0&&(H2.id=e)},vya=e=>{H2!==void 0&&(H2.text=e)},_ya=e=>{H2!==void 0&&(H2.risk=e)},wya=e=>{H2!==void 0&&(H2.verifyMethod=e)},Eya=e=>(Bse[e]===void 0&&(Bse[e]={name:e,type:BO.type,docRef:BO.docRef},ut.info("Added new requirement: ",e)),BO={},Bse[e]),xya=()=>Bse,Sya=e=>{BO!==void 0&&(BO.type=e)},Tya=e=>{BO!==void 0&&(BO.docRef=e)},Cya=(e,t,r)=>{dyt.push({type:e,src:t,dst:r})},Aya=()=>dyt,kya=()=>{dyt=[],H2={},Pse={},BO={},Bse={},Mb()},Rya={RequirementType:dya,RiskLevel:fya,VerifyType:pya,Relationships:gya,getConfig:()=>Qt().req,addRequirement:mya,getRequirements:bya,setNewReqId:yya,setNewReqText:vya,setNewReqRisk:_ya,setNewReqVerifyMethod:wya,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addElement:Eya,getElements:xya,setNewElementType:Sya,setNewElementDocRef:Tya,addRelationship:Cya,getRelationships:Aya,clear:kya},Iya=e=>`

  marker {
    fill: ${e.relationColor};
    stroke: ${e.relationColor};
  }

  marker.cross {
    stroke: ${e.lineColor};
  }

  svg {
    font-family: ${e.fontFamily};
    font-size: ${e.fontSize};
  }

  .reqBox {
    fill: ${e.requirementBackground};
    fill-opacity: 1.0;
    stroke: ${e.requirementBorderColor};
    stroke-width: ${e.requirementBorderSize};
  }
  
  .reqTitle, .reqLabel{
    fill:  ${e.requirementTextColor};
  }
  .reqLabelBox {
    fill: ${e.relationLabelBackground};
    fill-opacity: 1.0;
  }

  .req-title-line {
    stroke: ${e.requirementBorderColor};
    stroke-width: ${e.requirementBorderSize};
  }
  .relationshipLine {
    stroke: ${e.relationColor};
    stroke-width: 1;
  }
  .relationshipLabel {
    fill: ${e.relationLabelColor};
  }

`,Nya=Iya,zht={CONTAINS:"contains",ARROW:"arrow"},Oya=(e,t)=>{let r=e.append("defs").append("marker").attr("id",zht.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",zht.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
      L${t.line_height},${t.line_height/2}
      M${t.line_height},${t.line_height/2}
      L0,${t.line_height}`).attr("stroke-width",1)},ztr={ReqMarkers:zht,insertLineEndings:Oya};let o0={},DCn=0;const Gtr=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",o0.rect_min_width+"px").attr("height",o0.rect_min_height+"px"),qtr=(e,t,r)=>{let a=o0.rect_min_width/2,s=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",a).attr("y",o0.rect_padding).attr("dominant-baseline","hanging"),o=0;r.forEach(p=>{o==0?s.append("tspan").attr("text-anchor","middle").attr("x",o0.rect_min_width/2).attr("dy",0).text(p):s.append("tspan").attr("text-anchor","middle").attr("x",o0.rect_min_width/2).attr("dy",o0.line_height*.75).text(p),o++});let u=1.5*o0.rect_padding,h=o*o0.line_height*.75,f=u+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",o0.rect_min_width).attr("y1",f).attr("y2",f),{titleNode:s,y:f}},Htr=(e,t,r,a)=>{let s=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",o0.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),o=0;const u=30;let h=[];return r.forEach(f=>{let p=f.length;for(;p>u&&o<3;){let m=f.substring(0,u);f=f.substring(u,f.length),p=f.length,h[h.length]=m,o++}if(o==3){let m=h[h.length-1];h[h.length-1]=m.substring(0,m.length-4)+"..."}else h[h.length]=f;o=0}),h.forEach(f=>{s.append("tspan").attr("x",o0.rect_padding).attr("dy",o0.line_height).text(f)}),s},Lya=(e,t,r,a)=>{const s=t.node().getTotalLength(),o=t.node().getPointAtLength(s*.5),u="rel"+DCn;DCn++;const f=e.append("text").attr("class","req relationshipLabel").attr("id",u).attr("x",o.x).attr("y",o.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(a).node().getBBox();e.insert("rect","#"+u).attr("class","req reqLabelBox").attr("x",o.x-f.width/2).attr("y",o.y-f.height/2).attr("width",f.width).attr("height",f.height).attr("fill","white").attr("fill-opacity","85%")},Dya=function(e,t,r,a,s){const o=r.edge(uW(t.src),uW(t.dst)),u=r_().x(function(f){return f.x}).y(function(f){return f.y}),h=e.insert("path","#"+a).attr("class","er relationshipLine").attr("d",u(o.points)).attr("fill","none");t.type==s.db.Relationships.CONTAINS?h.attr("marker-start","url("+mi.getUrl(o0.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+mi.getUrl(o0.arrowMarkerAbsolute)+"#"+ztr.ReqMarkers.ARROW+"_line_ending)")),Lya(e,h,o0,`<<${t.type}>>`)},Mya=(e,t,r)=>{Object.keys(e).forEach(a=>{let s=e[a];a=uW(a),ut.info("Added new requirement: ",a);const o=r.append("g").attr("id",a),u="req-"+a,h=Gtr(o,u);let f=qtr(o,a+"_title",[`<<${s.type}>>`,`${s.name}`]);Htr(o,a+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],f.y);const p=h.node().getBBox();t.setNode(a,{width:p.width,height:p.height,shape:"rect",id:a})})},Pya=(e,t,r)=>{Object.keys(e).forEach(a=>{let s=e[a];const o=uW(a),u=r.append("g").attr("id",o),h="element-"+o,f=Gtr(u,h);let p=qtr(u,h+"_title",["<<Element>>",`${a}`]);Htr(u,h+"_body",[`Type: ${s.type||"Not Specified"}`,`Doc Ref: ${s.docRef||"None"}`],p.y);const m=f.node().getBBox();t.setNode(o,{width:m.width,height:m.height,shape:"rect",id:o})})},Bya=(e,t)=>(e.forEach(function(r){let a=uW(r.src),s=uW(r.dst);t.setEdge(a,s,{relationship:r})}),e),Fya=function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&(e.select("#"+r),e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )"))})},uW=e=>e.replace(/\s/g,"").replace(/\./g,"_"),$ya=(e,t,r,a)=>{o0=Qt().requirement;const s=o0.securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const h=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);ztr.insertLineEndings(h,o0);const f=new F1({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:o0.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let p=a.db.getRequirements(),m=a.db.getElements(),b=a.db.getRelationships();Mya(p,f,h),Pya(m,f,h),Bya(b,f),oK(f),Fya(h,f),b.forEach(function(A){Dya(h,A,f,t,a)});const _=o0.rect_padding,w=h.node().getBBox(),S=w.width+_*2,C=w.height+_*2;Db(h,C,S,o0.useMaxWidth),h.attr("viewBox",`${w.x-_} ${w.y-_} ${S} ${C}`)},Uya={draw:$ya},zya={parser:hya,db:Rya,renderer:Uya,styles:Nya},Gya=Object.freeze(Object.defineProperty({__proto__:null,diagram:zya},Symbol.toStringTag,{value:"Module"}));var Ght=function(){var e=function(ye,Ee,he,we){for(he=he||{},we=ye.length;we--;he[ye[we]]=Ee);return he},t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,13],f=[1,14],p=[1,16],m=[1,17],b=[1,18],_=[1,24],w=[1,25],S=[1,26],C=[1,27],A=[1,28],k=[1,29],I=[1,30],N=[1,31],L=[1,32],P=[1,33],M=[1,34],F=[1,35],U=[1,36],$=[1,37],G=[1,38],B=[1,39],Z=[1,41],z=[1,42],Y=[1,43],W=[1,44],Q=[1,45],V=[1,46],j=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],ee=[4,5,16,50,52,53],te=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],ne=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],se=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],ie=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ge=[68,69,70],ce=[1,120],be={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(Ee,he,we,Ce,Ie,Le,Fe){var Ve=Le.length-1;switch(Ie){case 3:return Ce.apply(Le[Ve]),Le[Ve];case 4:case 9:this.$=[];break;case 5:case 10:Le[Ve-1].push(Le[Ve]),this.$=Le[Ve-1];break;case 6:case 7:case 11:case 12:this.$=Le[Ve];break;case 8:case 13:this.$=[];break;case 15:Le[Ve].type="createParticipant",this.$=Le[Ve];break;case 16:Le[Ve-1].unshift({type:"boxStart",boxData:Ce.parseBoxData(Le[Ve-2])}),Le[Ve-1].push({type:"boxEnd",boxText:Le[Ve-2]}),this.$=Le[Ve-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Le[Ve-2]),sequenceIndexStep:Number(Le[Ve-1]),sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Le[Ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ce.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Le[Ve-1]};break;case 23:this.$={type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Le[Ve-1]};break;case 29:Ce.setDiagramTitle(Le[Ve].substring(6)),this.$=Le[Ve].substring(6);break;case 30:Ce.setDiagramTitle(Le[Ve].substring(7)),this.$=Le[Ve].substring(7);break;case 31:this.$=Le[Ve].trim(),Ce.setAccTitle(this.$);break;case 32:case 33:this.$=Le[Ve].trim(),Ce.setAccDescription(this.$);break;case 34:Le[Ve-1].unshift({type:"loopStart",loopText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.LOOP_START}),Le[Ve-1].push({type:"loopEnd",loopText:Le[Ve-2],signalType:Ce.LINETYPE.LOOP_END}),this.$=Le[Ve-1];break;case 35:Le[Ve-1].unshift({type:"rectStart",color:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.RECT_START}),Le[Ve-1].push({type:"rectEnd",color:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.RECT_END}),this.$=Le[Ve-1];break;case 36:Le[Ve-1].unshift({type:"optStart",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.OPT_START}),Le[Ve-1].push({type:"optEnd",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.OPT_END}),this.$=Le[Ve-1];break;case 37:Le[Ve-1].unshift({type:"altStart",altText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.ALT_START}),Le[Ve-1].push({type:"altEnd",signalType:Ce.LINETYPE.ALT_END}),this.$=Le[Ve-1];break;case 38:Le[Ve-1].unshift({type:"parStart",parText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.PAR_START}),Le[Ve-1].push({type:"parEnd",signalType:Ce.LINETYPE.PAR_END}),this.$=Le[Ve-1];break;case 39:Le[Ve-1].unshift({type:"parStart",parText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.PAR_OVER_START}),Le[Ve-1].push({type:"parEnd",signalType:Ce.LINETYPE.PAR_END}),this.$=Le[Ve-1];break;case 40:Le[Ve-1].unshift({type:"criticalStart",criticalText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.CRITICAL_START}),Le[Ve-1].push({type:"criticalEnd",signalType:Ce.LINETYPE.CRITICAL_END}),this.$=Le[Ve-1];break;case 41:Le[Ve-1].unshift({type:"breakStart",breakText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.BREAK_START}),Le[Ve-1].push({type:"breakEnd",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.BREAK_END}),this.$=Le[Ve-1];break;case 43:this.$=Le[Ve-3].concat([{type:"option",optionText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.CRITICAL_OPTION},Le[Ve]]);break;case 45:this.$=Le[Ve-3].concat([{type:"and",parText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.PAR_AND},Le[Ve]]);break;case 47:this.$=Le[Ve-3].concat([{type:"else",altText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.ALT_ELSE},Le[Ve]]);break;case 48:Le[Ve-3].draw="participant",Le[Ve-3].type="addParticipant",Le[Ve-3].description=Ce.parseMessage(Le[Ve-1]),this.$=Le[Ve-3];break;case 49:Le[Ve-1].draw="participant",Le[Ve-1].type="addParticipant",this.$=Le[Ve-1];break;case 50:Le[Ve-3].draw="actor",Le[Ve-3].type="addParticipant",Le[Ve-3].description=Ce.parseMessage(Le[Ve-1]),this.$=Le[Ve-3];break;case 51:Le[Ve-1].draw="actor",Le[Ve-1].type="addParticipant",this.$=Le[Ve-1];break;case 52:Le[Ve-1].type="destroyParticipant",this.$=Le[Ve-1];break;case 53:this.$=[Le[Ve-1],{type:"addNote",placement:Le[Ve-2],actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 54:Le[Ve-2]=[].concat(Le[Ve-1],Le[Ve-1]).slice(0,2),Le[Ve-2][0]=Le[Ve-2][0].actor,Le[Ve-2][1]=Le[Ve-2][1].actor,this.$=[Le[Ve-1],{type:"addNote",placement:Ce.PLACEMENT.OVER,actor:Le[Ve-2].slice(0,2),text:Le[Ve]}];break;case 55:this.$=[Le[Ve-1],{type:"addLinks",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 56:this.$=[Le[Ve-1],{type:"addALink",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 57:this.$=[Le[Ve-1],{type:"addProperties",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 58:this.$=[Le[Ve-1],{type:"addDetails",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 61:this.$=[Le[Ve-2],Le[Ve]];break;case 62:this.$=Le[Ve];break;case 63:this.$=Ce.PLACEMENT.LEFTOF;break;case 64:this.$=Ce.PLACEMENT.RIGHTOF;break;case 65:this.$=[Le[Ve-4],Le[Ve-1],{type:"addMessage",from:Le[Ve-4].actor,to:Le[Ve-1].actor,signalType:Le[Ve-3],msg:Le[Ve],activate:!0},{type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Le[Ve-1]}];break;case 66:this.$=[Le[Ve-4],Le[Ve-1],{type:"addMessage",from:Le[Ve-4].actor,to:Le[Ve-1].actor,signalType:Le[Ve-3],msg:Le[Ve]},{type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Le[Ve-4]}];break;case 67:this.$=[Le[Ve-3],Le[Ve-1],{type:"addMessage",from:Le[Ve-3].actor,to:Le[Ve-1].actor,signalType:Le[Ve-2],msg:Le[Ve]}];break;case 68:this.$={type:"addParticipant",actor:Le[Ve]};break;case 69:this.$=Ce.LINETYPE.SOLID_OPEN;break;case 70:this.$=Ce.LINETYPE.DOTTED_OPEN;break;case 71:this.$=Ce.LINETYPE.SOLID;break;case 72:this.$=Ce.LINETYPE.DOTTED;break;case 73:this.$=Ce.LINETYPE.SOLID_CROSS;break;case 74:this.$=Ce.LINETYPE.DOTTED_CROSS;break;case 75:this.$=Ce.LINETYPE.SOLID_POINT;break;case 76:this.$=Ce.LINETYPE.DOTTED_POINT;break;case 77:this.$=Ce.parseMessage(Le[Ve].trim().substring(1));break}},table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},e(j,[2,5]),{9:47,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},e(j,[2,7]),e(j,[2,8]),e(j,[2,14]),{12:48,50:$,52:G,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:V},{22:55,70:V},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(j,[2,29]),e(j,[2,30]),{32:[1,61]},{34:[1,62]},e(j,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:V},{22:72,70:V},{22:73,70:V},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:V},{22:88,70:V},{22:89,70:V},{22:90,70:V},e([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),e(j,[2,6]),e(j,[2,15]),e(ee,[2,9],{10:91}),e(j,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},e(j,[2,21]),{5:[1,95]},{5:[1,96]},e(j,[2,24]),e(j,[2,25]),e(j,[2,26]),e(j,[2,27]),e(j,[2,28]),e(j,[2,31]),e(j,[2,32]),e(te,s,{7:97}),e(te,s,{7:98}),e(te,s,{7:99}),e(ne,s,{40:100,7:101}),e(se,s,{42:102,7:103}),e(se,s,{7:103,42:104}),e(ie,s,{45:105,7:106}),e(te,s,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:V},e(ge,[2,69]),e(ge,[2,70]),e(ge,[2,71]),e(ge,[2,72]),e(ge,[2,73]),e(ge,[2,74]),e(ge,[2,75]),e(ge,[2,76]),{22:116,70:V},{22:118,58:117,70:V},{70:[2,63]},{70:[2,64]},{56:119,79:ce},{56:121,79:ce},{56:122,79:ce},{56:123,79:ce},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:$,52:G,53:B},{5:[1,129]},e(j,[2,19]),e(j,[2,20]),e(j,[2,22]),e(j,[2,23]),{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,130],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,131],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,132],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,133]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,46],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,49:[1,134],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,135]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,44],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,48:[1,136],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,137]},{16:[1,138]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,42],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,47:[1,139],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,140],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{15:[1,141]},e(j,[2,49]),{15:[1,142]},e(j,[2,51]),e(j,[2,52]),{22:143,70:V},{22:144,70:V},{56:145,79:ce},{56:146,79:ce},{56:147,79:ce},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(j,[2,16]),e(ee,[2,10]),{12:149,50:$,52:G,53:B},e(ee,[2,12]),e(ee,[2,13]),e(j,[2,18]),e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),{15:[1,150]},e(j,[2,38]),{15:[1,151]},e(j,[2,39]),e(j,[2,40]),{15:[1,152]},e(j,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ce},{56:156,79:ce},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:V},e(ee,[2,11]),e(ne,s,{7:101,40:158}),e(se,s,{7:103,42:159}),e(ie,s,{7:106,45:160}),e(j,[2,48]),e(j,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(Ee,he){if(he.recoverable)this.trace(Ee);else{var we=new Error(Ee);throw we.hash=he,we}},parse:function(Ee){var he=this,we=[0],Ce=[],Ie=[null],Le=[],Fe=this.table,Ve="",Oe=0,Dt=0,ot=2,sn=1,Kt=Le.slice.call(arguments,1),Ft=Object.create(this.lexer),Je={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(Je.yy[ht]=this.yy[ht]);Ft.setInput(Ee,Je.yy),Je.yy.lexer=Ft,Je.yy.parser=this,typeof Ft.yylloc>"u"&&(Ft.yylloc={});var et=Ft.yylloc;Le.push(et);var qe=Ft.options&&Ft.options.ranges;typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(){var Ut;return Ut=Ce.pop()||Ft.lex()||sn,typeof Ut!="number"&&(Ut instanceof Array&&(Ce=Ut,Ut=Ce.pop()),Ut=he.symbols_[Ut]||Ut),Ut}for(var Ge,Ye,Ae,Xe,fe={},Qe,Ke,mt,lt;;){if(Ye=we[we.length-1],this.defaultActions[Ye]?Ae=this.defaultActions[Ye]:((Ge===null||typeof Ge>"u")&&(Ge=He()),Ae=Fe[Ye]&&Fe[Ye][Ge]),typeof Ae>"u"||!Ae.length||!Ae[0]){var $t="";lt=[];for(Qe in Fe[Ye])this.terminals_[Qe]&&Qe>ot&&lt.push("'"+this.terminals_[Qe]+"'");Ft.showPosition?$t="Parse error on line "+(Oe+1)+`:
`+Ft.showPosition()+`
Expecting `+lt.join(", ")+", got '"+(this.terminals_[Ge]||Ge)+"'":$t="Parse error on line "+(Oe+1)+": Unexpected "+(Ge==sn?"end of input":"'"+(this.terminals_[Ge]||Ge)+"'"),this.parseError($t,{text:Ft.match,token:this.terminals_[Ge]||Ge,line:Ft.yylineno,loc:et,expected:lt})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ye+", token: "+Ge);switch(Ae[0]){case 1:we.push(Ge),Ie.push(Ft.yytext),Le.push(Ft.yylloc),we.push(Ae[1]),Ge=null,Dt=Ft.yyleng,Ve=Ft.yytext,Oe=Ft.yylineno,et=Ft.yylloc;break;case 2:if(Ke=this.productions_[Ae[1]][1],fe.$=Ie[Ie.length-Ke],fe._$={first_line:Le[Le.length-(Ke||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(Ke||1)].first_column,last_column:Le[Le.length-1].last_column},qe&&(fe._$.range=[Le[Le.length-(Ke||1)].range[0],Le[Le.length-1].range[1]]),Xe=this.performAction.apply(fe,[Ve,Dt,Oe,Je.yy,Ae[1],Ie,Le].concat(Kt)),typeof Xe<"u")return Xe;Ke&&(we=we.slice(0,-1*Ke*2),Ie=Ie.slice(0,-1*Ke),Le=Le.slice(0,-1*Ke)),we.push(this.productions_[Ae[1]][0]),Ie.push(fe.$),Le.push(fe._$),mt=Fe[we[we.length-2]][we[we.length-1]],we.push(mt);break;case 3:return!0}}return!0}},ve=function(){var ye={EOF:1,parseError:function(he,we){if(this.yy.parser)this.yy.parser.parseError(he,we);else throw new Error(he)},setInput:function(Ee,he){return this.yy=he||this.yy||{},this._input=Ee,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 Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var he=Ee.match(/(?:\r\n?|\n).*/g);return he?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var he=Ee.length,we=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var Ce=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),we.length-1&&(this.yylineno-=we.length-1);var Ie=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:we?(we.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-we.length].length-we[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Ie[0],Ie[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),he=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
`+he+"^"},test_match:function(Ee,he){var we,Ce,Ie;if(this.options.backtrack_lexer&&(Ie={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&&(Ie.yylloc.range=this.yylloc.range.slice(0))),Ce=Ee[0].match(/(?:\r\n?|\n).*/g),Ce&&(this.yylineno+=Ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,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(Ee[0].length),this.matched+=Ee[0],we=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var Le in Ie)this[Le]=Ie[Le];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,he,we,Ce;this._more||(this.yytext="",this.match="");for(var Ie=this._currentRules(),Le=0;Le<Ie.length;Le++)if(we=this._input.match(this.rules[Ie[Le]]),we&&(!he||we[0].length>he[0].length)){if(he=we,Ce=Le,this.options.backtrack_lexer){if(Ee=this.test_match(we,Ie[Le]),Ee!==!1)return Ee;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(Ee=this.test_match(he,Ie[Ce]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var he=this.next();return he||this.lex()},begin:function(he){this.conditionStack.push(he)},popState:function(){var he=this.conditionStack.length-1;return he>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(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},pushState:function(he){this.begin(he)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(he,we,Ce,Ie){switch(Ce){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return we.yytext=we.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return we.yytext=we.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\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,/^(?:create\b)/i,/^(?:destroy\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,/^(?:par_over\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:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return ye}();be.lexer=ve;function De(){this.yy={}}return De.prototype=be,be.Parser=De,new De}();Ght.parser=Ght;const qya=Ght;class Hya{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}}const as=new Hya(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Vya=function(e){as.records.boxes.push({name:e.text,wrap:e.wrap===void 0&&u$()||!!e.wrap,fill:e.color,actorKeys:[]}),as.records.currentBox=as.records.boxes.slice(-1)[0]},qht=function(e,t,r,a){let s=as.records.currentBox;const o=as.records.actors[e];if(o){if(as.records.currentBox&&o.box&&as.records.currentBox!==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 '"+as.records.currentBox.name+"' at the same time.");if(s=o.box?o.box:as.records.currentBox,o.box=s,o&&t===o.name&&r==null)return}(r==null||r.text==null)&&(r={text:t,wrap:null,type:a}),(a==null||r.text==null)&&(r={text:t,wrap:null,type:a}),as.records.actors[e]={box:s,name:t,description:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,prevActor:as.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},as.records.prevActor&&as.records.actors[as.records.prevActor]&&(as.records.actors[as.records.prevActor].nextActor=e),as.records.currentBox&&as.records.currentBox.actorKeys.push(e),as.records.prevActor=e},Yya=e=>{let t,r=0;for(t=0;t<as.records.messages.length;t++)as.records.messages[t].type===Cle.ACTIVE_START&&as.records.messages[t].from.actor===e&&r++,as.records.messages[t].type===Cle.ACTIVE_END&&as.records.messages[t].from.actor===e&&r--;return r},jya=function(e,t,r,a){as.records.messages.push({from:e,to:t,message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,answer:a})},G0=function(e,t,r={text:void 0,wrap:void 0},a,s=!1){if(a===Cle.ACTIVE_END&&Yya(e.actor)<1){let u=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw u.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},u}return as.records.messages.push({from:e,to:t,message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,type:a,activate:s}),!0},Wya=function(){return as.records.boxes.length>0},Kya=function(){return as.records.boxes.some(e=>e.name)},Xya=function(){return as.records.messages},Qya=function(){return as.records.boxes},Zya=function(){return as.records.actors},Jya=function(){return as.records.createdActors},eva=function(){return as.records.destroyedActors},iue=function(e){return as.records.actors[e]},tva=function(){return Object.keys(as.records.actors)},nva=function(){as.records.sequenceNumbersEnabled=!0},rva=function(){as.records.sequenceNumbersEnabled=!1},iva=()=>as.records.sequenceNumbersEnabled,ava=function(e){as.records.wrapEnabled=e},u$=()=>as.records.wrapEnabled!==void 0?as.records.wrapEnabled:Qt().sequence.wrap,sva=function(){as.reset(),Mb()},ova=function(e){const t=e.trim(),r={text:t.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:t.match(/^:?wrap:/)!==null?!0:t.match(/^:?nowrap:/)!==null?!1:void 0};return ut.debug("parseMessage:",r),r},lva=function(e){const t=e.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let r=t!=null&&t[1]?t[1].trim():"transparent",a=t!=null&&t[2]?t[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",r)||(r="transparent",a=e.trim());else{const s=new Option().style;s.color=r,s.color!==r&&(r="transparent",a=e.trim())}return{color:r,text:a!==void 0?J0(a.replace(/^:?(?:no)?wrap:/,""),Qt()):void 0,wrap:a!==void 0?a.match(/^:?wrap:/)!==null?!0:a.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},Cle={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,PAR_OVER_START:32},cva={FILLED:0,OPEN:1},uva={LEFTOF:0,RIGHTOF:1,OVER:2},Vtr=function(e,t,r){const a={actor:e,placement:t,message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap},s=[].concat(e,e);as.records.notes.push(a),as.records.messages.push({from:s[0],to:s[1],message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,type:Cle.NOTE,placement:t})},Ytr=function(e,t){const r=iue(e);try{let a=J0(t.text,Qt());a=a.replace(/&amp;/g,"&"),a=a.replace(/&equals;/g,"=");const s=JSON.parse(a);fyt(r,s)}catch(a){ut.error("error while parsing actor link text",a)}},hva=function(e,t){const r=iue(e);try{const u={};let h=J0(t.text,Qt());var a=h.indexOf("@");h=h.replace(/&amp;/g,"&"),h=h.replace(/&equals;/g,"=");var s=h.slice(0,a-1).trim(),o=h.slice(a+1).trim();u[s]=o,fyt(r,u)}catch(u){ut.error("error while parsing actor link text",u)}};function fyt(e,t){if(e.links==null)e.links=t;else for(let r in t)e.links[r]=t[r]}const jtr=function(e,t){const r=iue(e);try{let a=J0(t.text,Qt());const s=JSON.parse(a);Wtr(r,s)}catch(a){ut.error("error while parsing actor properties text",a)}};function Wtr(e,t){if(e.properties==null)e.properties=t;else for(let r in t)e.properties[r]=t[r]}function dva(){as.records.currentBox=void 0}const Ktr=function(e,t){const r=iue(e),a=document.getElementById(t.text);try{const s=a.innerHTML,o=JSON.parse(s);o.properties&&Wtr(r,o.properties),o.links&&fyt(r,o.links)}catch(s){ut.error("error while parsing actor details text",s)}},fva=function(e,t){if(e!==void 0&&e.properties!==void 0)return e.properties[t]},Xtr=function(e){if(Array.isArray(e))e.forEach(function(t){Xtr(t)});else switch(e.type){case"sequenceIndex":as.records.messages.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":qht(e.actor,e.actor,e.description,e.draw);break;case"createParticipant":if(as.records.actors[e.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");as.records.lastCreated=e.actor,qht(e.actor,e.actor,e.description,e.draw),as.records.createdActors[e.actor]=as.records.messages.length;break;case"destroyParticipant":as.records.lastDestroyed=e.actor,as.records.destroyedActors[e.actor]=as.records.messages.length;break;case"activeStart":G0(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":G0(e.actor,void 0,void 0,e.signalType);break;case"addNote":Vtr(e.actor,e.placement,e.text);break;case"addLinks":Ytr(e.actor,e.text);break;case"addALink":hva(e.actor,e.text);break;case"addProperties":jtr(e.actor,e.text);break;case"addDetails":Ktr(e.actor,e.text);break;case"addMessage":if(as.records.lastCreated){if(e.to!==as.records.lastCreated)throw new Error("The created participant "+as.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");as.records.lastCreated=void 0}else if(as.records.lastDestroyed){if(e.to!==as.records.lastDestroyed&&e.from!==as.records.lastDestroyed)throw new Error("The destroyed participant "+as.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");as.records.lastDestroyed=void 0}G0(e.from,e.to,e.msg,e.signalType,e.activate);break;case"boxStart":Vya(e.boxData);break;case"boxEnd":dva();break;case"loopStart":G0(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":G0(void 0,void 0,void 0,e.signalType);break;case"rectStart":G0(void 0,void 0,e.color,e.signalType);break;case"rectEnd":G0(void 0,void 0,void 0,e.signalType);break;case"optStart":G0(void 0,void 0,e.optText,e.signalType);break;case"optEnd":G0(void 0,void 0,void 0,e.signalType);break;case"altStart":G0(void 0,void 0,e.altText,e.signalType);break;case"else":G0(void 0,void 0,e.altText,e.signalType);break;case"altEnd":G0(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":Pb(e.text);break;case"parStart":G0(void 0,void 0,e.parText,e.signalType);break;case"and":G0(void 0,void 0,e.parText,e.signalType);break;case"parEnd":G0(void 0,void 0,void 0,e.signalType);break;case"criticalStart":G0(void 0,void 0,e.criticalText,e.signalType);break;case"option":G0(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":G0(void 0,void 0,void 0,e.signalType);break;case"breakStart":G0(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":G0(void 0,void 0,void 0,e.signalType);break}},MCn={addActor:qht,addMessage:jya,addSignal:G0,addLinks:Ytr,addDetails:Ktr,addProperties:jtr,autoWrap:u$,setWrap:ava,enableSequenceNumbers:nva,disableSequenceNumbers:rva,showSequenceNumbers:iva,getMessages:Xya,getActors:Zya,getCreatedActors:Jya,getDestroyedActors:eva,getActor:iue,getActorKeys:tva,getActorProperty:fva,getAccTitle:Ev,getBoxes:Qya,getDiagramTitle:Tv,setDiagramTitle:Zw,getConfig:()=>Qt().sequence,clear:sva,parseMessage:ova,parseBoxData:lva,LINETYPE:Cle,ARROWTYPE:cva,PLACEMENT:uva,addNote:Vtr,setAccTitle:Pb,apply:Xtr,setAccDescription:xv,getAccDescription:Sv,hasAtLeastOneBox:Wya,hasAtLeastOneBoxWithTitle:Kya},pva=e=>`.actor {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
  }

  text.actor > tspan {
    fill: ${e.actorTextColor};
    stroke: none;
  }

  .actor-line {
    stroke: ${e.actorLineColor};
  }

  .messageLine0 {
    stroke-width: 1.5;
    stroke-dasharray: none;
    stroke: ${e.signalColor};
  }

  .messageLine1 {
    stroke-width: 1.5;
    stroke-dasharray: 2, 2;
    stroke: ${e.signalColor};
  }

  #arrowhead path {
    fill: ${e.signalColor};
    stroke: ${e.signalColor};
  }

  .sequenceNumber {
    fill: ${e.sequenceNumberColor};
  }

  #sequencenumber {
    fill: ${e.signalColor};
  }

  #crosshead path {
    fill: ${e.signalColor};
    stroke: ${e.signalColor};
  }

  .messageText {
    fill: ${e.signalTextColor};
    stroke: none;
  }

  .labelBox {
    stroke: ${e.labelBoxBorderColor};
    fill: ${e.labelBoxBkgColor};
  }

  .labelText, .labelText > tspan {
    fill: ${e.labelTextColor};
    stroke: none;
  }

  .loopText, .loopText > tspan {
    fill: ${e.loopTextColor};
    stroke: none;
  }

  .loopLine {
    stroke-width: 2px;
    stroke-dasharray: 2, 2;
    stroke: ${e.labelBoxBorderColor};
    fill: ${e.labelBoxBorderColor};
  }

  .note {
    //stroke: #decc93;
    stroke: ${e.noteBorderColor};
    fill: ${e.noteBkgColor};
  }

  .noteText, .noteText > tspan {
    fill: ${e.noteTextColor};
    stroke: none;
  }

  .activation0 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .activation1 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .activation2 {
    fill: ${e.activationBkgColor};
    stroke: ${e.activationBorderColor};
  }

  .actorPopupMenu {
    position: absolute;
  }

  .actorPopupMenuPanel {
    position: absolute;
    fill: ${e.actorBkg};
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
  .actor-man line {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
  }
  .actor-man circle, line {
    stroke: ${e.actorBorder};
    fill: ${e.actorBkg};
    stroke-width: 2px;
  }
`,gva=pva,uF=18*2,Qtr="actor-top",Ztr="actor-bottom",pyt=function(e,t){return d6e(e,t)},mva=function(e,t,r,a,s){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const o=t.links,u=t.actorCnt,h=t.rectData;var f="none";s&&(f="block !important");const p=e.append("g");p.attr("id","actor"+u+"_popup"),p.attr("class","actorPopupMenu"),p.attr("display",f);var m="";h.class!==void 0&&(m=" "+h.class);let b=h.width>r?h.width:r;const _=p.append("rect");if(_.attr("class","actorPopupMenuPanel"+m),_.attr("x",h.x),_.attr("y",h.height),_.attr("fill",h.fill),_.attr("stroke",h.stroke),_.attr("width",b),_.attr("height",h.height),_.attr("rx",h.rx),_.attr("ry",h.ry),o!=null){var w=20;for(let A in o){var S=p.append("a"),C=U9(o[A]);S.attr("xlink:href",C),S.attr("target","_blank"),Lva(a)(A,S,h.x+10,h.height+w,b,20,{class:"actor"},a),w+=30}}return _.attr("height",w),{height:h.height+w,width:b}},bva=function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},p5e=async function(e,t,r=null){let a=e.append("foreignObject");const s=await Z$(t.text,Lf()),u=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(a.attr("height",Math.round(u.height)).attr("width",Math.round(u.width)),t.class==="noteText"){const h=e.node().firstChild;h.setAttribute("height",u.height+2*t.textMargin);const f=h.getBBox();a.attr("x",Math.round(f.x+f.width/2-u.width/2)).attr("y",Math.round(f.y+f.height/2-u.height/2))}else if(r){let{startx:h,stopx:f,starty:p}=r;if(h>f){const m=h;h=f,f=m}a.attr("x",Math.round(h+Math.abs(h-f)/2-u.width/2)),t.class==="loopText"?a.attr("y",Math.round(p)):a.attr("y",Math.round(p-u.height))}return[a]},hW=function(e,t){let r=0,a=0;const s=t.text.split(mi.lineBreakRegex),[o,u]=J$(t.fontSize);let h=[],f=0,p=()=>t.y;if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":p=()=>Math.round(t.y+t.textMargin);break;case"middle":case"center":p=()=>Math.round(t.y+(r+a+t.textMargin)/2);break;case"bottom":case"end":p=()=>Math.round(t.y+(r+a+2*t.textMargin)-t.textMargin);break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[m,b]of s.entries()){t.textMargin!==void 0&&t.textMargin===0&&o!==void 0&&(f=m*o);const _=e.append("text");_.attr("x",t.x),_.attr("y",p()),t.anchor!==void 0&&_.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&_.style("font-family",t.fontFamily),u!==void 0&&_.style("font-size",u),t.fontWeight!==void 0&&_.style("font-weight",t.fontWeight),t.fill!==void 0&&_.attr("fill",t.fill),t.class!==void 0&&_.attr("class",t.class),t.dy!==void 0?_.attr("dy",t.dy):f!==0&&_.attr("dy",f);const w=b||KQn;if(t.tspan){const S=_.append("tspan");S.attr("x",t.x),t.fill!==void 0&&S.attr("fill",t.fill),S.text(w)}else _.text(w);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(a+=(_._groups||_)[0][0].getBBox().height,r=a),h.push(_)}return h},Jtr=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");return a.attr("points",r(t.x,t.y,t.width,t.height,7)),a.attr("class","labelBox"),t.y=t.y+t.height/2,hW(e,t),a};let HC=-1;const enr=(e,t,r,a)=>{e.select&&r.forEach(s=>{const o=t[s],u=e.select("#actor"+o.actorCnt);!a.mirrorActors&&o.stopy?u.attr("y2",o.stopy+o.height/2):a.mirrorActors&&u.attr("y2",o.stopy)})},yva=async function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+5,h=e.append("g").lower();var f=h;a||(HC++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",bva(`actor${HC}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+HC).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),f=h.append("g"),t.actorCnt=HC,t.links!=null&&f.attr("id","root-"+HC));const p=eU();var m="actor";t.properties!=null&&t.properties.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${Ztr}`:m+=` ${Qtr}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.rx=3,p.ry=3,p.name=t.name;const b=pyt(f,p);if(t.rectData=p,t.properties!=null&&t.properties.icon){const w=t.properties.icon.trim();w.charAt(0)==="@"?kca(f,p.x+p.width-20,p.y+10,w.substr(1)):Aca(f,p.x+p.width-20,p.y+10,w)}await gyt(r,OS(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:"actor"},r);let _=t.height;if(b.node){const w=b.node().getBBox();t.height=w.height,_=w.height}return _},vva=async function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80;e.lower(),a||(HC++,e.append("line").attr("id","actor"+HC).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),t.actorCnt=HC);const h=e.append("g");let f="actor-man";a?f+=` ${Ztr}`:f+=` ${Qtr}`,h.attr("class",f),h.attr("name",t.name);const p=eU();p.x=t.x,p.y=s,p.fill="#eaeaea",p.width=t.width,p.height=t.height,p.class="actor",p.rx=3,p.ry=3,h.append("line").attr("id","actor-man-torso"+HC).attr("x1",o).attr("y1",s+25).attr("x2",o).attr("y2",s+45),h.append("line").attr("id","actor-man-arms"+HC).attr("x1",o-uF/2).attr("y1",s+33).attr("x2",o+uF/2).attr("y2",s+33),h.append("line").attr("x1",o-uF/2).attr("y1",s+60).attr("x2",o).attr("y2",s+45),h.append("line").attr("x1",o).attr("y1",s+45).attr("x2",o+uF/2-2).attr("y2",s+60);const m=h.append("circle");m.attr("cx",t.x+t.width/2),m.attr("cy",s+10),m.attr("r",15),m.attr("width",t.width),m.attr("height",t.height);const b=h.node().getBBox();return t.height=b.height,await gyt(r,OS(t.description))(t.description,h,p.x,p.y+35,p.width,p.height,{class:"actor"},r),t.height},_va=async function(e,t,r,a){switch(t.type){case"actor":return await vva(e,t,r,a);case"participant":return await yva(e,t,r,a)}},wva=async function(e,t,r){const s=e.append("g");tnr(s,t),t.name&&await gyt(r)(t.name,s,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),s.lower()},Eva=function(e){return e.append("g")},xva=function(e,t,r,a,s){const o=eU(),u=t.anchored;o.x=t.startx,o.y=t.starty,o.class="activation"+s%3,o.width=t.stopx-t.startx,o.height=r-t.starty,pyt(u,o)},Sva=async function(e,t,r,a){const{boxMargin:s,boxTextMargin:o,labelBoxHeight:u,labelBoxWidth:h,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=a,b=e.append("g"),_=function(C,A,k,I){return b.append("line").attr("x1",C).attr("y1",A).attr("x2",k).attr("y2",I).attr("class","loopLine")};_(t.startx,t.starty,t.stopx,t.starty),_(t.stopx,t.starty,t.stopx,t.stopy),_(t.startx,t.stopy,t.stopx,t.stopy),_(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(C){_(t.startx,C.y,t.stopx,C.y).style("stroke-dasharray","3, 3")});let w=Obt();w.text=r,w.x=t.startx,w.y=t.starty,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.anchor="middle",w.valign="middle",w.tspan=!1,w.width=h||50,w.height=u||20,w.textMargin=o,w.class="labelText",Jtr(b,w),w=nnr(),w.text=t.title,w.x=t.startx+h/2+(t.stopx-t.startx)/2,w.y=t.starty+s+o,w.anchor="middle",w.valign="middle",w.textMargin=o,w.class="loopText",w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=!0;let S=OS(w.text)?await p5e(b,w,t):hW(b,w);if(t.sectionTitles!==void 0){for(const[C,A]of Object.entries(t.sectionTitles))if(A.message){w.text=A.message,w.x=t.startx+(t.stopx-t.startx)/2,w.y=t.sections[C].y+s+o,w.class="loopText",w.anchor="middle",w.valign="middle",w.tspan=!1,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=t.wrap,OS(w.text)?(t.starty=t.sections[C].y,await p5e(b,w,t)):hW(b,w);let k=Math.round(S.map(I=>(I._groups||I)[0][0].getBBox().height).reduce((I,N)=>I+N));t.sections[C].height+=k-(s+o)}}return t.height=Math.round(t.stopy-t.starty),b},tnr=function(e,t){bJn(e,t)},Tva=function(e){e.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")},Cva=function(e){e.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")},Ava=function(e){e.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")},kva=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.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")},Rva=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).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")},Iva=function(e){e.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)},Nva=function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.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")},nnr=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}},Ova=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},gyt=function(){function e(o,u,h,f,p,m,b){const _=u.append("text").attr("x",h+p/2).attr("y",f+m/2+5).style("text-anchor","middle").text(o);s(_,b)}function t(o,u,h,f,p,m,b,_){const{actorFontSize:w,actorFontFamily:S,actorFontWeight:C}=_,[A,k]=J$(w),I=o.split(mi.lineBreakRegex);for(let N=0;N<I.length;N++){const L=N*A-A*(I.length-1)/2,P=u.append("text").attr("x",h+p/2).attr("y",f).style("text-anchor","middle").style("font-size",k).style("font-weight",C).style("font-family",S);P.append("tspan").attr("x",h+p/2).attr("dy",L).text(I[N]),P.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(P,b)}}function r(o,u,h,f,p,m,b,_){const w=u.append("switch"),C=w.append("foreignObject").attr("x",h).attr("y",f).attr("width",p).attr("height",m).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");C.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(o),t(o,w,h,f,p,m,b,_),s(C,b)}async function a(o,u,h,f,p,m,b,_){const w=await Xce(o,Lf()),S=u.append("switch"),A=S.append("foreignObject").attr("x",h+p/2-w.width/2).attr("y",f+m/2-w.height/2).attr("width",w.width).attr("height",w.height).append("xhtml:div").style("height","100%").style("width","100%");A.append("div").style("text-align","center").style("vertical-align","middle").html(await Z$(o,Lf())),t(o,S,h,f,p,m,b,_),s(A,b)}function s(o,u){for(const h in u)u.hasOwnProperty(h)&&o.attr(h,u[h])}return function(o,u=!1){return u?a:o.textPlacement==="fo"?r:o.textPlacement==="old"?e:t}}(),Lva=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u).attr("y",h).style("text-anchor","start").text(s);a(b,m)}function t(s,o,u,h,f,p,m,b){const{actorFontSize:_,actorFontFamily:w,actorFontWeight:S}=b,C=s.split(mi.lineBreakRegex);for(let A=0;A<C.length;A++){const k=A*_-_*(C.length-1)/2,I=o.append("text").attr("x",u).attr("y",h).style("text-anchor","start").style("font-size",_).style("font-weight",S).style("font-family",w);I.append("tspan").attr("x",u).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}function a(s,o){for(const u in o)o.hasOwnProperty(u)&&s.attr(u,o[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),H0={drawRect:pyt,drawText:hW,drawLabel:Jtr,drawActor:_va,drawBox:wva,drawPopup:mva,anchorElement:Eva,drawActivation:xva,drawLoop:Sva,drawBackgroundRect:tnr,insertArrowHead:kva,insertArrowFilledHead:Rva,insertSequenceNumber:Iva,insertArrowCrossHead:Nva,insertDatabaseIcon:Tva,insertComputerIcon:Cva,insertClockIcon:Ava,getTextObj:nnr,getNoteRect:Ova,fixLifeLineHeights:enr,sanitizeUrl:U9};let Bn={};const ci={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,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(e){this.boxes.push(e)},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},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,inr(Qt())},updateVal:function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},updateBounds:function(e,t,r,a){const s=this;let o=0;function u(h){return function(p){o++;const m=s.sequenceItems.length-o+1;s.updateVal(p,"starty",t-m*Bn.boxMargin,Math.min),s.updateVal(p,"stopy",a+m*Bn.boxMargin,Math.max),s.updateVal(ci.data,"startx",e-m*Bn.boxMargin,Math.min),s.updateVal(ci.data,"stopx",r+m*Bn.boxMargin,Math.max),h!=="activation"&&(s.updateVal(p,"startx",e-m*Bn.boxMargin,Math.min),s.updateVal(p,"stopx",r+m*Bn.boxMargin,Math.max),s.updateVal(ci.data,"starty",t-m*Bn.boxMargin,Math.min),s.updateVal(ci.data,"stopy",a+m*Bn.boxMargin,Math.max))}}this.sequenceItems.forEach(u()),this.activations.forEach(u("activation"))},insert:function(e,t,r,a){const s=mi.getMin(e,r),o=mi.getMax(e,r),u=mi.getMin(t,a),h=mi.getMax(t,a);this.updateVal(ci.data,"startx",s,Math.min),this.updateVal(ci.data,"starty",u,Math.min),this.updateVal(ci.data,"stopx",o,Math.max),this.updateVal(ci.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},newActivation:function(e,t,r){const a=r[e.from.actor],s=x6e(e.from.actor).length||0,o=a.x+a.width/2+(s-1)*Bn.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+Bn.activationWidth,stopy:void 0,actor:e.from.actor,anchored:H0.anchorElement(t)})},endActivation:function(e){const t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:ci.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=mi.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Dva=async function(e,t){ci.bumpVerticalPos(Bn.boxMargin),t.height=Bn.boxMargin,t.starty=ci.getVerticalPos();const r=eU();r.x=t.startx,r.y=t.starty,r.width=t.width||Bn.width,r.class="note";const a=e.append("g"),s=H0.drawRect(a,r),o=Obt();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=Bn.noteFontFamily,o.fontSize=Bn.noteFontSize,o.fontWeight=Bn.noteFontWeight,o.anchor=Bn.noteAlign,o.textMargin=Bn.noteMargin,o.valign="center";const u=OS(o.text)?await p5e(a,o):hW(a,o),h=Math.round(u.map(f=>(f._groups||f)[0][0].getBBox().height).reduce((f,p)=>f+p));s.attr("height",h+2*Bn.noteMargin),t.height+=h+2*Bn.noteMargin,ci.bumpVerticalPos(h+2*Bn.noteMargin),t.stopy=t.starty+h+2*Bn.noteMargin,t.stopx=t.startx+r.width,ci.insert(t.startx,t.starty,t.stopx,t.stopy),ci.models.addNote(t)},h$=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),xV=e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),Hht=e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight});async function Mva(e,t){ci.bumpVerticalPos(10);const{startx:r,stopx:a,message:s}=t,o=mi.splitBreaks(s).length,u=OS(s),h=u?await Xce(s,Qt()):il.calculateTextDimensions(s,h$(Bn));if(!u){const b=h.height/o;t.height+=b,ci.bumpVerticalPos(b)}let f,p=h.height-10;const m=h.width;if(r===a){f=ci.getVerticalPos()+p,Bn.rightAngles||(p+=Bn.boxMargin,f=ci.getVerticalPos()+p),p+=30;const b=mi.getMax(m/2,Bn.width/2);ci.insert(r-b,ci.getVerticalPos()-10+p,a+b,ci.getVerticalPos()+30+p)}else p+=Bn.boxMargin,f=ci.getVerticalPos()+p,ci.insert(r,f-10,a,f);return ci.bumpVerticalPos(p),t.height+=p,t.stopy=t.starty+t.height,ci.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),f}const Pva=async function(e,t,r,a){const{startx:s,stopx:o,starty:u,message:h,type:f,sequenceIndex:p,sequenceVisible:m}=t,b=il.calculateTextDimensions(h,h$(Bn)),_=Obt();_.x=s,_.y=u+10,_.width=o-s,_.class="messageText",_.dy="1em",_.text=h,_.fontFamily=Bn.messageFontFamily,_.fontSize=Bn.messageFontSize,_.fontWeight=Bn.messageFontWeight,_.anchor=Bn.messageAlign,_.valign="center",_.textMargin=Bn.wrapPadding,_.tspan=!1,OS(_.text)?await p5e(e,_,{startx:s,stopx:o,starty:r}):hW(e,_);const w=b.width;let S;s===o?Bn.rightAngles?S=e.append("path").attr("d",`M  ${s},${r} H ${s+mi.getMax(Bn.width/2,w/2)} V ${r+25} H ${s}`):S=e.append("path").attr("d","M "+s+","+r+" C "+(s+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)):(S=e.append("line"),S.attr("x1",s),S.attr("y1",r),S.attr("x2",o),S.attr("y2",r)),f===a.db.LINETYPE.DOTTED||f===a.db.LINETYPE.DOTTED_CROSS||f===a.db.LINETYPE.DOTTED_POINT||f===a.db.LINETYPE.DOTTED_OPEN?(S.style("stroke-dasharray","3, 3"),S.attr("class","messageLine1")):S.attr("class","messageLine0");let C="";Bn.arrowMarkerAbsolute&&(C=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,C=C.replace(/\(/g,"\\("),C=C.replace(/\)/g,"\\)")),S.attr("stroke-width",2),S.attr("stroke","none"),S.style("fill","none"),(f===a.db.LINETYPE.SOLID||f===a.db.LINETYPE.DOTTED)&&S.attr("marker-end","url("+C+"#arrowhead)"),(f===a.db.LINETYPE.SOLID_POINT||f===a.db.LINETYPE.DOTTED_POINT)&&S.attr("marker-end","url("+C+"#filled-head)"),(f===a.db.LINETYPE.SOLID_CROSS||f===a.db.LINETYPE.DOTTED_CROSS)&&S.attr("marker-end","url("+C+"#crosshead)"),(m||Bn.showSequenceNumbers)&&(S.attr("marker-start","url("+C+"#sequencenumber)"),e.append("text").attr("x",s).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(p))},Bva=async function(e,t,r,a,s,o,u){let h=0,f=0,p,m=0;for(const b of a){const _=t[b],w=_.box;p&&p!=w&&(ci.models.addBox(p),f+=Bn.boxMargin+p.margin),w&&w!=p&&(w.x=h+f,w.y=s,f+=w.margin),_.width=_.width||Bn.width,_.height=mi.getMax(_.height||Bn.height,Bn.height),_.margin=_.margin||Bn.actorMargin,m=mi.getMax(m,_.height),r[_.name]&&(f+=_.width/2),_.x=h+f,_.starty=ci.getVerticalPos(),ci.insert(_.x,s,_.x+_.width,_.height),h+=_.width+f,_.box&&(_.box.width=h+w.margin-_.box.x),f=_.margin,p=_.box,ci.models.addActor(_)}p&&ci.models.addBox(p),ci.bumpVerticalPos(m)},Vht=async function(e,t,r,a){if(a){let s=0;ci.bumpVerticalPos(Bn.boxMargin*2);for(const o of r){const u=t[o];u.stopy||(u.stopy=ci.getVerticalPos());const h=await H0.drawActor(e,u,Bn,!0);s=mi.getMax(s,h)}ci.bumpVerticalPos(s+Bn.boxMargin)}else for(const s of r){const o=t[s];await H0.drawActor(e,o,Bn,!1)}},rnr=function(e,t,r,a){let s=0,o=0;for(const u of r){const h=t[u],f=zva(h),p=H0.drawPopup(e,h,f,Bn,Bn.forceMenus,a);p.height>s&&(s=p.height),p.width+h.x>o&&(o=p.width+h.x)}return{maxHeight:s,maxWidth:o}},inr=function(e){Tg(Bn,e),e.fontFamily&&(Bn.actorFontFamily=Bn.noteFontFamily=Bn.messageFontFamily=e.fontFamily),e.fontSize&&(Bn.actorFontSize=Bn.noteFontSize=Bn.messageFontSize=e.fontSize),e.fontWeight&&(Bn.actorFontWeight=Bn.noteFontWeight=Bn.messageFontWeight=e.fontWeight)},x6e=function(e){return ci.activations.filter(function(t){return t.actor===e})},PCn=function(e,t){const r=t[e],a=x6e(e),s=a.reduce(function(u,h){return mi.getMin(u,h.startx)},r.x+r.width/2-1),o=a.reduce(function(u,h){return mi.getMax(u,h.stopx)},r.x+r.width/2+1);return[s,o]};function yC(e,t,r,a,s){ci.bumpVerticalPos(r);let o=a;if(t.id&&t.message&&e[t.id]){const u=e[t.id].width,h=h$(Bn);t.message=il.wrapLabel(`[${t.message}]`,u-2*Bn.wrapPadding,h),t.width=u,t.wrap=!0;const f=il.calculateTextDimensions(t.message,h),p=mi.getMax(f.height,Bn.labelBoxHeight);o=a+p,ut.debug(`${p} - ${t.message}`)}s(t),ci.bumpVerticalPos(o)}function Fva(e,t,r,a,s,o,u){function h(p,m){p.x<s[e.from].x?(ci.insert(t.stopx-m,t.starty,t.startx,t.stopy+p.height/2+Bn.noteMargin),t.stopx=t.stopx+m):(ci.insert(t.startx,t.starty,t.stopx+m,t.stopy+p.height/2+Bn.noteMargin),t.stopx=t.stopx-m)}function f(p,m){p.x<s[e.to].x?(ci.insert(t.startx-m,t.starty,t.stopx,t.stopy+p.height/2+Bn.noteMargin),t.startx=t.startx+m):(ci.insert(t.stopx,t.starty,t.startx+m,t.stopy+p.height/2+Bn.noteMargin),t.startx=t.startx-m)}if(o[e.to]==a){const p=s[e.to],m=p.type=="actor"?uF/2+3:p.width/2+3;h(p,m),p.starty=r-p.height/2,ci.bumpVerticalPos(p.height/2)}else if(u[e.from]==a){const p=s[e.from];if(Bn.mirrorActors){const m=p.type=="actor"?uF/2:p.width/2;f(p,m)}p.stopy=r-p.height/2,ci.bumpVerticalPos(p.height/2)}else if(u[e.to]==a){const p=s[e.to];if(Bn.mirrorActors){const m=p.type=="actor"?uF/2+3:p.width/2+3;h(p,m)}p.stopy=r-p.height/2,ci.bumpVerticalPos(p.height/2)}}const $va=async function(e,t,r,a){const{securityLevel:s,sequence:o}=Qt();Bn=o;let u;s==="sandbox"&&(u=gn("#i"+t));const h=gn(s==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=s==="sandbox"?u.nodes()[0].contentDocument:document;ci.init(),ut.debug(a.db);const p=s==="sandbox"?h.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=a.db.getActors(),b=a.db.getCreatedActors(),_=a.db.getDestroyedActors(),w=a.db.getBoxes();let S=a.db.getActorKeys();const C=a.db.getMessages(),A=a.db.getDiagramTitle(),k=a.db.hasAtLeastOneBox(),I=a.db.hasAtLeastOneBoxWithTitle(),N=await Uva(m,C,a);if(Bn.height=await Gva(m,N,w),H0.insertComputerIcon(p),H0.insertDatabaseIcon(p),H0.insertClockIcon(p),k&&(ci.bumpVerticalPos(Bn.boxMargin),I&&ci.bumpVerticalPos(w[0].textMaxHeight)),Bn.hideUnusedParticipants===!0){const j=new Set;C.forEach(ee=>{j.add(ee.from),j.add(ee.to)}),S=S.filter(ee=>j.has(ee))}await Bva(p,m,b,S,0);const L=await Vva(C,m,N,a);H0.insertArrowHead(p),H0.insertArrowCrossHead(p),H0.insertArrowFilledHead(p),H0.insertSequenceNumber(p);function P(j,ee){const te=ci.endActivation(j);te.starty+18>ee&&(te.starty=ee-6,ee+=12),H0.drawActivation(p,te,ee,Bn,x6e(j.from.actor).length),ci.insert(te.startx,ee-10,te.stopx,ee)}let M=1,F=1;const U=[],$=[];let G=0;for(const j of C){let ee,te,ne;switch(j.type){case a.db.LINETYPE.NOTE:ci.resetVerticalPos(),te=j.noteModel,await Dva(p,te);break;case a.db.LINETYPE.ACTIVE_START:ci.newActivation(j,p,m);break;case a.db.LINETYPE.ACTIVE_END:P(j,ci.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.LOOP_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"loop",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.RECT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin,se=>ci.newLoop(void 0,se.message));break;case a.db.LINETYPE.RECT_END:ee=ci.endLoop(),$.push(ee),ci.models.addLoop(ee),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos());break;case a.db.LINETYPE.OPT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.OPT_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"opt",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.ALT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.ALT_ELSE:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.ALT_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"alt",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se)),ci.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.PAR_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"par",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.AUTONUMBER:M=j.message.start||M,F=j.message.step||F,j.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.CRITICAL_OPTION:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.CRITICAL_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"critical",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.BREAK_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.BREAK_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"break",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;default:try{ne=j.msgModel,ne.starty=ci.getVerticalPos(),ne.sequenceIndex=M,ne.sequenceVisible=a.db.showSequenceNumbers();const se=await Mva(p,ne);Fva(j,ne,se,G,m,b,_),U.push({messageModel:ne,lineStartY:se}),ci.models.addMessage(ne)}catch(se){ut.error("error while drawing message",se)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT].includes(j.type)&&(M=M+F),G++}ut.debug("createdActors",b),ut.debug("destroyedActors",_),await Vht(p,m,S,!1);for(const j of U)await Pva(p,j.messageModel,j.lineStartY,a);Bn.mirrorActors&&await Vht(p,m,S,!0),$.forEach(j=>H0.drawBackgroundRect(p,j)),enr(p,m,S,Bn);for(const j of ci.models.boxes)j.height=ci.getVerticalPos()-j.y,ci.insert(j.x,j.y,j.x+j.width,j.height),j.startx=j.x,j.starty=j.y,j.stopx=j.startx+j.width,j.stopy=j.starty+j.height,j.stroke="rgb(0,0,0, 0.5)",await H0.drawBox(p,j,Bn);k&&ci.bumpVerticalPos(Bn.boxMargin);const B=rnr(p,m,S,f),{bounds:Z}=ci.getBounds();let z=Z.stopy-Z.starty;z<B.maxHeight&&(z=B.maxHeight);let Y=z+2*Bn.diagramMarginY;Bn.mirrorActors&&(Y=Y-Bn.boxMargin+Bn.bottomMarginAdj);let W=Z.stopx-Z.startx;W<B.maxWidth&&(W=B.maxWidth);const Q=W+2*Bn.diagramMarginX;A&&p.append("text").text(A).attr("x",(Z.stopx-Z.startx)/2-2*Bn.diagramMarginX).attr("y",-25),Db(p,Y,Q,Bn.useMaxWidth);const V=A?40:0;p.attr("viewBox",Z.startx-Bn.diagramMarginX+" -"+(Bn.diagramMarginY+V)+" "+Q+" "+(Y+V)),ut.debug("models:",ci.models)};async function Uva(e,t,r){const a={};for(const s of t)if(e[s.to]&&e[s.from]){const o=e[s.to];if(s.placement===r.db.PLACEMENT.LEFTOF&&!o.prevActor||s.placement===r.db.PLACEMENT.RIGHTOF&&!o.nextActor)continue;const u=s.placement!==void 0,h=!u,f=u?xV(Bn):h$(Bn),p=s.wrap?il.wrapLabel(s.message,Bn.width-2*Bn.wrapPadding,f):s.message,b=(OS(p)?await Xce(s.message,Qt()):il.calculateTextDimensions(p,f)).width+2*Bn.wrapPadding;h&&s.from===o.nextActor?a[s.to]=mi.getMax(a[s.to]||0,b):h&&s.from===o.prevActor?a[s.from]=mi.getMax(a[s.from]||0,b):h&&s.from===s.to?(a[s.from]=mi.getMax(a[s.from]||0,b/2),a[s.to]=mi.getMax(a[s.to]||0,b/2)):s.placement===r.db.PLACEMENT.RIGHTOF?a[s.from]=mi.getMax(a[s.from]||0,b):s.placement===r.db.PLACEMENT.LEFTOF?a[o.prevActor]=mi.getMax(a[o.prevActor]||0,b):s.placement===r.db.PLACEMENT.OVER&&(o.prevActor&&(a[o.prevActor]=mi.getMax(a[o.prevActor]||0,b/2)),o.nextActor&&(a[s.from]=mi.getMax(a[s.from]||0,b/2)))}return ut.debug("maxMessageWidthPerActor:",a),a}const zva=function(e){let t=0;const r=Hht(Bn);for(const a in e.links){const o=il.calculateTextDimensions(a,r).width+2*Bn.wrapPadding+2*Bn.boxMargin;t<o&&(t=o)}return t};async function Gva(e,t,r){let a=0;for(const o of Object.keys(e)){const u=e[o];u.wrap&&(u.description=il.wrapLabel(u.description,Bn.width-2*Bn.wrapPadding,Hht(Bn)));const h=OS(u.description)?await Xce(u.description,Qt()):il.calculateTextDimensions(u.description,Hht(Bn));u.width=u.wrap?Bn.width:mi.getMax(Bn.width,h.width+2*Bn.wrapPadding),u.height=u.wrap?mi.getMax(h.height,Bn.height):Bn.height,a=mi.getMax(a,u.height)}for(const o in t){const u=e[o];if(!u)continue;const h=e[u.nextActor];if(!h){const b=t[o]+Bn.actorMargin-u.width/2;u.margin=mi.getMax(b,Bn.actorMargin);continue}const p=t[o]+Bn.actorMargin-u.width/2-h.width/2;u.margin=mi.getMax(p,Bn.actorMargin)}let s=0;return r.forEach(o=>{const u=h$(Bn);let h=o.actorKeys.reduce((m,b)=>m+=e[b].width+(e[b].margin||0),0);h-=2*Bn.boxTextMargin,o.wrap&&(o.name=il.wrapLabel(o.name,h-2*Bn.wrapPadding,u));const f=il.calculateTextDimensions(o.name,u);s=mi.getMax(f.height,s);const p=mi.getMax(h,f.width+2*Bn.wrapPadding);if(o.margin=Bn.boxTextMargin,h<p){const m=(p-h)/2;o.margin+=m}}),r.forEach(o=>o.textMaxHeight=s),mi.getMax(a,Bn.height)}const qva=async function(e,t,r){const a=t[e.from].x,s=t[e.to].x,o=e.wrap&&e.message;let u=OS(e.message)?await Xce(e.message,Qt()):il.calculateTextDimensions(o?il.wrapLabel(e.message,Bn.width,xV(Bn)):e.message,xV(Bn));const h={width:o?Bn.width:mi.getMax(Bn.width,u.width+2*Bn.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(h.width=o?mi.getMax(Bn.width,u.width):mi.getMax(t[e.from].width/2+t[e.to].width/2,u.width+2*Bn.noteMargin),h.startx=a+(t[e.from].width+Bn.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(h.width=o?mi.getMax(Bn.width,u.width+2*Bn.noteMargin):mi.getMax(t[e.from].width/2+t[e.to].width/2,u.width+2*Bn.noteMargin),h.startx=a-h.width+(t[e.from].width-Bn.actorMargin)/2):e.to===e.from?(u=il.calculateTextDimensions(o?il.wrapLabel(e.message,mi.getMax(Bn.width,t[e.from].width),xV(Bn)):e.message,xV(Bn)),h.width=o?mi.getMax(Bn.width,t[e.from].width):mi.getMax(t[e.from].width,Bn.width,u.width+2*Bn.noteMargin),h.startx=a+(t[e.from].width-h.width)/2):(h.width=Math.abs(a+t[e.from].width/2-(s+t[e.to].width/2))+Bn.actorMargin,h.startx=a<s?a+t[e.from].width/2-Bn.actorMargin/2:s+t[e.to].width/2-Bn.actorMargin/2),o&&(h.message=il.wrapLabel(e.message,h.width-2*Bn.wrapPadding,xV(Bn))),ut.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${e.message}]`),h},Hva=function(e,t,r){if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(e.type))return{};const[a,s]=PCn(e.from,t),[o,u]=PCn(e.to,t),h=a<=o,f=h?s:a;let p=h?o:u;const m=Math.abs(o-u)>2,b=C=>h?-C:C;e.from===e.to?p=f:(e.activate&&!m&&(p+=b(Bn.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(p+=b(3)));const _=[a,s,o,u],w=Math.abs(f-p);e.wrap&&e.message&&(e.message=il.wrapLabel(e.message,mi.getMax(w+2*Bn.wrapPadding,Bn.width),h$(Bn)));const S=il.calculateTextDimensions(e.message,h$(Bn));return{width:mi.getMax(e.wrap?0:S.width+2*Bn.wrapPadding,w+2*Bn.wrapPadding,Bn.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,_),toBounds:Math.max.apply(null,_)}},Vva=async function(e,t,r,a){const s={},o=[];let u,h,f;for(const p of e){switch(p.id=il.random({length:10}),p.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:o.push({id:p.id,msg:p.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:p.message&&(u=o.pop(),s[u.id]=u,s[p.id]=u,o.push(u));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:u=o.pop(),s[u.id]=u;break;case a.db.LINETYPE.ACTIVE_START:{const b=t[p.from?p.from.actor:p.to.actor],_=x6e(p.from?p.from.actor:p.to.actor).length,w=b.x+b.width/2+(_-1)*Bn.activationWidth/2,S={startx:w,stopx:w+Bn.activationWidth,actor:p.from.actor,enabled:!0};ci.activations.push(S)}break;case a.db.LINETYPE.ACTIVE_END:{const b=ci.activations.map(_=>_.actor).lastIndexOf(p.from.actor);delete ci.activations.splice(b,1)[0]}break}p.placement!==void 0?(h=await qva(p,t,a),p.noteModel=h,o.forEach(b=>{u=b,u.from=mi.getMin(u.from,h.startx),u.to=mi.getMax(u.to,h.startx+h.width),u.width=mi.getMax(u.width,Math.abs(u.from-u.to))-Bn.labelBoxWidth})):(f=Hva(p,t,a),p.msgModel=f,f.startx&&f.stopx&&o.length>0&&o.forEach(b=>{if(u=b,f.startx===f.stopx){const _=t[p.from],w=t[p.to];u.from=mi.getMin(_.x-f.width/2,_.x-_.width/2,u.from),u.to=mi.getMax(w.x+f.width/2,w.x+_.width/2,u.to),u.width=mi.getMax(u.width,Math.abs(u.to-u.from))-Bn.labelBoxWidth}else u.from=mi.getMin(f.startx,u.from),u.to=mi.getMax(f.stopx,u.to),u.width=mi.getMax(u.width,f.width)-Bn.labelBoxWidth}))}return ci.activations=[],ut.debug("Loop type widths:",s),s},Yva={bounds:ci,drawActors:Vht,drawActorsPopup:rnr,setConf:inr,draw:$va},jva={parser:qya,db:MCn,renderer:Yva,styles:gva,init:({wrap:e})=>{MCn.setWrap(e)}},Wva=Object.freeze(Object.defineProperty({__proto__:null,diagram:jva},Symbol.toStringTag,{value:"Module"}));var Yht=function(){var e=function(Kt,Ft,Je,ht){for(Je=Je||{},ht=Kt.length;ht--;Je[Kt[ht]]=Ft);return Je},t=[1,17],r=[1,18],a=[1,19],s=[1,39],o=[1,40],u=[1,25],h=[1,23],f=[1,24],p=[1,31],m=[1,32],b=[1,33],_=[1,34],w=[1,35],S=[1,36],C=[1,26],A=[1,27],k=[1,28],I=[1,29],N=[1,43],L=[1,30],P=[1,42],M=[1,44],F=[1,41],U=[1,45],$=[1,9],G=[1,8,9],B=[1,56],Z=[1,57],z=[1,58],Y=[1,59],W=[1,60],Q=[1,61],V=[1,62],j=[1,8,9,39],ee=[1,74],te=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],ne=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],se=[13,74,80,95,97,98],ie=[13,64,65,74,80,95,97,98],ge=[13,59,60,61,62,63,74,80,95,97,98],ce=[1,93],be=[1,110],ve=[1,108],De=[1,102],ye=[1,103],Ee=[1,104],he=[1,105],we=[1,106],Ce=[1,107],Ie=[1,109],Le=[1,8,9,37,39,42],Fe=[1,8,9,21],Ve=[1,8,9,78],Oe=[1,8,9,21,73,74,78,80,81,82,83,84,85],Dt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",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:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(Ft,Je,ht,et,qe,He,Ge){var Ye=He.length-1;switch(qe){case 8:this.$=He[Ye-1];break;case 9:case 11:case 12:this.$=He[Ye];break;case 10:case 13:this.$=He[Ye-1]+He[Ye];break;case 14:case 15:this.$=He[Ye-1]+"~"+He[Ye]+"~";break;case 16:et.addRelation(He[Ye]);break;case 17:He[Ye-1].title=et.cleanupLabel(He[Ye]),et.addRelation(He[Ye-1]);break;case 27:this.$=He[Ye].trim(),et.setAccTitle(this.$);break;case 28:case 29:this.$=He[Ye].trim(),et.setAccDescription(this.$);break;case 30:et.addClassesToNamespace(He[Ye-3],He[Ye-1]);break;case 31:et.addClassesToNamespace(He[Ye-4],He[Ye-1]);break;case 32:this.$=He[Ye],et.addNamespace(He[Ye]);break;case 33:this.$=[He[Ye]];break;case 34:this.$=[He[Ye-1]];break;case 35:He[Ye].unshift(He[Ye-2]),this.$=He[Ye];break;case 37:et.setCssClass(He[Ye-2],He[Ye]);break;case 38:et.addMembers(He[Ye-3],He[Ye-1]);break;case 39:et.setCssClass(He[Ye-5],He[Ye-3]),et.addMembers(He[Ye-5],He[Ye-1]);break;case 40:this.$=He[Ye],et.addClass(He[Ye]);break;case 41:this.$=He[Ye-1],et.addClass(He[Ye-1]),et.setClassLabel(He[Ye-1],He[Ye]);break;case 42:et.addAnnotation(He[Ye],He[Ye-2]);break;case 43:this.$=[He[Ye]];break;case 44:He[Ye].push(He[Ye-1]),this.$=He[Ye];break;case 45:break;case 46:et.addMember(He[Ye-1],et.cleanupLabel(He[Ye]));break;case 47:break;case 48:break;case 49:this.$={id1:He[Ye-2],id2:He[Ye],relation:He[Ye-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:He[Ye-3],id2:He[Ye],relation:He[Ye-1],relationTitle1:He[Ye-2],relationTitle2:"none"};break;case 51:this.$={id1:He[Ye-3],id2:He[Ye],relation:He[Ye-2],relationTitle1:"none",relationTitle2:He[Ye-1]};break;case 52:this.$={id1:He[Ye-4],id2:He[Ye],relation:He[Ye-2],relationTitle1:He[Ye-3],relationTitle2:He[Ye-1]};break;case 53:et.addNote(He[Ye],He[Ye-1]);break;case 54:et.addNote(He[Ye]);break;case 55:et.setDirection("TB");break;case 56:et.setDirection("BT");break;case 57:et.setDirection("RL");break;case 58:et.setDirection("LR");break;case 59:this.$={type1:He[Ye-2],type2:He[Ye],lineType:He[Ye-1]};break;case 60:this.$={type1:"none",type2:He[Ye],lineType:He[Ye-1]};break;case 61:this.$={type1:He[Ye-1],type2:"none",lineType:He[Ye]};break;case 62:this.$={type1:"none",type2:"none",lineType:He[Ye]};break;case 63:this.$=et.relationType.AGGREGATION;break;case 64:this.$=et.relationType.EXTENSION;break;case 65:this.$=et.relationType.COMPOSITION;break;case 66:this.$=et.relationType.DEPENDENCY;break;case 67:this.$=et.relationType.LOLLIPOP;break;case 68:this.$=et.lineType.LINE;break;case 69:this.$=et.lineType.DOTTED_LINE;break;case 70:case 76:this.$=He[Ye-2],et.setClickEvent(He[Ye-1],He[Ye]);break;case 71:case 77:this.$=He[Ye-3],et.setClickEvent(He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-2],He[Ye]);break;case 72:this.$=He[Ye-2],et.setLink(He[Ye-1],He[Ye]);break;case 73:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye-1],He[Ye]);break;case 74:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-2],He[Ye]);break;case 75:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-2],He[Ye]),et.setTooltip(He[Ye-3],He[Ye-1]);break;case 78:this.$=He[Ye-3],et.setClickEvent(He[Ye-2],He[Ye-1],He[Ye]);break;case 79:this.$=He[Ye-4],et.setClickEvent(He[Ye-3],He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-3],He[Ye]);break;case 80:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye]);break;case 81:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-1],He[Ye]);break;case 82:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-1]),et.setTooltip(He[Ye-3],He[Ye]);break;case 83:this.$=He[Ye-5],et.setLink(He[Ye-4],He[Ye-2],He[Ye]),et.setTooltip(He[Ye-4],He[Ye-1]);break;case 84:this.$=He[Ye-2],et.setCssStyle(He[Ye-1],He[Ye]);break;case 85:et.setCssClass(He[Ye-1],He[Ye]);break;case 86:this.$=[He[Ye]];break;case 87:He[Ye-2].push(He[Ye]),this.$=He[Ye-2];break;case 89:this.$=He[Ye-1]+He[Ye];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:r,35:a,36:21,40:s,41:22,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e($,[2,5],{8:[1,46]}),{8:[1,47]},e(G,[2,16],{21:[1,48]}),e(G,[2,18]),e(G,[2,19]),e(G,[2,20]),e(G,[2,21]),e(G,[2,22]),e(G,[2,23]),e(G,[2,24]),e(G,[2,25]),e(G,[2,26]),{32:[1,49]},{34:[1,50]},e(G,[2,29]),e(G,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:B,60:Z,61:z,62:Y,63:W,64:Q,65:V}),{37:[1,63]},e(j,[2,36],{37:[1,65],42:[1,64]}),e(G,[2,47]),e(G,[2,48]),{16:66,74:N,80:P,95:M,97:F},{16:37,17:67,18:38,74:N,80:P,95:M,97:F,98:U},{16:37,17:68,18:38,74:N,80:P,95:M,97:F,98:U},{16:37,17:69,18:38,74:N,80:P,95:M,97:F,98:U},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:N,80:P,95:M,97:F,98:U},{13:ee,51:73},e(G,[2,55]),e(G,[2,56]),e(G,[2,57]),e(G,[2,58]),e(te,[2,11],{16:37,18:38,17:75,19:[1,76],74:N,80:P,95:M,97:F,98:U}),e(te,[2,12],{19:[1,77]}),{15:78,16:79,74:N,80:P,95:M,97:F},{16:37,17:80,18:38,74:N,80:P,95:M,97:F,98:U},e(ne,[2,112]),e(ne,[2,113]),e(ne,[2,114]),e(ne,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e($,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:t,33:r,35:a,40:s,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:r,35:a,36:21,40:s,41:22,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U},e(G,[2,17]),e(G,[2,27]),e(G,[2,28]),{13:[1,84],16:37,17:83,18:38,74:N,80:P,95:M,97:F,98:U},{49:85,57:54,58:55,59:B,60:Z,61:z,62:Y,63:W,64:Q,65:V},e(G,[2,46]),{58:86,64:Q,65:V},e(se,[2,62],{57:87,59:B,60:Z,61:z,62:Y,63:W}),e(ie,[2,63]),e(ie,[2,64]),e(ie,[2,65]),e(ie,[2,66]),e(ie,[2,67]),e(ge,[2,68]),e(ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:o},{16:91,74:N,80:P,95:M,97:F},{43:92,47:ce},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:be,73:ve,74:De,75:99,77:100,79:101,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie},{74:[1,111]},{13:ee,51:112},e(G,[2,54]),e(G,[2,117]),e(te,[2,13]),e(te,[2,14]),e(te,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:N,80:P,95:M,97:F},e(Le,[2,40],{11:114,12:[1,115]}),e($,[2,7]),{9:[1,116]},e(Fe,[2,49]),{16:37,17:117,18:38,74:N,80:P,95:M,97:F,98:U},{13:[1,119],16:37,17:118,18:38,74:N,80:P,95:M,97:F,98:U},e(se,[2,61],{57:120,59:B,60:Z,61:z,62:Y,63:W}),e(se,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:o},{8:[1,123],39:[2,33]},e(j,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:ce},{16:37,17:127,18:38,74:N,80:P,95:M,97:F,98:U},e(G,[2,70],{13:[1,128]}),e(G,[2,72],{13:[1,130],68:[1,129]}),e(G,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(G,[2,84],{78:[1,134]}),e(Ve,[2,86],{79:135,21:be,73:ve,74:De,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie}),e(Oe,[2,88]),e(Oe,[2,90]),e(Oe,[2,91]),e(Oe,[2,92]),e(Oe,[2,93]),e(Oe,[2,94]),e(Oe,[2,95]),e(Oe,[2,96]),e(Oe,[2,97]),e(Oe,[2,98]),e(G,[2,85]),e(G,[2,53]),{37:[2,10]},e(Le,[2,41]),{13:[1,136]},{1:[2,4]},e(Fe,[2,51]),e(Fe,[2,50]),{16:37,17:137,18:38,74:N,80:P,95:M,97:F,98:U},e(se,[2,59]),e(G,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:o},{43:140,47:ce},e(j,[2,38]),{39:[2,44]},e(G,[2,42]),e(G,[2,71]),e(G,[2,73]),e(G,[2,74],{68:[1,141]}),e(G,[2,77]),e(G,[2,78],{13:[1,142]}),e(G,[2,80],{13:[1,144],68:[1,143]}),{21:be,73:ve,74:De,77:145,79:101,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie},e(Oe,[2,89]),{14:[1,146]},e(Fe,[2,52]),e(G,[2,31]),{39:[2,35]},{39:[1,147]},e(G,[2,75]),e(G,[2,79]),e(G,[2,81]),e(G,[2,82],{68:[1,148]}),e(Ve,[2,87],{79:135,21:be,73:ve,74:De,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie}),e(Le,[2,8]),e(j,[2,39]),e(G,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(Ft,Je){if(Je.recoverable)this.trace(Ft);else{var ht=new Error(Ft);throw ht.hash=Je,ht}},parse:function(Ft){var Je=this,ht=[0],et=[],qe=[null],He=[],Ge=this.table,Ye="",Ae=0,Xe=0,fe=2,Qe=1,Ke=He.slice.call(arguments,1),mt=Object.create(this.lexer),lt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(lt.yy[$t]=this.yy[$t]);mt.setInput(Ft,lt.yy),lt.yy.lexer=mt,lt.yy.parser=this,typeof mt.yylloc>"u"&&(mt.yylloc={});var Ut=mt.yylloc;He.push(Ut);var Jt=mt.options&&mt.options.ranges;typeof lt.yy.parseError=="function"?this.parseError=lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wn(){var Ln;return Ln=et.pop()||mt.lex()||Qe,typeof Ln!="number"&&(Ln instanceof Array&&(et=Ln,Ln=et.pop()),Ln=Je.symbols_[Ln]||Ln),Ln}for(var Vn,Wn,Dn,zn,vn={},Cn,Ar,ur,On;;){if(Wn=ht[ht.length-1],this.defaultActions[Wn]?Dn=this.defaultActions[Wn]:((Vn===null||typeof Vn>"u")&&(Vn=wn()),Dn=Ge[Wn]&&Ge[Wn][Vn]),typeof Dn>"u"||!Dn.length||!Dn[0]){var Ir="";On=[];for(Cn in Ge[Wn])this.terminals_[Cn]&&Cn>fe&&On.push("'"+this.terminals_[Cn]+"'");mt.showPosition?Ir="Parse error on line "+(Ae+1)+`:
`+mt.showPosition()+`
Expecting `+On.join(", ")+", got '"+(this.terminals_[Vn]||Vn)+"'":Ir="Parse error on line "+(Ae+1)+": Unexpected "+(Vn==Qe?"end of input":"'"+(this.terminals_[Vn]||Vn)+"'"),this.parseError(Ir,{text:mt.match,token:this.terminals_[Vn]||Vn,line:mt.yylineno,loc:Ut,expected:On})}if(Dn[0]instanceof Array&&Dn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Wn+", token: "+Vn);switch(Dn[0]){case 1:ht.push(Vn),qe.push(mt.yytext),He.push(mt.yylloc),ht.push(Dn[1]),Vn=null,Xe=mt.yyleng,Ye=mt.yytext,Ae=mt.yylineno,Ut=mt.yylloc;break;case 2:if(Ar=this.productions_[Dn[1]][1],vn.$=qe[qe.length-Ar],vn._$={first_line:He[He.length-(Ar||1)].first_line,last_line:He[He.length-1].last_line,first_column:He[He.length-(Ar||1)].first_column,last_column:He[He.length-1].last_column},Jt&&(vn._$.range=[He[He.length-(Ar||1)].range[0],He[He.length-1].range[1]]),zn=this.performAction.apply(vn,[Ye,Xe,Ae,lt.yy,Dn[1],qe,He].concat(Ke)),typeof zn<"u")return zn;Ar&&(ht=ht.slice(0,-1*Ar*2),qe=qe.slice(0,-1*Ar),He=He.slice(0,-1*Ar)),ht.push(this.productions_[Dn[1]][0]),qe.push(vn.$),He.push(vn._$),ur=Ge[ht[ht.length-2]][ht[ht.length-1]],ht.push(ur);break;case 3:return!0}}return!0}},ot=function(){var Kt={EOF:1,parseError:function(Je,ht){if(this.yy.parser)this.yy.parser.parseError(Je,ht);else throw new Error(Je)},setInput:function(Ft,Je){return this.yy=Je||this.yy||{},this._input=Ft,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 Ft=this._input[0];this.yytext+=Ft,this.yyleng++,this.offset++,this.match+=Ft,this.matched+=Ft;var Je=Ft.match(/(?:\r\n?|\n).*/g);return Je?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ft},unput:function(Ft){var Je=Ft.length,ht=Ft.split(/(?:\r\n?|\n)/g);this._input=Ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Je),this.offset-=Je;var et=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),ht.length-1&&(this.yylineno-=ht.length-1);var qe=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:ht?(ht.length===et.length?this.yylloc.first_column:0)+et[et.length-ht.length].length-ht[0].length:this.yylloc.first_column-Je},this.options.ranges&&(this.yylloc.range=[qe[0],qe[0]+this.yyleng-Je]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ft){this.unput(this.match.slice(Ft))},pastInput:function(){var Ft=this.matched.substr(0,this.matched.length-this.match.length);return(Ft.length>20?"...":"")+Ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ft=this.match;return Ft.length<20&&(Ft+=this._input.substr(0,20-Ft.length)),(Ft.substr(0,20)+(Ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ft=this.pastInput(),Je=new Array(Ft.length+1).join("-");return Ft+this.upcomingInput()+`
`+Je+"^"},test_match:function(Ft,Je){var ht,et,qe;if(this.options.backtrack_lexer&&(qe={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&&(qe.yylloc.range=this.yylloc.range.slice(0))),et=Ft[0].match(/(?:\r\n?|\n).*/g),et&&(this.yylineno+=et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:et?et[et.length-1].length-et[et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ft[0].length},this.yytext+=Ft[0],this.match+=Ft[0],this.matches=Ft,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(Ft[0].length),this.matched+=Ft[0],ht=this.performAction.call(this,this.yy,this,Je,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var He in qe)this[He]=qe[He];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ft,Je,ht,et;this._more||(this.yytext="",this.match="");for(var qe=this._currentRules(),He=0;He<qe.length;He++)if(ht=this._input.match(this.rules[qe[He]]),ht&&(!Je||ht[0].length>Je[0].length)){if(Je=ht,et=He,this.options.backtrack_lexer){if(Ft=this.test_match(ht,qe[He]),Ft!==!1)return Ft;if(this._backtrack){Je=!1;continue}else return!1}else if(!this.options.flex)break}return Je?(Ft=this.test_match(Je,qe[et]),Ft!==!1?Ft:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Je=this.next();return Je||this.lex()},begin:function(Je){this.conditionStack.push(Je)},popState:function(){var Je=this.conditionStack.length-1;return Je>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(Je){return Je=this.conditionStack.length-1-Math.abs(Je||0),Je>=0?this.conditionStack[Je]:"INITIAL"},pushState:function(Je){this.begin(Je)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Je,ht,et,qe){switch(et){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_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)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,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],inclusive:!0}}};return Kt}();Dt.lexer=ot;function sn(){this.yy={}}return sn.prototype=Dt,Dt.Parser=sn,new sn}();Yht.parser=Yht;const anr=Yht,BCn=["#","+","~","-",""];class FCn{constructor(t,r){this.memberType=r,this.visibility="",this.classifier="";const a=J0(t,Qt());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+Nse(this.id);this.memberType==="method"&&(t+=`(${Nse(this.parameters.trim())})`,this.returnType&&(t+=" : "+Nse(this.returnType))),t=t.trim();const r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,s=t.match(a);if(s){const o=s[1]?s[1].trim():"";if(BCn.includes(o)&&(this.visibility=o),this.id=s[2].trim(),this.parameters=s[3]?s[3].trim():"",r=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",r===""){const u=this.returnType.substring(this.returnType.length-1);u.match(/[$*]/)&&(r=u,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=t.length,s=t.substring(0,1),o=t.substring(a-1);BCn.includes(s)&&(this.visibility=s),o.match(/[$*]/)&&(r=o),this.id=t.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const S6e="classId-";let myt=[],Yd={},g5e=[],$Cn=0,_9={},jht=0,Ale=[];const d$=e=>mi.sanitizeText(e,Qt()),f$=function(e){const t=mi.sanitizeText(e,Qt());let r="",a=t;if(t.indexOf("~")>0){const s=t.split("~");a=d$(s[0]),r=d$(s[1])}return{className:a,type:r}},Kva=function(e,t){const r=mi.sanitizeText(e,Qt());t&&(t=d$(t));const{className:a}=f$(r);Yd[a].label=t},m5e=function(e){const t=mi.sanitizeText(e,Qt()),{className:r,type:a}=f$(t);if(Object.hasOwn(Yd,r))return;const s=mi.sanitizeText(r,Qt());Yd[s]={id:s,type:a,label:s,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:S6e+s+"-"+$Cn},$Cn++},snr=function(e){const t=mi.sanitizeText(e,Qt());if(t in Yd)return Yd[t].domId;throw new Error("Class not found: "+t)},Xva=function(){myt=[],Yd={},g5e=[],Ale=[],Ale.push(lnr),_9={},jht=0,Mb()},Qva=function(e){return Yd[e]},Zva=function(){return Yd},Jva=function(){return myt},e2a=function(){return g5e},t2a=function(e){ut.debug("Adding relation: "+JSON.stringify(e)),m5e(e.id1),m5e(e.id2),e.id1=f$(e.id1).className,e.id2=f$(e.id2).className,e.relationTitle1=mi.sanitizeText(e.relationTitle1.trim(),Qt()),e.relationTitle2=mi.sanitizeText(e.relationTitle2.trim(),Qt()),myt.push(e)},n2a=function(e,t){const r=f$(e).className;Yd[r].annotations.push(t)},onr=function(e,t){m5e(e);const r=f$(e).className,a=Yd[r];if(typeof t=="string"){const s=t.trim();s.startsWith("<<")&&s.endsWith(">>")?a.annotations.push(d$(s.substring(2,s.length-2))):s.indexOf(")")>0?a.methods.push(new FCn(s,"method")):s&&a.members.push(new FCn(s,"attribute"))}},r2a=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(r=>onr(e,r)))},i2a=function(e,t){const r={id:`note${g5e.length}`,class:t,text:e};g5e.push(r)},a2a=function(e){return e.startsWith(":")&&(e=e.substring(1)),d$(e.trim())},byt=function(e,t){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=S6e+a),Yd[a]!==void 0&&Yd[a].cssClasses.push(t)})},s2a=function(e,t){e.split(",").forEach(function(r){t!==void 0&&(Yd[r].tooltip=d$(t))})},o2a=function(e,t){return t?_9[t].classes[e].tooltip:Yd[e].tooltip},l2a=function(e,t,r){const a=Qt();e.split(",").forEach(function(s){let o=s;s[0].match(/\d/)&&(o=S6e+o),Yd[o]!==void 0&&(Yd[o].link=il.formatUrl(t,a),a.securityLevel==="sandbox"?Yd[o].linkTarget="_top":typeof r=="string"?Yd[o].linkTarget=d$(r):Yd[o].linkTarget="_blank")}),byt(e,"clickable")},c2a=function(e,t,r){e.split(",").forEach(function(a){u2a(a,t,r),Yd[a].haveCallback=!0}),byt(e,"clickable")},u2a=function(e,t,r){const a=mi.sanitizeText(e,Qt());if(Qt().securityLevel!=="loose"||t===void 0)return;const o=a;if(Yd[o]!==void 0){const u=snr(o);let h=[];if(typeof r=="string"){h=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<h.length;f++){let p=h[f].trim();p.charAt(0)==='"'&&p.charAt(p.length-1)==='"'&&(p=p.substr(1,p.length-2)),h[f]=p}}h.length===0&&h.push(u),Ale.push(function(){const f=document.querySelector(`[id="${u}"]`);f!==null&&f.addEventListener("click",function(){il.runFunc(t,...h)},!1)})}},h2a=function(e){Ale.forEach(function(t){t(e)})},d2a={LINE:0,DOTTED_LINE:1},f2a={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},lnr=function(e){let t=gn(".mermaidTooltip");(t._groups||t)[0][0]===null&&(t=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(e).select("svg").selectAll("g.node").on("mouseover",function(){const s=gn(this);if(s.attr("title")===null)return;const u=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),s.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),gn(this).classed("hover",!1)})};Ale.push(lnr);let cnr="TB";const p2a=()=>cnr,g2a=e=>{cnr=e},m2a=function(e){_9[e]===void 0&&(_9[e]={id:e,classes:{},children:{},domId:S6e+e+"-"+jht},jht++)},b2a=function(e){return _9[e]},y2a=function(){return _9},v2a=function(e,t){if(_9[e]!==void 0)for(const r of t){const{className:a}=f$(r);Yd[a].parent=e,_9[e].classes[a]=Yd[a]}},_2a=function(e,t){const r=Yd[e];if(!(!t||!r))for(const a of t)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},b5e={setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,getConfig:()=>Qt().class,addClass:m5e,bindFunctions:h2a,clear:Xva,getClass:Qva,getClasses:Zva,getNotes:e2a,addAnnotation:n2a,addNote:i2a,getRelations:Jva,addRelation:t2a,getDirection:p2a,setDirection:g2a,addMember:onr,addMembers:r2a,cleanupLabel:a2a,lineType:d2a,relationType:f2a,setClickEvent:c2a,setCssClass:byt,setLink:l2a,getTooltip:o2a,setTooltip:s2a,lookUpDomId:snr,setDiagramTitle:Zw,getDiagramTitle:Tv,setClassLabel:Kva,addNamespace:m2a,addClassesToNamespace:v2a,getNamespace:b2a,getNamespaces:y2a,setCssStyle:_2a},w2a=e=>`g.classGroup text {
  fill: ${e.nodeBorder||e.classText};
  stroke: none;
  font-family: ${e.fontFamily};
  font-size: 10px;

  .title {
    font-weight: bolder;
  }

}

.nodeLabel, .edgeLabel {
  color: ${e.classText};
}
.edgeLabel .label rect {
  fill: ${e.mainBkg};
}
.label text {
  fill: ${e.classText};
}
.edgeLabel .label span {
  background: ${e.mainBkg};
}

.classTitle {
  font-weight: bolder;
}
.node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }


.divider {
  stroke: ${e.nodeBorder};
  stroke-width: 1;
}

g.clickable {
  cursor: pointer;
}

g.classGroup rect {
  fill: ${e.mainBkg};
  stroke: ${e.nodeBorder};
}

g.classGroup line {
  stroke: ${e.nodeBorder};
  stroke-width: 1;
}

.classLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${e.mainBkg};
  opacity: 0.5;
}

.classLabel .label {
  fill: ${e.nodeBorder};
  font-size: 10px;
}

.relation {
  stroke: ${e.lineColor};
  stroke-width: 1;
  fill: none;
}

.dashed-line{
  stroke-dasharray: 3;
}

.dotted-line{
  stroke-dasharray: 1 2;
}

#compositionStart, .composition {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#compositionEnd, .composition {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#dependencyStart, .dependency {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#dependencyStart, .dependency {
  fill: ${e.lineColor} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#extensionStart, .extension {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#extensionEnd, .extension {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#aggregationStart, .aggregation {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#aggregationEnd, .aggregation {
  fill: transparent !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#lollipopStart, .lollipop {
  fill: ${e.mainBkg} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

#lollipopEnd, .lollipop {
  fill: ${e.mainBkg} !important;
  stroke: ${e.lineColor} !important;
  stroke-width: 1;
}

.edgeTerminals {
  font-size: 11px;
  line-height: initial;
}

.classTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${e.textColor};
}
`,unr=w2a;let UCn=0;const E2a=function(e,t,r,a,s){const o=function(I){switch(I){case s.db.relationType.AGGREGATION:return"aggregation";case s.db.relationType.EXTENSION:return"extension";case s.db.relationType.COMPOSITION:return"composition";case s.db.relationType.DEPENDENCY:return"dependency";case s.db.relationType.LOLLIPOP:return"lollipop"}};t.points=t.points.filter(I=>!Number.isNaN(I.y));const u=t.points,h=r_().x(function(I){return I.x}).y(function(I){return I.y}).curve(j3),f=e.append("path").attr("d",h(u)).attr("id","edge"+UCn).attr("class","relation");let p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),r.relation.lineType==1&&f.attr("class","relation dashed-line"),r.relation.lineType==10&&f.attr("class","relation dotted-line"),r.relation.type1!=="none"&&f.attr("marker-start","url("+p+"#"+o(r.relation.type1)+"Start)"),r.relation.type2!=="none"&&f.attr("marker-end","url("+p+"#"+o(r.relation.type2)+"End)");let m,b;const _=t.points.length;let w=il.calcLabelPosition(t.points);m=w.x,b=w.y;let S,C,A,k;if(_%2!==0&&_>1){let I=il.calcCardinalityPosition(r.relation.type1!=="none",t.points,t.points[0]),N=il.calcCardinalityPosition(r.relation.type2!=="none",t.points,t.points[_-1]);ut.debug("cardinality_1_point "+JSON.stringify(I)),ut.debug("cardinality_2_point "+JSON.stringify(N)),S=I.x,C=I.y,A=N.x,k=N.y}if(r.title!==void 0){const I=e.append("g").attr("class","classLabel"),N=I.append("text").attr("class","label").attr("x",m).attr("y",b).attr("fill","red").attr("text-anchor","middle").text(r.title);window.label=N;const L=N.node().getBBox();I.insert("rect",":first-child").attr("class","box").attr("x",L.x-a.padding/2).attr("y",L.y-a.padding/2).attr("width",L.width+a.padding).attr("height",L.height+a.padding)}ut.info("Rendering relation "+JSON.stringify(r)),r.relationTitle1!==void 0&&r.relationTitle1!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",S).attr("y",C).attr("fill","black").attr("font-size","6").text(r.relationTitle1),r.relationTitle2!==void 0&&r.relationTitle2!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",A).attr("y",k).attr("fill","black").attr("font-size","6").text(r.relationTitle2),UCn++},x2a=function(e,t,r,a){ut.debug("Rendering class ",t,r);const s=t.id,o={id:s,label:t.id,width:0,height:0},u=e.append("g").attr("id",a.db.lookUpDomId(s)).attr("class","classGroup");let h;t.link?h=u.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):h=u.append("text").attr("y",r.textHeight+r.padding).attr("x",0);let f=!0;t.annotations.forEach(function(N){const L=h.append("tspan").text("«"+N+"»");f||L.attr("dy",r.textHeight),f=!1});let p=hnr(t);const m=h.append("tspan").text(p).attr("class","title");f||m.attr("dy",r.textHeight);const b=h.node().getBBox().height;let _,w,S;if(t.members.length>0){_=u.append("line").attr("x1",0).attr("y1",r.padding+b+r.dividerMargin/2).attr("y2",r.padding+b+r.dividerMargin/2);const N=u.append("text").attr("x",r.padding).attr("y",b+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");f=!0,t.members.forEach(function(L){zCn(N,L,f,r),f=!1}),w=N.node().getBBox()}if(t.methods.length>0){S=u.append("line").attr("x1",0).attr("y1",r.padding+b+r.dividerMargin+w.height).attr("y2",r.padding+b+r.dividerMargin+w.height);const N=u.append("text").attr("x",r.padding).attr("y",b+2*r.dividerMargin+w.height+r.textHeight).attr("fill","white").attr("class","classText");f=!0,t.methods.forEach(function(L){zCn(N,L,f,r),f=!1})}const C=u.node().getBBox();var A=" ";t.cssClasses.length>0&&(A=A+t.cssClasses.join(" "));const I=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",C.width+2*r.padding).attr("height",C.height+r.padding+.5*r.dividerMargin).attr("class",A).node().getBBox().width;return h.node().childNodes.forEach(function(N){N.setAttribute("x",(I-N.getBBox().width)/2)}),t.tooltip&&h.insert("title").text(t.tooltip),_&&_.attr("x2",I),S&&S.attr("x2",I),o.width=I,o.height=C.height+r.padding+.5*r.dividerMargin,o},hnr=function(e){let t=e.id;return e.type&&(t+="<"+Nse(e.type)+">"),t},S2a=function(e,t,r,a){ut.debug("Rendering note ",t,r);const s=t.id,o={id:s,text:t.text,width:0,height:0},u=e.append("g").attr("id",s).attr("class","classGroup");let h=u.append("text").attr("y",r.textHeight+r.padding).attr("x",0);const f=JSON.parse(`"${t.text}"`).split(`
`);f.forEach(function(_){ut.debug(`Adding line: ${_}`),h.append("tspan").text(_).attr("class","title").attr("dy",r.textHeight)});const p=u.node().getBBox(),b=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*r.padding).attr("height",p.height+f.length*r.textHeight+r.padding+.5*r.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(_){_.setAttribute("x",(b-_.getBBox().width)/2)}),o.width=b,o.height=p.height+f.length*r.textHeight+r.padding+.5*r.dividerMargin,o},zCn=function(e,t,r,a){const{displayText:s,cssStyle:o}=t.getDisplayDetails(),u=e.append("tspan").attr("x",a.padding).text(s);o!==""&&u.attr("style",t.cssStyle),r||u.attr("dy",a.textHeight)},Rat={getClassTitleString:hnr,drawClass:x2a,drawEdge:E2a,drawNote:S2a};let dSe={};const TEe=20,wie=function(e){const t=Object.entries(dSe).find(r=>r[1].label===e);if(t)return t[0]},T2a=function(e){e.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"),e.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"),e.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"),e.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"),e.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"),e.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"),e.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"),e.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")},C2a=function(e,t,r,a){const s=Qt().class;dSe={},ut.info("Rendering diagram "+e);const o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=h.select(`[id='${t}']`);T2a(f);const p=new F1({multigraph:!0});p.setGraph({isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),b=Object.keys(m);for(const I of b){const N=m[I],L=Rat.drawClass(f,N,s,a);dSe[L.id]=L,p.setNode(L.id,L),ut.info("Org height: "+L.height)}a.db.getRelations().forEach(function(I){ut.info("tjoho"+wie(I.id1)+wie(I.id2)+JSON.stringify(I)),p.setEdge(wie(I.id1),wie(I.id2),{relation:I},I.title||"DEFAULT")}),a.db.getNotes().forEach(function(I){ut.debug(`Adding note: ${JSON.stringify(I)}`);const N=Rat.drawNote(f,I,s,a);dSe[N.id]=N,p.setNode(N.id,N),I.class&&I.class in m&&p.setEdge(I.id,wie(I.class),{relation:{id1:I.id,id2:I.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),oK(p),p.nodes().forEach(function(I){I!==void 0&&p.node(I)!==void 0&&(ut.debug("Node "+I+": "+JSON.stringify(p.node(I))),h.select("#"+(a.db.lookUpDomId(I)||I)).attr("transform","translate("+(p.node(I).x-p.node(I).width/2)+","+(p.node(I).y-p.node(I).height/2)+" )"))}),p.edges().forEach(function(I){I!==void 0&&p.edge(I)!==void 0&&(ut.debug("Edge "+I.v+" -> "+I.w+": "+JSON.stringify(p.edge(I))),Rat.drawEdge(f,p.edge(I),p.edge(I).relation,s,a))});const S=f.node().getBBox(),C=S.width+TEe*2,A=S.height+TEe*2;Db(f,A,C,s.useMaxWidth);const k=`${S.x-TEe} ${S.y-TEe} ${C} ${A}`;ut.debug(`viewBox ${k}`),f.attr("viewBox",k)},A2a={draw:C2a},k2a={parser:anr,db:b5e,renderer:A2a,styles:unr,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,b5e.clear()}},R2a=Object.freeze(Object.defineProperty({__proto__:null,diagram:k2a},Symbol.toStringTag,{value:"Module"})),yyt=e=>mi.sanitizeText(e,Qt());let Wht={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const I2a=function(e,t,r,a){const s=Object.keys(e);ut.info("keys:",s),ut.info(e),s.forEach(function(o){var u,h;const f=e[o],m={shape:"rect",id:f.id,domId:f.domId,labelText:yyt(f.id),labelStyle:"",style:"fill: none; stroke: black",padding:((u=Qt().flowchart)==null?void 0:u.padding)??((h=Qt().class)==null?void 0:h.padding)};t.setNode(f.id,m),dnr(f.classes,t,r,a,f.id),ut.info("setNode",m)})},dnr=function(e,t,r,a,s){const o=Object.keys(e);ut.info("keys:",o),ut.info(e),o.filter(u=>e[u].parent==s).forEach(function(u){var h,f;const p=e[u],m=p.cssClasses.join(" "),b=Hw(p.styles),_=p.label??p.id,w=0,C={labelStyle:b.labelStyle,shape:"class_box",labelText:yyt(_),classData:p,rx:w,ry:w,class:m,style:b.style,id:p.id,domId:p.domId,tooltip:a.db.getTooltip(p.id,s)||"",haveCallback:p.haveCallback,link:p.link,width:p.type==="group"?500:void 0,type:p.type,padding:((h=Qt().flowchart)==null?void 0:h.padding)??((f=Qt().class)==null?void 0:f.padding)};t.setNode(p.id,C),s&&t.setParent(p.id,s),ut.info("setNode",C)})},N2a=function(e,t,r,a){ut.info(e),e.forEach(function(s,o){var u,h;const f=s,p="",m={labelStyle:"",style:""},b=f.text,_=0,S={labelStyle:m.labelStyle,shape:"note",labelText:yyt(b),noteData:f,rx:_,ry:_,class:p,style:m.style,id:f.id,domId:f.id,tooltip:"",type:"note",padding:((u=Qt().flowchart)==null?void 0:u.padding)??((h=Qt().class)==null?void 0:h.padding)};if(t.setNode(f.id,S),ut.info("setNode",S),!f.class||!(f.class in a))return;const C=r+o,A={id:`edgeNote${C}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:fS(Wht.curve,Cg)};t.setEdge(f.id,f.class,A,C)})},O2a=function(e,t){const r=Qt().flowchart;let a=0;e.forEach(function(s){var o;a++;const u={classes:"relation",pattern:s.relation.lineType==1?"dashed":"solid",id:`id_${s.id1}_${s.id2}_${a}`,arrowhead:s.type==="arrow_open"?"none":"normal",startLabelRight:s.relationTitle1==="none"?"":s.relationTitle1,endLabelLeft:s.relationTitle2==="none"?"":s.relationTitle2,arrowTypeStart:GCn(s.relation.type1),arrowTypeEnd:GCn(s.relation.type2),style:"fill:none",labelStyle:"",curve:fS(r==null?void 0:r.curve,Cg)};if(ut.info(u,s),s.style!==void 0){const h=Hw(s.style);u.style=h.style,u.labelStyle=h.labelStyle}s.text=s.title,s.text===void 0?s.style!==void 0&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",((o=Qt().flowchart)==null?void 0:o.htmlLabels)??Qt().htmlLabels?(u.labelType="html",u.label='<span class="edgeLabel">'+s.text+"</span>"):(u.labelType="text",u.label=s.text.replace(mi.lineBreakRegex,`
`),s.style===void 0&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"),u.labelStyle=u.labelStyle.replace("color:","fill:"))),t.setEdge(s.id1,s.id2,u,a)})},L2a=function(e){Wht={...Wht,...e}},D2a=async function(e,t,r,a){ut.info("Drawing class - ",t);const s=Qt().flowchart??Qt().class,o=Qt().securityLevel;ut.info("config:",s);const u=(s==null?void 0:s.nodeSpacing)??50,h=(s==null?void 0:s.rankSpacing)??50,f=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:u,ranksep:h,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),p=a.db.getNamespaces(),m=a.db.getClasses(),b=a.db.getRelations(),_=a.db.getNotes();ut.info(b),I2a(p,f,t,a),dnr(m,f,t,a),O2a(b,f),N2a(_,f,b.length+1,m);let w;o==="sandbox"&&(w=gn("#i"+t));const S=gn(o==="sandbox"?w.nodes()[0].contentDocument.body:"body"),C=S.select(`[id="${t}"]`),A=S.select("#"+t+" g");if(await Xbt(A,f,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),il.insertTitle(C,"classTitleText",(s==null?void 0:s.titleTopMargin)??5,a.db.getDiagramTitle()),oL(f,C,s==null?void 0:s.diagramPadding,s==null?void 0:s.useMaxWidth),!(s!=null&&s.htmlLabels)){const k=o==="sandbox"?w.nodes()[0].contentDocument:document,I=k.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const N of I){const L=N.getBBox(),P=k.createElementNS("http://www.w3.org/2000/svg","rect");P.setAttribute("rx",0),P.setAttribute("ry",0),P.setAttribute("width",L.width),P.setAttribute("height",L.height),N.insertBefore(P,N.firstChild)}}};function GCn(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const M2a={setConf:L2a,draw:D2a},P2a={parser:anr,db:b5e,renderer:M2a,styles:unr,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,b5e.clear()}},B2a=Object.freeze(Object.defineProperty({__proto__:null,diagram:P2a},Symbol.toStringTag,{value:"Module"}));var Kht=function(){var e=function(V,j,ee,te){for(ee=ee||{},te=V.length;te--;ee[V[te]]=j);return ee},t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,15],f=[1,16],p=[1,17],m=[1,18],b=[1,30],_=[1,19],w=[1,20],S=[1,21],C=[1,22],A=[1,23],k=[1,25],I=[1,26],N=[1,27],L=[1,28],P=[1,29],M=[1,32],F=[1,33],U=[1,34],$=[1,35],G=[1,31],B=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Z=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],z=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Y={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",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",30:"NOTE_TEXT",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:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(j,ee,te,ne,se,ie,ge){var ce=ie.length-1;switch(se){case 3:return ne.setRootDoc(ie[ce]),ie[ce];case 4:this.$=[];break;case 5:ie[ce]!="nl"&&(ie[ce-1].push(ie[ce]),this.$=ie[ce-1]);break;case 6:case 7:this.$=ie[ce];break;case 8:this.$="nl";break;case 11:this.$=ie[ce];break;case 12:const ye=ie[ce-1];ye.description=ne.trimColon(ie[ce]),this.$=ye;break;case 13:this.$={stmt:"relation",state1:ie[ce-2],state2:ie[ce]};break;case 14:const Ee=ne.trimColon(ie[ce]);this.$={stmt:"relation",state1:ie[ce-3],state2:ie[ce-1],description:Ee};break;case 18:this.$={stmt:"state",id:ie[ce-3],type:"default",description:"",doc:ie[ce-1]};break;case 19:var be=ie[ce],ve=ie[ce-2].trim();if(ie[ce].match(":")){var De=ie[ce].split(":");be=De[0],ve=[ve,De[1]]}this.$={stmt:"state",id:be,type:"default",description:ve};break;case 20:this.$={stmt:"state",id:ie[ce-3],type:"default",description:ie[ce-5],doc:ie[ce-1]};break;case 21:this.$={stmt:"state",id:ie[ce],type:"fork"};break;case 22:this.$={stmt:"state",id:ie[ce],type:"join"};break;case 23:this.$={stmt:"state",id:ie[ce],type:"choice"};break;case 24:this.$={stmt:"state",id:ne.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:ie[ce-1].trim(),note:{position:ie[ce-2].trim(),text:ie[ce].trim()}};break;case 28:this.$=ie[ce].trim(),ne.setAccTitle(this.$);break;case 29:case 30:this.$=ie[ce].trim(),ne.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:ie[ce-1].trim(),classes:ie[ce].trim()};break;case 33:this.$={stmt:"applyClass",id:ie[ce-1].trim(),styleClass:ie[ce].trim()};break;case 34:ne.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:ne.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:ne.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:ne.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:ie[ce].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:ie[ce-2].trim(),classes:[ie[ce].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:ie[ce-2].trim(),classes:[ie[ce].trim()],type:"default",description:""};break}},table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,5]),{9:36,10:12,11:13,12:14,15:h,16:f,18:p,21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,7]),e(B,[2,8]),e(B,[2,9]),e(B,[2,10]),e(B,[2,11],{13:[1,37],14:[1,38]}),e(B,[2,15]),{17:[1,39]},e(B,[2,17],{19:[1,40]}),{22:[1,41]},e(B,[2,21]),e(B,[2,22]),e(B,[2,23]),e(B,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},e(B,[2,27]),{33:[1,46]},{35:[1,47]},e(B,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},e(Z,[2,40],{51:[1,51]}),e(Z,[2,41],{51:[1,52]}),e(B,[2,34]),e(B,[2,35]),e(B,[2,36]),e(B,[2,37]),e(B,[2,6]),e(B,[2,12]),{12:53,23:b,50:G},e(B,[2,16]),e(z,s,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},e(B,[2,28]),e(B,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},e(B,[2,13],{13:[1,63]}),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,20:[1,64],21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},e(B,[2,31]),e(B,[2,32]),e(B,[2,33]),e(Z,[2,42]),e(Z,[2,43]),e(B,[2,14]),e(B,[2,18]),e(z,s,{7:68}),e(B,[2,25]),e(B,[2,26]),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,20:[1,69],21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(j,ee){if(ee.recoverable)this.trace(j);else{var te=new Error(j);throw te.hash=ee,te}},parse:function(j){var ee=this,te=[0],ne=[],se=[null],ie=[],ge=this.table,ce="",be=0,ve=0,De=2,ye=1,Ee=ie.slice.call(arguments,1),he=Object.create(this.lexer),we={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(we.yy[Ce]=this.yy[Ce]);he.setInput(j,we.yy),we.yy.lexer=he,we.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var Ie=he.yylloc;ie.push(Ie);var Le=he.options&&he.options.ranges;typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fe(){var qe;return qe=ne.pop()||he.lex()||ye,typeof qe!="number"&&(qe instanceof Array&&(ne=qe,qe=ne.pop()),qe=ee.symbols_[qe]||qe),qe}for(var Ve,Oe,Dt,ot,sn={},Kt,Ft,Je,ht;;){if(Oe=te[te.length-1],this.defaultActions[Oe]?Dt=this.defaultActions[Oe]:((Ve===null||typeof Ve>"u")&&(Ve=Fe()),Dt=ge[Oe]&&ge[Oe][Ve]),typeof Dt>"u"||!Dt.length||!Dt[0]){var et="";ht=[];for(Kt in ge[Oe])this.terminals_[Kt]&&Kt>De&&ht.push("'"+this.terminals_[Kt]+"'");he.showPosition?et="Parse error on line "+(be+1)+`:
`+he.showPosition()+`
Expecting `+ht.join(", ")+", got '"+(this.terminals_[Ve]||Ve)+"'":et="Parse error on line "+(be+1)+": Unexpected "+(Ve==ye?"end of input":"'"+(this.terminals_[Ve]||Ve)+"'"),this.parseError(et,{text:he.match,token:this.terminals_[Ve]||Ve,line:he.yylineno,loc:Ie,expected:ht})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+Ve);switch(Dt[0]){case 1:te.push(Ve),se.push(he.yytext),ie.push(he.yylloc),te.push(Dt[1]),Ve=null,ve=he.yyleng,ce=he.yytext,be=he.yylineno,Ie=he.yylloc;break;case 2:if(Ft=this.productions_[Dt[1]][1],sn.$=se[se.length-Ft],sn._$={first_line:ie[ie.length-(Ft||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(Ft||1)].first_column,last_column:ie[ie.length-1].last_column},Le&&(sn._$.range=[ie[ie.length-(Ft||1)].range[0],ie[ie.length-1].range[1]]),ot=this.performAction.apply(sn,[ce,ve,be,we.yy,Dt[1],se,ie].concat(Ee)),typeof ot<"u")return ot;Ft&&(te=te.slice(0,-1*Ft*2),se=se.slice(0,-1*Ft),ie=ie.slice(0,-1*Ft)),te.push(this.productions_[Dt[1]][0]),se.push(sn.$),ie.push(sn._$),Je=ge[te[te.length-2]][te[te.length-1]],te.push(Je);break;case 3:return!0}}return!0}},W=function(){var V={EOF:1,parseError:function(ee,te){if(this.yy.parser)this.yy.parser.parseError(ee,te);else throw new Error(ee)},setInput:function(j,ee){return this.yy=ee||this.yy||{},this._input=j,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 j=this._input[0];this.yytext+=j,this.yyleng++,this.offset++,this.match+=j,this.matched+=j;var ee=j.match(/(?:\r\n?|\n).*/g);return ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),j},unput:function(j){var ee=j.length,te=j.split(/(?:\r\n?|\n)/g);this._input=j+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var ne=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),te.length-1&&(this.yylineno-=te.length-1);var se=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:te?(te.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-te.length].length-te[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[se[0],se[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(j){this.unput(this.match.slice(j))},pastInput:function(){var j=this.matched.substr(0,this.matched.length-this.match.length);return(j.length>20?"...":"")+j.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var j=this.match;return j.length<20&&(j+=this._input.substr(0,20-j.length)),(j.substr(0,20)+(j.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var j=this.pastInput(),ee=new Array(j.length+1).join("-");return j+this.upcomingInput()+`
`+ee+"^"},test_match:function(j,ee){var te,ne,se;if(this.options.backtrack_lexer&&(se={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&&(se.yylloc.range=this.yylloc.range.slice(0))),ne=j[0].match(/(?:\r\n?|\n).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+j[0].length},this.yytext+=j[0],this.match+=j[0],this.matches=j,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(j[0].length),this.matched+=j[0],te=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),te)return te;if(this._backtrack){for(var ie in se)this[ie]=se[ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var j,ee,te,ne;this._more||(this.yytext="",this.match="");for(var se=this._currentRules(),ie=0;ie<se.length;ie++)if(te=this._input.match(this.rules[se[ie]]),te&&(!ee||te[0].length>ee[0].length)){if(ee=te,ne=ie,this.options.backtrack_lexer){if(j=this.test_match(te,se[ie]),j!==!1)return j;if(this._backtrack){ee=!1;continue}else return!1}else if(!this.options.flex)break}return ee?(j=this.test_match(ee,se[ne]),j!==!1?j:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ee=this.next();return ee||this.lex()},begin:function(ee){this.conditionStack.push(ee)},popState:function(){var ee=this.conditionStack.length-1;return ee>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(ee){return ee=this.conditionStack.length-1-Math.abs(ee||0),ee>=0?this.conditionStack[ee]:"INITIAL"},pushState:function(ee){this.begin(ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ee,te,ne,se){switch(ne){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),te.yytext=te.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),te.yytext=te.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),te.yytext=te.yytext.substr(2).trim(),30;case 64:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return te.yytext=te.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75: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,/^(?:%%(?!\{)[^\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:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return V}();Y.lexer=W;function Q(){this.yy={}}return Q.prototype=Y,Y.Parser=Q,new Q}();Kht.parser=Kht;const fnr=Kht,F2a="LR",$2a="TB",y5e="state",vyt="relation",U2a="classDef",z2a="applyClass",aue="default",pnr="divider",_yt="[*]",gnr="start",mnr=_yt,bnr="end",qCn="color",HCn="fill",G2a="bgFill",q2a=",";function ynr(){return{}}let vnr=F2a,v5e=[],Fse=ynr();const _nr=()=>({relations:[],states:{},documents:{}});let _5e={root:_nr()},vb=_5e.root,kle=0,VCn=0;const H2a={LINE:0,DOTTED_LINE:1},V2a={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},CEe=e=>JSON.parse(JSON.stringify(e)),Y2a=e=>{ut.info("Setting root doc",e),v5e=e},j2a=()=>v5e,fSe=(e,t,r)=>{if(t.stmt===vyt)fSe(e,t.state1,!0),fSe(e,t.state2,!1);else if(t.stmt===y5e&&(t.id==="[*]"?(t.id=r?e.id+"_start":e.id+"_end",t.start=r):t.id=t.id.trim()),t.doc){const a=[];let s=[],o;for(o=0;o<t.doc.length;o++)if(t.doc[o].type===pnr){const u=CEe(t.doc[o]);u.doc=CEe(s),a.push(u),s=[]}else s.push(t.doc[o]);if(a.length>0&&s.length>0){const u={stmt:y5e,id:ZQn(),type:"divider",doc:CEe(s)};a.push(CEe(u)),t.doc=a}t.doc.forEach(u=>fSe(t,u,!0))}},W2a=()=>(fSe({id:"root"},{id:"root",doc:v5e},!0),{id:"root",doc:v5e}),K2a=e=>{let t;e.doc?t=e.doc:t=e,ut.info(t),wnr(!0),ut.info("Extract",t),t.forEach(r=>{switch(r.stmt){case y5e:p$(r.id.trim(),r.type,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles);break;case vyt:Enr(r.state1,r.state2,r.description);break;case U2a:xnr(r.id.trim(),r.classes);break;case z2a:wyt(r.id.trim(),r.styleClass);break}})},p$=function(e,t=aue,r=null,a=null,s=null,o=null,u=null,h=null){const f=e==null?void 0:e.trim();vb.states[f]===void 0?(ut.info("Adding state ",f,a),vb.states[f]={id:f,descriptions:[],type:t,doc:r,note:s,classes:[],styles:[],textStyles:[]}):(vb.states[f].doc||(vb.states[f].doc=r),vb.states[f].type||(vb.states[f].type=t)),a&&(ut.info("Setting state description",f,a),typeof a=="string"&&Zht(f,a.trim()),typeof a=="object"&&a.forEach(p=>Zht(f,p.trim()))),s&&(vb.states[f].note=s,vb.states[f].note.text=mi.sanitizeText(vb.states[f].note.text,Qt())),o&&(ut.info("Setting state classes",f,o),(typeof o=="string"?[o]:o).forEach(m=>wyt(f,m.trim()))),u&&(ut.info("Setting state styles",f,u),(typeof u=="string"?[u]:u).forEach(m=>a_a(f,m.trim()))),h&&(ut.info("Setting state styles",f,u),(typeof h=="string"?[h]:h).forEach(m=>s_a(f,m.trim())))},wnr=function(e){_5e={root:_nr()},vb=_5e.root,kle=0,Fse=ynr(),e||Mb()},Rle=function(e){return vb.states[e]},X2a=function(){return vb.states},Q2a=function(){ut.info("Documents = ",_5e)},Z2a=function(){return vb.relations};function Xht(e=""){let t=e;return e===_yt&&(kle++,t=`${gnr}${kle}`),t}function Qht(e="",t=aue){return e===_yt?gnr:t}function J2a(e=""){let t=e;return e===mnr&&(kle++,t=`${bnr}${kle}`),t}function e_a(e="",t=aue){return e===mnr?bnr:t}function t_a(e,t,r){let a=Xht(e.id.trim()),s=Qht(e.id.trim(),e.type),o=Xht(t.id.trim()),u=Qht(t.id.trim(),t.type);p$(a,s,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),p$(o,u,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),vb.relations.push({id1:a,id2:o,relationTitle:mi.sanitizeText(r,Qt())})}const Enr=function(e,t,r){if(typeof e=="object")t_a(e,t,r);else{const a=Xht(e.trim()),s=Qht(e),o=J2a(t.trim()),u=e_a(t);p$(a,s),p$(o,u),vb.relations.push({id1:a,id2:o,title:mi.sanitizeText(r,Qt())})}},Zht=function(e,t){const r=vb.states[e],a=t.startsWith(":")?t.replace(":","").trim():t;r.descriptions.push(mi.sanitizeText(a,Qt()))},n_a=function(e){return e.substring(0,1)===":"?e.substr(2).trim():e.trim()},r_a=()=>(VCn++,"divider-id-"+VCn),xnr=function(e,t=""){Fse[e]===void 0&&(Fse[e]={id:e,styles:[],textStyles:[]});const r=Fse[e];t!=null&&t.split(q2a).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(a.match(qCn)){const u=s.replace(HCn,G2a).replace(qCn,HCn);r.textStyles.push(u)}r.styles.push(s)})},i_a=function(){return Fse},wyt=function(e,t){e.split(",").forEach(function(r){let a=Rle(r);if(a===void 0){const s=r.trim();p$(s),a=Rle(s)}a.classes.push(t)})},a_a=function(e,t){const r=Rle(e);r!==void 0&&r.textStyles.push(t)},s_a=function(e,t){const r=Rle(e);r!==void 0&&r.textStyles.push(t)},o_a=()=>vnr,l_a=e=>{vnr=e},c_a=e=>e&&e[0]===":"?e.substr(1).trim():e.trim(),w7={getConfig:()=>Qt().state,addState:p$,clear:wnr,getState:Rle,getStates:X2a,getRelations:Z2a,getClasses:i_a,getDirection:o_a,addRelation:Enr,getDividerId:r_a,setDirection:l_a,cleanupLabel:n_a,lineType:H2a,relationType:V2a,logDocuments:Q2a,getRootDoc:j2a,setRootDoc:Y2a,getRootDocV2:W2a,extract:K2a,trimColon:c_a,getAccTitle:Ev,setAccTitle:Pb,getAccDescription:Sv,setAccDescription:xv,addStyleClass:xnr,setCssClass:wyt,addDescription:Zht,setDiagramTitle:Zw,getDiagramTitle:Tv},u_a=e=>`
defs #statediagram-barbEnd {
    fill: ${e.transitionColor};
    stroke: ${e.transitionColor};
  }
g.stateGroup text {
  fill: ${e.nodeBorder};
  stroke: none;
  font-size: 10px;
}
g.stateGroup text {
  fill: ${e.textColor};
  stroke: none;
  font-size: 10px;

}
g.stateGroup .state-title {
  font-weight: bolder;
  fill: ${e.stateLabelColor};
}

g.stateGroup rect {
  fill: ${e.mainBkg};
  stroke: ${e.nodeBorder};
}

g.stateGroup line {
  stroke: ${e.lineColor};
  stroke-width: 1;
}

.transition {
  stroke: ${e.transitionColor};
  stroke-width: 1;
  fill: none;
}

.stateGroup .composit {
  fill: ${e.background};
  border-bottom: 1px
}

.stateGroup .alt-composit {
  fill: #e0e0e0;
  border-bottom: 1px
}

.state-note {
  stroke: ${e.noteBorderColor};
  fill: ${e.noteBkgColor};

  text {
    fill: ${e.noteTextColor};
    stroke: none;
    font-size: 10px;
  }
}

.stateLabel .box {
  stroke: none;
  stroke-width: 0;
  fill: ${e.mainBkg};
  opacity: 0.5;
}

.edgeLabel .label rect {
  fill: ${e.labelBackgroundColor};
  opacity: 0.5;
}
.edgeLabel .label text {
  fill: ${e.transitionLabelColor||e.tertiaryTextColor};
}
.label div .edgeLabel {
  color: ${e.transitionLabelColor||e.tertiaryTextColor};
}

.stateLabel text {
  fill: ${e.stateLabelColor};
  font-size: 10px;
  font-weight: bold;
}

.node circle.state-start {
  fill: ${e.specialStateColor};
  stroke: ${e.specialStateColor};
}

.node .fork-join {
  fill: ${e.specialStateColor};
  stroke: ${e.specialStateColor};
}

.node circle.state-end {
  fill: ${e.innerEndBackground};
  stroke: ${e.background};
  stroke-width: 1.5
}
.end-state-inner {
  fill: ${e.compositeBackground||e.background};
  // stroke: ${e.background};
  stroke-width: 1.5
}

.node rect {
  fill: ${e.stateBkg||e.mainBkg};
  stroke: ${e.stateBorder||e.nodeBorder};
  stroke-width: 1px;
}
.node polygon {
  fill: ${e.mainBkg};
  stroke: ${e.stateBorder||e.nodeBorder};;
  stroke-width: 1px;
}
#statediagram-barbEnd {
  fill: ${e.lineColor};
}

.statediagram-cluster rect {
  fill: ${e.compositeTitleBackground};
  stroke: ${e.stateBorder||e.nodeBorder};
  stroke-width: 1px;
}

.cluster-label, .nodeLabel {
  color: ${e.stateLabelColor};
}

.statediagram-cluster rect.outer {
  rx: 5px;
  ry: 5px;
}
.statediagram-state .divider {
  stroke: ${e.stateBorder||e.nodeBorder};
}

.statediagram-state .title-state {
  rx: 5px;
  ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
  fill: ${e.compositeBackground||e.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
  fill: ${e.altBackground?e.altBackground:"#efefef"};
}

.statediagram-cluster .inner {
  rx:0;
  ry:0;
}

.statediagram-state rect.basic {
  rx: 5px;
  ry: 5px;
}
.statediagram-state rect.divider {
  stroke-dasharray: 10,10;
  fill: ${e.altBackground?e.altBackground:"#efefef"};
}

.note-edge {
  stroke-dasharray: 5;
}

.statediagram-note rect {
  fill: ${e.noteBkgColor};
  stroke: ${e.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}
.statediagram-note rect {
  fill: ${e.noteBkgColor};
  stroke: ${e.noteBorderColor};
  stroke-width: 1px;
  rx: 0;
  ry: 0;
}

.statediagram-note text {
  fill: ${e.noteTextColor};
}

.statediagram-note .nodeLabel {
  color: ${e.noteTextColor};
}
.statediagram .edgeLabel {
  color: red; // ${e.noteTextColor};
}

#dependencyStart, #dependencyEnd {
  fill: ${e.lineColor};
  stroke: ${e.lineColor};
  stroke-width: 1;
}

.statediagramTitleText {
  text-anchor: middle;
  font-size: 18px;
  fill: ${e.textColor};
}
`,Snr=u_a,h_a=e=>e.append("circle").attr("class","start-state").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit).attr("cy",Qt().state.padding+Qt().state.sizeUnit),d_a=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Qt().state.textHeight).attr("class","divider").attr("x2",Qt().state.textHeight*2).attr("y1",0).attr("y2",0),f_a=(e,t)=>{const r=e.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+2*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.id),a=r.node().getBBox();return e.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",a.width+2*Qt().state.padding).attr("height",a.height+2*Qt().state.padding).attr("rx",Qt().state.radius),r},p_a=(e,t)=>{const r=function(_,w,S){const C=_.append("tspan").attr("x",2*Qt().state.padding).text(w);S||C.attr("dy",Qt().state.textHeight)},s=e.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+1.3*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),o=s.height,u=e.append("text").attr("x",Qt().state.padding).attr("y",o+Qt().state.padding*.4+Qt().state.dividerMargin+Qt().state.textHeight).attr("class","state-description");let h=!0,f=!0;t.descriptions.forEach(function(_){h||(r(u,_,f),f=!1),h=!1});const p=e.append("line").attr("x1",Qt().state.padding).attr("y1",Qt().state.padding+o+Qt().state.dividerMargin/2).attr("y2",Qt().state.padding+o+Qt().state.dividerMargin/2).attr("class","descr-divider"),m=u.node().getBBox(),b=Math.max(m.width,s.width);return p.attr("x2",b+3*Qt().state.padding),e.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",b+2*Qt().state.padding).attr("height",m.height+o+2*Qt().state.padding).attr("rx",Qt().state.radius),e},g_a=(e,t,r)=>{const a=Qt().state.padding,s=2*Qt().state.padding,o=e.node().getBBox(),u=o.width,h=o.x,f=e.append("text").attr("x",0).attr("y",Qt().state.titleShift).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.id),m=f.node().getBBox().width+s;let b=Math.max(m,u);b===u&&(b=b+s);let _;const w=e.node().getBBox();t.doc,_=h-a,m>u&&(_=(u-b)/2+a),Math.abs(h-w.x)<a&&m>u&&(_=h-(m-u)/2);const S=1-Qt().state.textHeight;return e.insert("rect",":first-child").attr("x",_).attr("y",S).attr("class",r?"alt-composit":"composit").attr("width",b).attr("height",w.height+Qt().state.textHeight+Qt().state.titleShift+1).attr("rx","0"),f.attr("x",_+a),m<=u&&f.attr("x",h+(b-s)/2-m/2+a),e.insert("rect",":first-child").attr("x",_).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",b).attr("height",Qt().state.textHeight*3).attr("rx",Qt().state.radius),e.insert("rect",":first-child").attr("x",_).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",b).attr("height",w.height+3+2*Qt().state.textHeight).attr("rx",Qt().state.radius),e},m_a=e=>(e.append("circle").attr("class","end-state-outer").attr("r",Qt().state.sizeUnit+Qt().state.miniPadding).attr("cx",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding).attr("cy",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit+2).attr("cy",Qt().state.padding+Qt().state.sizeUnit+2)),b_a=(e,t)=>{let r=Qt().state.forkWidth,a=Qt().state.forkHeight;if(t.parentId){let s=r;r=a,a=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",a).attr("x",Qt().state.padding).attr("y",Qt().state.padding)},y_a=(e,t,r,a)=>{let s=0;const o=a.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let u=e.replace(/\r\n/g,"<br/>");u=u.replace(/\n/g,"<br/>");const h=u.split(mi.lineBreakRegex);let f=1.25*Qt().state.noteMargin;for(const p of h){const m=p.trim();if(m.length>0){const b=o.append("tspan");if(b.text(m),f===0){const _=b.node().getBBox();f+=_.height}s+=f,b.attr("x",t+Qt().state.noteMargin),b.attr("y",r+s+1.25*Qt().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:s}},v_a=(e,t)=>{t.attr("class","state-note");const r=t.append("rect").attr("x",0).attr("y",Qt().state.padding),a=t.append("g"),{textWidth:s,textHeight:o}=y_a(e,0,0,a);return r.attr("height",o+2*Qt().state.noteMargin),r.attr("width",s+Qt().state.noteMargin*2),r},YCn=function(e,t){const r=t.id,a={id:r,label:t.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&h_a(s),t.type==="end"&&m_a(s),(t.type==="fork"||t.type==="join")&&b_a(s,t),t.type==="note"&&v_a(t.note.text,s),t.type==="divider"&&d_a(s),t.type==="default"&&t.descriptions.length===0&&f_a(s,t),t.type==="default"&&t.descriptions.length>0&&p_a(s,t);const o=s.node().getBBox();return a.width=o.width+2*Qt().state.padding,a.height=o.height+2*Qt().state.padding,a};let jCn=0;const __a=function(e,t,r){const a=function(f){switch(f){case w7.relationType.AGGREGATION:return"aggregation";case w7.relationType.EXTENSION:return"extension";case w7.relationType.COMPOSITION:return"composition";case w7.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter(f=>!Number.isNaN(f.y));const s=t.points,o=r_().x(function(f){return f.x}).y(function(f){return f.y}).curve(j3),u=e.append("path").attr("d",o(s)).attr("id","edge"+jCn).attr("class","transition");let h="";if(Qt().state.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),u.attr("marker-end","url("+h+"#"+a(w7.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const f=e.append("g").attr("class","stateLabel"),{x:p,y:m}=il.calcLabelPosition(t.points),b=mi.getRows(r.title);let _=0;const w=[];let S=0,C=0;for(let I=0;I<=b.length;I++){const N=f.append("text").attr("text-anchor","middle").text(b[I]).attr("x",p).attr("y",m+_),L=N.node().getBBox();S=Math.max(S,L.width),C=Math.min(C,L.x),ut.info(L.x,p,m+_),_===0&&(_=N.node().getBBox().height,ut.info("Title height",_,m)),w.push(N)}let A=_*b.length;if(b.length>1){const I=(b.length-1)*_*.5;w.forEach((N,L)=>N.attr("y",m+L*_-I)),A=_*b.length}const k=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",p-S/2-Qt().state.padding/2).attr("y",m-A/2-Qt().state.padding/2-3.5).attr("width",S+Qt().state.padding).attr("height",A+Qt().state.padding),ut.info(k)}jCn++};let kw;const Iat={},w_a=function(){},E_a=function(e){e.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")},x_a=function(e,t,r,a){kw=Qt().state;const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=s==="sandbox"?o.nodes()[0].contentDocument:document;ut.debug("Rendering diagram "+e);const f=u.select(`[id='${t}']`);E_a(f);const p=a.db.getRootDoc();Tnr(p,f,void 0,!1,u,h,a);const m=kw.padding,b=f.node().getBBox(),_=b.width+m*2,w=b.height+m*2,S=_*1.75;Db(f,w,S,kw.useMaxWidth),f.attr("viewBox",`${b.x-kw.padding}  ${b.y-kw.padding} `+_+" "+w)},S_a=e=>e?e.length*kw.fontSizeFactor:1,Tnr=(e,t,r,a,s,o,u)=>{const h=new F1({compound:!0,multigraph:!0});let f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt==="relation"){p=!1;break}r?h.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:p?1:kw.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):h.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:p?1:kw.edgeLengthFactor,nodeSep:p?1:50,ranker:"tight-tree",isMultiGraph:!0}),h.setDefaultEdgeLabel(function(){return{}}),u.db.extract(e);const m=u.db.getStates(),b=u.db.getRelations(),_=Object.keys(m);for(const k of _){const I=m[k];r&&(I.parentId=r);let N;if(I.doc){let L=t.append("g").attr("id",I.id).attr("class","stateGroup");N=Tnr(I.doc,L,I.id,!a,s,o,u);{L=g_a(L,I,a);let P=L.node().getBBox();N.width=P.width,N.height=P.height+kw.padding/2,Iat[I.id]={y:kw.compositTitleSize}}}else N=YCn(t,I);if(I.note){const L={descriptions:[],id:I.id+"-note",note:I.note,type:"note"},P=YCn(t,L);I.note.position==="left of"?(h.setNode(N.id+"-note",P),h.setNode(N.id,N)):(h.setNode(N.id,N),h.setNode(N.id+"-note",P)),h.setParent(N.id,N.id+"-group"),h.setParent(N.id+"-note",N.id+"-group")}else h.setNode(N.id,N)}ut.debug("Count=",h.nodeCount(),h);let w=0;b.forEach(function(k){w++,ut.debug("Setting edge",k),h.setEdge(k.id1,k.id2,{relation:k,width:S_a(k.title),height:kw.labelHeight*mi.getRows(k.title).length,labelpos:"c"},"id"+w)}),oK(h),ut.debug("Graph after layout",h.nodes());const S=t.node();h.nodes().forEach(function(k){k!==void 0&&h.node(k)!==void 0?(ut.warn("Node "+k+": "+JSON.stringify(h.node(k))),s.select("#"+S.id+" #"+k).attr("transform","translate("+(h.node(k).x-h.node(k).width/2)+","+(h.node(k).y+(Iat[k]?Iat[k].y:0)-h.node(k).height/2)+" )"),s.select("#"+S.id+" #"+k).attr("data-x-shift",h.node(k).x-h.node(k).width/2),o.querySelectorAll("#"+S.id+" #"+k+" .divider").forEach(N=>{const L=N.parentElement;let P=0,M=0;L&&(L.parentElement&&(P=L.parentElement.getBBox().width),M=parseInt(L.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),N.setAttribute("x1",0-M+8),N.setAttribute("x2",P-M-8)})):ut.debug("No Node "+k+": "+JSON.stringify(h.node(k)))});let C=S.getBBox();h.edges().forEach(function(k){k!==void 0&&h.edge(k)!==void 0&&(ut.debug("Edge "+k.v+" -> "+k.w+": "+JSON.stringify(h.edge(k))),__a(t,h.edge(k),h.edge(k).relation))}),C=S.getBBox();const A={id:r||"root",label:r||"root",width:0,height:0};return A.width=C.width+2*kw.padding,A.height=C.height+2*kw.padding,ut.debug("Doc rendered",A,h),A},T_a={setConf:w_a,draw:x_a},C_a={parser:fnr,db:w7,renderer:T_a,styles:Snr,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,w7.clear()}},A_a=Object.freeze(Object.defineProperty({__proto__:null,diagram:C_a},Symbol.toStringTag,{value:"Module"})),pSe="rect",Nat="rectWithTitle",k_a="start",R_a="end",I_a="divider",N_a="roundedWithTitle",O_a="note",L_a="noteGroup",dW="statediagram",D_a="state",M_a=`${dW}-${D_a}`,Cnr="transition",P_a="note",B_a="note-edge",F_a=`${Cnr} ${B_a}`,$_a=`${dW}-${P_a}`,U_a="cluster",z_a=`${dW}-${U_a}`,G_a="cluster-alt",q_a=`${dW}-${G_a}`,Anr="parent",knr="note",H_a="state",Eyt="----",V_a=`${Eyt}${knr}`,WCn=`${Eyt}${Anr}`,Rnr="fill:none",Inr="fill: #333",Nnr="c",Onr="text",Lnr="normal";let gSe={},aO=0;const Y_a=function(e){const t=Object.keys(e);for(const r of t)e[r]},j_a=function(e,t){return t.db.extract(t.db.getRootDocV2()),t.db.getClasses()};function W_a(e){return e==null?"":e.classes?e.classes.join(" "):""}function Oat(e="",t=0,r="",a=Eyt){const s=r!==null&&r.length>0?`${a}${r}`:"";return`${H_a}-${e}${s}-${t}`}const qae=(e,t,r,a,s,o)=>{const u=r.id,h=W_a(a[u]);if(u!=="root"){let f=pSe;r.start===!0&&(f=k_a),r.start===!1&&(f=R_a),r.type!==aue&&(f=r.type),gSe[u]||(gSe[u]={id:u,shape:f,description:mi.sanitizeText(u,Qt()),classes:`${h} ${M_a}`});const p=gSe[u];r.description&&(Array.isArray(p.description)?(p.shape=Nat,p.description.push(r.description)):p.description.length>0?(p.shape=Nat,p.description===u?p.description=[r.description]:p.description=[p.description,r.description]):(p.shape=pSe,p.description=r.description),p.description=mi.sanitizeTextOrArray(p.description,Qt())),p.description.length===1&&p.shape===Nat&&(p.shape=pSe),!p.type&&r.doc&&(ut.info("Setting cluster for ",u,Jht(r)),p.type="group",p.dir=Jht(r),p.shape=r.type===pnr?I_a:N_a,p.classes=p.classes+" "+z_a+" "+(o?q_a:""));const m={labelStyle:"",shape:p.shape,labelText:p.description,classes:p.classes,style:"",id:u,dir:p.dir,domId:Oat(u,aO),type:p.type,padding:15};if(m.centerLabel=!0,r.note){const b={labelStyle:"",shape:O_a,labelText:r.note.text,classes:$_a,style:"",id:u+V_a+"-"+aO,domId:Oat(u,aO,knr),type:p.type,padding:15},_={labelStyle:"",shape:L_a,labelText:r.note.text,classes:p.classes,style:"",id:u+WCn,domId:Oat(u,aO,Anr),type:"group",padding:0};aO++;const w=u+WCn;e.setNode(w,_),e.setNode(b.id,b),e.setNode(u,m),e.setParent(u,w),e.setParent(b.id,w);let S=u,C=b.id;r.note.position==="left of"&&(S=b.id,C=u),e.setEdge(S,C,{arrowhead:"none",arrowType:"",style:Rnr,labelStyle:"",classes:F_a,arrowheadStyle:Inr,labelpos:Nnr,labelType:Onr,thickness:Lnr})}else e.setNode(u,m)}t&&t.id!=="root"&&(ut.trace("Setting node ",u," to be child of its parent ",t.id),e.setParent(u,t.id)),r.doc&&(ut.trace("Adding nodes children "),K_a(e,r,r.doc,a,s,!o))},K_a=(e,t,r,a,s,o)=>{ut.trace("items",r),r.forEach(u=>{switch(u.stmt){case y5e:qae(e,t,u,a,s,o);break;case aue:qae(e,t,u,a,s,o);break;case vyt:{qae(e,t,u.state1,a,s,o),qae(e,t,u.state2,a,s,o);const h={id:"edge"+aO,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Rnr,labelStyle:"",label:mi.sanitizeText(u.description,Qt()),arrowheadStyle:Inr,labelpos:Nnr,labelType:Onr,thickness:Lnr,classes:Cnr};e.setEdge(u.state1.id,u.state2.id,h,aO),aO++}break}})},Jht=(e,t=$2a)=>{let r=t;if(e.doc)for(let a=0;a<e.doc.length;a++){const s=e.doc[a];s.stmt==="dir"&&(r=s.value)}return r},X_a=async function(e,t,r,a){ut.info("Drawing state diagram (v2)",t),gSe={},a.db.getDirection();const{securityLevel:s,state:o}=Qt(),u=o.nodeSpacing||50,h=o.rankSpacing||50;ut.info(a.db.getRootDocV2()),a.db.extract(a.db.getRootDocV2()),ut.info(a.db.getRootDocV2());const f=a.db.getStates(),p=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:Jht(a.db.getRootDocV2()),nodesep:u,ranksep:h,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});qae(p,void 0,a.db.getRootDocV2(),f,a.db,!0);let m;s==="sandbox"&&(m=gn("#i"+t));const b=gn(s==="sandbox"?m.nodes()[0].contentDocument.body:"body"),_=b.select(`[id="${t}"]`),w=b.select("#"+t+" g");await Xbt(w,p,["barb"],dW,t);const S=8;il.insertTitle(_,"statediagramTitleText",o.titleTopMargin,a.db.getDiagramTitle());const C=_.node().getBBox(),A=C.width+S*2,k=C.height+S*2;_.attr("class",dW);const I=_.node().getBBox();Db(_,k,A,o.useMaxWidth);const N=`${I.x-S} ${I.y-S} ${A} ${k}`;ut.debug(`viewBox ${N}`),_.attr("viewBox",N);const L=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const P of L){const M=P.getBBox(),F=document.createElementNS("http://www.w3.org/2000/svg",pSe);F.setAttribute("rx",0),F.setAttribute("ry",0),F.setAttribute("width",M.width),F.setAttribute("height",M.height),P.insertBefore(F,P.firstChild)}},Q_a={setConf:Y_a,getClasses:j_a,draw:X_a},Z_a={parser:fnr,db:w7,renderer:Q_a,styles:Snr,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,w7.clear()}},J_a=Object.freeze(Object.defineProperty({__proto__:null,diagram:Z_a},Symbol.toStringTag,{value:"Module"}));var edt=function(){var e=function(b,_,w,S){for(w=w||{},S=b.length;S--;w[b[S]]=_);return w},t=[6,8,10,11,12,14,16,17,18],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,14],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(_,w,S,C,A,k,I){var N=k.length-1;switch(A){case 1:return k[N-1];case 2:this.$=[];break;case 3:k[N-1].push(k[N]),this.$=k[N-1];break;case 4:case 5:this.$=k[N];break;case 6:case 7:this.$=[];break;case 8:C.setDiagramTitle(k[N].substr(6)),this.$=k[N].substr(6);break;case 9:this.$=k[N].trim(),C.setAccTitle(this.$);break;case 10:case 11:this.$=k[N].trim(),C.setAccDescription(this.$);break;case 12:C.addSection(k[N].substr(8)),this.$=k[N].substr(8);break;case 13:C.addTask(k[N-1],k[N]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:function(_,w){if(w.recoverable)this.trace(_);else{var S=new Error(_);throw S.hash=w,S}},parse:function(_){var w=this,S=[0],C=[],A=[null],k=[],I=this.table,N="",L=0,P=0,M=2,F=1,U=k.slice.call(arguments,1),$=Object.create(this.lexer),G={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(G.yy[B]=this.yy[B]);$.setInput(_,G.yy),G.yy.lexer=$,G.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var Z=$.yylloc;k.push(Z);var z=$.options&&$.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var ce;return ce=C.pop()||$.lex()||F,typeof ce!="number"&&(ce instanceof Array&&(C=ce,ce=C.pop()),ce=w.symbols_[ce]||ce),ce}for(var W,Q,V,j,ee={},te,ne,se,ie;;){if(Q=S[S.length-1],this.defaultActions[Q]?V=this.defaultActions[Q]:((W===null||typeof W>"u")&&(W=Y()),V=I[Q]&&I[Q][W]),typeof V>"u"||!V.length||!V[0]){var ge="";ie=[];for(te in I[Q])this.terminals_[te]&&te>M&&ie.push("'"+this.terminals_[te]+"'");$.showPosition?ge="Parse error on line "+(L+1)+`:
`+$.showPosition()+`
Expecting `+ie.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ge="Parse error on line "+(L+1)+": Unexpected "+(W==F?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ge,{text:$.match,token:this.terminals_[W]||W,line:$.yylineno,loc:Z,expected:ie})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+W);switch(V[0]){case 1:S.push(W),A.push($.yytext),k.push($.yylloc),S.push(V[1]),W=null,P=$.yyleng,N=$.yytext,L=$.yylineno,Z=$.yylloc;break;case 2:if(ne=this.productions_[V[1]][1],ee.$=A[A.length-ne],ee._$={first_line:k[k.length-(ne||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(ne||1)].first_column,last_column:k[k.length-1].last_column},z&&(ee._$.range=[k[k.length-(ne||1)].range[0],k[k.length-1].range[1]]),j=this.performAction.apply(ee,[N,P,L,G.yy,V[1],A,k].concat(U)),typeof j<"u")return j;ne&&(S=S.slice(0,-1*ne*2),A=A.slice(0,-1*ne),k=k.slice(0,-1*ne)),S.push(this.productions_[V[1]][0]),A.push(ee.$),k.push(ee._$),se=I[S[S.length-2]][S[S.length-1]],S.push(se);break;case 3:return!0}}return!0}},p=function(){var b={EOF:1,parseError:function(w,S){if(this.yy.parser)this.yy.parser.parseError(w,S);else throw new Error(w)},setInput:function(_,w){return this.yy=w||this.yy||{},this._input=_,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 _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var w=_.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var w=_.length,S=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var C=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),S.length-1&&(this.yylineno-=S.length-1);var A=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:S?(S.length===C.length?this.yylloc.first_column:0)+C[C.length-S.length].length-S[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),w=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+w+"^"},test_match:function(_,w){var S,C,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),C=_[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],S=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var k in A)this[k]=A[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,w,S,C;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),k=0;k<A.length;k++)if(S=this._input.match(this.rules[A[k]]),S&&(!w||S[0].length>w[0].length)){if(w=S,C=k,this.options.backtrack_lexer){if(_=this.test_match(S,A[k]),_!==!1)return _;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(_=this.test_match(w,A[C]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var w=this.next();return w||this.lex()},begin:function(w){this.conditionStack.push(w)},popState:function(){var w=this.conditionStack.length-1;return w>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(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,S,C,A){switch(C){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\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:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return b}();f.lexer=p;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();edt.parser=edt;const ewa=edt;let fW="";const xyt=[],Ile=[],Nle=[],twa=function(){xyt.length=0,Ile.length=0,fW="",Nle.length=0,Mb()},nwa=function(e){fW=e,xyt.push(e)},rwa=function(){return xyt},iwa=function(){let e=KCn();const t=100;let r=0;for(;!e&&r<t;)e=KCn(),r++;return Ile.push(...Nle),Ile},awa=function(){const e=[];return Ile.forEach(r=>{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},swa=function(e,t){const r=t.substr(1).split(":");let a=0,s=[];r.length===1?(a=Number(r[0]),s=[]):(a=Number(r[0]),s=r[1].split(","));const o=s.map(h=>h.trim()),u={section:fW,type:fW,people:o,task:e,score:a};Nle.push(u)},owa=function(e){const t={section:fW,type:fW,description:e,task:e,classes:[]};Ile.push(t)},KCn=function(){const e=function(r){return Nle[r].processed};let t=!0;for(const[r,a]of Nle.entries())e(r),t=t&&a.processed;return t},lwa=function(){return awa()},XCn={getConfig:()=>Qt().journey,clear:twa,setDiagramTitle:Zw,getDiagramTitle:Tv,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addSection:nwa,getSections:rwa,getTasks:iwa,addTask:swa,addTaskOrg:owa,getActors:lwa},cwa=e=>`.label {
    font-family: 'trebuchet ms', verdana, arial, sans-serif;
    font-family: var(--mermaid-font-family);
    color: ${e.textColor};
  }
  .mouth {
    stroke: #666;
  }

  line {
    stroke: ${e.textColor}
  }

  .legend {
    fill: ${e.textColor};
  }

  .label text {
    fill: #333;
  }
  .label {
    color: ${e.textColor}
  }

  .face {
    ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};
    stroke: #999;
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 1.5px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.5;
    }
    text-align: center;
  }

  .cluster rect {
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: 'trebuchet ms', verdana, arial, sans-serif;
    font-family: var(--mermaid-font-family);
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .task-type-0, .section-type-0  {
    ${e.fillType0?`fill: ${e.fillType0}`:""};
  }
  .task-type-1, .section-type-1  {
    ${e.fillType0?`fill: ${e.fillType1}`:""};
  }
  .task-type-2, .section-type-2  {
    ${e.fillType0?`fill: ${e.fillType2}`:""};
  }
  .task-type-3, .section-type-3  {
    ${e.fillType0?`fill: ${e.fillType3}`:""};
  }
  .task-type-4, .section-type-4  {
    ${e.fillType0?`fill: ${e.fillType4}`:""};
  }
  .task-type-5, .section-type-5  {
    ${e.fillType0?`fill: ${e.fillType5}`:""};
  }
  .task-type-6, .section-type-6  {
    ${e.fillType0?`fill: ${e.fillType6}`:""};
  }
  .task-type-7, .section-type-7  {
    ${e.fillType0?`fill: ${e.fillType7}`:""};
  }

  .actor-0 {
    ${e.actor0?`fill: ${e.actor0}`:""};
  }
  .actor-1 {
    ${e.actor1?`fill: ${e.actor1}`:""};
  }
  .actor-2 {
    ${e.actor2?`fill: ${e.actor2}`:""};
  }
  .actor-3 {
    ${e.actor3?`fill: ${e.actor3}`:""};
  }
  .actor-4 {
    ${e.actor4?`fill: ${e.actor4}`:""};
  }
  .actor-5 {
    ${e.actor5?`fill: ${e.actor5}`:""};
  }
`,uwa=cwa,Syt=function(e,t){return d6e(e,t)},hwa=function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(s):t.score<3?u(s):h(s),a},Dnr=function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},Mnr=function(e,t){return Cca(e,t)},dwa=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Mnr(e,t)},fwa=function(e,t,r){const a=e.append("g"),s=eU();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,Syt(a,s),Pnr(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)};let QCn=-1;const pwa=function(e,t,r){const a=t.x+r.width/2,s=e.append("g");QCn++;const o=300+5*30;s.append("line").attr("id","task"+QCn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),hwa(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=eU();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,Syt(s,u);let h=t.x+14;t.people.forEach(f=>{const p=t.actors[f].color,m={cx:h,cy:t.y,r:7,fill:p,stroke:"#000",title:f,pos:t.actors[f].position};Dnr(s,m),h+=10}),Pnr(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},gwa=function(e,t){bJn(e,t)},Pnr=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(/<br\s*\/?>/gi);for(let A=0;A<C.length;A++){const k=A*w-w*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).attr("fill",_).style("text-anchor","middle").style("font-size",w).style("font-family",S);I.append("tspan").attr("x",u+f/2).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}function a(s,o){for(const u in o)u in o&&s.attr(u,o[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),mwa=function(e){e.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")},Ole={drawRect:Syt,drawCircle:Dnr,drawSection:fwa,drawText:Mnr,drawLabel:dwa,drawTask:pwa,drawBackgroundRect:gwa,initGraphics:mwa},bwa=function(e){Object.keys(e).forEach(function(r){T6e[r]=e[r]})},D7={};function ywa(e){const t=Qt().journey;let r=60;Object.keys(D7).forEach(a=>{const s=D7[a].color,o={cx:20,cy:r,r:7,fill:s,stroke:"#000",pos:D7[a].position};Ole.drawCircle(e,o);const u={x:40,y:r+7,fill:"#666",text:a,textMargin:t.boxTextMargin|5};Ole.drawText(e,u),r+=20})}const T6e=Qt().journey,HB=T6e.leftMargin,vwa=function(e,t,r,a){const s=Qt().journey,o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body");Wx.init();const f=h.select("#"+t);Ole.initGraphics(f);const p=a.db.getTasks(),m=a.db.getDiagramTitle(),b=a.db.getActors();for(const k in D7)delete D7[k];let _=0;b.forEach(k=>{D7[k]={color:s.actorColours[_%s.actorColours.length],position:_},_++}),ywa(f),Wx.insert(0,0,HB,Object.keys(D7).length*50),_wa(f,p,0);const w=Wx.getBounds();m&&f.append("text").text(m).attr("x",HB).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const S=w.stopy-w.starty+2*s.diagramMarginY,C=HB+w.stopx+2*s.diagramMarginX;Db(f,S,C,s.useMaxWidth),f.append("line").attr("x1",HB).attr("y1",s.height*4).attr("x2",C-HB-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const A=m?70:0;f.attr("viewBox",`${w.startx} -25 ${C} ${S+A}`),f.attr("preserveAspectRatio","xMinYMin meet"),f.attr("height",S+A+25)},Wx={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(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},updateBounds:function(e,t,r,a){const s=Qt().journey,o=this;let u=0;function h(f){return function(m){u++;const b=o.sequenceItems.length-u+1;o.updateVal(m,"starty",t-b*s.boxMargin,Math.min),o.updateVal(m,"stopy",a+b*s.boxMargin,Math.max),o.updateVal(Wx.data,"startx",e-b*s.boxMargin,Math.min),o.updateVal(Wx.data,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(m,"startx",e-b*s.boxMargin,Math.min),o.updateVal(m,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(Wx.data,"starty",t-b*s.boxMargin,Math.min),o.updateVal(Wx.data,"stopy",a+b*s.boxMargin,Math.max)}}this.sequenceItems.forEach(h())},insert:function(e,t,r,a){const s=Math.min(e,r),o=Math.max(e,r),u=Math.min(t,a),h=Math.max(t,a);this.updateVal(Wx.data,"startx",s,Math.min),this.updateVal(Wx.data,"starty",u,Math.min),this.updateVal(Wx.data,"stopx",o,Math.max),this.updateVal(Wx.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Lat=T6e.sectionFills,ZCn=T6e.sectionColours,_wa=function(e,t,r){const a=Qt().journey;let s="";const o=a.height*2+a.diagramMarginY,u=r+o;let h=0,f="#CCC",p="black",m=0;for(const[b,_]of t.entries()){if(s!==_.section){f=Lat[h%Lat.length],m=h%Lat.length,p=ZCn[h%ZCn.length];let S=0;const C=_.section;for(let k=b;k<t.length&&t[k].section==C;k++)S=S+1;const A={x:b*a.taskMargin+b*a.width+HB,y:50,text:_.section,fill:f,num:m,colour:p,taskCount:S};Ole.drawSection(e,A,a),s=_.section,h++}const w=_.people.reduce((S,C)=>(D7[C]&&(S[C]=D7[C]),S),{});_.x=b*a.taskMargin+b*a.width+HB,_.y=u,_.width=a.diagramMarginX,_.height=a.diagramMarginY,_.colour=p,_.fill=f,_.num=m,_.actors=w,Ole.drawTask(e,_,a),Wx.insert(_.x,_.y,_.x+_.width+a.taskMargin,300+5*30)}},JCn={setConf:bwa,draw:vwa},wwa={parser:ewa,db:XCn,renderer:JCn,styles:uwa,init:e=>{JCn.setConf(e.journey),XCn.clear()}},Ewa=Object.freeze(Object.defineProperty({__proto__:null,diagram:wwa},Symbol.toStringTag,{value:"Module"}));var Bnr={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(a,s,o){function u(p,m){if(!s[p]){if(!a[p]){var b=typeof sO=="function"&&sO;if(!m&&b)return b(p,!0);if(h)return h(p,!0);var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}var w=s[p]={exports:{}};a[p][0].call(w.exports,function(S){var C=a[p][1][S];return u(C||S)},w,w.exports,r,a,s,o)}return s[p].exports}for(var h=typeof sO=="function"&&sO,f=0;f<o.length;f++)u(o[f]);return u}return r}()({1:[function(r,a,s){Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function p(m,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,b,_){return b&&p(m.prototype,b),_&&p(m,_),m}}();function u(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var h=function(){function p(){var m=this,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=b.defaultLayoutOptions,w=_===void 0?{}:_,S=b.algorithms,C=S===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:S,A=b.workerFactory,k=b.workerUrl;if(u(this,p),this.defaultLayoutOptions=w,this.initialized=!1,typeof k>"u"&&typeof A>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var I=A;typeof k<"u"&&typeof A>"u"&&(I=function(P){return new Worker(P)});var N=I(k);if(typeof N.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new f(N),this.worker.postMessage({cmd:"register",algorithms:C}).then(function(L){return m.initialized=!0}).catch(console.err)}return o(p,[{key:"layout",value:function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.layoutOptions,S=w===void 0?this.defaultLayoutOptions:w,C=_.logging,A=C===void 0?!1:C,k=_.measureExecutionTime,I=k===void 0?!1:k;return b?this.worker.postMessage({cmd:"layout",graph:b,layoutOptions:S,options:{logging:A,measureExecutionTime:I}}):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&&this.worker.terminate()}}]),p}();s.default=h;var f=function(){function p(m){var b=this;if(u(this,p),m===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=m,this.worker.onmessage=function(_){setTimeout(function(){b.receive(b,_)},0)}}return o(p,[{key:"postMessage",value:function(b){var _=this.id||0;this.id=_+1,b.id=_;var w=this;return new Promise(function(S,C){w.resolvers[_]=function(A,k){A?(w.convertGwtStyleError(A),C(A)):S(k)},w.worker.postMessage(b)})}},{key:"receive",value:function(b,_){var w=_.data,S=b.resolvers[w.id];S&&(delete b.resolvers[w.id],w.error?S(w.error):S(null,w.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(b){if(b){var _=b.__java$exception;_&&(_.cause&&_.cause.backingJsObject&&(b.cause=_.cause.backingJsObject,this.convertGwtStyleError(b.cause)),delete b.__java$exception)}}}]),p}()},{}],2:[function(r,a,s){(function(o){(function(){var u;typeof window<"u"?u=window:typeof o<"u"?u=o:typeof self<"u"&&(u=self);var h;function f(){}function p(){}function m(){}function b(){}function _(){}function w(){}function S(){}function C(){}function A(){}function k(){}function I(){}function N(){}function L(){}function P(){}function M(){}function F(){}function U(){}function $(){}function G(){}function B(){}function Z(){}function z(){}function Y(){}function W(){}function Q(){}function V(){}function j(){}function ee(){}function te(){}function ne(){}function se(){}function ie(){}function ge(){}function ce(){}function be(){}function ve(){}function De(){}function ye(){}function Ee(){}function he(){}function we(){}function Ce(){}function Ie(){}function Le(){}function Fe(){}function Ve(){}function Oe(){}function Dt(){}function ot(){}function sn(){}function Kt(){}function Ft(){}function Je(){}function ht(){}function et(){}function qe(){}function He(){}function Ge(){}function Ye(){}function Ae(){}function Xe(){}function fe(){}function Qe(){}function Ke(){}function mt(){}function lt(){}function $t(){}function Ut(){}function Jt(){}function wn(){}function Vn(){}function Wn(){}function Dn(){}function zn(){}function vn(){}function Cn(){}function Ar(){}function ur(){}function On(){}function Ir(){}function Ln(){}function pr(){}function Cr(){}function Zr(){}function Pr(){}function Ci(){}function ds(){}function ta(){}function Os(){}function uo(){}function Ls(){}function La(){}function to(){}function Fi(){}function Pt(){}function St(){}function Un(){}function Hr(){}function za(){}function Rs(){}function Vr(){}function Ii(){}function Pa(){}function Or(){}function no(){}function dt(){}function Wi(){}function Tt(){}function xr(){}function qs(){}function Rt(){}function Bb(){}function Gt(){}function Ds(){}function Lm(){}function BS(){}function eE(){}function uL(){}function rd(){}function Fh(){}function Fb(){}function e1(){}function wT(){}function d_(){}function tE(){}function qu(){}function $b(){}function Mf(){}function nE(){}function Pf(){}function ET(){}function Ub(){}function jA(){}function WA(){}function KA(){}function f0(){}function rU(){}function lK(){}function cK(){}function uK(){}function I6e(){}function N6e(){}function O6e(){}function L6e(){}function Nyt(){}function Oyt(){}function Lyt(){}function Dyt(){}function Myt(){}function Pyt(){}function Byt(){}function Fyt(){}function $yt(){}function Uyt(){}function zyt(){}function Gyt(){}function qyt(){}function Hyt(){}function Vyt(){}function Yyt(){}function jyt(){}function Wyt(){}function Kyt(){}function Xyt(){}function Qyt(){}function Zyt(){}function Jyt(){}function evt(){}function tvt(){}function nvt(){}function rvt(){}function ivt(){}function avt(){}function svt(){}function ovt(){}function lvt(){}function cvt(){}function uvt(){}function hvt(){}function dvt(){}function fvt(){}function pvt(){}function gvt(){}function mvt(){}function bvt(){}function yvt(){}function vvt(){}function _vt(){}function wvt(){}function Evt(){}function xvt(){}function Svt(){}function Tvt(){}function Cvt(){}function Avt(){}function kvt(){}function Rvt(){}function Ivt(){}function Nvt(){}function Ovt(){}function Lvt(){}function Dvt(){}function Mvt(){}function Pvt(){}function Bvt(){}function Fvt(){}function $vt(){}function Uvt(){}function zvt(){}function Gvt(){}function qvt(){}function Hvt(){}function Vvt(){}function Yvt(){}function jvt(){}function Wvt(){}function Kvt(){}function Xvt(){}function Qvt(){}function Zvt(){}function Jvt(){}function e2t(){}function t2t(){}function n2t(){}function r2t(){}function i2t(){}function a2t(){}function s2t(){}function o2t(){}function l2t(){}function c2t(){}function u2t(){}function h2t(){}function d2t(){}function f2t(){}function p2t(){}function g2t(){}function m2t(){}function b2t(){}function y2t(){}function v2t(){}function _2t(){}function w2t(){}function E2t(){}function D6e(){}function x2t(){}function S2t(){}function T2t(){}function C2t(){}function A2t(){}function k2t(){}function R2t(){}function I2t(){}function N2t(){}function O2t(){}function L2t(){}function D2t(){}function M2t(){}function P2t(){}function B2t(){}function F2t(){}function $2t(){}function U2t(){}function z2t(){}function G2t(){}function q2t(){}function H2t(){}function V2t(){}function Y2t(){}function j2t(){}function W2t(){}function K2t(){}function X2t(){}function Q2t(){}function Z2t(){}function J2t(){}function e_t(){}function t_t(){}function n_t(){}function r_t(){}function i_t(){}function a_t(){}function s_t(){}function o_t(){}function l_t(){}function c_t(){}function u_t(){}function h_t(){}function d_t(){}function f_t(){}function p_t(){}function g_t(){}function m_t(){}function b_t(){}function y_t(){}function v_t(){}function __t(){}function w_t(){}function E_t(){}function x_t(){}function S_t(){}function T_t(){}function C_t(){}function A_t(){}function k_t(){}function R_t(){}function I_t(){}function N_t(){}function O_t(){}function L_t(){}function D_t(){}function M_t(){}function P_t(){}function B_t(){}function F_t(){}function $_t(){}function U_t(){}function z_t(){}function M6e(){}function G_t(){}function q_t(){}function H_t(){}function V_t(){}function Y_t(){}function j_t(){}function W_t(){}function K_t(){}function X_t(){}function Q_t(){}function P6e(){}function Z_t(){}function J_t(){}function ewt(){}function twt(){}function nwt(){}function rwt(){}function B6e(){}function F6e(){}function iwt(){}function $6e(){}function U6e(){}function awt(){}function swt(){}function owt(){}function lwt(){}function cwt(){}function uwt(){}function hwt(){}function dwt(){}function fwt(){}function pwt(){}function gwt(){}function z6e(){}function mwt(){}function bwt(){}function ywt(){}function vwt(){}function _wt(){}function wwt(){}function Ewt(){}function xwt(){}function Swt(){}function Twt(){}function Cwt(){}function Awt(){}function kwt(){}function Rwt(){}function Iwt(){}function Nwt(){}function Owt(){}function Lwt(){}function Dwt(){}function Mwt(){}function Pwt(){}function Bwt(){}function Fwt(){}function $wt(){}function Uwt(){}function zwt(){}function Gwt(){}function qwt(){}function Hwt(){}function Vwt(){}function Ywt(){}function jwt(){}function Wwt(){}function Kwt(){}function Xwt(){}function Qwt(){}function Zwt(){}function Jwt(){}function eEt(){}function tEt(){}function nEt(){}function rEt(){}function iEt(){}function aEt(){}function sEt(){}function oEt(){}function lEt(){}function cEt(){}function uEt(){}function hEt(){}function dEt(){}function fEt(){}function pEt(){}function gEt(){}function mEt(){}function bEt(){}function yEt(){}function vEt(){}function _Et(){}function wEt(){}function EEt(){}function xEt(){}function SEt(){}function TEt(){}function CEt(){}function AEt(){}function kEt(){}function REt(){}function IEt(){}function NEt(){}function OEt(){}function LEt(){}function DEt(){}function MEt(){}function PEt(){}function BEt(){}function FEt(){}function $Et(){}function UEt(){}function zEt(){}function GEt(){}function qEt(){}function HEt(){}function VEt(){}function YEt(){}function jEt(){}function urr(){}function WEt(){}function KEt(){}function XEt(){}function QEt(){}function ZEt(){}function JEt(){}function ext(){}function txt(){}function nxt(){}function rxt(){}function ixt(){}function axt(){}function sxt(){}function oxt(){}function lxt(){}function cxt(){}function uxt(){}function hxt(){}function dxt(){}function fxt(){}function pxt(){}function gxt(){}function mxt(){}function bxt(){}function yxt(){}function vxt(){}function _xt(){}function sue(){}function oue(){}function wxt(){}function lue(){}function Ext(){}function xxt(){}function Sxt(){}function Txt(){}function Cxt(){}function Axt(){}function kxt(){}function Rxt(){}function Ixt(){}function Nxt(){}function G6e(){}function Oxt(){}function Lxt(){}function Dxt(){}function hrr(){}function Mxt(){}function Pxt(){}function Bxt(){}function Fxt(){}function $xt(){}function Uxt(){}function zxt(){}function f_(){}function Gxt(){}function XA(){}function q6e(){}function qxt(){}function Hxt(){}function Vxt(){}function Yxt(){}function jxt(){}function Wxt(){}function Kxt(){}function Xxt(){}function Qxt(){}function Zxt(){}function Jxt(){}function eSt(){}function tSt(){}function nSt(){}function rSt(){}function iSt(){}function aSt(){}function sSt(){}function oSt(){}function rn(){}function lSt(){}function cSt(){}function uSt(){}function hSt(){}function dSt(){}function fSt(){}function pSt(){}function gSt(){}function mSt(){}function bSt(){}function ySt(){}function vSt(){}function _St(){}function cue(){}function wSt(){}function ESt(){}function xSt(){}function hK(){}function SSt(){}function uue(){}function dK(){}function TSt(){}function H6e(){}function CSt(){}function ASt(){}function kSt(){}function RSt(){}function ISt(){}function NSt(){}function fK(){}function OSt(){}function LSt(){}function pK(){}function DSt(){}function gK(){}function MSt(){}function V6e(){}function PSt(){}function hue(){}function Y6e(){}function BSt(){}function FSt(){}function $St(){}function USt(){}function drr(){}function zSt(){}function GSt(){}function qSt(){}function HSt(){}function VSt(){}function YSt(){}function jSt(){}function WSt(){}function KSt(){}function XSt(){}function OR(){}function due(){}function QSt(){}function ZSt(){}function JSt(){}function e4t(){}function t4t(){}function n4t(){}function r4t(){}function i4t(){}function a4t(){}function s4t(){}function o4t(){}function l4t(){}function c4t(){}function u4t(){}function h4t(){}function d4t(){}function f4t(){}function p4t(){}function g4t(){}function m4t(){}function b4t(){}function y4t(){}function v4t(){}function _4t(){}function w4t(){}function E4t(){}function x4t(){}function S4t(){}function T4t(){}function C4t(){}function A4t(){}function k4t(){}function R4t(){}function I4t(){}function N4t(){}function O4t(){}function L4t(){}function D4t(){}function M4t(){}function P4t(){}function B4t(){}function F4t(){}function $4t(){}function U4t(){}function z4t(){}function G4t(){}function q4t(){}function H4t(){}function V4t(){}function Y4t(){}function j4t(){}function W4t(){}function K4t(){}function X4t(){}function Q4t(){}function Z4t(){}function J4t(){}function e3t(){}function t3t(){}function n3t(){}function r3t(){}function i3t(){}function a3t(){}function s3t(){}function o3t(){}function l3t(){}function c3t(){}function u3t(){}function h3t(){}function d3t(){}function f3t(){}function p3t(){}function g3t(){}function m3t(){}function b3t(){}function y3t(){}function v3t(){}function _3t(){}function w3t(){}function E3t(){}function x3t(){}function S3t(){}function T3t(){}function C3t(){}function A3t(){}function k3t(){}function R3t(){}function I3t(){}function N3t(){}function O3t(){}function L3t(){}function D3t(){}function M3t(){}function P3t(){}function B3t(){}function F3t(){}function $3t(){}function U3t(){}function z3t(){}function G3t(){}function q3t(){}function j6e(){}function H3t(){}function V3t(){}function fue(){yL()}function Y3t(){yU()}function j3t(){nJ()}function W3t(){v0e()}function K3t(){qD()}function X3t(){tMe()}function Q3t(){A0()}function Z3t(){hDe()}function J3t(){iG()}function eTt(){vU()}function tTt(){jU()}function nTt(){kRt()}function rTt(){Bk()}function iTt(){nBt()}function aTt(){u9e()}function sTt(){HDt()}function oTt(){h9e()}function lTt(){LBt()}function cTt(){qDt()}function uTt(){G8()}function hTt(){m$t()}function dTt(){g$t()}function fTt(){$Mt()}function pTt(){b$t()}function gTt(){Kv()}function mTt(){qK()}function bTt(){eBe()}function yTt(){qt()}function vTt(){y$t()}function _Tt(){V$t()}function wTt(){VDt()}function ETt(){mqt()}function xTt(){YDt()}function STt(){Ijt()}function TTt(){OMe()}function CTt(){jm()}function ATt(){Nzt()}function kTt(){pc()}function RTt(){tMt()}function ITt(){Pk()}function NTt(){pPe()}function OTt(){Xv()}function LTt(){gPe()}function DTt(){Z1()}function MTt(){cG()}function PTt(){V1e()}function BTt(){e1e()}function t1(){NOt()}function FTt(){GQ()}function $Tt(){lJ()}function W6e(){Ei()}function UTt(){SZ()}function zTt(){zLe()}function K6e(){e0e()}function X6e(){IJ()}function GTt(){CPe()}function Q6e(n){hr(n)}function qTt(n){this.a=n}function mK(n){this.a=n}function HTt(n){this.a=n}function VTt(n){this.a=n}function YTt(n){this.a=n}function jTt(n){this.a=n}function WTt(n){this.a=n}function KTt(n){this.a=n}function Z6e(n){this.a=n}function J6e(n){this.a=n}function XTt(n){this.a=n}function QTt(n){this.a=n}function pue(n){this.a=n}function ZTt(n){this.a=n}function JTt(n){this.a=n}function gue(n){this.a=n}function mue(n){this.a=n}function e5t(n){this.a=n}function bue(n){this.a=n}function t5t(n){this.a=n}function n5t(n){this.a=n}function r5t(n){this.a=n}function e7e(n){this.b=n}function i5t(n){this.c=n}function a5t(n){this.a=n}function s5t(n){this.a=n}function o5t(n){this.a=n}function l5t(n){this.a=n}function c5t(n){this.a=n}function u5t(n){this.a=n}function h5t(n){this.a=n}function d5t(n){this.a=n}function f5t(n){this.a=n}function p5t(n){this.a=n}function g5t(n){this.a=n}function m5t(n){this.a=n}function b5t(n){this.a=n}function t7e(n){this.a=n}function n7e(n){this.a=n}function bK(n){this.a=n}function iU(n){this.a=n}function p_(){this.a=[]}function y5t(n,i){n.a=i}function frr(n,i){n.a=i}function prr(n,i){n.b=i}function grr(n,i){n.b=i}function mrr(n,i){n.b=i}function r7e(n,i){n.j=i}function brr(n,i){n.g=i}function yrr(n,i){n.i=i}function vrr(n,i){n.c=i}function _rr(n,i){n.c=i}function wrr(n,i){n.d=i}function Err(n,i){n.d=i}function g_(n,i){n.k=i}function xrr(n,i){n.c=i}function i7e(n,i){n.c=i}function a7e(n,i){n.a=i}function Srr(n,i){n.a=i}function Trr(n,i){n.f=i}function Crr(n,i){n.a=i}function Arr(n,i){n.b=i}function yue(n,i){n.d=i}function yK(n,i){n.i=i}function s7e(n,i){n.o=i}function krr(n,i){n.r=i}function Rrr(n,i){n.a=i}function Irr(n,i){n.b=i}function v5t(n,i){n.e=i}function Nrr(n,i){n.f=i}function o7e(n,i){n.g=i}function Orr(n,i){n.e=i}function Lrr(n,i){n.f=i}function Drr(n,i){n.f=i}function vue(n,i){n.a=i}function _ue(n,i){n.b=i}function Mrr(n,i){n.n=i}function Prr(n,i){n.a=i}function Brr(n,i){n.c=i}function Frr(n,i){n.c=i}function $rr(n,i){n.c=i}function Urr(n,i){n.a=i}function zrr(n,i){n.a=i}function Grr(n,i){n.d=i}function qrr(n,i){n.d=i}function Hrr(n,i){n.e=i}function Vrr(n,i){n.e=i}function Yrr(n,i){n.g=i}function jrr(n,i){n.f=i}function Wrr(n,i){n.j=i}function Krr(n,i){n.a=i}function Xrr(n,i){n.a=i}function Qrr(n,i){n.b=i}function _5t(n){n.b=n.a}function w5t(n){n.c=n.d.d}function l7e(n){this.a=n}function c7e(n){this.a=n}function u7e(n){this.a=n}function m_(n){this.a=n}function b_(n){this.a=n}function aU(n){this.a=n}function E5t(n){this.a=n}function h7e(n){this.a=n}function sU(n){this.a=n}function vK(n){this.a=n}function Dm(n){this.a=n}function FS(n){this.a=n}function x5t(n){this.a=n}function S5t(n){this.a=n}function wue(n){this.b=n}function LR(n){this.b=n}function DR(n){this.b=n}function Eue(n){this.a=n}function T5t(n){this.a=n}function xue(n){this.c=n}function me(n){this.c=n}function C5t(n){this.c=n}function hL(n){this.d=n}function d7e(n){this.a=n}function ei(n){this.a=n}function A5t(n){this.a=n}function f7e(n){this.a=n}function p7e(n){this.a=n}function g7e(n){this.a=n}function m7e(n){this.a=n}function b7e(n){this.a=n}function y7e(n){this.a=n}function MR(n){this.a=n}function k5t(n){this.a=n}function R5t(n){this.a=n}function PR(n){this.a=n}function I5t(n){this.a=n}function N5t(n){this.a=n}function O5t(n){this.a=n}function L5t(n){this.a=n}function D5t(n){this.a=n}function M5t(n){this.a=n}function P5t(n){this.a=n}function B5t(n){this.a=n}function F5t(n){this.a=n}function $5t(n){this.a=n}function U5t(n){this.a=n}function z5t(n){this.a=n}function G5t(n){this.a=n}function q5t(n){this.a=n}function H5t(n){this.a=n}function dL(n){this.a=n}function V5t(n){this.a=n}function Y5t(n){this.a=n}function j5t(n){this.a=n}function W5t(n){this.a=n}function _K(n){this.a=n}function K5t(n){this.a=n}function X5t(n){this.a=n}function BR(n){this.a=n}function v7e(n){this.a=n}function Q5t(n){this.a=n}function Z5t(n){this.a=n}function J5t(n){this.a=n}function eCt(n){this.a=n}function tCt(n){this.a=n}function nCt(n){this.a=n}function _7e(n){this.a=n}function w7e(n){this.a=n}function E7e(n){this.a=n}function fL(n){this.a=n}function wK(n){this.e=n}function FR(n){this.a=n}function rCt(n){this.a=n}function QA(n){this.a=n}function x7e(n){this.a=n}function iCt(n){this.a=n}function aCt(n){this.a=n}function sCt(n){this.a=n}function oCt(n){this.a=n}function lCt(n){this.a=n}function cCt(n){this.a=n}function uCt(n){this.a=n}function hCt(n){this.a=n}function dCt(n){this.a=n}function fCt(n){this.a=n}function pCt(n){this.a=n}function S7e(n){this.a=n}function gCt(n){this.a=n}function mCt(n){this.a=n}function bCt(n){this.a=n}function yCt(n){this.a=n}function vCt(n){this.a=n}function _Ct(n){this.a=n}function wCt(n){this.a=n}function ECt(n){this.a=n}function xCt(n){this.a=n}function SCt(n){this.a=n}function TCt(n){this.a=n}function CCt(n){this.a=n}function ACt(n){this.a=n}function kCt(n){this.a=n}function RCt(n){this.a=n}function ICt(n){this.a=n}function NCt(n){this.a=n}function OCt(n){this.a=n}function LCt(n){this.a=n}function DCt(n){this.a=n}function MCt(n){this.a=n}function PCt(n){this.a=n}function BCt(n){this.a=n}function FCt(n){this.a=n}function $Ct(n){this.a=n}function UCt(n){this.a=n}function zCt(n){this.a=n}function GCt(n){this.a=n}function qCt(n){this.a=n}function HCt(n){this.a=n}function VCt(n){this.a=n}function YCt(n){this.a=n}function jCt(n){this.a=n}function WCt(n){this.a=n}function KCt(n){this.a=n}function XCt(n){this.a=n}function QCt(n){this.a=n}function ZCt(n){this.a=n}function JCt(n){this.c=n}function eAt(n){this.b=n}function tAt(n){this.a=n}function nAt(n){this.a=n}function rAt(n){this.a=n}function iAt(n){this.a=n}function aAt(n){this.a=n}function sAt(n){this.a=n}function oAt(n){this.a=n}function lAt(n){this.a=n}function cAt(n){this.a=n}function uAt(n){this.a=n}function hAt(n){this.a=n}function dAt(n){this.a=n}function fAt(n){this.a=n}function pAt(n){this.a=n}function gAt(n){this.a=n}function mAt(n){this.a=n}function bAt(n){this.a=n}function yAt(n){this.a=n}function vAt(n){this.a=n}function _At(n){this.a=n}function wAt(n){this.a=n}function EAt(n){this.a=n}function xAt(n){this.a=n}function SAt(n){this.a=n}function TAt(n){this.a=n}function CAt(n){this.a=n}function AAt(n){this.a=n}function Mm(n){this.a=n}function xT(n){this.a=n}function kAt(n){this.a=n}function RAt(n){this.a=n}function IAt(n){this.a=n}function NAt(n){this.a=n}function OAt(n){this.a=n}function LAt(n){this.a=n}function DAt(n){this.a=n}function MAt(n){this.a=n}function PAt(n){this.a=n}function BAt(n){this.a=n}function FAt(n){this.a=n}function $At(n){this.a=n}function UAt(n){this.a=n}function zAt(n){this.a=n}function GAt(n){this.a=n}function qAt(n){this.a=n}function HAt(n){this.a=n}function VAt(n){this.a=n}function YAt(n){this.a=n}function jAt(n){this.a=n}function WAt(n){this.a=n}function KAt(n){this.a=n}function XAt(n){this.a=n}function QAt(n){this.a=n}function ZAt(n){this.a=n}function JAt(n){this.a=n}function EK(n){this.a=n}function ekt(n){this.f=n}function tkt(n){this.a=n}function nkt(n){this.a=n}function rkt(n){this.a=n}function ikt(n){this.a=n}function akt(n){this.a=n}function skt(n){this.a=n}function okt(n){this.a=n}function lkt(n){this.a=n}function ckt(n){this.a=n}function ukt(n){this.a=n}function hkt(n){this.a=n}function dkt(n){this.a=n}function fkt(n){this.a=n}function pkt(n){this.a=n}function gkt(n){this.a=n}function mkt(n){this.a=n}function bkt(n){this.a=n}function ykt(n){this.a=n}function vkt(n){this.a=n}function _kt(n){this.a=n}function wkt(n){this.a=n}function Ekt(n){this.a=n}function xkt(n){this.a=n}function Skt(n){this.a=n}function Tkt(n){this.a=n}function Ckt(n){this.a=n}function Akt(n){this.a=n}function kkt(n){this.a=n}function Sue(n){this.a=n}function T7e(n){this.a=n}function la(n){this.b=n}function Rkt(n){this.a=n}function Ikt(n){this.a=n}function Nkt(n){this.a=n}function Okt(n){this.a=n}function Lkt(n){this.a=n}function Dkt(n){this.a=n}function Mkt(n){this.a=n}function Pkt(n){this.b=n}function Bkt(n){this.a=n}function oU(n){this.a=n}function Fkt(n){this.a=n}function $kt(n){this.a=n}function C7e(n){this.c=n}function xK(n){this.e=n}function SK(n){this.a=n}function TK(n){this.a=n}function Tue(n){this.a=n}function Ukt(n){this.d=n}function zkt(n){this.a=n}function A7e(n){this.a=n}function k7e(n){this.a=n}function rE(n){this.e=n}function Zrr(){this.a=0}function Br(){xh(this)}function Ot(){$he(this)}function Cue(){SLt(this)}function Gkt(){}function iE(){this.c=DKe}function qkt(n,i){n.b+=i}function Jrr(n,i){i.Wb(n)}function eir(n){return n.a}function tir(n){return n.a}function nir(n){return n.a}function rir(n){return n.a}function iir(n){return n.a}function _e(n){return n.e}function air(){return null}function sir(){return null}function oir(){fRe(),GRr()}function lir(n){n.b.Of(n.e)}function Hkt(n){n.b=new Yue}function pL(n,i){n.b=i-n.b}function gL(n,i){n.a=i-n.a}function jn(n,i){n.push(i)}function Vkt(n,i){n.sort(i)}function Ykt(n,i){i.jd(n.a)}function cir(n,i){Bs(i,n)}function uir(n,i,l){n.Yd(l,i)}function lU(n,i){n.e=i,i.b=n}function R7e(n){jp(),this.a=n}function jkt(n){jp(),this.a=n}function Wkt(n){jp(),this.a=n}function Aue(n){CE(),this.a=n}function Kkt(n){p8(),mbe.le(n)}function I7e(){I7e=z,new Br}function y_(){pNt.call(this)}function N7e(){pNt.call(this)}function O7e(){y_.call(this)}function kue(){y_.call(this)}function Xkt(){y_.call(this)}function cU(){y_.call(this)}function ih(){y_.call(this)}function ZA(){y_.call(this)}function ri(){y_.call(this)}function Jd(){y_.call(this)}function Qkt(){y_.call(this)}function ec(){y_.call(this)}function Zkt(){y_.call(this)}function Jkt(){this.a=this}function CK(){this.Bb|=256}function e6t(){this.b=new oIt}function $S(n,i){n.length=i}function AK(n,i){Lt(n.a,i)}function hir(n,i){rMe(n.c,i)}function dir(n,i){Es(n.b,i)}function fir(n,i){XZ(n.a,i)}function pir(n,i){A0e(n.a,i)}function $R(n,i){Vi(n.e,i)}function JA(n){dJ(n.c,n.b)}function gir(n,i){n.kc().Nb(i)}function L7e(n){this.a=cvr(n)}function fs(){this.a=new Br}function t6t(){this.a=new Br}function D7e(){this.a=new _Rt}function kK(){this.a=new Ot}function Rue(){this.a=new Ot}function M7e(){this.a=new Ot}function Bf(){this.a=new wn}function v_(){this.a=new XPt}function P7e(){this.a=new BS}function B7e(){this.a=new GDt}function F7e(){this.a=new eOt}function n6t(){this.a=new Ot}function r6t(){this.a=new Ot}function i6t(){this.a=new Ot}function $7e(){this.a=new Ot}function a6t(){this.d=new Ot}function s6t(){this.a=new lMt}function o6t(){this.a=new fs}function l6t(){this.a=new Br}function c6t(){this.b=new Br}function u6t(){this.b=new Ot}function U7e(){this.e=new Ot}function h6t(){this.a=new gTt}function d6t(){this.d=new Ot}function f6t(){fDt.call(this)}function p6t(){fDt.call(this)}function g6t(){Ot.call(this)}function z7e(){O7e.call(this)}function G7e(){kK.call(this)}function m6t(){LX.call(this)}function b6t(){$7e.call(this)}function mL(){Gkt.call(this)}function Iue(){mL.call(this)}function ek(){Gkt.call(this)}function q7e(){ek.call(this)}function y6t(){j7e.call(this)}function v6t(){j7e.call(this)}function _6t(){j7e.call(this)}function w6t(){W7e.call(this)}function bL(){SSt.call(this)}function H7e(){SSt.call(this)}function ah(){Ea.call(this)}function E6t(){B6t.call(this)}function x6t(){B6t.call(this)}function S6t(){Br.call(this)}function T6t(){Br.call(this)}function C6t(){Br.call(this)}function Nue(){w$t.call(this)}function A6t(){fs.call(this)}function k6t(){CK.call(this)}function Oue(){A8e.call(this)}function V7e(){Br.call(this)}function Lue(){A8e.call(this)}function Due(){Br.call(this)}function R6t(){Br.call(this)}function Y7e(){gK.call(this)}function I6t(){Y7e.call(this)}function N6t(){gK.call(this)}function O6t(){j6e.call(this)}function j7e(){this.a=new fs}function L6t(){this.a=new Br}function D6t(){this.a=new Ot}function W7e(){this.a=new Br}function tk(){this.a=new Ea}function M6t(){this.j=new Ot}function P6t(){this.a=new D7t}function B6t(){this.a=new DSt}function K7e(){this.a=new gxt}function yL(){yL=z,lbe=new p}function Mue(){Mue=z,cbe=new $6t}function Pue(){Pue=z,ube=new F6t}function F6t(){gue.call(this,"")}function $6t(){gue.call(this,"")}function U6t(n){HFt.call(this,n)}function z6t(n){HFt.call(this,n)}function X7e(n){Z6e.call(this,n)}function Q7e(n){cRt.call(this,n)}function mir(n){cRt.call(this,n)}function bir(n){Q7e.call(this,n)}function yir(n){Q7e.call(this,n)}function vir(n){Q7e.call(this,n)}function G6t(n){pfe.call(this,n)}function q6t(n){pfe.call(this,n)}function H6t(n){EOt.call(this,n)}function V6t(n){_Re.call(this,n)}function vL(n){$K.call(this,n)}function Z7e(n){$K.call(this,n)}function Y6t(n){$K.call(this,n)}function J7e(n){qxr.call(this,n)}function eRe(n){J7e.call(this,n)}function tc(n){q9t.call(this,n)}function j6t(n){tc.call(this,n)}function nk(){iU.call(this,{})}function W6t(){W6t=z,Ren=new B}function RK(){RK=z,fbe=new HIt}function K6t(){K6t=z,XUe=new f}function tRe(){tRe=z,QUe=new P}function IK(){IK=z,jM=new U}function Bue(n){QR(),this.a=n}function Fue(n){k9e(),this.a=n}function aE(n){Ede(),this.f=n}function $ue(n){Ede(),this.f=n}function X6t(n){IOt(),this.a=n}function Q6t(n){n.b=null,n.c=0}function _ir(n,i){n.e=i,IYt(n,i)}function wir(n,i){n.a=i,ISr(n)}function Uue(n,i,l){n.a[i.g]=l}function Eir(n,i,l){Vwr(l,n,i)}function xir(n,i){_lr(i.i,n.n)}function Z6t(n,i){Hbr(n).Cd(i)}function Sir(n,i){n.a.ec().Mc(i)}function J6t(n,i){return n.g-i.g}function Tir(n,i){return n*n/i}function Vt(n){return hr(n),n}function We(n){return hr(n),n}function uU(n){return hr(n),n}function Cir(n){return new bK(n)}function Air(n){return new JS(n)}function nRe(n){return hr(n),n}function kir(n){return hr(n),n}function NK(n){tc.call(this,n)}function Sl(n){tc.call(this,n)}function e7t(n){tc.call(this,n)}function zue(n){q9t.call(this,n)}function UR(n){tc.call(this,n)}function ar(n){tc.call(this,n)}function Tl(n){tc.call(this,n)}function t7t(n){tc.call(this,n)}function rk(n){tc.call(this,n)}function zb(n){tc.call(this,n)}function Gb(n){tc.call(this,n)}function ik(n){tc.call(this,n)}function zp(n){tc.call(this,n)}function Gue(n){tc.call(this,n)}function oi(n){tc.call(this,n)}function wh(n){hr(n),this.a=n}function rRe(n){return $_(n),n}function _L(n){gNe(n,n.length)}function wL(n){return n.b==n.c}function US(n){return!!n&&n.b}function Rir(n){return!!n&&n.k}function Iir(n){return!!n&&n.j}function Nir(n,i,l){n.c.Ef(i,l)}function n7t(n,i){n.be(i),i.ae(n)}function ak(n){jp(),this.a=ni(n)}function que(){this.a=ai(ni(Xo))}function r7t(){throw _e(new ri)}function Oir(){throw _e(new ri)}function iRe(){throw _e(new ri)}function i7t(){throw _e(new ri)}function Lir(){throw _e(new ri)}function Dir(){throw _e(new ri)}function OK(){OK=z,p8()}function qb(){aU.call(this,"")}function EL(){aU.call(this,"")}function Cv(){aU.call(this,"")}function sk(){aU.call(this,"")}function aRe(n){Sl.call(this,n)}function sRe(n){Sl.call(this,n)}function Gp(n){ar.call(this,n)}function zR(n){DR.call(this,n)}function a7t(n){zR.call(this,n)}function Hue(n){kX.call(this,n)}function Vue(n){$8e.call(this,n,0)}function Yue(){QNe.call(this,12,3)}function xe(n,i){return PDt(n,i)}function LK(n,i){return Rfe(n,i)}function Mir(n,i){return n.a-i.a}function Pir(n,i){return n.a-i.a}function Bir(n,i){return n.a-i.a}function Fir(n,i){return i in n.a}function s7t(n){return n.a?n.b:0}function $ir(n){return n.a?n.b:0}function Uir(n,i,l){i.Cd(n.a[l])}function zir(n,i,l){i.Pe(n.a[l])}function Gir(n,i){n.b=new Wo(i)}function qir(n,i){return n.b=i,n}function o7t(n,i){return n.c=i,n}function l7t(n,i){return n.f=i,n}function Hir(n,i){return n.g=i,n}function oRe(n,i){return n.a=i,n}function lRe(n,i){return n.f=i,n}function Vir(n,i){return n.k=i,n}function cRe(n,i){return n.a=i,n}function Yir(n,i){return n.e=i,n}function uRe(n,i){return n.e=i,n}function jir(n,i){return n.f=i,n}function Wir(n,i){n.b=!0,n.d=i}function Kir(n,i){return n.b-i.b}function Xir(n,i){return n.g-i.g}function Qir(n,i){return n?0:i-1}function c7t(n,i){return n?0:i-1}function Zir(n,i){return n?i-1:0}function Jir(n,i){return n.s-i.s}function ear(n,i){return i.rg(n)}function sE(n,i){return n.b=i,n}function DK(n,i){return n.a=i,n}function oE(n,i){return n.c=i,n}function lE(n,i){return n.d=i,n}function cE(n,i){return n.e=i,n}function hRe(n,i){return n.f=i,n}function xL(n,i){return n.a=i,n}function GR(n,i){return n.b=i,n}function qR(n,i){return n.c=i,n}function on(n,i){return n.c=i,n}function kn(n,i){return n.b=i,n}function ln(n,i){return n.d=i,n}function cn(n,i){return n.e=i,n}function tar(n,i){return n.f=i,n}function un(n,i){return n.g=i,n}function hn(n,i){return n.a=i,n}function dn(n,i){return n.i=i,n}function fn(n,i){return n.j=i,n}function nar(n,i){Kv(),rc(i,n)}function rar(n,i,l){whr(n.a,i,l)}function MK(n){rde.call(this,n)}function u7t(n){Svr.call(this,n)}function h7t(n){HLt.call(this,n)}function dRe(n){HLt.call(this,n)}function Av(n){PE.call(this,n)}function d7t(n){Yde.call(this,n)}function f7t(n){Yde.call(this,n)}function p7t(){w8e.call(this,"")}function ho(){this.a=0,this.b=0}function g7t(){this.b=0,this.a=0}function m7t(n,i){n.b=0,c4(n,i)}function b7t(n,i){return n.k=i,n}function iar(n,i){return n.j=i,n}function aar(n,i){n.c=i,n.b=!0}function y7t(){y7t=z,Gen=yEr()}function kv(){kv=z,Mun=Rwr()}function v7t(){v7t=z,Ks=zEr()}function fRe(){fRe=z,w2=R8()}function HR(){HR=z,LKe=Iwr()}function _7t(){_7t=z,vhn=Nwr()}function pRe(){pRe=z,Tc=ASr()}function n1(n){return n.e&&n.e()}function w7t(n){return n.l|n.m<<22}function E7t(n,i){return n.c._b(i)}function x7t(n,i){return _zt(n.b,i)}function jue(n){return n?n.d:null}function sar(n){return n?n.g:null}function oar(n){return n?n.i:null}function __(n){return Fm(n),n.o}function ST(n,i){return n.a+=i,n}function Wue(n,i){return n.a+=i,n}function Hb(n,i){return n.a+=i,n}function uE(n,i){return n.a+=i,n}function gRe(n,i){for(;n.Bd(i););}function PK(n){this.a=new ok(n)}function S7t(){throw _e(new ri)}function T7t(){throw _e(new ri)}function C7t(){throw _e(new ri)}function A7t(){throw _e(new ri)}function k7t(){throw _e(new ri)}function R7t(){throw _e(new ri)}function Vb(n){this.a=new Tde(n)}function I7t(){this.a=new iM(kYe)}function N7t(){this.b=new iM(jVe)}function O7t(){this.a=new iM(ZYe)}function L7t(){this.b=new iM(a2e)}function D7t(){this.b=new iM(a2e)}function BK(n){this.a=0,this.b=n}function mRe(n){lKt(),t8r(this,n)}function VR(n){return Pv(n),n.a}function hU(n){return n.b!=n.d.c}function bRe(n,i){return n.d[i.p]}function M7t(n,i){return y5r(n,i)}function yRe(n,i,l){n.splice(i,l)}function TT(n,i){for(;n.Re(i););}function P7t(n){n.c?WYt(n):KYt(n)}function B7t(){throw _e(new ri)}function F7t(){throw _e(new ri)}function $7t(){throw _e(new ri)}function U7t(){throw _e(new ri)}function z7t(){throw _e(new ri)}function G7t(){throw _e(new ri)}function q7t(){throw _e(new ri)}function H7t(){throw _e(new ri)}function V7t(){throw _e(new ri)}function Y7t(){throw _e(new ri)}function lar(){throw _e(new ec)}function car(){throw _e(new ec)}function dU(n){this.a=new j7t(n)}function j7t(n){gmr(this,n,jxr())}function fU(n){return!n||xLt(n)}function pU(n){return fp[n]!=-1}function uar(){Kee!=0&&(Kee=0),Xee=-1}function W7t(){obe==null&&(obe=[])}function gU(n,i){$T.call(this,n,i)}function YR(n,i){gU.call(this,n,i)}function K7t(n,i){this.a=n,this.b=i}function X7t(n,i){this.a=n,this.b=i}function Q7t(n,i){this.a=n,this.b=i}function Z7t(n,i){this.a=n,this.b=i}function J7t(n,i){this.a=n,this.b=i}function eRt(n,i){this.a=n,this.b=i}function tRt(n,i){this.a=n,this.b=i}function jR(n,i){this.e=n,this.d=i}function vRe(n,i){this.b=n,this.c=i}function nRt(n,i){this.b=n,this.a=i}function rRt(n,i){this.b=n,this.a=i}function iRt(n,i){this.b=n,this.a=i}function aRt(n,i){this.b=n,this.a=i}function sRt(n,i){this.a=n,this.b=i}function Kue(n,i){this.a=n,this.b=i}function oRt(n,i){this.a=n,this.f=i}function hE(n,i){this.g=n,this.i=i}function Kr(n,i){this.f=n,this.g=i}function lRt(n,i){this.b=n,this.c=i}function cRt(n){R8e(n.dc()),this.c=n}function har(n,i){this.a=n,this.b=i}function uRt(n,i){this.a=n,this.b=i}function hRt(n){this.a=v(ni(n),15)}function _Re(n){this.a=v(ni(n),15)}function dRt(n){this.a=v(ni(n),85)}function FK(n){this.b=v(ni(n),85)}function $K(n){this.b=v(ni(n),51)}function UK(){this.q=new u.Date}function Xue(n,i){this.a=n,this.b=i}function fRt(n,i){return Tu(n.b,i)}function mU(n,i){return n.b.Hc(i)}function pRt(n,i){return n.b.Ic(i)}function gRt(n,i){return n.b.Qc(i)}function mRt(n,i){return n.b.Hc(i)}function bRt(n,i){return n.c.uc(i)}function yRt(n,i){return Yi(n.c,i)}function r1(n,i){return n.a._b(i)}function vRt(n,i){return n>i&&i<mM}function SL(n){return n.f.c+n.i.c}function dar(n){return lLt(),n?ken:Aen}function ok(n){NUt.call(this,n,0)}function _Rt(){Tde.call(this,null)}function lk(n){this.c=n,vFt(this)}function Ea(){FIt(this),xd(this)}function Pm(){Pm=z,Len=new Y}function WR(){WR=z,YI=new V}function zS(){zS=z,Ebe=new aIt}function zK(){zK=z,Hen=new sIt}function KR(){KR=z,Sze=new he}function wRe(){Tfe.call(this,null)}function w_(){w_=z,p6=new Ye}function ts(n,i){Pv(n),n.a.Nb(i)}function far(n,i){return n.a.Xc(i)}function par(n,i){return n.a.Yc(i)}function Que(n,i){return n.a.$c(i)}function Zue(n,i){return n.a._c(i)}function gar(n,i){return n.Gc(i),n}function mar(n,i){return bo(n,i),n}function bar(n,i){D1e(bt(n.a),i)}function yar(n,i){D1e(bt(n.a),i)}function wRt(n,i){return n.Gc(i),n}function _ar(n,i){return n.a.f=i,n}function ERt(n,i){return n.a.d=i,n}function xRt(n,i){return n.a.g=i,n}function SRt(n,i){return n.a.j=i,n}function p0(n,i){return n.a.a=i,n}function g0(n,i){return n.a.d=i,n}function m0(n,i){return n.a.e=i,n}function b0(n,i){return n.a.g=i,n}function bU(n,i){return n.a.f=i,n}function war(n){return n.b=!1,n}function TRt(){TRt=z,etn=new Ke}function GK(){GK=z,Pbe=new INt}function ERe(){ERe=z,Fnn=new uL}function CRt(){CRt=z,$nn=new qu}function xRe(){xRe=z,Unn=new N9t}function SRe(){SRe=z,_Ge=new Pf}function ARt(){ARt=z,Knn=new I6e}function TL(){TL=z,Qnn=new N6e}function yU(){yU=z,trn=new rvt}function vU(){vU=z,ern=new ho}function kRt(){kRt=z,arn=new zvt}function CL(){CL=z,frn=new E_t}function qK(){qK=z,R5=new Y_t}function HK(){HK=z,dsn=new gSt}function VK(){VK=z,s2e=new IRt}function YK(){YK=z,o2e=new RNt}function AL(){AL=z,eH=new ILt}function RRt(){p$t(),this.c=new Yue}function IRt(){Kr.call(this,uQt,0)}function Ear(n,i,l){Cl(n.d,i.f,l)}function xar(n,i,l,d){e_r(n,d,i,l)}function Sar(n,i,l,d){TTr(d,n,i,l)}function Tar(n,i,l,d){tRr(d,n,i,l)}function kL(n,i){cy(n.c.c,i.b,i)}function dE(n,i){cy(n.c.b,i.c,i)}function Car(n){return n.e.b+n.f.b}function Aar(n){return n.e.a+n.f.a}function kar(n){return n.b?n.b:n.a}function Rar(n){return(n.c+n.a)/2}function NRt(n,i){return uwr(n.a,i)}function RL(n,i){return n.a=i.g,n}function TRe(){TRe=z,OKe=new R6t}function ORt(){ORt=z,thn=new C6t}function fE(){fE=z,Lun=new mSt}function LRt(){LRt=z,zun=new ASt}function DRt(){DRt=z,ehn=new T6t}function Rv(){Rv=z,t0=new V7e}function jK(){jK=z,hre=new Br}function IL(){IL=z,j2e=new GIt}function Yb(){Yb=z,TH=new qIt}function Jue(){Jue=z,ghn=new G4t}function al(){al=z,bhn=new q4t}function Iv(){Iv=z,T2=new V3t}function CRe(){CRe=z,qKe=new Ot}function WK(n){return v(n,44).ld()}function ehe(n){return n.b<n.d.gc()}function Iar(n,i){return i.split(n)}function the(n,i){return Oc(n,i)>0}function nhe(n,i){return Oc(n,i)<0}function MRt(n,i){return yde(n.a,i)}function Nar(n,i){BDt.call(this,n,i)}function ARe(n){Bde(),EOt.call(this,n)}function kRe(n,i){I9t(n,n.length,i)}function _U(n,i){iLt(n,n.length,i)}function NL(n,i){return n.a.get(i)}function PRt(n,i){return Tu(n.e,i)}function RRe(n){return hr(n),!1}function IRe(n){this.a=v(ni(n),229)}function KK(n){Nn.call(this,n,21)}function XK(n,i){Kr.call(this,n,i)}function rhe(n,i){Kr.call(this,n,i)}function BRt(n,i){this.b=n,this.a=i}function QK(n,i){this.d=n,this.e=i}function FRt(n,i){this.a=n,this.b=i}function $Rt(n,i){this.a=n,this.b=i}function URt(n,i){this.a=n,this.b=i}function zRt(n,i){this.a=n,this.b=i}function ck(n,i){this.a=n,this.b=i}function GRt(n,i){this.b=n,this.a=i}function NRe(n,i){this.b=n,this.a=i}function ORe(n,i){Kr.call(this,n,i)}function LRe(n,i){Kr.call(this,n,i)}function CT(n,i){Kr.call(this,n,i)}function ihe(n,i){Kr.call(this,n,i)}function ahe(n,i){Kr.call(this,n,i)}function she(n,i){Kr.call(this,n,i)}function ZK(n,i){Kr.call(this,n,i)}function DRe(n,i){this.b=n,this.a=i}function JK(n,i){Kr.call(this,n,i)}function MRe(n,i){this.b=n,this.a=i}function eX(n,i){Kr.call(this,n,i)}function qRt(n,i){this.b=n,this.a=i}function PRe(n,i){Kr.call(this,n,i)}function ohe(n,i){Kr.call(this,n,i)}function wU(n,i){Kr.call(this,n,i)}function OL(n,i,l){n.splice(i,0,l)}function Oar(n,i,l){n.Mb(l)&&i.Cd(l)}function Lar(n,i,l){i.Pe(n.a.Ye(l))}function Dar(n,i,l){i.Dd(n.a.Ze(l))}function Mar(n,i,l){i.Cd(n.a.Kb(l))}function Par(n,i){return oh(n.c,i)}function Bar(n,i){return oh(n.e,i)}function tX(n,i){Kr.call(this,n,i)}function nX(n,i){Kr.call(this,n,i)}function LL(n,i){Kr.call(this,n,i)}function BRe(n,i){Kr.call(this,n,i)}function ps(n,i){Kr.call(this,n,i)}function rX(n,i){Kr.call(this,n,i)}function HRt(n,i){this.a=n,this.b=i}function VRt(n,i){this.a=n,this.b=i}function YRt(n,i){this.a=n,this.b=i}function jRt(n,i){this.a=n,this.b=i}function WRt(n,i){this.a=n,this.b=i}function KRt(n,i){this.a=n,this.b=i}function XRt(n,i){this.b=n,this.a=i}function QRt(n,i){this.b=n,this.a=i}function FRe(n,i){this.b=n,this.a=i}function XR(n,i){this.c=n,this.d=i}function ZRt(n,i){this.e=n,this.d=i}function JRt(n,i){this.a=n,this.b=i}function e8t(n,i){this.a=n,this.b=i}function t8t(n,i){this.a=n,this.b=i}function n8t(n,i){this.b=n,this.a=i}function r8t(n,i){this.b=i,this.c=n}function iX(n,i){Kr.call(this,n,i)}function EU(n,i){Kr.call(this,n,i)}function lhe(n,i){Kr.call(this,n,i)}function $Re(n,i){Kr.call(this,n,i)}function DL(n,i){Kr.call(this,n,i)}function che(n,i){Kr.call(this,n,i)}function uhe(n,i){Kr.call(this,n,i)}function xU(n,i){Kr.call(this,n,i)}function URe(n,i){Kr.call(this,n,i)}function hhe(n,i){Kr.call(this,n,i)}function ML(n,i){Kr.call(this,n,i)}function zRe(n,i){Kr.call(this,n,i)}function PL(n,i){Kr.call(this,n,i)}function BL(n,i){Kr.call(this,n,i)}function GS(n,i){Kr.call(this,n,i)}function dhe(n,i){Kr.call(this,n,i)}function fhe(n,i){Kr.call(this,n,i)}function GRe(n,i){Kr.call(this,n,i)}function SU(n,i){Kr.call(this,n,i)}function AT(n,i){Kr.call(this,n,i)}function phe(n,i){Kr.call(this,n,i)}function aX(n,i){Kr.call(this,n,i)}function TU(n,i){Kr.call(this,n,i)}function qS(n,i){Kr.call(this,n,i)}function sX(n,i){Kr.call(this,n,i)}function qRe(n,i){Kr.call(this,n,i)}function ghe(n,i){Kr.call(this,n,i)}function mhe(n,i){Kr.call(this,n,i)}function bhe(n,i){Kr.call(this,n,i)}function yhe(n,i){Kr.call(this,n,i)}function vhe(n,i){Kr.call(this,n,i)}function _he(n,i){Kr.call(this,n,i)}function whe(n,i){Kr.call(this,n,i)}function i8t(n,i){this.b=n,this.a=i}function HRe(n,i){Kr.call(this,n,i)}function a8t(n,i){this.a=n,this.b=i}function s8t(n,i){this.a=n,this.b=i}function o8t(n,i){this.a=n,this.b=i}function VRe(n,i){Kr.call(this,n,i)}function YRe(n,i){Kr.call(this,n,i)}function l8t(n,i){this.a=n,this.b=i}function Far(n,i){return r8(),i!=n}function CU(n){return Tr(n.a),n.b}function Ehe(n){return Y4r(n,n.c),n}function c8t(){return y7t(),new Gen}function u8t(){FX(),this.a=new cIe}function h8t(){wJ(),this.a=new fs}function d8t(){nfe(),this.b=new fs}function f8t(n,i){this.b=n,this.d=i}function p8t(n,i){this.a=n,this.b=i}function g8t(n,i){this.a=n,this.b=i}function m8t(n,i){this.a=n,this.b=i}function b8t(n,i){this.b=n,this.a=i}function jRe(n,i){Kr.call(this,n,i)}function WRe(n,i){Kr.call(this,n,i)}function oX(n,i){Kr.call(this,n,i)}function pE(n,i){Kr.call(this,n,i)}function xhe(n,i){Kr.call(this,n,i)}function lX(n,i){Kr.call(this,n,i)}function KRe(n,i){Kr.call(this,n,i)}function XRe(n,i){Kr.call(this,n,i)}function AU(n,i){Kr.call(this,n,i)}function QRe(n,i){Kr.call(this,n,i)}function She(n,i){Kr.call(this,n,i)}function cX(n,i){Kr.call(this,n,i)}function The(n,i){Kr.call(this,n,i)}function Che(n,i){Kr.call(this,n,i)}function Ahe(n,i){Kr.call(this,n,i)}function khe(n,i){Kr.call(this,n,i)}function ZRe(n,i){Kr.call(this,n,i)}function Rhe(n,i){Kr.call(this,n,i)}function JRe(n,i){Kr.call(this,n,i)}function kU(n,i){Kr.call(this,n,i)}function Ihe(n,i){Kr.call(this,n,i)}function e8e(n,i){Kr.call(this,n,i)}function RU(n,i){Kr.call(this,n,i)}function t8e(n,i){Kr.call(this,n,i)}function y8t(n,i){this.b=n,this.a=i}function v8t(n,i){this.b=n,this.a=i}function _8t(n,i){this.b=n,this.a=i}function w8t(n,i){this.b=n,this.a=i}function n8e(n,i){this.a=n,this.b=i}function E8t(n,i){this.a=n,this.b=i}function x8t(n,i){this.a=n,this.b=i}function Ct(n,i){this.a=n,this.b=i}function FL(n,i){Kr.call(this,n,i)}function IU(n,i){Kr.call(this,n,i)}function uk(n,i){Kr.call(this,n,i)}function $L(n,i){Kr.call(this,n,i)}function NU(n,i){Kr.call(this,n,i)}function Nhe(n,i){Kr.call(this,n,i)}function uX(n,i){Kr.call(this,n,i)}function UL(n,i){Kr.call(this,n,i)}function Ohe(n,i){Kr.call(this,n,i)}function hX(n,i){Kr.call(this,n,i)}function kT(n,i){Kr.call(this,n,i)}function OU(n,i){Kr.call(this,n,i)}function zL(n,i){Kr.call(this,n,i)}function GL(n,i){Kr.call(this,n,i)}function LU(n,i){Kr.call(this,n,i)}function dX(n,i){Kr.call(this,n,i)}function RT(n,i){Kr.call(this,n,i)}function Lhe(n,i){Kr.call(this,n,i)}function S8t(n,i){Kr.call(this,n,i)}function fX(n,i){Kr.call(this,n,i)}function T8t(n,i){this.a=n,this.b=i}function C8t(n,i){this.a=n,this.b=i}function A8t(n,i){this.a=n,this.b=i}function k8t(n,i){this.a=n,this.b=i}function R8t(n,i){this.a=n,this.b=i}function I8t(n,i){this.a=n,this.b=i}function Ms(n,i){this.a=n,this.b=i}function N8t(n,i){this.a=n,this.b=i}function O8t(n,i){this.a=n,this.b=i}function L8t(n,i){this.a=n,this.b=i}function D8t(n,i){this.a=n,this.b=i}function M8t(n,i){this.a=n,this.b=i}function P8t(n,i){this.a=n,this.b=i}function B8t(n,i){this.b=n,this.a=i}function F8t(n,i){this.b=n,this.a=i}function $8t(n,i){this.b=n,this.a=i}function U8t(n,i){this.b=n,this.a=i}function z8t(n,i){this.a=n,this.b=i}function G8t(n,i){this.a=n,this.b=i}function pX(n,i){Kr.call(this,n,i)}function q8t(n,i){this.a=n,this.b=i}function H8t(n,i){this.a=n,this.b=i}function hk(n,i){Kr.call(this,n,i)}function V8t(n,i){this.f=n,this.c=i}function r8e(n,i){return oh(n.g,i)}function $ar(n,i){return oh(i.b,n)}function Y8t(n,i){return B0e(n.a,i)}function Uar(n,i){return-n.b.af(i)}function zar(n,i){n&&Ni(EH,n,i)}function i8e(n,i){n.i=null,uZ(n,i)}function Gar(n,i,l){Bqt(i,R1e(n,l))}function qar(n,i,l){Bqt(i,R1e(n,l))}function Har(n,i){vTr(n.a,v(i,58))}function j8t(n,i){ggr(n.a,v(i,12))}function gX(n,i){this.a=n,this.b=i}function W8t(n,i){this.a=n,this.b=i}function K8t(n,i){this.a=n,this.b=i}function X8t(n,i){this.a=n,this.b=i}function Q8t(n,i){this.a=n,this.b=i}function Z8t(n,i){this.d=n,this.b=i}function J8t(n,i){this.e=n,this.a=i}function DU(n,i){this.b=n,this.c=i}function a8e(n,i){this.i=n,this.g=i}function s8e(n,i){this.d=n,this.e=i}function Var(n,i){Igr(new mr(n),i)}function mX(n){return Qz(n.c,n.b)}function Pl(n){return n?n.md():null}function Ze(n){return n??null}function ro(n){return typeof n===Epe}function HS(n){return typeof n===Zk}function VS(n){return typeof n===nBe}function gE(n,i){return Oc(n,i)==0}function bX(n,i){return Oc(n,i)>=0}function qL(n,i){return Oc(n,i)!=0}function yX(n,i){return jmr(n.Kc(),i)}function Nv(n,i){return n.Rd().Xb(i)}function eIt(n){return zh(n),n.d.gc()}function vX(n){return tD(n==null),n}function HL(n,i){return n.a+=""+i,n}function bl(n,i){return n.a+=""+i,n}function VL(n,i){return n.a+=""+i,n}function Kc(n,i){return n.a+=""+i,n}function bi(n,i){return n.a+=""+i,n}function o8e(n,i){return n.a+=""+i,n}function Yar(n){return""+(hr(n),n)}function tIt(n){xh(this),AD(this,n)}function nIt(){XNe(),nNe.call(this)}function rIt(n,i){oNe.call(this,n,i)}function iIt(n,i){oNe.call(this,n,i)}function _X(n,i){oNe.call(this,n,i)}function jo(n,i){qa(n,i,n.c.b,n.c)}function IT(n,i){qa(n,i,n.a,n.a.a)}function l8e(n){return $n(n,0),null}function aIt(){this.b=0,this.a=!1}function sIt(){this.b=0,this.a=!1}function oIt(){this.b=new ok(o4(12))}function lIt(){lIt=z,Ptn=Qr(H0e())}function cIt(){cIt=z,irn=Qr(vYt())}function uIt(){uIt=z,Aon=Qr(Z$t())}function c8e(){c8e=z,I7e(),ZUe=new Br}function i1(n){return n.a=0,n.b=0,n}function hIt(n,i){return n.a=i.g+1,n}function Dhe(n,i){XS.call(this,n,i)}function En(n,i){Ba.call(this,n,i)}function NT(n,i){a8e.call(this,n,i)}function dIt(n,i){FU.call(this,n,i)}function Mhe(n,i){M8.call(this,n,i)}function Ai(n,i){jK(),Ni(hre,n,i)}function fIt(n,i){n.q.setTime(N_(i))}function jar(n){u.clearTimeout(n)}function War(n){return ni(n),new YL(n)}function pIt(n,i){return Ze(n)===Ze(i)}function gIt(n,i){return n.a.a.a.cc(i)}function Phe(n,i){return af(n.a,0,i)}function u8e(n){return Zhr(v(n,74))}function dk(n){return Ps((hr(n),n))}function Kar(n){return Ps((hr(n),n))}function mIt(n){return Su(n.l,n.m,n.h)}function h8e(n,i){return Nc(n.a,i.a)}function Xar(n,i){return nLt(n.a,i.a)}function Qar(n,i){return ha(n.a,i.a)}function qp(n,i){return n.indexOf(i)}function Zar(n,i){return n.j[i.p]==2}function mE(n,i){return n==i?0:n?1:-1}function wX(n){return n<10?"0"+n:""+n}function jl(n){return typeof n===nBe}function Jar(n){return n==dx||n==U4}function esr(n){return n==dx||n==$4}function bIt(n,i){return Nc(n.g,i.g)}function d8e(n){return $l(n.b.b,n,0)}function yIt(){WX.call(this,0,0,0,0)}function Hp(){f7e.call(this,new Zb)}function f8e(n,i){_8(n,0,n.length,i)}function tsr(n,i){return Lt(n.a,i),i}function nsr(n,i){return _0(),i.a+=n}function rsr(n,i){return _0(),i.a+=n}function isr(n,i){return _0(),i.c+=n}function asr(n,i){return Lt(n.c,i),n}function p8e(n,i){return Rd(n.a,i),n}function vIt(n){this.a=c8t(),this.b=n}function _It(n){this.a=c8t(),this.b=n}function Wo(n){this.a=n.a,this.b=n.b}function YL(n){this.a=n,fue.call(this)}function wIt(n){this.a=n,fue.call(this)}function fk(){rf.call(this,0,0,0,0)}function EX(n){return Rd(new ms,n)}function EIt(n){return dQ(v(n,123))}function id(n){return n.vh()&&n.wh()}function OT(n){return n!=up&&n!=y2}function Bm(n){return n==Ol||n==ql}function LT(n){return n==Ef||n==lp}function xIt(n){return n==q5||n==G5}function ssr(n,i){return Nc(n.g,i.g)}function SIt(n,i){return new M8(i,n)}function osr(n,i){return new M8(i,n)}function g8e(n){return Rur(n.b.Kc(),n.a)}function Bhe(n,i){q8(n,i),k8(n,n.D)}function Fhe(n,i,l){nZ(n,i),tZ(n,l)}function DT(n,i,l){FE(n,i),BE(n,l)}function ef(n,i,l){Au(n,i),ku(n,l)}function MU(n,i,l){S8(n,i),C8(n,l)}function PU(n,i,l){T8(n,i),A8(n,l)}function TIt(n,i,l){Q8e.call(this,n,i,l)}function m8e(n){V8t.call(this,n,!0)}function CIt(){XK.call(this,"Tail",3)}function AIt(){XK.call(this,"Head",1)}function Ov(n){eg(),qmr.call(this,n)}function bE(n){WX.call(this,n,n,n,n)}function $he(n){n.c=st(zs,Yn,1,0,5,1)}function b8e(n){return n.b&&ipe(n),n.a}function y8e(n){return n.b&&ipe(n),n.c}function lsr(n,i){rp||(n.b=i)}function csr(n,i){return n[n.length]=i}function usr(n,i){return n[n.length]=i}function hsr(n,i){return l4(i,z1(n))}function dsr(n,i){return l4(i,z1(n))}function fsr(n,i){return oZ(Mde(n.d),i)}function psr(n,i){return oZ(Mde(n.g),i)}function gsr(n,i){return oZ(Mde(n.j),i)}function fo(n,i){Ba.call(this,n.b,i)}function msr(n,i){Yr(Uc(n.a),WDt(i))}function bsr(n,i){Yr(Uh(n.a),KDt(i))}function ysr(n,i,l){ef(l,l.i+n,l.j+i)}function kIt(n,i,l){Ga(n.c[i.g],i.g,l)}function vsr(n,i,l){v(n.c,71).Gi(i,l)}function Uhe(n,i,l){return Ga(n,i,l),l}function RIt(n){Cu(n.Sf(),new W5t(n))}function MT(n){return n!=null?ma(n):0}function _sr(n){return n==null?0:ma(n)}function jL(n){zi(),rE.call(this,n)}function IIt(n){this.a=n,OIe.call(this,n)}function $1(){$1=z,u.Math.log(2)}function tf(){tf=z,lm=(LRt(),zun)}function NIt(){NIt=z,_ve=new UD(D2e)}function ii(){ii=z,new OIt,new Ot}function OIt(){new Br,new Br,new Br}function wsr(){throw _e(new zb(fen))}function Esr(){throw _e(new zb(fen))}function xsr(){throw _e(new zb(pen))}function Ssr(){throw _e(new zb(pen))}function zhe(n){this.a=n,FK.call(this,n)}function Ghe(n){this.a=n,FK.call(this,n)}function LIt(n,i){CE(),this.a=n,this.b=i}function Tsr(n,i){ni(i),zT(n).Jc(new k)}function us(n,i){vde(n.c,n.c.length,i)}function nc(n){return n.a<n.c.c.length}function v8e(n){return n.a<n.c.a.length}function DIt(n,i){return n.a?n.b:i.We()}function Nc(n,i){return n<i?-1:n>i?1:0}function _8e(n,i){return Oc(n,i)>0?n:i}function Su(n,i,l){return{l:n,m:i,h:l}}function Csr(n,i){n.a!=null&&j8t(i,n.a)}function Asr(n){Uo(n,null),lo(n,null)}function ksr(n,i,l){return Ni(n.g,l,i)}function PT(n,i,l){return qLe(i,l,n.c)}function Rsr(n,i,l){return Ni(n.k,l,i)}function Isr(n,i,l){return m7r(n,i,l),l}function Nsr(n,i){return Sd(),i.n.b+=n}function MIt(n){qNe.call(this),this.b=n}function w8e(n){lIe.call(this),this.a=n}function PIt(){XK.call(this,"Range",2)}function xX(n){this.b=n,this.a=new Ot}function BIt(n){this.b=new no,this.a=n}function FIt(n){n.a=new ce,n.c=new ce}function $It(n){n.a=new Br,n.d=new Br}function UIt(n){rfe(n,null),ife(n,null)}function zIt(n,i){return y7r(n.a,i,null)}function Osr(n,i){return Ni(n.a,i.a,i)}function Eo(n){return new Ct(n.a,n.b)}function E8e(n){return new Ct(n.c,n.d)}function Lsr(n){return new Ct(n.c,n.d)}function WL(n,i){return I6r(n.c,n.b,i)}function $e(n,i){return n!=null&&W0e(n,i)}function qhe(n,i){return xbr(n.Kc(),i)!=-1}function SX(n){return n.Ob()?n.Pb():null}function Dsr(n){this.b=(Fn(),new xue(n))}function x8e(n){this.a=n,Br.call(this)}function GIt(){FU.call(this,null,null)}function qIt(){NX.call(this,null,null)}function HIt(){Kr.call(this,"INSTANCE",0)}function VIt(){EDe(),this.a=new iM(vGe)}function YIt(n){return Qp(n,0,n.length)}function Msr(n,i){return new uNt(n.Kc(),i)}function S8e(n,i){return n.a.Bc(i)!=null}function jIt(n,i){Gr(n),n.Gc(v(i,15))}function Psr(n,i,l){n.c.bd(i,v(l,136))}function Bsr(n,i,l){n.c.Ui(i,v(l,136))}function WIt(n,i){n.c&&(VIe(i),_Dt(i))}function Fsr(n,i){n.q.setHours(i),cM(n,i)}function $sr(n,i){_E(i,n.a.a.a,n.a.a.b)}function Usr(n,i,l,d){Ga(n.a[i.g],l.g,d)}function Hhe(n,i,l){return n.a[i.g][l.g]}function zsr(n,i){return n.e[i.c.p][i.p]}function Gsr(n,i){return n.c[i.c.p][i.p]}function U1(n,i){return n.a[i.c.p][i.p]}function qsr(n,i){return n.j[i.p]=tTr(i)}function Vhe(n,i){return n.a.Bc(i)!=null}function Hsr(n,i){return We(at(i.a))<=n}function Vsr(n,i){return We(at(i.a))>=n}function Ysr(n,i){return kOe(n.f,i.Pg())}function pk(n,i){return n.a*i.a+n.b*i.b}function jsr(n,i){return n.a<vIe(i)?-1:1}function Wsr(n,i){return kOe(n.b,i.Pg())}function Ksr(n,i,l){return l?i!=0:i!=n-1}function KIt(n,i,l){n.a=i^1502,n.b=l^tge}function Xsr(n,i,l){return n.a=i,n.b=l,n}function Vp(n,i){return n.a*=i,n.b*=i,n}function Lt(n,i){return jn(n.c,i),!0}function KL(n,i,l){return Ga(n.g,i,l),l}function gs(n,i,l){QU.call(this,n,i,l)}function TX(n,i,l){gs.call(this,n,i,l)}function T8e(n,i,l){zX.call(this,n,i,l)}function XIt(n,i,l){zX.call(this,n,i,l)}function QIt(n,i,l){T8e.call(this,n,i,l)}function sh(n,i,l){gs.call(this,n,i,l)}function ZIt(n,i,l){TX.call(this,n,i,l)}function C8e(n,i,l){QU.call(this,n,i,l)}function BT(n,i,l){QU.call(this,n,i,l)}function JIt(n,i,l){C8e.call(this,n,i,l)}function CX(n){n.j=st(hze,kt,319,0,0,1)}function FT(){this.a=st(zs,Yn,1,8,5,1)}function A8e(){this.Bb|=256,this.Bb|=512}function mr(n){this.i=n,this.f=this.i.j}function Lv(n){this.c=n,this.a=this.c.a}function $T(n,i){this.a=n,FK.call(this,i)}function k8e(n,i){return fvr(n,new Cv,i).a}function R8e(n){if(!n)throw _e(new cU)}function I8e(n){if(!n)throw _e(new ih)}function N8e(){N8e=z,N8e(),Ven=new De}function eNt(){eNt=z,Jue(),mhn=new GTt}function QR(){QR=z,wze=new Bue(null)}function Qsr(n){az(n,zZt),bJ(n,mRr(n))}function tNt(n){n.a=v(rr(n.b.a,4),129)}function nNt(n){n.a=v(rr(n.b.a,4),129)}function rNt(n){n.b.Qb(),--n.d.f.d,JX(n.d)}function O8e(n){this.a=n,i5t.call(this,n.d)}function iNt(n,i){this.a=n,Vue.call(this,i)}function aNt(n,i){this.a=n,Vue.call(this,i)}function sNt(n,i){this.a=n,Vue.call(this,i)}function L8e(n,i){this.a=i,Vue.call(this,n)}function oNt(n,i){this.a=i,pfe.call(this,n)}function lNt(n,i){this.a=n,pfe.call(this,i)}function cNt(n,i){this.a=i,$K.call(this,n)}function uNt(n,i){this.a=i,$K.call(this,n)}function _r(n,i){return ni(i),new cNt(n,i)}function hNt(n,i){return new PHt(n.a,n.b,i)}function D8e(n,i,l){return n.indexOf(i,l)}function AX(n,i){return n.lastIndexOf(i)}function XL(n){return n==null?Ku:Kl(n)}function Zsr(n){return n==null?null:n.name}function Jsr(n){return n.l+n.m*n6+n.h*j_}function eor(n){return hU(n.a)?XDt(n):null}function Ff(n){aU.call(this,(hr(n),n))}function Ed(n){aU.call(this,(hr(n),n))}function dNt(n){gue.call(this,v(ni(n),34))}function fNt(n){gue.call(this,v(ni(n),34))}function Yhe(n){f7e.call(this,new BOe(n))}function kX(n){DR.call(this,n),this.a=n}function M8e(n){LR.call(this,n),this.a=n}function P8e(n){zR.call(this,n),this.a=n}function pNt(){CX(this),gQ(this),this.je()}function gNt(n){this.a=n,wue.call(this,n)}function ad(n){return Tr(n.a!=null),n.a}function mNt(n,i){return Lt(i.a,n.a),n.a}function bNt(n,i){return Lt(i.b,n.a),n.a}function yE(n,i){return Lt(i.a,n.a),n.a}function BU(n,i,l){return t0e(n,i,i,l),n}function RX(n,i){return++n.b,Lt(n.a,i)}function B8e(n,i){return++n.b,Yu(n.a,i)}function tor(n,i){return ha(n.c.d,i.c.d)}function nor(n,i){return ha(n.c.c,i.c.c)}function ror(n,i){return ha(n.n.a,i.n.a)}function Hu(n,i){return v(Zi(n.b,i),15)}function ior(n,i){return n.n.b=(hr(i),i)}function aor(n,i){return n.n.b=(hr(i),i)}function oh(n,i){return!!i&&n.b[i.g]==i}function QL(n){return nc(n.a)||nc(n.b)}function vE(n){return n.$H||(n.$H=++$8r)}function sor(n){return n.a!=null?n.a:null}function oor(n,i){return ha(n.e.b,i.e.b)}function lor(n,i){return ha(n.e.a,i.e.a)}function cor(n,i,l){return JMt(n,i,l,n.b)}function F8e(n,i,l){return JMt(n,i,l,n.c)}function uor(n){return _0(),!!n&&!n.dc()}function yNt(){CL(),this.b=new NCt(this)}function IX(){IX=z,ite=new Ba(OXt,0)}function Qn(){Qn=z,a2=!1,HI=!0}function jb(n){var i;i=n.a,n.a=n.b,n.b=i}function FU(n,i){IL(),this.a=n,this.b=i}function NX(n,i){Yb(),this.b=n,this.c=i}function jhe(n,i){Ede(),this.f=i,this.d=n}function $8e(n,i){AOe(i,n),this.d=n,this.c=i}function U8e(n,i){XLe.call(this,n,i,null)}function vNt(n,i,l,d){lNe.call(this,n,i,l,d)}function gk(n){this.d=n,mr.call(this,n)}function mk(n){this.c=n,mr.call(this,n)}function $U(n){this.c=n,gk.call(this,n)}function hor(n){return new r4(3,n)}function Pg(n){return kd(n,k4),new gu(n)}function _Nt(n){return p8(),parseInt(n)||-1}function dor(n){return RK(),Xr((ADt(),xen),n)}function ZR(n,i,l){return D8e(n,Wu(i),l)}function Whe(n,i){return new vOt(n,n.gc(),i)}function por(n,i){return xde(n.c).Md().Xb(i)}function JR(n,i,l){var d;d=n.fd(i),d.Rb(l)}function z8e(n,i,l){v(Tz(n,i),21).Fc(l)}function gor(n,i,l){A0e(n.a,l),XZ(n.a,i)}function UU(n){$e(n,158)&&v(n,158).pi()}function wNt(n){LIe.call(this,n,null,null)}function Khe(n){zS(),this.b=n,this.a=!0}function ENt(n){zK(),this.b=n,this.a=!0}function e8(n){return Tr(n.b!=0),n.a.a.c}function y0(n){return Tr(n.b!=0),n.c.b.c}function mor(n,i){return t0e(n,i,i+1,""),n}function ya(n,i){return!!n.q&&Tu(n.q,i)}function xNt(n){return n.b=v(BNe(n.a),44)}function bor(n){return n.f!=null?n.f:""+n.g}function Xhe(n){return n.f!=null?n.f:""+n.g}function yor(n,i){return n>0?i/(n*n):i*100}function vor(n,i){return n>0?i*i/n:i*i*100}function YS(n,i){return v(j1(n.a,i),34)}function _or(n,i){return Kv(),Rn(n,i.e,i)}function wor(n,i,l){return HK(),l.Mg(n,i)}function Eor(n){return jm(),n.e.a+n.f.a/2}function xor(n,i,l){return jm(),l.e.a-n*i}function Sor(n){return jm(),n.e.b+n.f.b/2}function Tor(n,i,l){return jm(),l.e.b-n*i}function SNt(n){n.d=new wNt(n),n.e=new Br}function TNt(){this.a=new OE,this.b=new OE}function CNt(n){this.c=n,this.a=1,this.b=1}function ANt(n){_pe(),Hkt(this),this.Ff(n)}function Cor(n,i,l){GQ(),n.pf(i)&&l.Cd(n)}function Aor(n,i,l){return Lt(i,Fzt(n,l))}function _E(n,i,l){return n.a+=i,n.b+=l,n}function kor(n,i,l){return n.a*=i,n.b*=l,n}function G8e(n,i){return n.a=i.a,n.b=i.b,n}function OX(n){return n.a=-n.a,n.b=-n.b,n}function ZL(n,i,l){return n.a-=i,n.b-=l,n}function kNt(n){Ea.call(this),xD(this,n)}function RNt(){Kr.call(this,"GROW_TREE",0)}function INt(){Kr.call(this,"POLYOMINO",0)}function sd(n,i,l){uh.call(this,n,i,l,2)}function Ror(n,i,l){FD(Uc(n.a),i,WDt(l))}function NNt(n,i){IL(),FU.call(this,n,i)}function q8e(n,i){Yb(),NX.call(this,n,i)}function ONt(n,i){Yb(),q8e.call(this,n,i)}function LNt(n,i){Yb(),NX.call(this,n,i)}function Ior(n,i){return n.c.Fc(v(i,136))}function Nor(n,i,l){FD(Uh(n.a),i,KDt(l))}function DNt(n){this.c=n,Au(n,0),ku(n,0)}function Qhe(n,i){tf(),QX.call(this,n,i)}function MNt(n,i){tf(),Qhe.call(this,n,i)}function H8e(n,i){tf(),Qhe.call(this,n,i)}function V8e(n,i){tf(),QX.call(this,n,i)}function PNt(n,i){tf(),H8e.call(this,n,i)}function BNt(n,i){tf(),V8e.call(this,n,i)}function FNt(n,i){tf(),QX.call(this,n,i)}function Oor(n,i,l){return i.zl(n.e,n.c,l)}function Lor(n,i,l){return i.Al(n.e,n.c,l)}function Y8e(n,i,l){return LJ(Sz(n,i),l)}function Zhe(n,i){return Hv(n.e,v(i,54))}function Dor(n){return n==null?null:aRr(n)}function Mor(n){return n==null?null:Zxr(n)}function Por(n){return n==null?null:Kl(n)}function Bor(n){return n==null?null:Kl(n)}function Ht(n){return tD(n==null||HS(n)),n}function at(n){return tD(n==null||VS(n)),n}function ai(n){return tD(n==null||ro(n)),n}function Fm(n){n.o==null&&I3r(n)}function j8e(n){if(!n)throw _e(new cU)}function For(n){if(!n)throw _e(new kue)}function Tr(n){if(!n)throw _e(new ec)}function jS(n){if(!n)throw _e(new ih)}function $Nt(n){if(!n)throw _e(new Jd)}function t8(){t8=z,SH=new E6t,new x6t}function UT(){UT=z,Y5=new la("root")}function W8e(){w$t.call(this),this.Bb|=el}function $or(n,i){this.d=n,w5t(this),this.b=i}function K8e(n,i){Tfe.call(this,n),this.a=i}function X8e(n,i){Tfe.call(this,n),this.a=i}function Q8e(n,i,l){FQ.call(this,n,i,l,null)}function UNt(n,i,l){FQ.call(this,n,i,l,null)}function zU(n,i){this.c=n,jR.call(this,n,i)}function JL(n,i){this.a=n,zU.call(this,n,i)}function Z8e(n){this.q=new u.Date(N_(n))}function zNt(n){return n>8?0:n+1}function GNt(n,i){rp||Lt(n.a,i)}function Uor(n,i){return vU(),D8(i.d.i,n)}function zor(n,i){return Bk(),new yjt(i,n)}function Gor(n,i,l){return n.Ne(i,l)<=0?l:i}function qor(n,i,l){return n.Ne(i,l)<=0?i:l}function Hor(n,i){return v(j1(n.b,i),143)}function Vor(n,i){return v(j1(n.c,i),233)}function Jhe(n){return v(Yt(n.a,n.b),294)}function qNt(n){return new Ct(n.c,n.d+n.a)}function HNt(n){return hr(n),n?1231:1237}function VNt(n){return Sd(),xIt(v(n,203))}function WS(){WS=z,jze=bn((ud(),vw))}function Yor(n,i){i.a?X4r(n,i):Vhe(n.a,i.b)}function GU(n,i,l){++n.j,n.tj(),Sfe(n,i,l)}function YNt(n,i,l){++n.j,n.qj(i,n.Zi(i,l))}function jNt(n,i,l){var d;d=n.fd(i),d.Rb(l)}function J8e(n,i,l){return l=Od(n,i,6,l),l}function eIe(n,i,l){return l=Od(n,i,3,l),l}function tIe(n,i,l){return l=Od(n,i,9,l),l}function Yp(n,i){return az(i,TBe),n.f=i,n}function nIe(n,i){return(i&qi)%n.d.length}function WNt(n,i,l){return MPe(n.c,n.b,i,l)}function KNt(n,i){this.c=n,PE.call(this,i)}function XNt(n,i){this.a=n,Pkt.call(this,i)}function qU(n,i){this.a=n,Pkt.call(this,i)}function Ba(n,i){la.call(this,n),this.a=i}function rIe(n,i){C7e.call(this,n),this.a=i}function ede(n,i){C7e.call(this,n),this.a=i}function jor(n){BLe.call(this,0,0),this.f=n}function QNt(n,i,l){return n.a+=Qp(i,0,l),n}function HU(n){return!n.a&&(n.a=new G),n.a}function iIe(n,i){var l;return l=n.e,n.e=i,l}function aIe(n,i){var l;return l=i,!!n.Fe(l)}function Wor(n,i){return Qn(),n==i?0:n?1:-1}function KS(n,i){n.a.bd(n.b,i),++n.b,n.c=-1}function VU(n){n.b?VU(n.b):n.f.c.zc(n.e,n.d)}function ZNt(n){xh(n.e),n.d.b=n.d,n.d.a=n.d}function Kor(n,i,l){w_(),y5t(n,i.Ve(n.a,l))}function sIe(n,i,l){return Sk(n,v(i,22),l)}function v0(n,i){return LK(new Array(i),n)}function Xor(n){return ti(Dv(n,32))^ti(n)}function tde(n){return String.fromCharCode(n)}function Qor(n){return n==null?null:n.message}function Zor(n,i,l){return n.apply(i,l)}function Jor(n,i){var l;l=n[ege],l.call(n,i)}function elr(n,i){var l;l=n[ege],l.call(n,i)}function tlr(n,i){return vU(),!D8(i.d.i,n)}function oIe(n,i,l,d){WX.call(this,n,i,l,d)}function JNt(){LX.call(this),this.a=new ho}function lIe(){this.n=new ho,this.o=new ho}function eOt(){this.b=new ho,this.c=new Ot}function tOt(){this.a=new Ot,this.b=new Ot}function nOt(){this.a=new BS,this.b=new e6t}function cIe(){this.b=new Zb,this.a=new Zb}function rOt(){this.b=new fs,this.a=new fs}function iOt(){this.b=new Br,this.a=new Br}function aOt(){this.b=new N7t,this.a=new iEt}function sOt(){this.a=new mTt,this.b=new K_t}function oOt(){this.a=new Ot,this.d=new Ot}function LX(){this.n=new ek,this.i=new fk}function lOt(n){this.a=(kd(n,k4),new gu(n))}function cOt(n){this.a=(kd(n,k4),new gu(n))}function nlr(n){return n<100?null:new Av(n)}function rlr(n,i){return n.n.a=(hr(i),i+10)}function ilr(n,i){return n.n.a=(hr(i),i+10)}function alr(n,i){return i==n||rI(mJ(i),n)}function uOt(n,i){return Ni(n.a,i,"")==null}function slr(n,i){var l;return l=i.qi(n.a),l}function Hi(n,i){return n.a+=i.a,n.b+=i.b,n}function $s(n,i){return n.a-=i.a,n.b-=i.b,n}function olr(n){return $S(n.j.c,0),n.a=-1,n}function uIe(n,i,l){return l=Od(n,i,11,l),l}function llr(n,i,l){l!=null&&lZ(i,a1e(n,l))}function clr(n,i,l){l!=null&&cZ(i,a1e(n,l))}function bk(n,i,l,d){vt.call(this,n,i,l,d)}function hIe(n,i,l,d){vt.call(this,n,i,l,d)}function hOt(n,i,l,d){hIe.call(this,n,i,l,d)}function dOt(n,i,l,d){iQ.call(this,n,i,l,d)}function nde(n,i,l,d){iQ.call(this,n,i,l,d)}function dIe(n,i,l,d){iQ.call(this,n,i,l,d)}function fOt(n,i,l,d){nde.call(this,n,i,l,d)}function fIe(n,i,l,d){nde.call(this,n,i,l,d)}function Gn(n,i,l,d){dIe.call(this,n,i,l,d)}function pOt(n,i,l,d){fIe.call(this,n,i,l,d)}function gOt(n,i,l,d){hNe.call(this,n,i,l,d)}function XS(n,i){Sl.call(this,FM+n+ew+i)}function pIe(n,i){return n.jk().wi().ri(n,i)}function gIe(n,i){return n.jk().wi().ti(n,i)}function mOt(n,i){return hr(n),Ze(n)===Ze(i)}function An(n,i){return hr(n),Ze(n)===Ze(i)}function ulr(n,i){return n.b.Bd(new $Rt(n,i))}function hlr(n,i){return n.b.Bd(new URt(n,i))}function bOt(n,i){return n.b.Bd(new zRt(n,i))}function dlr(n,i){return n.e=v(n.d.Kb(i),159)}function mIe(n,i,l){return n.lastIndexOf(i,l)}function flr(n,i,l){return ha(n[i.a],n[l.a])}function plr(n,i){return _t(i,(qt(),Pq),n)}function glr(n,i){return Nc(i.a.d.p,n.a.d.p)}function mlr(n,i){return Nc(n.a.d.p,i.a.d.p)}function blr(n,i){return ha(n.c-n.s,i.c-i.s)}function ylr(n,i){return ha(n.b.e.a,i.b.e.a)}function vlr(n,i){return ha(n.c.e.a,i.c.e.a)}function yOt(n){return n.c?$l(n.c.a,n,0):-1}function yk(n){return n==yw||n==sm||n==su}function bIe(n,i){this.c=n,Rde.call(this,n,i)}function vOt(n,i,l){this.a=n,$8e.call(this,i,l)}function _Ot(n){this.c=n,_X.call(this,MG,0)}function wOt(n,i,l){this.c=i,this.b=l,this.a=n}function YU(n){r8(),this.d=n,this.a=new FT}function EOt(n){jp(),this.a=(Fn(),new zR(n))}function _lr(n,i){Bm(n.f)?E3r(n,i):JEr(n,i)}function xOt(n,i){Lur.call(this,n,n.length,i)}function wlr(n,i){rp||i&&(n.d=i)}function SOt(n,i){return $e(i,15)&&ZYt(n.c,i)}function Elr(n,i,l){return v(n.c,71).Wk(i,l)}function DX(n,i,l){return v(n.c,71).Xk(i,l)}function xlr(n,i,l){return Oor(n,v(i,343),l)}function yIe(n,i,l){return Lor(n,v(i,343),l)}function Slr(n,i,l){return Vqt(n,v(i,343),l)}function TOt(n,i,l){return dxr(n,v(i,343),l)}function eD(n,i){return i==null?null:d4(n.b,i)}function vIe(n){return VS(n)?(hr(n),n):n.ue()}function MX(n){return!isNaN(n)&&!isFinite(n)}function rde(n){FIt(this),xd(this),bo(this,n)}function Eh(n){$he(this),MIe(this.c,0,n.Pc())}function nf(n,i,l){this.a=n,this.b=i,this.c=l}function COt(n,i,l){this.a=n,this.b=i,this.c=l}function AOt(n,i,l){this.d=n,this.b=l,this.a=i}function kOt(n){this.a=n,Pm(),xc(Date.now())}function ROt(n){ld(n.a),DOe(n.c,n.b),n.b=null}function ide(){ide=z,_ze=new be,qen=new ve}function IOt(){IOt=z,Yun=st(zs,Yn,1,0,5,1)}function NOt(){NOt=z,uhn=st(zs,Yn,1,0,5,1)}function _Ie(){_Ie=z,hhn=st(zs,Yn,1,0,5,1)}function jp(){jp=z,new R7e((Fn(),Fn(),Zo))}function Tlr(n){return w8(),Xr((BBt(),Yen),n)}function Clr(n){return Ch(),Xr((ABt(),Zen),n)}function Alr(n){return GZ(),Xr((dPt(),itn),n)}function klr(n){return KQ(),Xr((fPt(),atn),n)}function Rlr(n){return SJ(),Xr((dUt(),stn),n)}function Ilr(n){return u1(),Xr((TBt(),ctn),n)}function Nlr(n){return Th(),Xr((SBt(),htn),n)}function Olr(n){return ju(),Xr((CBt(),ftn),n)}function Llr(n){return FJ(),Xr((lIt(),Ptn),n)}function Dlr(n){return GE(),Xr(($Bt(),Ftn),n)}function Mlr(n){return qk(),Xr((zBt(),Utn),n)}function Plr(n){return VD(),Xr((UBt(),qtn),n)}function Blr(n){return GK(),Xr((FMt(),Htn),n)}function Flr(n){return XQ(),Xr((pPt(),onn),n)}function $lr(n){return wD(),Xr((kBt(),Lnn),n)}function Ulr(n){return Mo(),Xr((EFt(),Bnn),n)}function zlr(n){return B8(),Xr((qBt(),Gnn),n)}function Glr(n){return z_(),Xr((GBt(),Wnn),n)}function wIe(n,i){if(!n)throw _e(new ar(i))}function n8(n){if(!n)throw _e(new Tl(rBe))}function ade(n,i){if(n!=i)throw _e(new Jd)}function OOt(n,i,l){this.a=n,this.b=i,this.c=l}function EIe(n,i,l){this.a=n,this.b=i,this.c=l}function LOt(n,i,l){this.a=n,this.b=i,this.c=l}function PX(n,i,l){this.b=n,this.a=i,this.c=l}function xIe(n,i,l){this.b=n,this.c=i,this.a=l}function SIe(n,i,l){this.a=n,this.b=i,this.c=l}function BX(n,i,l){this.e=i,this.b=n,this.d=l}function DOt(n,i,l){this.b=n,this.a=i,this.c=l}function qlr(n,i,l){return w_(),n.a.Yd(i,l),i}function sde(n){var i;return i=new Vn,i.e=n,i}function TIe(n){var i;return i=new a6t,i.b=n,i}function jU(){jU=z,pte=new Svt,gte=new Tvt}function FX(){FX=z,crn=new Zvt,lrn=new Jvt}function _0(){_0=z,prn=new o_t,grn=new l_t}function Hlr(n){return UE(),Xr((aBt(),Trn),n)}function Vlr(n){return qo(),Xr((cIt(),irn),n)}function Ylr(n){return wZ(),Xr((VBt(),orn),n)}function jlr(n){return K1(),Xr((HBt(),yrn),n)}function Wlr(n){return b4(),Xr((xFt(),_rn),n)}function Klr(n){return EJ(),Xr((Q$t(),Crn),n)}function Xlr(n){return jk(),Xr((WFt(),Arn),n)}function Qlr(n){return zQ(),Xr((wPt(),krn),n)}function Zlr(n){return SD(),Xr((rBt(),Rrn),n)}function Jlr(n){return iZ(),Xr((iBt(),Irn),n)}function ecr(n){return ly(),Xr((SFt(),Nrn),n)}function tcr(n){return Rz(),Xr((bPt(),Orn),n)}function ncr(n){return aI(),Xr((QFt(),Frn),n)}function rcr(n){return cl(),Xr((kUt(),$rn),n)}function icr(n){return P8(),Xr((oBt(),Urn),n)}function acr(n){return Ym(),Xr((lBt(),Grn),n)}function scr(n){return IQ(),Xr((mPt(),qrn),n)}function ocr(n){return lG(),Xr((XFt(),Brn),n)}function lcr(n){return F_(),Xr((sBt(),Drn),n)}function ccr(n){return cJ(),Xr((KFt(),Mrn),n)}function ucr(n){return Ez(),Xr((yPt(),Prn),n)}function hcr(n){return pf(),Xr((CFt(),Hrn),n)}function dcr(n){return fy(),Xr((cUt(),psn),n)}function fcr(n){return DD(),Xr((cBt(),gsn),n)}function pcr(n){return g4(),Xr((YBt(),msn),n)}function gcr(n){return HD(),Xr((TFt(),bsn),n)}function mcr(n){return qf(),Xr((RUt(),ysn),n)}function bcr(n){return Zp(),Xr((jBt(),vsn),n)}function ycr(n){return Az(),Xr((vPt(),_sn),n)}function vcr(n){return ll(),Xr((dBt(),Esn),n)}function _cr(n){return yZ(),Xr((uBt(),xsn),n)}function wcr(n){return ND(),Xr((hBt(),Ssn),n)}function Ecr(n){return H8(),Xr((fBt(),Tsn),n)}function xcr(n){return rZ(),Xr((pBt(),Csn),n)}function Scr(n){return EZ(),Xr((gBt(),Asn),n)}function Tcr(n){return $E(),Xr((xBt(),qsn),n)}function Ccr(n){return yD(),Xr((_Pt(),Wsn),n)}function Acr(n){return Kp(),Xr((SPt(),ton),n)}function kcr(n){return G1(),Xr((TPt(),ron),n)}function Rcr(n){return o1(),Xr((CPt(),yon),n)}function Icr(n){return LE(),Xr((APt(),Ton),n)}function Ncr(n){return Yk(),Xr((eFt(),Con),n)}function Ocr(n){return oM(),Xr((uIt(),Aon),n)}function Lcr(n){return OD(),Xr((mBt(),kon),n)}function Dcr(n){return LD(),Xr((JBt(),Qon),n)}function Mcr(n){return AQ(),Xr((EPt(),Zon),n)}function Pcr(n){return hZ(),Xr((xPt(),rln),n)}function Bcr(n){return aJ(),Xr((AFt(),aln),n)}function Fcr(n){return qz(),Xr((bBt(),oln),n)}function $cr(n){return qQ(),Xr((kPt(),sln),n)}function Ucr(n){return ZZ(),Xr((ZBt(),Aln),n)}function zcr(n){return bZ(),Xr((yBt(),kln),n)}function Gcr(n){return BZ(),Xr((vBt(),Rln),n)}function qcr(n){return WZ(),Xr((_Bt(),Nln),n)}function Hcr(n){return NZ(),Xr((wBt(),Dln),n)}function Vcr(n){return MQ(),Xr((RPt(),tcn),n)}function Ycr(n){return N8(),Xr((gPt(),rrn),n)}function jcr(n){return lr(),Xr((ZFt(),Znn),n)}function Wcr(n){return HQ(),Xr((EBt(),ncn),n)}function Kcr(n){return n0e(),Xr((IPt(),rcn),n)}function Xcr(n){return rM(),Xr((kFt(),acn),n)}function Qcr(n){return VK(),Xr((YMt(),ocn),n)}function Zcr(n){return Kz(),Xr((IBt(),scn),n)}function Jcr(n){return YK(),Xr((jMt(),ccn),n)}function eur(n){return bz(),Xr((NPt(),ucn),n)}function tur(n){return uG(),Xr((RFt(),hcn),n)}function nur(n){return AL(),Xr((WMt(),Acn),n)}function rur(n){return $z(),Xr((OPt(),kcn),n)}function iur(n){return d1(),Xr((NFt(),Dcn),n)}function aur(n){return dy(),Xr((K$t(),Pcn),n)}function sur(n){return qg(),Xr((JFt(),Bcn),n)}function our(n){return q_(),Xr((e$t(),qcn),n)}function lur(n){return ys(),Xr((IFt(),lun),n)}function cur(n){return W1(),Xr((NBt(),cun),n)}function uur(n){return Xm(),Xr((tFt(),uun),n)}function hur(n){return oJ(),Xr((t$t(),hun),n)}function dur(n){return Km(),Xr((RBt(),fun),n)}function fur(n){return Id(),Xr((nFt(),gun),n)}function pur(n){return w4(),Xr((hUt(),mun),n)}function gur(n){return ZT(),Xr((OFt(),bun),n)}function mur(n){return co(),Xr((n$t(),yun),n)}function bur(n){return Ah(),Xr((r$t(),vun),n)}function yur(n){return Bt(),Xr((LFt(),_un),n)}function vur(n){return ud(),Xr((rFt(),Tun),n)}function _ur(n){return qh(),Xr((uUt(),Cun),n)}function wur(n){return Uk(),Xr((OBt(),Aun),n)}function Eur(n,i){return hr(n),n+(hr(i),i)}function xur(n){return ode(),Xr((LPt(),kun),n)}function Sur(n){return LZ(),Xr((iFt(),Run),n)}function Tur(n){return xZ(),Xr((aFt(),Oun),n)}function r8(){r8=z,VVe=(Bt(),cr),_ne=gr}function ode(){ode=z,lKe=new u9t,cKe=new K9t}function Cur(n){return!n.e&&(n.e=new Ot),n.e}function lde(n,i){this.c=n,this.a=i,this.b=i-n}function MOt(n,i,l){this.a=n,this.b=i,this.c=l}function cde(n,i,l){this.a=n,this.b=i,this.c=l}function CIe(n,i,l){this.a=n,this.b=i,this.c=l}function AIe(n,i,l){this.a=n,this.b=i,this.c=l}function POt(n,i,l){this.a=n,this.b=i,this.c=l}function BOt(n,i,l){this.a=n,this.b=i,this.c=l}function Wb(n,i,l){this.e=n,this.a=i,this.c=l}function FOt(n,i,l){tf(),VNe.call(this,n,i,l)}function ude(n,i,l){tf(),kNe.call(this,n,i,l)}function kIe(n,i,l){tf(),kNe.call(this,n,i,l)}function RIe(n,i,l){tf(),kNe.call(this,n,i,l)}function $Ot(n,i,l){tf(),ude.call(this,n,i,l)}function IIe(n,i,l){tf(),ude.call(this,n,i,l)}function UOt(n,i,l){tf(),IIe.call(this,n,i,l)}function zOt(n,i,l){tf(),kIe.call(this,n,i,l)}function GOt(n,i,l){tf(),RIe.call(this,n,i,l)}function hde(n){WX.call(this,n.d,n.c,n.a,n.b)}function NIe(n){WX.call(this,n.d,n.c,n.a,n.b)}function OIe(n){this.d=n,w5t(this),this.b=Thr(n.d)}function Aur(n){return oI(),Xr((X$t(),Vun),n)}function WU(n,i){return ni(n),ni(i),new X7t(n,i)}function vk(n,i){return ni(n),ni(i),new t9t(n,i)}function kur(n,i){return ni(n),ni(i),new n9t(n,i)}function Rur(n,i){return ni(n),ni(i),new aRt(n,i)}function dde(n){return Tr(n.b!=0),cf(n,n.a.a)}function Iur(n){return Tr(n.b!=0),cf(n,n.c.b)}function Nur(n){return!n.c&&(n.c=new OR),n.c}function i8(n){var i;return i=new Ot,Pfe(i,n),i}function Our(n){var i;return i=new fs,Pfe(i,n),i}function qOt(n){var i;return i=new D7e,Kfe(i,n),i}function KU(n){var i;return i=new Ea,Kfe(i,n),i}function v(n,i){return tD(n==null||W0e(n,i)),n}function Lur(n,i,l){G9t.call(this,i,l),this.a=n}function HOt(n,i){this.c=n,this.b=i,this.a=!1}function VOt(){this.a=";,;",this.b="",this.c=""}function YOt(n,i,l){this.b=n,rIt.call(this,i,l)}function LIe(n,i,l){this.c=n,QK.call(this,i,l)}function DIe(n,i,l){XR.call(this,n,i),this.b=l}function MIe(n,i,l){AMe(l,0,n,i,l.length,!1)}function Bg(n,i,l,d,g){n.b=i,n.c=l,n.d=d,n.a=g}function PIe(n,i,l,d,g){n.d=i,n.c=l,n.a=d,n.b=g}function Dur(n,i){i&&(n.b=i,n.a=(Pv(i),i.a))}function XU(n,i){if(!n)throw _e(new ar(i))}function _k(n,i){if(!n)throw _e(new Tl(i))}function BIe(n,i){if(!n)throw _e(new e7t(i))}function Mur(n,i){return qK(),Nc(n.d.p,i.d.p)}function Pur(n,i){return jm(),ha(n.e.b,i.e.b)}function Bur(n,i){return jm(),ha(n.e.a,i.e.a)}function Fur(n,i){return Nc(o9t(n.d),o9t(i.d))}function $X(n,i){return i&&cQ(n,i.d)?i:null}function $ur(n,i){return i==(Bt(),cr)?n.c:n.d}function FIe(n){return zv(Fhr(jl(n)?Uf(n):n))}function Uur(n){return new Ct(n.c+n.b,n.d+n.a)}function jOt(n){return n!=null&&!L0e(n,ZP,JP)}function zur(n,i){return(Tzt(n)<<4|Tzt(i))&vs}function WOt(n,i,l,d,g){n.c=i,n.d=l,n.b=d,n.a=g}function $Ie(n){var i,l;i=n.b,l=n.c,n.b=l,n.c=i}function UIe(n){var i,l;l=n.d,i=n.a,n.d=i,n.a=l}function Gur(n,i){var l;return l=n.c,y9e(n,i),l}function zIe(n,i){return i<0?n.g=-1:n.g=i,n}function UX(n,i){return Xgr(n),n.a*=i,n.b*=i,n}function KOt(n,i,l){qFt.call(this,i,l),this.d=n}function QU(n,i,l){s8e.call(this,n,i),this.c=l}function zX(n,i,l){s8e.call(this,n,i),this.c=l}function GIe(n){_Ie(),gK.call(this),this.ci(n)}function XOt(){y8(),cdr.call(this,(Rv(),t0))}function QOt(n){return zi(),new Fg(0,n)}function ZOt(){ZOt=z,K2e=(Fn(),new Eue(Zme))}function GX(){GX=z,new JLe((Pue(),ube),(Mue(),cbe))}function JOt(){JOt=z,sze=st(Ao,kt,17,256,0,1)}function e9t(){this.b=We(at(zt((A0(),qbe))))}function fde(n){this.b=n,this.a=x_(this.b.a).Od()}function t9t(n,i){this.b=n,this.a=i,fue.call(this)}function n9t(n,i){this.a=n,this.b=i,fue.call(this)}function r9t(n,i,l){this.a=n,NT.call(this,i,l)}function i9t(n,i,l){this.a=n,NT.call(this,i,l)}function a8(n,i,l){var d;d=new JS(l),c1(n,i,d)}function qIe(n,i,l){var d;return d=n[i],n[i]=l,d}function qX(n){var i;return i=n.slice(),Rfe(i,n)}function HX(n){var i;return i=n.n,n.a.b+i.d+i.a}function a9t(n){var i;return i=n.n,n.e.b+i.d+i.a}function HIe(n){var i;return i=n.n,n.e.a+i.b+i.c}function VIe(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function pi(n,i){return qa(n,i,n.c.b,n.c),!0}function qur(n){return n.a?n.a:zde(n)}function Hur(n){return kk(),Hg(n)==Aa(jv(n))}function Vur(n){return kk(),jv(n)==Aa(Hg(n))}function wE(n,i){return KD(n,new XR(i.a,i.b))}function Yur(n,i){return hQ(),n1e(n,i),new ALt(n,i)}function jur(n,i){return n.c<i.c?-1:n.c==i.c?0:1}function s9t(n){return n.b.c.length-n.e.c.length}function o9t(n){return n.e.c.length-n.g.c.length}function pde(n){return n.e.c.length+n.g.c.length}function ZU(n){return n==0||isNaN(n)?n:n<0?-1:1}function Wur(n){return!Jo(n)&&n.c.i.c==n.d.i.c}function Kur(n){return Sd(),(Bt(),Du).Hc(n.j)}function Xur(n,i,l){return jm(),l.e.a+l.f.a+n*i}function Qur(n,i,l){return jm(),l.e.b+l.f.b+n*i}function Zur(n,i,l){return Ni(n.b,v(l.b,18),i)}function Jur(n,i,l){return Ni(n.b,v(l.b,18),i)}function ehr(n,i,l){U7r(n.a,n.b,n.c,v(i,166),l)}function YIe(n,i,l,d){YLe.call(this,n,i,l,d,0,0)}function l9t(n){_Ie(),GIe.call(this,n),this.a=-1}function c9t(n,i){G9t.call(this,i,1040),this.a=n}function u9t(){S8t.call(this,"COUNT_CHILDREN",0)}function VX(n,i){DU.call(this,n,i),this.a=this}function $a(n,i){var l;return l=Pde(n,i),l.i=2,l}function YX(n,i){var l;return++n.j,l=n.Cj(i),l}function yi(n,i,l){return n.a=-1,z8e(n,i.g,l),n}function thr(n,i){return Lt(n,new Ct(i.a,i.b))}function h9t(n){return Pk(),st(Sne,wee,40,n,0,1)}function d9t(n){return n.e.Rd().gc()*n.c.Rd().gc()}function gde(n,i,l){return new wOt(hdr(n)._e(),l,i)}function nhr(n,i){v9e(n,i==null?null:(hr(i),i))}function rhr(n,i){b9e(n,i==null?null:(hr(i),i))}function ihr(n,i){b9e(n,i==null?null:(hr(i),i))}function tD(n){if(!n)throw _e(new UR(null))}function jIe(n){if(n.c.e!=n.a)throw _e(new Jd)}function WIe(n){if(n.e.c!=n.b)throw _e(new Jd)}function jX(n){for(ni(n);n.Ob();)n.Pb(),n.Qb()}function mde(n){CE(),this.a=(Fn(),new Eue(ni(n)))}function KIe(n){this.c=n,this.b=this.c.d.vc().Kc()}function ahr(n){n.a.ld(),v(n.a.md(),16).gc(),iRe()}function f9t(n,i){return n.a+=Qp(i,0,i.length),n}function Yt(n,i){return $n(i,n.c.length),n.c[i]}function p9t(n,i){return $n(i,n.a.length),n.a[i]}function shr(n,i){return hr(i),Oz(i,(hr(n),n))}function ohr(n,i){return hr(n),Oz(n,(hr(i),i))}function E_(n,i,l,d,g,y){return Fqt(n,i,l,d,g,0,y)}function lhr(n,i){return Ga(i,0,XIe(i[0],Zm(1)))}function chr(n,i){return Zm(zo(Zm(n.a).a,i.a))}function XIe(n,i){return chr(v(n,168),v(i,168))}function g9t(){g9t=z,oze=st(ux,kt,168,256,0,1)}function m9t(){m9t=z,uze=st(hx,kt,191,256,0,1)}function b9t(){b9t=z,rze=st(d6,kt,222,256,0,1)}function y9t(){y9t=z,aze=st(WM,kt,180,128,0,1)}function QIe(){Bg(this,!1,!1,!1,!1)}function ZIe(n){f7e.call(this,new Zb),bo(this,n)}function nD(n){this.a=new ok(n.gc()),bo(this,n)}function v9t(n){this.c=n,this.a=new lk(this.c.a)}function _9t(n){this.a=n,this.c=new Br,Obr(this)}function w9t(){this.d=new Ct(0,0),this.e=new fs}function xn(n,i){w_(),Tfe.call(this,n),this.a=i}function WX(n,i,l,d){PIe(this,n,i,l,d)}function uhr(n,i,l){return Nc(i.d[n.g],l.d[n.g])}function hhr(n,i,l){return Nc(n.d[i.p],n.d[l.p])}function dhr(n,i,l){return Nc(n.d[i.p],n.d[l.p])}function fhr(n,i,l){return Nc(n.d[i.p],n.d[l.p])}function phr(n,i,l){return Nc(n.d[i.p],n.d[l.p])}function KX(n,i,l){return u.Math.min(l/n,1/i)}function E9t(n,i){return n?0:u.Math.max(0,i-1)}function bde(n,i){return n==null?i==null:An(n,i)}function ghr(n,i){return n==null?i==null:UZ(n,i)}function x9t(n){return n.q?n.q:(Fn(),Fn(),Jg)}function S9t(n){return n.c-v(Yt(n.a,n.b),294).b}function od(n){return n.c?n.c.f:n.e.b}function lh(n){return n.c?n.c.g:n.e.a}function mhr(n,i){return n.a==null&&ajt(n),n.a[i]}function T9t(n){var i;return i=Uqt(n),i?T9t(i):n}function XX(n,i){return zi(),new bNe(n,i)}function Fg(n,i){zi(),rE.call(this,n),this.a=i}function QX(n,i){tf(),xK.call(this,i),this.a=n}function rD(n,i,l){this.a=n,gs.call(this,i,l,2)}function C9t(n){this.b=new Ea,this.a=n,this.c=-1}function A9t(n){$8e.call(this,0,0),this.a=n,this.b=0}function ZX(n){PE.call(this,n.gc()),Ka(this,n)}function JX(n){n.b?JX(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function JIe(n){return Array.isArray(n)&&n.Tm===Z}function yde(n,i){return $e(i,22)&&oh(n,v(i,22))}function k9t(n,i){return $e(i,22)&&Vgr(n,v(i,22))}function ol(n,i){return ezt(n,i,wpr(n,n.b.Ce(i)))}function bhr(n,i){return n.a.get(i)!==void 0}function eNe(n){return Gh(n,26)*bM+Gh(n,27)*yM}function R9t(n,i){return umr(new sn,new I5t(n),i)}function vde(n,i,l){ZUt(0,i,n.length),_8(n,0,i,l)}function EE(n,i,l){n4(i,n.c.length),OL(n.c,i,l)}function eQ(n,i,l){var d;n&&(d=n.i,d.c=i,d.b=l)}function tQ(n,i,l){var d;n&&(d=n.i,d.d=i,d.a=l)}function I9t(n,i,l){var d;for(d=0;d<i;++d)n[d]=l}function yhr(n,i){var l;for(l=0;l<i;++l)n[l]=-1}function va(n,i){var l;return l=bn(n),H9e(l,i),l}function vhr(n,i){return!n&&(n=[]),n[n.length]=i,n}function _de(n,i){Hi(n.c,i),n.b.c+=i.a,n.b.d+=i.b}function _hr(n,i){_de(n,$s(new Ct(i.a,i.b),n.c))}function wde(n,i){this.b=new Ea,this.a=n,this.c=i}function N9t(){this.b=new nE,this.c=new hDt(this)}function tNe(){this.d=new Ut,this.e=new uDt(this)}function nNe(){XNe(),this.f=new Ea,this.e=new Ea}function O9t(){Sd(),this.k=new Br,this.d=new fs}function Ede(){Ede=z,Dun=new fo((Ei(),jh),0)}function L9t(){L9t=z,wen=new A9t(st(zs,Yn,1,0,5,1))}function whr(n,i,l){return Es(n,new ck(i.a,l.a))}function Ehr(n,i,l){return-Nc(n.f[i.p],n.f[l.p])}function xhr(n,i,l){WVt(l,n,1),Lt(i,new WRt(l,n))}function Shr(n,i,l){WD(l,n,1),Lt(i,new QRt(l,n))}function D9t(n,i,l){this.a=n,TX.call(this,i,l,22)}function M9t(n,i,l){this.a=n,TX.call(this,i,l,14)}function P9t(n,i,l,d){tf(),_Mt.call(this,n,i,l,d)}function B9t(n,i,l,d){tf(),_Mt.call(this,n,i,l,d)}function ch(n,i,l){return n.a=-1,z8e(n,i.g+1,l),n}function rNe(n,i,l){return l=Od(n,v(i,54),7,l),l}function iNe(n,i,l){return l=Od(n,v(i,54),3,l),l}function ti(n){return jl(n)?n|0:w7t(n)}function F9t(n){return zi(),new Zde(10,n,0)}function $9t(n){var i;return i=n.f,i||(n.f=n.Dc())}function wk(n){var i;return i=n.i,i||(n.i=n.bc())}function nQ(n){if(n.e.j!=n.d)throw _e(new Jd)}function x_(n){return n.c?n.c:n.c=n.Sd()}function xde(n){return n.d?n.d:n.d=n.Td()}function iD(n,i){return p2r(Sz(n,i))?i.zi():null}function Thr(n){return $e(n,15)?v(n,15).ed():n.Kc()}function aNe(n){return n.Qc(st(zs,Yn,1,n.gc(),5,1))}function U9t(n){return n!=null&&kde(n)&&n.Tm!==Z}function sNe(n){return!Array.isArray(n)&&n.Tm===Z}function z9t(n,i){return ni(i),n.a.Jd(i)&&!n.b.Jd(i)}function Chr(n,i){return Su(n.l&i.l,n.m&i.m,n.h&i.h)}function Ahr(n,i){return Su(n.l|i.l,n.m|i.m,n.h|i.h)}function khr(n,i){return Su(n.l^i.l,n.m^i.m,n.h^i.h)}function w0(n,i){return zv(yHt(jl(n)?Uf(n):n,i))}function xE(n,i){return zv(PMe(jl(n)?Uf(n):n,i))}function Dv(n,i){return zv(cSr(jl(n)?Uf(n):n,i))}function Rhr(n,i){return Wor((hr(n),n),(hr(i),i))}function Sde(n,i){return ha((hr(n),n),(hr(i),i))}function rQ(n){this.b=new gu(11),this.a=(IE(),n)}function yr(n){this.a=(L9t(),wen),this.d=v(ni(n),51)}function G9t(n,i){this.c=0,this.d=n,this.b=i|64|ng}function oNe(n,i){this.e=n,this.d=i&64?i|ng:i}function Tde(n){this.b=null,this.a=(IE(),n||yze)}function q9t(n){CX(this),this.g=n,gQ(this),this.je()}function S_(n){Iv(),this.a=0,this.b=n-1,this.c=1}function lNe(n,i,l,d){this.a=n,FQ.call(this,n,i,l,d)}function Ihr(n,i,l){n.a.Mb(l)&&(n.b=!0,i.Cd(l))}function cNe(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function s8(n,i){if(n<0||n>=i)throw _e(new z7e)}function QS(n,i){return jz(n,(hr(i),new k5t(i)))}function Ek(n,i){return jz(n,(hr(i),new R5t(i)))}function H9t(n,i,l){return v8r(n,v(i,12),v(l,12))}function V9t(n){return hh(),v(n,12).g.c.length!=0}function Y9t(n){return hh(),v(n,12).e.c.length!=0}function Nhr(n,i){return Bk(),ha(i.a.o.a,n.a.o.a)}function Ohr(n,i){i.Bb&Sc&&!n.a.o&&(n.a.o=i)}function Lhr(n,i){i.Ug("General 'Rotator",1),j7r(n)}function Dhr(n,i,l){i.qf(l,We(at(br(n.b,l)))*n.a)}function j9t(n,i,l){return l5(),O8(n,i)&&O8(n,l)}function aD(n){return Ah(),!n.Hc(ub)&&!n.Hc(v2)}function Mhr(n){return n.e?OOe(n.e):null}function sD(n){return jl(n)?""+n:QYt(n)}function uNe(n){var i;for(i=n;i.f;)i=i.f;return i}function Phr(n,i,l){return Ga(i,0,XIe(i[0],l[0])),i}function Kb(n,i,l,d){var g;g=n.i,g.i=i,g.a=l,g.b=d}function vt(n,i,l,d){gs.call(this,n,i,l),this.b=d}function js(n,i,l,d,g){Afe.call(this,n,i,l,d,g,-1)}function oD(n,i,l,d,g){vz.call(this,n,i,l,d,g,-1)}function iQ(n,i,l,d){QU.call(this,n,i,l),this.b=d}function W9t(n){V8t.call(this,n,!1),this.a=!1}function K9t(){S8t.call(this,"LOOKAHEAD_LAYOUT",1)}function X9t(n){this.b=n,gk.call(this,n),tNt(this)}function Q9t(n){this.b=n,$U.call(this,n),nNt(this)}function ZS(n,i,l){this.a=n,bk.call(this,i,l,5,6)}function hNe(n,i,l,d){this.b=n,gs.call(this,i,l,d)}function Z9t(n,i){this.b=n,i5t.call(this,n.b),this.a=i}function J9t(n){this.a=PGt(n.a),this.b=new Eh(n.b)}function dNe(n,i){CE(),har.call(this,n,AZ(new wh(i)))}function aQ(n,i){return zi(),new ANe(n,i,0)}function Cde(n,i){return zi(),new ANe(6,n,i)}function xo(n,i){for(hr(i);n.Ob();)i.Cd(n.Pb())}function Tu(n,i){return ro(i)?Kde(n,i):!!ol(n.f,i)}function Ade(n,i){return i.Vh()?Hv(n.b,v(i,54)):i}function Bhr(n,i){return An(n.substr(0,i.length),i)}function $g(n){return new yr(new L8e(n.a.length,n.a))}function sQ(n){return new Ct(n.c+n.b/2,n.d+n.a/2)}function Fhr(n){return Su(~n.l&Hh,~n.m&Hh,~n.h&rb)}function kde(n){return typeof n===NG||typeof n===xpe}function xh(n){n.f=new vIt(n),n.i=new _It(n),++n.g}function eLt(n){if(!n)throw _e(new ec);return n.d}function xk(n){var i;return i=ID(n),Tr(i!=null),i}function $hr(n){var i;return i=tvr(n),Tr(i!=null),i}function o8(n,i){var l;return l=n.a.gc(),AOe(i,l),l-i}function Es(n,i){var l;return l=n.a.zc(i,n),l==null}function JU(n,i){return n.a.zc(i,(Qn(),a2))==null}function fNe(n){return new xn(null,Hhr(n,n.length))}function pNe(n,i,l){return wWt(n,v(i,42),v(l,176))}function Sk(n,i,l){return S0(n.a,i),qIe(n.b,i.g,l)}function Uhr(n,i,l){s8(l,n.a.c.length),of(n.a,l,i)}function tt(n,i,l,d){ZUt(i,l,n.length),zhr(n,i,l,d)}function zhr(n,i,l,d){var g;for(g=i;g<l;++g)n[g]=d}function gNe(n,i){var l;for(l=0;l<i;++l)n[l]=!1}function T_(n,i,l){eg(),this.e=n,this.d=i,this.a=l}function mNe(n,i,l){this.c=n,this.a=i,Fn(),this.b=l}function Rde(n,i){this.d=n,mr.call(this,n),this.e=i}function a1(n,i,l){return syr(n,i.g,l),S0(n.c,i),n}function Ghr(n){return d5(n,(ys(),Ol)),n.d=!0,n}function Ide(n){return!n.j&&Wrr(n,VCr(n.g,n.b)),n.j}function tLt(n){n.a=null,n.e=null,xh(n.b),n.d=0,++n.c}function lD(n){jS(n.b!=-1),Jb(n.c,n.a=n.b),n.b=-1}function bNe(n,i){rE.call(this,1),this.a=n,this.b=i}function qhr(n,i){return n>0?u.Math.log(n/i):-100}function nLt(n,i){return Oc(n,i)<0?-1:Oc(n,i)>0?1:0}function ez(n,i){jIt(n,$e(i,160)?i:v(i,2036).Rl())}function yNe(n,i){if(n==null)throw _e(new rk(i))}function Hhr(n,i){return Ygr(i,n.length),new c9t(n,i)}function vNe(n,i){return i?bo(n,i):!1}function Vhr(){return RK(),Te(xe(Een,1),wt,549,0,[fbe])}function cD(n){return n.e==0?n:new T_(-n.e,n.d,n.a)}function Yhr(n,i){return ha(n.c.c+n.c.b,i.c.c+i.c.b)}function tz(n,i){qa(n.d,i,n.b.b,n.b),++n.a,n.c=null}function rLt(n,i){return n.c?rLt(n.c,i):Lt(n.b,i),n}function jhr(n,i,l){var d;return d=s4(n,i),hfe(n,i,l),d}function iLt(n,i,l){var d;for(d=0;d<i;++d)Ga(n,d,l)}function aLt(n,i,l,d,g){for(;i<l;)d[g++]=Do(n,i++)}function l8(n,i,l,d,g){v1e(n,v(Zi(i.k,l),15),l,d,g)}function SE(n,i){ts(Bl(n.Oc(),new A_t),new UCt(i))}function Whr(n,i){return ha(n.e.a+n.f.a,i.e.a+i.f.a)}function Khr(n,i){return ha(n.e.b+n.f.b,i.e.b+i.f.b)}function Nde(n){return u.Math.abs(n.d.e-n.e.e)-n.a}function Xhr(n){return n==ka?dq:n==Ss?"-INF":""+n}function Qhr(n){return n==ka?dq:n==Ss?"-INF":""+n}function Zhr(n){return kk(),Aa(Hg(n))==Aa(jv(n))}function Jhr(n,i,l){return v(n.c.hd(i,v(l,136)),44)}function edr(n,i){Tk(n,new JS(i.f!=null?i.f:""+i.g))}function tdr(n,i){Tk(n,new JS(i.f!=null?i.f:""+i.g))}function Ka(n,i){return n.Si()&&(i=ODt(n,i)),n.Fi(i)}function Ode(n,i){return i=n.Yk(null,i),eHt(n,null,i)}function ndr(n,i){++n.j,y1e(n,n.i,i),T4r(n,v(i,343))}function _Ne(n){n?GDe(n,(Pm(),Len)):sfr((Pm(),n))}function TE(n){this.d=(hr(n),n),this.a=0,this.c=MG}function Lde(n,i){this.d=jyr(n),this.c=i,this.a=.5*i}function sLt(n){qNe.call(this),this.a=n,Lt(n.a,this)}function oLt(){Zb.call(this),this.a=!0,this.b=!0}function lLt(){lLt=z,Aen=new n7e(!1),ken=new n7e(!0)}function uD(n){var i;return i=n.g,i||(n.g=new Z6e(n))}function oQ(n){var i;return i=n.k,i||(n.k=new J6e(n))}function wNe(n){var i;return i=n.k,i||(n.k=new J6e(n))}function rdr(n){var i;return i=n.i,i||(n.i=new ZTt(n))}function cLt(n){var i;return i=n.f,i||(n.f=new O8e(n))}function Dde(n){var i;return i=n.j,i||(n.j=new h5t(n))}function Mde(n){var i;return i=n.d,i||(n.d=new mue(n))}function uLt(n,i,l){return zi(),new aMt(n,i,l)}function hLt(n,i){return fz(i,n.c.b.c.gc()),new K7t(n,i)}function ENe(n,i){var l;return l=n.a.gc(),fz(i,l),l-1-i}function K(n,i,l){var d;return d=Pde(n,i),o$t(l,d),d}function Pde(n,i){var l;return l=new z9e,l.j=n,l.d=i,l}function ni(n){if(n==null)throw _e(new ZA);return n}function JS(n){if(n==null)throw _e(new ZA);this.a=n}function dLt(n){I7e(),this.b=new Ot,this.a=n,K6r(this,n)}function xNe(n){this.b=n,this.a=v($f(this.b.a.e),227)}function CE(){CE=z,jp(),hbe=new Qde((Fn(),Fn(),Zo))}function Bde(){Bde=z,jp(),KUe=new ARe((Fn(),Fn(),ete))}function Mv(){Mv=z,Zn=S4r(),Pn(),d3&&Twr()}function lQ(n){n.s=NaN,n.c=NaN,PVt(n,n.e),PVt(n,n.j)}function kr(n){return(n.i==null&&tg(n),n.i).length}function fLt(n,i){return v(x_(n.a).Md().Xb(i),44).ld()}function br(n,i){return ro(i)?Qc(n,i):Pl(ol(n.f,i))}function idr(n,i){return kk(),n==Hg(i)?jv(i):Hg(i)}function adr(n,i,l,d){return l==0||(l-d)/l<n.e||i>=n.g}function Ga(n,i,l){return For(l==null||OAr(n,l)),n[i]=l}function SNe(n,i){return sr(i,n.length+1),n.substr(i)}function Fde(n,i){for(hr(i);n.c<n.d;)n.Se(i,n.c++)}function TNe(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function pLt(n){this.c=n,this.a=new Ea,this.b=new Ea}function Xc(n){this.c=new ho,this.a=new Ot,this.b=n}function gLt(n){this.b=new Ot,this.a=new Ot,this.c=n}function sdr(n,i,l){v(i.b,68),Cu(i.a,new CIe(n,l,i))}function odr(n,i){return Bk(),v(yl(n,i.d),15).Fc(i)}function Tk(n,i){var l;l=n.a.length,s4(n,l),hfe(n,l,i)}function mLt(n,i){var l;l=console[n],l.call(console,i)}function bLt(n,i){var l;++n.j,l=n.Ej(),n.rj(n.Zi(l,i))}function $de(n,i,l){var d;return d=Wfe(n,i,l),uPe(n,d)}function AE(n){return!n.d&&(n.d=new gs(pl,n,1)),n.d}function ldr(n){return!n.a&&(n.a=new gs(_2,n,4)),n.a}function c8(n,i){return n.a+=String.fromCharCode(i),n}function C_(n,i){return n.a+=String.fromCharCode(i),n}function CNe(n,i,l){this.a=n,C7e.call(this,i),this.b=l}function yLt(n,i,l){this.a=n,lOe.call(this,8,i,null,l)}function ANe(n,i,l){rE.call(this,n),this.a=i,this.b=l}function kNe(n,i,l){xK.call(this,i),this.a=n,this.b=l}function vLt(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function cdr(n){this.a=(hr(gi),gi),this.b=n,new V7e}function _Lt(n){MNe(n.a),n.b=st(zs,Yn,1,n.b.length,5,1)}function ld(n){jS(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function hD(n){return u.Math.sqrt(n.a*n.a+n.b*n.b)}function cQ(n,i){return h1e(n.c,n.f,i,n.b,n.a,n.e,n.d)}function kE(n,i){return s8(i,n.a.c.length),Yt(n.a,i)}function Wp(n,i){return Ze(n)===Ze(i)||n!=null&&Yi(n,i)}function wLt(n){return $e(n,102)&&(v(n,19).Bb&Sc)!=0}function ELt(n){return $f(n),$e(n,484)?v(n,484):Kl(n)}function xLt(n){return n?n.dc():!n.Kc().Ob()}function udr(n){return p3?Kde(p3,n):!1}function hdr(n){return 0>=n?new wRe:mmr(n-1)}function So(n){return!n.a&&n.c?n.c.b:n.a}function RNe(n){return $e(n,616)?n:new xDt(n)}function Pv(n){n.c?Pv(n.c):(Vv(n),n.d=!0)}function dD(n){n.c?n.c.$e():(n.d=!0,DTr(n))}function SLt(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function TLt(n){var i,l;return i=n.c.i.c,l=n.d.i.c,i==l}function ddr(n,i){var l;l=n.Ih(i),l>=0?n.ki(l):yMe(n,i)}function CLt(n,i){n.c<0||n.b.b<n.c?jo(n.b,i):n.a.tf(i)}function fdr(n,i){Yr((!n.a&&(n.a=new qU(n,n)),n.a),i)}function pdr(n,i){_de(v(i.b,68),n),Cu(i.a,new v7e(n))}function gdr(n,i){return Nc(i.j.c.length,n.j.c.length)}function mdr(n,i,l){return Fk(),l.Lg(n,v(i.ld(),149))}function $f(n){if(n==null)throw _e(new ZA);return n}function hr(n){if(n==null)throw _e(new ZA);return n}function bdr(n){if(n.p!=4)throw _e(new ih);return n.e}function ydr(n){if(n.p!=3)throw _e(new ih);return n.e}function vdr(n){if(n.p!=3)throw _e(new ih);return n.j}function _dr(n){if(n.p!=4)throw _e(new ih);return n.j}function wdr(n){if(n.p!=6)throw _e(new ih);return n.f}function Edr(n){if(n.p!=6)throw _e(new ih);return n.k}function INe(n){return!n.b&&(n.b=new SK(new Due)),n.b}function RE(n){return n.c==-2&&$rr(n,gxr(n.g,n.b)),n.c}function u8(n,i){var l;return l=Pde("",n),l.n=i,l.i=1,l}function uQ(n,i,l,d){hE.call(this,n,l),this.a=i,this.f=d}function NNe(n,i,l,d){hE.call(this,n,i),this.d=l,this.a=d}function ALt(n,i){Dsr.call(this,bmr(ni(n),ni(i))),this.a=i}function ms(){M6t.call(this),$S(this.j.c,0),this.a=-1}function kLt(){KDe.call(this,Yf,(HR(),LKe)),qkr(this)}function RLt(){KDe.call(this,nw,(_7t(),vhn)),M6r(this)}function ILt(){Kr.call(this,"DELAUNAY_TRIANGULATION",0)}function xdr(n){return String.fromCharCode.apply(null,n)}function Ni(n,i,l){return ro(i)?Cl(n,i,l):yu(n.f,i,l)}function ONe(n){return Fn(),n?n.Oe():(IE(),IE(),vze)}function Sdr(n){return kd(n,Ape),QQ(zo(zo(5,n),n/10|0))}function NLt(n,i){return GX(),new JLe(new fNt(n),new dNt(i))}function hQ(){hQ=z,_en=new eRe(Te(xe(rw,1),$J,44,0,[]))}function OLt(n){return!n.d&&(n.d=new DR(n.c.Cc())),n.d}function h8(n){return!n.a&&(n.a=new a7t(n.c.vc())),n.a}function LLt(n){return!n.b&&(n.b=new zR(n.c.ec())),n.b}function Ug(n,i){for(;i-- >0;)n=n<<1|(n<0?1:0);return n}function DLt(n,i){var l;return l=new Xc(n),jn(i.c,l),l}function MLt(n,i){n.u.Hc((Ah(),ub))&&b4r(n,i),Mpr(n,i)}function Ec(n,i){return Ze(n)===Ze(i)||n!=null&&Yi(n,i)}function yl(n,i){return yde(n.a,i)?n.b[v(i,22).g]:null}function Tdr(){return GK(),Te(xe(Xze,1),wt,489,0,[Pbe])}function Cdr(){return VK(),Te(xe(Sje,1),wt,490,0,[s2e])}function Adr(){return YK(),Te(xe(lcn,1),wt,558,0,[o2e])}function kdr(){return AL(),Te(xe(Vje,1),wt,539,0,[eH])}function dQ(n){return!n.n&&(n.n=new vt(wl,n,1,7)),n.n}function Ude(n){return!n.c&&(n.c=new vt(Oh,n,9,9)),n.c}function LNe(n){return!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c}function Rdr(n){return!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b}function nz(n){return n.j.c.length=0,MNe(n.c),olr(n.a),n}function d8(n){return n.e==zI&&Vrr(n,x2r(n.g,n.b)),n.e}function rz(n){return n.f==zI&&jrr(n,pwr(n.g,n.b)),n.f}function Oi(n,i,l,d){return iUt(n,i,l,!1),kZ(n,d),n}function PLt(n,i){this.b=n,Rde.call(this,n,i),tNt(this)}function BLt(n,i){this.b=n,bIe.call(this,n,i),nNt(this)}function fD(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function DNe(n,i){this.b=n,this.c=i,this.a=new lk(this.b)}function Do(n,i){return sr(i,n.length),n.charCodeAt(i)}function Idr(n,i){wLe(n,We(Wm(i,"x")),We(Wm(i,"y")))}function Ndr(n,i){wLe(n,We(Wm(i,"x")),We(Wm(i,"y")))}function Ki(n,i){return Vv(n),new xn(n,new VOe(i,n.a))}function Bl(n,i){return Vv(n),new xn(n,new IOe(i,n.a))}function e4(n,i){return Vv(n),new K8e(n,new YPt(i,n.a))}function fQ(n,i){return Vv(n),new X8e(n,new jPt(i,n.a))}function Odr(n,i){return new oDt(v(ni(n),50),v(ni(i),50))}function Ldr(n,i){return ha(n.d.c+n.d.b/2,i.d.c+i.d.b/2)}function FLt(n,i,l){l.a?ku(n,i.b-n.f/2):Au(n,i.a-n.g/2)}function Ddr(n,i){return ha(n.g.c+n.g.b/2,i.g.c+i.g.b/2)}function Mdr(n,i){return SRe(),ha((hr(n),n),(hr(i),i))}function Pdr(n){return n!=null&&mU(dre,n.toLowerCase())}function MNe(n){var i;for(i=n.Kc();i.Ob();)i.Pb(),i.Qb()}function zT(n){var i;return i=n.b,!i&&(n.b=i=new XTt(n)),i}function zde(n){var i;return i=_mr(n),i||null}function $Lt(n,i){var l,d;return l=n/i,d=Ps(l),l>d&&++d,d}function Bdr(n,i,l){var d;d=v(n.d.Kb(l),159),d&&d.Nb(i)}function Fdr(n,i,l){Ukr(n.a,l),bbr(l),o3r(n.b,l),s6r(i,l)}function pQ(n,i,l,d){this.a=n,this.c=i,this.b=l,this.d=d}function PNe(n,i,l,d){this.c=n,this.b=i,this.a=l,this.d=d}function ULt(n,i,l,d){this.c=n,this.b=i,this.d=l,this.a=d}function rf(n,i,l,d){this.c=n,this.d=i,this.b=l,this.a=d}function zLt(n,i,l,d){this.a=n,this.d=i,this.c=l,this.b=d}function Gde(n,i,l,d){this.a=n,this.e=i,this.d=l,this.c=d}function GLt(n,i,l,d){this.a=n,this.c=i,this.d=l,this.b=d}function qde(n,i,l){this.a=cBe,this.d=n,this.b=i,this.c=l}function Ck(n,i,l,d){Kr.call(this,n,i),this.a=l,this.b=d}function qLt(n,i){this.d=(hr(n),n),this.a=16449,this.c=i}function HLt(n){this.a=new Ot,this.e=st(Wr,kt,53,n,0,2)}function $dr(n){n.Ug("No crossing minimization",1),n.Vg()}function VLt(){tc.call(this,"There is no more element.")}function YLt(n,i,l,d){this.a=n,this.b=i,this.c=l,this.d=d}function jLt(n,i,l,d){this.a=n,this.b=i,this.c=l,this.d=d}function A_(n,i,l,d){this.e=n,this.a=i,this.c=l,this.d=d}function WLt(n,i,l,d){this.a=n,this.c=i,this.d=l,this.b=d}function KLt(n,i,l,d){tf(),WPt.call(this,i,l,d),this.a=n}function XLt(n,i,l,d){tf(),WPt.call(this,i,l,d),this.a=n}function Hde(n,i,l){var d,g;return d=KPe(n),g=i.ti(l,d),g}function $m(n){var i,l;return l=(i=new iE,i),x8(l,n),l}function Vde(n){var i,l;return l=(i=new iE,i),ZDe(l,n),l}function Udr(n,i){var l;return l=br(n.f,i),N9e(i,l),null}function QLt(n){return!n.b&&(n.b=new vt(ss,n,12,3)),n.b}function ZLt(n){return tD(n==null||kde(n)&&n.Tm!==Z),n}function gQ(n){return n.n&&(n.e!==JKt&&n.je(),n.j=null),n}function f8(n){if(zh(n.d),n.d.d!=n.c)throw _e(new Jd)}function BNe(n){return Tr(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function xd(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function Yde(n){this.f=n,this.c=this.f.e,n.f>0&&Iqt(this)}function JLt(n,i){this.a=n,$or.call(this,n,v(n.d,15).fd(i))}function zdr(n,i){return ha(lh(n)*od(n),lh(i)*od(i))}function Gdr(n,i){return ha(lh(n)*od(n),lh(i)*od(i))}function qdr(n){return KE(n)&&Vt(Ht(Et(n,(qt(),lw))))}function Hdr(n,i){return Rn(n,v(oe(i,(qt(),oN)),17),i)}function Vdr(n,i){return v(oe(n,(At(),w6)),15).Fc(i),i}function FNe(n,i){return n.b=i.b,n.c=i.c,n.d=i.d,n.a=i.a,n}function eDt(n,i,l,d){this.b=n,this.c=d,_X.call(this,i,l)}function Ydr(n,i,l){n.i=0,n.e=0,i!=l&&BUt(n,i,l)}function jdr(n,i,l){n.i=0,n.e=0,i!=l&&FUt(n,i,l)}function Wdr(n,i,l){return CL(),wvr(v(br(n.e,i),529),l)}function Ak(n){var i;return i=n.f,i||(n.f=new jR(n,n.c))}function tDt(n,i){return QT(n.j,i.s,i.c)+QT(i.e,n.s,n.c)}function nDt(n,i){n.e&&!n.e.a&&(qkt(n.e,i),nDt(n.e,i))}function rDt(n,i){n.d&&!n.d.a&&(qkt(n.d,i),rDt(n.d,i))}function Kdr(n,i){return-ha(lh(n)*od(n),lh(i)*od(i))}function Xdr(n){return v(n.ld(),149).Pg()+":"+Kl(n.md())}function iDt(){S1e(this,new X6e),this.wb=(Mv(),Zn),HR()}function aDt(n){this.b=new Ot,xs(this.b,this.b),this.a=n}function $Ne(n,i){new Ea,this.a=new ah,this.b=n,this.c=i}function IE(){IE=z,yze=new ne,wbe=new ne,vze=new se}function Fn(){Fn=z,Zo=new Q,Jg=new j,ete=new ee}function UNe(){UNe=z,ttn=new mt,rtn=new tNe,ntn=new lt}function kk(){kk=z,lte=new Ot,Ube=new Br,$be=new Ot}function mQ(n,i){if(n==null)throw _e(new rk(i));return n}function bQ(n){return!n.a&&(n.a=new vt(Pi,n,10,11)),n.a}function ia(n){return!n.q&&(n.q=new vt(e0,n,11,10)),n.q}function bt(n){return!n.s&&(n.s=new vt(Ju,n,21,17)),n.s}function Qdr(n){return ni(n),YGt(new yr(_r(n.a.Kc(),new S)))}function Zdr(n,i){return cd(n),cd(i),J6t(v(n,22),v(i,22))}function k_(n,i,l){var d,g;d=vIe(l),g=new bK(d),c1(n,i,g)}function jde(n,i,l,d,g,y){vz.call(this,n,i,l,d,g,y?-2:-1)}function sDt(n,i,l,d){s8e.call(this,i,l),this.b=n,this.a=d}function oDt(n,i){bir.call(this,new Tde(n)),this.a=n,this.b=i}function zNe(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Jdr(n){_0();var i;i=v(n.g,10),i.n.a=n.d.c+i.d.b}function p8(){p8=z;var n,i;i=!s2r(),n=new F,mbe=i?new M:n}function Wde(n){return Fn(),$e(n,59)?new Hue(n):new kX(n)}function yQ(n){return $e(n,16)?new nD(v(n,16)):Our(n.Kc())}function efr(n){return new iNt(n,n.e.Rd().gc()*n.c.Rd().gc())}function tfr(n){return new aNt(n,n.e.Rd().gc()*n.c.Rd().gc())}function GNe(n){return n&&n.hashCode?n.hashCode():vE(n)}function Kde(n,i){return i==null?!!ol(n.f,null):bhr(n.i,i)}function nfr(n,i){var l;return l=S8e(n.a,i),l&&(i.d=null),l}function lDt(n,i,l){return n.f?n.f.ef(i,l):!1}function iz(n,i,l,d){Ga(n.c[i.g],l.g,d),Ga(n.c[l.g],i.g,d)}function Xde(n,i,l,d){Ga(n.c[i.g],i.g,l),Ga(n.b[i.g],i.g,d)}function rfr(n,i,l){return We(at(l.a))<=n&&We(at(l.b))>=i}function cDt(n,i){this.g=n,this.d=Te(xe(tm,1),gy,10,0,[i])}function uDt(n){this.c=n,this.b=new Vb(v(ni(new $t),50))}function hDt(n){this.c=n,this.b=new Vb(v(ni(new Mf),50))}function dDt(n){this.b=n,this.a=new Vb(v(ni(new Or),50))}function fDt(){this.b=new fs,this.d=new Ea,this.e=new G7e}function qNe(){this.c=new ho,this.d=new ho,this.e=new ho}function NE(){this.a=new ah,this.b=(kd(3,k4),new gu(3))}function Xb(n,i){this.e=n,this.a=zs,this.b=fjt(i),this.c=i}function vQ(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function pDt(n,i,l,d,g,y){this.a=n,Gfe.call(this,i,l,d,g,y)}function gDt(n,i,l,d,g,y){this.a=n,Gfe.call(this,i,l,d,g,y)}function Bv(n,i,l,d,g,y,x){return new ffe(n.e,i,l,d,g,y,x)}function ifr(n,i,l){return l>=0&&An(n.substr(l,i.length),i)}function mDt(n,i){return $e(i,149)&&An(n.b,v(i,149).Pg())}function afr(n,i){return n.a?i.Gh().Kc():v(i.Gh(),71).Ii()}function bDt(n,i){var l;return l=n.b.Qc(i),hPt(l,n.b.gc()),l}function az(n,i){if(n==null)throw _e(new rk(i));return n}function Fl(n){return n.u||($h(n),n.u=new XNt(n,n)),n.u}function Qde(n){this.a=(Fn(),$e(n,59)?new Hue(n):new kX(n))}function Vu(n){var i;return i=v(rr(n,16),29),i||n.ii()}function _Q(n,i){var l;return l=__(n.Rm),i==null?l:l+": "+i}function af(n,i,l){return mo(i,l,n.length),n.substr(i,l-i)}function yDt(n,i){LX.call(this),e9e(this),this.a=n,this.c=i}function sfr(n){n&&_Q(n,n.ie())}function ofr(n){OK(),u.setTimeout(function(){throw n},0)}function lfr(){return GZ(),Te(xe(Aze,1),wt,436,0,[Rbe,Cze])}function cfr(){return KQ(),Te(xe(Rze,1),wt,435,0,[kze,Ibe])}function ufr(){return XQ(),Te(xe(rGe,1),wt,432,0,[zbe,cte])}function hfr(){return N8(),Te(xe(nrn,1),wt,517,0,[Tq,tye])}function dfr(){return IQ(),Te(xe(Uqe,1),wt,429,0,[Nye,$qe])}function ffr(){return Rz(),Te(xe(Sqe,1),wt,428,0,[$te,xqe])}function pfr(){return zQ(),Te(xe(mqe,1),wt,431,0,[gqe,mye])}function gfr(){return Az(),Te(xe(OVe,1),wt,430,0,[dve,fve])}function mfr(){return yD(),Te(xe(jsn,1),wt,531,0,[EP,wP])}function bfr(){return hZ(),Te(xe(kYe,1),wt,501,0,[Rne,j5])}function yfr(){return Kp(),Te(xe(eon,1),wt,523,0,[Cx,Ey])}function vfr(){return G1(),Te(xe(non,1),wt,522,0,[fw,sp])}function _fr(){return o1(),Te(xe(bon,1),wt,528,0,[n3,d2])}function wfr(){return Ez(),Te(xe(Aqe,1),wt,488,0,[Cqe,zte])}function Efr(){return MQ(),Te(xe(bje,1),wt,491,0,[r2e,mje])}function xfr(){return n0e(),Te(xe(xje,1),wt,492,0,[wje,Eje])}function Sfr(){return AQ(),Te(xe(AYe,1),wt,433,0,[Mve,CYe])}function Tfr(){return qQ(),Te(xe(IYe,1),wt,434,0,[RYe,zve])}function Cfr(){return LE(),Te(xe(Son,1),wt,465,0,[f2,H5])}function Afr(){return bz(),Te(xe(Tje,1),wt,438,0,[l2e,Une])}function kfr(){return $z(),Te(xe(jje,1),wt,437,0,[Gne,Yje])}function Rfr(){return ode(),Te(xe(rre,1),wt,347,0,[lKe,cKe])}function wQ(n,i,l,d){return l>=0?n.Uh(i,l,d):n.Ch(null,l,d)}function sz(n){return n.b.b==0?n.a.sf():dde(n.b)}function Ifr(n){if(n.p!=5)throw _e(new ih);return ti(n.f)}function Nfr(n){if(n.p!=5)throw _e(new ih);return ti(n.k)}function HNe(n){return Ze(n.a)===Ze((e0e(),Y2e))&&R6r(n),n.a}function Ofr(n,i){n.b=i,n.c>0&&n.b>0&&(n.g=KX(n.c,n.b,n.a))}function Lfr(n,i){n.c=i,n.c>0&&n.b>0&&(n.g=KX(n.c,n.b,n.a))}function vDt(n,i){Rrr(this,new Ct(n.a,n.b)),Irr(this,KU(i))}function OE(){yir.call(this,new ok(o4(12))),R8e(!0),this.a=2}function Zde(n,i,l){zi(),rE.call(this,n),this.b=i,this.a=l}function VNe(n,i,l){tf(),xK.call(this,i),this.a=n,this.b=l}function _Dt(n){var i;i=n.c.d.b,n.b=i,n.a=n.c.d,i.a=n.c.d.b=n}function Dfr(n){return n.b==0?null:(Tr(n.b!=0),cf(n,n.a.a))}function Qc(n,i){return i==null?Pl(ol(n.f,null)):NL(n.i,i)}function wDt(n,i,l,d,g){return new C1e(n,(w8(),Tbe),i,l,d,g)}function EQ(n,i){return lPt(i),imr(n,st(Wr,vi,28,i,15,1),i)}function xQ(n,i){return mQ(n,"set1"),mQ(i,"set2"),new uRt(n,i)}function Mfr(n,i){var l=gbe[n.charCodeAt(0)];return l??n}function EDt(n,i){var l,d;return l=i,d=new ye,KWt(n,l,d),d.d}function Jde(n,i,l,d){var g;g=new JNt,i.a[l.g]=g,Sk(n.b,d,g)}function Pfr(n,i){var l;return l=tmr(n.f,i),Hi(OX(l),n.f.d)}function oz(n){var i;dmr(n.a),RIt(n.a),i=new _K(n.a),NLe(i)}function Bfr(n,i){rjt(n,!0),Cu(n.e.Rf(),new xIe(n,!0,i))}function Ffr(n,i){return kk(),n==Aa(Hg(i))||n==Aa(jv(i))}function $fr(n,i){return jm(),v(oe(i,(pc(),gg)),17).a==n}function Ps(n){return Math.max(Math.min(n,qi),-2147483648)|0}function xDt(n){this.a=v(ni(n),277),this.b=(Fn(),new P8e(n))}function SDt(n,i,l){this.i=new Ot,this.b=n,this.g=i,this.a=l}function YNe(n,i,l){this.a=new Ot,this.e=n,this.f=i,this.c=l}function SQ(n,i,l){this.c=new Ot,this.e=n,this.f=i,this.b=l}function TDt(n){LX.call(this),e9e(this),this.a=n,this.c=!0}function Ufr(n){function i(){}return i.prototype=n||{},new i}function zfr(n){if(n.Ae())return null;var i=n.n;return Wee[i]}function lz(n){return n.Db>>16!=3?null:v(n.Cb,27)}function z1(n){return n.Db>>16!=9?null:v(n.Cb,27)}function CDt(n){return n.Db>>16!=6?null:v(n.Cb,74)}function LE(){LE=z,f2=new WRe(r6,0),H5=new WRe(i6,1)}function Kp(){Kp=z,Cx=new VRe(i6,0),Ey=new VRe(r6,1)}function G1(){G1=z,fw=new YRe(cge,0),sp=new YRe("UP",1)}function ADt(){ADt=z,xen=Qr((RK(),Te(xe(Een,1),wt,549,0,[fbe])))}function kDt(n){var i;return i=new PK(o4(n.length)),H9e(i,n),i}function RDt(n,i){return n.b+=i.b,n.c+=i.c,n.d+=i.d,n.a+=i.a,n}function Gfr(n,i){return gUt(n,i)?(h$t(n),!0):!1}function Um(n,i){if(i==null)throw _e(new ZA);return l2r(n,i)}function cz(n,i){var l;l=n.q.getHours(),n.q.setDate(i),cM(n,l)}function jNe(n,i,l){var d;d=n.Ih(i),d>=0?n.bi(d,l):VMe(n,i,l)}function IDt(n,i){var l;return l=n.Ih(i),l>=0?n.Wh(l):O1e(n,i)}function NDt(n,i){var l;for(ni(i),l=n.a;l;l=l.c)i.Yd(l.g,l.i)}function efe(n,i,l){var d;d=MUt(n,i,l),n.b=new fZ(d.c.length)}function GT(n,i,l){TQ(),n&&Ni(q2e,n,i),n&&Ni(EH,n,l)}function qfr(n,i){return FX(),Qn(),v(i.a,17).a<n}function Hfr(n,i){return FX(),Qn(),v(i.b,17).a<n}function tfe(n,i){return u.Math.abs(n)<u.Math.abs(i)?n:i}function Vfr(n){return!n.a&&(n.a=new vt(Pi,n,10,11)),n.a.i>0}function WNe(n){var i;return i=n.d,i=n.bj(n.f),Yr(n,i),i.Ob()}function ODt(n,i){var l;return l=new ZIe(i),rHt(l,n),new Eh(l)}function Yfr(n){if(n.p!=0)throw _e(new ih);return qL(n.f,0)}function jfr(n){if(n.p!=0)throw _e(new ih);return qL(n.k,0)}function LDt(n){return n.Db>>16!=7?null:v(n.Cb,241)}function g8(n){return n.Db>>16!=6?null:v(n.Cb,241)}function DDt(n){return n.Db>>16!=7?null:v(n.Cb,167)}function Aa(n){return n.Db>>16!=11?null:v(n.Cb,27)}function t4(n){return n.Db>>16!=17?null:v(n.Cb,29)}function MDt(n){return n.Db>>16!=3?null:v(n.Cb,155)}function KNe(n){var i;return Vv(n),i=new fs,Ki(n,new z5t(i))}function PDt(n,i){var l=n.a=n.a||[];return l[i]||(l[i]=n.ve(i))}function Wfr(n,i){var l;l=n.q.getHours(),n.q.setMonth(i),cM(n,l)}function BDt(n,i){CX(this),this.f=i,this.g=n,gQ(this),this.je()}function FDt(n,i){this.a=n,this.c=Eo(this.a),this.b=new vQ(i)}function $Dt(n,i,l){this.a=i,this.c=n,this.b=(ni(l),new Eh(l))}function UDt(n,i,l){this.a=i,this.c=n,this.b=(ni(l),new Eh(l))}function zDt(n){this.a=n,this.b=st(Hsn,kt,2043,n.e.length,0,2)}function GDt(){this.a=new Hp,this.e=new fs,this.g=0,this.i=0}function TQ(){TQ=z,q2e=new Br,EH=new Br,zar(zen,new NSt)}function qDt(){qDt=z,ksn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function XNe(){XNe=z,Rsn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function HDt(){HDt=z,Nsn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function VDt(){VDt=z,Ksn=yi(new ms,(Mo(),Gl),(qo(),eP))}function Sd(){Sd=z,Zsn=yi(new ms,(Mo(),Gl),(qo(),eP))}function YDt(){YDt=z,Jsn=yi(new ms,(Mo(),Gl),(qo(),eP))}function nfe(){nfe=z,ion=yi(new ms,(Mo(),Gl),(qo(),eP))}function pD(n,i,l,d,g,y){return new Vm(n.e,i,n.Lj(),l,d,g,y)}function Cl(n,i,l){return i==null?yu(n.f,null,l):qE(n.i,i,l)}function Uo(n,i){n.c&&Yu(n.c.g,n),n.c=i,n.c&&Lt(n.c.g,n)}function po(n,i){n.c&&Yu(n.c.a,n),n.c=i,n.c&&Lt(n.c.a,n)}function rc(n,i){n.i&&Yu(n.i.j,n),n.i=i,n.i&&Lt(n.i.j,n)}function lo(n,i){n.d&&Yu(n.d.e,n),n.d=i,n.d&&Lt(n.d.e,n)}function rfe(n,i){n.a&&Yu(n.a.k,n),n.a=i,n.a&&Lt(n.a.k,n)}function ife(n,i){n.b&&Yu(n.b.f,n),n.b=i,n.b&&Lt(n.b.f,n)}function jDt(n,i){sdr(n,n.b,n.c),v(n.b.b,68),i&&v(i.b,68).b}function Kfr(n,i){return ha(v(n.c,65).c.e.b,v(i.c,65).c.e.b)}function Xfr(n,i){return ha(v(n.c,65).c.e.a,v(i.c,65).c.e.a)}function Qfr(n){return _0e(),Qn(),v(n.a,86).d.e!=0}function CQ(n,i){$e(n.Cb,184)&&(v(n.Cb,184).tb=null),mu(n,i)}function afe(n,i){$e(n.Cb,90)&&_4($h(v(n.Cb,90)),4),mu(n,i)}function Zfr(n,i){ELe(n,i),$e(n.Cb,90)&&_4($h(v(n.Cb,90)),2)}function Jfr(n,i){var l,d;l=i.c,d=l!=null,d&&Tk(n,new JS(i.c))}function WDt(n){var i,l;return l=(HR(),i=new iE,i),x8(l,n),l}function KDt(n){var i,l;return l=(HR(),i=new iE,i),x8(l,n),l}function XDt(n){for(var i;;)if(i=n.Pb(),!n.Ob())return i}function e0r(n,i,l){return Lt(n.a,(hQ(),n1e(i,l),new hE(i,l))),n}function Zc(n,i){return al(),Dfe(i)?new VX(i,n):new DU(i,n)}function uz(n){return eg(),Oc(n,0)>=0?Yv(n):cD(Yv(ty(n)))}function t0r(n){var i;return i=v(qX(n.b),9),new nf(n.a,i,n.c)}function QDt(n,i){var l;return l=v(d4(Ak(n.a),i),16),l?l.gc():0}function ZDt(n,i,l){var d;xzt(i,l,n.c.length),d=l-i,yRe(n.c,i,d)}function Qb(n,i,l){xzt(i,l,n.gc()),this.c=n,this.a=i,this.b=l-i}function Rk(n){this.c=new Ea,this.b=n.b,this.d=n.c,this.a=n.a}function sfe(n){this.a=u.Math.cos(n),this.b=u.Math.sin(n)}function R_(n,i,l,d){this.c=n,this.d=d,rfe(this,i),ife(this,l)}function QNe(n,i){mir.call(this,new ok(o4(n))),kd(i,jKt),this.a=i}function JDt(n,i,l){return new C1e(n,(w8(),Sbe),null,!1,i,l)}function eMt(n,i,l){return new C1e(n,(w8(),Cbe),i,l,null,!1)}function n0r(){return Ch(),Te(xe(Il,1),wt,108,0,[Tze,Ql,B4])}function r0r(){return ju(),Te(xe(dtn,1),wt,472,0,[g1,o2,I0])}function i0r(){return Th(),Te(xe(utn,1),wt,471,0,[dg,s2,R0])}function a0r(){return u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])}function s0r(){return wD(),Te(xe(yGe,1),wt,391,0,[Vbe,Hbe,Ybe])}function o0r(){return UE(),Te(xe(oye,1),wt,372,0,[px,l2,fx])}function l0r(){return SD(),Te(xe(yqe,1),wt,322,0,[nP,Rq,bqe])}function c0r(){return iZ(),Te(xe(_qe,1),wt,351,0,[vqe,Fte,bye])}function u0r(){return F_(),Te(xe(Lrn,1),wt,460,0,[_ye,tN,O5])}function h0r(){return P8(),Te(xe(Iye,1),wt,299,0,[kye,Rye,Iq])}function d0r(){return Ym(),Te(xe(zrn,1),wt,311,0,[Nq,D5,y6])}function f0r(){return DD(),Te(xe(EVe,1),wt,390,0,[ave,wVe,gne])}function p0r(){return ll(),Te(xe(wsn,1),wt,463,0,[yP,Rh,_u])}function g0r(){return yZ(),Te(xe(MVe,1),wt,387,0,[LVe,pve,DVe])}function m0r(){return ND(),Te(xe(PVe,1),wt,349,0,[mve,gve,Gq])}function b0r(){return H8(),Te(xe(FVe,1),wt,350,0,[bve,BVe,vP])}function y0r(){return rZ(),Te(xe(zVe,1),wt,352,0,[UVe,yve,$Ve])}function v0r(){return EZ(),Te(xe(GVe,1),wt,388,0,[vve,pN,t3])}function _0r(){return $E(),Te(xe(Gsn,1),wt,464,0,[qq,_P,vne])}function q1(n){return ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a]))}function w0r(){return OD(),Te(xe(aYe,1),wt,392,0,[iYe,Eve,Vq])}function tMt(){tMt=z,Jon=ch(new ms,(Yk(),SP),(oM(),KVe))}function AQ(){AQ=z,Mve=new KRe("DFS",0),CYe=new KRe("BFS",1)}function nMt(n,i,l){var d;d=new $wt,d.b=i,d.a=l,++i.b,Lt(n.d,d)}function E0r(n,i,l){var d;d=new Wo(l.d),Hi(d,n),wLe(i,d.a,d.b)}function x0r(n,i){KIt(n,ti(Us(xE(i,24),GJ)),ti(Us(i,GJ)))}function n4(n,i){if(n<0||n>i)throw _e(new Sl(yBe+n+vBe+i))}function $n(n,i){if(n<0||n>=i)throw _e(new Sl(yBe+n+vBe+i))}function sr(n,i){if(n<0||n>=i)throw _e(new aRe(yBe+n+vBe+i))}function Nn(n,i){this.b=(hr(n),n),this.a=i&R4?i:i|64|ng}function ZNe(n){var i;return Vv(n),i=(IE(),IE(),wbe),JQ(n,i)}function S0r(n,i,l){var d;return d=dM(n,i,!1),d.b<=i&&d.a<=l}function T0r(){return HQ(),Te(xe(_je,1),wt,439,0,[i2e,vje,yje])}function C0r(){return NZ(),Te(xe(tje,1),wt,394,0,[eje,Jve,JYe])}function A0r(){return BZ(),Te(xe(ZYe,1),wt,445,0,[Xq,Lne,jve])}function k0r(){return WZ(),Te(xe(Iln,1),wt,456,0,[Wve,Xve,Kve])}function R0r(){return qz(),Te(xe(LYe,1),wt,393,0,[Ine,NYe,OYe])}function I0r(){return bZ(),Te(xe(QYe,1),wt,300,0,[Yve,XYe,KYe])}function N0r(){return Km(),Te(xe(eKe,1),wt,346,0,[Xne,Cy,qP])}function O0r(){return Kz(),Te(xe(a2e,1),wt,444,0,[Bne,Fne,$ne])}function L0r(){return W1(),Te(xe(GWe,1),wt,278,0,[wN,s3,EN])}function D0r(){return Uk(),Te(xe(oKe,1),wt,280,0,[sKe,l3,nre])}function DE(n){return ni(n),$e(n,16)?new Eh(v(n,16)):i8(n.Kc())}function JNe(n,i){return n&&n.equals?n.equals(i):Ze(n)===Ze(i)}function Us(n,i){return zv(Chr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function s1(n,i){return zv(Ahr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function ofe(n,i){return zv(khr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function M0r(n,i){var l;return l=(hr(n),n).g,j8e(!!l),hr(i),l(i)}function rMt(n,i){var l,d;return d=o8(n,i),l=n.a.fd(d),new lRt(n,l)}function P0r(n){return n.Db>>16!=6?null:v(M1e(n),241)}function B0r(n){if(n.p!=2)throw _e(new ih);return ti(n.f)&vs}function F0r(n){if(n.p!=2)throw _e(new ih);return ti(n.k)&vs}function pe(n){return Tr(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function $0r(n,i){n.b=n.b|i.b,n.c=n.c|i.c,n.d=n.d|i.d,n.a=n.a|i.a}function U0r(n,i){var l;l=We(at(n.a.of((Ei(),jne)))),yKt(n,i,l)}function iMt(n,i){T_.call(this,1,2,Te(xe(Wr,1),vi,28,15,[n,i]))}function aMt(n,i,l){rE.call(this,25),this.b=n,this.a=i,this.c=l}function Td(n){zi(),rE.call(this,n),this.c=!1,this.a=!1}function z0r(n){return n.a==(y8(),mre)&&zrr(n,tCr(n.g,n.b)),n.a}function Ik(n){return n.d==(y8(),mre)&&qrr(n,ekr(n.g,n.b)),n.d}function G0r(n,i){return ED(),n.c==i.c?ha(i.d,n.d):ha(i.c,n.c)}function q0r(n,i){return ED(),n.c==i.c?ha(i.d,n.d):ha(n.c,i.c)}function H0r(n,i){return ED(),n.c==i.c?ha(n.d,i.d):ha(n.c,i.c)}function V0r(n,i){return ED(),n.c==i.c?ha(n.d,i.d):ha(i.c,n.c)}function eOe(n,i){return k9t(n.a,i)?qIe(n.b,v(i,22).g,null):null}function Y0r(n){return zo(w0(xc(Gh(n,32)),32),xc(Gh(n,32)))}function tOe(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function I_(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function sMt(n,i){var l;for(l=n+"";l.length<i;)l="0"+l;return l}function j0r(n,i){var l;l=v(br(n.g,i),60),Cu(i.d,new e8t(n,l))}function W0r(n,i){var l,d;return l=cqt(n),d=cqt(i),l<d?-1:l>d?1:0}function oMt(n,i){var l,d;return l=Ife(i),d=l,v(br(n.c,d),17).a}function lfe(n,i,l){var d;d=n.d[i.p],n.d[i.p]=n.d[l.p],n.d[l.p]=d}function K0r(n,i,l){var d;n.n&&i&&l&&(d=new ESt,Lt(n.e,d))}function cfe(n,i){if(Es(n.a,i),i.d)throw _e(new tc(mXt));i.d=n}function nOe(n,i){this.a=new Ot,this.d=new Ot,this.f=n,this.c=i}function lMt(){this.c=new VIt,this.a=new QPt,this.b=new c6t,ARt()}function cMt(){Fk(),this.b=new Br,this.a=new Br,this.c=new Ot}function uMt(n,i,l){this.d=n,this.j=i,this.e=l,this.o=-1,this.p=3}function hMt(n,i,l){this.d=n,this.k=i,this.f=l,this.o=-1,this.p=5}function dMt(n,i,l,d,g,y){n9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function fMt(n,i,l,d,g,y){r9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function pMt(n,i,l,d,g,y){_Oe.call(this,n,i,l,d,g),y&&(this.o=-2)}function gMt(n,i,l,d,g,y){s9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function mMt(n,i,l,d,g,y){wOe.call(this,n,i,l,d,g),y&&(this.o=-2)}function bMt(n,i,l,d,g,y){i9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function yMt(n,i,l,d,g,y){a9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function vMt(n,i,l,d,g,y){EOe.call(this,n,i,l,d,g),y&&(this.o=-2)}function _Mt(n,i,l,d){xK.call(this,l),this.b=n,this.c=i,this.d=d}function wMt(n,i){this.f=n,this.a=(y8(),gre),this.c=gre,this.b=i}function EMt(n,i){this.g=n,this.d=(y8(),mre),this.a=mre,this.b=i}function rOe(n,i){!n.c&&(n.c=new Xa(n,0)),OJ(n.c,(ca(),tB),i)}function X0r(n,i){return O3r(n,i,$e(i,102)&&(v(i,19).Bb&el)!=0)}function Q0r(n,i){return nLt(xc(n.q.getTime()),xc(i.q.getTime()))}function xMt(n){return gde(n.e.Rd().gc()*n.c.Rd().gc(),16,new jTt(n))}function Z0r(n){return!!n.u&&Uc(n.u.a).i!=0&&!(n.n&&Z0e(n.n))}function J0r(n){return!!n.a&&Uh(n.a.a).i!=0&&!(n.b&&J0e(n.b))}function iOe(n,i){return i==0?!!n.o&&n.o.f!=0:Y0e(n,i)}function e1r(n,i,l){var d;return d=v(n.Zb().xc(i),16),!!d&&d.Hc(l)}function SMt(n,i,l){var d;return d=v(n.Zb().xc(i),16),!!d&&d.Mc(l)}function TMt(n,i){var l;return l=1-i,n.a[l]=dZ(n.a[l],l),dZ(n,i)}function CMt(n,i){var l,d;return d=Us(n,ul),l=w0(i,32),s1(l,d)}function AMt(n,i,l){var d;d=(ni(n),new Eh(n)),nwr(new $Dt(d,i,l))}function hz(n,i,l){var d;d=(ni(n),new Eh(n)),rwr(new UDt(d,i,l))}function dc(n,i,l,d,g,y){return iUt(n,i,l,y),fLe(n,d),pLe(n,g),n}function kMt(n,i,l,d){return n.a+=""+af(i==null?Ku:Kl(i),l,d),n}function go(n,i){this.a=n,hL.call(this,n),n4(i,n.gc()),this.b=i}function RMt(n){this.a=st(zs,Yn,1,U9e(u.Math.max(8,n))<<1,5,1)}function dz(n){return v(X1(n,st(tm,gy,10,n.c.length,0,1)),199)}function Xp(n){return v(X1(n,st(Jbe,Cge,18,n.c.length,0,1)),483)}function IMt(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function gD(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function NMt(n){return Tr(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function t1r(n,i,l){n.a=i,n.c=l,n.b.a.$b(),xd(n.d),$S(n.e.a.c,0)}function OMt(n,i){var l;n.e=new K7e,l=E4(i),us(l,n.c),YYt(n,l,0)}function bs(n,i,l,d){var g;g=new q6e,g.a=i,g.b=l,g.c=d,pi(n.a,g)}function It(n,i,l,d){var g;g=new q6e,g.a=i,g.b=l,g.c=d,pi(n.b,g)}function LMt(n,i,l){if(n<0||i<n||i>l)throw _e(new Sl(pSr(n,i,l)))}function fz(n,i){if(n<0||n>=i)throw _e(new Sl(VSr(n,i)));return n}function n1r(n){if(!("stack"in n))try{throw n}catch{}return n}function qT(n){return CL(),$e(n.g,10)?v(n.g,10):null}function r1r(n){return zT(n).dc()?!1:(Tsr(n,new I),!0)}function N_(n){var i;return jl(n)?(i=n,i==-0?0:i):ygr(n)}function DMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function MMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function PMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function aOe(n){var i;return Pv(n),i=new ie,TT(n.a,new F5t(i)),i}function sOe(){var n,i,l;return i=(l=(n=new iE,n),l),Lt(qKe,i),i}function kQ(n){var i;return Pv(n),i=new ge,TT(n.a,new $5t(i)),i}function i1r(n,i){return n.a<=n.b?(i.Dd(n.a++),!0):!1}function BMt(n){Qfe.call(this,n,(w8(),xbe),null,!1,null,!1)}function FMt(){FMt=z,Htn=Qr((GK(),Te(xe(Xze,1),wt,489,0,[Pbe])))}function $Mt(){$Mt=z,HVe=NLt(Nt(1),Nt(4)),qVe=NLt(Nt(1),Nt(2))}function a1r(n,i){return new cde(i,ZL(Eo(i.e),n,n),(Qn(),!0))}function RQ(n){return new gu((kd(n,Ape),QQ(zo(zo(5,n),n/10|0))))}function s1r(n){return gde(n.e.Rd().gc()*n.c.Rd().gc(),273,new YTt(n))}function UMt(n){return v(X1(n,st(Jnn,WXt,12,n.c.length,0,1)),2042)}function o1r(n){return Sd(),!Jo(n)&&!(!Jo(n)&&n.c.i.c==n.d.i.c)}function l1r(n,i){return Pk(),v(oe(i,(pc(),V5)),17).a>=n.gc()}function mD(n,i){HRr(i,n),$Ie(n.d),$Ie(v(oe(n,(qt(),lne)),214))}function ufe(n,i){VRr(i,n),UIe(n.d),UIe(v(oe(n,(qt(),lne)),214))}function c1r(n,i,l){n.d&&Yu(n.d.e,n),n.d=i,n.d&&EE(n.d.e,l,n)}function u1r(n,i,l){return l.f.c.length>0?pNe(n.a,i,l):pNe(n.b,i,l)}function h1r(n,i,l){var d;d=k2r();try{return Zor(n,i,l)}finally{rpr(d)}}function ME(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=l.pe()),d}function bD(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=l.se()),d}function m8(n,i){var l,d;return l=s4(n,i),d=null,l&&(d=l.se()),d}function zm(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=aMe(l)),d}function d1r(n,i,l){var d;return d=Z8(l),AJ(n.g,d,i),AJ(n.i,i,l),i}function oOe(n,i,l){this.d=new QCt(this),this.e=n,this.i=i,this.f=l}function zMt(n,i,l,d){this.e=null,this.c=n,this.d=i,this.a=l,this.b=d}function GMt(n,i,l,d){$It(this),this.c=n,this.e=i,this.f=l,this.b=d}function lOe(n,i,l,d){this.d=n,this.n=i,this.g=l,this.o=d,this.p=-1}function qMt(n,i,l,d){return $e(l,59)?new vNt(n,i,l,d):new lNe(n,i,l,d)}function b8(n){return $e(n,16)?v(n,16).dc():!n.Kc().Ob()}function HMt(n){if(n.e.g!=n.b)throw _e(new Jd);return!!n.c&&n.d>0}function Fr(n){return Tr(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function cOe(n,i){hr(i),Ga(n.a,n.c,i),n.c=n.c+1&n.a.length-1,dqt(n)}function Fv(n,i){hr(i),n.b=n.b-1&n.a.length-1,Ga(n.a,n.b,i),dqt(n)}function VMt(n){var i;i=n.Gh(),this.a=$e(i,71)?v(i,71).Ii():i.Kc()}function f1r(n){return new Nn(Zgr(v(n.a.md(),16).gc(),n.a.ld()),16)}function YMt(){YMt=z,ocn=Qr((VK(),Te(xe(Sje,1),wt,490,0,[s2e])))}function jMt(){jMt=z,ccn=Qr((YK(),Te(xe(lcn,1),wt,558,0,[o2e])))}function WMt(){WMt=z,Acn=Qr((AL(),Te(xe(Vje,1),wt,539,0,[eH])))}function p1r(){return z_(),Te(xe(EGe,1),wt,389,0,[z4,wGe,Qbe,Zbe])}function g1r(){return w8(),Te(xe(tte,1),wt,304,0,[xbe,Sbe,Tbe,Cbe])}function m1r(){return qk(),Te(xe($tn,1),wt,332,0,[yq,bq,vq,_q])}function b1r(){return VD(),Te(xe(Gtn,1),wt,406,0,[wq,ate,ste,Eq])}function y1r(){return GE(),Te(xe(Btn,1),wt,417,0,[mq,gq,Dbe,Mbe])}function v1r(){return B8(),Te(xe(znn,1),wt,416,0,[dx,U4,$4,A5])}function _1r(){return K1(),Te(xe(brn,1),wt,421,0,[b6,WI,KI,sye])}function w1r(){return wZ(),Te(xe(srn,1),wt,371,0,[aye,Ote,Lte,Aq])}function E1r(){return g4(),Te(xe(ove,1),wt,203,0,[mne,sve,q5,G5])}function x1r(){return Zp(),Te(xe(NVe,1),wt,284,0,[wy,IVe,uve,hve])}function S1r(n){var i;return n.j==(Bt(),Mr)&&(i=DVt(n),oh(i,gr))}function T1r(n,i){var l;l=i.a,Uo(l,i.c.d),lo(l,i.d.d),u4(l.a,n.n)}function uOe(n,i){var l;return l=v(j1(n.b,i),67),!l&&(l=new Ea),l}function Nk(n){return CL(),$e(n.g,154)?v(n.g,154):null}function C1r(n){n.a=null,n.e=null,$S(n.b.c,0),$S(n.f.c,0),n.c=null}function IQ(){IQ=z,Nye=new GRe(CI,0),$qe=new GRe("TOP_LEFT",1)}function yD(){yD=z,EP=new HRe("UPPER",0),wP=new HRe("LOWER",1)}function A1r(n,i){return pk(new Ct(i.e.a+i.f.a/2,i.e.b+i.f.b/2),n)}function KMt(n,i){return v(ad(QS(v(Zi(n.k,i),15).Oc(),R5)),113)}function XMt(n,i){return v(ad(Ek(v(Zi(n.k,i),15).Oc(),R5)),113)}function k1r(){return Yk(),Te(xe(jVe,1),wt,405,0,[xne,xP,SP,TP])}function R1r(){return LD(),Te(xe(TYe,1),wt,353,0,[Dve,kne,Lve,Ove])}function I1r(){return ZZ(),Te(xe(WYe,1),wt,354,0,[Vve,YYe,jYe,VYe])}function N1r(){return ud(),Te(xe(WP,1),wt,386,0,[mH,vw,gH,o3])}function O1r(){return Id(),Te(xe(pun,1),wt,291,0,[dH,im,m2,hH])}function L1r(){return Xm(),Te(xe(D2e,1),wt,223,0,[L2e,uH,xN,O6])}function D1r(){return LZ(),Te(xe(fKe,1),wt,320,0,[B2e,uKe,dKe,hKe])}function M1r(){return xZ(),Te(xe(Nun,1),wt,415,0,[F2e,gKe,pKe,mKe])}function P1r(n){return TQ(),Tu(q2e,n)?v(br(q2e,n),341).Qg():null}function sf(n,i,l){return i<0?O1e(n,l):v(l,69).wk().Bk(n,n.hi(),i)}function B1r(n,i,l){var d;return d=Z8(l),AJ(n.j,d,i),Ni(n.k,i,l),i}function F1r(n,i,l){var d;return d=Z8(l),AJ(n.d,d,i),Ni(n.e,i,l),i}function QMt(n){var i,l;return i=(kv(),l=new uue,l),n&&bJ(i,n),i}function hOe(n){var i;return i=n.aj(n.i),n.i>0&&Gc(n.g,0,i,0,n.i),i}function ZMt(n,i){var l;for(l=n.j.c.length;l<i;l++)Lt(n.j,n.Ng())}function JMt(n,i,l,d){var g;return g=d[i.g][l.g],We(at(oe(n.a,g)))}function ePt(n,i){jK();var l;return l=v(br(hre,n),57),!l||l.fk(i)}function $1r(n){if(n.p!=1)throw _e(new ih);return ti(n.f)<<24>>24}function U1r(n){if(n.p!=1)throw _e(new ih);return ti(n.k)<<24>>24}function z1r(n){if(n.p!=7)throw _e(new ih);return ti(n.k)<<16>>16}function G1r(n){if(n.p!=7)throw _e(new ih);return ti(n.f)<<16>>16}function HT(n,i){return i.e==0||n.e==0?KM:(uI(),z1e(n,i))}function tPt(n,i){return Ze(i)===Ze(n)?"(this Map)":i==null?Ku:Kl(i)}function q1r(n,i,l){return Sde(at(Pl(ol(n.f,i))),at(Pl(ol(n.f,l))))}function H1r(n,i,l){var d;d=v(br(n.g,l),60),Lt(n.a.c,new Ms(i,d))}function nPt(n,i,l){n.i=0,n.e=0,i!=l&&(FUt(n,i,l),BUt(n,i,l))}function V1r(n,i,l,d,g){var y;y=Y3r(g,l,d),Lt(i,FSr(g,y)),Rxr(n,g,i)}function dOe(n,i,l,d,g){this.i=n,this.a=i,this.e=l,this.j=d,this.f=g}function rPt(n,i){qNe.call(this),this.a=n,this.b=i,Lt(this.a.b,this)}function iPt(n){this.b=new Br,this.c=new Br,this.d=new Br,this.a=n}function aPt(n,i){var l;return l=new sk,n.Gd(l),l.a+="..",i.Hd(l),l.a}function sPt(n,i){var l;for(l=i;l;)_E(n,l.i,l.j),l=Aa(l);return n}function oPt(n,i,l){var d;return d=Z8(l),Ni(n.b,d,i),Ni(n.c,i,l),i}function Gm(n){var i;for(i=0;n.Ob();)n.Pb(),i=zo(i,1);return QQ(i)}function zg(n,i){al();var l;return l=v(n,69).vk(),Vxr(l,i),l.xl(i)}function Y1r(n,i,l){if(l){var d=l.oe();n.a[i]=d(l)}else delete n.a[i]}function fOe(n,i){var l;l=n.q.getHours(),n.q.setFullYear(i+Jv),cM(n,l)}function j1r(n,i){return v(i==null?Pl(ol(n.f,null)):NL(n.i,i),288)}function pOe(n,i){return n==(lr(),is)&&i==is?4:n==is||i==is?8:32}function NQ(n,i,l){return RJ(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function W1r(n,i,l){return pI(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function K1r(n,i,l){return $3r(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function gOe(n){n.b!=n.c&&(n.a=st(zs,Yn,1,8,5,1),n.b=0,n.c=0)}function vD(n){return Tr(n.a<n.c.a.length),n.b=n.a,vFt(n),n.c.b[n.b]}function Uc(n){return n.n||($h(n),n.n=new D9t(n,pl,n),Fl(n)),n.n}function lPt(n){if(n<0)throw _e(new t7t("Negative array size: "+n))}function hfe(n,i,l){if(l){var d=l.oe();l=d(l)}else l=void 0;n.a[i]=l}function cPt(n,i){G8();var l;return l=n.j.g-i.j.g,l!=0?l:0}function X1r(n,i){return Pm(),Yr(bt(n.a),i)}function Q1r(n,i){return Pm(),Yr(bt(n.a),i)}function qm(n,i){eg(),T_.call(this,n,1,Te(xe(Wr,1),vi,28,15,[i]))}function r4(n,i){zi(),rE.call(this,n),this.a=i,this.c=-1,this.b=-1}function i4(n,i,l,d){uMt.call(this,1,l,d),this.c=n,this.b=i}function dfe(n,i,l,d){hMt.call(this,1,l,d),this.c=n,this.b=i}function ffe(n,i,l,d,g,y,x){Gfe.call(this,i,d,g,y,x),this.c=n,this.a=l}function O_(n,i,l){this.e=n,this.a=zs,this.b=fjt(i),this.c=i,this.d=l}function pfe(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function mOe(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function uPt(n){this.c=n,this.a=v(Gf(n),156),this.b=this.a.jk().wi()}function Zb(){Br.call(this),SNt(this),this.d.b=this.d,this.d.a=this.d}function qa(n,i,l,d){var g;g=new ce,g.c=i,g.b=l,g.a=d,d.b=l.a=g,++n.b}function Z1r(n,i){var l;return l=i!=null?Qc(n,i):Pl(ol(n.f,i)),vX(l)}function J1r(n,i){var l;return l=i!=null?Qc(n,i):Pl(ol(n.f,i)),vX(l)}function Wl(n,i){var l;return i.b.Kb(oFt(n,i.c.Xe(),(l=new q5t(i),l)))}function epr(n,i){var l;return lPt(i),l=n.slice(0,i),l.length=i,Rfe(l,n)}function hPt(n,i){var l;for(l=0;l<i;++l)Ga(n,l,new d7e(v(n[l],44)))}function tpr(n,i){var l;for(l=n.d-1;l>=0&&n.a[l]===i[l];l--);return l<0}function OQ(n){var i;return n?new ZIe(n):(i=new Hp,Kfe(i,n),i)}function npr(n,i){var l,d;d=!1;do l=AUt(n,i),d=d|l;while(l);return d}function rpr(n){n&&Rgr((tRe(),QUe)),--Kee,n&&Xee!=-1&&(jar(Xee),Xee=-1)}function LQ(n){qDe(),KIt(this,ti(Us(xE(n,24),GJ)),ti(Us(n,GJ)))}function dPt(){dPt=z,itn=Qr((GZ(),Te(xe(Aze,1),wt,436,0,[Rbe,Cze])))}function fPt(){fPt=z,atn=Qr((KQ(),Te(xe(Rze,1),wt,435,0,[kze,Ibe])))}function pPt(){pPt=z,onn=Qr((XQ(),Te(xe(rGe,1),wt,432,0,[zbe,cte])))}function gPt(){gPt=z,rrn=Qr((N8(),Te(xe(nrn,1),wt,517,0,[Tq,tye])))}function mPt(){mPt=z,qrn=Qr((IQ(),Te(xe(Uqe,1),wt,429,0,[Nye,$qe])))}function bPt(){bPt=z,Orn=Qr((Rz(),Te(xe(Sqe,1),wt,428,0,[$te,xqe])))}function yPt(){yPt=z,Prn=Qr((Ez(),Te(xe(Aqe,1),wt,488,0,[Cqe,zte])))}function vPt(){vPt=z,_sn=Qr((Az(),Te(xe(OVe,1),wt,430,0,[dve,fve])))}function _Pt(){_Pt=z,Wsn=Qr((yD(),Te(xe(jsn,1),wt,531,0,[EP,wP])))}function wPt(){wPt=z,krn=Qr((zQ(),Te(xe(mqe,1),wt,431,0,[gqe,mye])))}function EPt(){EPt=z,Zon=Qr((AQ(),Te(xe(AYe,1),wt,433,0,[Mve,CYe])))}function xPt(){xPt=z,rln=Qr((hZ(),Te(xe(kYe,1),wt,501,0,[Rne,j5])))}function SPt(){SPt=z,ton=Qr((Kp(),Te(xe(eon,1),wt,523,0,[Cx,Ey])))}function TPt(){TPt=z,ron=Qr((G1(),Te(xe(non,1),wt,522,0,[fw,sp])))}function CPt(){CPt=z,yon=Qr((o1(),Te(xe(bon,1),wt,528,0,[n3,d2])))}function APt(){APt=z,Ton=Qr((LE(),Te(xe(Son,1),wt,465,0,[f2,H5])))}function kPt(){kPt=z,sln=Qr((qQ(),Te(xe(IYe,1),wt,434,0,[RYe,zve])))}function RPt(){RPt=z,tcn=Qr((MQ(),Te(xe(bje,1),wt,491,0,[r2e,mje])))}function IPt(){IPt=z,rcn=Qr((n0e(),Te(xe(xje,1),wt,492,0,[wje,Eje])))}function NPt(){NPt=z,ucn=Qr((bz(),Te(xe(Tje,1),wt,438,0,[l2e,Une])))}function OPt(){OPt=z,kcn=Qr(($z(),Te(xe(jje,1),wt,437,0,[Gne,Yje])))}function LPt(){LPt=z,kun=Qr((ode(),Te(xe(rre,1),wt,347,0,[lKe,cKe])))}function ipr(){return ys(),Te(xe(zP,1),wt,88,0,[cp,ql,Ol,lp,Ef])}function apr(){return Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])}function spr(n,i,l){return v(i==null?yu(n.f,null,l):qE(n.i,i,l),288)}function opr(n){return(n.k==(lr(),is)||n.k==hs)&&ya(n,(At(),sP))}function gfe(n){return n.c&&n.d?tOe(n.c)+"->"+tOe(n.d):"e_"+vE(n)}function To(n,i){var l,d;for(hr(i),d=n.Kc();d.Ob();)l=d.Pb(),i.Cd(l)}function lpr(n,i){var l;l=new nk,k_(l,"x",i.a),k_(l,"y",i.b),Tk(n,l)}function cpr(n,i){var l;l=new nk,k_(l,"x",i.a),k_(l,"y",i.b),Tk(n,l)}function DPt(n,i){var l;for(l=i;l;)_E(n,-l.i,-l.j),l=Aa(l);return n}function bOe(n,i){var l,d;for(l=i,d=0;l>0;)d+=n.a[l],l-=l&-l;return d}function of(n,i,l){var d;return d=($n(i,n.c.length),n.c[i]),n.c[i]=l,d}function yOe(n,i,l){n.a.c.length=0,D6r(n,i,l),n.a.c.length==0||oAr(n,i)}function pz(n){n.i=0,_U(n.b,null),_U(n.c,null),n.a=null,n.e=null,++n.g}function DQ(){DQ=z,rp=!0,Wen=!1,Ken=!1,Qen=!1,Xen=!1}function mfe(n){DQ(),!rp&&(this.c=n,this.e=!0,this.a=new Ot)}function MPt(n,i){this.c=0,this.b=i,iIt.call(this,n,17493),this.a=this.c}function PPt(n){FKt(),Hkt(this),this.a=new Ea,Q9e(this,n),pi(this.a,n)}function BPt(){$he(this),this.b=new Ct(ka,ka),this.a=new Ct(Ss,Ss)}function MQ(){MQ=z,r2e=new ZRe(WBe,0),mje=new ZRe("TARGET_WIDTH",1)}function VT(n,i){return(Vv(n),VR(new xn(n,new VOe(i,n.a)))).Bd(p6)}function upr(){return Mo(),Te(xe(vGe,1),wt,367,0,[N0,em,qc,ru,Gl])}function hpr(){return b4(),Te(xe(vrn,1),wt,375,0,[kq,Pte,Bte,Mte,Dte])}function dpr(){return ly(),Te(xe(Eqe,1),wt,348,0,[yye,wqe,vye,eN,JI])}function fpr(){return HD(),Te(xe(SVe,1),wt,323,0,[xVe,lve,cve,mP,bP])}function ppr(){return pf(),Te(xe(Jqe,1),wt,171,0,[Mq,lP,u2,cP,Y4])}function gpr(){return aJ(),Te(xe(iln,1),wt,368,0,[$ve,Pve,Uve,Bve,Fve])}function mpr(){return rM(),Te(xe(icn,1),wt,373,0,[W5,A6,DP,LP,Jq])}function bpr(){return uG(),Te(xe(Rje,1),wt,324,0,[Cje,c2e,kje,u2e,Aje])}function ypr(){return d1(),Te(xe(rm,1),wt,170,0,[Hn,Fs,mg,pw,Sy])}function vpr(){return ZT(),Te(xe(VP,1),wt,256,0,[b2,fH,tKe,HP,nKe])}function _pr(n){return OK(),function(){return h1r(n,this,arguments)}}function Jo(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function vOe(n,i){return $e(i,143)?An(n.c,v(i,143).c):!1}function $h(n){return n.t||(n.t=new Dkt(n),FD(new X6t(n),0,n.t)),n.t}function FPt(n){this.b=n,mr.call(this,n),this.a=v(rr(this.b.a,4),129)}function $Pt(n){this.b=n,mk.call(this,n),this.a=v(rr(this.b.a,4),129)}function E0(n,i,l,d,g){KPt.call(this,i,d,g),this.c=n,this.b=l}function _Oe(n,i,l,d,g){uMt.call(this,i,d,g),this.c=n,this.a=l}function wOe(n,i,l,d,g){hMt.call(this,i,d,g),this.c=n,this.a=l}function EOe(n,i,l,d,g){KPt.call(this,i,d,g),this.c=n,this.a=l}function bfe(n,i){var l;return l=v(j1(n.d,i),23),l||v(j1(n.e,i),23)}function UPt(n,i){var l,d;return l=i.ld(),d=n.Fe(l),!!d&&Ec(d.e,i.md())}function zPt(n,i){var l;return l=i.ld(),new hE(l,n.e.pc(l,v(i.md(),16)))}function wpr(n,i){var l;return l=n.a.get(i),l??st(zs,Yn,1,0,5,1)}function GPt(n){var i;return i=n.length,An(fr.substr(fr.length-i,i),n)}function Rr(n){if(zr(n))return n.c=n.a,n.a.Pb();throw _e(new ec)}function xOe(n,i){return i==0||n.e==0?n:i>0?NYt(n,i):tGt(n,-i)}function Ok(n,i){return i==0||n.e==0?n:i>0?tGt(n,i):NYt(n,-i)}function SOe(n){Nar.call(this,n==null?Ku:Kl(n),$e(n,82)?v(n,82):null)}function qPt(n){var i;return n.c||(i=n.r,$e(i,90)&&(n.c=v(i,29))),n.c}function yfe(n){var i;return i=new NE,Ul(i,n),_t(i,(qt(),Nl),null),i}function HPt(n){var i,l;return i=n.c.i,l=n.d.i,i.k==(lr(),hs)&&l.k==hs}function vfe(n){var i,l,d;return i=n&Hh,l=n>>22&Hh,d=n<0?rb:0,Su(i,l,d)}function Epr(n){var i,l,d,g;for(l=n,d=0,g=l.length;d<g;++d)i=l[d],dD(i)}function xpr(n,i){var l,d;l=v(Oyr(n.c,i),16),l&&(d=l.gc(),l.$b(),n.d-=d)}function _fe(n,i,l){var d;return d=n.Ih(i),d>=0?n.Lh(d,l,!0):XE(n,i,l)}function Spr(n,i,l){return ha(pk(eI(n),Eo(i.b)),pk(eI(n),Eo(l.b)))}function Tpr(n,i,l){return ha(pk(eI(n),Eo(i.e)),pk(eI(n),Eo(l.e)))}function Cpr(n,i){return u.Math.min($v(i.a,n.d.d.c),$v(i.b,n.d.d.c))}function gz(n,i){n._i(n.i+1),KL(n,n.i,n.Zi(n.i,i)),n.Mi(n.i++,i),n.Ni()}function _D(n){var i,l;++n.j,i=n.g,l=n.i,n.g=null,n.i=0,n.Oi(l,i),n.Ni()}function VPt(n,i,l){var d;d=new x8e(n.a),AD(d,n.a.a),yu(d.f,i,l),n.a.a=d}function TOe(n,i,l,d){var g;for(g=0;g<rte;g++)eQ(n.a[g][i.g],l,d[i.g])}function COe(n,i,l,d){var g;for(g=0;g<Obe;g++)tQ(n.a[i.g][g],l,d[i.g])}function Zi(n,i){var l;return l=v(n.c.xc(i),16),!l&&(l=n.ic(i)),n.pc(i,l)}function Apr(n){var i;return i=(ni(n),n?new Eh(n):i8(n.Kc())),dG(i),AZ(i)}function H1(n){var i,l;return ni(n),i=Sdr(n.length),l=new gu(i),H9e(l,n),l}function wfe(n,i,l,d){var g;return g=st(Wr,vi,28,i,15,1),WEr(g,n,i,l,d),g}function AOe(n,i){if(n<0||n>i)throw _e(new Sl(pMe(n,i,"index")));return n}function Jb(n,i){var l;return l=($n(i,n.c.length),n.c[i]),yRe(n.c,i,1),l}function kOe(n,i){var l,d;return l=(hr(n),n),d=(hr(i),i),l==d?0:l<d?-1:1}function ROe(n){var i;return i=n.e+n.f,isNaN(i)&&MX(n.d)?n.d:i}function kpr(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function Hm(n,i){return n.a?bi(n.a,n.b):n.a=new Ed(n.d),VL(n.a,i),n}function Lk(n,i){return ro(i)?i==null?NMe(n.f,null):oUt(n.i,i):NMe(n.f,i)}function YPt(n,i){rIt.call(this,i.zd(),i.yd()&-6),hr(n),this.a=n,this.b=i}function jPt(n,i){iIt.call(this,i.zd(),i.yd()&-6),hr(n),this.a=n,this.b=i}function IOe(n,i){_X.call(this,i.zd(),i.yd()&-6),hr(n),this.a=n,this.b=i}function WPt(n,i,l){xK.call(this,l),this.b=n,this.c=i,this.d=(F0e(),W2e)}function KPt(n,i,l){this.d=n,this.k=i?1:0,this.f=l?1:0,this.o=-1,this.p=0}function V1(n){this.c=n,this.a=new me(this.c.a),this.b=new me(this.c.b)}function PQ(){this.e=new Ot,this.c=new Ot,this.d=new Ot,this.b=new Ot}function XPt(){this.g=new M7e,this.b=new M7e,this.a=new Ot,this.k=new Ot}function QPt(){this.a=new $7e,this.b=new b6t,this.d=new Ub,this.e=new cK}function ZPt(n,i,l){this.a=n,this.c=i,this.d=l,Lt(i.e,this),Lt(l.b,this)}function NOe(n,i,l){var d,g;for(d=0,g=0;g<i.length;g++)d+=n.tg(i[g],d,l)}function Rpr(n,i){var l;return l=W6r(n,i),n.b=new fZ(l.c.length),f6r(n,l)}function Ipr(n,i){var l;l=n.q.getHours()+(i/60|0),n.q.setMinutes(i),cM(n,l)}function Efe(n){var i;return i=n.b,i.b==0?null:v(gf(i,0),65).b}function OOe(n){if(n.a){if(n.e)return OOe(n.e)}else return n;return null}function Npr(n,i){return n.p<i.p?1:n.p>i.p?-1:0}function JPt(n){var i;return n.a||(i=n.r,$e(i,156)&&(n.a=v(i,156))),n.a}function Opr(n,i,l){var d;return++n.e,--n.f,d=v(n.d[i].gd(l),136),d.md()}function Lpr(n){var i,l;return i=n.ld(),l=v(n.md(),16),WU(l.Nc(),new KTt(i))}function eBt(n,i){return Tu(n.a,i)?(Lk(n.a,i),!0):!1}function Dk(n,i,l){return fz(i,n.e.Rd().gc()),fz(l,n.c.Rd().gc()),n.a[i][l]}function BQ(n,i,l){this.a=n,this.b=i,this.c=l,Lt(n.t,this),Lt(i.i,this)}function FQ(n,i,l,d){this.f=n,this.e=i,this.d=l,this.b=d,this.c=d?d.d:null}function mz(){this.b=new Ea,this.a=new Ea,this.b=new Ea,this.a=new Ea}function y8(){y8=z;var n,i;gre=(HR(),i=new CK,i),mre=(n=new Nue,n)}function Dpr(n){var i;return Vv(n),i=new YOt(n,n.a.e,n.a.d|4),new K8e(n,i)}function tBt(n){var i;for(Pv(n),i=0;n.a.Bd(new Ae);)i=zo(i,1);return i}function $Q(n,i){return hr(i),n.c<n.d?(n.Se(i,n.c++),!0):!1}function gu(n){$he(this),XU(n>=0,"Initial capacity must not be negative")}function UQ(){UQ=z,MP=new la("org.eclipse.elk.labels.labelManager")}function nBt(){nBt=z,uqe=new Ba("separateLayerConnections",(wZ(),aye))}function o1(){o1=z,n3=new jRe("REGULAR",0),d2=new jRe("CRITICAL",1)}function bz(){bz=z,l2e=new e8e("FIXED",0),Une=new e8e("CENTER_NODE",1)}function zQ(){zQ=z,gqe=new $Re("QUADRATIC",0),mye=new $Re("SCANLINE",1)}function rBt(){rBt=z,Rrn=Qr((SD(),Te(xe(yqe,1),wt,322,0,[nP,Rq,bqe])))}function iBt(){iBt=z,Irn=Qr((iZ(),Te(xe(_qe,1),wt,351,0,[vqe,Fte,bye])))}function aBt(){aBt=z,Trn=Qr((UE(),Te(xe(oye,1),wt,372,0,[px,l2,fx])))}function sBt(){sBt=z,Drn=Qr((F_(),Te(xe(Lrn,1),wt,460,0,[_ye,tN,O5])))}function oBt(){oBt=z,Urn=Qr((P8(),Te(xe(Iye,1),wt,299,0,[kye,Rye,Iq])))}function lBt(){lBt=z,Grn=Qr((Ym(),Te(xe(zrn,1),wt,311,0,[Nq,D5,y6])))}function cBt(){cBt=z,gsn=Qr((DD(),Te(xe(EVe,1),wt,390,0,[ave,wVe,gne])))}function uBt(){uBt=z,xsn=Qr((yZ(),Te(xe(MVe,1),wt,387,0,[LVe,pve,DVe])))}function hBt(){hBt=z,Ssn=Qr((ND(),Te(xe(PVe,1),wt,349,0,[mve,gve,Gq])))}function dBt(){dBt=z,Esn=Qr((ll(),Te(xe(wsn,1),wt,463,0,[yP,Rh,_u])))}function fBt(){fBt=z,Tsn=Qr((H8(),Te(xe(FVe,1),wt,350,0,[bve,BVe,vP])))}function pBt(){pBt=z,Csn=Qr((rZ(),Te(xe(zVe,1),wt,352,0,[UVe,yve,$Ve])))}function gBt(){gBt=z,Asn=Qr((EZ(),Te(xe(GVe,1),wt,388,0,[vve,pN,t3])))}function mBt(){mBt=z,kon=Qr((OD(),Te(xe(aYe,1),wt,392,0,[iYe,Eve,Vq])))}function bBt(){bBt=z,oln=Qr((qz(),Te(xe(LYe,1),wt,393,0,[Ine,NYe,OYe])))}function yBt(){yBt=z,kln=Qr((bZ(),Te(xe(QYe,1),wt,300,0,[Yve,XYe,KYe])))}function vBt(){vBt=z,Rln=Qr((BZ(),Te(xe(ZYe,1),wt,445,0,[Xq,Lne,jve])))}function _Bt(){_Bt=z,Nln=Qr((WZ(),Te(xe(Iln,1),wt,456,0,[Wve,Xve,Kve])))}function wBt(){wBt=z,Dln=Qr((NZ(),Te(xe(tje,1),wt,394,0,[eje,Jve,JYe])))}function EBt(){EBt=z,ncn=Qr((HQ(),Te(xe(_je,1),wt,439,0,[i2e,vje,yje])))}function xBt(){xBt=z,qsn=Qr(($E(),Te(xe(Gsn,1),wt,464,0,[qq,_P,vne])))}function SBt(){SBt=z,htn=Qr((Th(),Te(xe(utn,1),wt,471,0,[dg,s2,R0])))}function TBt(){TBt=z,ctn=Qr((u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])))}function CBt(){CBt=z,ftn=Qr((ju(),Te(xe(dtn,1),wt,472,0,[g1,o2,I0])))}function ABt(){ABt=z,Zen=Qr((Ch(),Te(xe(Il,1),wt,108,0,[Tze,Ql,B4])))}function kBt(){kBt=z,Lnn=Qr((wD(),Te(xe(yGe,1),wt,391,0,[Vbe,Hbe,Ybe])))}function RBt(){RBt=z,fun=Qr((Km(),Te(xe(eKe,1),wt,346,0,[Xne,Cy,qP])))}function IBt(){IBt=z,scn=Qr((Kz(),Te(xe(a2e,1),wt,444,0,[Bne,Fne,$ne])))}function NBt(){NBt=z,cun=Qr((W1(),Te(xe(GWe,1),wt,278,0,[wN,s3,EN])))}function OBt(){OBt=z,Aun=Qr((Uk(),Te(xe(oKe,1),wt,280,0,[sKe,l3,nre])))}function Y1(n,i){return!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),B0e(n.o,i)}function Mpr(n,i){var l;n.C&&(l=v(yl(n.b,i),127).n,l.d=n.C.d,l.a=n.C.a)}function LOe(n){var i,l,d,g;g=n.d,i=n.a,l=n.b,d=n.c,n.d=l,n.a=d,n.b=g,n.c=i}function Ppr(n){return!n.g&&(n.g=new pK),!n.g.b&&(n.g.b=new Ikt(n)),n.g.b}function yz(n){return!n.g&&(n.g=new pK),!n.g.c&&(n.g.c=new Lkt(n)),n.g.c}function Bpr(n){return!n.g&&(n.g=new pK),!n.g.d&&(n.g.d=new Nkt(n)),n.g.d}function Fpr(n){return!n.g&&(n.g=new pK),!n.g.a&&(n.g.a=new Okt(n)),n.g.a}function $pr(n,i,l,d){return l&&(d=l.Rh(i,Ma(l.Dh(),n.c.uk()),null,d)),d}function Upr(n,i,l,d){return l&&(d=l.Th(i,Ma(l.Dh(),n.c.uk()),null,d)),d}function xfe(n,i,l,d){var g;return g=st(Wr,vi,28,i+1,15,1),HAr(g,n,i,l,d),g}function st(n,i,l,d,g,y){var x;return x=rqt(g,d),g!=10&&Te(xe(n,y),i,l,g,x),x}function zpr(n,i,l){var d,g;for(g=new M8(i,n),d=0;d<l;++d)jZ(g);return g}function Sfe(n,i,l){var d,g;if(l!=null)for(d=0;d<i;++d)g=l[d],n.Qi(d,g)}function DOe(n,i){var l;return l=new ye,l.c=!0,l.d=i.md(),KWt(n,i.ld(),l)}function Gpr(n,i){var l;l=n.q.getHours()+(i/3600|0),n.q.setSeconds(i),cM(n,l)}function MOe(n,i){var l,d;return l=i,d=Wde(i8(new Nfe(n,l))),jX(new Nfe(n,l)),d}function qpr(n,i){i.Ug("Label management",1),vX(oe(n,(UQ(),MP))),i.Vg()}function Hpr(n,i,l,d){Kjt(n,i,l,pI(n,i,d,$e(i,102)&&(v(i,19).Bb&el)!=0))}function POe(n,i,l){v(n.b,68),v(n.b,68),v(n.b,68),Cu(n.a,new OOt(l,i,n))}function mo(n,i,l){if(n<0||i>l||i<n)throw _e(new aRe(qJ+n+bBe+i+pBe+l))}function Tfe(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Ot)}function Cfe(n,i){QK.call(this,n,i),this.a=st(P8r,$J,447,2,0,1),this.b=!0}function BOe(n){NUt.call(this,n,0),SNt(this),this.d.b=this.d,this.d.a=this.d}function FOe(n){this.e=n,this.b=this.e.a.entries(),this.a=st(zs,Yn,1,0,5,1)}function LBt(){LBt=z,Isn=ch(yi(new ms,(Mo(),N0),(qo(),nye)),Gl,Cq)}function Vpr(){return cJ(),Te(xe(Tqe,1),wt,283,0,[Eye,wye,Sye,xye,Tye,Ute])}function Ypr(){return lG(),Te(xe(Oqe,1),wt,281,0,[Gte,Rqe,Nqe,kqe,Iqe,Cye])}function jpr(){return aI(),Te(xe(Fqe,1),wt,282,0,[rP,Dqe,Bqe,Pqe,Mqe,Lqe])}function Wpr(){return jk(),Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5])}function Kpr(){return lr(),Te(xe(eye,1),wt,273,0,[is,Ws,hs,iu,Pc,ip])}function Xpr(){return Ah(),Te(xe(Qne,1),wt,279,0,[v2,ub,pH,jP,YP,L6])}function Qpr(){return co(),Te(xe(rKe,1),wt,101,0,[y2,up,SN,yw,sm,su])}function Zpr(){return oJ(),Te(xe(WWe,1),wt,321,0,[M2e,VWe,jWe,qWe,YWe,HWe])}function Jpr(){return qg(),Te(xe(Zje,1),wt,255,0,[m2e,tH,nH,Vne,qne,Hne])}function egr(){return q_(),Te(xe(_2e,1),wt,298,0,[v2e,$P,FP,y2e,PP,BP])}function $Oe(n){var i;return!n.a&&n.b!=-1&&(i=n.c.Dh(),n.a=qn(i,n.b)),n.a}function Yr(n,i){return n.Si()&&n.Hc(i)?!1:(n.Hi(i),!0)}function l1(n,i){return az(i,"Horizontal alignment cannot be null"),n.b=i,n}function DBt(n,i,l){zi();var d;return d=Qv(n,i),l&&d&&udr(n)&&(d=null),d}function UOe(n,i,l){var d;d=n.b[l.c.p][l.p],d.b+=i.b,d.c+=i.c,d.a+=i.a,++d.a}function zOe(n,i,l){var d;n.d[i.g]=l,d=n.g.c,d[i.g]=u.Math.max(d[i.g],l+1)}function $v(n,i){var l,d;return l=n.a-i.a,d=n.b-i.b,u.Math.sqrt(l*l+d*d)}function GOe(n,i){var l,d;for(d=i.Kc();d.Ob();)l=v(d.Pb(),36),Sjt(n,l,0,0)}function ey(n,i,l){var d,g;for(g=n.Kc();g.Ob();)d=v(g.Pb(),36),hI(d,i,l)}function tgr(n){var i,l;for(l=Ur(n.a,0);l.b!=l.d.c;)i=v(Fr(l),65),wMe(i)}function MBt(n,i){return PRt(n.e,i)||cy(n.e,i,new TGt(i)),v(j1(n.e,i),113)}function Sh(n,i,l,d){return hr(n),hr(i),hr(l),hr(d),new mNe(n,i,new Ee)}function uh(n,i,l,d){this.ak(),this.a=i,this.b=n,this.c=new hNe(this,i,l,d)}function Afe(n,i,l,d,g,y){lOe.call(this,i,d,g,y),this.c=n,this.b=l}function vz(n,i,l,d,g,y){lOe.call(this,i,d,g,y),this.c=n,this.a=l}function _z(n,i){var l,d,g;return g=n.r,d=n.d,l=dM(n,i,!0),l.b!=g||l.a!=d}function wz(n,i,l){var d,g;return g=(d=lI(n.b,i),d),g?LJ(Sz(n,g),l):null}function ngr(n,i,l){var d,g,y;d=Um(n,l),g=null,d&&(g=aMe(d)),y=g,EGt(i,l,y)}function rgr(n,i,l){var d,g,y;d=Um(n,l),g=null,d&&(g=aMe(d)),y=g,EGt(i,l,y)}function v8(n,i){var l;return l=n.Ih(i),l>=0?n.Lh(l,!0,!0):XE(n,i,!0)}function igr(n,i,l){var d;return d=MUt(n,i,l),n.b=new fZ(d.c.length),nPe(n,d)}function agr(n){if(n.b<=0)throw _e(new ec);return--n.b,n.a-=n.c.c,Nt(n.a)}function sgr(n){var i;if(!n.a)throw _e(new VLt);return i=n.a,n.a=Aa(n.a),i}function ogr(n){for(;!n.a;)if(!bOt(n.c,new U5t(n)))return!1;return!0}function Mk(n){var i;return ni(n),$e(n,204)?(i=v(n,204),i):new r5t(n)}function lgr(n){GQ(),v(n.of((Ei(),a3)),181).Fc((Ah(),pH)),n.qf(I2e,null)}function GQ(){GQ=z,Ncn=new $xt,Lcn=new Uxt,Ocn=Xbr((Ei(),I2e),Ncn,g2,Lcn)}function qQ(){qQ=z,RYe=new QRe("LEAF_NUMBER",0),zve=new QRe("NODE_SIZE",1)}function kfe(n){n.a=st(Wr,vi,28,n.b+1,15,1),n.c=st(Wr,vi,28,n.b,15,1),n.d=0}function cgr(n,i){n.a.Ne(i.d,n.b)>0&&(Lt(n.c,new DIe(i.c,i.d,n.d)),n.b=i.d)}function qOe(n,i){if(n.g==null||i>=n.i)throw _e(new Dhe(i,n.i));return n.g[i]}function PBt(n,i,l){if(z8(n,l),l!=null&&!n.fk(l))throw _e(new kue);return l}function Rfe(n,i){return kz(i)!=10&&Te(cd(i),i.Sm,i.__elementTypeId$,kz(i),n),n}function _8(n,i,l,d){var g;d=(IE(),d||yze),g=n.slice(i,l),gMe(g,n,i,l,-i,d)}function lf(n,i,l,d,g){return i<0?XE(n,l,d):v(l,69).wk().yk(n,n.hi(),i,d,g)}function ugr(n,i){return ha(We(at(oe(n,(At(),bx)))),We(at(oe(i,bx))))}function BBt(){BBt=z,Yen=Qr((w8(),Te(xe(tte,1),wt,304,0,[xbe,Sbe,Tbe,Cbe])))}function w8(){w8=z,xbe=new XK("All",0),Sbe=new AIt,Tbe=new PIt,Cbe=new CIt}function Th(){Th=z,dg=new ahe(r6,0),s2=new ahe(CI,1),R0=new ahe(i6,2)}function FBt(){FBt=z,IJ(),QKe=ka,Dhn=Ss,ZKe=new sU(ka),Mhn=new sU(Ss)}function $Bt(){$Bt=z,Ftn=Qr((GE(),Te(xe(Btn,1),wt,417,0,[mq,gq,Dbe,Mbe])))}function UBt(){UBt=z,qtn=Qr((VD(),Te(xe(Gtn,1),wt,406,0,[wq,ate,ste,Eq])))}function zBt(){zBt=z,Utn=Qr((qk(),Te(xe($tn,1),wt,332,0,[yq,bq,vq,_q])))}function GBt(){GBt=z,Wnn=Qr((z_(),Te(xe(EGe,1),wt,389,0,[z4,wGe,Qbe,Zbe])))}function qBt(){qBt=z,Gnn=Qr((B8(),Te(xe(znn,1),wt,416,0,[dx,U4,$4,A5])))}function HBt(){HBt=z,yrn=Qr((K1(),Te(xe(brn,1),wt,421,0,[b6,WI,KI,sye])))}function VBt(){VBt=z,orn=Qr((wZ(),Te(xe(srn,1),wt,371,0,[aye,Ote,Lte,Aq])))}function YBt(){YBt=z,msn=Qr((g4(),Te(xe(ove,1),wt,203,0,[mne,sve,q5,G5])))}function jBt(){jBt=z,vsn=Qr((Zp(),Te(xe(NVe,1),wt,284,0,[wy,IVe,uve,hve])))}function Ez(){Ez=z,Cqe=new zRe(og,0),zte=new zRe("IMPROVE_STRAIGHTNESS",1)}function WBt(n,i){var l,d;return d=i/n.c.Rd().gc()|0,l=i%n.c.Rd().gc(),Dk(n,d,l)}function KBt(n){var i;if(n.nl())for(i=n.i-1;i>=0;--i)ze(n,i);return hOe(n)}function HOe(n){var i,l;if(!n.b)return null;for(l=n.b;i=l.a[0];)l=i;return l}function XBt(n){var i,l;if(!n.b)return null;for(l=n.b;i=l.a[1];)l=i;return l}function hgr(n){return $e(n,180)?""+v(n,180).a:n==null?null:Kl(n)}function dgr(n){return $e(n,180)?""+v(n,180).a:n==null?null:Kl(n)}function QBt(n,i){if(i.a)throw _e(new tc(mXt));Es(n.a,i),i.a=n,!n.j&&(n.j=i)}function VOe(n,i){_X.call(this,i.zd(),i.yd()&-16449),hr(n),this.a=n,this.c=i}function fgr(n,i){return new cde(i,_E(Eo(i.e),i.f.a+n,i.f.b+n),(Qn(),!1))}function pgr(n,i){return r8(),Lt(n,new Ms(i,Nt(i.e.c.length+i.g.c.length)))}function ggr(n,i){return r8(),Lt(n,new Ms(i,Nt(i.e.c.length+i.g.c.length)))}function ZBt(){ZBt=z,Aln=Qr((ZZ(),Te(xe(WYe,1),wt,354,0,[Vve,YYe,jYe,VYe])))}function JBt(){JBt=z,Qon=Qr((LD(),Te(xe(TYe,1),wt,353,0,[Dve,kne,Lve,Ove])))}function eFt(){eFt=z,Con=Qr((Yk(),Te(xe(jVe,1),wt,405,0,[xne,xP,SP,TP])))}function tFt(){tFt=z,uun=Qr((Xm(),Te(xe(D2e,1),wt,223,0,[L2e,uH,xN,O6])))}function nFt(){nFt=z,gun=Qr((Id(),Te(xe(pun,1),wt,291,0,[dH,im,m2,hH])))}function rFt(){rFt=z,Tun=Qr((ud(),Te(xe(WP,1),wt,386,0,[mH,vw,gH,o3])))}function iFt(){iFt=z,Run=Qr((LZ(),Te(xe(fKe,1),wt,320,0,[B2e,uKe,dKe,hKe])))}function aFt(){aFt=z,Oun=Qr((xZ(),Te(xe(Nun,1),wt,415,0,[F2e,gKe,pKe,mKe])))}function HQ(){HQ=z,i2e=new Rhe(DQt,0),vje=new Rhe(f$e,1),yje=new Rhe(og,2)}function a4(n,i,l,d,g){return hr(n),hr(i),hr(l),hr(d),hr(g),new mNe(n,i,d)}function sFt(n,i){var l;return l=v(Lk(n.e,i),400),l?(VIe(l),l.e):null}function Yu(n,i){var l;return l=$l(n,i,0),l==-1?!1:(Jb(n,l),!0)}function oFt(n,i,l){var d;return Pv(n),d=new Ge,d.a=i,n.a.Nb(new GRt(d,l)),d.a}function mgr(n){var i;return Pv(n),i=st(ao,_l,28,0,15,1),TT(n.a,new B5t(i)),i}function YOe(n){var i;if(!Vfe(n))throw _e(new ec);return n.e=1,i=n.d,n.d=null,i}function ty(n){var i;return jl(n)&&(i=0-n,!isNaN(i))?i:zv($8(n))}function $l(n,i,l){for(;l<n.c.length;++l)if(Ec(i,n.c[l]))return l;return-1}function Ife(n){var i,l;return l=v(Yt(n.j,0),12),i=v(oe(l,(At(),Ji)),12),i}function Nfe(n,i){var l;this.f=n,this.b=i,l=v(br(n.b,i),260),this.c=l?l.b:null}function lFt(){_0(),this.b=new Br,this.f=new Br,this.g=new Br,this.e=new Br}function VQ(n){CX(this),this.g=n?_Q(n,n.ie()):null,this.f=n,gQ(this),this.je()}function Ofe(n){var i;i=n.jj(),i!=null&&n.d!=-1&&v(i,94).xh(n),n.i&&n.i.oj()}function xz(n){var i;for(i=n.p+1;i<n.c.a.c.length;++i)--v(Yt(n.c.a,i),10).p}function cFt(n){jS(!!n.c),ade(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=D9e(n),n.d=n.f.g}function Uh(n){return n.b||(n.b=new M9t(n,pl,n),!n.a&&(n.a=new qU(n,n))),n.b}function Sz(n,i){var l,d;return l=v(i,690),d=l.xi(),!d&&l.Ai(d=new J8t(n,i)),d}function Al(n,i){var l,d;return l=v(i,692),d=l.$k(),!d&&l.cl(d=new EMt(n,i)),d}function jOe(n,i){CL();var l,d;return l=Nk(n),d=Nk(i),!!l&&!!d&&!LGt(l.k,d.k)}function YQ(n,i){return Ec(i,Yt(n.f,0))||Ec(i,Yt(n.f,1))||Ec(i,Yt(n.f,2))}function Tz(n,i){if(i<0)throw _e(new Sl(WQt+i));return ZMt(n,i+1),Yt(n.j,i)}function uFt(n,i,l,d){if(!n)throw _e(new ar(sM(i,Te(xe(zs,1),Yn,1,5,[l,d]))))}function Vm(n,i,l,d,g,y,x){Gfe.call(this,i,d,g,y,x),this.c=n,this.b=l}function Gg(n,i,l){var d,g;for(d=10,g=0;g<l-1;g++)i<d&&(n.a+="0"),d*=10;n.a+=i}function jQ(n){var i,l;return l=n.length,i=st(Tf,rg,28,l,15,1),aLt(n,0,l,i,0),i}function Cz(n){b9t();var i,l;return i=n+128,l=rze[i],!l&&(l=rze[i]=new E5t(n)),l}function hFt(n){return ade(n.d.a.e.g,n.b),Tr(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function bgr(n){switch(n.g){case 0:return qi;case 1:return-1;default:return 0}}function ygr(n){return wDe(n,(E8(),tze))<0?-Jsr($8(n)):n.l+n.m*n6+n.h*j_}function dFt(n){(this.q?this.q:(Fn(),Fn(),Jg)).Ac(n.q?n.q:(Fn(),Fn(),Jg))}function vgr(n,i){yk(v(v(n.f,27).of((Ei(),UP)),101))&&Cvr(Ude(v(n.f,27)),i)}function Lfe(n,i){var l;return l=Ma(n.d,i),l>=0?YZ(n,l,!0,!0):XE(n,i,!0)}function WOe(n){var i;return i=L_(rr(n,32)),i==null&&(Ru(n),i=L_(rr(n,32))),i}function KOe(n){var i;return n.Oh()||(i=kr(n.Dh())-n.ji(),n.$h().Mk(i)),n.zh()}function fFt(n,i){Wze=new dt,ztn=i,QM=n,v(QM.b,68),POe(QM,Wze,null),kWt(QM)}function wD(){wD=z,Vbe=new ohe("XY",0),Hbe=new ohe("X",1),Ybe=new ohe("Y",2)}function ju(){ju=z,g1=new she("TOP",0),o2=new she(CI,1),I0=new she(CBe,2)}function Ym(){Ym=z,Nq=new fhe(og,0),D5=new fhe("TOP",1),y6=new fhe(CBe,2)}function Az(){Az=z,dve=new qRe("INPUT_ORDER",0),fve=new qRe("PORT_DEGREE",1)}function E8(){E8=z,JUe=Su(Hh,Hh,524287),Ien=Su(0,0,FG),eze=vfe(1),vfe(2),tze=vfe(0)}function Dfe(n){var i;return n.d!=n.r&&(i=Gf(n),n.e=!!i&&i.lk()==IJt,n.d=i),n.e}function Mfe(n,i,l){var d;return d=n.g[i],KL(n,i,n.Zi(i,l)),n.Ri(i,l,d),n.Ni(),d}function WQ(n,i){var l;return l=n.dd(i),l>=0?(n.gd(l),!0):!1}function Pfe(n,i){var l;for(ni(n),ni(i),l=!1;i.Ob();)l=l|n.Fc(i.Pb());return l}function j1(n,i){var l;return l=v(br(n.e,i),400),l?(WIt(n,l),l.e):null}function pFt(n){var i,l;return i=n/60|0,l=n%60,l==0?""+i:""+i+":"+(""+l)}function s4(n,i){var l=n.a[i],d=(l0e(),bbe)[typeof l];return d?d(l):iLe(typeof l)}function ic(n,i){var l,d;return Vv(n),d=new IOe(i,n.a),l=new _Ot(d),new xn(n,l)}function Bfe(n){var i;return i=n.b.c.length==0?null:Yt(n.b,0),i!=null&&jfe(n,0),i}function _gr(n,i){var l,d,g;g=i.c.i,l=v(br(n.f,g),60),d=l.d.c-l.e.c,A9e(i.a,d,0)}function XOe(n,i){var l;for(++n.d,++n.c[i],l=i+1;l<n.a.length;)++n.a[l],l+=l&-l}function gFt(n,i,l,d){zi(),rE.call(this,26),this.c=n,this.a=i,this.d=l,this.b=d}function mFt(n,i){for(;i[0]<n.length&&qp(` 	\r
`,Wu(Do(n,i[0])))>=0;)++i[0]}function wgr(n,i){Au(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Egr(n,i){ku(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function xgr(n,i){FE(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Sgr(n,i){BE(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Tgr(n,i,l){return pk(new Ct(l.e.a+l.f.a/2,l.e.b+l.f.b/2),n)==(hr(i),i)}function Cgr(n,i){return $e(i,102)&&v(i,19).Bb&el?new Mhe(i,n):new M8(i,n)}function Agr(n,i){return $e(i,102)&&v(i,19).Bb&el?new Mhe(i,n):new M8(i,n)}function kz(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function bFt(n,i){return i==(ide(),ide(),qen)?n.toLocaleLowerCase():n.toLowerCase()}function yFt(n){if(!n.e)throw _e(new ec);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function QOe(n){if(!n.c)throw _e(new ec);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vFt(n){var i;for(++n.a,i=n.c.a.length;n.a<i;++n.a)if(n.c.b[n.a])return}function kgr(n){var i,l;if(n.a){l=null;do i=n.a,n.a=null,l=RHt(i,l);while(n.a);n.a=l}}function Rgr(n){var i,l;if(n.b){l=null;do i=n.b,n.b=null,l=RHt(i,l);while(n.b);n.b=l}}function Igr(n,i){var l;for(l=0;n.e!=n.i.gc();)ehr(i,wr(n),Nt(l)),l!=qi&&++l}function Ngr(n,i){var l;return l=HE(n.e.c,i.e.c),l==0?ha(n.e.d,i.e.d):l}function Ogr(n,i){var l,d;for(d=i.c,l=d+1;l<=i.f;l++)n.a[l]>n.a[d]&&(d=l);return d}function _Ft(n){var i;return i=v(oe(n,(At(),gx)),313),i?i.a==n:!1}function wFt(n){var i;return i=v(oe(n,(At(),gx)),313),i?i.i==n:!1}function EFt(){EFt=z,Bnn=Qr((Mo(),Te(xe(vGe,1),wt,367,0,[N0,em,qc,ru,Gl])))}function xFt(){xFt=z,_rn=Qr((b4(),Te(xe(vrn,1),wt,375,0,[kq,Pte,Bte,Mte,Dte])))}function SFt(){SFt=z,Nrn=Qr((ly(),Te(xe(Eqe,1),wt,348,0,[yye,wqe,vye,eN,JI])))}function TFt(){TFt=z,bsn=Qr((HD(),Te(xe(SVe,1),wt,323,0,[xVe,lve,cve,mP,bP])))}function CFt(){CFt=z,Hrn=Qr((pf(),Te(xe(Jqe,1),wt,171,0,[Mq,lP,u2,cP,Y4])))}function AFt(){AFt=z,aln=Qr((aJ(),Te(xe(iln,1),wt,368,0,[$ve,Pve,Uve,Bve,Fve])))}function kFt(){kFt=z,acn=Qr((rM(),Te(xe(icn,1),wt,373,0,[W5,A6,DP,LP,Jq])))}function RFt(){RFt=z,hcn=Qr((uG(),Te(xe(Rje,1),wt,324,0,[Cje,c2e,kje,u2e,Aje])))}function IFt(){IFt=z,lun=Qr((ys(),Te(xe(zP,1),wt,88,0,[cp,ql,Ol,lp,Ef])))}function NFt(){NFt=z,Dcn=Qr((d1(),Te(xe(rm,1),wt,170,0,[Hn,Fs,mg,pw,Sy])))}function OFt(){OFt=z,bun=Qr((ZT(),Te(xe(VP,1),wt,256,0,[b2,fH,tKe,HP,nKe])))}function LFt(){LFt=z,_un=Qr((Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])))}function KQ(){KQ=z,kze=new LRe("BY_SIZE",0),Ibe=new LRe("BY_SIZE_AND_SHAPE",1)}function XQ(){XQ=z,zbe=new PRe("EADES",0),cte=new PRe("FRUCHTERMAN_REINGOLD",1)}function Rz(){Rz=z,$te=new URe("READING_DIRECTION",0),xqe=new URe("ROTATION",1)}function ED(){ED=z,Vnn=new ET,Ynn=new KA,qnn=new f0,Hnn=new WA,jnn=new rU}function DFt(n){this.b=new Ot,this.a=new Ot,this.c=new Ot,this.d=new Ot,this.e=n}function MFt(n){this.g=n,this.f=new Ot,this.a=u.Math.min(this.g.c.c,this.g.d.c)}function PFt(n,i,l){LX.call(this),e9e(this),this.a=n,this.c=l,this.b=i.d,this.f=i.e}function Lgr(n,i,l){var d,g;for(g=new me(l);g.a<g.c.c.length;)d=pe(g),FDe(n,i,d)}function c1(n,i,l){var d;if(i==null)throw _e(new ZA);return d=Um(n,i),Y1r(n,i,l),d}function Ffe(n,i){var l;return l=v(br(n.a,i),137),l||(l=new Ii,Ni(n.a,i,l)),l}function qn(n,i){var l;return l=(n.i==null&&tg(n),n.i),i>=0&&i<l.length?l[i]:null}function Dgr(n,i){var l;return l=i>0?i-1:i,b7t(iar(s$t(zIe(new tk,l),n.n),n.j),n.k)}function kl(n){var i,l;l=(i=new Oue,i),Yr((!n.q&&(n.q=new vt(e0,n,11,10)),n.q),l)}function ZOe(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Fm(n),n.o)}function QQ(n){return Oc(n,qi)>0?qi:Oc(n,Po)<0?Po:ti(n)}function o4(n){return n<3?(kd(n,QKt),n+1):n<mM?Ps(n/.75+1):qi}function BFt(n,i){return hr(i),cNe(n),n.d.Ob()?(i.Cd(n.d.Pb()),!0):!1}function Mgr(n,i){var l,d;return l=v(d4(n.d,i),16),l?(d=i,n.e.pc(d,l)):null}function Pgr(n,i,l,d){var g;n.j=-1,kMe(n,sMe(n,i,l),(al(),g=v(i,69).vk(),g.xl(d)))}function Bgr(n,i){return Pk(),-Nc(v(oe(n,(pc(),V5)),17).a,v(oe(i,V5),17).a)}function FFt(n,i){return!!CD(n,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))))}function Fgr(){return oI(),Te(xe(ure,1),wt,245,0,[G2e,lre,cre,ore,z2e,sre,are,U2e])}function $gr(){return dy(),Te(xe(Mcn,1),wt,285,0,[Kje,Gs,Zl,K5,Fo,Ra,k6,op])}function Ugr(){return EJ(),Te(xe(pqe,1),wt,276,0,[cye,dye,lye,gye,hye,uye,pye,fye])}function zgr(n){var i;return i=We(at(oe(n,(qt(),vy)))),i<0&&(i=0,_t(n,vy,i)),i}function ZQ(n,i){var l,d;for(d=n.Kc();d.Ob();)l=v(d.Pb(),72),_t(l,(At(),E6),i)}function Ggr(n,i,l){var d;d=u.Math.max(0,n.b/2-.5),WD(l,d,1),Lt(i,new VRt(l,d))}function qgr(n,i,l){var d;return d=n.a.e[v(i.a,10).p]-n.a.e[v(l.a,10).p],Ps(ZU(d))}function JQ(n,i){var l;return Vv(n),l=new eDt(n,n.a.zd(),n.a.yd()|4,i),new xn(n,l)}function $fe(n){var i;jS(!!n.c),i=n.c.a,cf(n.d,n.c),n.b==n.c?n.b=i:--n.a,n.c=null}function $Ft(n){return n.a>=-.01&&n.a<=ep&&(n.a=0),n.b>=-.01&&n.b<=ep&&(n.b=0),n}function YT(n){l5();var i,l;for(l=m$e,i=0;i<n.length;i++)n[i]>l&&(l=n[i]);return l}function UFt(n,i){var l;if(l=vG(n.Dh(),i),!l)throw _e(new ar(r2+i+Ime));return l}function l4(n,i){var l;for(l=n;Aa(l);)if(l=Aa(l),l==i)return!0;return!1}function Hgr(n,i){var l,d,g;for(d=i.a.ld(),l=v(i.a.md(),16).gc(),g=0;g<l;g++)n.Cd(d)}function Cu(n,i){var l,d,g,y;for(hr(i),d=n.c,g=0,y=d.length;g<y;++g)l=d[g],i.Cd(l)}function zFt(n,i,l,d,g,y){var x;x=yfe(d),Uo(x,g),lo(x,y),Rn(n.a,d,new PX(x,i,l.f))}function GFt(n,i){sa(n,(Vg(),Zve),i.f),sa(n,Lln,i.e),sa(n,Qve,i.d),sa(n,Oln,i.c)}function qFt(n,i){this.a=new Br,this.e=new Br,this.b=(DD(),gne),this.c=n,this.b=i}function HFt(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(RK(),fbe)}function cf(n,i){var l;return l=i.c,i.a.b=i.b,i.b.a=i.a,i.a=i.b=null,i.c=null,--n.b,l}function Vgr(n,i){return i&&n.b[i.g]==i?(Ga(n.b,i.g,null),--n.c,!0):!1}function Ygr(n,i){if(0>n||n>i)throw _e(new sRe("fromIndex: 0, toIndex: "+n+pBe+i))}function PE(n){if(n<0)throw _e(new ar("Illegal Capacity: "+n));this.g=this.aj(n)}function JOe(n,i){return $1(),x0(Zv),u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)}function Ufe(n,i){var l,d,g,y;for(d=n.d,g=0,y=d.length;g<y;++g)l=d[g],U1(n.g,l).a=i}function jgr(n,i,l){var d,g,y;for(g=i[l],d=0;d<g.length;d++)y=g[d],n.e[y.c.p][y.p]=d}function Wgr(n){var i;for(i=0;i<n.c.length;i++)($n(i,n.c.length),v(n.c[i],12)).p=i}function Kgr(n){var i,l;for(i=n.a.d.j,l=n.c.d.j;i!=l;)S0(n.b,i),i=RZ(i);S0(n.b,i)}function Xgr(n){var i;return i=u.Math.sqrt(n.a*n.a+n.b*n.b),i>0&&(n.a/=i,n.b/=i),n}function Cd(n){var i;return n.w?n.w:(i=P0r(n),i&&!i.Vh()&&(n.w=i),i)}function x8(n,i){var l,d;d=n.a,l=Uyr(n,i,null),d!=i&&!n.e&&(l=bI(n,i,l)),l&&l.oj()}function VFt(n,i,l){var d,g;d=i;do g=We(n.p[d.p])+l,n.p[d.p]=g,d=n.a[d.p];while(d!=i)}function YFt(n,i,l){var d=function(){return n.apply(d,arguments)};return i.apply(d,l),d}function Qgr(n){var i;return n==null?null:(i=v(n,195),cxr(i,i.length))}function ze(n,i){if(n.g==null||i>=n.i)throw _e(new Dhe(i,n.i));return n.Wi(i,n.g[i])}function Zgr(n,i){Fn();var l,d;for(d=new Ot,l=0;l<n;++l)jn(d.c,i);return new Hue(d)}function jFt(n){return Vv(n),_k(!0,"n may not be negative"),new xn(n,new E$t(n.a))}function e9e(n){n.b=(Th(),s2),n.f=(ju(),o2),n.d=(kd(2,k4),new gu(2)),n.e=new ho}function eZ(n){this.b=(ni(n),new Eh(n)),this.a=new Ot,this.d=new Ot,this.e=new ho}function u1(){u1=z,bc=new ihe("BEGIN",0),vu=new ihe(CI,1),yc=new ihe("END",2)}function W1(){W1=z,wN=new Nhe(CI,0),s3=new Nhe("HEAD",1),EN=new Nhe("TAIL",2)}function Pk(){Pk=z,eln=Jp(Jp(Jp(RL(new ms,(Yk(),xP)),(oM(),wve)),QVe),tYe)}function jm(){jm=z,nln=Jp(Jp(Jp(RL(new ms,(Yk(),TP)),(oM(),JVe)),WVe),ZVe)}function WFt(){WFt=z,Arn=Qr((jk(),Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5])))}function KFt(){KFt=z,Mrn=Qr((cJ(),Te(xe(Tqe,1),wt,283,0,[Eye,wye,Sye,xye,Tye,Ute])))}function XFt(){XFt=z,Brn=Qr((lG(),Te(xe(Oqe,1),wt,281,0,[Gte,Rqe,Nqe,kqe,Iqe,Cye])))}function QFt(){QFt=z,Frn=Qr((aI(),Te(xe(Fqe,1),wt,282,0,[rP,Dqe,Bqe,Pqe,Mqe,Lqe])))}function ZFt(){ZFt=z,Znn=Qr((lr(),Te(xe(eye,1),wt,273,0,[is,Ws,hs,iu,Pc,ip])))}function JFt(){JFt=z,Bcn=Qr((qg(),Te(xe(Zje,1),wt,255,0,[m2e,tH,nH,Vne,qne,Hne])))}function e$t(){e$t=z,qcn=Qr((q_(),Te(xe(_2e,1),wt,298,0,[v2e,$P,FP,y2e,PP,BP])))}function t$t(){t$t=z,hun=Qr((oJ(),Te(xe(WWe,1),wt,321,0,[M2e,VWe,jWe,qWe,YWe,HWe])))}function n$t(){n$t=z,yun=Qr((co(),Te(xe(rKe,1),wt,101,0,[y2,up,SN,yw,sm,su])))}function r$t(){r$t=z,vun=Qr((Ah(),Te(xe(Qne,1),wt,279,0,[v2,ub,pH,jP,YP,L6])))}function i$t(){i$t=z,rte=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])).length,Obe=rte}function Jgr(){return w4(),Te(xe(fl,1),wt,95,0,[D0,cb,M0,B0,am,Qf,Bd,P0,Xf])}function emr(n,i){return Kv(),Nc(n.b.c.length-n.e.c.length,i.b.c.length-i.e.c.length)}function jT(n,i){return oar(TD(n,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))))}function t9e(n,i){return $1(),x0(Zv),u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)}function tZ(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,1,l,n.b))}function S8(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,3,l,n.b))}function BE(n,i){var l;l=n.f,n.f=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,3,l,n.f))}function FE(n,i){var l;l=n.g,n.g=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,4,l,n.g))}function Au(n,i){var l;l=n.i,n.i=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,5,l,n.i))}function ku(n,i){var l;l=n.j,n.j=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,6,l,n.j))}function T8(n,i){var l;l=n.j,n.j=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,1,l,n.j))}function C8(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,4,l,n.c))}function A8(n,i){var l;l=n.k,n.k=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,2,l,n.k))}function nZ(n,i){var l;l=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&Vi(n,new i4(n,0,l,n.a))}function ny(n,i){var l;l=n.s,n.s=i,n.Db&4&&!(n.Db&1)&&Vi(n,new dfe(n,4,l,n.s))}function c4(n,i){var l;l=n.t,n.t=i,n.Db&4&&!(n.Db&1)&&Vi(n,new dfe(n,5,l,n.t))}function zfe(n,i){var l;l=n.d,n.d=i,n.Db&4&&!(n.Db&1)&&Vi(n,new dfe(n,2,l,n.d))}function k8(n,i){var l;l=n.F,n.F=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,5,l,i))}function Iz(n,i){var l;return l=v(br((jK(),hre),n),57),l?l.gk(i):st(zs,Yn,1,i,5,1)}function tmr(n,i){var l;return l=$s(Eo(v(br(n.g,i),8)),E8e(v(br(n.f,i),470).b)),l}function nmr(n,i){var l,d,g;return l=(d=(kv(),g=new H6e,g),i&&XMe(d,i),d),g9e(l,n),l}function Wm(n,i){var l,d;return l=i in n.a,l&&(d=Um(n,i).re(),d)?d.a:null}function a$t(n,i,l){if(z8(n,l),!n.kl()&&l!=null&&!n.fk(l))throw _e(new kue);return l}function s$t(n,i){return n.n=i,n.n?(n.f=new Ot,n.e=new Ot):(n.f=null,n.e=null),n}function o$t(n,i){if(n){i.n=n;var l=zfr(i);if(!l){Wee[n]=[i];return}l.Rm=i}}function L_(n){var i;return tD(n==null||Array.isArray(n)&&(i=kz(n),!(i>=14&&i<=16))),n}function Xr(n,i){var l;return hr(i),l=n[":"+i],XU(!!l,"Enum constant undefined: "+i),l}function $r(n,i,l,d,g,y){var x;return x=Pde(n,i),o$t(l,x),x.i=g?8:0,x.f=d,x.e=g,x.g=y,x}function n9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=1,this.c=n,this.a=l}function r9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=2,this.c=n,this.a=l}function i9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=6,this.c=n,this.a=l}function a9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=7,this.c=n,this.a=l}function s9e(n,i,l,d,g){this.d=i,this.j=d,this.e=g,this.o=-1,this.p=4,this.c=n,this.a=l}function l$t(n,i){var l,d,g,y;for(d=i,g=0,y=d.length;g<y;++g)l=d[g],QBt(n.a,l);return n}function Ad(n){var i,l,d,g;for(l=n,d=0,g=l.length;d<g;++d)i=l[d],ni(i);return new wIt(n)}function o9e(n){var i;return i=$s(Eo(n.d.d),n.c.d),nI(i,n.c.e.a,n.c.e.b),Hi(i,n.c.d)}function l9e(n){var i;return i=$s(Eo(n.c.d),n.d.d),nI(i,n.d.e.a,n.d.e.b),Hi(i,n.d.d)}function rmr(n){var i=/function(?:\s+([\w$]+))?\s*\(/,l=i.exec(n);return l&&l[1]||kpe}function imr(n,i,l){var d,g;return g=n.length,d=u.Math.min(l,g),AMe(n,0,i,0,d,!0),i}function c$t(n,i,l){var d,g;for(g=i.Kc();g.Ob();)d=v(g.Pb(),74),Es(n,v(l.Kb(d),27))}function amr(n,i){yk(v(oe(v(n.e,10),(qt(),Qa)),101))&&(Fn(),us(v(n.e,10).j,i))}function smr(){return SJ(),Te(xe(Vze,1),wt,257,0,[Hze,Uze,zze,$ze,Nbe,qze,Gze,Fze,Bze])}function omr(){return fy(),Te(xe(_Ve,1),wt,265,0,[ive,bVe,yVe,rve,mVe,vVe,pne,dN,fN])}function $E(){$E=z,qq=new whe("BARYCENTER",0),_P=new whe(aQt,1),vne=new whe(sQt,2)}function rZ(){rZ=z,UVe=new vhe("NO",0),yve=new vhe(WBe,1),$Ve=new vhe("LOOK_BACK",2)}function iZ(){iZ=z,vqe=new uhe("ARD",0),Fte=new uhe("MSD",1),bye=new uhe("MANUAL",2)}function ll(){ll=z,yP=new ghe(wM,0),Rh=new ghe("INPUT",1),_u=new ghe("OUTPUT",2)}function R8(){return p2e||(p2e=new djt,WT(p2e,Te(xe(C5,1),Yn,134,0,[new W6e]))),p2e}function x0(n){if(!(n>=0))throw _e(new ar("tolerance ("+n+") must be >= 0"));return n}function u$t(n,i){var l;return $e(i,44)?n.c.Mc(i):(l=B0e(n,i),FZ(n,i),l)}function vl(n,i,l){return U_(n,i),mu(n,l),ny(n,0),c4(n,1),oy(n,!0),sy(n,!0),n}function Nz(n,i){var l;if(l=n.gc(),i<0||i>l)throw _e(new XS(i,l));return new bIe(n,i)}function aZ(n,i){n.b=u.Math.max(n.b,i.d),n.e+=i.r+(n.a.c.length==0?0:n.c),Lt(n.a,i)}function h$t(n){jS(n.c>=0),d2r(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function sZ(n){var i,l;for(l=n.c.Cc().Kc();l.Ob();)i=v(l.Pb(),16),i.$b();n.c.$b(),n.d=0}function lmr(n){var i,l,d,g;for(l=n.a,d=0,g=l.length;d<g;++d)i=l[d],iLt(i,i.length,null)}function xD(n,i){var l,d,g,y;for(d=i,g=0,y=d.length;g<y;++g)l=d[g],qa(n,l,n.c.b,n.c)}function d$t(n,i){var l,d;for(l=0,d=n.gc();l<d;++l)if(Ec(i,n.Xb(l)))return l;return-1}function c9e(n){var i,l;if(n==0)return 32;for(l=0,i=1;!(i&n);i<<=1)++l;return l}function kd(n,i){if(n<0)throw _e(new ar(i+" cannot be negative but was: "+n));return n}function cmr(n,i){typeof window===NG&&typeof window.$gwt===NG&&(window.$gwt[n]=i)}function oZ(n,i){return sar(CD(n.a,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))))}function umr(n,i,l){return a4(n,new D5t(i),new qe,new M5t(l),Te(xe(Il,1),wt,108,0,[]))}function hmr(){return qh(),Te(xe(aKe,1),wt,264,0,[TN,yH,Zne,KP,Jne,tre,ere,P2e,bH])}function f$t(){f$t=z,Nen=Te(xe(Wr,1),vi,28,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function SD(){SD=z,nP=new che("LAYER_SWEEP",0),Rq=new che(Ige,1),bqe=new che(og,2)}function u9e(){u9e=z,Osn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function p$t(){p$t=z,Lsn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function h9e(){h9e=z,Dsn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function g$t(){g$t=z,Msn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function m$t(){m$t=z,Psn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function b$t(){b$t=z,Bsn=yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)}function y$t(){y$t=z,Usn=ch(yi(yi(new ms,(Mo(),qc),(qo(),Ste)),ru,vte),Gl,xte)}function dmr(n){var i,l;for(l=new me(lqt(n));l.a<l.c.c.length;)i=v(pe(l),695),i._f()}function fmr(){W7t();for(var n=obe,i=0;i<arguments.length;i++)n.push(arguments[i])}function v$t(n){ERe(),this.g=new Br,this.f=new Br,this.b=new Br,this.c=new OE,this.i=n}function d9e(){this.f=new ho,this.d=new q7e,this.c=new ho,this.a=new Ot,this.b=new Ot}function _$t(n,i,l,d){this.ak(),this.a=i,this.b=n,this.c=null,this.c=new gOt(this,i,l,d)}function Gfe(n,i,l,d,g){this.d=n,this.n=i,this.g=l,this.o=d,this.p=-1,g||(this.o=-2-d-1)}function w$t(){A8e.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=k0}function E$t(n){_X.call(this,n.Ad(64)?_8e(0,zf(n.zd(),1)):MG,n.yd()),this.b=1,this.a=n}function pmr(n,i){return Pk(),v(oe(i,(pc(),V5)),17).a<n.gc()&&v(oe(i,V5),17).a>=0}function f9e(n,i){n.r>0&&n.c<n.r&&(n.c+=i,n.i&&n.i.d>0&&n.g!=0&&f9e(n.i,i/n.r*n.i.d))}function p9e(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.c))}function qfe(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,4,l,n.c))}function I8(n,i){var l;l=n.k,n.k=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,2,l,n.k))}function Hfe(n,i){var l;l=n.D,n.D=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,2,l,n.D))}function lZ(n,i){var l;l=n.f,n.f=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,8,l,n.f))}function cZ(n,i){var l;l=n.i,n.i=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,7,l,n.i))}function g9e(n,i){var l;l=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,8,l,n.a))}function m9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,l,n.b))}function b9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,l,n.b))}function y9e(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.c))}function v9e(n,i){var l;l=n.d,n.d=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.d))}function gmr(n,i,l){var d;n.b=i,n.a=l,d=(n.a&512)==512?new O6t:new j6e,n.c=R5r(d,n.b,n.a)}function x$t(n,i){return tb(n.e,i)?(al(),Dfe(i)?new VX(i,n):new DU(i,n)):new Q8t(i,n)}function mmr(n){var i,l;return 0>n?new wRe:(i=n+1,l=new MPt(i,n),new X8e(null,l))}function bmr(n,i){Fn();var l;return l=new ok(1),ro(n)?Cl(l,n,i):yu(l.f,n,i),new xue(l)}function ymr(n,i){var l,d;return l=n.c,d=i.e[n.p],d>0?v(Yt(l.a,d-1),10):null}function vmr(n,i){var l,d;return l=n.o+n.p,d=i.o+i.p,l<d?-1:l==d?0:1}function _mr(n){var i;return i=oe(n,(At(),Ji)),$e(i,167)?zzt(v(i,167)):null}function S$t(n){var i;return n=u.Math.max(n,2),i=U9e(n),n>i?(i<<=1,i>0?i:mM):i}function Vfe(n){switch(I8e(n.e!=3),n.e){case 2:return!1;case 0:return!0}return kpr(n)}function T$t(n,i){var l;return $e(i,8)?(l=v(i,8),n.a==l.a&&n.b==l.b):!1}function wmr(n,i){var l;l=new dt,v(i.b,68),v(i.b,68),v(i.b,68),Cu(i.a,new AIe(n,l,i))}function C$t(n,i){var l,d;for(d=i.vc().Kc();d.Ob();)l=v(d.Pb(),44),sG(n,l.ld(),l.md())}function _9e(n,i){var l;l=n.d,n.d=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,11,l,n.d))}function uZ(n,i){var l;l=n.j,n.j=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,13,l,n.j))}function w9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,21,l,n.b))}function Emr(n,i){(DQ(),rp?null:i.c).length==0&&GNt(i,new we),Cl(n.a,rp?null:i.c,i)}function xmr(n,i){i.Ug("Hierarchical port constraint processing",1),z2r(n),o8r(n),i.Vg()}function UE(){UE=z,px=new lhe("START",0),l2=new lhe("MIDDLE",1),fx=new lhe("END",2)}function hZ(){hZ=z,Rne=new XRe("P1_NODE_PLACEMENT",0),j5=new XRe("P2_EDGE_ROUTING",1)}function Uv(){Uv=z,m6=new la($Be),dte=new la(zXt),JM=new la(GXt),xq=new la(qXt)}function zE(n){var i;return ade(n.f.g,n.d),Tr(n.b),n.c=n.a,i=v(n.a.Pb(),44),n.b=D9e(n),i}function E9e(n){var i;return n.b==null?(Yb(),Yb(),TH):(i=n.ul()?n.tl():n.sl(),i)}function A$t(n,i){var l;return l=i==null?-1:$l(n.b,i,0),l<0?!1:(jfe(n,l),!0)}function S0(n,i){var l;return hr(i),l=i.g,n.b[l]?!1:(Ga(n.b,l,i),++n.c,!0)}function dZ(n,i){var l,d;return l=1-i,d=n.a[l],n.a[l]=d.a[i],d.a[i]=n,n.b=!0,d.b=!1,d}function Smr(n,i){var l,d;for(d=i.Kc();d.Ob();)l=v(d.Pb(),272),n.b=!0,Es(n.e,l),l.b=n}function Tmr(n,i){var l,d;return l=v(oe(n,(qt(),Z4)),8),d=v(oe(i,Z4),8),ha(l.b,d.b)}function Yfe(n,i,l){var d,g,y;return y=i>>5,g=i&31,d=Us(Dv(n.n[l][y],ti(w0(g,1))),3),d}function k$t(n,i,l){var d,g,y;for(y=n.a.length-1,g=n.b,d=0;d<l;g=g+1&y,++d)Ga(i,d,n.a[g])}function jfe(n,i){var l;l=Jb(n.b,n.b.c.length-1),i<n.b.c.length&&(of(n.b,i,l),QHt(n,i))}function R$t(n,i){var l;return l=v(br(n.c,i),467),l||(l=new d6t,l.c=i,Ni(n.c,l.c,l)),l}function Cmr(n,i){var l,d;d=new Ot,l=i;do jn(d.c,l),l=v(br(n.k,l),18);while(l);return d}function Wfe(n,i,l){var d;return d=new Ot,JMe(n,i,d,l,!0,!0),n.b=new fZ(d.c.length),d}function D_(n,i){var l,d;for(l=n.Pc(),_8(l,0,l.length,i),d=0;d<l.length;d++)n.hd(d,l[d])}function x9e(n){var i,l;for(l=new mr(n);l.e!=l.i.gc();)i=v(wr(l),27),Au(i,0),ku(i,0)}function I$t(n){this.e=n,this.d=new PK(o4(wk(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function fZ(n){this.b=n,this.a=st(Wr,vi,28,n+1,15,1),this.c=st(Wr,vi,28,n,15,1),this.d=0}function N$t(n,i,l){qFt.call(this,i,l),this.d=st(tm,gy,10,n.a.c.length,0,1),X1(n.a,this.d)}function O$t(n,i,l){oOe.call(this,n,i,l),this.a=new Br,this.b=new Br,this.d=new aAt(this)}function L$t(n){tNe.call(this),this.b=We(at(oe(n,(qt(),O0)))),this.a=v(oe(n,lb),223)}function Kfe(n,i){var l;return $e(i,16)?(l=v(i,16),n.Gc(l)):Pfe(n,v(ni(i),20).Kc())}function Amr(n,i){ts(Ki(new xn(null,new Nn(new m_(n.b),1)),new T8t(n,i)),new A8t(n,i))}function kmr(n,i){i.Ug(iQt,1),ts(ic(new xn(null,new Nn(n.b,16)),new qyt),new Hyt),i.Vg()}function ma(n){return ro(n)?ry(n):VS(n)?dk(n):HS(n)?HNt(n):sNe(n)?n.Hb():JIe(n)?vE(n):GNe(n)}function D$t(n){var i,l;for(l=n.c.a.ec().Kc();l.Ob();)i=v(l.Pb(),219),Srr(i,new J9t(i.f))}function S9e(n){var i,l;for(l=n.c.a.ec().Kc();l.Ob();)i=v(l.Pb(),219),Trr(i,new fHt(i.e))}function mu(n,i){var l;l=n.zb,n.zb=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.zb))}function pZ(n,i){var l;l=n.xb,n.xb=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,l,n.xb))}function gZ(n,i){var l;l=n.yb,n.yb=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,2,l,n.yb))}function Ha(n,i){var l,d;l=(d=new Nue,d),l.n=i,Yr((!n.s&&(n.s=new vt(Ju,n,21,17)),n.s),l)}function _a(n,i){var l,d;d=(l=new W8e,l),d.n=i,Yr((!n.s&&(n.s=new vt(Ju,n,21,17)),n.s),d)}function bo(n,i){var l,d,g;for(hr(i),l=!1,g=i.Kc();g.Ob();)d=g.Pb(),l=l|n.Fc(d);return l}function M$t(n){var i,l,d;for(i=0,d=n.Kc();d.Ob();)l=d.Pb(),i+=l!=null?ma(l):0,i=~~i;return i}function Xfe(n,i){var l=n.a,d=0;for(var g in l)l.hasOwnProperty(g)&&(i[d++]=g);return i}function P$t(n){var i;return n==0?"UTC":(n<0?(n=-n,i="UTC+"):i="UTC-",i+pFt(n))}function T9e(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=uz(xc(n.f))),n.c).e}function B$t(n,i){i?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function Rmr(n,i){return B8(),n==dx&&i==U4||n==U4&&i==dx||n==A5&&i==$4||n==$4&&i==A5}function Imr(n,i){return B8(),n==dx&&i==$4||n==dx&&i==A5||n==U4&&i==A5||n==U4&&i==$4}function F$t(n,i){return $1(),x0(ep),u.Math.abs(0-i)<=ep||i==0||isNaN(0)&&isNaN(i)?0:n/i}function $$t(n,i){return We(at(ad(jz(Bl(new xn(null,new Nn(n.c.b,16)),new YCt(n)),i))))}function C9e(n,i){return We(at(ad(jz(Bl(new xn(null,new Nn(n.c.b,16)),new VCt(n)),i))))}function Nmr(){return cl(),Te(xe(Aye,1),wt,259,0,[qte,wf,iP,Hte,iN,L5,aP,nN,rN,Vte])}function Omr(){return qf(),Te(xe(RVe,1),wt,243,0,[bne,Uq,zq,CVe,AVe,TVe,kVe,yne,Tx,e3])}function Lmr(n,i){var l;i.Ug("General Compactor",1),l=Fvr(v(Et(n,(Xv(),qve)),393)),l.Cg(n)}function Dmr(n,i){var l,d;return l=v(Et(n,(Xv(),Nne)),17),d=v(Et(i,Nne),17),Nc(l.a,d.a)}function A9e(n,i,l){var d,g;for(g=Ur(n,0);g.b!=g.d.c;)d=v(Fr(g),8),d.a+=i,d.b+=l;return n}function TD(n,i,l){var d;for(d=n.b[l&n.f];d;d=d.b)if(l==d.a&&Wp(i,d.g))return d;return null}function CD(n,i,l){var d;for(d=n.c[l&n.f];d;d=d.d)if(l==d.f&&Wp(i,d.i))return d;return null}function Mmr(n,i,l){var d,g,y;for(d=0,g=0;g<l;g++)y=i[g],n[g]=y<<1|d,d=y>>>31;d!=0&&(n[l]=d)}function Qfe(n,i,l,d,g,y){var x;this.c=n,x=new Ot,sDe(n,x,i,n.b,l,d,g,y),this.a=new go(x,0)}function U$t(){this.c=new BK(0),this.b=new BK(g$e),this.d=new BK(AQt),this.a=new BK(vge)}function uf(n,i,l,d,g,y,x){Kr.call(this,n,i),this.d=l,this.e=d,this.c=g,this.b=y,this.a=H1(x)}function ns(n,i,l,d,g,y,x,T,R,O,D,q,J){return VHt(n,i,l,d,g,y,x,T,R,O,D,q,J),I0e(n,!1),n}function Pmr(n){return n.b.c.i.k==(lr(),hs)?v(oe(n.b.c.i,(At(),Ji)),12):n.b.c}function z$t(n){return n.b.d.i.k==(lr(),hs)?v(oe(n.b.d.i,(At(),Ji)),12):n.b.d}function Bmr(n){var i;return i=kQ(n),gE(i.a,0)?(zK(),zK(),Hen):(zK(),new ENt(i.b))}function Zfe(n){var i;return i=aOe(n),gE(i.a,0)?(zS(),zS(),Ebe):(zS(),new Khe(i.b))}function Jfe(n){var i;return i=aOe(n),gE(i.a,0)?(zS(),zS(),Ebe):(zS(),new Khe(i.c))}function G$t(n){switch(n.g){case 2:return Bt(),cr;case 4:return Bt(),gr;default:return n}}function q$t(n){switch(n.g){case 1:return Bt(),Mr;case 3:return Bt(),or;default:return n}}function H$t(n){switch(n.g){case 0:return new Cxt;case 1:return new Axt;default:return null}}function Bk(){Bk=z,iye=new Ba("edgelabelcenterednessanalysis.includelabel",(Qn(),a2))}function k9e(){k9e=z,zsn=Jp(hIt(yi(yi(new ms,(Mo(),qc),(qo(),Ste)),ru,vte),Gl),xte)}function V$t(){V$t=z,Vsn=Jp(hIt(yi(yi(new ms,(Mo(),qc),(qo(),Ste)),ru,vte),Gl),xte)}function e0e(){e0e=z,eB=new A6t,Y2e=Te(xe(Ju,1),x5,179,0,[]),dhn=Te(xe(e0,1),DUe,62,0,[])}function N8(){N8=z,Tq=new BRe("TO_INTERNAL_LTR",0),tye=new BRe("TO_INPUT_DIRECTION",1)}function hh(){hh=z,kGe=new Nyt,CGe=new Oyt,AGe=new Lyt,TGe=new Dyt,RGe=new Myt,IGe=new Pyt}function Fmr(n,i){i.Ug(iQt,1),NLe(war(new _K((TL(),new Gde(n,!1,!1,new O6e))))),i.Vg()}function $mr(n,i,l){l.Ug("DFS Treeifying phase",1),n2r(n,i),e5r(n,i),n.a=null,n.b=null,l.Vg()}function Oz(n,i){return Qn(),ro(n)?kOe(n,ai(i)):VS(n)?Sde(n,at(i)):HS(n)?Rhr(n,Ht(i)):n.Fd(i)}function AD(n,i){var l,d;for(hr(i),d=i.vc().Kc();d.Ob();)l=v(d.Pb(),44),n.zc(l.ld(),l.md())}function Umr(n,i,l){var d;for(d=l.Kc();d.Ob();)if(!NQ(n,i,d.Pb()))return!1;return!0}function zmr(n,i,l,d,g){var y;return l&&(y=Ma(i.Dh(),n.c),g=l.Rh(i,-1-(y==-1?d:y),null,g)),g}function Gmr(n,i,l,d,g){var y;return l&&(y=Ma(i.Dh(),n.c),g=l.Th(i,-1-(y==-1?d:y),null,g)),g}function Y$t(n){var i;if(n.b==-2){if(n.e==0)i=-1;else for(i=0;n.a[i]==0;i++);n.b=i}return n.b}function qmr(n){if(hr(n),n.length==0)throw _e(new Gp("Zero length BigInteger"));WCr(this,n)}function R9e(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function j$t(n,i,l){this.g=n,this.d=i,this.e=l,this.a=new Ot,t4r(this),Fn(),us(this.a,null)}function I9e(n,i){i.q=n,n.d=u.Math.max(n.d,i.r),n.b+=i.d+(n.a.c.length==0?0:n.c),Lt(n.a,i)}function O8(n,i){var l,d,g,y;return g=n.c,l=n.c+n.b,y=n.d,d=n.d+n.a,i.a>g&&i.a<l&&i.b>y&&i.b<d}function u4(n,i){var l,d;for(d=Ur(n,0);d.b!=d.d.c;)l=v(Fr(d),8),l.a+=i.a,l.b+=i.b;return n}function Hmr(n){var i,l,d;for(d=0,l=new me(n.b);l.a<l.c.c.length;)i=v(pe(l),30),i.p=d,++d}function Vmr(n){var i,l,d;return n.j==(Bt(),or)&&(i=DVt(n),l=oh(i,gr),d=oh(i,cr),d||d&&l)}function Ymr(n,i){var l;return l=VDe(n),EMe(new Ct(l.c,l.d),new Ct(l.b,l.a),n.Mf(),i,n.ag())}function N9e(n,i){var l;l=v(i,190),k_(l,"x",n.i),k_(l,"y",n.j),k_(l,Mme,n.g),k_(l,Dme,n.f)}function mZ(n,i){var l;$e(i,85)?(v(n.c,79).Gk(),l=v(i,85),C$t(n,l)):v(n.c,79).Wb(i)}function kD(n,i){var l,d;for(hr(i),d=n.vc().Kc();d.Ob();)l=v(d.Pb(),44),i.Yd(l.ld(),l.md())}function jmr(n,i){var l;for(ni(i);n.Ob();)if(l=n.Pb(),!L9e(v(l,10)))return!1;return!0}function Wmr(){var n;return Abe||(Abe=new t6t,n=new mfe(""),lsr(n,(KR(),Sze)),Emr(Abe,n)),Abe}function W$t(n,i){return a4(new N5t(n),new O5t(i),new L5t(i),new Kt,Te(xe(Il,1),wt,108,0,[]))}function bZ(){bZ=z,Yve=new The(og,0),XYe=new The("POLAR_COORDINATE",1),KYe=new The("ID",2)}function yZ(){yZ=z,LVe=new mhe("EQUALLY",0),pve=new mhe(VJ,1),DVe=new mhe("NORTH_SOUTH",2)}function L8(){L8=z,ZM=new Ba("debugSVG",(Qn(),!1)),Kze=new Ba("overlapsExisted",!0)}function K$t(){K$t=z,Pcn=Qr((dy(),Te(xe(Mcn,1),wt,285,0,[Kje,Gs,Zl,K5,Fo,Ra,k6,op])))}function X$t(){X$t=z,Vun=Qr((oI(),Te(xe(ure,1),wt,245,0,[G2e,lre,cre,ore,z2e,sre,are,U2e])))}function Q$t(){Q$t=z,Crn=Qr((EJ(),Te(xe(pqe,1),wt,276,0,[cye,dye,lye,gye,hye,uye,pye,fye])))}function Z$t(){return oM(),Te(xe(Q8r,1),wt,262,0,[wve,QVe,tYe,nYe,eYe,XVe,rYe,WVe,JVe,ZVe,KVe])}function M_(n,i,l){var d,g;return g=v(eD(n.d,i),17),d=v(eD(n.b,l),17),!g||!d?null:Dk(n,g.a,d.a)}function J$t(n,i){var l;return l=W1e(R8(),n),l?(sa(i,(Ei(),rC),l),!0):!1}function eUt(n){return WS(),n.A.Hc((ud(),o3))&&!n.B.Hc((qh(),yH))?Xzt(n):null}function tUt(){this.a=v(zt((A0(),ute)),17).a,this.c=We(at(zt(hte))),this.b=We(at(zt(Gbe)))}function P_(n){this.f=n,this.e=new mOe(this.f.i),this.a=this.e,this.b=D9e(this),this.d=this.f.g}function Xa(n,i){zX.call(this,fhn,n,i),this.b=this,this.a=Iu(n.Dh(),qn(this.e.Dh(),this.c))}function Kmr(n,i){var l,d;for(d=new me(i.b);d.a<d.c.c.length;)l=v(pe(d),30),n.a[l.p]=kxr(l)}function Rd(n,i){var l;for(l=0;l<i.j.c.length;l++)v(Tz(n,l),21).Gc(v(Tz(i,l),16));return n}function t0e(n,i,l,d){var g;g=n.a.length,l>g?l=g:sr(i,l+1),n.a=af(n.a,0,i)+(""+d)+SNe(n.a,l)}function nUt(n,i){n.a=zo(n.a,1),n.c=u.Math.min(n.c,i),n.b=u.Math.max(n.b,i),n.d=zo(n.d,i)}function Xmr(n,i){return i<n.b.gc()?v(n.b.Xb(i),10):i==n.b.gc()?n.a:v(Yt(n.e,i-n.b.gc()-1),10)}function Qmr(n,i,l){return ha(pk(eI(n),new Ct(i.e.a,i.e.b)),pk(eI(n),new Ct(l.e.a,l.e.b)))}function Zmr(n,i,l){return n==($E(),vne)?new hwt:Gh(i,1)!=0?new dRe(l.length):new h7t(l.length)}function Vi(n,i){var l,d,g;if(l=n.th(),l!=null&&n.wh())for(d=0,g=l.length;d<g;++d)l[d].dj(i)}function Jmr(n,i){var l,d,g;for(l=n.c.Xe(),g=i.Kc();g.Ob();)d=g.Pb(),n.a.Yd(l,d);return n.b.Kb(l)}function D8(n,i){var l,d;for(l=n,d=So(l).e;d;){if(l=d,l==i)return!0;d=So(l).e}return!1}function zv(n){var i;return i=n.h,i==0?n.l+n.m*n6:i==rb?n.l+n.m*n6-j_:n}function ebr(n,i,l){var d,g;return d=n.a.f[i.p],g=n.a.f[l.p],d<g?-1:d==g?0:1}function tbr(n,i){var l,d;for(d=new me(i);d.a<d.c.c.length;)l=v(pe(d),72),Lt(n.d,l),xxr(n,l)}function nbr(n,i){var l;i.Ug("Edge and layer constraint edge reversal",1),l=hCr(n),G7r(l),i.Vg()}function rbr(n,i){var l,d;for(d=new mr(n);d.e!=d.i.gc();)l=v(wr(d),27),ef(l,l.i+i.b,l.j+i.d)}function rUt(n){var i;n.d==null?(++n.e,n.f=0,gzt(null)):(++n.e,i=n.d,n.d=null,n.f=0,gzt(i))}function ibr(n){var i;if(n.a==n.b.a)throw _e(new ec);return i=n.a,n.c=i,n.a=v($f(n.a.e),227),i}function rr(n,i){var l;return n.Db&i?(l=o1e(n,i),l==-1?n.Eb:L_(n.Eb)[l]):null}function fc(n,i){var l,d;return l=(d=new K6e,d),l.G=i,!n.rb&&(n.rb=new ZS(n,v1,n)),Yr(n.rb,l),l}function Li(n,i){var l,d;return l=(d=new CK,d),l.G=i,!n.rb&&(n.rb=new ZS(n,v1,n)),Yr(n.rb,l),l}function iUt(n,i,l,d){$e(n.Cb,184)&&(v(n.Cb,184).tb=null),mu(n,l),i&&w4r(n,i),d&&n.gl(!0)}function aUt(n,i){n.c&&(wjt(n,i,!0),ts(new xn(null,new Nn(i,16)),new ZCt(n))),wjt(n,i,!1)}function abr(n){NIt();var i;return MRt(_ve,n)||(i=new zwt,i.a=n,sIe(_ve,n,i)),v(yl(_ve,n),645)}function vZ(n){var i;if(n.g>1||n.Ob())return++n.a,n.g=0,i=n.i,n.Ob(),i;throw _e(new ec)}function sUt(n){switch(n.a.g){case 1:return new h8t;case 3:return new hqt;default:return new STt}}function O9e(n,i){switch(i){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return iOe(n,i)}function xc(n){return $G<n&&n<j_?n<0?u.Math.ceil(n):u.Math.floor(n):zv(LTr(n))}function Lz(n){var i;return n<128?(y9t(),i=aze[n],!i&&(i=aze[n]=new h7e(n)),i):new h7e(n)}function sbr(n,i){var l;try{i.de()}catch(d){if(d=Da(d),$e(d,82))l=d,jn(n.c,l);else throw _e(d)}}function Uf(n){var i,l,d,g;return g=n,d=0,g<0&&(g+=j_,d=rb),l=Ps(g/n6),i=Ps(g-l*n6),Su(i,l,d)}function Dz(n){var i,l,d;for(d=0,l=new lk(n.a);l.a<l.c.a.length;)i=vD(l),n.b.Hc(i)&&++d;return d}function obr(n){var i,l,d;for(i=1,d=n.Kc();d.Ob();)l=d.Pb(),i=31*i+(l==null?0:ma(l)),i=~~i;return i}function Ul(n,i){var l;return i&&(l=i.nf(),l.dc()||(n.q?AD(n.q,l):n.q=new tIt(l))),n}function oUt(n,i){var l;return l=n.a.get(i),l===void 0?++n.d:(elr(n.a,i),--n.c,++n.b.g),l}function lbr(n,i){var l,d,g;return l=i.p-n.p,l==0?(d=n.f.a*n.f.b,g=i.f.a*i.f.b,ha(d,g)):l}function cbr(n,i){var l,d;return l=n.j,d=i.j,l!=d?l.g-d.g:n.p==i.p?0:l==(Bt(),or)?n.p-i.p:i.p-n.p}function RD(n,i,l,d,g){Ga(n.c[i.g],l.g,d),Ga(n.c[l.g],i.g,d),Ga(n.b[i.g],l.g,g),Ga(n.b[l.g],i.g,g)}function B_(n,i,l){this.b=(hr(n),n),this.d=(hr(i),i),this.e=(hr(l),l),this.c=this.d+(""+this.e)}function M8(n,i){this.b=n,this.e=i,this.d=i.j,this.f=(al(),v(n,69).xk()),this.k=Iu(i.e.Dh(),n)}function Mz(n){this.n=new Ot,this.e=new Ea,this.j=new Ea,this.k=new Ot,this.f=new Ot,this.p=n}function lUt(n){n.r=new fs,n.w=new fs,n.t=new Ot,n.i=new Ot,n.d=new fs,n.a=new fk,n.c=new Br}function GE(){GE=z,mq=new ZK("UP",0),gq=new ZK(cge,1),Dbe=new ZK(r6,2),Mbe=new ZK(i6,3)}function P8(){P8=z,kye=new dhe("ONE_SIDED",0),Rye=new dhe("TWO_SIDED",1),Iq=new dhe("OFF",2)}function n0e(){n0e=z,wje=new JRe("EQUAL_BETWEEN_STRUCTURES",0),Eje=new JRe("TO_ASPECT_RATIO",1)}function cUt(){cUt=z,psn=Qr((fy(),Te(xe(_Ve,1),wt,265,0,[ive,bVe,yVe,rve,mVe,vVe,pne,dN,fN])))}function uUt(){uUt=z,Cun=Qr((qh(),Te(xe(aKe,1),wt,264,0,[TN,yH,Zne,KP,Jne,tre,ere,P2e,bH])))}function hUt(){hUt=z,mun=Qr((w4(),Te(xe(fl,1),wt,95,0,[D0,cb,M0,B0,am,Qf,Bd,P0,Xf])))}function dUt(){dUt=z,stn=Qr((SJ(),Te(xe(Vze,1),wt,257,0,[Hze,Uze,zze,$ze,Nbe,qze,Gze,Fze,Bze])))}function L9e(n){var i;return i=v(oe(n,(At(),vc)),64),n.k==(lr(),hs)&&(i==(Bt(),cr)||i==gr)}function ubr(n,i,l){var d,g;g=v(oe(n,(qt(),Nl)),75),g&&(d=new ah,y0e(d,0,g),u4(d,l),bo(i,d))}function _Z(n,i,l){var d,g,y,x;x=So(n),d=x.d,g=x.c,y=n.n,i&&(y.a=y.a-d.b-g.a),l&&(y.b=y.b-d.d-g.b)}function hbr(n,i){var l,d;return l=n.f.c.length,d=i.f.c.length,l<d?-1:l==d?0:1}function dbr(n){return n.b.c.length!=0&&v(Yt(n.b,0),72).a?v(Yt(n.b,0),72).a:zde(n)}function fbr(n){var i;if(n){if(i=n,i.dc())throw _e(new ec);return i.Xb(i.gc()-1)}return XDt(n.Kc())}function fUt(n){var i;return Oc(n,0)<0&&(n=FIe(n)),i=ti(Dv(n,32)),64-(i!=0?gG(i):gG(ti(n))+32)}function pbr(){return DQ(),rp?new mfe(null):NVt(Wmr(),"com.google.common.base.Strings")}function r0e(n,i,l,d){return l==1?(!n.n&&(n.n=new vt(wl,n,1,7)),Ko(n.n,i,d)):JDe(n,i,l,d)}function Pz(n,i){var l,d;return d=(l=new due,l),mu(d,i),Yr((!n.A&&(n.A=new sh(Mu,n,7)),n.A),d),d}function gbr(n,i,l){var d,g,y,x;return y=null,x=i,g=ME(x,Fme),d=new N8t(n,l),y=(Ywr(d.a,d.b,g),g),y}function i0e(n){var i;return(!n.a||!(n.Bb&1)&&n.a.Vh())&&(i=Gf(n),$e(i,156)&&(n.a=v(i,156))),n.a}function Bz(n,i){var l,d;for(hr(i),d=i.Kc();d.Ob();)if(l=d.Pb(),!n.Hc(l))return!1;return!0}function mbr(n,i){var l,d,g;return l=n.l+i.l,d=n.m+i.m+(l>>22),g=n.h+i.h+(d>>22),Su(l&Hh,d&Hh,g&rb)}function pUt(n,i){var l,d,g;return l=n.l-i.l,d=n.m-i.m+(l>>22),g=n.h-i.h+(d>>22),Su(l&Hh,d&Hh,g&rb)}function bbr(n){var i,l;for(uRr(n),l=new me(n.d);l.a<l.c.c.length;)i=v(pe(l),105),i.i&&aSr(i)}function Da(n){var i;return $e(n,82)?n:(i=n&&n.__java$exception,i||(i=new ozt(n),Kkt(i)),i)}function Fz(n){if($e(n,193))return v(n,123);if(n)return null;throw _e(new rk(UZt))}function D9e(n){return n.a.Ob()?!0:n.a!=n.e?!1:(n.a=new FOe(n.f.f),n.a.Ob())}function gUt(n,i){if(i==null)return!1;for(;n.a!=n.b;)if(Yi(i,CZ(n)))return!0;return!1}function mUt(n,i){return!n||!i||n==i?!1:nGt(n.d.c,i.d.c+i.d.b)&&nGt(i.d.c,n.d.c+n.d.b)}function xs(n,i){var l,d;return l=i.Pc(),d=l.length,d==0?!1:(MIe(n.c,n.c.length,l),!0)}function ybr(n,i,l){var d,g;for(g=i.vc().Kc();g.Ob();)d=v(g.Pb(),44),n.yc(d.ld(),d.md(),l);return n}function a0e(n){var i,l,d;for(i=new Ea,d=Ur(n.d,0);d.b!=d.d.c;)l=v(Fr(d),65),pi(i,l.c);return i}function bUt(n,i){var l,d;for(d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),72),_t(l,(At(),E6),i)}function vbr(n,i,l){var d,g;for(g=new me(n.b);g.a<g.c.c.length;)d=v(pe(g),27),ef(d,d.i+i,d.j+l)}function yUt(n,i){if(!n)throw _e(new ar(sM("value already present: %s",Te(xe(zs,1),Yn,1,5,[i]))))}function _br(n,i,l,d,g){return l5(),u.Math.min(YWt(n,i,l,d,g),YWt(l,d,n,i,OX(new Ct(g.a,g.b))))}function wbr(n,i,l,d){v(l.b,68),v(l.b,68),v(d.b,68),v(d.b,68),v(d.b,68),Cu(d.a,new CIe(n,i,d))}function Ebr(n,i){n.d==(ys(),Ol)||n.d==Ef?v(i.a,60).c.Fc(v(i.b,60)):v(i.b,60).c.Fc(v(i.a,60))}function vUt(n,i){var l;return l=Pg(i.a.gc()),ts(JQ(new xn(null,new Nn(i,1)),n.i),new x8t(n,l)),l}function _Ut(n){var i,l;return l=(i=new due,i),mu(l,"T"),Yr((!n.d&&(n.d=new sh(Mu,n,11)),n.d),l),l}function M9e(n){var i,l,d,g;for(i=1,l=0,g=n.gc();l<g;++l)d=n.Vi(l),i=31*i+(d==null?0:ma(d));return i}function wUt(n,i,l,d){var g;return fz(i,n.e.Rd().gc()),fz(l,n.c.Rd().gc()),g=n.a[i][l],Ga(n.a[i],l,d),g}function Te(n,i,l,d,g){return g.Rm=n,g.Sm=i,g.Tm=Z,g.__elementTypeId$=l,g.__elementTypeCategory$=d,g}function wZ(){wZ=z,aye=new rX(og,0),Ote=new rX(oQt,1),Lte=new rX(lQt,2),Aq=new rX("BOTH",3)}function K1(){K1=z,b6=new iX(CI,0),WI=new iX(r6,1),KI=new iX(i6,2),sye=new iX("TOP",3)}function B8(){B8=z,dx=new tX("Q1",0),U4=new tX("Q4",1),$4=new tX("Q2",2),A5=new tX("Q3",3)}function EZ(){EZ=z,vve=new _he("OFF",0),pN=new _he("SINGLE_EDGE",1),t3=new _he("MULTI_EDGE",2)}function $z(){$z=z,Gne=new t8e("MINIMUM_SPANNING_TREE",0),Yje=new t8e("MAXIMUM_SPANNING_TREE",1)}function Fk(){Fk=z,Icn=new Dxt,Rcn=new Lxt}function P9e(n){var i,l;return l=(kv(),i=new dK,i),n&&Yr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),l),l}function s0e(n){var i,l,d,g;for(g=new Ot,d=n.Kc();d.Ob();)l=v(d.Pb(),27),i=E4(l),xs(g,i);return g}function xbr(n,i){var l,d;for(mQ(i,"predicate"),d=0;n.Ob();d++)if(l=n.Pb(),i.Lb(l))return d;return-1}function $k(n,i){var l,d;if(d=0,n<64&&n<=i)for(i=i<64?i:63,l=n;l<=i;l++)d=s1(d,w0(1,l));return d}function Sbr(n,i){var l,d;return l=n.c,d=i.e[n.p],d<l.a.c.length-1?v(Yt(l.a,d+1),10):null}function B9e(n){Fn();var i,l,d;for(d=0,l=n.Kc();l.Ob();)i=l.Pb(),d=d+(i!=null?ma(i):0),d=d|0;return d}function Tbr(n){var i,l,d;return i=v(n.e&&n.e(),9),d=(l=i.slice(),v(Rfe(l,i),9)),new nf(i,d,i.length)}function EUt(n,i,l){var d;xh(n.a),Cu(l.i,new VAt(n)),d=new xX(v(br(n.a,i.b),68)),dGt(n,d,i),l.f=d}function Cbr(n){var i;ZE(n,!0),i=py,ya(n,(qt(),cN))&&(i+=v(oe(n,cN),17).a),_t(n,cN,Nt(i))}function Abr(n){var i;return i=new $,i.a=n,i.b=Bbr(n),i.c=st(Xt,kt,2,2,6,1),i.c[0]=P$t(n),i.c[1]=P$t(n),i}function xUt(n){var i,l,d;return l=n.n,d=n.o,i=n.d,new rf(l.a-i.b,l.b-i.d,d.a+(i.b+i.c),d.b+(i.d+i.a))}function kbr(n,i){return!n||!i||n==i?!1:HE(n.b.c,i.b.c+i.b.b)<0&&HE(i.b.c,n.b.c+n.b.b)<0}function SUt(n){switch(n.g){case 1:return m2;case 2:return im;case 3:return hH;default:return dH}}function Rbr(n){switch(v(oe(n,(qt(),Lu)),171).g){case 2:case 4:return!0;default:return!1}}function Uz(n,i,l){switch(l.g){case 2:n.b=i;break;case 1:n.c=i;break;case 4:n.d=i;break;case 3:n.a=i}}function F9e(n,i){switch(i){case 0:!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o.c.$b();return}A1e(n,i)}function Ibr(n,i){var l,d;return l=v(v(br(n.g,i.a),42).a,68),d=v(v(br(n.g,i.b),42).a,68),Zjt(l,d)}function $9e(n,i,l){var d;if(d=n.gc(),i>d)throw _e(new XS(i,d));return n.Si()&&(l=ODt(n,l)),n.Ei(i,l)}function F8(n,i,l,d,g){var y,x;for(x=l;x<=g;x++)for(y=i;y<=d;y++)e5(n,y,x)||CJ(n,y,x,!0,!1)}function Nbr(n){l5();var i,l,d;for(l=st(Vs,kt,8,2,0,1),d=0,i=0;i<2;i++)d+=.5,l[i]=S_r(d,n);return l}function $8(n){var i,l,d;return i=~n.l+1&Hh,l=~n.m+(i==0?1:0)&Hh,d=~n.h+(i==0&&l==0?1:0)&rb,Su(i,l,d)}function U9e(n){var i;if(n<0)return Po;if(n==0)return 0;for(i=mM;!(i&n);i>>=1);return i}function o0e(n,i,l){return n>=128?!1:n<64?qL(Us(w0(1,n),l),0):qL(Us(w0(1,n-64),i),0)}function zz(n,i,l){return l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l)),n}function _t(n,i,l){return l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l)),n}function TUt(n){var i,l;return l=new PQ,Ul(l,n),_t(l,(Uv(),m6),n),i=new Br,skr(n,l,i),D7r(n,l,i),l}function CUt(n){var i,l;return i=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,l=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,i||l}function AUt(n,i){var l,d,g,y;for(l=!1,d=n.a[i].length,y=0;y<d-1;y++)g=y+1,l=l|i2r(n,i,y,g);return l}function Obr(n){var i,l,d,g;for(l=n.a,d=0,g=l.length;d<g;++d)i=l[d],DUt(n,i,(Bt(),Mr)),DUt(n,i,or)}function kUt(){kUt=z,$rn=Qr((cl(),Te(xe(Aye,1),wt,259,0,[qte,wf,iP,Hte,iN,L5,aP,nN,rN,Vte])))}function RUt(){RUt=z,ysn=Qr((qf(),Te(xe(RVe,1),wt,243,0,[bne,Uq,zq,CVe,AVe,TVe,kVe,yne,Tx,e3])))}function F_(){F_=z,_ye=new hhe(og,0),tN=new hhe("INCOMING_ONLY",1),O5=new hhe("OUTGOING_ONLY",2)}function l0e(){l0e=z,bbe={boolean:dar,number:Cir,string:Air,object:WHt,function:WHt,undefined:sir}}function z9e(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function G9e(n,i){this.c=n,this.d=i,this.b=this.d/this.c.c.Rd().gc()|0,this.a=this.d%this.c.c.Rd().gc()}function IUt(n,i){this.b=n,NT.call(this,(v(ze(bt((Mv(),Zn).o),10),19),i.i),i.g),this.a=(e0e(),Y2e)}function q9e(n,i,l){this.q=new u.Date,this.q.setFullYear(n+Jv,i,l),this.q.setHours(0,0,0,0),cM(this,0)}function NUt(n,i){XU(n>=0,"Negative initial capacity"),XU(i>=0,"Non-positive load factor"),xh(this)}function Lbr(n,i,l,d,g){var y,x;if(x=n.length,y=l.length,i<0||d<0||g<0||i+g>x||d+g>y)throw _e(new O7e)}function H9e(n,i){Fn();var l,d,g,y,x;for(x=!1,d=i,g=0,y=d.length;g<y;++g)l=d[g],x=x|n.Fc(l);return x}function OUt(n,i,l){var d,g;return d=new Cfe(i,l),g=new ye,n.b=BYt(n,n.b,d,g),g.b||++n.c,n.b.b=!1,g.d}function ID(n){var i;return i=n.a[n.b],i==null?null:(Ga(n.a,n.b,null),n.b=n.b+1&n.a.length-1,i)}function LUt(n){var i,l;return l=gG(n.h),l==32?(i=gG(n.m),i==32?gG(n.l)+32:i+20-10):l-12}function V9e(n){var i;return(!n.c||!(n.Bb&1)&&n.c.Db&64)&&(i=Gf(n),$e(i,90)&&(n.c=v(i,29))),n.c}function Gv(n){var i,l;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),60),i.d.c=-i.d.c-i.d.b;KMe(n)}function qv(n){var i,l;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),86),i.g.c=-i.g.c-i.g.b;vJ(n)}function DUt(n,i,l){var d,g,y,x;for(x=MD(i,l),y=0,g=x.Kc();g.Ob();)d=v(g.Pb(),12),Ni(n.c,d,Nt(y++))}function MUt(n,i,l){var d;return d=new Ot,JMe(n,i,d,(Bt(),gr),!0,!1),JMe(n,l,d,cr,!1,!1),d}function ac(n){var i,l,d,g,y;for(i=new ho,d=n,g=0,y=d.length;g<y;++g)l=d[g],i.a+=l.a,i.b+=l.b;return i}function c0e(n,i,l){var d,g,y,x;return y=null,x=i,g=ME(x,"labels"),d=new z8t(n,l),y=(m3r(d.a,d.b,g),g),y}function Dbr(n,i,l,d){var g;return g=UMe(n,i,l,d),!g&&(g=Gyr(n,l,d),g&&!h5(n,i,g))?null:g}function Mbr(n,i,l,d){var g;return g=zMe(n,i,l,d),!g&&(g=C0e(n,l,d),g&&!h5(n,i,g))?null:g}function Pbr(n,i,l){if(ni(i),l.Ob())for(o8e(i,ELt(l.Pb()));l.Ob();)o8e(i,n.a),o8e(i,ELt(l.Pb()));return i}function PUt(n,i){var l;for(l=0;l<n.a.a.length;l++)if(!v(p9t(n.a,l),178).Lb(i))return!1;return!0}function Bbr(n){var i;return n==0?"Etc/GMT":(n<0?(n=-n,i="Etc/GMT-"):i="Etc/GMT+",i+pFt(n))}function Y9e(n){var i;return n.b<=0?!1:(i=qp("MLydhHmsSDkK",Wu(Do(n.c,0))),i>1||i>=0&&n.b<3)}function u0e(n){var i,l,d;i=~n.l+1&Hh,l=~n.m+(i==0?1:0)&Hh,d=~n.h+(i==0&&l==0?1:0)&rb,n.l=i,n.m=l,n.h=d}function j9e(n){Fn();var i,l,d;for(d=1,l=n.Kc();l.Ob();)i=l.Pb(),d=31*d+(i!=null?ma(i):0),d=d|0;return d}function Fbr(n,i,l,d,g){var y;return y=PMe(n,i),l&&u0e(y),g&&(n=N_r(n,i),d?i2=$8(n):i2=Su(n.l,n.m,n.h)),y}function BUt(n,i,l){n.g=k1e(n,i,(Bt(),gr),n.b),n.d=k1e(n,l,gr,n.b),!(n.g.c==0||n.d.c==0)&&pHt(n)}function FUt(n,i,l){n.g=k1e(n,i,(Bt(),cr),n.j),n.d=k1e(n,l,cr,n.j),!(n.g.c==0||n.d.c==0)&&pHt(n)}function W9e(n,i){switch(i){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return OLe(n,i)}function $br(n,i){switch(i.g){case 0:$e(n.b,641)||(n.b=new tUt);break;case 1:$e(n.b,642)||(n.b=new e9t)}}function $Ut(n){switch(n.g){case 0:return new Oxt;default:throw _e(new ar(Cee+(n.f!=null?n.f:""+n.g)))}}function UUt(n){switch(n.g){case 0:return new Nxt;default:throw _e(new ar(Cee+(n.f!=null?n.f:""+n.g)))}}function Ubr(n,i,l){return!VR(Ki(new xn(null,new Nn(n.c,16)),new PR(new C8t(i,l)))).Bd((w_(),p6))}function zUt(n,i){return pk(eI(v(oe(i,(pc(),Ax)),88)),new Ct(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function zbr(n,i){for(;n.g==null&&!n.c?WNe(n):n.g==null||n.i!=0&&v(n.g[n.i-1],51).Ob();)Har(i,pJ(n))}function $_(n){var i,l;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),86),i.f.$b();wir(n.b,n),EYt(n)}function Gz(n){var i,l,d;for(i=new ah,d=Ur(n,0);d.b!=d.d.c;)l=v(Fr(d),8),JR(i,0,new Wo(l));return i}function U8(n){var i;return Pv(n),i=new Ge,n.a.Bd(i)?(QR(),new Bue(hr(i.a))):(QR(),QR(),wze)}function K9e(n,i,l){switch(i){case 0:!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),mZ(n.o,l);return}I1e(n,i,l)}function h0e(n,i,l){this.g=n,this.e=new ho,this.f=new ho,this.d=new Ea,this.b=new Ea,this.a=i,this.c=l}function d0e(n,i,l,d){this.b=new Ot,this.n=new Ot,this.i=d,this.j=l,this.s=n,this.t=i,this.r=0,this.d=0}function z8(n,i){if(!n.Li()&&i==null)throw _e(new ar("The 'no null' constraint is violated"));return i}function ry(n){var i,l;for(i=0,l=0;l<n.length;l++)i=(i<<5)-i+(sr(l,n.length),n.charCodeAt(l))|0;return i}function GUt(n,i){var l,d,g;for(g=n.b;g;){if(l=n.a.Ne(i,g.d),l==0)return g;d=l<0?0:1,g=g.a[d]}return null}function Gbr(n,i,l){var d,g;d=(Qn(),!!u8e(l)),g=v(i.xc(d),15),g||(g=new Ot,i.zc(d,g)),g.Fc(l)}function qbr(n,i){var l,d;return l=v(Et(n,(Z1(),Qq)),17).a,d=v(Et(i,Qq),17).a,l==d||l<d?-1:l>d?1:0}function Hbr(n){return Lt(n.c,(Fk(),Icn)),JOe(n.a,We(at(zt((P0e(),fne)))))?new ySt:new QAt(n)}function Vbr(n){for(;!n.d||!n.d.Ob();)if(n.b&&!wL(n.b))n.d=v(xk(n.b),51);else return null;return n.d}function X9e(n){switch(n.g){case 1:return AQt;default:case 2:return 0;case 3:return vge;case 4:return g$e}}function Ybr(){zi();var n;return Z2e||(n=hor(Qv("M",!0)),n=XX(Qv("M",!1),n),Z2e=n,Z2e)}function xZ(){xZ=z,F2e=new pX("ELK",0),gKe=new pX("JSON",1),pKe=new pX("DOT",2),mKe=new pX("SVG",3)}function ND(){ND=z,mve=new bhe("STACKED",0),gve=new bhe("REVERSE_STACKED",1),Gq=new bhe("SEQUENCED",2)}function OD(){OD=z,iYe=new xhe(og,0),Eve=new xhe("MIDDLE_TO_MIDDLE",1),Vq=new xhe("AVOID_OVERLAP",2)}function G8(){G8=z,dqe=new p2t,fqe=new g2t,drn=new d2t,hrn=new m2t,urn=new f2t,hqe=(hr(urn),new te)}function SZ(){SZ=z,JWe=new bE(15),dun=new fo((Ei(),Ty),JWe),GP=R6,KWe=Vcn,XWe=mw,ZWe=tC,QWe=i3}function WT(n,i){var l,d,g,y,x;for(d=i,g=0,y=d.length;g<y;++g)l=d[g],x=new pLt(n),l.hf(x),vkr(x);xh(n.f)}function f0e(n,i){var l;return i===n?!0:$e(i,229)?(l=v(i,229),Yi(n.Zb(),l.Zb())):!1}function Q9e(n,i){return yYt(n,i)?(Rn(n.b,v(oe(i,(At(),ob)),21),i),pi(n.a,i),!0):!1}function jbr(n){var i,l;i=v(oe(n,(At(),kh)),10),i&&(l=i.c,Yu(l.a,i),l.a.c.length==0&&Yu(So(i).b,l))}function Wbr(n,i){return ya(n,(At(),ua))&&ya(i,ua)?v(oe(i,ua),17).a-v(oe(n,ua),17).a:0}function Kbr(n,i){return ya(n,(At(),ua))&&ya(i,ua)?v(oe(n,ua),17).a-v(oe(i,ua),17).a:0}function qUt(n){return rp?st(jen,dXt,581,0,0,1):v(X1(n.a,st(jen,dXt,581,n.a.c.length,0,1)),856)}function Xbr(n,i,l,d){return hQ(),new eRe(Te(xe(rw,1),$J,44,0,[(n1e(n,i),new hE(n,i)),(n1e(l,d),new hE(l,d))]))}function KT(n,i,l){var d,g;return g=(d=new Oue,d),vl(g,i,l),Yr((!n.q&&(n.q=new vt(e0,n,11,10)),n.q),g),g}function p0e(n){var i,l,d,g;for(g=Iar(Gun,n),l=g.length,d=st(Xt,kt,2,l,6,1),i=0;i<l;++i)d[i]=g[i];return d}function Z9e(n,i){var l;i*2+1>=n.b.c.length||(Z9e(n,2*i+1),l=2*i+2,l<n.b.c.length&&Z9e(n,l),QHt(n,i))}function Qbr(n,i){var l,d;for(d=Ur(n,0);d.b!=d.d.c;)l=v(Fr(d),219),l.e.length>0&&(i.Cd(l),l.i&&Wyr(l))}function J9e(n,i,l){var d;for(d=l-1;d>=0&&n[d]===i[d];d--);return d<0?0:nhe(Us(n[d],ul),Us(i[d],ul))?-1:1}function HUt(n,i,l){var d,g;this.g=n,this.c=i,this.a=this,this.d=this,g=S$t(l),d=st(Sen,PG,227,g,0,1),this.b=d}function g0e(n,i,l,d,g){var y,x;for(x=l;x<=g;x++)for(y=i;y<=d;y++)if(e5(n,y,x))return!0;return!1}function Zbr(n,i){var l,d;for(d=n.Zb().Cc().Kc();d.Ob();)if(l=v(d.Pb(),16),l.Hc(i))return!0;return!1}function VUt(n,i,l){var d,g,y,x;for(hr(l),x=!1,y=n.fd(i),g=l.Kc();g.Ob();)d=g.Pb(),y.Rb(d),x=!0;return x}function m0e(n,i){var l,d;return d=v(rr(n.a,4),129),l=st(H2e,jme,424,i,0,1),d!=null&&Gc(d,0,l,0,d.length),l}function YUt(n,i){var l;return l=new H1e((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,i),n.e!=null||(l.c=n),l}function Jbr(n,i){var l;return n===i?!0:$e(i,85)?(l=v(i,85),nMe(x_(n),l.vc())):!1}function jUt(n,i,l){var d,g;for(g=l.Kc();g.Ob();)if(d=v(g.Pb(),44),n.Be(i,d.md()))return!0;return!1}function WUt(n,i,l){return n.d[i.p][l.p]||(n_r(n,i,l),n.d[i.p][l.p]=!0,n.d[l.p][i.p]=!0),n.a[i.p][l.p]}function eyr(n,i){var l;return!n||n==i||!ya(i,(At(),mx))?!1:(l=v(oe(i,(At(),mx)),10),l!=n)}function b0e(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function KUt(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function XUt(n){BDt.call(this,"The given string does not match the expected format for individual spacings.",n)}function tyr(n,i){var l;i.Ug("Min Size Preprocessing",1),l=hMe(n),sa(n,(Vg(),IP),l.a),sa(n,Dne,l.b),i.Vg()}function nyr(n){var i,l,d;for(i=0,d=st(Vs,kt,8,n.b,0,1),l=Ur(n,0);l.b!=l.d.c;)d[i++]=v(Fr(l),8);return d}function y0e(n,i,l){var d,g,y;for(d=new Ea,y=Ur(l,0);y.b!=y.d.c;)g=v(Fr(y),8),pi(d,new Wo(g));VUt(n,i,d)}function ryr(n,i){var l;return l=zo(n,i),nhe(ofe(n,i),0)|bX(ofe(n,l),0)?l:zo(MG,ofe(Dv(l,63),1))}function iyr(n,i){var l,d;return l=v(n.d.Bc(i),16),l?(d=n.e.hc(),d.Gc(l),n.e.d-=l.gc(),l.$b(),d):null}function QUt(n){var i;if(i=n.a.c.length,i>0)return s8(i-1,n.a.c.length),Jb(n.a,i-1);throw _e(new Qkt)}function ZUt(n,i,l){if(n>i)throw _e(new ar(qJ+n+fXt+i));if(n<0||i>l)throw _e(new sRe(qJ+n+bBe+i+pBe+l))}function q8(n,i){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),Hfe(n,i==null?null:(hr(i),i)),n.C&&n.hl(null)}function ayr(n,i){var l;l=zt((P0e(),fne))!=null&&i.Sg()!=null?We(at(i.Sg()))/We(at(zt(fne))):1,Ni(n.b,i,l)}function eLe(n,i){var l,d;if(d=n.c[i],d!=0)for(n.c[i]=0,n.d-=d,l=i+1;l<n.a.length;)n.a[l]-=d,l+=l&-l}function h4(n){var i;++n.j,n.i==0?n.g=null:n.i<n.g.length&&(i=n.g,n.g=n.aj(n.i),Gc(i,0,n.g,0,n.i))}function syr(n,i,l){if(i<0)throw _e(new Sl(WQt+i));i<n.j.c.length?of(n.j,i,l):(ZMt(n,i),Lt(n.j,l))}function JUt(n){if(!n.a||!(n.a.i&8))throw _e(new Tl("Enumeration class expected for layout option "+n.f))}function tLe(n){var i;return i=(!n.a&&(n.a=new vt(hb,n,9,5)),n.a),i.i!=0?kar(v(ze(i,0),694)):null}function oyr(n){var i;for(ni(n),wIe(!0,"numberToAdvance must be nonnegative"),i=0;i<0&&zr(n);i++)Rr(n);return i}function v0e(){v0e=z,Zze=(GK(),Pbe),Qze=new En(IBe,Zze),Vtn=new la(NBe),Ytn=new la(OBe),jtn=new la(LBe)}function LD(){LD=z,Dve=new lX(VBe,0),kne=new lX(IQt,1),Lve=new lX("FAN",2),Ove=new lX("CONSTRAINT",3)}function qz(){qz=z,Ine=new She(og,0),NYe=new She("RADIAL_COMPACTION",1),OYe=new She("WEDGE_COMPACTION",2)}function H8(){H8=z,bve=new yhe("CONSERVATIVE",0),BVe=new yhe("CONSERVATIVE_SOFT",1),vP=new yhe("SLOPPY",2)}function Ch(){Ch=z,Tze=new rhe("CONCURRENT",0),Ql=new rhe("IDENTITY_FINISH",1),B4=new rhe("UNORDERED",2)}function _0e(){_0e=z,Wbe=kDt(Te(xe(zP,1),wt,88,0,[(ys(),Ol),ql])),Kbe=kDt(Te(xe(zP,1),wt,88,0,[Ef,lp]))}function cd(n){return ro(n)?Xt:VS(n)?ws:HS(n)?rs:sNe(n)||JIe(n)?n.Rm:n.Rm||Array.isArray(n)&&xe(Ten,1)||Ten}function lyr(n){return n?n.i&1?n==Wh?rs:n==Wr?Ao:n==g3?VI:n==ao?ws:n==C2?ux:n==lC?hx:n==bh?d6:WM:n:null}function XT(n){return(n.c!=n.b.b||n.i!=n.g.b)&&($S(n.a.c,0),xs(n.a,n.b),xs(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function cyr(n,i){var l,d;for(l=n.a.length-1;i!=n.b;)d=i-1&l,Ga(n.a,i,n.a[d]),i=d;Ga(n.a,n.b,null),n.b=n.b+1&l}function uyr(n,i){var l,d;for(l=n.a.length-1,n.c=n.c-1&l;i!=n.c;)d=i+1&l,Ga(n.a,i,n.a[d]),i=d;Ga(n.a,n.c,null)}function nLe(n,i,l){var d,g;return n4(i,n.c.length),d=l.Pc(),g=d.length,g==0?!1:(MIe(n.c,i,d),!0)}function ezt(n,i,l){var d,g,y,x;for(g=l,y=0,x=g.length;y<x;++y)if(d=g[y],n.b.Be(i,d.ld()))return d;return null}function Hz(n){var i,l,d,g,y;for(y=1,l=n,d=0,g=l.length;d<g;++d)i=l[d],y=31*y+(i!=null?ma(i):0),y=y|0;return y}function Qr(n){var i,l,d,g,y;for(i={},d=n,g=0,y=d.length;g<y;++g)l=d[g],i[":"+(l.f!=null?l.f:""+l.g)]=l;return i}function hyr(n){var i,l;if(n==null)return null;for(i=0,l=n.length;i<l;i++)if(!jOt(n[i]))return n[i];return null}function w0e(n,i){return!n||i&&!n.j||$e(n,127)&&v(n,127).a.b==0?0:n.jf()}function TZ(n,i){return!n||i&&!n.k||$e(n,127)&&v(n,127).a.a==0?0:n.kf()}function tzt(n,i){return ya(n,(At(),ua))&&ya(i,ua)?Nc(v(oe(n,ua),17).a,v(oe(i,ua),17).a):0}function nzt(n){var i,l,d;for(d=0,l=new yr(_r(n.a.Kc(),new S));zr(l);)i=v(Rr(l),18),i.c.i==i.d.i||++d;return d}function rzt(n,i){var l,d,g;for(g=i-n.f,d=new me(n.d);d.a<d.c.c.length;)l=v(pe(d),315),Zzt(l,l.e,l.f+g);n.f=i}function U_(n,i){var l,d,g;d=n.Yk(i,null),g=null,i&&(g=(HR(),l=new iE,l),x8(g,n.r)),d=Q1(n,g,d),d&&d.oj()}function izt(n,i){var l,d,g;l=n,g=0;do{if(l==i)return g;if(d=l.e,!d)throw _e(new cU);l=So(d),++g}while(!0)}function dyr(n){var i,l,d,g;for(d=n.b.a,l=d.a.ec().Kc();l.Ob();)i=v(l.Pb(),567),g=new lYt(i,n.e,n.f),Lt(n.g,g)}function fyr(n){var i;return i=new MFt(n),hz(n.a,jnn,new wh(Te(xe(Sq,1),Yn,382,0,[i]))),i.d&&Lt(i.f,i.d),i.f}function azt(n,i){var l;for(l=0;l<i.length;l++)if(n==(sr(l,i.length),i.charCodeAt(l)))return!0;return!1}function pyr(n,i){return i<n.length&&(sr(i,n.length),n.charCodeAt(i)!=63)&&(sr(i,n.length),n.charCodeAt(i)!=35)}function szt(n,i,l,d){$It(this),this.c=st(tm,gy,10,n.a.c.length,0,1),this.e=i,X1(n.a,this.c),this.f=l,this.b=d}function ozt(n){K6t(),CX(this),gQ(this),this.e=n,IYt(this,n),this.g=n==null?Ku:Kl(n),this.a="",this.b=n,this.a=""}function rLe(){this.a=new kxt,this.f=new FAt(this),this.b=new $At(this),this.i=new UAt(this),this.e=new zAt(this)}function lzt(){vir.call(this,new BOe(o4(16))),kd(2,jKt),this.b=2,this.a=new NNe(null,null,0,null),lU(this.a,this.a)}function iLe(n){throw l0e(),_e(new j6t("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function E0e(n,i,l){return u.Math.abs(i-n)<vee||u.Math.abs(l-n)<vee?!0:i-n>vee?n-l>vee:l-n>vee}function czt(n,i){var l;for(l=0;l<i.length;l++)if(n==(sr(l,i.length),i.charCodeAt(l)))return!0;return!1}function gyr(n){var i,l;if(n==null)return!1;for(i=0,l=n.length;i<l;i++)if(!jOt(n[i]))return!1;return!0}function aLe(n,i){var l,d,g;return d=!1,l=i.q.d,i.d<n.b&&(g=WMe(i.q,n.b),i.q.d>g&&($qt(i.q,g),d=l!=i.q.d)),d}function uzt(n,i){var l,d,g,y,x,T,R,O;return R=i.i,O=i.j,d=n.f,g=d.i,y=d.j,x=R-g,T=O-y,l=u.Math.sqrt(x*x+T*T),l}function sLe(n,i){var l,d;return d=$Z(n),d||(l=(dpe(),QVt(i)),d=new Ukt(l),Yr(d.El(),n)),d}function Vz(n,i){var l,d;return l=v(n.c.Bc(i),16),l?(d=n.hc(),d.Gc(l),n.d-=l.gc(),l.$b(),n.mc(d)):n.jc()}function myr(n,i){var l,d;for(d=Gh(n.d,1)!=0,l=!0;l;)l=!1,l=i.c.mg(i.e,d),l=l|_G(n,i,d,!1),d=!d;S9e(n)}function hzt(n,i,l,d){var g,y;n.a=i,y=d?0:1,n.f=(g=new SHt(n.c,n.a,l,y),new njt(l,n.a,g,n.e,n.b,n.c==($E(),_P)))}function CZ(n){var i;return Tr(n.a!=n.b),i=n.d.a[n.a],$Nt(n.b==n.d.c&&i!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,i}function dzt(n){var i;if(n.c!=0)return n.c;for(i=0;i<n.a.length;i++)n.c=n.c*33+(n.a[i]&-1);return n.c=n.c*n.e,n.c}function byr(n){var i;if(!(n.c.c<0?n.a>=n.c.b:n.a<=n.c.b))throw _e(new ec);return i=n.a,n.a+=n.c.c,++n.b,Nt(i)}function x0e(n){var i;return i=new w8e(n.a),Ul(i,n),_t(i,(At(),Ji),n),i.o.a=n.g,i.o.b=n.f,i.n.a=n.i,i.n.b=n.j,i}function S0e(n){return(Bt(),Qu).Hc(n.j)?We(at(oe(n,(At(),aN)))):ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a])).b}function yyr(n){var i;return i=EX(Usn),v(oe(n,(At(),au)),21).Hc((cl(),iN))&&yi(i,(Mo(),qc),(qo(),Ate)),i}function vyr(n){var i,l,d,g;for(g=new fs,d=new me(n);d.a<d.c.c.length;)l=v(pe(d),27),i=U5r(l),bo(g,i);return g}function _yr(n){var i,l;for(l=new me(n.r);l.a<l.c.c.length;)if(i=v(pe(l),10),n.n[i.p]<=0)return i;return null}function wyr(n,i,l){var d,g;for(g=i.a.a.ec().Kc();g.Ob();)if(d=v(g.Pb(),60),lDt(n,d,l))return!0;return!1}function Eyr(n,i,l,d){var g,y;for(y=n.Kc();y.Ob();)g=v(y.Pb(),72),g.n.a=i.a+(d.a-g.o.a)/2,g.n.b=i.b,i.b+=g.o.b+l}function xyr(n,i,l){var d;d=new SVt(n,i),Rn(n.r,i.ag(),d),l&&!aD(n.u)&&(d.c=new TDt(n.d),Cu(i.Rf(),new K5t(d)))}function Oc(n,i){var l;return jl(n)&&jl(i)&&(l=n-i,!isNaN(l))?l:wDe(jl(n)?Uf(n):n,jl(i)?Uf(i):i)}function oLe(n,i){var l,d,g;for(g=1,l=n,d=i>=0?i:-i;d>0;)d%2==0?(l*=l,d=d/2|0):(g*=l,d-=1);return i<0?1/g:g}function Syr(n,i){var l,d,g;for(g=1,l=n,d=i>=0?i:-i;d>0;)d%2==0?(l*=l,d=d/2|0):(g*=l,d-=1);return i<0?1/g:g}function Hv(n,i){var l,d,g,y;return y=(g=n?$Z(n):null,jHt((d=i,g&&g.Gl(),d))),y==i&&(l=$Z(n),l&&l.Gl()),y}function fzt(n,i,l){var d,g;return g=n.f,n.f=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,0,g,i),l?l.nj(d):l=d),l}function pzt(n,i,l){var d,g;return g=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,3,g,i),l?l.nj(d):l=d),l}function lLe(n,i,l){var d,g;return g=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,1,g,i),l?l.nj(d):l=d),l}function gzt(n){var i,l;if(n!=null)for(l=0;l<n.length;++l)i=n[l],i&&(v(i.g,379),i.i)}function Tyr(n,i,l,d,g,y,x,T){var R;for(R=l;y<x;)R>=d||i<l&&T.Ne(n[i],n[R])<=0?Ga(g,y++,n[i++]):Ga(g,y++,n[R++])}function Cyr(n,i,l,d,g){i==0||d==0||(i==1?g[d]=eDe(g,l,d,n[0]):d==1?g[i]=eDe(g,n,i,l[0]):W4r(n,l,g,i,d))}function Ayr(n,i,l){var d,g,y,x;for(d=l/n.gc(),g=0,x=n.Kc();x.Ob();)y=v(x.Pb(),186),rzt(y,y.f+d*g),zwr(y,i,d),++g}function kyr(n){var i,l,d;for(d=0,l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),172),d=u.Math.max(d,i.g);return d}function Ryr(n){var i,l,d;for(d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),219),i=l.c.kg()?l.f:l.a,i&&e6r(i,l.j)}function DD(){DD=z,ave=new phe("DUMMY_NODE_OVER",0),wVe=new phe("DUMMY_NODE_UNDER",1),gne=new phe("EQUAL",2)}function Uk(){Uk=z,sKe=new Lhe("PARALLEL_NODE",0),l3=new Lhe("HIERARCHICAL_NODE",1),nre=new Lhe("ROOT_NODE",2)}function Km(){Km=z,Xne=new Ohe("INHERIT",0),Cy=new Ohe("INCLUDE_CHILDREN",1),qP=new Ohe("SEPARATE_CHILDREN",2)}function cLe(n,i){switch(i){case 1:!n.n&&(n.n=new vt(wl,n,1,7)),Gr(n.n);return;case 2:I8(n,null);return}F9e(n,i)}function mzt(n){switch(n.g){case 0:return new xxt;case 1:return new Txt;case 2:return new Sxt;default:return null}}function iy(n){switch(jp(),n.c){case 0:return Bde(),KUe;case 1:return new ak(eVt(new lk(n)));default:return new H6t(n)}}function bzt(n){switch(jp(),n.gc()){case 0:return Bde(),KUe;case 1:return new ak(n.Kc().Pb());default:return new ARe(n)}}function AZ(n){var i;switch(n.gc()){case 0:return hbe;case 1:return new mde(ni(n.Xb(0)));default:return i=n,new Qde(i)}}function Nt(n){var i,l;return n>-129&&n<128?(JOt(),i=n+128,l=sze[i],!l&&(l=sze[i]=new l7e(n)),l):new l7e(n)}function V8(n){var i,l;return n>-129&&n<128?(m9t(),i=n+128,l=uze[i],!l&&(l=uze[i]=new u7e(n)),l):new u7e(n)}function yzt(n,i){var l;n.a.c.length>0&&(l=v(Yt(n.a,n.a.c.length-1),579),Q9e(l,i))||Lt(n.a,new PPt(i))}function Iyr(n){_0();var i,l;i=n.d.c-n.e.c,l=v(n.g,154),Cu(l.b,new LCt(i)),Cu(l.c,new DCt(i)),To(l.i,new MCt(i))}function vzt(n){var i;return i=new Cv,i.a+="VerticalSegment ",Kc(i,n.e),i.a+=" ",bi(i,k8e(new que,new me(n.k))),i.a}function T0e(n,i){var l,d,g;for(l=0,g=sc(n,i).Kc();g.Ob();)d=v(g.Pb(),12),l+=oe(d,(At(),kh))!=null?1:0;return l}function QT(n,i,l){var d,g,y;for(d=0,y=Ur(n,0);y.b!=y.d.c&&(g=We(at(Fr(y))),!(g>l));)g>=i&&++d;return d}function _zt(n,i){ni(n);try{return n._b(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function uLe(n,i){ni(n);try{return n.Hc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function Nyr(n,i){ni(n);try{return n.Mc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function d4(n,i){ni(n);try{return n.xc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return null;throw _e(l)}}function Oyr(n,i){ni(n);try{return n.Bc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return null;throw _e(l)}}function MD(n,i){switch(i.g){case 2:case 1:return sc(n,i);case 3:case 4:return ff(sc(n,i))}return Fn(),Fn(),Zo}function PD(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (name: ",bl(i,n.zb),i.a+=")",i.a)}function Lyr(n){var i;return i=v(j1(n.c.c,""),233),i||(i=new Rk(qR(GR(new XA,""),"Other")),cy(n.c.c,"",i)),i}function hLe(n,i,l){var d,g;return g=n.sb,n.sb=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,4,g,i),l?l.nj(d):l=d),l}function dLe(n,i,l){var d,g;return g=n.r,n.r=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,8,g,n.r),l?l.nj(d):l=d),l}function Dyr(n,i,l){var d,g;return d=new Vm(n.e,4,13,(g=i.c,g||(Pn(),dp)),null,uy(n,i),!1),l?l.nj(d):l=d,l}function Myr(n,i,l){var d,g;return d=new Vm(n.e,3,13,null,(g=i.c,g||(Pn(),dp)),uy(n,i),!1),l?l.nj(d):l=d,l}function ay(n,i){var l,d;return l=v(i,691),d=l.el(),!d&&l.fl(d=$e(i,90)?new Z8t(n,v(i,29)):new wMt(n,v(i,156))),d}function Yz(n,i,l){var d;n._i(n.i+1),d=n.Zi(i,l),i!=n.i&&Gc(n.g,i,n.g,i+1,n.i-i),Ga(n.g,i,d),++n.i,n.Mi(i,l),n.Ni()}function Pyr(n,i){var l;return i.a&&(l=i.a.a.length,n.a?bi(n.a,n.b):n.a=new Ed(n.d),kMt(n.a,i.a,i.d.length,l)),n}function Byr(n,i){var l;n.c=i,n.a=Gvr(i),n.a<54&&(n.f=(l=i.d>1?CMt(i.a[0],i.a[1]):CMt(i.a[0],0),N_(i.e>0?l:ty(l))))}function jz(n,i){var l;return l=new Ge,n.a.Bd(l)?(QR(),new Bue(hr(oFt(n,l.a,i)))):(Pv(n),QR(),QR(),wze)}function wzt(n,i){var l;n.c.length!=0&&(l=v(X1(n,st(tm,gy,10,n.c.length,0,1)),199),f8e(l,new _vt),pVt(l,i))}function Ezt(n,i){var l;n.c.length!=0&&(l=v(X1(n,st(tm,gy,10,n.c.length,0,1)),199),f8e(l,new wvt),pVt(l,i))}function Yi(n,i){return ro(n)?An(n,i):VS(n)?mOt(n,i):HS(n)?(hr(n),Ze(n)===Ze(i)):sNe(n)?n.Fb(i):JIe(n)?pIt(n,i):JNe(n,i)}function hf(n,i,l){if(i<0)yMe(n,l);else{if(!l.rk())throw _e(new ar(r2+l.xe()+MM));v(l,69).wk().Ek(n,n.hi(),i)}}function xzt(n,i,l){if(n<0||i>l)throw _e(new Sl(qJ+n+bBe+i+", size: "+l));if(n>i)throw _e(new ar(qJ+n+fXt+i))}function Szt(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (source: ",bl(i,n.d),i.a+=")",i.a)}function Tzt(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function Fyr(n){FJ();var i,l,d,g;for(l=H0e(),d=0,g=l.length;d<g;++d)if(i=l[d],$l(i.a,n,0)!=-1)return i;return Lbe}function $yr(n,i){var l,d,g,y;if(i.ej(n.a),y=v(rr(n.a,8),2035),y!=null)for(l=y,d=0,g=l.length;d<g;++d)null.Um()}function sy(n,i){var l;l=(n.Bb&256)!=0,i?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,2,l,i))}function fLe(n,i){var l;l=(n.Bb&256)!=0,i?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,8,l,i))}function kZ(n,i){var l;l=(n.Bb&256)!=0,i?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,8,l,i))}function oy(n,i){var l;l=(n.Bb&512)!=0,i?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,3,l,i))}function pLe(n,i){var l;l=(n.Bb&512)!=0,i?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,9,l,i))}function Uyr(n,i,l){var d,g;return g=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,5,g,n.a),l?MDe(l,d):l=d),l}function BD(n,i){var l;return n.b==-1&&n.a&&(l=n.a.pk(),n.b=l?n.c.Hh(n.a.Lj(),l):Ma(n.c.Dh(),n.a)),n.c.yh(n.b,i)}function Czt(n,i){var l,d;for(d=new mr(n);d.e!=d.i.gc();)if(l=v(wr(d),29),Ze(i)===Ze(l))return!0;return!1}function gLe(n){var i,l;return i=n.k,i==(lr(),hs)?(l=v(oe(n,(At(),vc)),64),l==(Bt(),or)||l==Mr):!1}function Azt(n){var i;return i=aOe(n),gE(i.a,0)?(zS(),zS(),Ebe):(zS(),new Khe(the(i.a,0)?ROe(i)/N_(i.a):0))}function Wz(n,i){this.e=i,this.a=fUt(n),this.a<54?this.f=N_(n):this.c=(eg(),Oc(n,0)>=0?Yv(n):cD(Yv(ty(n))))}function kzt(n,i,l,d,g,y){this.e=new Ot,this.f=(ll(),yP),Lt(this.e,n),this.d=i,this.a=l,this.b=d,this.f=g,this.c=y}function zyr(n,i,l){n.n=E_(C2,[kt,Xpe],[376,28],14,[l,Ps(u.Math.ceil(i/32))],2),n.o=i,n.p=l,n.j=i-1>>1,n.k=l-1>>1}function Rzt(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function Izt(n,i){var l,d;for(d=new mr(n);d.e!=d.i.gc();)if(l=v(wr(d),142),Ze(i)===Ze(l))return!0;return!1}function Gyr(n,i,l){var d,g,y;return y=(g=lI(n.b,i),g),y&&(d=v(LJ(Sz(n,y),""),29),d)?UMe(n,d,i,l):null}function C0e(n,i,l){var d,g,y;return y=(g=lI(n.b,i),g),y&&(d=v(LJ(Sz(n,y),""),29),d)?zMe(n,d,i,l):null}function qyr(n,i){var l;if(l=jT(n.i,i),l==null)throw _e(new zp("Node did not exist in input."));return N9e(i,l),null}function Hyr(n,i){var l;if(l=vG(n,i),$e(l,331))return v(l,35);throw _e(new ar(r2+i+"' is not a valid attribute"))}function FD(n,i,l){var d;if(d=n.gc(),i>d)throw _e(new XS(i,d));if(n.Si()&&n.Hc(l))throw _e(new ar(sq));n.Gi(i,l)}function Vyr(n,i){i.Ug("Sort end labels",1),ts(Ki(ic(new xn(null,new Nn(n.b,16)),new ivt),new avt),new svt),i.Vg()}function ys(){ys=z,cp=new NU(wM,0),ql=new NU(i6,1),Ol=new NU(r6,2),lp=new NU(cge,3),Ef=new NU("UP",4)}function Kz(){Kz=z,Bne=new Ihe("P1_STRUCTURE",0),Fne=new Ihe("P2_PROCESSING_ORDER",1),$ne=new Ihe("P3_EXECUTION",2)}function Nzt(){Nzt=z,tln=Jp(Jp(RL(Jp(Jp(RL(yi(new ms,(Yk(),xP),(oM(),wve)),SP),eYe),nYe),TP),XVe),rYe)}function Yyr(n){switch(v(oe(n,(At(),aw)),311).g){case 1:_t(n,aw,(Ym(),y6));break;case 2:_t(n,aw,(Ym(),D5))}}function jyr(n){switch(n){case 0:return new _6t;case 1:return new y6t;case 2:return new v6t;default:throw _e(new cU)}}function Ozt(n){switch(n.g){case 2:return ql;case 1:return Ol;case 4:return lp;case 3:return Ef;default:return cp}}function mLe(n,i){switch(n.b.g){case 0:case 1:return i;case 2:case 3:return new rf(i.d,0,i.a,i.b);default:return null}}function bLe(n){switch(n.g){case 1:return cr;case 2:return or;case 3:return gr;case 4:return Mr;default:return lc}}function Xz(n){switch(n.g){case 1:return Mr;case 2:return cr;case 3:return or;case 4:return gr;default:return lc}}function RZ(n){switch(n.g){case 1:return gr;case 2:return Mr;case 3:return cr;case 4:return or;default:return lc}}function yLe(n,i,l,d){switch(i){case 1:return!n.n&&(n.n=new vt(wl,n,1,7)),n.n;case 2:return n.k}return uDe(n,i,l,d)}function $D(n,i,l){var d,g;return n.Pj()?(g=n.Qj(),d=L1e(n,i,l),n.Jj(n.Ij(7,Nt(l),d,i,g)),d):L1e(n,i,l)}function A0e(n,i){var l,d,g;n.d==null?(++n.e,--n.f):(g=i.ld(),l=i.Bi(),d=(l&qi)%n.d.length,Opr(n,d,tYt(n,d,l,g)))}function Y8(n,i){var l;l=(n.Bb&k0)!=0,i?n.Bb|=k0:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,10,l,i))}function j8(n,i){var l;l=(n.Bb&R4)!=0,i?n.Bb|=R4:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,12,l,i))}function W8(n,i){var l;l=(n.Bb&gh)!=0,i?n.Bb|=gh:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,15,l,i))}function K8(n,i){var l;l=(n.Bb&P4)!=0,i?n.Bb|=P4:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,11,l,i))}function Wyr(n){var i;n.g&&(i=n.c.kg()?n.f:n.a,ePe(i.a,n.o,!0),ePe(i.a,n.o,!1),_t(n.o,(qt(),Qa),(co(),yw)))}function Kyr(n){var i;if(!n.a)throw _e(new Tl("Cannot offset an unassigned cut."));i=n.c-n.b,n.b+=i,rDt(n,i),nDt(n,i)}function Xyr(n,i){var l;if(l=br(n.k,i),l==null)throw _e(new zp("Port did not exist in input."));return N9e(i,l),null}function Qyr(n){var i,l;for(l=ZVt(Cd(n)).Kc();l.Ob();)if(i=ai(l.Pb()),lM(n,i))return Z1r((DRt(),ehn),i);return null}function Lzt(n){var i,l;for(l=n.p.a.ec().Kc();l.Ob();)if(i=v(l.Pb(),218),i.f&&n.b[i.c]<-1e-10)return i;return null}function Zyr(n){var i,l;for(l=C_(new Cv,91),i=!0;n.Ob();)i||(l.a+=Xo),i=!1,Kc(l,n.Pb());return(l.a+="]",l).a}function Jyr(n){var i,l,d;for(i=new Ot,d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),602),xs(i,v(l.Cf(),16));return i}function k0e(n,i){var l,d;for(d=new me(i);d.a<d.c.c.length;)l=v(pe(d),42),Yu(n.b.b,l.b),nfr(v(l.a,194),v(l.b,86))}function evr(n,i){var l;return l=ha(n.b.c,i.b.c),l!=0||(l=ha(n.a.a,i.a.a),l!=0)?l:ha(n.a.b,i.a.b)}function ha(n,i){return n<i?-1:n>i?1:n==i?n==0?ha(1/n,1/i):0:isNaN(n)?isNaN(i)?0:1:-1}function tvr(n){var i;return i=n.a[n.c-1&n.a.length-1],i==null?null:(n.c=n.c-1&n.a.length-1,Ga(n.a,n.c,null),i)}function nvr(n){var i,l,d;for(d=0,l=n.length,i=0;i<l;i++)n[i]==32||n[i]==13||n[i]==10||n[i]==9||(n[d++]=n[i]);return d}function rvr(n,i){var l,d,g,y,x;for(x=Iu(n.e.Dh(),i),y=0,l=v(n.g,124),g=0;g<n.i;++g)d=l[g],x.am(d.Lk())&&++y;return y}function ivr(n,i,l){var d,g;for(g=$e(i,102)&&v(i,19).Bb&el?new Mhe(i,n):new M8(i,n),d=0;d<l;++d)jZ(g);return g}function Dzt(n,i,l){var d,g;if(n.c)WDe(n.c,i,l);else for(g=new me(n.b);g.a<g.c.c.length;)d=v(pe(g),163),Dzt(d,i,l)}function avr(n,i,l){var d,g;return d=v(i.of(n.a),34),g=v(l.of(n.a),34),d!=null&&g!=null?Oz(d,g):d!=null?-1:g!=null?1:0}function vLe(n,i){var l,d,g;for(hr(i),l=!1,d=new me(n);d.a<d.c.c.length;)g=pe(d),i.Hc(g)&&(lD(d),l=!0);return l}function bn(n){var i,l,d,g;return l=(i=v(n1((d=n.Rm,g=d.f,g==jr?d:g)),9),new nf(i,v(v0(i,i.length),9),0)),S0(l,n),l}function IZ(n){var i,l;return l=v(oe(n,(qt(),Pd)),88),l==(ys(),cp)?(i=We(at(oe(n,Qte))),i>=1?ql:lp):l}function svr(n){switch(v(oe(n,(qt(),lb)),223).g){case 1:return new V_t;case 3:return new X_t;default:return new H_t}}function Vv(n){if(n.c)Vv(n.c);else if(n.d)throw _e(new Tl("Stream already terminated, can't be modified or used"))}function qE(n,i,l){var d;return d=n.a.get(i),n.a.set(i,l===void 0?null:l),d===void 0?(++n.c,++n.b.g):++n.d,d}function ovr(n,i,l){var d,g;for(g=n.a.ec().Kc();g.Ob();)if(d=v(g.Pb(),10),Bz(l,v(Yt(i,d.p),16)))return d;return null}function _Le(n,i,l){var d;return d=0,i&&(LT(n.a)?d+=i.f.a/2:d+=i.f.b/2),l&&(LT(n.a)?d+=l.f.a/2:d+=l.f.b/2),d}function lvr(n,i,l){var d;d=l,!d&&(d=zIe(new tk,0)),d.Ug(VXt,2),FGt(n.b,i,d.eh(1)),x6r(n,i,d.eh(1)),CRr(i,d.eh(1)),d.Vg()}function wLe(n,i,l){var d,g;return d=(kv(),g=new hK,g),nZ(d,i),tZ(d,l),n&&Yr((!n.a&&(n.a=new gs(Ud,n,5)),n.a),d),d}function R0e(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (identifier: ",bl(i,n.k),i.a+=")",i.a)}function I0e(n,i){var l;l=(n.Bb&Sc)!=0,i?n.Bb|=Sc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,18,l,i))}function ELe(n,i){var l;l=(n.Bb&Sc)!=0,i?n.Bb|=Sc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,18,l,i))}function X8(n,i){var l;l=(n.Bb&ng)!=0,i?n.Bb|=ng:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,16,l,i))}function xLe(n,i){var l;l=(n.Bb&el)!=0,i?n.Bb|=el:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,20,l,i))}function SLe(n){var i;return i=st(Tf,rg,28,2,15,1),n-=el,i[0]=(n>>10)+UG&vs,i[1]=(n&1023)+56320&vs,Qp(i,0,i.length)}function cvr(n){var i;return i=y4(n),i>34028234663852886e22?ka:i<-34028234663852886e22?Ss:i}function zo(n,i){var l;return jl(n)&&jl(i)&&(l=n+i,$G<l&&l<j_)?l:zv(mbr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function Go(n,i){var l;return jl(n)&&jl(i)&&(l=n*i,$G<l&&l<j_)?l:zv(h6r(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function zf(n,i){var l;return jl(n)&&jl(i)&&(l=n-i,$G<l&&l<j_)?l:zv(pUt(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function sc(n,i){var l;return n.i||bMe(n),l=v(yl(n.g,i),42),l?new Qb(n.j,v(l.a,17).a,v(l.b,17).a):(Fn(),Fn(),Zo)}function uvr(n){return _0e(),Qn(),!!(Bzt(v(n.a,86).j,v(n.b,88))||v(n.a,86).d.e!=0&&Bzt(v(n.a,86).j,v(n.b,88)))}function hvr(n,i){return An(i.b&&i.c?I_(i.b)+"->"+I_(i.c):"e_"+ma(i),n.b&&n.c?I_(n.b)+"->"+I_(n.c):"e_"+ma(n))}function dvr(n,i){return An(i.b&&i.c?I_(i.b)+"->"+I_(i.c):"e_"+ma(i),n.b&&n.c?I_(n.b)+"->"+I_(n.c):"e_"+ma(n))}function HE(n,i){return $1(),x0(Zv),u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:n<i?-1:n>i?1:mE(isNaN(n),isNaN(i))}function Xm(){Xm=z,L2e=new uX(wM,0),uH=new uX("POLYLINE",1),xN=new uX("ORTHOGONAL",2),O6=new uX("SPLINES",3)}function NZ(){NZ=z,eje=new khe("ASPECT_RATIO_DRIVEN",0),Jve=new khe("MAX_SCALE_DRIVEN",1),JYe=new khe("AREA_DRIVEN",2)}function fvr(n,i,l){var d;try{Pbr(n,i,l)}catch(g){throw g=Da(g),$e(g,606)?(d=g,_e(new SOe(d))):_e(g)}return i}function pvr(n){var i,l,d;for(l=0,d=n.length;l<d;l++)if(n[l]==null)throw _e(new rk("at index "+l));return i=n,new wh(i)}function Qm(n){var i,l,d;for(i=new Ot,d=new me(n.j);d.a<d.c.c.length;)l=v(pe(d),12),Lt(i,l.b);return ni(i),new YL(i)}function Hs(n){var i,l,d;for(i=new Ot,d=new me(n.j);d.a<d.c.c.length;)l=v(pe(d),12),Lt(i,l.e);return ni(i),new YL(i)}function os(n){var i,l,d;for(i=new Ot,d=new me(n.j);d.a<d.c.c.length;)l=v(pe(d),12),Lt(i,l.g);return ni(i),new YL(i)}function gvr(n,i){var l,d,g;for(g=new Br,d=i.vc().Kc();d.Ob();)l=v(d.Pb(),44),Ni(g,l.ld(),Jmr(n,v(l.md(),15)));return g}function mvr(n){var i,l;for(l=a3r(Cd(t4(n))).Kc();l.Ob();)if(i=ai(l.Pb()),lM(n,i))return J1r((ORt(),thn),i);return null}function N0e(n,i){var l,d,g;for(g=0,d=v(i.Kb(n),20).Kc();d.Ob();)l=v(d.Pb(),18),Vt(Ht(oe(l,(At(),ap))))||++g;return g}function Mzt(n){var i,l,d,g;for(i=new cOt(n.Rd().gc()),g=0,d=Mk(n.Rd().Kc());d.Ob();)l=d.Pb(),e0r(i,l,Nt(g++));return Jxr(i.a)}function O0e(n,i,l,d){var g,y;return hr(d),hr(l),g=n.xc(i),y=g==null?l:wRt(v(g,15),v(l,16)),y==null?n.Bc(i):n.zc(i,y),y}function bvr(n,i,l,d){var g,y,x;for(g=i+1;g<l;++g)for(y=g;y>i&&d.Ne(n[y-1],n[y])>0;--y)x=n[y],Ga(n,y,n[y-1]),Ga(n,y-1,x)}function pn(n,i){var l,d,g,y,x;if(l=i.f,cy(n.c.d,l,i),i.g!=null)for(g=i.g,y=0,x=g.length;y<x;++y)d=g[y],cy(n.c.e,d,i)}function Pzt(n,i){var l,d;for(l=Ur(n,0);l.b!=l.d.c;){if(d=uU(at(Fr(l))),d==i)return;if(d>i){NMt(l);break}}tz(l,i)}function yvr(n,i){var l,d,g;d=qT(i),g=We(at(p4(d,(qt(),O0)))),l=u.Math.max(0,g/2-.5),WD(i,l,1),Lt(n,new XRt(i,l))}function vvr(n,i,l){var d;l.Ug("Straight Line Edge Routing",1),l.dh(i,T$e),d=v(Et(i,(UT(),Y5)),27),vWt(n,d),l.dh(i,Eee)}function TLe(n,i){n.n.c.length==0&&Lt(n.n,new SQ(n.s,n.t,n.i)),Lt(n.b,i),aDe(v(Yt(n.n,n.n.c.length-1),209),i),tWt(n,i)}function UD(n){var i;this.a=(i=v(n.e&&n.e(),9),new nf(i,v(v0(i,i.length),9),0)),this.b=st(zs,Yn,1,this.a.a.length,5,1)}function Kl(n){var i;return Array.isArray(n)&&n.Tm===Z?__(cd(n))+"@"+(i=ma(n)>>>0,i.toString(16)):n.toString()}function _vr(n,i){return n.h==FG&&n.m==0&&n.l==0?(i&&(i2=Su(0,0,0)),mIt((E8(),eze))):(i&&(i2=Su(n.l,n.m,n.h)),Su(0,0,0))}function wvr(n,i){switch(i.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function Bzt(n,i){switch(i.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function CLe(n,i,l,d){switch(i){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return yLe(n,i,l,d)}function OZ(n,i){if(i==n.d)return n.e;if(i==n.e)return n.d;throw _e(new ar("Node "+i+" not part of edge "+n))}function Evr(n,i){var l;if(l=vG(n.Dh(),i),$e(l,102))return v(l,19);throw _e(new ar(r2+i+"' is not a valid reference"))}function df(n,i,l,d){if(i<0)VMe(n,l,d);else{if(!l.rk())throw _e(new ar(r2+l.xe()+MM));v(l,69).wk().Ck(n,n.hi(),i,d)}}function zh(n){var i;if(n.b){if(zh(n.b),n.b.d!=n.c)throw _e(new Jd)}else n.d.dc()&&(i=v(n.f.c.xc(n.e),16),i&&(n.d=i))}function xvr(n){WS();var i,l,d,g;for(i=n.o.b,d=v(v(Zi(n.r,(Bt(),Mr)),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g=l.e,g.b+=i}function Svr(n){var i,l,d;for(this.a=new Hp,d=new me(n);d.a<d.c.c.length;)l=v(pe(d),16),i=new w9t,Smr(i,l),Es(this.a,i)}function Tvr(n,i){var l,d,g;for(d=CCr(n,i),g=d[d.length-1]/2,l=0;l<d.length;l++)if(d[l]>=g)return i.c+l;return i.c+i.b.gc()}function Cvr(n,i){t8();var l,d,g,y;for(d=KBt(n),g=i,_8(d,0,d.length,g),l=0;l<d.length;l++)y=fwr(n,d[l],l),l!=y&&$D(n,l,y)}function L0e(n,i,l){var d,g;for(d=0,g=n.length;d<g;d++)if(o0e((sr(d,n.length),n.charCodeAt(d)),i,l))return!0;return!1}function Avr(n,i){var l,d;for(d=n.e.a.ec().Kc();d.Ob();)if(l=v(d.Pb(),272),Dxr(i,l.d)||qSr(i,l.d))return!0;return!1}function ALe(n,i,l,d,g){var y,x,T;for(x=g;i.b!=i.c;)y=v(xk(i),10),T=v(sc(y,d).Xb(0),12),n.d[T.p]=x++,jn(l.c,T);return x}function kLe(n,i){var l,d,g,y,x,T;for(d=0,l=0,y=i,x=0,T=y.length;x<T;++x)g=y[x],g>0&&(d+=g,++l);return l>1&&(d+=n.d*(l-1)),d}function kvr(n){var i,l,d,g,y;return y=HDe(n),l=fU(n.c),d=!l,d&&(g=new p_,c1(y,"knownLayouters",g),i=new Akt(g),To(n.c,i)),y}function RLe(n){var i,l,d;for(d=new qb,d.a+="[",i=0,l=n.gc();i<l;)bl(d,XL(n.Vi(i))),++i<l&&(d.a+=Xo);return d.a+="]",d.a}function Rvr(n){return n.e==null?n:(!n.c&&(n.c=new H1e((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function Ivr(n){return n.k!=(lr(),is)?!1:VT(new xn(null,new TE(new yr(_r(os(n).a.Kc(),new S)))),new D_t)}function ff(n){var i,l;return $e(n,307)?(l=Apr(v(n,307)),i=l,i):$e(n,441)?v(n,441).a:$e(n,59)?new V6t(n):new _Re(n)}function Nvr(n){var i;return n==null?!0:(i=n.length,i>0&&(sr(i-1,n.length),n.charCodeAt(i-1)==58)&&!L0e(n,ZP,JP))}function ILe(n,i){var l;return Ze(n)===Ze(i)?!0:$e(i,92)?(l=v(i,92),n.e==l.e&&n.d==l.d&&tpr(n,l.a)):!1}function zk(n){switch(Bt(),n.g){case 4:return or;case 1:return gr;case 3:return Mr;case 2:return cr;default:return lc}}function Ovr(n){var i,l;if(n.b)return n.b;for(l=rp?null:n.d;l;){if(i=rp?null:l.b,i)return i;l=rp?null:l.d}return KR(),Sze}function NLe(n){var i,l,d;for(d=We(at(n.a.of((Ei(),jne)))),l=new me(n.a.Sf());l.a<l.c.c.length;)i=v(pe(l),695),yKt(n,i,d)}function Lvr(n){var i,l,d,g;for(i=(n.j==null&&(n.j=(p8(),g=mbe.me(n),Qwr(g))),n.j),l=0,d=i.length;l<d;++l);}function D0e(n,i){var l,d;for(d=new me(i);d.a<d.c.c.length;)l=v(pe(d),42),Lt(n.b.b,v(l.b,86)),cfe(v(l.a,194),v(l.b,86))}function Dvr(n,i,l){var d,g;for(g=n.a.b,d=g.c.length;d<l;d++)EE(g,0,new Xc(n.a));po(i,v(Yt(g,g.c.length-l),30)),n.b[i.p]=l}function Mvr(n,i,l,d,g){Sd(),C0(m0(g0(p0(b0(new Bf,0),g.d.e-n),i),g.d)),C0(m0(g0(p0(b0(new Bf,0),l-g.a.e),g.a),d))}function Fzt(n,i){var l;return n.d?Tu(n.b,i)?v(br(n.b,i),47):(l=i.dg(),Ni(n.b,i,l),l):i.dg()}function Pvr(n){var i=n.e;function l(d){return!d||d.length==0?"":"	"+d.join(`
	`)}return i&&(i.stack||l(n[Rpe]))}function OLe(n,i){switch(i){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return O9e(n,i)}function $zt(n){switch(n.g){case 0:return new hxt;case 1:return new pxt;default:throw _e(new ar(Age+(n.f!=null?n.f:""+n.g)))}}function Bvr(n){switch(n.g){case 0:return new dxt;case 1:return new fxt;default:throw _e(new ar(fme+(n.f!=null?n.f:""+n.g)))}}function Fvr(n){switch(n.g){case 1:return new ixt;case 2:return new TNt;default:throw _e(new ar(fme+(n.f!=null?n.f:""+n.g)))}}function Uzt(n){switch(n.g){case 0:return new W7e;case 1:return new w6t;default:throw _e(new ar(Cee+(n.f!=null?n.f:""+n.g)))}}function M0e(){qDe();var n,i,l;l=M8r+++Date.now(),n=Ps(u.Math.floor(l*GG))&GJ,i=Ps(l-n*fBe),this.a=n^1502,this.b=i^tge}function pf(){pf=z,Mq=new SU(og,0),lP=new SU("FIRST",1),u2=new SU(oQt,2),cP=new SU("LAST",3),Y4=new SU(lQt,4)}function LZ(){LZ=z,B2e=new fX(f$e,0),uKe=new fX("GROUP_DEC",1),dKe=new fX("GROUP_MIXED",2),hKe=new fX("GROUP_INC",3)}function $vr(n,i){var l,d,g,y;i&&(g=Wm(i,"x"),l=new ykt(n),T8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new _kt(n),A8(d.a,(hr(y),y)))}function Uvr(n,i){var l,d,g,y;i&&(g=Wm(i,"x"),l=new Ekt(n),S8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new xkt(n),C8(d.a,(hr(y),y)))}function zvr(n,i){var l,d,g,y;for(g=new gu(i.gc()),d=i.Kc();d.Ob();)l=d.Pb(),y=Z1e(n,v(l,58)),y&&jn(g.c,y);return g}function f4(n,i,l){var d,g;for(g=n.Kc();g.Ob();)if(d=g.Pb(),Ze(i)===Ze(d)||i!=null&&Yi(i,d))return l&&g.Qb(),!0;return!1}function zzt(n){var i,l,d;return l=n.jh(),l?(i=n.Eh(),$e(i,167)&&(d=zzt(v(i,167)),d!=null)?d+"."+l:l):null}function Gvr(n){var i,l,d;return n.e==0?0:(i=n.d<<5,l=n.a[n.d-1],n.e<0&&(d=Y$t(n),d==n.d-1&&(--l,l=l|0)),i-=gG(l),i)}function qvr(n){var i,l,d;return n<Jee.length?Jee[n]:(l=n>>5,i=n&31,d=st(Wr,vi,28,l+1,15,1),d[l]=1<<i,new T_(1,l+1,d))}function Gzt(n,i){var l,d;if(i){for(l=0;l<n.i;++l)if(d=v(n.g[l],378),d.mj(i))return!1;return Yr(n,i)}else return!1}function LLe(n,i,l){var d,g;if(++n.j,l.dc())return!1;for(g=l.Kc();g.Ob();)d=g.Pb(),n.qj(i,n.Zi(i,d)),++i;return!0}function Hvr(n,i,l,d){var g,y;if(y=l-i,y<3)for(;y<3;)n*=10,++y;else{for(g=1;y>3;)g*=10,--y;n=(n+(g>>1))/g|0}return d.i=n,!0}function Ma(n,i){var l,d,g;if(l=(n.i==null&&tg(n),n.i),d=i.Lj(),d!=-1){for(g=l.length;d<g;++d)if(l[d]==i)return d}return-1}function Vvr(n){var i,l,d,g,y;for(l=v(n.g,689),d=n.i-1;d>=0;--d)for(i=l[d],g=0;g<d;++g)if(y=l[g],Wjt(n,i,y)){Vk(n,d);break}}function DLe(n){var i,l,d,g;for(i=new p_,g=new LR(n.b.Kc());g.b.Ob();)d=v(g.b.Pb(),701),l=oSr(d),jhr(i,i.a.length,l);return i.a}function MLe(n){var i;return!n.c&&(n.c=new pr),us(n.d,new Zr),H5r(n),i=M5r(n),ts(new xn(null,new Nn(n.d,16)),new X5t(n)),i}function Yvr(n,i){i.Ug("End label post-processing",1),ts(Ki(ic(new xn(null,new Nn(n.b,16)),new Xyt),new Qyt),new Zyt),i.Vg()}function PLe(n){P0e(),this.c=H1(Te(xe(eIr,1),Yn,845,0,[dsn])),this.b=new Br,this.a=n,Ni(this.b,fne,1),Cu(fsn,new XAt(this))}function qzt(n,i,l){i$t(),m6t.call(this),this.a=E_(ltn,[kt,SBe],[603,217],0,[rte,Obe],2),this.c=new fk,this.g=n,this.f=i,this.d=l}function BLe(n,i){this.n=E_(C2,[kt,Xpe],[376,28],14,[i,Ps(u.Math.ceil(n/32))],2),this.o=n,this.p=i,this.j=n-1>>1,this.k=i-1>>1}function jvr(n){GQ(),v(n.of((Ei(),g2)),181).Hc((qh(),ere))&&(v(n.of(a3),181).Fc((Ah(),L6)),v(n.of(g2),181).Mc(ere))}function Hzt(n){var i,l;i=n.d==(jk(),XI),l=DDe(n),i&&!l||!i&&l?_t(n.a,(qt(),fg),(qg(),nH)):_t(n.a,(qt(),fg),(qg(),tH))}function P0e(){P0e=z,HK(),fne=(qt(),Sx),fsn=H1(Te(xe(g2e,1),d$e,149,0,[Fq,O0,U5,xx,J4,Zye,uN,hN,Jye,pP,$5,dw,z5]))}function Wvr(n,i){var l;return l=v(Wl(n,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),l.Qc(h9t(l.gc()))}function Vzt(n,i){var l,d;if(d=new MR(n.a.ad(i,!0)),d.a.gc()<=1)throw _e(new ZA);return l=d.a.ec().Kc(),l.Pb(),v(l.Pb(),40)}function Kvr(n,i,l){var d,g;return d=We(n.p[i.i.p])+We(n.d[i.i.p])+i.n.b+i.a.b,g=We(n.p[l.i.p])+We(n.d[l.i.p])+l.n.b+l.a.b,g-d}function FLe(n,i){var l;return n.i>0&&(i.length<n.i&&(l=Iz(cd(i).c,n.i),i=l),Gc(n.g,0,i,0,n.i)),i.length>n.i&&Ga(i,n.i,null),i}function DZ(n){var i;return n.Db&64?PD(n):(i=new Ff(PD(n)),i.a+=" (instanceClassName: ",bl(i,n.D),i.a+=")",i.a)}function MZ(n){var i,l,d,g;for(g=0,l=0,d=n.length;l<d;l++)i=(sr(l,n.length),n.charCodeAt(l)),i<64&&(g=s1(g,w0(1,i)));return g}function Xvr(n,i,l){var d,g;for(d=Us(l,ul),g=0;Oc(d,0)!=0&&g<i;g++)d=zo(d,Us(n[g],ul)),n[g]=ti(d),d=xE(d,32);return ti(d)}function Qz(n,i){var l,d,g,y;for(y=Iu(n.e.Dh(),i),l=v(n.g,124),g=0;g<n.i;++g)if(d=l[g],y.am(d.Lk()))return!1;return!0}function B0e(n,i){var l,d,g;return n.f>0?(n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=tYt(n,g,d,i),l!=-1):!1}function Yzt(n,i){var l,d;n.a=zo(n.a,1),n.c=u.Math.min(n.c,i),n.b=u.Math.max(n.b,i),n.d+=i,l=i-n.f,d=n.e+l,n.f=d-n.e-l,n.e=d}function $Le(n,i){switch(i){case 3:BE(n,0);return;case 4:FE(n,0);return;case 5:Au(n,0);return;case 6:ku(n,0);return}cLe(n,i)}function VE(n,i){switch(i.g){case 1:return vk(n.j,(hh(),CGe));case 2:return vk(n.j,(hh(),kGe));default:return Fn(),Fn(),Zo}}function ULe(n){CE();var i;switch(i=n.Pc(),i.length){case 0:return hbe;case 1:return new mde(ni(i[0]));default:return new Qde(pvr(i))}}function jzt(n,i){n.Xj();try{n.d.bd(n.e++,i),n.f=n.d.j,n.g=-1}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}}function F0e(){F0e=z,W2e=new GSt,MKe=new qSt,PKe=new HSt,BKe=new VSt,FKe=new YSt,$Ke=new jSt,UKe=new WSt,zKe=new KSt,GKe=new XSt}function PZ(n,i){c8e();var l,d;return l=HU((IK(),IK(),jM)),d=null,i==l&&(d=v(Qc(ZUe,n),624)),d||(d=new dLt(n),i==l&&Cl(ZUe,n,d)),d}function Wzt(n){g4();var i;return(n.q?n.q:(Fn(),Fn(),Jg))._b((qt(),wx))?i=v(oe(n,wx),203):i=v(oe(So(n),fP),203),i}function p4(n,i){var l,d;return d=null,ya(n,(qt(),hne))&&(l=v(oe(n,hne),96),l.pf(i)&&(d=l.of(i))),d==null&&(d=oe(So(n),i)),d}function Kzt(n,i){var l,d,g;return $e(i,44)?(l=v(i,44),d=l.ld(),g=d4(n.Rc(),d),Wp(g,l.md())&&(g!=null||n.Rc()._b(d))):!1}function h1(n,i){var l,d,g;return n.f>0&&(n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=TMe(n,g,d,i),l)?l.md():null}function bu(n,i,l){var d,g,y;return n.Pj()?(d=n.i,y=n.Qj(),Yz(n,d,i),g=n.Ij(3,null,i,d,y),l?l.nj(g):l=g):Yz(n,n.i,i),l}function Qvr(n,i,l){var d,g;return d=new Vm(n.e,4,10,(g=i.c,$e(g,90)?v(g,29):(Pn(),n0)),null,uy(n,i),!1),l?l.nj(d):l=d,l}function Zvr(n,i,l){var d,g;return d=new Vm(n.e,3,10,null,(g=i.c,$e(g,90)?v(g,29):(Pn(),n0)),uy(n,i),!1),l?l.nj(d):l=d,l}function Xzt(n){WS();var i;return i=new Wo(v(n.e.of((Ei(),tC)),8)),n.B.Hc((qh(),TN))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),i}function Yv(n){eg();var i,l;return l=ti(n),i=ti(Dv(n,32)),i!=0?new iMt(l,i):l>10||l<0?new qm(1,l):Pen[l]}function Zz(n,i){var l;return jl(n)&&jl(i)&&(l=n%i,$G<l&&l<j_)?l:zv(($Pe(jl(n)?Uf(n):n,jl(i)?Uf(i):i,!0),i2))}function zD(n,i){var l;$7r(i),l=v(oe(n,(qt(),ine)),283),l&&_t(n,ine,twr(l)),jb(n.c),jb(n.f),LOe(n.d),LOe(v(oe(n,lne),214))}function Jvr(n){var i,l,d,g;for(d=NSr(n),us(d,trn),g=n.d,g.c.length=0,l=new me(d);l.a<l.c.c.length;)i=v(pe(l),466),xs(g,i.b)}function $0e(n){var i;n.c!=0&&(i=v(Yt(n.a,n.b),294),i.b==1?(++n.b,n.b<n.a.c.length&&_5t(v(Yt(n.a,n.b),294))):--i.b,--n.c)}function e2r(n){var i;i=n.a;do i=v(Rr(new yr(_r(os(i).a.Kc(),new S))),18).d.i,i.k==(lr(),Ws)&&Lt(n.e,i);while(i.k==(lr(),Ws))}function Qzt(n){this.e=st(Wr,vi,28,n.length,15,1),this.c=st(Wh,Qg,28,n.length,16,1),this.b=st(Wh,Qg,28,n.length,16,1),this.f=0}function t2r(n){var i,l;for(n.j=st(ao,_l,28,n.p.c.length,15,1),l=new me(n.p);l.a<l.c.c.length;)i=v(pe(l),10),n.j[i.p]=i.o.b/n.i}function n2r(n,i){var l,d,g,y;for(y=i.b.b,n.a=new Ea,n.b=st(Wr,vi,28,y,15,1),l=0,g=Ur(i.b,0);g.b!=g.d.c;)d=v(Fr(g),40),d.g=l++}function Zzt(n,i,l){var d,g,y,x;for(y=i-n.e,x=l-n.f,g=new me(n.a);g.a<g.c.c.length;)d=v(pe(g),172),nG(d,d.s+y,d.t+x);n.e=i,n.f=l}function Jz(n,i){var l,d;for(d=i.length,l=0;l<d;l+=2)Jc(n,(sr(l,i.length),i.charCodeAt(l)),(sr(l+1,i.length),i.charCodeAt(l+1)))}function r2r(n,i){i.Ug("Min Size Postprocessing",1),sa(n,(Vg(),r3),u.Math.max(We(at(Et(n,r3))),We(at(Et(n,IP))))),i.Vg()}function zLe(){zLe=z,iKe=new bE(15),Eun=new fo((Ei(),Ty),iKe),Sun=new fo(bw,15),xun=new fo(N2e,Nt(0)),wun=new fo(X5,kI)}function ud(){ud=z,mH=new dX("PORTS",0),vw=new dX("PORT_LABELS",1),gH=new dX("NODE_LABELS",2),o3=new dX("MINIMUM_SIZE",3)}function BZ(){BZ=z,Xq=new Che("P1_WIDTH_APPROXIMATION",0),Lne=new Che("P2_PACKING",1),jve=new Che("P3_WHITESPACE_ELIMINATION",2)}function Jzt(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!v(n.b,54).Jh())return!0;return n.b=null,!1}else return!0}function Q8(n,i,l){var d,g,y;for(g=null,y=n.b;y;){if(d=n.a.Ne(i,y.d),l&&d==0)return y;d>=0?y=y.a[1]:(g=y,y=y.a[0])}return g}function eG(n,i,l){var d,g,y;for(g=null,y=n.b;y;){if(d=n.a.Ne(i,y.d),l&&d==0)return y;d<=0?y=y.a[0]:(g=y,y=y.a[1])}return g}function i2r(n,i,l,d){var g,y,x;return g=!1,o7r(n.f,l,d)&&(C2r(n.f,n.a[i][l],n.a[i][d]),y=n.a[i],x=y[d],y[d]=y[l],y[l]=x,g=!0),g}function eGt(n,i,l){var d,g,y,x;for(g=v(br(n.b,l),183),d=0,x=new me(i.j);x.a<x.c.c.length;)y=v(pe(x),113),g[y.d.p]&&++d;return d}function GLe(n,i,l){var d,g;d=v(Qc(kN,i),122),g=v(Qc(aB,i),122),l?(Cl(kN,n,d),Cl(aB,n,g)):(Cl(aB,n,d),Cl(kN,n,g))}function tGt(n,i){var l,d,g,y;return l=i>>5,i&=31,g=n.d+l+(i==0?0:1),d=st(Wr,vi,28,g,15,1),nxr(d,n.a,l,i),y=new T_(n.e,g,d),gD(y),y}function a2r(n,i){var l,d,g;for(d=new yr(_r(os(n).a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),g=l.d.i,g.c==i)return!1;return!0}function qLe(n,i,l){var d,g,y,x,T;return x=n.k,T=i.k,d=l[x.g][T.g],g=at(p4(n,d)),y=at(p4(i,d)),u.Math.max((hr(g),g),(hr(y),y))}function s2r(){return Error.stackTraceLimit>0?(u.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function o2r(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:n<i?-1:n>i?1:mE(isNaN(n),isNaN(i)))>0}function HLe(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:n<i?-1:n>i?1:mE(isNaN(n),isNaN(i)))<0}function nGt(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:n<i?-1:n>i?1:mE(isNaN(n),isNaN(i)))<=0}function U0e(n,i){for(var l=0;!i[l]||i[l]=="";)l++;for(var d=i[l++];l<i.length;l++)!i[l]||i[l]==""||(d+=n+i[l]);return d}function rGt(n){var i,l;return i=v(rr(n.a,4),129),i!=null?(l=st(H2e,jme,424,i.length,0,1),Gc(i,0,l,0,i.length),l):Yun}function iGt(n){var i,l,d,g,y;if(n==null)return null;for(y=new Ot,l=p0e(n),d=0,g=l.length;d<g;++d)i=l[d],Lt(y,eu(i,!0));return y}function aGt(n){var i,l,d,g,y;if(n==null)return null;for(y=new Ot,l=p0e(n),d=0,g=l.length;d<g;++d)i=l[d],Lt(y,eu(i,!0));return y}function sGt(n){var i,l,d,g,y;if(n==null)return null;for(y=new Ot,l=p0e(n),d=0,g=l.length;d<g;++d)i=l[d],Lt(y,eu(i,!0));return y}function oGt(n,i){var l,d,g;if(n.c)BE(n.c,i);else for(l=i-od(n),g=new me(n.a);g.a<g.c.c.length;)d=v(pe(g),163),oGt(d,od(d)+l)}function lGt(n,i){var l,d,g;if(n.c)FE(n.c,i);else for(l=i-lh(n),g=new me(n.d);g.a<g.c.c.length;)d=v(pe(g),163),lGt(d,lh(d)+l)}function Qp(n,i,l){var d,g,y,x;for(y=i+l,mo(i,y,n.length),x="",g=i;g<y;)d=u.Math.min(g+1e4,y),x+=xdr(n.slice(g,d)),g=d;return x}function VLe(n){switch(n.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 ly(){ly=z,yye=new xU(WBe,0),wqe=new xU(uQt,1),vye=new xU(Ige,2),eN=new xU(VBe,3),JI=new xU("GREEDY_MODEL_ORDER",4)}function Zp(){Zp=z,wy=new sX(og,0),IVe=new sX("NODES_AND_EDGES",1),uve=new sX("PREFER_EDGES",2),hve=new sX("PREFER_NODES",3)}function YLe(n,i,l,d,g,y){this.a=n,this.c=i,this.b=l,this.f=d,this.d=g,this.e=y,this.c>0&&this.b>0&&(this.g=KX(this.c,this.b,this.a))}function l2r(n,i){var l=n.a,d;i=String(i),l.hasOwnProperty(i)&&(d=l[i]);var g=(l0e(),bbe)[typeof d],y=g?g(d):iLe(typeof d);return y}function Z8(n){var i,l,d;if(d=null,i=ug in n.a,l=!i,l)throw _e(new zp("Every element must have an id."));return d=Wk(Um(n,ug)),d}function YE(n){var i,l;for(l=kHt(n),i=null;n.c==2;)$i(n),i||(i=(zi(),zi(),new jL(2)),V_(i,l),l=i),l.Jm(kHt(n));return l}function FZ(n,i){var l,d,g;return n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=TMe(n,g,d,i),l?(u$t(n,l),l.md()):null}function cGt(n,i){return n.e>i.e?1:n.e<i.e?-1:n.d>i.d?n.e:n.d<i.d?-i.e:n.e*J9e(n.a,i.a,n.d)}function uGt(n){return n>=48&&n<48+u.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function c2r(n,i){if(i.c==n)return i.d;if(i.d==n)return i.c;throw _e(new ar("Input edge is not connected to the input port."))}function u2r(n){if(UZ(BI,n))return Qn(),HI;if(UZ(Ame,n))return Qn(),a2;throw _e(new ar("Expecting true or false"))}function jLe(n){switch(typeof n){case Epe:return ry(n);case nBe:return dk(n);case Zk:return HNt(n);default:return n==null?0:vE(n)}}function Jp(n,i){if(n.a<0)throw _e(new Tl("Did not call before(...) or after(...) before calling add(...)."));return z8e(n,n.a,i),n}function WLe(n){return TQ(),$e(n,162)?v(br(EH,zen),295).Rg(n):Tu(EH,cd(n))?v(br(EH,cd(n)),295).Rg(n):null}function Ru(n){var i,l;return n.Db&32||(l=(i=v(rr(n,16),29),kr(i||n.ii())-kr(n.ii())),l!=0&&Gk(n,32,st(zs,Yn,1,l,5,1))),n}function Gk(n,i,l){var d;n.Db&i?l==null?j4r(n,i):(d=o1e(n,i),d==-1?n.Eb=l:Ga(L_(n.Eb),d,l)):l!=null&&m5r(n,i,l)}function h2r(n,i,l,d){var g,y;i.c.length!=0&&(g=sTr(l,d),y=o4r(i),ts(JQ(new xn(null,new Nn(y,1)),new Kwt),new zLt(n,l,g,d)))}function d2r(n,i){var l,d,g,y;return d=n.a.length-1,l=i-n.b&d,y=n.c-i&d,g=n.c-n.b&d,$Nt(l<g),l>=y?(uyr(n,i),-1):(cyr(n,i),1)}function $Z(n){var i,l,d;if(d=n.Jh(),!d)for(i=0,l=n.Ph();l;l=l.Ph()){if(++i>Qpe)return l.Qh();if(d=l.Jh(),d||l==n)break}return d}function hGt(n,i){var l;return Ze(i)===Ze(n)?!0:!$e(i,21)||(l=v(i,21),l.gc()!=n.gc())?!1:n.Ic(l)}function f2r(n,i){return n.e<i.e?-1:n.e>i.e?1:n.f<i.f?-1:n.f>i.f?1:ma(n)-ma(i)}function UZ(n,i){return hr(n),i==null?!1:An(n,i)?!0:n.length==i.length&&An(n.toLowerCase(),i.toLowerCase())}function Zm(n){var i,l;return Oc(n,-129)>0&&Oc(n,128)<0?(g9t(),i=ti(n)+128,l=oze[i],!l&&(l=oze[i]=new c7e(n)),l):new c7e(n)}function z_(){z_=z,z4=new nX(og,0),wGe=new nX("INSIDE_PORT_SIDE_GROUPS",1),Qbe=new nX("GROUP_MODEL_ORDER",2),Zbe=new nX(VBe,3)}function p2r(n){var i;return n.b||aar(n,(i=slr(n.e,n.a),!i||!An(Ame,h1((!i.b&&(i.b=new sd((Pn(),nl),_c,i)),i.b),"qualified")))),n.c}function g2r(n,i){var l,d;for(l=(sr(i,n.length),n.charCodeAt(i)),d=i+1;d<n.length&&(sr(d,n.length),n.charCodeAt(d)==l);)++d;return d-i}function m2r(n,i){(!i&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,n)}function b2r(n,i,l,d){d==n,v(l.b,68),v(l.b,68),v(d.b,68),v(d.b,68).c.b,POe(d,i,n)}function y2r(n){var i,l;for(i=new me(n.g);i.a<i.c.c.length;)v(pe(i),568);l=new CYt(n.g,We(n.a),n.c),Y7r(l),n.g=l.b,n.d=l.a}function dGt(n,i,l){var d,g,y;for(y=new me(l.a);y.a<y.c.c.length;)g=v(pe(y),225),d=new xX(v(br(n.a,g.b),68)),Lt(i.a,d),dGt(n,d,g)}function v2r(n,i,l){var d,g,y;return d=v(ze(Uh(n.a),i),89),y=(g=d.c,g||(Pn(),dp)),(y.Vh()?Hv(n.b,v(y,54)):y)==l?kJ(d):x8(d,l),y}function KLe(n,i,l){i.b=u.Math.max(i.b,-l.a),i.c=u.Math.max(i.c,l.a-n.a),i.d=u.Math.max(i.d,-l.b),i.a=u.Math.max(i.a,l.b-n.b)}function XLe(n,i,l){this.c=n,this.f=new Ot,this.e=new ho,this.j=new QIe,this.n=new QIe,this.b=i,this.g=new rf(i.c,i.d,i.b,i.a),this.a=l}function z0e(n){var i,l,d,g;for(this.a=new Hp,this.d=new fs,this.e=0,l=n,d=0,g=l.length;d<g;++d)i=l[d],!this.f&&(this.f=i),cfe(this,i)}function fGt(n){eg(),n.length==0?(this.e=0,this.d=1,this.a=Te(xe(Wr,1),vi,28,15,[0])):(this.e=1,this.d=n.length,this.a=n,gD(this))}function GD(n,i,l){m6t.call(this),this.a=st(ltn,SBe,217,(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])).length,0,1),this.b=n,this.d=i,this.c=l}function _2r(n){var i,l,d,g,y,x;for(x=v(oe(n,(At(),Ji)),12),_t(x,aN,n.i.n.b),i=Xp(n.e),d=i,g=0,y=d.length;g<y;++g)l=d[g],lo(l,x)}function w2r(n){var i,l,d,g,y,x;for(l=v(oe(n,(At(),Ji)),12),_t(l,aN,n.i.n.b),i=Xp(n.g),g=i,y=0,x=g.length;y<x;++y)d=g[y],Uo(d,l)}function E2r(n,i){nfe();var l,d;for(d=new yr(_r(Qm(n).a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),l.d.i==i||l.c.i==i)return l;return null}function pGt(n,i){var l,d;return l=i.qi(n.a),l&&(d=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Mi)),d!=null)?d:i.xe()}function x2r(n,i){var l,d;return l=i.qi(n.a),l&&(d=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Mi)),d!=null)?d:i.xe()}function S2r(n,i){var l,d;return l=Nc(n.a.c.p,i.a.c.p),l!=0?l:(d=Nc(n.a.d.i.p,i.a.d.i.p),d!=0?d:Nc(i.a.d.p,n.a.d.p))}function T2r(n,i){var l,d,g,y;for(d=0,g=i.gc();d<g;++d)l=i.Tl(d),$e(l,102)&&v(l,19).Bb&Sc&&(y=i.Ul(d),y!=null&&Z1e(n,v(y,58)))}function gGt(n,i){var l,d,g;if(Lt(lte,n),i.Fc(n),l=v(br(Ube,n),21),l)for(g=l.Kc();g.Ob();)d=v(g.Pb(),27),$l(lte,d,0)!=-1||gGt(d,i)}function C2r(n,i,l){var d,g;x1e(n.e,i,l,(Bt(),cr)),x1e(n.i,i,l,gr),n.a&&(g=v(oe(i,(At(),Ji)),12),d=v(oe(l,Ji),12),lfe(n.g,g,d))}function mGt(n,i,l){var d,g,y;d=i.c.p,y=i.p,n.b[d][y]=new cDt(n,i),l&&(n.a[d][y]=new JCt(i),g=v(oe(i,(At(),mx)),10),g&&Rn(n.d,g,i))}function A2r(n,i,l){var d,g,y,x;return y=i.j,x=l.j,y!=x?y.g-x.g:(d=n.f[i.p],g=n.f[l.p],d==0&&g==0?0:d==0?-1:g==0?1:ha(d,g))}function k2r(){var n;return Kee!=0&&(n=Date.now(),n-Cen>2e3&&(Cen=n,Xee=u.setTimeout(uar,10))),Kee++==0?(kgr((tRe(),QUe)),!0):!1}function R2r(n,i,l){var d;(Wen?(Ovr(n),!0):Ken||Qen?(KR(),!0):Xen&&(KR(),!1))&&(d=new kOt(i),d.b=l,Bxr(n,d))}function G0e(n,i){var l;l=!n.A.Hc((ud(),vw))||n.q==(co(),su),n.u.Hc((Ah(),ub))?l?yRr(n,i):sKt(n,i):n.u.Hc(v2)&&(l?F7r(n,i):wKt(n,i))}function bGt(n){var i;Ze(Et(n,(Ei(),J5)))===Ze((Km(),Xne))&&(Aa(n)?(i=v(Et(Aa(n),J5),346),sa(n,J5,i)):sa(n,J5,qP))}function I2r(n){var i,l;return ya(n.d.i,(qt(),oN))?(i=v(oe(n.c.i,oN),17),l=v(oe(n.d.i,oN),17),Nc(i.a,l.a)>0):!1}function yGt(n,i,l){return new rf(u.Math.min(n.a,i.a)-l/2,u.Math.min(n.b,i.b)-l/2,u.Math.abs(n.a-i.a)+l,u.Math.abs(n.b-i.b)+l)}function vGt(n){var i;this.d=new Ot,this.j=new ho,this.g=new ho,i=n.g.b,this.f=v(oe(So(i),(qt(),Pd)),88),this.e=We(at(HZ(i,J4)))}function _Gt(n){this.d=new Ot,this.e=new Zb,this.c=st(Wr,vi,28,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,15,1),this.b=n}function QLe(n,i,l){var d;switch(d=l[n.g][i],n.g){case 1:case 3:return new Ct(0,d);case 2:case 4:return new Ct(d,0);default:return null}}function wGt(n,i,l){var d,g;g=v(sz(i.f),205);try{g.rf(n,l),CLt(i.f,g)}catch(y){throw y=Da(y),$e(y,103)?(d=y,_e(d)):_e(y)}}function EGt(n,i,l){var d,g,y,x,T,R;return d=null,T=GPe(R8(),i),y=null,T&&(g=null,R=UPe(T,l),x=null,R!=null&&(x=n.qf(T,R)),g=x,y=g),d=y,d}function q0e(n,i,l,d){var g;if(g=n.length,i>=g)return g;for(i=i>0?i:0;i<g&&!o0e((sr(i,n.length),n.charCodeAt(i)),l,d);i++);return i}function X1(n,i){var l,d;for(d=n.c.length,i.length<d&&(i=LK(new Array(d),i)),l=0;l<d;++l)Ga(i,l,n.c[l]);return i.length>d&&Ga(i,d,null),i}function xGt(n,i){var l,d;for(d=n.a.length,i.length<d&&(i=LK(new Array(d),i)),l=0;l<d;++l)Ga(i,l,n.a[l]);return i.length>d&&Ga(i,d,null),i}function J8(n,i){var l,d;if(++n.j,i!=null&&(l=(d=n.a.Cb,$e(d,99)?v(d,99).th():null),M4r(i,l))){Gk(n.a,4,l);return}Gk(n.a,4,v(i,129))}function N2r(n){var i;if(n==null)return null;if(i=P3r(eu(n,!0)),i==null)throw _e(new Gue("Invalid hexBinary value: '"+n+"'"));return i}function zZ(n,i,l){var d;i.a.length>0&&(Lt(n.b,new HOt(i.a,l)),d=i.a.length,0<d?i.a=af(i.a,0,0):0>d&&(i.a+=YIt(st(Tf,rg,28,-d,15,1))))}function SGt(n,i,l){var d,g,y;if(!l[i.d])for(l[i.d]=!0,g=new me(XT(i));g.a<g.c.c.length;)d=v(pe(g),218),y=OZ(d,i),SGt(n,y,l)}function cy(n,i,l){var d,g,y;return g=v(br(n.e,i),400),g?(y=iIe(g,l),WIt(n,g),y):(d=new LIe(n,i,l),Ni(n.e,i,d),_Dt(d),null)}function O2r(n,i,l,d){var g,y,x;return g=new Vm(n.e,1,13,(x=i.c,x||(Pn(),dp)),(y=l.c,y||(Pn(),dp)),uy(n,i),!1),d?d.nj(g):d=g,d}function H0e(){return FJ(),Te(xe(Mtn,1),wt,164,0,[Ltn,Otn,Dtn,Stn,xtn,Ttn,ktn,Atn,Ctn,Ntn,Itn,Rtn,wtn,_tn,Etn,ytn,btn,vtn,gtn,ptn,mtn,Lbe])}function eI(n){switch(n.g){case 4:return new Ct(0,-1);case 1:return new Ct(1,0);case 2:return new Ct(-1,0);default:return new Ct(0,1)}}function V0e(n){switch(n.g){case 1:return ys(),Ef;case 4:return ys(),Ol;case 2:return ys(),ql;case 3:return ys(),lp}return ys(),cp}function L2r(n){var i;switch(i=n.hj(null),i){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function d1(){d1=z,Hn=new IU("PARENTS",0),Fs=new IU("NODES",1),mg=new IU("EDGES",2),pw=new IU("PORTS",3),Sy=new IU("LABELS",4)}function D2r(n,i,l){var d;switch(d=l.q.getFullYear()-Jv+Jv,d<0&&(d=-d),i){case 1:n.a+=d;break;case 2:Gg(n,d%100,2);break;default:Gg(n,d,i)}}function Ur(n,i){var l,d;if(n4(i,n.b),i>=n.b>>1)for(d=n.c,l=n.b;l>i;--l)d=d.b;else for(d=n.a.a,l=0;l<i;++l)d=d.a;return new AOt(n,i,d)}function GZ(){GZ=z,Rbe=new ORe("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),Cze=new ORe("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function TGt(n){this.b=new Ot,this.e=new Ot,this.d=n,this.a=!VR(Ki(new xn(null,new TE(new V1(n.b))),new PR(new M_t))).Bd((w_(),p6))}function CGt(n,i){var l,d,g,y;for(l=0,g=new me(i.a);g.a<g.c.c.length;)d=v(pe(g),10),y=d.o.a+d.d.c+d.d.b+n.j,l=u.Math.max(l,y);return l}function AGt(n,i){var l,d,g;g=i.d.i,d=g.k,!(d==(lr(),is)||d==ip)&&(l=new yr(_r(os(g).a.Kc(),new S)),zr(l)&&Ni(n.k,i,v(Rr(l),18)))}function M2r(n,i){return jm(),ha((n.a.b==0?new Ct(n.c.e.a,n.c.e.b):v(e8(n.a),8)).b,(i.a.b==0?new Ct(i.c.e.a,i.c.e.b):v(e8(i.a),8)).b)}function P2r(n,i){return jm(),ha((n.a.b==0?new Ct(n.c.e.a,n.c.e.b):v(e8(n.a),8)).a,(i.a.b==0?new Ct(i.c.e.a,i.c.e.b):v(e8(i.a),8)).a)}function B2r(n,i){return jm(),ha((n.a.b==0?new Ct(n.b.e.a,n.b.e.b):v(y0(n.a),8)).a,(i.a.b==0?new Ct(i.b.e.a,i.b.e.b):v(y0(i.a),8)).a)}function F2r(n,i){return jm(),ha((n.a.b==0?new Ct(n.b.e.a,n.b.e.b):v(y0(n.a),8)).b,(i.a.b==0?new Ct(i.b.e.a,i.b.e.b):v(y0(i.a),8)).b)}function ZT(){ZT=z,b2=new OU("DISTRIBUTED",0),fH=new OU("JUSTIFIED",1),tKe=new OU("BEGIN",2),HP=new OU(CI,3),nKe=new OU("END",4)}function Y0e(n,i){var l,d,g;return d=qn(n.Dh(),i),l=i-n.ji(),l<0?(g=n.Ih(d),g>=0?n.Wh(g):O1e(n,d)):l<0?O1e(n,d):v(d,69).wk().Bk(n,n.hi(),l)}function kGt(n){var i,l,d;for(d=(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o),l=d.c.Kc();l.e!=l.i.gc();)i=v(l.Yj(),44),i.md();return yz(d)}function zt(n){var i;if($e(n.a,4)){if(i=WLe(n.a),i==null)throw _e(new Tl(XQt+n.b+"'. "+KQt+(Fm(xH),xH.k)+rUe));return i}else return n.a}function $2r(n,i){var l,d;if(n.j.length!=i.j.length)return!1;for(l=0,d=n.j.length;l<d;l++)if(!An(n.j[l],i.j[l]))return!1;return!0}function wr(n){var i;try{return i=n.i.Xb(n.e),n.Xj(),n.g=n.e++,i}catch(l){throw l=Da(l),$e(l,77)?(n.Xj(),_e(new ec)):_e(l)}}function j0e(n){var i;try{return i=n.c.Vi(n.e),n.Xj(),n.g=n.e++,i}catch(l){throw l=Da(l),$e(l,77)?(n.Xj(),_e(new ec)):_e(l)}}function qZ(n){var i,l,d,g;for(g=0,l=0,d=n.length;l<d;l++)i=(sr(l,n.length),n.charCodeAt(l)),i>=64&&i<128&&(g=s1(g,w0(1,i-64)));return g}function HZ(n,i){var l,d;return d=null,ya(n,(Ei(),I6))&&(l=v(oe(n,I6),96),l.pf(i)&&(d=l.of(i))),d==null&&So(n)&&(d=oe(So(n),i)),d}function U2r(n,i){var l;return l=v(oe(n,(qt(),Nl)),75),qhe(i,Knn)?l?xd(l):(l=new ah,_t(n,Nl,l)):l&&_t(n,Nl,null),l}function qD(){qD=z,tGe=(Ei(),OWe),Fbe=dWe,Wtn=X5,eGe=Ty,Ztn=(nJ(),Lze),Qtn=Nze,Jtn=Mze,Xtn=Ize,Ktn=(v0e(),Qze),Bbe=Vtn,Jze=Ytn,ote=jtn}function VZ(n){switch(SRe(),this.c=new Ot,this.d=n,n.g){case 0:case 2:this.a=ONe(_Ge),this.b=ka;break;case 3:case 1:this.a=_Ge,this.b=Ss}}function z2r(n){var i;yk(v(oe(n,(qt(),Qa)),101))&&(i=n.b,mVt(($n(0,i.c.length),v(i.c[0],30))),mVt(v(Yt(i,i.c.length-1),30)))}function G2r(n,i){i.Ug("Self-Loop post-processing",1),ts(Ki(Ki(ic(new xn(null,new Nn(n.b,16)),new S2t),new T2t),new C2t),new A2t),i.Vg()}function RGt(n,i,l){var d,g;if(n.c)Au(n.c,n.c.i+i),ku(n.c,n.c.j+l);else for(g=new me(n.b);g.a<g.c.c.length;)d=v(pe(g),163),RGt(d,i,l)}function q2r(n){var i;if(n==null)return null;if(i=kRr(eu(n,!0)),i==null)throw _e(new Gue("Invalid base64Binary value: '"+n+"'"));return i}function gf(n,i){var l;l=n.fd(i);try{return l.Pb()}catch(d){throw d=Da(d),$e(d,112)?_e(new Sl("Can't get element "+i)):_e(d)}}function IGt(n,i){var l,d,g;for(l=n.o,g=v(v(Zi(n.r,i),21),87).Kc();g.Ob();)d=v(g.Pb(),117),d.e.a=Y_r(d,l.a),d.e.b=l.b*We(at(d.b.of(ite)))}function H2r(n,i){var l,d,g;for(g=new gu(i.gc()),d=i.Kc();d.Ob();)l=v(d.Pb(),293),l.c==l.f?sI(n,l,l.c):fSr(n,l)||jn(g.c,l);return g}function NGt(n){var i;return i=new Cv,i.a+="n",n.k!=(lr(),is)&&bi(bi((i.a+="(",i),Xhe(n.k).toLowerCase()),")"),bi((i.a+="_",i),rG(n)),i.a}function V2r(n,i){var l,d,g,y;return g=n.k,l=We(at(oe(n,(At(),bx)))),y=i.k,d=We(at(oe(i,bx))),y!=(lr(),hs)?-1:g!=hs?1:l==d?0:l<d?-1:1}function Y2r(n,i){var l,d;return l=v(v(br(n.g,i.a),42).a,68),d=v(v(br(n.g,i.b),42).a,68),$v(i.a,i.b)-$v(i.a,E8e(l.b))-$v(i.b,E8e(d.b))}function OGt(n,i){var l;switch(l=v(yl(n.b,i),127).n,i.g){case 1:n.t>=0&&(l.d=n.t);break;case 3:n.t>=0&&(l.a=n.t)}n.C&&(l.b=n.C.b,l.c=n.C.c)}function HD(){HD=z,xVe=new TU(f$e,0),lve=new TU(Ige,1),cve=new TU("LINEAR_SEGMENTS",2),mP=new TU("BRANDES_KOEPF",3),bP=new TU(SQt,4)}function VD(){VD=z,wq=new eX(VJ,0),ate=new eX(uge,1),ste=new eX(hge,2),Eq=new eX(dge,3),wq.a=!1,ate.a=!0,ste.a=!1,Eq.a=!0}function qk(){qk=z,yq=new JK(VJ,0),bq=new JK(uge,1),vq=new JK(hge,2),_q=new JK(dge,3),yq.a=!1,bq.a=!0,vq.a=!1,_q.a=!0}function Hk(n,i,l,d){var g;return l>=0?n.Sh(i,l,d):(n.Ph()&&(d=(g=n.Fh(),g>=0?n.Ah(d):n.Ph().Th(n,-1-g,null,d))),n.Ch(i,l,d))}function ZLe(n,i){switch(i){case 7:!n.e&&(n.e=new Gn(ss,n,7,4)),Gr(n.e);return;case 8:!n.d&&(n.d=new Gn(ss,n,8,5)),Gr(n.d);return}$Le(n,i)}function sa(n,i,l){return l==null?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),FZ(n.o,i)):(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),sG(n.o,i,l)),n}function LGt(n,i){Fn();var l,d,g,y;for(l=n,y=i,$e(n,21)&&!$e(i,21)&&(l=i,y=n),g=l.Kc();g.Ob();)if(d=g.Pb(),y.Hc(d))return!1;return!0}function j2r(n,i,l,d){if(i.a<d.a)return!0;if(i.a==d.a){if(i.b<d.b)return!0;if(i.b==d.b&&n.b>l.b)return!0}return!1}function W0e(n,i){return ro(n)?!!ven[i]:n.Sm?!!n.Sm[i]:VS(n)?!!yen[i]:HS(n)?!!ben[i]:!1}function W2r(n){var i;i=n.a;do i=v(Rr(new yr(_r(Hs(i).a.Kc(),new S))),18).c.i,i.k==(lr(),Ws)&&n.b.Fc(i);while(i.k==(lr(),Ws));n.b=ff(n.b)}function DGt(n,i){var l,d,g;for(g=n,d=new yr(_r(Hs(i).a.Kc(),new S));zr(d);)l=v(Rr(d),18),l.c.i.c&&(g=u.Math.max(g,l.c.i.c.p));return g}function K2r(n,i){var l,d,g;for(g=0,d=v(v(Zi(n.r,i),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g+=l.d.d+l.b.Mf().b+l.d.a,d.Ob()&&(g+=n.w);return g}function X2r(n,i){var l,d,g;for(g=0,d=v(v(Zi(n.r,i),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g+=l.d.b+l.b.Mf().a+l.d.c,d.Ob()&&(g+=n.w);return g}function MGt(n){var i,l,d,g;if(d=0,g=E4(n),g.c.length==0)return 1;for(l=new me(g);l.a<l.c.c.length;)i=v(pe(l),27),d+=MGt(i);return d}function Q2r(n){var i,l,d;for(d=n.c.a,n.p=(ni(d),new Eh(d)),l=new me(d);l.a<l.c.c.length;)i=v(pe(l),10),i.p=DSr(i).a;Fn(),us(n.p,new uwt)}function Z2r(n,i,l){var d,g,y,x;return d=n.dd(i),d!=-1&&(n.Pj()?(y=n.Qj(),x=YX(n,d),g=n.Ij(4,x,null,d,y),l?l.nj(g):l=g):YX(n,d)),l}function Ko(n,i,l){var d,g,y,x;return d=n.dd(i),d!=-1&&(n.Pj()?(y=n.Qj(),x=Vk(n,d),g=n.Ij(4,x,null,d,y),l?l.nj(g):l=g):Vk(n,d)),l}function J2r(n,i,l,d){var g,y,x;l.Xh(i)&&(al(),Dfe(i)?(g=v(l.Mh(i),160),T2r(n,g)):(y=(x=i,x?v(d,54).gi(x):null),y&&Jrr(l.Mh(i),y)))}function YZ(n,i,l,d){var g,y,x;return y=qn(n.Dh(),i),g=i-n.ji(),g<0?(x=n.Ih(y),x>=0?n.Lh(x,l,!0):XE(n,y,l)):v(y,69).wk().yk(n,n.hi(),g,l,d)}function e_r(n,i,l,d){var g,y;y=i.pf((Ei(),eC))?v(i.of(eC),21):n.j,g=Fyr(y),g!=(FJ(),Lbe)&&(l&&!VLe(g)||rMe(B3r(n,g,d),i))}function t_r(n){switch(n.g){case 1:return GE(),mq;case 3:return GE(),gq;case 2:return GE(),Mbe;case 4:return GE(),Dbe;default:return null}}function n_r(n,i,l){if(n.e)switch(n.b){case 1:Ydr(n.c,i,l);break;case 0:jdr(n.c,i,l)}else nPt(n.c,i,l);n.a[i.p][l.p]=n.c.i,n.a[l.p][i.p]=n.c.e}function PGt(n){var i,l;if(n==null)return null;for(l=st(tm,kt,199,n.length,0,2),i=0;i<l.length;i++)l[i]=v(epr(n[i],n[i].length),199);return l}function jZ(n){var i;if(b0e(n))return nQ(n),n.ul()&&(i=eM(n.e,n.b,n.c,n.a,n.j),n.j=i),n.g=n.a,++n.a,++n.c,n.i=0,n.j;throw _e(new ec)}function r_r(n,i){var l,d,g,y;return y=n.o,l=n.p,y<l?y*=y:l*=l,d=y+l,y=i.o,l=i.p,y<l?y*=y:l*=l,g=y+l,d<g?-1:d==g?0:1}function uy(n,i){var l,d,g;if(g=bqt(n,i),g>=0)return g;if(n.ol()){for(d=0;d<n.i;++d)if(l=n.pl(v(n.g[d],58)),Ze(l)===Ze(i))return d}return-1}function JT(n,i,l){var d,g;if(g=n.gc(),i>=g)throw _e(new XS(i,g));if(n.Si()&&(d=n.dd(l),d>=0&&d!=i))throw _e(new ar(sq));return n.Xi(i,l)}function JLe(n,i){if(this.a=v(ni(n),253),this.b=v(ni(i),253),n.Ed(i)>0||n==(Mue(),cbe)||i==(Pue(),ube))throw _e(new ar("Invalid range: "+aPt(n,i)))}function BGt(n){var i,l;for(this.b=new Ot,this.c=n,this.a=!1,l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),10),this.a=this.a|i.k==(lr(),is)}function i_r(n,i){var l,d,g;for(l=yE(new v_,n),g=new me(i);g.a<g.c.c.length;)d=v(pe(g),125),C0(m0(g0(b0(p0(new Bf,0),0),l),d));return l}function FGt(n,i,l){l.Ug("Compound graph preprocessor",1),n.a=new OE,nKt(n,i,null),Qkr(n,i),ETr(n),_t(i,(At(),Hqe),n.a),n.a=null,xh(n.b),l.Vg()}function $Gt(n,i,l){var d,g,y;for(g=new yr(_r((i?Hs(n):os(n)).a.Kc(),new S));zr(g);)d=v(Rr(g),18),y=i?d.c.i:d.d.i,y.k==(lr(),Pc)&&po(y,l)}function a_r(n,i){var l,d,g;for(i.Ug("Untreeify",1),l=v(oe(n,(fa(),uYe)),15),g=l.Kc();g.Ob();)d=v(g.Pb(),65),pi(d.b.d,d),pi(d.c.b,d);i.Vg()}function s_r(n){var i,l,d;for(d=v(Zi(n.a,(b4(),Pte)),15).Kc();d.Ob();)l=v(d.Pb(),105),i=dDe(l),l8(n,l,i[0],(UE(),fx),0),l8(n,l,i[1],px,1)}function o_r(n){var i,l,d;for(d=v(Zi(n.a,(b4(),Bte)),15).Kc();d.Ob();)l=v(d.Pb(),105),i=dDe(l),l8(n,l,i[0],(UE(),fx),0),l8(n,l,i[1],px,1)}function g4(){g4=z,mne=new aX(og,0),sve=new aX("PORT_POSITION",1),q5=new aX("NODE_SIZE_WHERE_SPACE_PERMITS",2),G5=new aX("NODE_SIZE",3)}function WZ(){WZ=z,Wve=new Ahe("INTERACTIVE_NODE_REORDERER",0),Xve=new Ahe("MIN_SIZE_PRE_PROCESSOR",1),Kve=new Ahe("MIN_SIZE_POST_PROCESSOR",2)}function qg(){qg=z,m2e=new FL("AUTOMATIC",0),tH=new FL(r6,1),nH=new FL(i6,2),Vne=new FL("TOP",3),qne=new FL(CBe,4),Hne=new FL(CI,5)}function eDe(n,i,l,d){uI();var g,y;for(g=0,y=0;y<l;y++)g=zo(Go(Us(i[y],ul),Us(d,ul)),Us(ti(g),ul)),n[y]=ti(g),g=Dv(g,32);return ti(g)}function tDe(n,i,l){var d,g;for(g=0,d=0;d<Obe;d++)g=u.Math.max(g,w0e(n.a[i.g][d],l));return i==(u1(),vu)&&n.b&&(g=u.Math.max(g,n.b.b)),g}function KZ(n,i){var l,d;if(j8e(i>0),(i&-i)==i)return Ps(i*Gh(n,31)*4656612873077393e-25);do l=Gh(n,31),d=l%i;while(l-d+(i-1)<0);return Ps(d)}function l_r(n,i,l){switch(l.g){case 1:n.a=i.a/2,n.b=0;break;case 2:n.a=i.a,n.b=i.b/2;break;case 3:n.a=i.a/2,n.b=i.b;break;case 4:n.a=0,n.b=i.b/2}}function tG(n,i,l,d){var g,y;for(g=i;g<n.c.length;g++)if(y=($n(g,n.c.length),v(n.c[g],12)),l.Mb(y))jn(d.c,y);else return g;return n.c.length}function K0e(n){switch(n.g){case 0:return null;case 1:return new U$t;case 2:return new K7e;default:throw _e(new ar(fme+(n.f!=null?n.f:""+n.g)))}}function nG(n,i,l){var d,g;for(vbr(n,i-n.s,l-n.t),g=new me(n.n);g.a<g.c.c.length;)d=v(pe(g),209),Orr(d,d.e+i-n.s),Lrr(d,d.f+l-n.t);n.s=i,n.t=l}function c_r(n){var i,l,d,g,y;for(l=0,g=new me(n.a);g.a<g.c.c.length;)d=v(pe(g),125),d.d=l++;return i=yxr(n),y=null,i.c.length>1&&(y=i_r(n,i)),y}function UGt(n){var i;return i=We(at(Et(n,(Ei(),cH))))*u.Math.sqrt((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a).i),new Ct(i,i/We(at(Et(n,Wne))))}function X0e(n){var i;return n.f&&n.f.Vh()&&(i=v(n.f,54),n.f=v(Hv(n,i),84),n.f!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,8,i,n.f))),n.f}function Q0e(n){var i;return n.i&&n.i.Vh()&&(i=v(n.i,54),n.i=v(Hv(n,i),84),n.i!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,7,i,n.i))),n.i}function sl(n){var i;return n.b&&n.b.Db&64&&(i=n.b,n.b=v(Hv(n,i),19),n.b!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,21,i,n.b))),n.b}function XZ(n,i){var l,d,g;n.d==null?(++n.e,++n.f):(d=i.Bi(),NTr(n,n.f+1),g=(d&qi)%n.d.length,l=n.d[g],!l&&(l=n.d[g]=n.dk()),l.Fc(i),++n.f)}function nDe(n,i,l){var d;return i.tk()?!1:i.Ik()!=-2?(d=i.ik(),d==null?l==null:Yi(d,l)):i.qk()==n.e.Dh()&&l==null}function QZ(){var n;kd(16,QKt),n=S$t(16),this.b=st(dbe,PG,303,n,0,1),this.c=st(dbe,PG,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Jm(n){lIe.call(this),this.k=(lr(),is),this.j=(kd(6,k4),new gu(6)),this.b=(kd(2,k4),new gu(2)),this.d=new Iue,this.f=new q7e,this.a=n}function u_r(n){var i,l;n.c.length<=1||(i=HYt(n,(Bt(),Mr)),NHt(n,v(i.a,17).a,v(i.b,17).a),l=HYt(n,cr),NHt(n,v(l.a,17).a,v(l.b,17).a))}function h_r(n,i,l){var d,g;for(g=n.a.b,d=g.c.length;d<l;d++)EE(g,g.c.length,new Xc(n.a));po(i,($n(l-1,g.c.length),v(g.c[l-1],30))),n.b[i.p]=l}function zGt(n,i){var l,d,g;for(n.b[i.g]=1,d=Ur(i.d,0);d.b!=d.d.c;)l=v(Fr(d),65),g=l.c,n.b[g.g]==1?pi(n.a,l):n.b[g.g]==2?n.b[g.g]=1:zGt(n,g)}function GGt(n,i,l,d){var g,y,x;for(g=v(Zi(d?n.a:n.b,i),21),x=g.Kc();x.Ob();)if(y=v(x.Pb(),27),xJ(n,l,y))return!0;return!1}function Z0e(n){var i,l;for(l=new mr(n);l.e!=l.i.gc();)if(i=v(wr(l),89),i.e||(!i.d&&(i.d=new gs(pl,i,1)),i.d).i!=0)return!0;return!1}function J0e(n){var i,l;for(l=new mr(n);l.e!=l.i.gc();)if(i=v(wr(l),89),i.e||(!i.d&&(i.d=new gs(pl,i,1)),i.d).i!=0)return!0;return!1}function d_r(n){var i,l,d;for(i=0,d=new me(n.c.a);d.a<d.c.c.length;)l=v(pe(d),10),i+=Gm(new yr(_r(os(l).a.Kc(),new S)));return i/n.c.a.c.length}function e1e(){e1e=z,Hje=(V1e(),Uje),qje=new bE(8),new fo((Ei(),Ty),qje),new fo(bw,8),Ccn=Fje,zje=ycn,Gje=vcn,Tcn=new fo(iH,(Qn(),!1))}function f_r(n,i,l){var d;l.Ug("Shrinking tree compaction",1),Vt(Ht(oe(i,(L8(),ZM))))?(wmr(n,i.f),fFt(i.f,(d=i.c,d))):fFt(i.f,i.c),l.Vg()}function rDe(n,i,l,d){switch(i){case 7:return!n.e&&(n.e=new Gn(ss,n,7,4)),n.e;case 8:return!n.d&&(n.d=new Gn(ss,n,8,5)),n.d}return CLe(n,i,l,d)}function t1e(n){var i;return n.a&&n.a.Vh()&&(i=v(n.a,54),n.a=v(Hv(n,i),142),n.a!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,5,i,n.a))),n.a}function G_(n){return n<48||n>102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function n1e(n,i){if(n==null)throw _e(new rk("null key in entry: null="+i));if(i==null)throw _e(new rk("null value in entry: "+n+"=null"))}function p_r(n,i){for(var l,d;n.Ob();)if(!i.Ob()||(l=n.Pb(),d=i.Pb(),!(Ze(l)===Ze(d)||l!=null&&Yi(l,d))))return!1;return!i.Ob()}function qGt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[w0e(n.a[0],i),w0e(n.a[1],i),w0e(n.a[2],i)]),n.d&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function HGt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[TZ(n.a[0],i),TZ(n.a[1],i),TZ(n.a[2],i)]),n.d&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function iDe(n,i,l){yk(v(oe(i,(qt(),Qa)),101))||(yOe(n,i,hy(i,l)),yOe(n,i,hy(i,(Bt(),Mr))),yOe(n,i,hy(i,or)),Fn(),us(i.j,new XCt(n)))}function VGt(n){var i,l;for(n.c||L6r(n),l=new ah,i=new me(n.a),pe(i);i.a<i.c.c.length;)pi(l,v(pe(i),418).a);return Tr(l.b!=0),cf(l,l.c.b),l}function g_r(n,i,l){var d,g,y,x,T;for(T=n.r+i,n.r+=i,n.d+=l,d=l/n.n.c.length,g=0,x=new me(n.n);x.a<x.c.c.length;)y=v(pe(x),209),k3r(y,T,d,g),++g}function m_r(n){var i,l,d;for(n.b.a.$b(),n.a=st(nte,Yn,60,n.c.c.a.b.c.length,0,1),i=0,d=new me(n.c.c.a.b);d.a<d.c.c.length;)l=v(pe(d),60),l.f=i++}function b_r(n){var i,l,d;for(n.b.a.$b(),n.a=st(jbe,Yn,86,n.c.a.a.b.c.length,0,1),i=0,d=new me(n.c.a.a.b);d.a<d.c.c.length;)l=v(pe(d),86),l.i=i++}function YGt(n){var i;if(i=oyr(n),!zr(n))throw _e(new Sl("position (0) must be less than the number of elements that remained ("+i+")"));return Rr(n)}function y_r(n,i){var l;return n.a||(l=st(ao,_l,28,0,15,1),TT(n.b.a,new P5t(l)),Vkt(l,YFt(W.prototype.Me,W,[])),n.a=new xOt(l,n.d)),$Q(n.a,i)}function jGt(n,i,l){var d;try{return e5(n,i+n.j,l+n.k)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function v_r(n,i,l){var d;try{return XGt(n,i+n.j,l+n.k)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function __r(n,i,l){var d;try{return QGt(n,i+n.j,l+n.k)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function WGt(n){switch(n.g){case 1:return Bt(),cr;case 4:return Bt(),or;case 3:return Bt(),gr;case 2:return Bt(),Mr;default:return Bt(),lc}}function w_r(n,i,l){i.k==(lr(),is)&&l.k==Ws&&(n.d=T0e(i,(Bt(),Mr)),n.b=T0e(i,or)),l.k==is&&i.k==Ws&&(n.d=T0e(l,(Bt(),or)),n.b=T0e(l,Mr))}function r1e(n,i){var l,d,g;for(g=sc(n,i),d=g.Kc();d.Ob();)if(l=v(d.Pb(),12),oe(l,(At(),kh))!=null||QL(new V1(l.b)))return!0;return!1}function E_r(n,i,l){l.Ug("Linear segments node placement",1),n.b=v(oe(i,(At(),B5)),312),l8r(n,i),Fkr(n,i),t6r(n,i),$Rr(n),n.a=null,n.b=null,l.Vg()}function aDe(n,i){return Au(i,n.e+n.d+(n.c.c.length==0?0:n.b)),ku(i,n.f),n.a=u.Math.max(n.a,i.f),n.d+=i.g+(n.c.c.length==0?0:n.b),Lt(n.c,i),!0}function x_r(n,i,l){var d,g,y,x;for(x=0,d=l/n.a.c.length,y=new me(n.a);y.a<y.c.c.length;)g=v(pe(y),172),nG(g,g.s,g.t+x*d),g_r(g,n.d-g.r+i,d),++x}function S_r(n,i){var l,d,g,y,x,T;for(g=i.length-1,x=0,T=0,d=0;d<=g;d++)y=i[d],l=Gxr(g,d)*oLe(1-n,g-d)*oLe(n,d),x+=y.a*l,T+=y.b*l;return new Ct(x,T)}function KGt(n,i){var l,d,g,y,x;for(l=i.gc(),n._i(n.i+l),y=i.Kc(),x=n.i,n.i+=l,d=x;d<n.i;++d)g=y.Pb(),KL(n,d,n.Zi(d,g)),n.Mi(d,g),n.Ni();return l!=0}function T_r(n,i,l){var d,g,y;return n.Pj()?(d=n.Ej(),y=n.Qj(),++n.j,n.qj(d,n.Zi(d,i)),g=n.Ij(3,null,i,d,y),l?l.nj(g):l=g):YNt(n,n.Ej(),i),l}function C_r(n,i,l){var d,g,y;return d=v(ze(Uc(n.a),i),89),y=(g=d.c,$e(g,90)?v(g,29):(Pn(),n0)),(y.Db&64?Hv(n.b,y):y)==l?kJ(d):x8(d,l),y}function A_r(n){var i;return n==null?null:new Ov((i=eu(n,!0),i.length>0&&(sr(0,i.length),i.charCodeAt(0)==43)?(sr(1,i.length+1),i.substr(1)):i))}function k_r(n){var i;return n==null?null:new Ov((i=eu(n,!0),i.length>0&&(sr(0,i.length),i.charCodeAt(0)==43)?(sr(1,i.length+1),i.substr(1)):i))}function sDe(n,i,l,d,g,y,x,T){var R,O;d&&(R=d.a[0],R&&sDe(n,i,l,R,g,y,x,T),h1e(n,l,d.d,g,y,x,T)&&i.Fc(d),O=d.a[1],O&&sDe(n,i,l,O,g,y,x,T))}function e5(n,i,l){try{return gE(Yfe(n,i,l),1)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function XGt(n,i,l){try{return gE(Yfe(n,i,l),0)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function QGt(n,i,l){try{return gE(Yfe(n,i,l),2)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function ZGt(n,i){if(n.g==-1)throw _e(new ih);n.Xj();try{n.d.hd(n.g,i),n.f=n.d.j}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}}function R_r(n){var i,l,d,g,y;for(d=new me(n.b);d.a<d.c.c.length;)for(l=v(pe(d),30),i=0,y=new me(l.a);y.a<y.c.c.length;)g=v(pe(y),10),g.p=i++}function YD(n,i){var l,d,g,y;for(y=n.gc(),i.length<y&&(i=LK(new Array(y),i)),g=i,d=n.Kc(),l=0;l<y;++l)Ga(g,l,d.Pb());return i.length>y&&Ga(i,y,null),i}function I_r(n,i){var l,d;if(d=n.gc(),i==null){for(l=0;l<d;l++)if(n.Xb(l)==null)return l}else for(l=0;l<d;l++)if(Yi(i,n.Xb(l)))return l;return-1}function i1e(n,i){var l,d,g;return l=i.ld(),g=i.md(),d=n.xc(l),!(!(Ze(g)===Ze(d)||g!=null&&Yi(g,d))||d==null&&!n._b(l))}function N_r(n,i){var l,d,g;return i<=22?(l=n.l&(1<<i)-1,d=g=0):i<=44?(l=n.l,d=n.m&(1<<i-22)-1,g=0):(l=n.l,d=n.m,g=n.h&(1<<i-44)-1),Su(l,d,g)}function O_r(n,i){switch(i.g){case 1:return n.f.n.d+n.t;case 3:return n.f.n.a+n.t;case 2:return n.f.n.c+n.s;case 4:return n.f.n.b+n.s;default:return 0}}function L_r(n,i){var l,d;switch(d=i.c,l=i.a,n.b.g){case 0:l.d=n.e-d.a-d.d;break;case 1:l.d+=n.e;break;case 2:l.c=n.e-d.a-d.d;break;case 3:l.c=n.e+d.d}}function oDe(n,i,l,d){var g,y;this.a=i,this.c=d,g=n.a,grr(this,new Ct(-g.c,-g.d)),Hi(this.b,l),y=d/2,i.a?ZL(this.b,0,y):ZL(this.b,y,0),Lt(n.c,this)}function JGt(n,i,l,d){var g;this.c=n,this.d=i,g=new Ea,qa(g,l,g.c.b,g.c),this.a=g,this.b=v(oe(d,(pc(),Ax)),88),this.e=We(at(oe(d,EYe))),$Kt(this)}function ZZ(){ZZ=z,Vve=new cX(og,0),YYe=new cX(hQt,1),jYe=new cX("EDGE_LENGTH_BY_POSITION",2),VYe=new cX("CROSSING_MINIMIZATION_BY_POSITION",3)}function a1e(n,i){var l,d;if(l=v(jT(n.g,i),27),l)return l;if(d=v(jT(n.j,i),123),d)return d;throw _e(new zp("Referenced shape does not exist: "+i))}function lDe(n,i){var l,d;if($e(i,253)){d=v(i,253);try{return l=n.Ed(d),l==0}catch(g){if(g=Da(g),$e(g,212))return!1;throw _e(g)}}return!1}function D_r(n,i){if(n.c==i)return n.d;if(n.d==i)return n.c;throw _e(new ar("Node 'one' must be either source or target of edge 'edge'."))}function M_r(n,i){if(n.c.i==i)return n.d.i;if(n.d.i==i)return n.c.i;throw _e(new ar("Node "+i+" is neither source nor target of edge "+n))}function P_r(n,i,l){l.Ug("Self-Loop ordering",1),ts(Bl(Ki(Ki(ic(new xn(null,new Nn(i.b,16)),new v2t),new _2t),new w2t),new E2t),new ECt(n)),l.Vg()}function B_r(n,i){var l;switch(i.g){case 2:case 4:l=n.a,n.c.d.n.b<l.d.n.b&&(l=n.c),Kb(n,i,(K1(),sye),l);break;case 1:case 3:Kb(n,i,(K1(),b6),null)}}function s1e(n,i,l,d,g,y){var x,T,R,O,D;for(x=Bwr(i,l,y),T=l==(Bt(),or)||l==cr?-1:1,O=n[l.g],D=0;D<O.length;D++)R=O[D],R>0&&(R+=g),O[D]=x,x+=T*(R+d)}function eqt(n){var i,l,d;for(d=n.f,n.n=st(ao,_l,28,d,15,1),n.d=st(ao,_l,28,d,15,1),i=0;i<d;i++)l=v(Yt(n.c.b,i),30),n.n[i]=CGt(n,l),n.d[i]=bYt(n,l)}function o1e(n,i){var l,d,g;for(g=0,d=2;d<i;d<<=1)n.Db&d&&++g;if(g==0){for(l=i<<=1;l<=128;l<<=1)if(n.Db&l)return 0;return-1}else return g}function tqt(n,i){var l,d,g,y,x;for(x=Iu(n.e.Dh(),i),y=null,l=v(n.g,124),g=0;g<n.i;++g)d=l[g],x.am(d.Lk())&&(!y&&(y=new fK),Yr(y,d));y&&EKt(n,y)}function nqt(n){var i,l,d;if(!n)return null;if(n.dc())return"";for(d=new qb,l=n.Kc();l.Ob();)i=l.Pb(),bl(d,ai(i)),d.a+=" ";return Phe(d,d.a.length-1)}function rqt(n,i){var l=new Array(i),d;switch(n){case 14:case 15:d=0;break;case 16:d=!1;break;default:return l}for(var g=0;g<i;++g)l[g]=d;return l}function jE(n){var i,l,d;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),60),i.c.$b();Bm(n.d)?d=n.a.c:d=n.a.d,Cu(d,new j5t(n)),n.c.df(n),MYt(n)}function iqt(n){var i,l,d,g;for(l=new me(n.e.c);l.a<l.c.c.length;){for(i=v(pe(l),290),g=new me(i.b);g.a<g.c.c.length;)d=v(pe(g),454),LPe(d);hVt(i)}}function JZ(n){var i,l,d,g,y;for(d=0,y=0,g=0,l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),172),y=u.Math.max(y,i.r),d+=i.d+(g>0?n.c:0),++g;n.b=d,n.d=y}function aqt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[tDe(n,(u1(),bc),i),tDe(n,vu,i),tDe(n,yc,i)]),n.f&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function F_r(n,i,l){var d;try{CJ(n,i+n.j,l+n.k,!1,!0)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function $_r(n,i,l){var d;try{CJ(n,i+n.j,l+n.k,!0,!1)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function sqt(n){var i;ya(n,(qt(),_x))&&(i=v(oe(n,_x),21),i.Hc((w4(),D0))?(i.Mc(D0),i.Fc(M0)):i.Hc(M0)&&(i.Mc(M0),i.Fc(D0)))}function oqt(n){var i;ya(n,(qt(),_x))&&(i=v(oe(n,_x),21),i.Hc((w4(),B0))?(i.Mc(B0),i.Fc(Qf)):i.Hc(Qf)&&(i.Mc(Qf),i.Fc(B0)))}function l1e(n,i,l,d){var g,y,x,T;return n.a==null&&zxr(n,i),x=i.b.j.c.length,y=l.d.p,T=d.d.p,g=T-1,g<0&&(g=x-1),y<=g?n.a[g]-n.a[y]:n.a[x-1]-n.a[y]+n.a[g]}function U_r(n){var i,l;if(!n.b)for(n.b=RQ(v(n.f,27).kh().i),l=new mr(v(n.f,27).kh());l.e!=l.i.gc();)i=v(wr(l),135),Lt(n.b,new $ue(i));return n.b}function z_r(n){var i,l;if(!n.e)for(n.e=RQ(Ude(v(n.f,27)).i),l=new mr(Ude(v(n.f,27)));l.e!=l.i.gc();)i=v(wr(l),123),Lt(n.e,new ekt(i));return n.e}function lqt(n){var i,l;if(!n.a)for(n.a=RQ(bQ(v(n.f,27)).i),l=new mr(bQ(v(n.f,27)));l.e!=l.i.gc();)i=v(wr(l),27),Lt(n.a,new jhe(n,i));return n.a}function WE(n){var i;if(!n.C&&(n.D!=null||n.B!=null))if(i=k7r(n),i)n.hl(i);else try{n.hl(null)}catch(l){if(l=Da(l),!$e(l,63))throw _e(l)}return n.C}function G_r(n){switch(n.q.g){case 5:Oqt(n,(Bt(),or)),Oqt(n,Mr);break;case 4:DWt(n,(Bt(),or)),DWt(n,Mr);break;default:BHt(n,(Bt(),or)),BHt(n,Mr)}}function q_r(n){switch(n.q.g){case 5:Lqt(n,(Bt(),gr)),Lqt(n,cr);break;case 4:MWt(n,(Bt(),gr)),MWt(n,cr);break;default:FHt(n,(Bt(),gr)),FHt(n,cr)}}function t5(n,i){var l,d,g;for(g=new ho,d=n.Kc();d.Ob();)l=v(d.Pb(),36),hI(l,g.a,0),g.a+=l.f.a+i,g.b=u.Math.max(g.b,l.f.b);return g.b>0&&(g.b+=i),g}function eJ(n,i){var l,d,g;for(g=new ho,d=n.Kc();d.Ob();)l=v(d.Pb(),36),hI(l,0,g.b),g.b+=l.f.b+i,g.a=u.Math.max(g.a,l.f.a);return g.a>0&&(g.a+=i),g}function cqt(n){var i,l,d;for(d=qi,l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),10),ya(i,(At(),ua))&&(d=u.Math.min(d,v(oe(i,ua),17).a));return d}function uqt(n,i){var l,d;if(i.length==0)return 0;for(l=$de(n.a,i[0],(Bt(),cr)),l+=$de(n.a,i[i.length-1],gr),d=0;d<i.length;d++)l+=Cxr(n,d,i);return l}function hqt(){aM(),this.c=new Ot,this.i=new Ot,this.e=new Hp,this.f=new Hp,this.g=new Hp,this.j=new Ot,this.a=new Ot,this.b=new Br,this.k=new Br}function c1e(n,i){var l,d;return n.Db>>16==6?n.Cb.Th(n,5,y1,i):(d=sl(v(qn((l=v(rr(n,16),29),l||n.ii()),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function H_r(n){p8();var i=n.e;if(i&&i.stack){var l=i.stack,d=i+`
`;return l.substring(0,d.length)==d&&(l=l.substring(d.length)),l.split(`
`)}return[]}function V_r(n){var i;return i=(f$t(),Nen),i[n>>>28]|i[n>>24&15]<<4|i[n>>20&15]<<8|i[n>>16&15]<<12|i[n>>12&15]<<16|i[n>>8&15]<<20|i[n>>4&15]<<24|i[n&15]<<28}function dqt(n){var i,l,d;n.b==n.c&&(d=n.a.length,l=U9e(u.Math.max(8,d))<<1,n.b!=0?(i=v0(n.a,l),k$t(n,i,d),n.a=i,n.b=0):$S(n.a,l),n.c=d)}function Y_r(n,i){var l;return l=n.b,l.pf((Ei(),jh))?l.ag()==(Bt(),cr)?-l.Mf().a-We(at(l.of(jh))):i+We(at(l.of(jh))):l.ag()==(Bt(),cr)?-l.Mf().a:i}function rG(n){var i;return n.b.c.length!=0&&v(Yt(n.b,0),72).a?v(Yt(n.b,0),72).a:(i=zde(n),i??""+(n.c?$l(n.c.a,n,0):-1))}function tJ(n){var i;return n.f.c.length!=0&&v(Yt(n.f,0),72).a?v(Yt(n.f,0),72).a:(i=zde(n),i??""+(n.i?$l(n.i.j,n,0):-1))}function j_r(n,i){var l,d;if(i<0||i>=n.gc())return null;for(l=i;l<n.gc();++l)if(d=v(n.Xb(l),131),l==n.gc()-1||!d.o)return new Ms(Nt(l),d);return null}function W_r(n,i,l){var d,g,y,x,T;for(y=n.c,T=l?i:n,d=l?n:i,g=T.p+1;g<d.p;++g)if(x=v(Yt(y.a,g),10),!(x.k==(lr(),ip)||Ewr(x)))return!1;return!0}function cDe(n){var i,l,d,g,y;for(y=0,g=Ss,d=0,l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),172),y+=i.r+(d>0?n.c:0),g=u.Math.max(g,i.d),++d;n.e=y,n.b=g}function K_r(n){var i,l;if(!n.b)for(n.b=RQ(v(n.f,123).kh().i),l=new mr(v(n.f,123).kh());l.e!=l.i.gc();)i=v(wr(l),135),Lt(n.b,new $ue(i));return n.b}function X_r(n,i){var l,d,g;if(i.dc())return t8(),t8(),SH;for(l=new KNt(n,i.gc()),g=new mr(n);g.e!=g.i.gc();)d=wr(g),i.Hc(d)&&Yr(l,d);return l}function uDe(n,i,l,d){return i==0?d?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o):(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),yz(n.o)):YZ(n,i,l,d)}function u1e(n){var i,l;if(n.rb)for(i=0,l=n.rb.i;i<l;++i)UU(ze(n.rb,i));if(n.vb)for(i=0,l=n.vb.i;i<l;++i)UU(ze(n.vb,i));iD((dh(),ko),n),n.Bb|=1}function wa(n,i,l,d,g,y,x,T,R,O,D,q,J,re){return VHt(n,i,d,null,g,y,x,T,R,O,J,!0,re),ELe(n,D),$e(n.Cb,90)&&_4($h(v(n.Cb,90)),2),l&&w9e(n,l),xLe(n,q),n}function Q_r(n){var i,l;if(n==null)return null;l=0;try{l=Nd(n,Po,qi)&vs}catch(d){if(d=Da(d),$e(d,130))i=jQ(n),l=i[0];else throw _e(d)}return Lz(l)}function Z_r(n){var i,l;if(n==null)return null;l=0;try{l=Nd(n,Po,qi)&vs}catch(d){if(d=Da(d),$e(d,130))i=jQ(n),l=i[0];else throw _e(d)}return Lz(l)}function J_r(n,i){var l,d,g;return g=n.h-i.h,g<0||(l=n.l-i.l,d=n.m-i.m+(l>>22),g+=d>>22,g<0)?!1:(n.l=l&Hh,n.m=d&Hh,n.h=g&rb,!0)}function h1e(n,i,l,d,g,y,x){var T,R;return!(i.Te()&&(R=n.a.Ne(l,d),R<0||!g&&R==0)||i.Ue()&&(T=n.a.Ne(l,y),T>0||!x&&T==0))}function ewr(n,i){G8();var l;if(l=n.j.g-i.j.g,l!=0)return 0;switch(n.j.g){case 2:return N0e(i,fqe)-N0e(n,fqe);case 4:return N0e(n,dqe)-N0e(i,dqe)}return 0}function twr(n){switch(n.g){case 0:return wye;case 1:return Eye;case 2:return xye;case 3:return Sye;case 4:return Ute;case 5:return Tye;default:return null}}function Rl(n,i,l){var d,g;return d=(g=new Lue,U_(g,i),mu(g,l),Yr((!n.c&&(n.c=new vt(Rx,n,12,10)),n.c),g),g),ny(d,0),c4(d,1),oy(d,!0),sy(d,!0),d}function Vk(n,i){var l,d;if(i>=n.i)throw _e(new Dhe(i,n.i));return++n.j,l=n.g[i],d=n.i-i-1,d>0&&Gc(n.g,i+1,n.g,i,d),Ga(n.g,--n.i,null),n.Qi(i,l),n.Ni(),l}function fqt(n,i){var l,d;return n.Db>>16==17?n.Cb.Th(n,21,Jf,i):(d=sl(v(qn((l=v(rr(n,16),29),l||n.ii()),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function nwr(n){var i,l,d,g;for(Fn(),us(n.c,n.a),g=new me(n.c);g.a<g.c.c.length;)for(d=pe(g),l=new me(n.b);l.a<l.c.c.length;)i=v(pe(l),693),i.bf(d)}function rwr(n){var i,l,d,g;for(Fn(),us(n.c,n.a),g=new me(n.c);g.a<g.c.c.length;)for(d=pe(g),l=new me(n.b);l.a<l.c.c.length;)i=v(pe(l),382),i.bf(d)}function iwr(n){var i,l,d,g,y;for(g=qi,y=null,d=new me(n.d);d.a<d.c.c.length;)l=v(pe(d),218),l.d.j^l.e.j&&(i=l.e.e-l.d.e-l.a,i<g&&(g=i,y=l));return y}function hDe(){hDe=z,Cnn=new En(UBe,(Qn(),!1)),xnn=new En(zBe,100),hGe=(wD(),Vbe),Snn=new En(GBe,hGe),Tnn=new En(qBe,sg),Ann=new En(HBe,Nt(qi))}function pqt(n,i,l){var d,g,y,x,T,R,O,D;for(O=0,g=n.a[i],y=0,x=g.length;y<x;++y)for(d=g[y],D=MD(d,l),R=D.Kc();R.Ob();)T=v(R.Pb(),12),Ni(n.f,T,Nt(O++))}function awr(n,i,l){var d,g,y,x;if(l)for(g=l.a.length,d=new S_(g),x=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);x.Ob();)y=v(x.Pb(),17),Rn(n,i,Wk(s4(l,y.a)))}function swr(n,i,l){var d,g,y,x;if(l)for(g=l.a.length,d=new S_(g),x=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);x.Ob();)y=v(x.Pb(),17),Rn(n,i,Wk(s4(l,y.a)))}function dDe(n){Kv();var i;return i=v(YD(wk(n.k),st(tl,Dc,64,2,0,1)),126),_8(i,0,i.length,null),i[0]==(Bt(),or)&&i[1]==cr&&(Ga(i,0,cr),Ga(i,1,or)),i}function gqt(n,i,l){var d,g,y;return g=WTr(n,i,l),y=nPe(n,g),kfe(n.b),lfe(n,i,l),Fn(),us(g,new sAt(n)),d=nPe(n,g),kfe(n.b),lfe(n,l,i),new Ms(Nt(y),Nt(d))}function mqt(){mqt=z,Xsn=yi(new ms,(Mo(),Gl),(qo(),eP)),wne=new Ba("linearSegments.inputPrio",Nt(0)),Ene=new Ba("linearSegments.outputPrio",Nt(0))}function Yk(){Yk=z,xne=new oX("P1_TREEIFICATION",0),xP=new oX("P2_NODE_ORDERING",1),SP=new oX("P3_NODE_PLACEMENT",2),TP=new oX("P4_EDGE_ROUTING",3)}function owr(n){var i,l,d,g;for(l=0,i=0,g=new mr(n);g.e!=g.i.gc();)d=v(wr(g),27),l=u.Math.max(d.g+d.i,l),i=u.Math.max(d.f+d.j,i);return new Ct(l,i)}function lwr(n,i){var l,d,g,y;for(y=0,d=new me(n);d.a<d.c.c.length;)l=v(pe(d),27),y+=u.Math.pow(l.g*l.f-i,2);return g=u.Math.sqrt(y/(n.c.length-1)),g}function Id(){Id=z,dH=new hX("UNKNOWN",0),im=new hX("ABOVE",1),m2=new hX("BELOW",2),hH=new hX("INLINE",3),new Ba("org.eclipse.elk.labelSide",dH)}function bqt(n,i){var l;if(n.Yi()&&i!=null){for(l=0;l<n.i;++l)if(Yi(i,n.g[l]))return l}else for(l=0;l<n.i;++l)if(Ze(n.g[l])===Ze(i))return l;return-1}function cwr(n,i,l){var d,g;return i.c==(ll(),_u)&&l.c==Rh?-1:i.c==Rh&&l.c==_u?1:(d=izt(i.a,n.a),g=izt(l.a,n.a),i.c==_u?g-d:d-g)}function m4(n,i,l){if(l&&(i<0||i>l.a.c.length))throw _e(new ar("index must be >= 0 and <= layer node count"));n.c&&Yu(n.c.a,n),n.c=l,l&&EE(l.a,i,n)}function yqt(n,i){var l,d,g;for(d=new yr(_r(Qm(n).a.Kc(),new S));zr(d);)return l=v(Rr(d),18),g=v(i.Kb(l),10),new mK(ni(g.n.b+g.o.b/2));return yL(),yL(),lbe}function vqt(n,i){this.c=new Br,this.a=n,this.b=i,this.d=v(oe(n,(At(),B5)),312),Ze(oe(n,(qt(),QHe)))===Ze((Ez(),zte))?this.e=new p6t:this.e=new f6t}function jD(n,i){var l,d;return d=null,n.pf((Ei(),I6))&&(l=v(n.of(I6),96),l.pf(i)&&(d=l.of(i))),d==null&&n.Tf()&&(d=n.Tf().of(i)),d==null&&(d=zt(i)),d}function d1e(n,i){var l,d;l=n.fd(i);try{return d=l.Pb(),l.Qb(),d}catch(g){throw g=Da(g),$e(g,112)?_e(new Sl("Can't remove element "+i)):_e(g)}}function uwr(n,i){var l,d,g;if(d=new UK,g=new q9e(d.q.getFullYear()-Jv,d.q.getMonth(),d.q.getDate()),l=wkr(n,i,g),l==0||l<i.length)throw _e(new ar(i));return g}function fDe(n,i){var l,d,g;for(hr(i),j8e(i!=n),g=n.b.c.length,d=i.Kc();d.Ob();)l=d.Pb(),Lt(n.b,hr(l));return g!=n.b.c.length?(Z9e(n,0),!0):!1}function iG(){iG=z,gGe=(Ei(),sH),new fo(w2e,(Qn(),!0)),Rnn=mw,Inn=tC,Nnn=g2,knn=eC,bGe=oH,Onn=a3,pGe=(hDe(),Cnn),dGe=Snn,fGe=Tnn,mGe=Ann,fte=xnn}function hwr(n,i){if(i==n.c)return n.d;if(i==n.d)return n.c;throw _e(new ar("'port' must be either the source port or target port of the edge."))}function dwr(n,i,l){var d,g;switch(g=n.o,d=n.d,i.g){case 1:return-d.d-l;case 3:return g.b+d.a+l;case 2:return g.a+d.c+l;case 4:return-d.b-l;default:return 0}}function pDe(n,i,l,d){var g,y,x,T;for(po(i,v(d.Xb(0),30)),T=d.kd(1,d.gc()),y=v(l.Kb(i),20).Kc();y.Ob();)g=v(y.Pb(),18),x=g.c.i==i?g.d.i:g.c.i,pDe(n,x,l,T)}function _qt(n){var i;return i=new Br,ya(n,(At(),Fye))?v(oe(n,Fye),85):(ts(Ki(new xn(null,new Nn(n.j,16)),new H2t),new ACt(i)),_t(n,Fye,i),i)}function wqt(n,i){var l,d,g,y,x;for(d=0,g=0,l=0,x=new me(n);x.a<x.c.c.length;)y=v(pe(x),186),d=u.Math.max(d,y.e),g+=y.b+(l>0?i:0),++l;return new Ct(d,g)}function gDe(n,i){var l,d;return n.Db>>16==6?n.Cb.Th(n,6,ss,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),ire)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function mDe(n,i){var l,d;return n.Db>>16==7?n.Cb.Th(n,1,vH,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),yKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function bDe(n,i){var l,d;return n.Db>>16==9?n.Cb.Th(n,9,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),_Ke)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Eqt(n,i){var l,d;return n.Db>>16==5?n.Cb.Th(n,9,fre,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Ry)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function xqt(n,i){var l,d;return n.Db>>16==7?n.Cb.Th(n,6,y1,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Ny)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function yDe(n,i){var l,d;return n.Db>>16==3?n.Cb.Th(n,0,wH,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),ky)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Sqt(){this.a=new RSt,this.g=new QZ,this.j=new QZ,this.b=new Br,this.d=new QZ,this.i=new QZ,this.k=new Br,this.c=new Br,this.e=new Br,this.f=new Br}function fwr(n,i,l){var d,g,y;for(l<0&&(l=0),y=n.i,g=l;g<y;g++)if(d=ze(n,g),i==null){if(d==null)return g}else if(Ze(i)===Ze(d)||Yi(i,d))return g;return-1}function pwr(n,i){var l,d;return l=i.qi(n.a),l?(d=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Hee)),An(uq,d)?iD(n,Cd(i.qk())):d):null}function tI(n,i){var l,d;if(i){if(i==n)return!0;for(l=0,d=v(i,54).Ph();d&&d!=i;d=d.Ph()){if(++l>Qpe)return tI(n,d);if(d==n)return!0}}return!1}function gwr(n){switch(IX(),n.q.g){case 5:sVt(n,(Bt(),or)),sVt(n,Mr);break;case 4:oYt(n,(Bt(),or)),oYt(n,Mr);break;default:uKt(n,(Bt(),or)),uKt(n,Mr)}}function mwr(n){switch(IX(),n.q.g){case 5:TVt(n,(Bt(),gr)),TVt(n,cr);break;case 4:IGt(n,(Bt(),gr)),IGt(n,cr);break;default:hKt(n,(Bt(),gr)),hKt(n,cr)}}function bwr(n){var i,l;i=v(oe(n,(A0(),mnn)),17),i?(l=i.a,l==0?_t(n,(Uv(),dte),new M0e):_t(n,(Uv(),dte),new LQ(l))):_t(n,(Uv(),dte),new LQ(1))}function ywr(n,i){var l;switch(l=n.i,i.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-l.o.a;case 3:return n.n.b-l.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function vwr(n,i){switch(n.g){case 0:return i==(pf(),u2)?Ote:Lte;case 1:return i==(pf(),u2)?Ote:Aq;case 2:return i==(pf(),u2)?Aq:Lte;default:return Aq}}function aG(n,i){var l,d,g;for(Yu(n.a,i),n.e-=i.r+(n.a.c.length==0?0:n.c),g=C$e,d=new me(n.a);d.a<d.c.c.length;)l=v(pe(d),172),g=u.Math.max(g,l.d);n.b=g}function vDe(n,i){var l,d;return n.Db>>16==3?n.Cb.Th(n,12,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),bKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function _De(n,i){var l,d;return n.Db>>16==11?n.Cb.Th(n,10,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),vKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Tqt(n,i){var l,d;return n.Db>>16==10?n.Cb.Th(n,11,Jf,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Iy)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Cqt(n,i){var l,d;return n.Db>>16==10?n.Cb.Th(n,12,e0,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),f3)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Gf(n){var i;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(i=v(n.r,54),n.r=v(Hv(n,i),142),n.r!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,8,i,n.r))),n.r}function f1e(n,i,l){var d;return d=Te(xe(ao,1),_l,28,15,[YDe(n,(u1(),bc),i,l),YDe(n,vu,i,l),YDe(n,yc,i,l)]),n.f&&(d[0]=u.Math.max(d[0],d[2]),d[2]=d[0]),d}function _wr(n,i){var l,d,g;if(g=H2r(n,i),g.c.length!=0)for(us(g,new Vvt),l=g.c.length,d=0;d<l;d++)sI(n,($n(d,g.c.length),v(g.c[d],293)),q5r(n,g,d))}function wwr(n){var i,l,d,g;for(g=v(Zi(n.a,(b4(),Dte)),15).Kc();g.Ob();)for(d=v(g.Pb(),105),l=wk(d.k).Kc();l.Ob();)i=v(l.Pb(),64),l8(n,d,i,(UE(),l2),1)}function Ewr(n){var i,l;if(n.k==(lr(),Ws)){for(l=new yr(_r(Qm(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),!Jo(i)&&n.c==ADe(i,n).c)return!0}return!1}function xwr(n){var i,l;if(n.k==(lr(),Ws)){for(l=new yr(_r(Qm(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),!Jo(i)&&i.c.i.c==i.d.i.c)return!0}return!1}function Swr(n,i){var l,d,g,y,x;if(i)for(g=i.a.length,l=new S_(g),x=(l.b-l.a)*l.c<0?(Iv(),T2):new Lv(l);x.Ob();)y=v(x.Pb(),17),d=m8(i,y.a),d&&eYt(n,d)}function Twr(){CRe();var n,i;for(d8r((Mv(),Zn)),n8r(Zn),u1e(Zn),DKe=(Pn(),dp),i=new me(qKe);i.a<i.c.c.length;)n=v(pe(i),248),bI(n,dp,null);return!0}function wDe(n,i){var l,d,g,y,x,T,R,O;return R=n.h>>19,O=i.h>>19,R!=O?O-R:(g=n.h,T=i.h,g!=T?g-T:(d=n.m,x=i.m,d!=x?d-x:(l=n.l,y=i.l,l-y)))}function nJ(){nJ=z,Pze=(SJ(),Nbe),Mze=new En(_Be,Pze),Dze=(KQ(),Ibe),Lze=new En(wBe,Dze),Oze=(GZ(),Rbe),Nze=new En(EBe,Oze),Ize=new En(xBe,(Qn(),!0))}function WD(n,i,l){var d,g;d=i*l,$e(n.g,154)?(g=Nk(n),g.f.d?g.f.a||(n.d.a+=d+ep):(n.d.d-=d+ep,n.d.a+=d+ep)):$e(n.g,10)&&(n.d.d-=d,n.d.a+=2*d)}function Aqt(n,i,l){var d,g,y,x,T;for(g=n[l.g],T=new me(i.d);T.a<T.c.c.length;)x=v(pe(T),105),y=x.i,y&&y.i==l&&(d=x.d[l.g],g[d]=u.Math.max(g[d],y.j.b))}function Cwr(n,i){var l,d,g,y,x;for(d=0,g=0,l=0,x=new me(i.d);x.a<x.c.c.length;)y=v(pe(x),315),JZ(y),d=u.Math.max(d,y.b),g+=y.d+(l>0?n.b:0),++l;i.b=d,i.e=g}function kqt(n){var i,l,d;if(d=n.b,vRt(n.i,d.length)){for(l=d.length*2,n.b=st(dbe,PG,303,l,0,1),n.c=st(dbe,PG,303,l,0,1),n.f=l-1,n.i=0,i=n.a;i;i=i.c)pG(n,i,i);++n.g}}function Awr(n,i,l,d){var g,y,x,T;for(g=0;g<i.o;g++)for(y=g-i.j+l,x=0;x<i.p;x++)T=x-i.k+d,e5(i,g,x)?__r(n,y,T)||F_r(n,y,T):QGt(i,g,x)&&(jGt(n,y,T)||$_r(n,y,T))}function KD(n,i){return n.b.a=u.Math.min(n.b.a,i.c),n.b.b=u.Math.min(n.b.b,i.d),n.a.a=u.Math.max(n.a.a,i.c),n.a.b=u.Math.max(n.a.b,i.d),jn(n.c,i),!0}function kwr(n,i,l){var d;d=i.c.i,d.k==(lr(),Ws)?(_t(n,(At(),m1),v(oe(d,m1),12)),_t(n,Kf,v(oe(d,Kf),12))):(_t(n,(At(),m1),i.c),_t(n,Kf,l.d))}function nI(n,i,l){l5();var d,g,y,x,T,R;return x=i/2,y=l/2,d=u.Math.abs(n.a),g=u.Math.abs(n.b),T=1,R=1,d>x&&(T=x/d),g>y&&(R=y/g),Vp(n,u.Math.min(T,R)),n}function Rwr(){IJ();var n,i;try{if(i=v(NDe((Rv(),t0),$I),2113),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new TSt}function Iwr(){IJ();var n,i;try{if(i=v(NDe((Rv(),t0),Yf),2040),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new QSt}function Nwr(){FBt();var n,i;try{if(i=v(NDe((Rv(),t0),nw),2122),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new H4t}function Owr(n,i,l){var d,g;return g=n.e,n.e=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,4,g,i),l?l.nj(d):l=d),g!=i&&(i?l=bI(n,gJ(n,i),l):l=bI(n,n.a,l)),l}function Rqt(){UK.call(this),this.e=-1,this.a=!1,this.p=Po,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=Po}function Lwr(n,i){var l,d,g;if(d=n.b.d.d,n.a||(d+=n.b.d.a),g=i.b.d.d,i.a||(g+=i.b.d.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function Dwr(n,i){var l,d,g;if(d=n.b.b.d,n.a||(d+=n.b.b.a),g=i.b.b.d,i.a||(g+=i.b.b.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function Mwr(n,i){var l,d,g;if(d=n.b.g.d,n.a||(d+=n.b.g.a),g=i.b.g.d,i.a||(g+=i.b.g.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function EDe(){EDe=z,Dnn=ch(yi(yi(yi(new ms,(Mo(),ru),(qo(),ZGe)),ru,JGe),Gl,eqe),Gl,zGe),Pnn=yi(yi(new ms,ru,DGe),ru,GGe),Mnn=ch(new ms,Gl,HGe)}function Pwr(n){var i,l,d,g,y;for(i=v(oe(n,(At(),sP)),85),y=n.n,d=i.Cc().Kc();d.Ob();)l=v(d.Pb(),314),g=l.i,g.c+=y.a,g.d+=y.b,l.c?WYt(l):KYt(l);_t(n,sP,null)}function Bwr(n,i,l){var d,g;switch(g=n.b,d=g.d,i.g){case 1:return-d.d-l;case 2:return g.o.a+d.c+l;case 3:return g.o.b+d.a+l;case 4:return-d.b-l;default:return-1}}function Fwr(n,i,l){var d,g;for(l.Ug("Interactive node placement",1),n.a=v(oe(i,(At(),B5)),312),g=new me(i.b);g.a<g.c.c.length;)d=v(pe(g),30),I5r(n,d);l.Vg()}function $wr(n){var i,l,d,g,y;if(d=0,g=b5,n.b)for(i=0;i<360;i++)l=i*.017453292519943295,vPe(n,n.d,0,0,Z_,l),y=n.b.Dg(n.d),y<g&&(d=l,g=y);vPe(n,n.d,0,0,Z_,d)}function Uwr(n,i){var l,d,g,y;for(y=new Br,i.e=null,i.f=null,d=new me(i.i);d.a<d.c.c.length;)l=v(pe(d),68),g=v(br(n.g,l.a),42),l.a=sQ(l.b),Ni(y,l.a,g);n.g=y}function zwr(n,i,l){var d,g,y,x,T,R;for(g=i-n.e,y=g/n.d.c.length,x=0,R=new me(n.d);R.a<R.c.c.length;)T=v(pe(R),315),d=n.b-T.b+l,Zzt(T,T.e+x*y,T.f),x_r(T,y,d),++x}function Iqt(n){var i;if(n.f._j(),n.b!=-1){if(++n.b,i=n.f.d[n.a],n.b<i.i)return;++n.a}for(;n.a<n.f.d.length;++n.a)if(i=n.f.d[n.a],i&&i.i!=0){n.b=0;return}n.b=-1}function Gwr(n,i){var l,d,g;for(g=i.c.length,l=HSr(n,g==0?"":($n(0,i.c.length),ai(i.c[0]))),d=1;d<g&&l;++d)l=v(l,54).Zh(($n(d,i.c.length),ai(i.c[d])));return l}function Nqt(n,i){var l,d;for(d=new me(i);d.a<d.c.c.length;)l=v(pe(d),10),n.c[l.c.p][l.p].a=eNe(n.i),n.c[l.c.p][l.p].d=We(n.c[l.c.p][l.p].a),n.c[l.c.p][l.p].b=1}function qwr(n,i){var l,d,g,y;for(y=0,d=new me(n);d.a<d.c.c.length;)l=v(pe(d),163),y+=u.Math.pow(lh(l)*od(l)-i,2);return g=u.Math.sqrt(y/(n.c.length-1)),g}function Oqt(n,i){var l,d,g,y;for(y=0,g=v(v(Zi(n.r,i),21),87).Kc();g.Ob();)d=v(g.Pb(),117),y=u.Math.max(y,d.e.a+d.b.Mf().a);l=v(yl(n.b,i),127),l.n.b=0,l.a.a=y}function Lqt(n,i){var l,d,g,y;for(l=0,y=v(v(Zi(n.r,i),21),87).Kc();y.Ob();)g=v(y.Pb(),117),l=u.Math.max(l,g.e.b+g.b.Mf().b);d=v(yl(n.b,i),127),d.n.d=0,d.a.b=l}function Dqt(n,i,l,d){var g,y,x;return y=TCr(n,i,l,d),x=uPe(n,y),x1e(n,i,l,d),kfe(n.b),Fn(),us(y,new oAt(n)),g=uPe(n,y),x1e(n,l,i,d),kfe(n.b),new Ms(Nt(x),Nt(g))}function Hwr(n,i){var l;i.Ug("Delaunay triangulation",1),l=new Ot,Cu(n.i,new qAt(l)),Vt(Ht(oe(n,(L8(),ZM)))),n.e?bo(n.e,kKt(l)):n.e=kKt(l),i.Vg()}function Vwr(n,i,l){var d,g;for(PU(n,n.j+i,n.k+l),g=new mr((!n.a&&(n.a=new gs(Ud,n,5)),n.a));g.e!=g.i.gc();)d=v(wr(g),377),Fhe(d,d.a+i,d.b+l);MU(n,n.b+i,n.c+l)}function xDe(n,i,l,d){switch(l){case 7:return!n.e&&(n.e=new Gn(ss,n,7,4)),bu(n.e,i,d);case 8:return!n.d&&(n.d=new Gn(ss,n,8,5)),bu(n.d,i,d)}return _1e(n,i,l,d)}function SDe(n,i,l,d){switch(l){case 7:return!n.e&&(n.e=new Gn(ss,n,7,4)),Ko(n.e,i,d);case 8:return!n.d&&(n.d=new Gn(ss,n,8,5)),Ko(n.d,i,d)}return r0e(n,i,l,d)}function Ywr(n,i,l){var d,g,y,x,T;if(l)for(y=l.a.length,d=new S_(y),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),g=m8(l,x.a),g&&aVt(n,g,i)}function sG(n,i,l){var d,g,y,x,T;return n._j(),y=i==null?0:ma(i),n.f>0&&(x=(y&qi)%n.d.length,g=TMe(n,x,y,i),g)?(T=g.nd(l),T):(d=n.ck(y,i,l),n.c.Fc(d),null)}function TDe(n,i){var l,d,g,y;switch(ay(n,i).Kl()){case 3:case 2:{for(l=u5(i),g=0,y=l.i;g<y;++g)if(d=v(ze(l,g),35),RE(Al(n,d))==5)return d;break}}return null}function jwr(n){var i,l,d,g,y;if(vRt(n.f,n.b.length))for(d=st(Sen,PG,227,n.b.length*2,0,1),n.b=d,g=d.length-1,l=n.a;l!=n;l=l._d())y=v(l,227),i=y.d&g,y.a=d[i],d[i]=y}function Wwr(n){var i,l;return l=v(oe(n,(At(),au)),21),i=EX(don),l.Hc((cl(),L5))&&Rd(i,gon),l.Hc(aP)&&Rd(i,mon),l.Hc(nN)&&Rd(i,fon),l.Hc(rN)&&Rd(i,pon),i}function CDe(n){if(n<0)throw _e(new ar("The input must be positive"));return n<Xje.length?N_(Xje[n]):u.Math.sqrt(Z_*n)*(Syr(n,n)/oLe(2.718281828459045,n))}function rI(n,i){var l;if(n.Yi()&&i!=null){for(l=0;l<n.i;++l)if(Yi(i,n.g[l]))return!0}else for(l=0;l<n.i;++l)if(Ze(n.g[l])===Ze(i))return!0;return!1}function Kwr(n,i){if(i==null){for(;n.a.Ob();)if(v(n.a.Pb(),44).md()==null)return!0}else for(;n.a.Ob();)if(Yi(i,v(n.a.Pb(),44).md()))return!0;return!1}function Xwr(n,i){var l,d,g;return i===n?!0:$e(i,678)?(g=v(i,2046),hGt((d=n.g,d||(n.g=new pue(n))),(l=g.g,l||(g.g=new pue(g))))):!1}function Qwr(n){var i,l,d,g;for(i="gA",l="vz",g=u.Math.min(n.length,5),d=g-1;d>=0;d--)if(An(n[d].d,i)||An(n[d].d,l)){n.length>=d+1&&n.splice(0,d+1);break}return n}function oG(n,i){var l;return jl(n)&&jl(i)&&(l=n/i,$G<l&&l<j_)?l<0?u.Math.ceil(l):u.Math.floor(l):zv($Pe(jl(n)?Uf(n):n,jl(i)?Uf(i):i,!1))}function ADe(n,i){if(i==n.c.i)return n.d.i;if(i==n.d.i)return n.c.i;throw _e(new ar("'node' must either be the source node or target node of the edge."))}function Zwr(n){var i,l,d,g;if(g=v(oe(n,(At(),qqe)),36),g){for(d=new ho,i=So(n.c.i);i!=g;)l=i.e,i=So(l),_E(Hi(Hi(d,l.n),i.c),i.d.b,i.d.d);return d}return ern}function Jwr(n){var i;i=v(oe(n,(At(),yx)),337),ts(ic(new xn(null,new Nn(i.d,16)),new k2t),new wCt(n)),ts(Ki(new xn(null,new Nn(i.d,16)),new R2t),new xCt(n))}function p1e(n,i){var l,d,g,y;for(g=i?os(n):Hs(n),d=new yr(_r(g.a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),y=ADe(l,n),y.k==(lr(),Ws)&&y.c!=n.c)return y;return null}function eEr(n){var i,l,d;for(l=new me(n.p);l.a<l.c.c.length;)i=v(pe(l),10),i.k==(lr(),is)&&(d=i.o.b,n.i=u.Math.min(n.i,d),n.g=u.Math.max(n.g,d))}function Mqt(n,i,l){var d,g,y;for(y=new me(i);y.a<y.c.c.length;)d=v(pe(y),10),n.c[d.c.p][d.p].e=!1;for(g=new me(i);g.a<g.c.c.length;)d=v(pe(g),10),VPe(n,d,l)}function g1e(n,i,l){var d,g;d=QT(i.j,l.s,l.c)+QT(l.e,i.s,i.c),g=QT(l.j,i.s,i.c)+QT(i.e,l.s,l.c),d==g?d>0&&(n.b+=2,n.a+=d):(n.b+=1,n.a+=u.Math.min(d,g))}function Pqt(n){var i;i=v(oe(v(gf(n.b,0),40),(pc(),vYe)),107),_t(n,(fa(),gN),new Ct(0,0)),Ajt(new mz,n,i.b+i.c-We(at(oe(n,Cve))),i.d+i.a-We(at(oe(n,Ave))))}function Bqt(n,i){var l,d;if(d=!1,ro(i)&&(d=!0,Tk(n,new JS(ai(i)))),d||$e(i,242)&&(d=!0,Tk(n,(l=vIe(v(i,242)),new bK(l)))),!d)throw _e(new zue(EUe))}function tEr(n,i,l,d){var g,y,x;return g=new Vm(n.e,1,10,(x=i.c,$e(x,90)?v(x,29):(Pn(),n0)),(y=l.c,$e(y,90)?v(y,29):(Pn(),n0)),uy(n,i),!1),d?d.nj(g):d=g,d}function kDe(n){var i,l;switch(v(oe(So(n),(qt(),HHe)),429).g){case 0:return i=n.n,l=n.o,new Ct(i.a+l.a/2,i.b+l.b/2);case 1:return new Wo(n.n);default:return null}}function lG(){lG=z,Gte=new PL(og,0),Rqe=new PL("LEFTUP",1),Nqe=new PL("RIGHTUP",2),kqe=new PL("LEFTDOWN",3),Iqe=new PL("RIGHTDOWN",4),Cye=new PL("BALANCED",5)}function nEr(n,i,l){var d,g,y;if(d=ha(n.a[i.p],n.a[l.p]),d==0){if(g=v(oe(i,(At(),w6)),15),y=v(oe(l,w6),15),g.Hc(l))return-1;if(y.Hc(i))return 1}return d}function rEr(n){switch(n.g){case 1:return new sxt;case 2:return new oxt;case 3:return new axt;case 0:return null;default:throw _e(new ar(fme+(n.f!=null?n.f:""+n.g)))}}function RDe(n,i,l){switch(i){case 1:!n.n&&(n.n=new vt(wl,n,1,7)),Gr(n.n),!n.n&&(n.n=new vt(wl,n,1,7)),Ka(n.n,v(l,16));return;case 2:I8(n,ai(l));return}K9e(n,i,l)}function IDe(n,i,l){switch(i){case 3:BE(n,We(at(l)));return;case 4:FE(n,We(at(l)));return;case 5:Au(n,We(at(l)));return;case 6:ku(n,We(at(l)));return}RDe(n,i,l)}function rJ(n,i,l){var d,g,y;y=(d=new Lue,d),g=Q1(y,i,null),g&&g.oj(),mu(y,l),Yr((!n.c&&(n.c=new vt(Rx,n,12,10)),n.c),y),ny(y,0),c4(y,1),oy(y,!0),sy(y,!0)}function NDe(n,i){var l,d,g;return l=NL(n.i,i),$e(l,241)?(g=v(l,241),g.zi()==null,g.wi()):$e(l,507)?(d=v(l,2037),g=d.b,g):null}function iEr(n,i,l,d){var g,y;return ni(i),ni(l),y=v(eD(n.d,i),17),uFt(!!y,"Row %s not in %s",i,n.e),g=v(eD(n.b,l),17),uFt(!!g,"Column %s not in %s",l,n.c),wUt(n,y.a,g.a,d)}function Fqt(n,i,l,d,g,y,x){var T,R,O,D,q;if(D=g[y],O=y==x-1,T=O?d:0,q=rqt(T,D),d!=10&&Te(xe(n,x-y),i[y],l[y],T,q),!O)for(++y,R=0;R<D;++R)q[R]=Fqt(n,i,l,d,g,y,x);return q}function XD(n){if(n.g==-1)throw _e(new ih);n.Xj();try{n.i.gd(n.g),n.f=n.i.j,n.g<n.e&&--n.e,n.g=-1}catch(i){throw i=Da(i),$e(i,77)?_e(new Jd):_e(i)}}function aEr(n){var i,l,d,g;for(g=-1,d=0,l=new me(n);l.a<l.c.c.length;){if(i=v(pe(l),249),i.c==(ll(),Rh)){g=d==0?0:d-1;break}else d==n.c.length-1&&(g=d);d+=1}return g}function sEr(n){var i,l,d,g;for(g=0,i=0,d=new me(n.c);d.a<d.c.c.length;)l=v(pe(d),27),Au(l,n.e+g),ku(l,n.f),g+=l.g+n.b,i=u.Math.max(i,l.f+n.b);n.d=g-n.b,n.a=i-n.b}function n5(n){var i,l,d;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),60),d=i.d.c,i.d.c=i.d.d,i.d.d=d,d=i.d.b,i.d.b=i.d.a,i.d.a=d,d=i.b.a,i.b.a=i.b.b,i.b.b=d;KMe(n)}function r5(n){var i,l,d;for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),86),d=i.g.c,i.g.c=i.g.d,i.g.d=d,d=i.g.b,i.g.b=i.g.a,i.g.a=d,d=i.e.a,i.e.a=i.e.b,i.e.b=d;vJ(n)}function oEr(n){var i,l,d,g,y;for(y=wk(n.k),l=(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])),d=0,g=l.length;d<g;++d)if(i=l[d],i!=lc&&!y.Hc(i))return i;return null}function m1e(n,i){var l,d;return d=v(sor(U8(Ki(new xn(null,new Nn(i.j,16)),new Q_t))),12),d&&(l=v(Yt(d.e,0),18),l)?v(oe(l,(At(),ua)),17).a:bgr(n.b)}function lEr(n,i){var l,d,g,y;for(y=new me(i.a);y.a<y.c.c.length;)for(g=v(pe(y),10),_L(n.d),d=new yr(_r(os(g).a.Kc(),new S));zr(d);)l=v(Rr(d),18),MVt(n,g,l.d.i)}function cEr(n,i){var l,d;for(Yu(n.b,i),d=new me(n.n);d.a<d.c.c.length;)if(l=v(pe(d),209),$l(l.c,i,0)!=-1){Yu(l.c,i),sEr(l),l.c.c.length==0&&Yu(n.n,l);break}gWt(n)}function $qt(n,i){var l,d,g,y,x;for(x=n.f,g=0,y=0,d=new me(n.a);d.a<d.c.c.length;)l=v(pe(d),172),nG(l,n.e,x),_z(l,i),y=u.Math.max(y,l.r),x+=l.d+n.c,g=x;n.d=y,n.b=g}function Uqt(n){var i,l;return l=bG(n),b8(l)?null:(i=(ni(l),v(YGt(new yr(_r(l.a.Kc(),new S))),74)),zl(v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84)))}function iJ(n){var i;return n.o||(i=n.uk(),i?n.o=new CNe(n,n,null):n.al()?n.o=new rIe(n,null):RE(Al((dh(),ko),n))==1?n.o=new uPt(n):n.o=new ede(n,null)),n.o}function uEr(n,i,l,d){var g,y,x,T,R;l.Xh(i)&&(g=(x=i,x?v(d,54).gi(x):null),g&&(R=l.Mh(i),T=i.t,T>1||T==-1?(y=v(R,15),g.Wb(zvr(n,y))):g.Wb(Z1e(n,v(R,58)))))}function hEr(n,i,l,d){W7t();var g=obe;function y(){for(var x=0;x<g.length;x++)g[x]()}if(n)try{Yhn(y)()}catch(x){n(i,x)}else Yhn(y)()}function dEr(n,i){var l,d,g,y;for(g=(y=new m_(n.b).a.vc().Kc(),new vK(y));g.a.Ob();)if(d=(l=v(g.a.Pb(),44),v(l.ld(),34)),h8e(i,v(d,17))<0)return!1;return!0}function fEr(n,i){var l,d,g,y;for(g=(y=new m_(n.b).a.vc().Kc(),new vK(y));g.a.Ob();)if(d=(l=v(g.a.Pb(),44),v(l.ld(),34)),h8e(i,v(d,17))>0)return!1;return!0}function pEr(n){var i,l,d,g,y;for(d=new P_(new b_(n.b).a);d.b;)l=zE(d),i=v(l.ld(),10),y=v(v(l.md(),42).a,10),g=v(v(l.md(),42).b,8),Hi(i1(i.n),Hi(Eo(y.n),g))}function gEr(n){switch(v(oe(n.b,(qt(),BHe)),387).g){case 1:ts(Bl(ic(new xn(null,new Nn(n.d,16)),new B_t),new F_t),new $_t);break;case 2:uCr(n);break;case 0:GSr(n)}}function mEr(n,i,l){var d,g,y;for(d=l,!d&&(d=new tk),d.Ug("Layout",n.a.c.length),y=new me(n.a);y.a<y.c.c.length;){if(g=v(pe(y),47),d.$g())return;g.Kf(i,d.eh(1))}d.Vg()}function q_(){q_=z,v2e=new $L("V_TOP",0),$P=new $L("V_CENTER",1),FP=new $L("V_BOTTOM",2),y2e=new $L("H_LEFT",3),PP=new $L("H_CENTER",4),BP=new $L("H_RIGHT",5)}function ODe(n){var i;return n.Db&64?DZ(n):(i=new Ff(DZ(n)),i.a+=" (abstract: ",Hb(i,(n.Bb&256)!=0),i.a+=", interface: ",Hb(i,(n.Bb&512)!=0),i.a+=")",i.a)}function bEr(n){var i;n.c==null&&(i=Ze(n.b)===Ze(XUe)?null:n.b,n.d=i==null?Ku:U9t(i)?Zsr(ZLt(i)):ro(i)?oBe:__(cd(i)),n.a=n.a+": "+(U9t(i)?Qor(ZLt(i)):i+""),n.c="("+n.d+") "+n.a)}function yEr(){function n(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===xpe&&Map.prototype.entries&&n()?Map:iRr()}function vEr(n,i){var l,d,g,y;for(y=new go(n.e,0),l=0;y.b<y.d.gc();){if(d=We((Tr(y.b<y.d.gc()),at(y.d.Xb(y.c=y.b++)))),g=d-i,g>cme)return l;g>-1e-6&&++l}return l}function LDe(n,i){var l;i!=n.b?(l=null,n.b&&(l=wQ(n.b,n,-4,l)),i&&(l=Hk(i,n,-4,l)),l=pzt(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function zqt(n,i){var l;i!=n.f?(l=null,n.f&&(l=wQ(n.f,n,-1,l)),i&&(l=Hk(i,n,-1,l)),l=fzt(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,i,i))}function _Er(n,i,l,d){var g,y,x,T;return id(n.e)&&(g=i.Lk(),T=i.md(),y=l.md(),x=Bv(n,1,g,T,y,g.Jk()?pI(n,g,y,$e(g,102)&&(v(g,19).Bb&el)!=0):-1,!0),d?d.nj(x):d=x),d}function Gqt(n){var i,l,d;if(n==null)return null;if(l=v(n,15),l.dc())return"";for(d=new qb,i=l.Kc();i.Ob();)bl(d,(ca(),ai(i.Pb()))),d.a+=" ";return Phe(d,d.a.length-1)}function qqt(n){var i,l,d;if(n==null)return null;if(l=v(n,15),l.dc())return"";for(d=new qb,i=l.Kc();i.Ob();)bl(d,(ca(),ai(i.Pb()))),d.a+=" ";return Phe(d,d.a.length-1)}function wEr(n,i,l){var d,g;return d=n.c[i.c.p][i.p],g=n.c[l.c.p][l.p],d.a!=null&&g.a!=null?Sde(d.a,g.a):d.a!=null?-1:g.a!=null?1:0}function EEr(n,i,l){return l.Ug("Tree layout",1),nz(n.b),a1(n.b,(Yk(),xne),xne),a1(n.b,xP,xP),a1(n.b,SP,SP),a1(n.b,TP,TP),n.a=kG(n.b,i),mEr(n,i,l.eh(1)),l.Vg(),i}function xEr(n,i){var l,d,g,y,x,T;if(i)for(y=i.a.length,l=new S_(y),T=(l.b-l.a)*l.c<0?(Iv(),T2):new Lv(l);T.Ob();)x=v(T.Pb(),17),g=m8(i,x.a),d=new ukt(n),Ndr(d.a,g)}function SEr(n,i){var l,d,g,y,x,T;if(i)for(y=i.a.length,l=new S_(y),T=(l.b-l.a)*l.c<0?(Iv(),T2):new Lv(l);T.Ob();)x=v(T.Pb(),17),g=m8(i,x.a),d=new tkt(n),Idr(d.a,g)}function TEr(n){var i;if(n!=null&&n.length>0&&Do(n,n.length-1)==33)try{return i=QVt(af(n,0,n.length-1)),i.e==null}catch(l){if(l=Da(l),!$e(l,33))throw _e(l)}return!1}function CEr(n,i,l){var d,g,y;switch(d=So(i),g=IZ(d),y=new zc,rc(y,i),l.g){case 1:Bs(y,Xz(zk(g)));break;case 2:Bs(y,zk(g))}return _t(y,(qt(),X4),at(oe(n,X4))),y}function DDe(n){var i,l;return i=v(Rr(new yr(_r(Hs(n.a).a.Kc(),new S))),18),l=v(Rr(new yr(_r(os(n.a).a.Kc(),new S))),18),Vt(Ht(oe(i,(At(),ap))))||Vt(Ht(oe(l,ap)))}function b4(){b4=z,kq=new EU("ONE_SIDE",0),Pte=new EU("TWO_SIDES_CORNER",1),Bte=new EU("TWO_SIDES_OPPOSING",2),Mte=new EU("THREE_SIDES",3),Dte=new EU("FOUR_SIDES",4)}function Hqt(n,i){var l,d,g,y;for(y=new Ot,g=0,d=i.Kc();d.Ob();){for(l=Nt(v(d.Pb(),17).a+g);l.a<n.f&&!mhr(n,l.a);)l=Nt(l.a+1),++g;if(l.a>=n.f)break;jn(y.c,l)}return y}function AEr(n,i){var l,d,g,y,x;for(y=new me(i.a);y.a<y.c.c.length;)for(g=v(pe(y),10),d=new yr(_r(Hs(g).a.Kc(),new S));zr(d);)l=v(Rr(d),18),x=l.c.i.p,n.n[x]=n.n[x]-1}function kEr(n){var i,l;for(l=new me(n.e.b);l.a<l.c.c.length;)i=v(pe(l),30),x7r(n,i);ts(Ki(ic(ic(new xn(null,new Nn(n.e.b,16)),new Awt),new Lwt),new Dwt),new wAt(n))}function MDe(n,i){return i?n.mj(i)?!1:n.i?n.i.nj(i):$e(i,152)?(n.i=v(i,152),!0):(n.i=new OSt,n.i.nj(i)):!1}function Vqt(n,i,l){var d,g,y;return d=i.Lk(),y=i.md(),g=d.Jk()?Bv(n,3,d,null,y,pI(n,d,y,$e(d,102)&&(v(d,19).Bb&el)!=0),!0):Bv(n,1,d,d.ik(),y,-1,!0),l?l.nj(g):l=g,l}function REr(n){if(n=eu(n,!0),An(BI,n)||An("1",n))return Qn(),HI;if(An(Ame,n)||An("0",n))return Qn(),a2;throw _e(new Gue("Invalid boolean value: '"+n+"'"))}function PDe(n,i,l){var d,g,y;for(g=n.vc().Kc();g.Ob();)if(d=v(g.Pb(),44),y=d.ld(),Ze(i)===Ze(y)||i!=null&&Yi(i,y))return l&&(d=new QK(d.ld(),d.md()),g.Qb()),d;return null}function IEr(n){WS();var i,l,d;n.B.Hc((qh(),Zne))&&(d=n.f.i,i=new vQ(n.a.c),l=new ek,l.b=i.c-d.c,l.d=i.d-d.d,l.c=d.c+d.b-(i.c+i.b),l.a=d.d+d.a-(i.d+i.a),n.e.$f(l))}function Yqt(n,i,l,d){var g,y,x;for(x=u.Math.min(l,rWt(v(n.b,68),i,l,d)),y=new me(n.a);y.a<y.c.c.length;)g=v(pe(y),225),g!=i&&(x=u.Math.min(x,Yqt(g,i,x,d)));return x}function BDe(n){var i,l,d,g;for(g=st(tm,kt,199,n.b.c.length,0,2),d=new go(n.b,0);d.b<d.d.gc();)i=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),30)),l=d.b-1,g[l]=dz(i.a);return g}function FDe(n,i,l){var d,g,y;d=v(j1(n.a,l),34),d!=null&&(y=v(j1(n.b,d),67),f4(y,l,!0)),g=v(j1(n.b,i),67),g||(g=new Ea,cy(n.b,i,g)),qa(g,l,g.c.b,g.c),cy(n.a,l,i)}function b1e(n,i,l,d,g){var y,x,T,R;for(x=Yir(cRe(TIe(t_r(l)),d),dwr(n,l,g)),R=hy(n,l).Kc();R.Ob();)T=v(R.Pb(),12),i[T.p]&&(y=i[T.p].i,Lt(x.d,new wde(y,mLe(x,y))));MLe(x)}function $De(n,i){this.f=new Br,this.b=new Br,this.j=new Br,this.a=n,this.c=i,this.c>0&&pqt(this,this.c-1,(Bt(),gr)),this.c<this.a.length-1&&pqt(this,this.c+1,(Bt(),cr))}function NEr(n,i){var l,d,g,y,x;for(y=new me(i.d);y.a<y.c.c.length;)for(g=v(pe(y),105),x=v(br(n.c,g),118).o,d=new lk(g.b);d.a<d.c.a.length;)l=v(vD(d),64),zOe(g,l,x)}function UDe(n){n.length>0&&n[0].length>0&&(this.c=Vt(Ht(oe(So(n[0][0]),(At(),Yqe))))),this.a=st(Fsn,kt,2117,n.length,0,2),this.b=st($sn,kt,2118,n.length,0,2),this.d=new lzt}function OEr(n){return n.c.length==0?!1:($n(0,n.c.length),v(n.c[0],18)).c.i.k==(lr(),Ws)?!0:VT(Bl(new xn(null,new Nn(n,16)),new ywt),new vwt)}function jqt(n,i){var l,d,g,y,x,T,R;for(T=E4(i),y=i.f,R=i.g,x=u.Math.sqrt(y*y+R*R),g=0,d=new me(T);d.a<d.c.c.length;)l=v(pe(d),27),g+=jqt(n,l);return u.Math.max(g,x)}function co(){co=z,y2=new zL(wM,0),up=new zL("FREE",1),SN=new zL("FIXED_SIDE",2),yw=new zL("FIXED_ORDER",3),sm=new zL("FIXED_RATIO",4),su=new zL("FIXED_POS",5)}function LEr(n,i){var l,d,g;if(l=i.qi(n.a),l){for(g=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),jf)),d=1;d<(dh(),jKe).length;++d)if(An(jKe[d],g))return d}return 0}function DEr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],Hm(y,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function MEr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],Hm(y,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function Wqt(n){var i,l,d;for(d=new B_(Xo,"{","}"),l=n.vc().Kc();l.Ob();)i=v(l.Pb(),44),Hm(d,tPt(n,i.ld())+"="+tPt(n,i.md()));return d.a?d.e.length==0?d.a.a:d.a.a+(""+d.e):d.c}function PEr(n){for(var i,l,d,g;!wL(n.o);)l=v(xk(n.o),42),d=v(l.a,125),i=v(l.b,218),g=OZ(i,d),i.e==d?(RX(g.g,i),d.e=g.e+i.a):(RX(g.b,i),d.e=g.e-i.a),Lt(n.e.a,d)}function zDe(n,i){var l,d,g;for(l=null,g=v(i.Kb(n),20).Kc();g.Ob();)if(d=v(g.Pb(),18),!l)l=d.c.i==n?d.d.i:d.c.i;else if((d.c.i==n?d.d.i:d.c.i)!=l)return!1;return!0}function Kqt(n,i){var l,d,g,y,x;for(l=dYt(n,!1,i),g=new me(l);g.a<g.c.c.length;)d=v(pe(g),132),d.d==0?(rfe(d,null),ife(d,null)):(y=d.a,x=d.b,rfe(d,x),ife(d,y))}function BEr(n){var i,l;return i=new ms,Rd(i,von),l=v(oe(n,(At(),au)),21),l.Hc((cl(),aP))&&Rd(i,xon),l.Hc(nN)&&Rd(i,_on),l.Hc(L5)&&Rd(i,Eon),l.Hc(rN)&&Rd(i,won),i}function GDe(n,i,l){var d,g,y,x,T;for(Lvr(n),g=(n.k==null&&(n.k=st(pbe,kt,82,0,0,1)),n.k),y=0,x=g.length;y<x;++y)d=g[y],GDe(d);T=n.f,T&&GDe(T)}function FEr(n){var i,l,d,g;for(T6r(n),l=new yr(_r(Qm(n).a.Kc(),new S));zr(l);)i=v(Rr(l),18),d=i.c.i==n,g=d?i.d:i.c,d?lo(i,null):Uo(i,null),_t(i,(At(),Xqe),g),Z4r(n,g.i)}function $Er(n,i,l,d){var g,y;switch(y=i.i,g=l[y.g][n.d[y.g]],y.g){case 1:g-=d+i.j.b,i.g.b=g;break;case 3:g+=d,i.g.b=g;break;case 4:g-=d+i.j.a,i.g.a=g;break;case 2:g+=d,i.g.a=g}}function UEr(n){var i,l,d;for(l=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));l.e!=l.i.gc();)if(i=v(wr(l),27),d=bG(i),!zr(new yr(_r(d.a.Kc(),new S))))return i;return null}function aJ(){aJ=z,$ve=new AU("OVERLAP_REMOVAL",0),Pve=new AU(DQt,1),Uve=new AU("ROTATION",2),Bve=new AU("GRAPH_SIZE_CALCULATION",3),Fve=new AU("OUTGOING_EDGE_ANGLES",4)}function zEr(){var n;return qun?v(lI((Rv(),t0),$I),2115):(n=v($e(Qc((Rv(),t0),$I),569)?Qc(t0,$I):new FVt,569),qun=!0,c7r(n),C8r(n),u1e(n),Cl(t0,$I,n),n)}function y1e(n,i,l){var d,g;if(n.j==0)return l;if(g=v(a$t(n,i,l),76),d=l.Lk(),!d.rk()||!n.a.am(d))throw _e(new tc("Invalid entry feature '"+d.qk().zb+"."+d.xe()+"'"));return g}function GEr(n,i){var l,d,g,y,x,T,R,O;for(T=n.a,R=0,O=T.length;R<O;++R)for(x=T[R],d=x,g=0,y=d.length;g<y;++g)if(l=d[g],Ze(i)===Ze(l)||i!=null&&Yi(i,l))return!0;return!1}function qEr(n){var i,l,d;return Oc(n,0)>=0?(l=oG(n,zJ),d=Zz(n,zJ)):(i=Dv(n,1),l=oG(i,5e8),d=Zz(i,5e8),d=zo(w0(d,1),Us(n,1))),s1(w0(d,32),Us(l,ul))}function Xqt(n,i,l){var d,g;switch(d=(Tr(i.b!=0),v(cf(i,i.a.a),8)),l.g){case 0:d.b=0;break;case 2:d.b=n.f;break;case 3:d.a=0;break;default:d.a=n.g}return g=Ur(i,0),tz(g,d),i}function Qqt(n,i,l,d){var g,y,x,T,R;switch(R=n.b,y=i.d,x=y.j,T=QLe(x,R.d[x.g],l),g=Hi(Eo(y.n),y.a),y.j.g){case 1:case 3:T.a+=g.a;break;case 2:case 4:T.b+=g.b}qa(d,T,d.c.b,d.c)}function HEr(n,i,l){var d,g,y,x;for(x=$l(n.e,i,0),y=new U7e,y.b=l,d=new go(n.e,x);d.b<d.d.gc();)g=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),10)),g.p=l,Lt(y.e,g),ld(d);return y}function VEr(n,i,l,d){var g,y,x,T,R;for(g=null,y=0,T=new me(i);T.a<T.c.c.length;)x=v(pe(T),27),R=x.i+x.g,n<x.j+x.f+d&&(g?l.i-R<l.i-y&&(g=x):g=x,y=g.i+g.g);return g?y+d:0}function YEr(n,i,l,d){var g,y,x,T,R;for(y=null,g=0,T=new me(i);T.a<T.c.c.length;)x=v(pe(T),27),R=x.j+x.f,n<x.i+x.g+d&&(y?l.j-R<l.j-g&&(y=x):y=x,g=y.j+y.f);return y?g+d:0}function jEr(n){var i,l,d;for(i=!1,d=n.b.c.length,l=0;l<d;l++)Y9e(v(Yt(n.b,l),443))?!i&&l+1<d&&Y9e(v(Yt(n.b,l+1),443))&&(i=!0,v(Yt(n.b,l),443).a=!0):i=!1}function WEr(n,i,l,d,g){var y,x;for(y=0,x=0;x<g;x++)y=zo(y,zf(Us(i[x],ul),Us(d[x],ul))),n[x]=ti(y),y=xE(y,32);for(;x<l;x++)y=zo(y,Us(i[x],ul)),n[x]=ti(y),y=xE(y,32)}function KEr(n,i){uI();var l,d;for(d=(eg(),Zee),l=n;i>1;i>>=1)i&1&&(d=HT(d,l)),l.d==1?l=HT(l,l):l=new fGt(Ljt(l.a,l.d,st(Wr,vi,28,l.d<<1,15,1)));return d=HT(d,l),d}function qDe(){qDe=z;var n,i,l,d;for(Eze=st(ao,_l,28,25,15,1),xze=st(ao,_l,28,33,15,1),d=152587890625e-16,i=32;i>=0;i--)xze[i]=d,d*=.5;for(l=1,n=24;n>=0;n--)Eze[n]=l,l*=.5}function XEr(n){var i,l;if(Vt(Ht(Et(n,(qt(),K4))))){for(l=new yr(_r(eb(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),74),KE(i)&&Vt(Ht(Et(i,lw))))return!0}return!1}function Zqt(n,i){var l,d,g;Es(n.f,i)&&(i.b=n,d=i.c,$l(n.j,d,0)!=-1||Lt(n.j,d),g=i.d,$l(n.j,g,0)!=-1||Lt(n.j,g),l=i.a.b,l.c.length!=0&&(!n.i&&(n.i=new vGt(n)),tbr(n.i,l)))}function QEr(n){var i,l,d,g,y;return l=n.c.d,d=l.j,g=n.d.d,y=g.j,d==y?l.p<g.p?0:1:RZ(d)==y?0:bLe(d)==y?1:(i=n.b,oh(i.b,RZ(d))?0:1)}function H_(n){var i;this.d=new Br,this.c=n.c,this.e=n.d,this.b=n.b,this.f=new C9t(n.e),this.a=n.a,n.f?this.g=n.f:this.g=(i=v(n1(ure),9),new nf(i,v(v0(i,i.length),9),0))}function sJ(n,i){var l,d,g,y,x,T;g=n,x=bD(g,"layoutOptions"),!x&&(x=bD(g,NZt)),x&&(T=x,d=null,T&&(d=(y=Xfe(T,st(Xt,kt,2,0,6,1)),new Xue(T,y))),d&&(l=new $8t(T,i),To(d,l)))}function zl(n){if($e(n,207))return v(n,27);if($e(n,193))return z1(v(n,123));throw _e(n?new zb("Only support nodes and ports."):new rk(UZt))}function ZEr(n,i,l,d){return(i>=0&&An(n.substr(i,3),"GMT")||i>=0&&An(n.substr(i,3),"UTC"))&&(l[0]=i+3),EPe(n,l,d)}function JEr(n,i){var l,d,g,y,x;for(y=n.g.a,x=n.g.b,d=new me(n.d);d.a<d.c.c.length;)l=v(pe(d),72),g=l.n,g.a=y,n.i==(Bt(),or)?g.b=x+n.j.b-l.o.b:g.b=x,Hi(g,i),y+=l.o.a+n.e}function Jqt(n,i,l){if(n.b)throw _e(new Tl("The task is already done."));return n.p!=null?!1:(n.p=i,n.r=l,n.k&&(n.o=(Pm(),Go(xc(Date.now()),py))),!0)}function HDe(n){var i,l,d,g,y,x,T;return T=new nk,l=n.Pg(),g=l!=null,g&&a8(T,ug,n.Pg()),d=n.xe(),y=d!=null,y&&a8(T,Mi,n.xe()),i=n.Og(),x=i!=null,x&&a8(T,"description",n.Og()),T}function eHt(n,i,l){var d,g,y;return y=n.q,n.q=i,n.Db&4&&!(n.Db&1)&&(g=new js(n,1,9,y,i),l?l.nj(g):l=g),i?(d=i.c,d!=n.r&&(l=n.Yk(d,l))):n.r&&(l=n.Yk(null,l)),l}function exr(n,i,l){var d,g,y,x,T;for(l=(T=i,Hk(T,n.e,-1-n.c,l)),x=INe(n.a),y=(d=new P_(new b_(x.a).a),new TK(d));y.a.b;)g=v(zE(y.a).ld(),89),l=bI(g,gJ(g,n.a),l);return l}function txr(n,i,l){var d,g,y,x,T;for(l=(T=i,wQ(T,n.e,-1-n.c,l)),x=INe(n.a),y=(d=new P_(new b_(x.a).a),new TK(d));y.a.b;)g=v(zE(y.a).ld(),89),l=bI(g,gJ(g,n.a),l);return l}function nxr(n,i,l,d){var g,y,x;if(d==0)Gc(i,0,n,l,n.length-l);else for(x=32-d,n[n.length-1]=0,y=n.length-1;y>l;y--)n[y]|=i[y-l-1]>>>x,n[y-1]=i[y-l-1]<<d;for(g=0;g<l;g++)n[g]=0}function rxr(n){var i,l,d,g,y;for(i=0,l=0,y=n.Kc();y.Ob();)d=v(y.Pb(),117),i=u.Math.max(i,d.d.b),l=u.Math.max(l,d.d.c);for(g=n.Kc();g.Ob();)d=v(g.Pb(),117),d.d.b=i,d.d.c=l}function ixr(n){var i,l,d,g,y;for(l=0,i=0,y=n.Kc();y.Ob();)d=v(y.Pb(),117),l=u.Math.max(l,d.d.d),i=u.Math.max(i,d.d.a);for(g=n.Kc();g.Ob();)d=v(g.Pb(),117),d.d.d=l,d.d.a=i}function v1e(n,i,l,d,g){var y,x;y=v(Wl(Ki(i.Oc(),new R_t),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),dG(y),x=v(M_(n.b,l,d),15),g==0?x.cd(0,y):x.Gc(y)}function axr(n,i,l){l.Ug("Grow Tree",1),n.b=i.f,Vt(Ht(oe(i,(L8(),ZM))))?(n.c=new dt,jDt(n,null)):n.c=new dt,n.a=!1,wYt(n,i.f),_t(i,Kze,(Qn(),!!n.a)),l.Vg()}function VDe(n){var i,l,d,g;for(i=null,g=new me(n.Rf());g.a<g.c.c.length;)d=v(pe(g),187),l=new rf(d.Lf().a,d.Lf().b,d.Mf().a,d.Mf().b),i?QD(i,l):i=l;return!i&&(i=new fk),i}function _1e(n,i,l,d){var g,y;return l==1?(!n.n&&(n.n=new vt(wl,n,1,7)),bu(n.n,i,d)):(y=v(qn((g=v(rr(n,16),29),g||n.ii()),l),69),y.wk().zk(n,Ru(n),l-kr(n.ii()),i,d))}function w1e(n,i,l){var d,g,y,x,T;for(d=l.gc(),n._i(n.i+d),T=n.i-i,T>0&&Gc(n.g,i,n.g,i+d,T),x=l.Kc(),n.i+=d,g=0;g<d;++g)y=x.Pb(),KL(n,i,n.Zi(i,y)),n.Mi(i,y),n.Ni(),++i;return d!=0}function Q1(n,i,l){var d;return i!=n.q?(n.q&&(l=wQ(n.q,n,-10,l)),i&&(l=Hk(i,n,-10,l)),l=eHt(n,i,l)):n.Db&4&&!(n.Db&1)&&(d=new js(n,1,9,i,i),l?l.nj(d):l=d),l}function E1e(n,i,l,d){return wIe((l&ng)==0,"flatMap does not support SUBSIZED characteristic"),wIe((l&4)==0,"flatMap does not support SORTED characteristic"),ni(n),ni(i),new zMt(n,i,l,d)}function sxr(n,i){yNe(i,"Cannot suppress a null exception."),XU(i!=n,"Exception can not suppress itself."),!n.i&&(n.k==null?n.k=Te(xe(pbe,1),kt,82,0,[i]):n.k[n.k.length]=i)}function oxr(n,i){var l;if(l=bIt(n.b.ag(),i.b.ag()),l!=0)return l;switch(n.b.ag().g){case 1:case 2:return Nc(n.b.Nf(),i.b.Nf());case 3:case 4:return Nc(i.b.Nf(),n.b.Nf())}return 0}function lxr(n){var i,l,d;for(d=n.e.c.length,n.a=E_(Wr,[kt,vi],[53,28],15,[d,d],2),l=new me(n.c);l.a<l.c.c.length;)i=v(pe(l),290),n.a[i.c.a][i.d.a]+=v(oe(i,(A0(),g6)),17).a}function cxr(n,i){var l,d,g,y,x;if(n==null)return null;for(x=st(Tf,rg,28,2*i,15,1),d=0,g=0;d<i;++d)l=n[d]>>4&15,y=n[d]&15,x[g++]=wKe[l],x[g++]=wKe[y];return Qp(x,0,x.length)}function Wu(n){var i,l;return n>=el?(i=UG+(n-el>>10&1023)&vs,l=56320+(n-el&1023)&vs,String.fromCharCode(i)+(""+String.fromCharCode(l))):String.fromCharCode(n&vs)}function uxr(n,i){WS();var l,d,g,y;return g=v(v(Zi(n.r,i),21),87),g.gc()>=2?(d=v(g.Kc().Pb(),117),l=n.u.Hc((Ah(),jP)),y=n.u.Hc(L6),!d.a&&!l&&(g.gc()==2||y)):!1}function tHt(n,i,l,d,g){var y,x,T;for(y=UYt(n,i,l,d,g),T=!1;!y;)fJ(n,g,!0),T=!0,y=UYt(n,i,l,d,g);T&&fJ(n,g,!1),x=s0e(g),x.c.length!=0&&(n.d&&n.d.Gg(x),tHt(n,g,l,d,x))}function oJ(){oJ=z,M2e=new UL(og,0),VWe=new UL("DIRECTED",1),jWe=new UL("UNDIRECTED",2),qWe=new UL("ASSOCIATION",3),YWe=new UL("GENERALIZATION",4),HWe=new UL("DEPENDENCY",5)}function hxr(n,i){var l;if(!z1(n))throw _e(new Tl(bZt));switch(l=z1(n),i.g){case 1:return-(n.j+n.f);case 2:return n.i-l.g;case 3:return n.j-l.f;case 4:return-(n.i+n.g)}return 0}function dxr(n,i,l){var d,g,y;return d=i.Lk(),y=i.md(),g=d.Jk()?Bv(n,4,d,y,null,pI(n,d,y,$e(d,102)&&(v(d,19).Bb&el)!=0),!0):Bv(n,d.tk()?2:1,d,y,d.ik(),-1,!0),l?l.nj(g):l=g,l}function iI(n,i){var l,d;for(hr(i),d=n.b.c.length,Lt(n.b,i);d>0;){if(l=d,d=(d-1)/2|0,n.a.Ne(Yt(n.b,d),i)<=0)return of(n.b,l,i),!0;of(n.b,l,Yt(n.b,d))}return of(n.b,d,i),!0}function YDe(n,i,l,d){var g,y;if(g=0,l)g=TZ(n.a[l.g][i.g],d);else for(y=0;y<rte;y++)g=u.Math.max(g,TZ(n.a[y][i.g],d));return i==(u1(),vu)&&n.b&&(g=u.Math.max(g,n.b.a)),g}function fxr(n,i){var l,d,g,y,x,T;return g=n.i,y=i.i,!g||!y||g.i!=y.i||g.i==(Bt(),gr)||g.i==(Bt(),cr)?!1:(x=g.g.a,l=x+g.j.a,T=y.g.a,d=T+y.j.a,x<=d&&l>=T)}function nHt(n){switch(n.g){case 0:return new wxt;case 1:return new Ext;default:throw _e(new ar("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function jDe(n,i,l,d){var g;if(g=!1,ro(d)&&(g=!0,a8(i,l,ai(d))),g||HS(d)&&(g=!0,jDe(n,i,l,d)),g||$e(d,242)&&(g=!0,k_(i,l,v(d,242))),!g)throw _e(new zue(EUe))}function pxr(n,i){var l,d,g;if(l=i.qi(n.a),l&&(g=h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Vf),g!=null)){for(d=1;d<(dh(),VKe).length;++d)if(An(VKe[d],g))return d}return 0}function gxr(n,i){var l,d,g;if(l=i.qi(n.a),l&&(g=h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Vf),g!=null)){for(d=1;d<(dh(),YKe).length;++d)if(An(YKe[d],g))return d}return 0}function rHt(n,i){var l,d,g,y;if(hr(i),y=n.a.gc(),y<i.gc())for(l=n.a.ec().Kc();l.Ob();)d=l.Pb(),i.Hc(d)&&l.Qb();else for(g=i.Kc();g.Ob();)d=g.Pb(),n.a.Bc(d)!=null;return y!=n.a.gc()}function iHt(n){var i,l;switch(l=Eo(ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a]))),i=n.i.d,n.j.g){case 1:l.b-=i.d;break;case 2:l.a+=i.c;break;case 3:l.b+=i.a;break;case 4:l.a-=i.b}return l}function mxr(n){var i;for(i=(Bk(),v(Rr(new yr(_r(Hs(n).a.Kc(),new S))),18).c.i);i.k==(lr(),Ws);)_t(i,(At(),Dq),(Qn(),!0)),i=v(Rr(new yr(_r(Hs(i).a.Kc(),new S))),18).c.i}function x1e(n,i,l,d){var g,y,x,T;for(T=MD(i,d),x=T.Kc();x.Ob();)g=v(x.Pb(),12),n.d[g.p]=n.d[g.p]+n.c[l.p];for(T=MD(l,d),y=T.Kc();y.Ob();)g=v(y.Pb(),12),n.d[g.p]=n.d[g.p]-n.c[i.p]}function WDe(n,i,l){var d,g;for(g=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));g.e!=g.i.gc();)d=v(wr(g),27),ef(d,d.i+i,d.j+l);To((!n.b&&(n.b=new vt(ss,n,12,3)),n.b),new k8t(i,l))}function bxr(n,i,l,d){var g,y;for(y=i,g=y.d==null||n.a.Ne(l.d,y.d)>0?1:0;y.a[g]!=l;)y=y.a[g],g=n.a.Ne(l.d,y.d)>0?1:0;y.a[g]=d,d.b=l.b,d.a[0]=l.a[0],d.a[1]=l.a[1],l.a[0]=null,l.a[1]=null}function yxr(n){var i,l,d,g;for(i=new Ot,l=st(Wh,Qg,28,n.a.c.length,16,1),gNe(l,l.length),g=new me(n.a);g.a<g.c.c.length;)d=v(pe(g),125),l[d.d]||(jn(i.c,d),SGt(n,d,l));return i}function aHt(n,i){var l,d,g,y,x;for(g=i==1?Kbe:Wbe,d=g.a.ec().Kc();d.Ob();)for(l=v(d.Pb(),88),x=v(Zi(n.f.c,l),21).Kc();x.Ob();)y=v(x.Pb(),42),Yu(n.b.b,y.b),Yu(n.b.a,v(y.b,86).d)}function vxr(n,i){var l;i.Ug("Hierarchical port position processing",1),l=n.b,l.c.length>0&&Rjt(($n(0,l.c.length),v(l.c[0],30)),n),l.c.length>1&&Rjt(v(Yt(l,l.c.length-1),30),n),i.Vg()}function _xr(n){Ah();var i,l;return i=va(ub,Te(xe(Qne,1),wt,279,0,[v2])),!(Dz(xQ(i,n))>1||(l=va(jP,Te(xe(Qne,1),wt,279,0,[YP,L6])),Dz(xQ(l,n))>1))}function KDe(n,i){var l;l=Qc((Rv(),t0),n),$e(l,507)?Cl(t0,n,new K8t(this,i)):Cl(t0,n,this),S1e(this,i),i==(HR(),LKe)?(this.wb=v(this,2038),v(i,2040)):this.wb=(Mv(),Zn)}function wxr(n){var i,l,d;if(n==null)return null;for(i=null,l=0;l<QP.length;++l)try{return NRt(QP[l],n)}catch(g){if(g=Da(g),$e(g,33))d=g,i=d;else throw _e(g)}throw _e(new VQ(i))}function sHt(){sHt=z,$en=Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),Uen=Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function oHt(n){var i,l,d;i=An(typeof i,ige)?null:new Xe,i&&(KR(),l=(d=900,d>=py?"error":d>=900?"warn":d>=800?"info":"log"),mLt(l,n.a),n.b&&QMe(i,l,n.b,"Exception: ",!0))}function oe(n,i){var l,d;return d=(!n.q&&(n.q=new Br),br(n.q,i)),d??(l=i.Sg(),$e(l,4)&&(l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l))),l)}function Mo(){Mo=z,N0=new wU("P1_CYCLE_BREAKING",0),em=new wU("P2_LAYERING",1),qc=new wU("P3_NODE_ORDERING",2),ru=new wU("P4_NODE_PLACEMENT",3),Gl=new wU("P5_EDGE_ROUTING",4)}function Exr(n,i){ED();var l;if(n.c==i.c){if(n.b==i.b||Rmr(n.b,i.b)){if(l=Jar(n.b)?1:-1,n.a&&!i.a)return l;if(!n.a&&i.a)return-l}return Nc(n.b.g,i.b.g)}else return ha(n.c,i.c)}function lHt(n,i){var l,d,g;if(QDe(n,i))return!0;for(d=new me(i);d.a<d.c.c.length;)if(l=v(pe(d),27),g=Uqt(l),xJ(n,l,g)||uzt(n,l)-n.g<=n.a)return!0;return!1}function cG(){cG=z,zne=(V1e(),Uje),f2e=Scn,d2e=xcn,Lje=_cn,h2e=Ecn,Oje=new bE(8),fcn=new fo((Ei(),Ty),Oje),pcn=new fo(bw,8),gcn=Fje,Ije=mcn,Nje=bcn,dcn=new fo(iH,(Qn(),!1))}function lJ(){lJ=z,rWe=new bE(15),zcn=new fo((Ei(),Ty),rWe),Gcn=new fo(bw,15),iWe=new fo(lH,Nt(0)),eWe=Wcn,$cn=mw,Ucn=g2,Jje=new fo(X5,QQt),tWe=sH,nWe=tC,b2e=Ycn,Fcn=rH}function Hg(n){if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i!=1)throw _e(new ar(Ume));return zl(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84))}function cHt(n){if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i!=1)throw _e(new ar(Ume));return Fz(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84))}function uHt(n){if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i!=1)throw _e(new ar(Ume));return Fz(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))}function jv(n){if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i!=1)throw _e(new ar(Ume));return zl(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))}function XDe(n,i,l){var d,g,y;if(++n.j,g=n.Ej(),i>=g||i<0)throw _e(new Sl(zme+i+ew+g));if(l>=g||l<0)throw _e(new Sl(Gme+l+ew+g));return i!=l?d=(y=n.Cj(l),n.qj(i,y),y):d=n.xj(l),d}function hHt(n){var i,l,d;if(d=n,n)for(i=0,l=n.Eh();l;l=l.Eh()){if(++i>Qpe)return hHt(l);if(d=l,l==n)throw _e(new Tl("There is a cycle in the containment hierarchy of "+n))}return d}function Wv(n){var i,l,d;for(d=new B_(Xo,"[","]"),l=n.Kc();l.Ob();)i=l.Pb(),Hm(d,Ze(i)===Ze(n)?"(this Collection)":i==null?Ku:Kl(i));return d.a?d.e.length==0?d.a.a:d.a.a+(""+d.e):d.c}function QDe(n,i){var l,d;if(d=!1,i.gc()<2)return!1;for(l=0;l<i.gc();l++)l<i.gc()-1?d=d|xJ(n,v(i.Xb(l),27),v(i.Xb(l+1),27)):d=d|xJ(n,v(i.Xb(l),27),v(i.Xb(0),27));return d}function dHt(n,i){var l;i!=n.a?(l=null,n.a&&(l=v(n.a,54).Th(n,4,y1,l)),i&&(l=v(i,54).Rh(n,4,y1,l)),l=lLe(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,i,i))}function ZDe(n,i){var l;i!=n.e?(n.e&&eBt(INe(n.e),n),i&&(!i.b&&(i.b=new SK(new Due)),uOt(i.b,n)),l=Owr(n,i,null),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,4,i,i))}function xxr(n,i){var l;l=i.o,Bm(n.f)?(n.j.a=u.Math.max(n.j.a,l.a),n.j.b+=l.b,n.d.c.length>1&&(n.j.b+=n.e)):(n.j.a+=l.a,n.j.b=u.Math.max(n.j.b,l.b),n.d.c.length>1&&(n.j.a+=n.e))}function Kv(){Kv=z,Ern=Te(xe(tl,1),Dc,64,0,[(Bt(),or),gr,Mr]),wrn=Te(xe(tl,1),Dc,64,0,[gr,Mr,cr]),xrn=Te(xe(tl,1),Dc,64,0,[Mr,cr,or]),Srn=Te(xe(tl,1),Dc,64,0,[cr,or,gr])}function Sxr(n,i,l,d){var g,y,x,T,R,O,D;if(x=n.c.d,T=n.d.d,x.j!=T.j)for(D=n.b,g=x.j,R=null;g!=T.j;)R=i==0?RZ(g):bLe(g),y=QLe(g,D.d[g.g],l),O=QLe(R,D.d[R.g],l),pi(d,Hi(y,O)),g=R}function Txr(n,i,l,d){var g,y,x,T,R;return x=gqt(n.a,i,l),T=v(x.a,17).a,y=v(x.b,17).a,d&&(R=v(oe(i,(At(),kh)),10),g=v(oe(l,kh),10),R&&g&&(nPt(n.b,R,g),T+=n.b.i,y+=n.b.e)),T>y}function fHt(n){var i,l,d,g,y,x,T,R,O;for(this.a=PGt(n),this.b=new Ot,l=n,d=0,g=l.length;d<g;++d)for(i=l[d],y=new Ot,Lt(this.b,y),T=i,R=0,O=T.length;R<O;++R)x=T[R],Lt(y,new Eh(x.j))}function Cxr(n,i,l){var d,g,y;return y=0,d=l[i],i<l.length-1&&(g=l[i+1],n.b[i]?(y=x8r(n.d,d,g),y+=$de(n.a,d,(Bt(),gr)),y+=$de(n.a,g,cr)):y=igr(n.a,d,g)),n.c[i]&&(y+=Rpr(n.a,d)),y}function Axr(n,i,l,d,g){var y,x,T,R;for(R=null,T=new me(d);T.a<T.c.c.length;)if(x=v(pe(T),453),x!=l&&$l(x.e,g,0)!=-1){R=x;break}y=yfe(g),Uo(y,l.b),lo(y,R.b),Rn(n.a,g,new PX(y,i,l.f))}function kxr(n){var i,l,d,g;if(LT(v(oe(n.b,(qt(),Pd)),88)))return 0;for(i=0,d=new me(n.a);d.a<d.c.c.length;)l=v(pe(d),10),l.k==(lr(),is)&&(g=l.o.a,i=u.Math.max(i,g));return i}function pHt(n){for(;n.g.c!=0&&n.d.c!=0;)Jhe(n.g).c>Jhe(n.d).c?(n.i+=n.g.c,$0e(n.d)):Jhe(n.d).c>Jhe(n.g).c?(n.e+=n.d.c,$0e(n.g)):(n.i+=S9t(n.g),n.e+=S9t(n.d),$0e(n.g),$0e(n.d))}function Rxr(n,i,l){var d,g,y,x;for(y=i.q,x=i.r,new R_((o1(),d2),i,y,1),new R_(d2,y,x,1),g=new me(l);g.a<g.c.c.length;)d=v(pe(g),118),d!=y&&d!=i&&d!=x&&(PPe(n.a,d,i),PPe(n.a,d,x))}function gHt(n,i,l,d){n.a.d=u.Math.min(i,l),n.a.a=u.Math.max(i,d)-n.a.d,i<l?(n.b=.5*(i+l),n.g=ume*n.b+.9*i,n.f=ume*n.b+.9*l):(n.b=.5*(i+d),n.g=ume*n.b+.9*d,n.f=ume*n.b+.9*i)}function Ixr(n){var i,l,d,g;if(n.b!=0){for(i=new Ea,g=Ur(n,0);g.b!=g.d.c;)d=v(Fr(g),40),bo(i,a0e(d)),l=d.e,l.a=v(oe(d,(fa(),jq)),17).a,l.b=v(oe(d,Wq),17).a;return i}return new Ea}function Nxr(n){switch(v(oe(n,(qt(),Lu)),171).g){case 1:_t(n,Lu,(pf(),cP));break;case 2:_t(n,Lu,(pf(),Y4));break;case 3:_t(n,Lu,(pf(),lP));break;case 4:_t(n,Lu,(pf(),u2))}}function Oxr(n,i,l){var d;l.Ug("Self-Loop routing",1),d=svr(i),vX(oe(i,(UQ(),MP))),ts(Bl(Ki(Ki(ic(new xn(null,new Nn(i.b,16)),new D2t),new M2t),new P2t),new B2t),new HRt(n,d)),l.Vg()}function aI(){aI=z,rP=new BL(og,0),Dqe=new BL(r6,1),Bqe=new BL(i6,2),Pqe=new BL("LEFT_RIGHT_CONSTRAINT_LOCKING",3),Mqe=new BL("LEFT_RIGHT_CONNECTION_LOCKING",4),Lqe=new BL(hQt,5)}function mHt(n,i,l){var d,g,y,x,T,R,O;T=l.a/2,y=l.b/2,d=u.Math.abs(i.a-n.a),g=u.Math.abs(i.b-n.b),R=1,O=1,d>T&&(R=T/d),g>y&&(O=y/g),x=u.Math.min(R,O),n.a+=x*(i.a-n.a),n.b+=x*(i.b-n.b)}function Lxr(n,i,l,d,g){var y,x;for(x=!1,y=v(Yt(l.b,0),27);lkr(n,i,y,d,g)&&(x=!0,cEr(l,y),l.b.c.length!=0);)y=v(Yt(l.b,0),27);return l.b.c.length==0&&aG(l.j,l),x&&JZ(i.q),x}function Dxr(n,i){l5();var l,d,g,y;if(i.b<2)return!1;for(y=Ur(i,0),l=v(Fr(y),8),d=l;y.b!=y.d.c;){if(g=v(Fr(y),8),U1e(n,d,g))return!0;d=g}return!!U1e(n,d,l)}function JDe(n,i,l,d){var g,y;return l==0?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),DX(n.o,i,d)):(y=v(qn((g=v(rr(n,16),29),g||n.ii()),l),69),y.wk().Ak(n,Ru(n),l-kr(n.ii()),i,d))}function S1e(n,i){var l;i!=n.sb?(l=null,n.sb&&(l=v(n.sb,54).Th(n,1,XP,l)),i&&(l=v(i,54).Rh(n,1,XP,l)),l=hLe(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,4,i,i))}function Mxr(n,i){var l,d,g,y;if(i)g=Wm(i,"x"),l=new okt(n),S8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new lkt(n),C8(d.a,(hr(y),y));else throw _e(new zp("All edge sections need an end point."))}function Pxr(n,i){var l,d,g,y;if(i)g=Wm(i,"x"),l=new ikt(n),T8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new akt(n),A8(d.a,(hr(y),y));else throw _e(new zp("All edge sections need a start point."))}function Bxr(n,i){var l,d,g,y,x,T,R;for(d=qUt(n),y=0,T=d.length;y<T;++y)oHt(i);for(R=!rp&&n.e?rp?null:n.d:null;R;){for(l=qUt(R),g=0,x=l.length;g<x;++g)oHt(i);R=!rp&&R.e?rp?null:R.d:null}}function bHt(n,i){var l,d;d=v(oe(i,(qt(),Qa)),101),_t(i,(At(),Qqe),d),l=i.e,l&&(ts(new xn(null,new Nn(l.a,16)),new _7e(n)),ts(ic(new xn(null,new Nn(l.b,16)),new rd),new w7e(n)))}function lr(){lr=z,is=new LL("NORMAL",0),Ws=new LL("LONG_EDGE",1),hs=new LL("EXTERNAL_PORT",2),iu=new LL("NORTH_SOUTH_PORT",3),Pc=new LL("LABEL",4),ip=new LL("BREAKING_POINT",5)}function Fxr(n){var i,l,d,g;if(i=!1,ya(n,(At(),sP)))for(l=v(oe(n,sP),85),g=new me(n.j);g.a<g.c.c.length;)d=v(pe(g),12),j3r(d)&&(i||(s4r(So(n)),i=!0),Jvr(v(l.xc(d),314)))}function $xr(n){var i,l,d,g,y,x,T,R,O;return O=HDe(n),l=n.e,y=l!=null,y&&a8(O,Iee,n.e),T=n.k,x=!!T,x&&a8(O,"type",Xhe(n.k)),d=fU(n.j),g=!d,g&&(R=new p_,c1(O,$me,R),i=new kkt(R),To(n.j,i)),O}function Uxr(n){var i,l,d,g;for(g=C_((kd(n.gc(),"size"),new sk),123),d=!0,l=x_(n).Kc();l.Ob();)i=v(l.Pb(),44),d||(g.a+=Xo),d=!1,Kc(C_(Kc(g,i.ld()),61),i.md());return(g.a+="}",g).a}function yHt(n,i){var l,d,g;return i&=63,i<22?(l=n.l<<i,d=n.m<<i|n.l>>22-i,g=n.h<<i|n.m>>22-i):i<44?(l=0,d=n.l<<i-22,g=n.m<<i-22|n.l>>44-i):(l=0,d=0,g=n.l<<i-44),Su(l&Hh,d&Hh,g&rb)}function y4(n){if(nze==null&&(nze=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!nze.test(n))throw _e(new Gp(nx+n+'"'));return parseFloat(n)}function vHt(n,i){var l,d,g,y,x;for(g=i==1?Kbe:Wbe,d=g.a.ec().Kc();d.Ob();)for(l=v(d.Pb(),88),x=v(Zi(n.f.c,l),21).Kc();x.Ob();)y=v(x.Pb(),42),Lt(n.b.b,v(y.b,86)),Lt(n.b.a,v(y.b,86).d)}function zxr(n,i){var l,d,g,y;for(y=i.b.j,n.a=st(Wr,vi,28,y.c.length,15,1),g=0,d=0;d<y.c.length;d++)l=($n(d,y.c.length),v(y.c[d],12)),l.e.c.length==0&&l.g.c.length==0?g+=1:g+=3,n.a[d]=g}function cJ(){cJ=z,Eye=new ML("ALWAYS_UP",0),wye=new ML("ALWAYS_DOWN",1),Sye=new ML("DIRECTION_UP",2),xye=new ML("DIRECTION_DOWN",3),Tye=new ML("SMART_UP",4),Ute=new ML("SMART_DOWN",5)}function Gxr(n,i){if(n<0||i<0)throw _e(new ar("k and n must be positive"));if(i>n)throw _e(new ar("k must be smaller than n"));return i==0||i==n?1:n==0?0:CDe(n)/(CDe(i)*CDe(n-i))}function eMe(n,i){var l,d,g,y;for(l=new m8e(n);l.g==null&&!l.c?WNe(l):l.g==null||l.i!=0&&v(l.g[l.i-1],51).Ob();)if(y=v(pJ(l),58),$e(y,167))for(d=v(y,167),g=0;g<i.length;g++)i[g].Kg(d)}function T1e(n){var i;return n.Db&64?R0e(n):(i=new Ff(R0e(n)),i.a+=" (height: ",ST(i,n.f),i.a+=", width: ",ST(i,n.g),i.a+=", x: ",ST(i,n.i),i.a+=", y: ",ST(i,n.j),i.a+=")",i.a)}function qxr(n){var i,l,d,g,y,x,T;for(i=new Zb,d=n,g=0,y=d.length;g<y;++g)if(l=d[g],x=ni(l.ld()),T=cy(i,x,ni(l.md())),T!=null)throw _e(new ar("duplicate key: "+x));this.b=(Fn(),new xue(i))}function Hxr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],Hm(y,String.fromCharCode(i));return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function tMe(){tMe=z,nGe=(XQ(),cte),tnn=new En(KJ,nGe),Nt(1),enn=new En(BBe,Nt(300)),Nt(0),inn=new En(FBe,Nt(0)),ann=new En(wge,sg),nnn=new En(Ege,5),snn=cte,rnn=zbe}function Vxr(n,i){var l;if(i!=null&&!n.c.Hk().fk(i))throw l=$e(i,58)?v(i,58).Dh().zb:__(cd(i)),_e(new UR(r2+n.c.xe()+"'s type '"+n.c.Hk().xe()+"' does not permit a value of type '"+l+"'"))}function Yxr(n,i,l){var d,g;for(g=new go(n.b,0);g.b<g.d.gc();)d=(Tr(g.b<g.d.gc()),v(g.d.Xb(g.c=g.b++),72)),Ze(oe(d,(At(),Kqe)))===Ze(i)&&(oMe(d.n,So(n.c.i),l),ld(g),Lt(i.b,d))}function _Ht(n){var i,l;return l=u.Math.sqrt((n.k==null&&(n.k=C9e(n,new iwt)),We(n.k)/(n.b*(n.g==null&&(n.g=$$t(n,new F6e)),We(n.g))))),i=ti(xc(u.Math.round(l))),i=u.Math.min(i,n.f),i}function jxr(){var n,i,l;for(i=0,n=0;n<1;n++){if(l=IMe((sr(n,1),"X".charCodeAt(n))),l==0)throw _e(new oi((sr(n,2),"Unknown Option: "+"X".substr(n))));i|=l}return i}function zc(){hh(),lIe.call(this),this.j=(Bt(),lc),this.a=new ho,new Iue,this.f=(kd(2,k4),new gu(2)),this.e=(kd(4,k4),new gu(4)),this.g=(kd(4,k4),new gu(4)),this.b=new YRt(this.e,this.g)}function Wxr(n,i){var l,d;return!(Vt(Ht(oe(i,(At(),ap))))||(d=i.c.i,n==(pf(),lP)&&d.k==(lr(),Pc))||(l=v(oe(d,(qt(),Lu)),171),l==u2))}function Kxr(n,i){var l,d;return!(Vt(Ht(oe(i,(At(),ap))))||(d=i.d.i,n==(pf(),cP)&&d.k==(lr(),Pc))||(l=v(oe(d,(qt(),Lu)),171),l==Y4))}function Xxr(n,i){var l,d,g,y,x,T,R;for(x=n.d,R=n.o,T=new rf(-x.b,-x.d,x.b+R.a+x.c,x.d+R.b+x.a),d=i,g=0,y=d.length;g<y;++g)l=d[g],l&&QD(T,l.i);x.b=-T.c,x.d=-T.d,x.c=T.b-x.b-R.a,x.a=T.a-x.d-R.b}function Qxr(n,i){if(i.a)switch(v(oe(i.b,(At(),Qqe)),101).g){case 0:case 1:gEr(i);case 2:ts(new xn(null,new Nn(i.d,16)),new D6e),J4r(n.a,i)}else ts(new xn(null,new Nn(i.d,16)),new D6e)}function uG(){uG=z,Cje=new RU("CENTER_DISTANCE",0),c2e=new RU("CIRCLE_UNDERLAP",1),kje=new RU("RECTANGLE_UNDERLAP",2),u2e=new RU("INVERTED_OVERLAP",3),Aje=new RU("MINIMUM_ROOT_DISTANCE",4)}function Zxr(n){iPe();var i,l,d,g,y;if(n==null)return null;for(d=n.length,g=d*2,i=st(Tf,rg,28,g,15,1),l=0;l<d;l++)y=n[l],y<0&&(y+=256),i[l*2]=yre[y>>4],i[l*2+1]=yre[y&15];return Qp(i,0,i.length)}function Jxr(n){hQ();var i,l,d;switch(d=n.c.length,d){case 0:return _en;case 1:return i=v(eVt(new me(n)),44),Yur(i.ld(),i.md());default:return l=v(X1(n,st(rw,$J,44,n.c.length,0,1)),173),new J7e(l)}}function eSr(n){var i,l,d,g,y,x;for(i=new FT,l=new FT,Fv(i,n),Fv(l,n);l.b!=l.c;)for(g=v(xk(l),36),x=new me(g.a);x.a<x.c.c.length;)y=v(pe(x),10),y.e&&(d=y.e,Fv(i,d),Fv(l,d));return i}function hy(n,i){switch(i.g){case 1:return vk(n.j,(hh(),AGe));case 2:return vk(n.j,(hh(),TGe));case 3:return vk(n.j,(hh(),RGe));case 4:return vk(n.j,(hh(),IGe));default:return Fn(),Fn(),Zo}}function tSr(n,i){var l,d,g;l=$ur(i,n.e),d=v(br(n.g.f,l),17).a,g=n.a.c.length-1,n.a.c.length!=0&&v(Yt(n.a,g),294).c==d?(++v(Yt(n.a,g),294).a,++v(Yt(n.a,g),294).b):Lt(n.a,new CNt(d))}function nSr(n,i,l){var d,g;return d=yCr(n,i,l),d!=0?d:ya(i,(At(),ua))&&ya(l,ua)?(g=Nc(v(oe(i,ua),17).a,v(oe(l,ua),17).a),g<0?EG(n,i,l):g>0&&EG(n,l,i),g):G4r(n,i,l)}function Xv(){Xv=z,Tln=(Ei(),R6),Cln=bw,wln=mw,Eln=tC,xln=g2,_ln=eC,$Ye=oH,Sln=a3,Gve=(pPe(),cln),qve=uln,zYe=pln,Hve=bln,GYe=gln,qYe=mln,UYe=hln,Nne=dln,One=fln,Kq=yln,HYe=vln,FYe=lln}function wHt(n,i){var l,d,g,y,x;if(n.e<=i||S0r(n,n.g,i))return n.g;for(y=n.r,d=n.g,x=n.r,g=(y-d)/2+d;d+1<y;)l=dM(n,g,!1),l.b<=g&&l.a<=i?(x=g,y=g):d=g,g=(y-d)/2+d;return x}function rSr(n,i,l){var d;d=GYt(n,i,!0),Jqt(l,"Recursive Graph Layout",d),eMe(i,Te(xe(Wje,1),Yn,536,0,[new FTt])),Y1(i,(Ei(),rC))||eMe(i,Te(xe(Wje,1),Yn,536,0,[new Gxt])),tBe(n,i,null,l),EHt(l)}function EHt(n){var i;if(n.p==null)throw _e(new Tl("The task has not begun yet."));n.b||(n.k&&(i=(Pm(),Go(xc(Date.now()),py)),n.q=N_(zf(i,n.o))*1e-9),n.c<n.r&&f9e(n,n.r-n.c),n.b=!0)}function hG(n){var i,l,d;for(d=new ah,pi(d,new Ct(n.j,n.k)),l=new mr((!n.a&&(n.a=new gs(Ud,n,5)),n.a));l.e!=l.i.gc();)i=v(wr(l),377),pi(d,new Ct(i.a,i.b));return pi(d,new Ct(n.b,n.c)),d}function iSr(n,i,l,d,g){var y,x,T,R,O,D;if(g)for(R=g.a.length,y=new S_(R),D=(y.b-y.a)*y.c<0?(Iv(),T2):new Lv(y);D.Ob();)O=v(D.Pb(),17),T=m8(g,O.a),x=new jLt(n,i,l,d),TAr(x.a,x.b,x.c,x.d,T)}function nMe(n,i){var l;if(Ze(n)===Ze(i))return!0;if($e(i,21)){l=v(i,21);try{return n.gc()==l.gc()&&n.Ic(l)}catch(d){if(d=Da(d),$e(d,169)||$e(d,212))return!1;throw _e(d)}}return!1}function C1e(n,i,l,d,g,y){switch(this.c=n,i.g){case 2:if(n.a.Ne(g,l)<0)throw _e(new ar(gBe+g+hXt+l));break;case 1:n.a.Ne(g,g);break;case 3:n.a.Ne(l,l)}this.f=i,this.b=l,this.a=d,this.e=g,this.d=y}function rMe(n,i){var l;Lt(n.d,i),l=i.Mf(),n.c?(n.e.a=u.Math.max(n.e.a,l.a),n.e.b+=l.b,n.d.c.length>1&&(n.e.b+=n.a)):(n.e.a+=l.a,n.e.b=u.Math.max(n.e.b,l.b),n.d.c.length>1&&(n.e.a+=n.a))}function aSr(n){var i,l,d,g;switch(g=n.i,i=g.b,d=g.j,l=g.g,g.a.g){case 0:l.a=(n.g.b.o.a-d.a)/2;break;case 1:l.a=i.d.n.a+i.d.a.a;break;case 2:l.a=i.d.n.a+i.d.a.a-d.a;break;case 3:l.b=i.d.n.b+i.d.a.b}}function sSr(n,i,l){var d,g,y;for(g=new yr(_r(Qm(l).a.Kc(),new S));zr(g);)d=v(Rr(g),18),!Jo(d)&&!(!Jo(d)&&d.c.i.c==d.d.i.c)&&(y=hYt(n,d,l,new g6t),y.c.length>1&&jn(i.c,y))}function xHt(n,i,l,d,g){if(d<i||g<l)throw _e(new ar("The highx must be bigger then lowx and the highy must be bigger then lowy"));return n.a<i?n.a=i:n.a>d&&(n.a=d),n.b<l?n.b=l:n.b>g&&(n.b=g),n}function oSr(n){if($e(n,143))return FTr(v(n,143));if($e(n,233))return kvr(v(n,233));if($e(n,23))return $xr(v(n,23));throw _e(new ar(xUe+Wv(new wh(Te(xe(zs,1),Yn,1,5,[n])))))}function lSr(n,i,l,d,g){var y,x,T;for(y=!0,x=0;x<d;x++)y=y&l[x]==0;if(g==0)Gc(l,d,n,0,i),x=i;else{for(T=32-g,y=y&l[x]<<T==0,x=0;x<i-1;x++)n[x]=l[x+d]>>>g|l[x+d+1]<<T;n[x]=l[x+d]>>>g,++x}return y}function iMe(n,i,l,d){var g,y,x;if(i.k==(lr(),Ws)){for(y=new yr(_r(Hs(i).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),x=g.c.i.k,x==Ws&&n.c.a[g.c.i.c.p]==d&&n.c.a[i.c.p]==l)return!0}return!1}function cSr(n,i){var l,d,g,y;return i&=63,l=n.h&rb,i<22?(y=l>>>i,g=n.m>>i|l<<22-i,d=n.l>>i|n.m<<22-i):i<44?(y=0,g=l>>>i-22,d=n.m>>i-22|n.h<<44-i):(y=0,g=0,d=l>>>i-44),Su(d&Hh,g&Hh,y&rb)}function SHt(n,i,l,d){var g;this.b=d,this.e=n==($E(),_P),g=i[l],this.d=E_(Wh,[kt,Qg],[183,28],16,[g.length,g.length],2),this.a=E_(Wr,[kt,vi],[53,28],15,[g.length,g.length],2),this.c=new $De(i,l)}function uSr(n){var i,l,d;for(n.k=new QNe((Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,n.j.c.length),d=new me(n.j);d.a<d.c.c.length;)l=v(pe(d),113),i=l.d.j,Rn(n.k,i,l);n.e=STr(wk(n.k))}function THt(n,i){var l,d,g;Es(n.d,i),l=new rEt,Ni(n.c,i,l),l.f=S0e(i.c),l.a=S0e(i.d),l.d=(aM(),g=i.c.i.k,g==(lr(),is)||g==ip),l.e=(d=i.d.i.k,d==is||d==ip),l.b=i.c.j==(Bt(),cr),l.c=i.d.j==gr}function hSr(n){var i,l,d,g,y;for(y=qi,g=qi,d=new me(XT(n));d.a<d.c.c.length;)l=v(pe(d),218),i=l.e.e-l.d.e,l.e==n&&i<g?g=i:i<y&&(y=i);return g==qi&&(g=-1),y==qi&&(y=-1),new Ms(Nt(g),Nt(y))}function dSr(n,i){var l,d,g;return g=b5,d=(VD(),wq),g=u.Math.abs(n.b),l=u.Math.abs(i.f-n.b),l<g&&(g=l,d=ste),l=u.Math.abs(n.a),l<g&&(g=l,d=Eq),l=u.Math.abs(i.g-n.a),l<g&&(g=l,d=ate),d}function fSr(n,i){var l,d,g,y;for(l=i.a.o.a,y=new Qb(So(i.a).b,i.c,i.f+1),g=new hL(y);g.b<g.d.gc();)if(d=(Tr(g.b<g.d.gc()),v(g.d.Xb(g.c=g.b++),30)),d.c.a>=l)return sI(n,i,d.p),!0;return!1}function i5(n,i,l,d){var g,y,x,T,R,O;for(x=l.length,y=0,g=-1,O=bFt((sr(i,n.length+1),n.substr(i)),(ide(),_ze)),T=0;T<x;++T)R=l[T].length,R>y&&Bhr(O,bFt(l[T],_ze))&&(g=T,y=R);return g>=0&&(d[0]=i+y),g}function CHt(n){var i;return n.Db&64?T1e(n):(i=new Ed(dUe),!n.a||bi(bi((i.a+=' "',i),n.a),'"'),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function AHt(n,i,l){var d,g,y,x,T;for(T=Iu(n.e.Dh(),i),g=v(n.g,124),d=0,x=0;x<n.i;++x)if(y=g[x],T.am(y.Lk())){if(d==l)return x4(n,x),al(),v(i,69).xk()?y:y.md();++d}throw _e(new Sl(FM+l+ew+d))}function kHt(n){var i,l,d;if(i=n.c,i==2||i==7||i==1)return zi(),zi(),sB;for(d=QPe(n),l=null;(i=n.c)!=2&&i!=7&&i!=1;)l||(l=(zi(),zi(),new jL(1)),V_(l,d),d=l),V_(l,QPe(n));return d}function pSr(n,i,l){return n<0||n>l?pMe(n,l,"start index"):i<0||i>l?pMe(i,l,"end index"):sM("end index (%s) must not be less than start index (%s)",Te(xe(zs,1),Yn,1,5,[Nt(i),Nt(n)]))}function RHt(n,i){var l,d,g,y;for(d=0,g=n.length;d<g;d++){y=n[d];try{y[1]?y[0].Um()&&(i=vhr(i,y)):y[0].Um()}catch(x){if(x=Da(x),$e(x,82))l=x,OK(),ofr($e(l,486)?v(l,486).ke():l);else throw _e(x)}}return i}function sI(n,i,l){var d,g,y;for(l!=i.c+i.b.gc()&&Dkr(i.a,Xmr(i,l-i.c)),y=i.a.c.p,n.a[y]=u.Math.max(n.a[y],i.a.o.a),g=v(oe(i.a,(At(),oP)),15).Kc();g.Ob();)d=v(g.Pb(),72),_t(d,iye,(Qn(),!0))}function gSr(n,i){var l,d,g;g=YTr(i),_t(i,(At(),Mye),g),g&&(d=qi,ol(n.f,g)&&(d=v(Pl(ol(n.f,g)),17).a),l=v(Yt(i.g,0),18),Vt(Ht(oe(l,ap)))||Ni(n,g,Nt(u.Math.min(v(oe(l,ua),17).a,d))))}function IHt(n,i,l){var d,g,y,x,T;for(i.p=-1,T=VE(i,(ll(),_u)).Kc();T.Ob();)for(x=v(T.Pb(),12),g=new me(x.g);g.a<g.c.c.length;)d=v(pe(g),18),y=d.d.i,i!=y&&(y.p<0?l.Fc(d):y.p>0&&IHt(n,y,l));i.p=0}function an(n){var i;this.c=new Ea,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(i=v(n1(rm),9),new nf(i,v(v0(i,i.length),9),0)),this.g=n.f}function mSr(n){var i,l,d,g;for(i=C_(bi(new Ed("Predicates."),"and"),40),l=!0,g=new hL(n);g.b<g.d.gc();)d=(Tr(g.b<g.d.gc()),g.d.Xb(g.c=g.b++)),l||(i.a+=","),i.a+=""+d,l=!1;return(i.a+=")",i).a}function NHt(n,i,l){var d,g,y;if(!(l<=i+2))for(g=(l-i)/2|0,d=0;d<g;++d)y=($n(i+d,n.c.length),v(n.c[i+d],12)),of(n,i+d,($n(l-d-1,n.c.length),v(n.c[l-d-1],12))),$n(l-d-1,n.c.length),n.c[l-d-1]=y}function bSr(n,i,l){var d,g,y,x,T,R,O,D;y=n.d.p,T=y.e,R=y.r,n.g=new YU(R),x=n.d.o.c.p,d=x>0?T[x-1]:st(tm,gy,10,0,0,1),g=T[x],O=x<T.length-1?T[x+1]:st(tm,gy,10,0,0,1),D=i==l-1,D?efe(n.g,g,O):efe(n.g,d,g)}function OHt(n){var i;this.j=new Ot,this.f=new fs,this.b=(i=v(n1(tl),9),new nf(i,v(v0(i,i.length),9),0)),this.d=st(Wr,vi,28,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,15,1),this.g=n}function LHt(n,i){var l,d,g;if(i.c.length!=0){for(l=lHt(n,i),g=!1;!l;)fJ(n,i,!0),g=!0,l=lHt(n,i);g&&fJ(n,i,!1),d=s0e(i),n.b&&n.b.Gg(d),n.a=uzt(n,($n(0,i.c.length),v(i.c[0],27))),LHt(n,d)}}function A1e(n,i){var l,d,g;if(d=qn(n.Dh(),i),l=i-n.ji(),l<0)if(d)if(d.rk())g=n.Ih(d),g>=0?n.ki(g):yMe(n,d);else throw _e(new ar(r2+d.xe()+MM));else throw _e(new ar(kZt+i+RZt));else hf(n,l,d)}function aMe(n){var i,l;if(l=null,i=!1,$e(n,211)&&(i=!0,l=v(n,211).a),i||$e(n,263)&&(i=!0,l=""+v(n,263).a),i||$e(n,493)&&(i=!0,l=""+v(n,493).a),!i)throw _e(new zue(EUe));return l}function sMe(n,i,l){var d,g,y,x,T,R;for(R=Iu(n.e.Dh(),i),d=0,T=n.i,g=v(n.g,124),x=0;x<n.i;++x)if(y=g[x],R.am(y.Lk())){if(l==d)return x;++d,T=x+1}if(l==d)return T;throw _e(new Sl(FM+l+ew+d))}function ySr(n,i){var l,d,g,y;if(n.f.c.length==0)return null;for(y=new fk,d=new me(n.f);d.a<d.c.c.length;)l=v(pe(d),72),g=l.o,y.b=u.Math.max(y.b,g.a),y.a+=g.b;return y.a+=(n.f.c.length-1)*i,y}function vSr(n){var i,l,d,g;for(l=new Ea,bo(l,n.o),d=new G7e;l.b!=0;)i=v(l.b==0?null:(Tr(l.b!=0),cf(l,l.a.a)),515),g=bKt(n,i,!0),g&&Lt(d.a,i);for(;d.a.c.length!=0;)i=v(QUt(d),515),bKt(n,i,!1)}function dy(){dy=z,Kje=new uk(wM,0),Gs=new uk("BOOLEAN",1),Zl=new uk("INT",2),K5=new uk("STRING",3),Fo=new uk("DOUBLE",4),Ra=new uk("ENUM",5),k6=new uk("ENUMSET",6),op=new uk("OBJECT",7)}function QD(n,i){var l,d,g,y,x;d=u.Math.min(n.c,i.c),y=u.Math.min(n.d,i.d),g=u.Math.max(n.c+n.b,i.c+i.b),x=u.Math.max(n.d+n.a,i.d+i.a),g<d&&(l=d,d=g,g=l),x<y&&(l=y,y=x,x=l),WOt(n,d,y,g-d,x-y)}function DHt(n,i){var l,d;if(n.f){for(;i.Ob();)if(l=v(i.Pb(),76),d=l.Lk(),$e(d,102)&&v(d,19).Bb&Sc&&(!n.e||d.pk()!=CN||d.Lj()!=0)&&l.md()!=null)return i.Ub(),!0;return!1}else return i.Ob()}function MHt(n,i){var l,d;if(n.f){for(;i.Sb();)if(l=v(i.Ub(),76),d=l.Lk(),$e(d,102)&&v(d,19).Bb&Sc&&(!n.e||d.pk()!=CN||d.Lj()!=0)&&l.md()!=null)return i.Pb(),!0;return!1}else return i.Sb()}function dh(){dh=z,YKe=Te(xe(Xt,1),kt,2,6,[BUe,cq,Gee,VJt,qee,Xme,Iee]),VKe=Te(xe(Xt,1),kt,2,6,[BUe,"empty",cq,lq,"elementOnly"]),jKe=Te(xe(Xt,1),kt,2,6,[BUe,"preserve","replace",p1]),ko=new XOt}function oMe(n,i,l){var d,g,y;if(i!=l){d=i;do Hi(n,d.c),g=d.e,g&&(y=d.d,_E(n,y.b,y.d),Hi(n,g.n),d=So(g));while(g);d=l;do $s(n,d.c),g=d.e,g&&(y=d.d,ZL(n,y.b,y.d),$s(n,g.n),d=So(g));while(g)}}function k1e(n,i,l,d){var g,y,x,T,R;if(d.f.c+d.i.c==0)for(x=n.a[n.c],T=0,R=x.length;T<R;++T)y=x[T],Ni(d,y,new j$t(n,y,l));return g=v(Pl(ol(d.f,i)),677),g.b=0,g.c=g.f,g.c==0||_5t(v(Yt(g.a,g.b),294)),g}function jk(){jk=z,QI=new DL("MEDIAN_LAYER",0),tP=new DL("TAIL_LAYER",1),XI=new DL("HEAD_LAYER",2),H4=new DL("SPACE_EFFICIENT_LAYER",3),N5=new DL("WIDEST_LAYER",4),I5=new DL("CENTER_LAYER",5)}function lMe(n){var i,l,d,g;for(n.e=0,g=Ur(n.f,0);g.b!=g.d.c;)d=v(Fr(g),10),d.p>=n.d.b.c.length&&(i=new Xc(n.d),i.p=d.p-1,Lt(n.d.b,i),l=new Xc(n.d),l.p=d.p,Lt(n.d.b,l)),po(d,v(Yt(n.d.b,d.p),30))}function cMe(n,i,l){var d,g,y;if(!n.b[i.g]){for(n.b[i.g]=!0,d=l,!d&&(d=new mz),pi(d.b,i),y=n.a[i.g].Kc();y.Ob();)g=v(y.Pb(),65),g.b!=i&&cMe(n,g.b,d),g.c!=i&&cMe(n,g.c,d),pi(d.a,g);return d}return null}function _Sr(n){switch(n.g){case 0:case 1:case 2:return Bt(),or;case 3:case 4:case 5:return Bt(),Mr;case 6:case 7:case 8:return Bt(),cr;case 9:case 10:case 11:return Bt(),gr;default:return Bt(),lc}}function wSr(n,i){var l;return n.c.length==0?!1:(l=Wzt(($n(0,n.c.length),v(n.c[0],18)).c.i),Sd(),l==(g4(),q5)||l==G5?!0:VT(Bl(new xn(null,new Nn(n,16)),new _wt),new pAt(i)))}function R1e(n,i){if($e(i,207))return psr(n,v(i,27));if($e(i,193))return gsr(n,v(i,123));if($e(i,452))return fsr(n,v(i,166));throw _e(new ar(xUe+Wv(new wh(Te(xe(zs,1),Yn,1,5,[i])))))}function PHt(n,i,l){var d,g;if(this.f=n,d=v(br(n.b,i),260),g=d?d.a:0,AOe(l,g),l>=(g/2|0))for(this.e=d?d.c:null,this.d=g;l++<g;)yFt(this);else for(this.c=d?d.b:null;l-- >0;)QOe(this);this.b=i,this.a=null}function ESr(n,i){var l,d;i.a?n5r(n,i):(l=v(Zue(n.b,i.b),60),l&&l==n.a[i.b.f]&&l.a&&l.a!=i.b.a&&l.c.Fc(i.b),d=v(Que(n.b,i.b),60),d&&n.a[d.f]==i.b&&d.a&&d.a!=i.b.a&&i.b.c.Fc(d),Vhe(n.b,i.b))}function BHt(n,i){var l,d;if(l=v(yl(n.b,i),127),v(v(Zi(n.r,i),21),87).dc()){l.n.b=0,l.n.c=0;return}l.n.b=n.C.b,l.n.c=n.C.c,n.A.Hc((ud(),vw))&&cjt(n,i),d=X2r(n,i),G1e(n,i)==(ZT(),b2)&&(d+=2*n.w),l.a.a=d}function FHt(n,i){var l,d;if(l=v(yl(n.b,i),127),v(v(Zi(n.r,i),21),87).dc()){l.n.d=0,l.n.a=0;return}l.n.d=n.C.d,l.n.a=n.C.a,n.A.Hc((ud(),vw))&&ujt(n,i),d=K2r(n,i),G1e(n,i)==(ZT(),b2)&&(d+=2*n.w),l.a.b=d}function xSr(n,i){var l,d,g,y;for(y=new Ot,d=new me(i);d.a<d.c.c.length;)l=v(pe(d),68),Lt(y,new MRe(l,!0)),Lt(y,new MRe(l,!1));g=new dDt(n),g.a.a.$b(),AMt(y,n.b,new wh(Te(xe(Jen,1),Yn,693,0,[g])))}function $Ht(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;return R=n.a,re=n.b,O=i.a,ae=i.b,D=l.a,le=l.b,q=d.a,de=d.b,y=R*ae-re*O,x=D*de-le*q,g=(R-O)*(le-de)-(re-ae)*(D-q),T=(y*(D-q)-x*(R-O))/g,J=(y*(le-de)-x*(re-ae))/g,new Ct(T,J)}function SSr(n,i){var l,d,g;i.Ug("End label pre-processing",1),l=We(at(oe(n,(qt(),U5)))),d=We(at(oe(n,J4))),g=LT(v(oe(n,Pd),88)),ts(ic(new xn(null,new Nn(n.b,16)),new evt),new LOt(l,d,g)),i.Vg()}function uMe(n,i){var l,d,g;if(!n.d[i.p]){for(n.d[i.p]=!0,n.a[i.p]=!0,d=new yr(_r(os(i).a.Kc(),new S));zr(d);)l=v(Rr(d),18),!Jo(l)&&(g=l.d.i,n.a[g.p]?Lt(n.b,l):uMe(n,g));n.a[i.p]=!1}}function UHt(n,i,l){var d;switch(d=0,v(oe(i,(qt(),Lu)),171).g){case 2:d=2*-l+n.a,++n.a;break;case 1:d=-l;break;case 3:d=l;break;case 4:d=2*l+n.b,++n.b}return ya(i,(At(),ua))&&(d+=v(oe(i,ua),17).a),d}function zHt(n,i,l){var d,g,y;for(l.zc(i,n),Lt(n.n,i),y=n.p.zg(i),i.j==n.p.Ag()?Pzt(n.e,y):Pzt(n.j,y),lQ(n),g=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(i),new QA(i)])));zr(g);)d=v(Rr(g),12),l._b(d)||zHt(n,d,l)}function TSr(n,i,l){var d,g,y;for(l.Ug("Processor set neighbors",1),n.a=i.b.b==0?1:i.b.b,g=null,d=Ur(i.b,0);!g&&d.b!=d.d.c;)y=v(Fr(d),40),Vt(Ht(oe(y,(fa(),p2))))&&(g=y);g&&VYt(n,new Mm(g),l),l.Vg()}function hMe(n){var i,l,d;return l=v(Et(n,(Ei(),mw)),21),l.Hc((ud(),o3))?(d=v(Et(n,g2),21),i=new Wo(v(Et(n,tC),8)),d.Hc((qh(),TN))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),i):new ho}function dMe(n){var i,l,d;if(!n.b){for(d=new $St,l=new mk(hM(n));l.e!=l.i.gc();)i=v(j0e(l),19),i.Bb&Sc&&Yr(d,i);h4(d),n.b=new NT((v(ze(bt((Mv(),Zn).o),8),19),d.i),d.g),$h(n).b&=-9}return n.b}function v4(n){var i,l,d;for(l=n.length,d=0;d<l&&(sr(d,n.length),n.charCodeAt(d)<=32);)++d;for(i=l;i>d&&(sr(i-1,n.length),n.charCodeAt(i-1)<=32);)--i;return d>0||i<l?(mo(d,i,n.length),n.substr(d,i-d)):n}function CSr(n,i){var l,d,g,y,x,T,R,O;R=v(YD(wk(i.k),st(tl,Dc,64,2,0,1)),126),O=i.g,l=XMt(i,R[0]),g=KMt(i,R[1]),d=l1e(n,O,l,g),y=XMt(i,R[1]),T=KMt(i,R[0]),x=l1e(n,O,y,T),d<=x?(i.a=l,i.c=g):(i.a=y,i.c=T)}function dG(n){var i;Fn();var l,d,g,y,x,T;if($e(n,59))for(y=0,g=n.gc()-1;y<g;++y,--g)i=n.Xb(y),n.hd(y,n.Xb(g)),n.hd(g,i);else for(l=n.ed(),x=n.fd(n.gc());l.Tb()<x.Vb();)d=l.Pb(),T=x.Ub(),l.Wb(T),x.Wb(d)}function uJ(n,i){var l,d,g,y,x,T;for(T=0,y=new FT,Fv(y,i);y.b!=y.c;)for(x=v(xk(y),219),T+=uqt(x.d,x.e),g=new me(x.b);g.a<g.c.c.length;)d=v(pe(g),36),l=v(Yt(n.b,d.p),219),l.s||(T+=uJ(n,l));return T}function GHt(n,i,l,d,g){var y,x,T,R,O;if(i)for(T=i.Kc();T.Ob();)for(x=v(T.Pb(),10),O=lPe(x,(ll(),_u),l).Kc();O.Ob();)R=v(O.Pb(),12),y=v(Pl(ol(g.f,R)),118),y||(y=new Mz(n.d),jn(d.c,y),zHt(y,R,g))}function qHt(n,i,l){var d,g;lUt(this),i==(LE(),f2)?Es(this.r,n.c):Es(this.w,n.c),l==f2?Es(this.r,n.d):Es(this.w,n.d),THt(this,n),d=S0e(n.c),g=S0e(n.d),gHt(this,d,g,g),this.o=(aM(),u.Math.abs(d-g)<.2)}function HHt(n,i,l){var d,g,y,x,T,R;if(T=v(rr(n.a,8),2035),T!=null)for(g=T,y=0,x=g.length;y<x;++y)null.Um();d=l,n.a.Db&1||(R=new yLt(n,l,i),d.dj(R)),$e(d,686)?v(d,686).fj(n.a):d.cj()==n.a&&d.ej(null)}function ASr(){var n;return Phn?v(lI((Rv(),t0),nw),2044):(rRr(),n=v($e(Qc((Rv(),t0),nw),594)?Qc(t0,nw):new RLt,594),Phn=!0,qRr(n),S8r(n),Ni((TRe(),OKe),n,new V4t),u1e(n),Cl(t0,nw,n),n)}function kSr(n,i,l,d){var g;return g=i5(n,l,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe]),i),g<0&&(g=i5(n,l,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),i)),g<0?!1:(d.d=g,!0)}function RSr(n,i,l,d){var g;return g=i5(n,l,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe]),i),g<0&&(g=i5(n,l,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),i)),g<0?!1:(d.d=g,!0)}function yu(n,i,l){var d,g,y,x;if(x=n.b.Ce(i),g=(d=n.a.get(x),d??st(zs,Yn,1,0,5,1)),g.length==0)n.a.set(x,g);else if(y=ezt(n,i,g),y)return y.nd(l);return Ga(g,g.length,new QK(i,l)),++n.c,++n.b.g,null}function ISr(n){var i,l,d;for(G3r(n),d=new Ot,l=new me(n.a.a.b);l.a<l.c.c.length;)i=v(pe(l),86),Lt(d,new FRe(i,!0)),Lt(d,new FRe(i,!1));b_r(n.c),hz(d,n.b,new wh(Te(xe(Sq,1),Yn,382,0,[n.c]))),t3r(n)}function fG(n,i){var l,d,g;for(g=new Ot,d=new me(n.c.a.b);d.a<d.c.c.length;)l=v(pe(d),60),i.Lb(l)&&(Lt(g,new NRe(l,!0)),Lt(g,new NRe(l,!1)));m_r(n.e),AMt(g,n.d,new wh(Te(xe(Jen,1),Yn,693,0,[n.e])))}function NSr(n){var i,l,d,g;for(l=new Br,g=new me(n.d);g.a<g.c.c.length;)d=v(pe(g),187),i=v(d.of((At(),_6)),18),ol(l.f,i)||Ni(l,i,new aDt(i)),Lt(v(Pl(ol(l.f,i)),466).b,d);return new Eh(new Dm(l))}function OSr(n,i){var l,d,g,y,x;for(d=new RMt(n.j.c.length),l=null,y=new me(n.j);y.a<y.c.c.length;)g=v(pe(y),12),g.j!=l&&(d.b==d.c||aYt(d,l,i),gOe(d),l=g.j),x=zVt(g),x&&cOe(d,x);d.b==d.c||aYt(d,l,i)}function LSr(n,i){var l,d,g;for(d=new go(n.b,0);d.b<d.d.gc();)l=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),72)),g=v(oe(l,(qt(),pg)),278),g==(W1(),s3)&&(ld(d),Lt(i.b,l),ya(l,(At(),_6))||_t(l,_6,n))}function DSr(n){var i,l,d,g,y;for(i=Gm(new yr(_r(os(n).a.Kc(),new S))),g=new yr(_r(Hs(n).a.Kc(),new S));zr(g);)d=v(Rr(g),18),l=d.c.i,y=Gm(new yr(_r(os(l).a.Kc(),new S))),i=u.Math.max(i,y);return Nt(i)}function fMe(n,i,l){var d,g,y;d=v(Et(n,(Ei(),rH)),21),g=0,y=0,i.a>l.a&&(d.Hc((q_(),PP))?g=(i.a-l.a)/2:d.Hc(BP)&&(g=i.a-l.a)),i.b>l.b&&(d.Hc((q_(),$P))?y=(i.b-l.b)/2:d.Hc(FP)&&(y=i.b-l.b)),WDe(n,g,y)}function VHt(n,i,l,d,g,y,x,T,R,O,D,q,J){$e(n.Cb,90)&&_4($h(v(n.Cb,90)),4),mu(n,l),n.f=x,j8(n,T),K8(n,R),Y8(n,O),W8(n,D),oy(n,q),X8(n,J),sy(n,!0),ny(n,g),n.Zk(y),U_(n,i),d!=null&&(n.i=null,uZ(n,d))}function pMe(n,i,l){if(n<0)return sM(GKt,Te(xe(zs,1),Yn,1,5,[l,Nt(n)]));if(i<0)throw _e(new ar(qKt+i));return sM("%s (%s) must not be greater than size (%s)",Te(xe(zs,1),Yn,1,5,[l,Nt(n),Nt(i)]))}function gMe(n,i,l,d,g,y){var x,T,R,O;if(x=d-l,x<7){bvr(i,l,d,y);return}if(R=l+g,T=d+g,O=R+(T-R>>1),gMe(i,n,R,O,-g,y),gMe(i,n,O,T,-g,y),y.Ne(n[O-1],n[O])<=0){for(;l<d;)Ga(i,l++,n[R++]);return}Tyr(n,R,O,T,i,l,d,y)}function MSr(n,i){var l,d,g,y,x,T,R;for(R=i.d,g=i.b.j,T=new me(R);T.a<T.c.c.length;)for(x=v(pe(T),105),y=st(Wh,Qg,28,g.c.length,16,1),Ni(n.b,x,y),l=x.a.d.p-1,d=x.c.d.p;l!=d;)l=(l+1)%g.c.length,y[l]=!0}function PSr(n,i){if(u9e(),ya(n,(At(),ua))&&ya(i,ua))return Nc(v(oe(n,ua),17).a,v(oe(i,ua),17).a);throw _e(new ik("The BF model order layer assigner requires all real nodes to have a model order."))}function BSr(n,i){if(h9e(),ya(n,(At(),ua))&&ya(i,ua))return Nc(v(oe(n,ua),17).a,v(oe(i,ua),17).a);throw _e(new ik("The DF model order layer assigner requires all real nodes to have a model order."))}function FSr(n,i){for(n.r=new Mz(n.p),krr(n.r,n),bo(n.r.j,n.j),xd(n.j),pi(n.j,i),pi(n.r.e,i),lQ(n),lQ(n.r);n.f.c.length!=0;)UIt(v(Yt(n.f,0),132));for(;n.k.c.length!=0;)UIt(v(Yt(n.k,0),132));return n.r}function I1e(n,i,l){var d,g,y;if(g=qn(n.Dh(),i),d=i-n.ji(),d<0)if(g)if(g.rk())y=n.Ih(g),y>=0?n.bi(y,l):VMe(n,g,l);else throw _e(new ar(r2+g.xe()+MM));else throw _e(new ar(kZt+i+RZt));else df(n,d,g,l)}function YHt(n){var i,l;if(n.f){for(;n.n>0;){if(i=v(n.k.Xb(n.n-1),76),l=i.Lk(),$e(l,102)&&v(l,19).Bb&Sc&&(!n.e||l.pk()!=CN||l.Lj()!=0)&&i.md()!=null)return!0;--n.n}return!1}else return n.n>0}function jHt(n){var i,l,d,g;if(l=v(n,54)._h(),l)try{if(d=null,i=lI((Rv(),t0),Ojt(Rvr(l))),i&&(g=i.ai(),g&&(d=g.Fl(kir(l.e)))),d&&d!=n)return jHt(d)}catch(y){if(y=Da(y),!$e(y,63))throw _e(y)}return n}function $Sr(n,i,l){var d,g,y;l.Ug("Remove overlaps",1),l.dh(i,T$e),d=v(Et(i,(UT(),Y5)),27),n.f=d,n.a=K0e(v(Et(i,(Xv(),Kq)),300)),g=at(Et(i,(Ei(),bw))),o7e(n,(hr(g),g)),y=E4(d),eKt(n,i,y,l),l.dh(i,Eee)}function USr(n){var i,l,d;if(Vt(Ht(Et(n,(Ei(),aH))))){for(d=new Ot,l=new yr(_r(eb(n).a.Kc(),new S));zr(l);)i=v(Rr(l),74),KE(i)&&Vt(Ht(Et(i,x2e)))&&jn(d.c,i);return d}else return Fn(),Fn(),Zo}function WHt(n){if(!n)return W6t(),Ren;var i=n.valueOf?n.valueOf():n;if(i!==n){var l=bbe[typeof i];return l?l(i):iLe(typeof i)}else return n instanceof Array||n instanceof u.Array?new t7e(n):new iU(n)}function KHt(n,i,l){var d,g,y;switch(y=n.o,d=v(yl(n.p,l),252),g=d.i,g.b=JD(d),g.a=ZD(d),g.b=u.Math.max(g.b,y.a),g.b>y.a&&!i&&(g.b=y.a),g.c=-(g.b-y.a)/2,l.g){case 1:g.d=-g.a;break;case 3:g.d=y.b}tpe(d),npe(d)}function XHt(n,i,l){var d,g,y;switch(y=n.o,d=v(yl(n.p,l),252),g=d.i,g.b=JD(d),g.a=ZD(d),g.a=u.Math.max(g.a,y.b),g.a>y.b&&!i&&(g.a=y.b),g.d=-(g.a-y.b)/2,l.g){case 4:g.c=-g.b;break;case 2:g.c=y.a}tpe(d),npe(d)}function zSr(n,i){var l,d,g,y,x;if(!i.dc()){if(g=v(i.Xb(0),131),i.gc()==1){AYt(n,g,g,1,0,i);return}for(l=1;l<i.gc();)(g.j||!g.o)&&(y=j_r(i,l),y&&(d=v(y.a,17).a,x=v(y.b,131),AYt(n,g,x,l,d,i),l=d+1,g=x))}}function GSr(n){var i,l,d,g,y,x;for(x=new Eh(n.d),us(x,new P_t),i=(EJ(),Te(xe(pqe,1),wt,276,0,[cye,dye,lye,gye,hye,uye,pye,fye])),l=0,y=new me(x);y.a<y.c.c.length;)g=v(pe(y),105),d=i[l%i.length],z4r(g,d),++l}function qSr(n,i){l5();var l,d,g,y;if(i.b<2)return!1;for(y=Ur(i,0),l=v(Fr(y),8),d=l;y.b!=y.d.c;){if(g=v(Fr(y),8),!(O8(n,d)&&O8(n,g)))return!1;d=g}return!!(O8(n,d)&&O8(n,l))}function mMe(n,i){var l,d,g,y,x,T,R,O,D,q;return D=null,q=n,x=Wm(q,"x"),l=new dkt(i),wgr(l.a,x),T=Wm(q,"y"),d=new fkt(i),Egr(d.a,T),R=Wm(q,Mme),g=new pkt(i),xgr(g.a,R),O=Wm(q,Dme),y=new gkt(i),D=(Sgr(y.a,O),O),D}function _4(n,i){sjt(n,i),n.b&1&&(n.a.a=null),n.b&2&&(n.a.f=null),n.b&4&&(n.a.g=null,n.a.i=null),n.b&16&&(n.a.d=null,n.a.e=null),n.b&8&&(n.a.b=null),n.b&32&&(n.a.j=null,n.a.c=null)}function HSr(n,i){var l,d,g;if(g=0,i.length>0)try{g=Nd(i,Po,qi)}catch(y){throw y=Da(y),$e(y,130)?(d=y,_e(new VQ(d))):_e(y)}return l=(!n.a&&(n.a=new Tue(n)),n.a),g<l.i&&g>=0?v(ze(l,g),58):null}function VSr(n,i){if(n<0)return sM(GKt,Te(xe(zs,1),Yn,1,5,["index",Nt(n)]));if(i<0)throw _e(new ar(qKt+i));return sM("%s (%s) must be less than size (%s)",Te(xe(zs,1),Yn,1,5,["index",Nt(n),Nt(i)]))}function YSr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],y.a?bi(y.a,y.b):y.a=new Ed(y.d),VL(y.a,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function jSr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],y.a?bi(y.a,y.b):y.a=new Ed(y.d),VL(y.a,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function WSr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],y.a?bi(y.a,y.b):y.a=new Ed(y.d),VL(y.a,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function KSr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],y.a?bi(y.a,y.b):y.a=new Ed(y.d),VL(y.a,""+i);return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function QHt(n,i){var l,d,g,y,x,T;for(l=n.b.c.length,g=Yt(n.b,i);i*2+1<l&&(d=(y=2*i+1,x=y+1,T=y,x<l&&n.a.Ne(Yt(n.b,x),Yt(n.b,y))<0&&(T=x),T),!(n.a.Ne(g,Yt(n.b,d))<0));)of(n.b,i,Yt(n.b,d)),i=d;of(n.b,i,g)}function N1e(n,i,l){var d,g;return d=l.d,g=l.e,n.g[d.d]<=n.i[i.d]&&n.i[i.d]<=n.i[d.d]&&n.g[g.d]<=n.i[i.d]&&n.i[i.d]<=n.i[g.d]?!(n.i[d.d]<n.i[g.d]):n.i[d.d]<n.i[g.d]}function XSr(n,i){var l;if(l=v(oe(i,(qt(),hP)),322),l!=n)throw _e(new ik("The hierarchy aware processor "+l+" in child node "+i+" is only allowed if the root node specifies the same hierarchical processor."))}function QSr(n,i){var l,d,g,y,x;for(d=(!i.s&&(i.s=new vt(Ju,i,21,17)),i.s),y=null,g=0,x=d.i;g<x;++g)switch(l=v(ze(d,g),179),RE(Al(n,l))){case 2:case 3:!y&&(y=new Ot),jn(y.c,l)}return y||(Fn(),Fn(),Zo)}function ZHt(n,i,l){var d,g,y,x,T,R;for(R=ka,y=new me(mYt(n.b));y.a<y.c.c.length;)for(g=v(pe(y),177),T=new me(mYt(i.b));T.a<T.c.c.length;)x=v(pe(T),177),d=_br(g.a,g.b,x.a,x.b,l),R=u.Math.min(R,d);return R}function Bs(n,i){if(!i)throw _e(new ZA);if(n.j=i,!n.d)switch(n.j.g){case 1:n.a.a=n.o.a/2,n.a.b=0;break;case 2:n.a.a=n.o.a,n.a.b=n.o.b/2;break;case 3:n.a.a=n.o.a/2,n.a.b=n.o.b;break;case 4:n.a.a=0,n.a.b=n.o.b/2}}function ZSr(n,i){var l,d,g;return $e(i.g,10)&&v(i.g,10).k==(lr(),hs)?ka:(g=Nk(i),g?u.Math.max(0,n.b/2-.5):(l=qT(i),l?(d=We(at(p4(l,(qt(),Sx)))),u.Math.max(0,d/2-.5)):ka))}function JSr(n,i){var l,d,g;return $e(i.g,10)&&v(i.g,10).k==(lr(),hs)?ka:(g=Nk(i),g?u.Math.max(0,n.b/2-.5):(l=qT(i),l?(d=We(at(p4(l,(qt(),Sx)))),u.Math.max(0,d/2-.5)):ka))}function e4r(n,i){_0();var l,d,g,y,x,T;for(l=null,x=i.Kc();x.Ob();)y=v(x.Pb(),131),!y.o&&(d=Lsr(y.a),g=Uur(y.a),T=new uM(d,g,null,v(y.d.a.ec().Kc().Pb(),18)),Lt(T.c,y.a),jn(n.c,T),l&&Lt(l.d,T),l=T)}function t4r(n){var i,l,d,g,y,x;for(x=MD(n.d,n.e),y=x.Kc();y.Ob();)for(g=v(y.Pb(),12),d=n.e==(Bt(),cr)?g.e:g.g,l=new me(d);l.a<l.c.c.length;)i=v(pe(l),18),!Jo(i)&&i.c.i.c!=i.d.i.c&&(tSr(n,i),++n.f,++n.c)}function JHt(n,i){var l,d;if(i.dc())return Fn(),Fn(),Zo;for(d=new Ot,Lt(d,Nt(Po)),l=1;l<n.f;++l)n.a==null&&ajt(n),n.a[l]&&Lt(d,Nt(l));return d.c.length==1?(Fn(),Fn(),Zo):(Lt(d,Nt(qi)),hkr(i,d))}function n4r(n,i){var l,d,g,y,x,T,R;x=i.c.i.k!=(lr(),is),R=x?i.d:i.c,l=hwr(i,R).i,g=v(br(n.k,R),125),d=n.i[l.p].a,yOt(R.i)<(l.c?$l(l.c.a,l,0):-1)?(y=g,T=d):(y=d,T=g),C0(m0(g0(b0(p0(new Bf,0),4),y),T))}function r4r(n,i,l){var d,g,y,x,T,R;if(l)for(g=l.a.length,d=new S_(g),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),R=a1e(n,Wk(s4(l,x.a))),R&&(y=(!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),Yr(y,R))}function i4r(n,i,l){var d,g,y,x,T,R;if(l)for(g=l.a.length,d=new S_(g),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),R=a1e(n,Wk(s4(l,x.a))),R&&(y=(!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c),Yr(y,R))}function pG(n,i,l){var d,g;d=i.a&n.f,i.b=n.b[d],n.b[d]=i,g=i.f&n.f,i.d=n.c[g],n.c[g]=i,l?(i.e=l.e,i.e?i.e.c=i:n.a=i,i.c=l.c,i.c?i.c.e=i:n.e=i):(i.e=n.e,i.c=null,n.e?n.e.c=i:n.a=i,n.e=i),++n.i,++n.g}function eVt(n){var i,l,d;if(i=n.Pb(),!n.Ob())return i;for(d=Kc(bi(new Cv,"expected one element but was: <"),i),l=0;l<4&&n.Ob();l++)Kc((d.a+=Xo,d),n.Pb());throw n.Ob()&&(d.a+=", ..."),d.a+=">",_e(new ar(d.a))}function a4r(n){var i,l;return l=-n.a,i=Te(xe(Tf,1),rg,28,15,[43,48,48,48,48]),l<0&&(i[0]=45,l=-l),i[1]=i[1]+((l/60|0)/10|0)&vs,i[2]=i[2]+(l/60|0)%10&vs,i[3]=i[3]+(l%60/10|0)&vs,i[4]=i[4]+l%10&vs,Qp(i,0,i.length)}function bMe(n){var i,l,d,g;for(n.g=new UD(v(ni(tl),297)),d=0,l=(Bt(),or),i=0;i<n.j.c.length;i++)g=v(Yt(n.j,i),12),g.j!=l&&(d!=i&&Sk(n.g,l,new Ms(Nt(d),Nt(i))),l=g.j,d=i);Sk(n.g,l,new Ms(Nt(d),Nt(i)))}function s4r(n){var i,l,d,g,y,x,T;for(d=0,l=new me(n.b);l.a<l.c.c.length;)for(i=v(pe(l),30),y=new me(i.a);y.a<y.c.c.length;)for(g=v(pe(y),10),g.p=d++,T=new me(g.j);T.a<T.c.c.length;)x=v(pe(T),12),x.p=d++}function yMe(n,i){var l,d,g;if(g=h5((dh(),ko),n.Dh(),i),g)al(),v(g,69).xk()||(g=Ik(Al(ko,g))),d=(l=n.Ih(g),v(l>=0?n.Lh(l,!0,!0):XE(n,g,!0),160)),v(d,220).Zl(i);else throw _e(new ar(r2+i.xe()+MM))}function vMe(n){var i,l;return n>-0x800000000000&&n<0x800000000000?n==0?0:(i=n<0,i&&(n=-n),l=Ps(u.Math.floor(u.Math.log(n)/.6931471805599453)),(!i||n!=u.Math.pow(2,l))&&++l,l):fUt(xc(n))}function o4r(n){var i,l,d,g,y,x,T;for(y=new Hp,l=new me(n);l.a<l.c.c.length;)i=v(pe(l),132),x=i.a,T=i.b,!(y.a._b(x)||y.a._b(T))&&(g=x,d=T,x.e.b+x.j.b>2&&T.e.b+T.j.b<=2&&(g=T,d=x),y.a.zc(g,y),g.q=d);return y}function l4r(n,i,l){l.Ug("Eades radial",1),l.dh(i,Eee),n.d=v(Et(i,(UT(),Y5)),27),n.c=We(at(Et(i,(Xv(),One)))),n.e=K0e(v(Et(i,Kq),300)),n.a=Bvr(v(Et(i,HYe),434)),n.b=rEr(v(Et(i,UYe),354)),$wr(n),l.dh(i,Eee)}function c4r(n,i){if(i.Ug("Target Width Setter",1),Y1(n,(Z1(),n2e)))sa(n,(Vg(),r3),at(Et(n,n2e)));else throw _e(new Gb("A target width has to be set if the TargetWidthWidthApproximator should be used."));i.Vg()}function tVt(n,i){var l,d,g;return d=new Jm(n),Ul(d,i),_t(d,(At(),Kte),i),_t(d,(qt(),Qa),(co(),su)),_t(d,fg,(qg(),Hne)),g_(d,(lr(),hs)),l=new zc,rc(l,d),Bs(l,(Bt(),cr)),g=new zc,rc(g,d),Bs(g,gr),d}function nVt(n){switch(n.g){case 0:return new Fue(($E(),qq));case 1:return new vTt;case 2:return new _Tt;default:throw _e(new ar("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function rVt(n,i){var l,d,g,y,x;for(n.c[i.p]=!0,Lt(n.a,i),x=new me(i.j);x.a<x.c.c.length;)for(y=v(pe(x),12),d=new V1(y.b);nc(d.a)||nc(d.b);)l=v(nc(d.a)?pe(d.a):pe(d.b),18),g=c2r(y,l).i,n.c[g.p]||rVt(n,g)}function iVt(n){var i,l,d,g,y,x,T;for(x=0,l=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));l.e!=l.i.gc();)i=v(wr(l),27),T=i.g,g=i.f,d=u.Math.sqrt(T*T+g*g),x=u.Math.max(d,x),y=iVt(i),x=u.Math.max(y,x);return x}function Ah(){Ah=z,v2=new GL("OUTSIDE",0),ub=new GL("INSIDE",1),pH=new GL("NEXT_TO_PORT_IF_POSSIBLE",2),jP=new GL("ALWAYS_SAME_SIDE",3),YP=new GL("ALWAYS_OTHER_SAME_SIDE",4),L6=new GL("SPACE_EFFICIENT",5)}function aVt(n,i,l){var d,g,y,x,T,R;return d=d1r(n,(g=(kv(),y=new bL,y),l&&yJ(g,l),g),i),I8(d,zm(i,ug)),sJ(i,d),x3r(i,d),mMe(i,d),x=i,T=ME(x,"ports"),R=new G8t(n,d),oTr(R.a,R.b,T),c0e(n,i,d),gbr(n,i,d),d}function u4r(n){var i,l;return l=-n.a,i=Te(xe(Tf,1),rg,28,15,[43,48,48,58,48,48]),l<0&&(i[0]=45,l=-l),i[1]=i[1]+((l/60|0)/10|0)&vs,i[2]=i[2]+(l/60|0)%10&vs,i[4]=i[4]+(l%60/10|0)&vs,i[5]=i[5]+l%10&vs,Qp(i,0,i.length)}function h4r(n){var i;return i=Te(xe(Tf,1),rg,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(i[3]=43,n=-n),i[4]=i[4]+((n/60|0)/10|0)&vs,i[5]=i[5]+(n/60|0)%10&vs,i[7]=i[7]+(n%60/10|0)&vs,i[8]=i[8]+n%10&vs,Qp(i,0,i.length)}function d4r(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d<g;++d)i=l[d],y.a?bi(y.a,y.b):y.a=new Ed(y.d),VL(y.a,""+sD(i));return y.a?y.e.length==0?y.a.a:y.a.a+(""+y.e):y.c}function _Me(n,i){var l,d,g;for(g=qi,d=new me(XT(i));d.a<d.c.c.length;)l=v(pe(d),218),l.f&&!n.c[l.c]&&(n.c[l.c]=!0,g=u.Math.min(g,_Me(n,OZ(l,i))));return n.i[i.d]=n.j,n.g[i.d]=u.Math.min(g,n.j++),n.g[i.d]}function sVt(n,i){var l,d,g;for(g=v(v(Zi(n.r,i),21),87).Kc();g.Ob();)d=v(g.Pb(),117),d.e.b=(l=d.b,l.pf((Ei(),jh))?l.ag()==(Bt(),or)?-l.Mf().b-We(at(l.of(jh))):We(at(l.of(jh))):l.ag()==(Bt(),or)?-l.Mf().b:0)}function f4r(n){var i,l,d,g,y,x,T;for(l=y8e(n.e),y=Vp(ZL(Eo(b8e(n.e)),n.d*n.a,n.c*n.b),-.5),i=l.a-y.a,g=l.b-y.b,T=0;T<n.c;T++){for(d=i,x=0;x<n.d;x++)Avr(n.e,new rf(d,g,n.a,n.b))&&CJ(n,x,T,!1,!0),d+=n.a;g+=n.b}}function wMe(n){var i,l,d,g,y;i=n.a,l=n.b,g=n.c,d=new Ct(l.e.a+l.f.a/2,l.e.b+l.f.b/2),y=new Ct(g.e.a+g.f.a/2,g.e.b+g.f.b/2),qa(i,d,i.a,i.a.a),qa(i,y,i.c.b,i.c),mHt(d,v(gf(i,1),8),n.b.f),mHt(y,v(gf(i,i.b-2),8),n.c.f)}function Wk(n){var i,l;if(l=!1,$e(n,211))return l=!0,v(n,211).a;if(!l&&$e(n,263)&&(i=v(n,263).a%1==0,i))return l=!0,Nt(Kar(v(n,263).a));throw _e(new zp("Id must be a string or an integer: '"+n+"'."))}function p4r(n,i){var l,d,g,y,x,T;for(y=null,g=new W9t((!n.a&&(n.a=new Tue(n)),n.a));CMe(g);)if(l=v(pJ(g),58),d=(x=l.Dh(),T=(u5(x),x.o),!T||!l.Xh(T)?null:pIe(i0e(T),l.Mh(T))),d!=null&&An(d,i)){y=l;break}return y}function oVt(n,i,l){var d,g,y,x,T;if(kd(l,"occurrences"),l==0)return T=v(d4(Ak(n.a),i),16),T?T.gc():0;if(x=v(d4(Ak(n.a),i),16),!x)return 0;if(y=x.gc(),l>=y)x.$b();else for(g=x.Kc(),d=0;d<l;d++)g.Pb(),g.Qb();return y}function g4r(n,i,l){var d,g,y,x;return kd(l,"oldCount"),kd(0,"newCount"),d=v(d4(Ak(n.a),i),16),(d?d.gc():0)==l?(kd(0,"count"),g=(y=v(d4(Ak(n.a),i),16),y?y.gc():0),x=-g,x>0?iRe():x<0&&oVt(n,i,-x),!0):!1}function ZD(n){var i,l,d,g,y,x,T;if(T=0,n.b==0){for(x=qGt(n,!0),i=0,d=x,g=0,y=d.length;g<y;++g)l=d[g],l>0&&(T+=l,++i);i>1&&(T+=n.c*(i-1))}else T=s7t(Zfe(e4(Ki(fNe(n.a),new zn),new vn)));return T>0?T+n.n.d+n.n.a:0}function JD(n){var i,l,d,g,y,x,T;if(T=0,n.b==0)T=s7t(Zfe(e4(Ki(fNe(n.a),new Wn),new Dn)));else{for(x=HGt(n,!0),i=0,d=x,g=0,y=d.length;g<y;++g)l=d[g],l>0&&(T+=l,++i);i>1&&(T+=n.c*(i-1))}return T>0?T+n.n.b+n.n.c:0}function m4r(n){var i,l;if(n.c.length!=2)throw _e(new Tl("Order only allowed for two paths."));i=($n(0,n.c.length),v(n.c[0],18)),l=($n(1,n.c.length),v(n.c[1],18)),i.d.i!=l.c.i&&(n.c.length=0,jn(n.c,l),jn(n.c,i))}function lVt(n,i,l){var d;for(DT(l,i.g,i.f),ef(l,i.i,i.j),d=0;d<(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i;d++)lVt(n,v(ze((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),d),27),v(ze((!l.a&&(l.a=new vt(Pi,l,10,11)),l.a),d),27))}function b4r(n,i){var l,d,g,y;for(y=v(yl(n.b,i),127),l=y.a,g=v(v(Zi(n.r,i),21),87).Kc();g.Ob();)d=v(g.Pb(),117),d.c&&(l.a=u.Math.max(l.a,HIe(d.c)));if(l.a>0)switch(i.g){case 2:y.n.c=n.s;break;case 4:y.n.b=n.s}}function y4r(n,i){var l,d,g;return l=v(oe(i,(A0(),g6)),17).a-v(oe(n,g6),17).a,l==0?(d=$s(Eo(v(oe(n,(Uv(),xq)),8)),v(oe(n,JM),8)),g=$s(Eo(v(oe(i,xq),8)),v(oe(i,JM),8)),ha(d.a*d.b,g.a*g.b)):l}function v4r(n,i){var l,d,g;return l=v(oe(i,(pc(),Ane)),17).a-v(oe(n,Ane),17).a,l==0?(d=$s(Eo(v(oe(n,(fa(),Yq)),8)),v(oe(n,gN),8)),g=$s(Eo(v(oe(i,Yq),8)),v(oe(i,gN),8)),ha(d.a*d.b,g.a*g.b)):l}function cVt(n){var i,l;return l=new Cv,l.a+="e_",i=dbr(n),i!=null&&(l.a+=""+i),n.c&&n.d&&(bi((l.a+=" ",l),tJ(n.c)),bi(Kc((l.a+="[",l),n.c.i),"]"),bi((l.a+=Tge,l),tJ(n.d)),bi(Kc((l.a+="[",l),n.d.i),"]")),l.a}function uVt(n){switch(n.g){case 0:return new RTt;case 1:return new ITt;case 2:return new ATt;case 3:return new CTt;default:throw _e(new ar("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function EMe(n,i,l,d,g){var y;switch(y=0,g.g){case 1:y=u.Math.max(0,i.b+n.b-(l.b+d));break;case 3:y=u.Math.max(0,-n.b-d);break;case 2:y=u.Math.max(0,-n.a-d);break;case 4:y=u.Math.max(0,i.a+n.a-(l.a+d))}return y}function _4r(n,i,l){var d,g,y,x,T;if(l)for(g=l.a.length,d=new S_(g),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),y=m8(l,x.a),mUe in y.a||$me in y.a?DCr(n,y,i):JRr(n,y,i),Qsr(v(br(n.b,Z8(y)),74))}function xMe(n){var i,l;switch(n.b){case-1:return!0;case 0:return l=n.t,l>1||l==-1?(n.b=-1,!0):(i=Gf(n),i&&(al(),i.lk()==IJt)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function SMe(n,i){var l,d,g,y;if($i(n),n.c!=0||n.a!=123)throw _e(new oi(fi((ii(),ZZt))));if(y=i==112,d=n.d,l=ZR(n.i,125,d),l<0)throw _e(new oi(fi((ii(),JZt))));return g=af(n.i,d,l),n.d=l+1,DBt(g,y,(n.e&512)==512)}function hVt(n){var i,l,d,g,y,x,T;if(d=n.a.c.length,d>0)for(x=n.c.d,T=n.d.d,g=Vp($s(new Ct(T.a,T.b),x),1/(d+1)),y=new Ct(x.a,x.b),l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),250),i.d.a=y.a+g.a,i.d.b=y.b+g.b,Hi(y,g)}function w4r(n,i){var l,d,g;if(!i)Hfe(n,null),k8(n,null);else if(i.i&4)for(d="[]",l=i.c;;l=l.c){if(!(l.i&4)){g=nRe((Fm(l),l.o+d)),Hfe(n,g),k8(n,g);break}d+="[]"}else g=nRe((Fm(i),i.o)),Hfe(n,g),k8(n,g);n.hl(i)}function eM(n,i,l,d,g){var y,x,T,R;return R=Zhe(n,v(g,58)),Ze(R)!==Ze(g)?(T=v(n.g[l],76),y=zg(i,R),KL(n,l,y1e(n,l,y)),id(n.e)&&(x=Bv(n,9,y.Lk(),g,R,d,!1),MDe(x,new Vm(n.e,9,n.c,T,y,d,!1)),Ofe(x)),R):g}function E4r(n,i,l){var d,g,y,x,T,R;for(d=v(Zi(n.c,i),15),g=v(Zi(n.c,l),15),y=d.fd(d.gc()),x=g.fd(g.gc());y.Sb()&&x.Sb();)if(T=v(y.Ub(),17),R=v(x.Ub(),17),T!=R)return Nc(T.a,R.a);return!y.Ob()&&!x.Ob()?0:y.Ob()?1:-1}function x4r(n){var i,l,d,g,y,x,T;for(T=Pg(n.c.length),g=new me(n);g.a<g.c.c.length;){for(d=v(pe(g),10),x=new fs,y=os(d),l=new yr(_r(y.a.Kc(),new S));zr(l);)i=v(Rr(l),18),i.c.i==i.d.i||Es(x,i.d.i);jn(T.c,x)}return T}function dVt(n,i){var l,d,g;try{return g=M0r(n.a,i),g}catch(y){if(y=Da(y),$e(y,33)){try{if(d=Nd(i,Po,qi),l=n1(n.a),d>=0&&d<l.length)return l[d]}catch(x){if(x=Da(x),!$e(x,130))throw _e(x)}return null}else throw _e(y)}}function O1e(n,i){var l,d,g;if(g=h5((dh(),ko),n.Dh(),i),g)return al(),v(g,69).xk()||(g=Ik(Al(ko,g))),d=(l=n.Ih(g),v(l>=0?n.Lh(l,!0,!0):XE(n,g,!0),160)),v(d,220).Wl(i);throw _e(new ar(r2+i.xe()+Ime))}function S4r(){CRe();var n;return phn?v(lI((Rv(),t0),Yf),2038):(Ai(rw,new P4t),v7r(),n=v($e(Qc((Rv(),t0),Yf),560)?Qc(t0,Yf):new kLt,560),phn=!0,_8r(n),A8r(n),Ni((TRe(),OKe),n,new ZSt),Cl(t0,Yf,n),n)}function T4r(n,i){var l,d,g,y;n.j=-1,id(n.e)?(l=n.i,y=n.i!=0,gz(n,i),d=new Vm(n.e,3,n.c,null,i,l,y),g=i.zl(n.e,n.c,null),g=Vqt(n,i,g),g?(g.nj(d),g.oj()):Vi(n.e,d)):(gz(n,i),g=i.zl(n.e,n.c,null),g&&g.oj())}function hJ(n,i){var l,d,g;if(g=0,d=i[0],d>=n.length)return-1;for(l=(sr(d,n.length),n.charCodeAt(d));l>=48&&l<=57&&(g=g*10+(l-48),++d,!(d>=n.length));)l=(sr(d,n.length),n.charCodeAt(d));return d>i[0]?i[0]=d:g=-1,g}function C4r(n){var i,l,d,g,y;return g=v(n.a,17).a,y=v(n.b,17).a,l=g,d=y,i=u.Math.max(u.Math.abs(g),u.Math.abs(y)),g<=0&&g==y?(l=0,d=y-1):g==-i&&y!=i?(l=y,d=g,y>=0&&++l):(l=-y,d=g),new Ms(Nt(l),Nt(d))}function A4r(n,i,l,d){var g,y,x,T,R,O;for(g=0;g<i.o;g++)for(y=g-i.j+l,x=0;x<i.p;x++)if(T=x-i.k+d,R=y,O=T,R+=n.j,O+=n.k,R>=0&&O>=0&&R<n.o&&O<n.p&&(!XGt(i,g,x)&&jGt(n,y,T)||e5(i,g,x)&&!v_r(n,y,T)))return!0;return!1}function k4r(n,i,l){var d,g,y,x,T;x=n.c,T=n.d,y=ac(Te(xe(Vs,1),kt,8,0,[x.i.n,x.n,x.a])).b,g=(y+ac(Te(xe(Vs,1),kt,8,0,[T.i.n,T.n,T.a])).b)/2,d=null,x.j==(Bt(),gr)?d=new Ct(i+x.i.c.c.a+l,g):d=new Ct(i-l,g),JR(n.a,0,d)}function KE(n){var i,l,d,g;for(i=null,d=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c)])));zr(d);)if(l=v(Rr(d),84),g=zl(l),!i)i=g;else if(i!=g)return!1;return!0}function L1e(n,i,l){var d;if(++n.j,i>=n.i)throw _e(new Sl(zme+i+ew+n.i));if(l>=n.i)throw _e(new Sl(Gme+l+ew+n.i));return d=n.g[l],i!=l&&(i<l?Gc(n.g,i,n.g,i+1,l-i):Gc(n.g,l+1,n.g,l,i-l),Ga(n.g,i,d),n.Pi(i,d,l),n.Ni()),d}function Rn(n,i,l){var d;if(d=v(n.c.xc(i),16),d)return d.Fc(l)?(++n.d,!0):!1;if(d=n.ic(i),d.Fc(l))return++n.d,n.c.zc(i,d),!0;throw _e(new SOe("New Collection violated the Collection spec"))}function gG(n){var i,l,d;return n<0?0:n==0?32:(d=-(n>>16),i=d>>16&16,l=16-i,n=n>>i,d=n-256,i=d>>16&8,l+=i,n<<=i,d=n-R4,i=d>>16&4,l+=i,n<<=i,d=n-ng,i=d>>16&2,l+=i,n<<=i,d=n>>14,i=d&~(d>>1),l+2-i)}function R4r(n){kk();var i,l,d,g;for(lte=new Ot,Ube=new Br,$be=new Ot,i=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),vRr(i),g=new mr(i);g.e!=g.i.gc();)d=v(wr(g),27),$l(lte,d,0)==-1&&(l=new Ot,Lt($be,l),gGt(d,l));return $be}function I4r(n,i,l){var d,g,y,x;n.a=l.b.d,$e(i,326)?(g=o5(v(i,74),!1,!1),y=hG(g),d=new J5t(n),To(y,d),TG(y,g),i.of((Ei(),kx))!=null&&To(v(i.of(kx),75),d)):(x=v(i,422),x.rh(x.nh()+n.a.a),x.sh(x.oh()+n.a.b))}function N4r(n,i){var l,d,g;for(g=new Ot,d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),l.c.g==n.g&&Ze(oe(l.b,(pc(),gg)))!==Ze(oe(l.c,gg))&&!VT(new xn(null,new Nn(g,16)),new CAt(l))&&jn(g.c,l);return us(g,new sEt),g}function fVt(n,i,l){var d,g,y,x;return $e(i,153)&&$e(l,153)?(y=v(i,153),x=v(l,153),n.a[y.a][x.a]+n.a[x.a][y.a]):$e(i,250)&&$e(l,250)&&(d=v(i,250),g=v(l,250),d.a==g.a)?v(oe(g.a,(A0(),g6)),17).a:0}function pVt(n,i){var l,d,g,y,x,T,R,O;for(O=We(at(oe(i,(qt(),pP)))),R=n[0].n.a+n[0].o.a+n[0].d.c+O,T=1;T<n.length;T++)d=n[T].n,g=n[T].o,l=n[T].d,y=d.a-l.b-R,y<0&&(d.a-=y),x=i.f,x.a=u.Math.max(x.a,d.a+g.a),R=d.a+g.a+l.c+O}function O4r(n,i){var l,d,g,y,x,T;return d=v(v(br(n.g,i.a),42).a,68),g=v(v(br(n.g,i.b),42).a,68),y=d.b,x=g.b,l=r6r(y,x),l>=0?l:(T=hD($s(new Ct(x.c+x.b/2,x.d+x.a/2),new Ct(y.c+y.b/2,y.d+y.a/2))),-(Ujt(y,x)-1)*T)}function L4r(n,i,l){var d;ts(new xn(null,(!l.a&&(l.a=new vt(xa,l,6,6)),new Nn(l.a,16))),new R8t(n,i)),ts(new xn(null,(!l.n&&(l.n=new vt(wl,l,1,7)),new Nn(l.n,16))),new I8t(n,i)),d=v(Et(l,(Ei(),kx)),75),d&&A9e(d,n,i)}function XE(n,i,l){var d,g,y;if(y=h5((dh(),ko),n.Dh(),i),y)return al(),v(y,69).xk()||(y=Ik(Al(ko,y))),g=(d=n.Ih(y),v(d>=0?n.Lh(d,!0,!0):XE(n,y,!0),160)),v(g,220).Sl(i,l);throw _e(new ar(r2+i.xe()+Ime))}function TMe(n,i,l,d){var g,y,x,T,R;if(g=n.d[i],g){if(y=g.g,R=g.i,d!=null){for(T=0;T<R;++T)if(x=v(y[T],136),x.Bi()==l&&Yi(d,x.ld()))return x}else for(T=0;T<R;++T)if(x=v(y[T],136),Ze(x.ld())===Ze(d))return x}return null}function D4r(n,i){var l,d,g,y,x;for(d=(!i.s&&(i.s=new vt(Ju,i,21,17)),i.s),y=null,g=0,x=d.i;g<x;++g)switch(l=v(ze(d,g),179),RE(Al(n,l))){case 4:case 5:case 6:{!y&&(y=new Ot),jn(y.c,l);break}}return y||(Fn(),Fn(),Zo)}function mG(n,i){var l;if(i<0)throw _e(new NK("Negative exponent"));if(i==0)return Zee;if(i==1||ILe(n,Zee)||ILe(n,KM))return n;if(!UVt(n,0)){for(l=1;!UVt(n,l);)++l;return HT(qvr(l*i),mG(xOe(n,l),i))}return KEr(n,i)}function M4r(n,i){var l,d,g;if(Ze(n)===Ze(i))return!0;if(n==null||i==null||n.length!=i.length)return!1;for(l=0;l<n.length;++l)if(d=n[l],g=i[l],!(Ze(d)===Ze(g)||d!=null&&Yi(d,g)))return!1;return!0}function gVt(n){xRe();var i,l,d;for(this.b=Unn,this.c=(ys(),cp),this.f=(CRt(),$nn),this.a=n,uRe(this,new $b),vJ(this),d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),86),l.d||(i=new z0e(Te(xe(jbe,1),Yn,86,0,[l])),Lt(n.a,i))}function P4r(n,i,l){var d,g,y,x,T,R;if(!n||n.c.length==0)return null;for(y=new yDt(i,!l),g=new me(n);g.a<g.c.c.length;)d=v(pe(g),72),rMe(y,(TL(),new wK(d)));return x=y.i,x.a=(R=y.n,y.e.b+R.d+R.a),x.b=(T=y.n,y.e.a+T.b+T.c),y}function mVt(n){var i,l,d,g,y,x,T;for(T=dz(n.a),f8e(T,new bvt),l=null,g=T,y=0,x=g.length;y<x&&(d=g[y],d.k==(lr(),hs));++y)i=v(oe(d,(At(),vc)),64),!(i!=(Bt(),cr)&&i!=gr)&&(l&&v(oe(l,w6),15).Fc(d),l=d)}function B4r(n,i,l){var d,g,y,x,T,R,O;R=($n(i,n.c.length),v(n.c[i],339)),Jb(n,i),R.b/2>=l&&(d=i,O=(R.c+R.a)/2,x=O-l,R.c<=O-l&&(g=new lde(R.c,x),EE(n,d++,g)),T=O+l,T<=R.a&&(y=new lde(T,R.a),n4(d,n.c.length),OL(n.c,d,y)))}function bVt(n,i,l){var d,g,y,x,T,R;if(!i.dc()){for(g=new Ea,R=i.Kc();R.Ob();)for(T=v(R.Pb(),40),Ni(n.a,Nt(T.g),Nt(l)),x=(d=Ur(new Mm(T).a.d,0),new xT(d));hU(x.a);)y=v(Fr(x.a),65).c,qa(g,y,g.c.b,g.c);bVt(n,g,l+1)}}function CMe(n){var i;if(!n.c&&n.g==null)n.d=n.bj(n.f),Yr(n,n.d),i=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;i=v(n.g[n.i-1],51)}return i==n.b&&null.Vm>=null.Um()?(pJ(n),CMe(n)):i.Ob()}function yVt(n){if(this.a=n,n.c.i.k==(lr(),hs))this.c=n.c,this.d=v(oe(n.c.i,(At(),vc)),64);else if(n.d.i.k==hs)this.c=n.d,this.d=v(oe(n.d.i,(At(),vc)),64);else throw _e(new ar("Edge "+n+" is not an external edge."))}function vVt(n,i){var l,d,g;g=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,g,n.b)),i?i!=n&&(mu(n,i.zb),zfe(n,i.d),l=(d=i.c,d??i.zb),qfe(n,l==null||An(l,i.zb)?null:l)):(mu(n,null),zfe(n,0),qfe(n,null))}function _Vt(n,i){var l;this.e=(CE(),ni(n),CE(),ULe(n)),this.c=(ni(i),ULe(i)),R8e(this.e.Rd().dc()==this.c.Rd().dc()),this.d=Mzt(this.e),this.b=Mzt(this.c),l=E_(zs,[kt,Yn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=l,lmr(this)}function wVt(n){!gbe&&(gbe=NRr());var i=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(l){return Mfr(l)});return'"'+i+'"'}function AMe(n,i,l,d,g,y){var x,T,R,O,D;if(g!=0)for(Ze(n)===Ze(l)&&(n=n.slice(i,i+g),i=0),R=l,T=i,O=i+g;T<O;)x=u.Math.min(T+1e4,O),g=x-T,D=n.slice(T,x),D.splice(0,0,d,y?g:0),Array.prototype.splice.apply(R,D),T=x,d+=g}function EVt(n){UNe();var i,l;for(this.b=ttn,this.c=rtn,this.g=(TRt(),etn),this.d=(ys(),cp),this.a=n,KMe(this),l=new me(n.b);l.a<l.c.c.length;)i=v(pe(l),60),!i.a&&mNt(l$t(new B7e,Te(xe(nte,1),Yn,60,0,[i])),n),i.e=new vQ(i.d)}function F4r(n){var i,l,d,g,y,x;for(g=n.e.c.length,d=st(_f,I4,15,g,0,1),x=new me(n.e);x.a<x.c.c.length;)y=v(pe(x),153),d[y.a]=new Ea;for(l=new me(n.c);l.a<l.c.c.length;)i=v(pe(l),290),d[i.c.a].Fc(i),d[i.d.a].Fc(i);return d}function $4r(n,i){var l,d,g,y,x;if(l=v(rr(n.a,4),129),x=l==null?0:l.length,i>=x)throw _e(new XS(i,x));return g=l[i],x==1?d=null:(d=st(H2e,jme,424,x-1,0,1),Gc(l,0,d,0,i),y=x-i-1,y>0&&Gc(l,i+1,d,i,y)),J8(n,d),HHt(n,i,g),g}function xVt(n){var i,l;if(n.f){for(;n.n<n.o;){if(i=v(n.j?n.j.$i(n.n):n.k.Xb(n.n),76),l=i.Lk(),$e(l,102)&&v(l,19).Bb&Sc&&(!n.e||l.pk()!=CN||l.Lj()!=0)&&i.md()!=null)return!0;++n.n}return!1}else return n.n<n.o}function Kk(){Kk=z,P6=v(ze(bt((pRe(),Tc).qb),6),35),M6=v(ze(bt(Tc.qb),3),35),X2e=v(ze(bt(Tc.qb),4),35),Q2e=v(ze(bt(Tc.qb),5),19),iJ(P6),iJ(M6),iJ(X2e),iJ(Q2e),yhn=new wh(Te(xe(Ju,1),x5,179,0,[P6,M6]))}function SVt(n,i){var l;this.d=new mL,this.b=i,this.e=new Wo(i.Lf()),l=n.u.Hc((Ah(),pH)),n.u.Hc(ub)?n.F?this.a=l&&!i.bg():this.a=!0:n.u.Hc(v2)?l?this.a=!(i.Uf().Kc().Ob()||i.Wf().Kc().Ob()):this.a=!1:this.a=!1}function TVt(n,i){var l,d,g,y;for(l=n.o.a,y=v(v(Zi(n.r,i),21),87).Kc();y.Ob();)g=v(y.Pb(),117),g.e.a=(d=g.b,d.pf((Ei(),jh))?d.ag()==(Bt(),cr)?-d.Mf().a-We(at(d.of(jh))):l+We(at(d.of(jh))):d.ag()==(Bt(),cr)?-d.Mf().a:l)}function CVt(n,i){var l,d,g,y;l=v(oe(n,(qt(),Pd)),88),y=v(Et(i,lN),64),g=v(oe(n,Qa),101),g!=(co(),up)&&g!=y2?y==(Bt(),lc)&&(y=kPe(i,l),y==lc&&(y=zk(l))):(d=CWt(i),d>0?y=zk(l):y=Xz(zk(l))),sa(i,lN,y)}function U4r(n,i){var l;i.Ug("Partition preprocessing",1),l=v(Wl(Ki(ic(Ki(new xn(null,new Nn(n.a,16)),new l2t),new c2t),new u2t),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),ts(l.Oc(),new h2t),i.Vg()}function z4r(n,i){var l,d,g,y,x;for(x=n.j,i.a!=i.b&&us(x,new z_t),g=x.c.length/2|0,d=0;d<g;d++)y=($n(d,x.c.length),v(x.c[d],113)),y.c&&Bs(y.d,i.a);for(l=g;l<x.c.length;l++)y=($n(l,x.c.length),v(x.c[l],113)),y.c&&Bs(y.d,i.b)}function G4r(n,i,l){var d,g,y;return d=n.c[i.c.p][i.p],g=n.c[l.c.p][l.p],d.a!=null&&g.a!=null?(y=Sde(d.a,g.a),y<0?EG(n,i,l):y>0&&EG(n,l,i),y):d.a!=null?(EG(n,i,l),-1):g.a!=null?(EG(n,l,i),1):0}function q4r(n,i){var l,d,g,y,x;for(g=i.b.b,n.a=st(_f,I4,15,g,0,1),n.b=st(Wh,Qg,28,g,16,1),x=Ur(i.b,0);x.b!=x.d.c;)y=v(Fr(x),40),n.a[y.g]=new Ea;for(d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),n.a[l.b.g].Fc(l),n.a[l.c.g].Fc(l)}function AVt(n,i){var l,d,g,y;n.Pj()?(l=n.Ej(),y=n.Qj(),++n.j,n.qj(l,n.Zi(l,i)),d=n.Ij(3,null,i,l,y),n.Mj()?(g=n.Nj(i,null),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(bLt(n,i),n.Mj()&&(g=n.Nj(i,null),g&&g.oj()))}function kMe(n,i,l){var d,g,y;n.Pj()?(y=n.Qj(),Yz(n,i,l),d=n.Ij(3,null,l,i,y),n.Mj()?(g=n.Nj(l,null),n.Tj()&&(g=n.Uj(l,g)),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(Yz(n,i,l),n.Mj()&&(g=n.Nj(l,null),g&&g.oj()))}function dJ(n,i){var l,d,g,y,x;for(x=Iu(n.e.Dh(),i),g=new fK,l=v(n.g,124),y=n.i;--y>=0;)d=l[y],x.am(d.Lk())&&Yr(g,d);!EKt(n,g)&&id(n.e)&&$R(n,i.Jk()?Bv(n,6,i,(Fn(),Zo),null,-1,!1):Bv(n,i.tk()?2:1,i,null,null,-1,!1))}function H4r(n,i){var l,d,g,y,x;return n.a==(aI(),rP)?!0:(y=i.a.c,l=i.a.c+i.a.b,!(i.j&&(d=i.A,x=d.c.c.a-d.o.a/2,g=y-(d.n.a+d.o.a),g>x)||i.q&&(d=i.C,x=d.c.c.a-d.o.a/2,g=d.n.a-l,g>x)))}function kVt(n){nfe();var i,l,d,g,y,x,T;for(l=new Zb,g=new me(n.e.b);g.a<g.c.c.length;)for(d=v(pe(g),30),x=new me(d.a);x.a<x.c.c.length;)y=v(pe(x),10),T=n.g[y.p],i=v(j1(l,T),15),i||(i=new Ot,cy(l,T,i)),i.Fc(y);return l}function RVt(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (startX: ",ST(i,n.j),i.a+=", startY: ",ST(i,n.k),i.a+=", endX: ",ST(i,n.b),i.a+=", endY: ",ST(i,n.c),i.a+=", identifier: ",bl(i,n.d),i.a+=")",i.a)}function RMe(n){var i;return n.Db&64?PD(n):(i=new Ff(PD(n)),i.a+=" (ordered: ",Hb(i,(n.Bb&256)!=0),i.a+=", unique: ",Hb(i,(n.Bb&512)!=0),i.a+=", lowerBound: ",Wue(i,n.s),i.a+=", upperBound: ",Wue(i,n.t),i.a+=")",i.a)}function IVt(n,i,l,d,g,y,x,T){var R;return $e(n.Cb,90)&&_4($h(v(n.Cb,90)),4),mu(n,l),n.f=d,j8(n,g),K8(n,y),Y8(n,x),W8(n,!1),oy(n,!0),X8(n,T),sy(n,!0),ny(n,0),n.b=0,c4(n,1),R=Q1(n,i,null),R&&R.oj(),I0e(n,!1),n}function NVt(n,i){var l,d,g,y;return l=v(Qc(n.a,i),525),l||(d=new mfe(i),g=(DQ(),rp?null:d.c),y=af(g,0,u.Math.max(0,AX(g,Wu(46)))),wlr(d,NVt(n,y)),(rp?null:d.c).length==0&&GNt(d,new we),Cl(n.a,rp?null:d.c,d),d)}function V4r(n,i){var l;n.b=i,n.g=new Ot,l=K4r(n.b),n.e=l,n.f=l,n.c=Vt(Ht(oe(n.b,(nJ(),Ize)))),n.a=at(oe(n.b,(Ei(),X5))),n.a==null&&(n.a=1),We(n.a)>1?n.e*=We(n.a):n.f/=We(n.a),dyr(n),y2r(n),gCr(n),_t(n.b,(qD(),ote),n.g)}function OVt(n,i,l){var d,g,y,x,T,R;for(d=0,R=l,i||(d=l*(n.c.length-1),R*=-1),y=new me(n);y.a<y.c.c.length;){for(g=v(pe(y),10),_t(g,(qt(),fg),(qg(),Hne)),g.o.a=d,T=hy(g,(Bt(),gr)).Kc();T.Ob();)x=v(T.Pb(),12),x.n.a=d;d+=R}}function Xk(n,i,l){var d,g,y,x,T,R;return T=n.pl(l),T!=l?(x=n.g[i],R=T,KL(n,i,n.Zi(i,R)),y=x,n.Ri(i,R,y),n.al()&&(d=l,g=n.Oj(d,null),!v(T,54).Ph()&&(g=n.Nj(R,g)),g&&g.oj()),id(n.e)&&$R(n,n.Ij(9,l,T,i,!1)),T):l}function Y4r(n,i){var l,d,g,y;for(d=new me(n.a.a);d.a<d.c.c.length;)l=v(pe(d),194),l.g=!0;for(y=new me(n.a.b);y.a<y.c.c.length;)g=v(pe(y),86),g.k=Vt(Ht(n.e.Kb(new Ms(g,i)))),g.d.g=g.d.g&Vt(Ht(n.e.Kb(new Ms(g,i))));return n}function LVt(n,i){var l,d;if(n.c.length!=0){if(n.c.length==2)Qk(($n(0,n.c.length),v(n.c[0],10)),(Id(),im)),Qk(($n(1,n.c.length),v(n.c[1],10)),m2);else for(d=new me(n);d.a<d.c.c.length;)l=v(pe(d),10),Qk(l,i);n.c.length=0}}function DVt(n){var i,l,d,g,y;if(l=(i=v(n1(tl),9),new nf(i,v(v0(i,i.length),9),0)),y=v(oe(n,(At(),kh)),10),y)for(g=new me(y.j);g.a<g.c.c.length;)d=v(pe(g),12),Ze(oe(d,Ji))===Ze(n)&&QL(new V1(d.b))&&S0(l,d.j);return l}function MVt(n,i,l){var d,g,y,x,T;if(!n.d[l.p]){for(g=new yr(_r(os(l).a.Kc(),new S));zr(g);){for(d=v(Rr(g),18),T=d.d.i,x=new yr(_r(Hs(T).a.Kc(),new S));zr(x);)y=v(Rr(x),18),y.c.i==i&&(n.a[y.p]=!0);MVt(n,i,T)}n.d[l.p]=!0}}function j4r(n,i){var l,d,g,y,x,T,R;if(d=Rzt(n.Db&254),d==1)n.Eb=null;else if(y=L_(n.Eb),d==2)g=o1e(n,i),n.Eb=y[g==0?1:0];else{for(x=st(zs,Yn,1,d-1,5,1),l=2,T=0,R=0;l<=128;l<<=1)l==i?++T:n.Db&l&&(x[R++]=y[T++]);n.Eb=x}n.Db&=~i}function IMe(n){var i;switch(i=0,n){case 105:i=2;break;case 109:i=8;break;case 115:i=4;break;case 120:i=16;break;case 117:i=32;break;case 119:i=64;break;case 70:i=256;break;case 72:i=128;break;case 88:i=512;break;case 44:i=k0}return i}function W4r(n,i,l,d,g){var y,x,T,R;if(Ze(n)===Ze(i)&&d==g){Ljt(n,d,l);return}for(T=0;T<d;T++){for(x=0,y=n[T],R=0;R<g;R++)x=zo(zo(Go(Us(y,ul),Us(i[R],ul)),Us(l[T+R],ul)),Us(ti(x),ul)),l[T+R]=ti(x),x=Dv(x,32);l[T+g]=ti(x)}}function K4r(n){var i,l,d,g,y,x,T,R,O,D,q;for(D=0,O=0,g=n.a,T=g.a.gc(),d=g.a.ec().Kc();d.Ob();)l=v(d.Pb(),567),i=(l.b&&ipe(l),l.a),q=i.a,x=i.b,D+=q+x,O+=q*x;return R=u.Math.sqrt(400*T*O-4*O+D*D)+D,y=2*(100*T-1),y==0?R:R/y}function PVt(n,i){i.b!=0&&(isNaN(n.s)?n.s=We((Tr(i.b!=0),at(i.a.a.c))):n.s=u.Math.min(n.s,We((Tr(i.b!=0),at(i.a.a.c)))),isNaN(n.c)?n.c=We((Tr(i.b!=0),at(i.c.b.c))):n.c=u.Math.max(n.c,We((Tr(i.b!=0),at(i.c.b.c)))))}function tM(n){var i,l,d,g;for(i=null,d=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c)])));zr(d);)if(l=v(Rr(d),84),g=zl(l),!i)i=Aa(g);else if(i!=Aa(g))return!0;return!1}function D1e(n,i){var l,d,g,y;n.Pj()?(l=n.i,y=n.Qj(),gz(n,i),d=n.Ij(3,null,i,l,y),n.Mj()?(g=n.Nj(i,null),n.Tj()&&(g=n.Uj(i,g)),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(gz(n,i),n.Mj()&&(g=n.Nj(i,null),g&&g.oj()))}function X4r(n,i){var l,d,g,y;if(y=JU(n.a,i.b),!y)throw _e(new Tl("Invalid hitboxes for scanline overlap calculation."));for(g=!1,d=n.a.a.ec().Kc();d.Ob();)if(l=v(d.Pb(),68),kbr(i.b,l))rar(n.b.a,i.b,l),g=!0;else if(g)break}function Q4r(n){var i;if(!n.a)throw _e(new Tl("IDataType class expected for layout option "+n.f));if(i=P1r(n.a),i==null)throw _e(new Tl("Couldn't create new instance of property '"+n.f+"'. "+KQt+(Fm(xH),xH.k)+rUe));return v(i,423)}function M1e(n){var i,l,d,g,y;return y=n.Ph(),y&&y.Vh()&&(g=Hv(n,y),g!=y)?(l=n.Fh(),d=(i=n.Fh(),i>=0?n.Ah(null):n.Ph().Th(n,-1-i,null,null)),n.Bh(v(g,54),l),d&&d.oj(),n.vh()&&n.wh()&&l>-1&&Vi(n,new js(n,9,l,y,g)),g):y}function NMe(n,i){var l,d,g,y,x;for(y=n.b.Ce(i),d=(l=n.a.get(y),l??st(zs,Yn,1,0,5,1)),x=0;x<d.length;x++)if(g=d[x],n.b.Be(i,g.ld()))return d.length==1?(d.length=0,Jor(n.a,y)):d.splice(x,1),--n.c,++n.b.g,g.md();return null}function BVt(n){var i,l,d,g,y,x,T,R;for(x=0,y=n.f.e,d=0;d<y.c.length;++d)for(T=($n(d,y.c.length),v(y.c[d],153)),g=d+1;g<y.c.length;++g)R=($n(g,y.c.length),v(y.c[g],153)),l=$v(T.d,R.d),i=l-n.a[T.a][R.a],x+=n.i[T.a][R.a]*i*i;return x}function Z4r(n,i){var l;if(!ya(i,(qt(),Lu))&&(l=vwr(v(oe(i,uqe),371),v(oe(n,Lu),171)),_t(i,uqe,l),!zr(new yr(_r(Qm(i).a.Kc(),new S)))))switch(l.g){case 1:_t(i,Lu,(pf(),lP));break;case 2:_t(i,Lu,(pf(),cP))}}function J4r(n,i){var l;dCr(n),n.a=(l=new Yue,ts(new xn(null,new Nn(i.d,16)),new zCt(l)),l),kCr(n,v(oe(i.b,(qt(),Yye)),349)),s_r(n),s3r(n),wwr(n),o_r(n),_6r(n,i),ts(ic(new xn(null,xMt(rdr(n.b).a)),new S_t),new T_t),i.a=!1,n.a=null}function OMe(){OMe=z,Ion=new En(b$e,(Qn(),!1)),Non=new En(y$e,7),Nt(0),Mon=new En(v$e,Nt(0)),Lon=new En(_$e,Nt(-1)),fYe=(LD(),Dve),Pon=new En(w$e,fYe),hYe=(OD(),Vq),Oon=new En(E$e,hYe),dYe=(AQ(),Mve),Don=new En(x$e,dYe)}function FVt(){KDe.call(this,$I,(kv(),Mun)),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 oI(){oI=z,G2e=new hk(dQt,0),lre=new hk("INSIDE_SELF_LOOPS",1),cre=new hk("MULTI_EDGES",2),ore=new hk("EDGE_LABELS",3),z2e=new hk("PORTS",4),sre=new hk("COMPOUND",5),are=new hk("CLUSTERS",6),U2e=new hk("DISCONNECTED",7)}function $Vt(n,i,l){var d,g,y;n.Pj()?(y=n.Qj(),++n.j,n.qj(i,n.Zi(i,l)),d=n.Ij(3,null,l,i,y),n.Mj()?(g=n.Nj(l,null),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(++n.j,n.qj(i,n.Zi(i,l)),n.Mj()&&(g=n.Nj(l,null),g&&g.oj()))}function UVt(n,i){var l,d,g;if(i==0)return(n.a[0]&1)!=0;if(i<0)throw _e(new NK("Negative bit address"));if(g=i>>5,g>=n.d)return n.e<0;if(l=n.a[g],i=1<<(i&31),n.e<0){if(d=Y$t(n),g<d)return!1;d==g?l=-l:l=~l}return(l&i)!=0}function e3r(n,i,l,d){var g;v(l.b,68),v(l.b,68),v(d.b,68),v(d.b,68),g=$s(Eo(v(l.b,68).c),v(d.b,68).c),UX(g,ZHt(v(l.b,68),v(d.b,68),g)),v(d.b,68),v(d.b,68),v(d.b,68).c.a+g.a,v(d.b,68).c.b+g.b,v(d.b,68),Cu(d.a,new AIe(n,i,d))}function LMe(n,i){var l,d,g,y,x,T,R;if(y=i.e,y){for(l=M1e(y),d=v(n.g,689),x=0;x<n.i;++x)if(R=d[x],t1e(R)==l&&(g=(!R.d&&(R.d=new gs(pl,R,1)),R.d),T=v(l.Mh(K1e(y,y.Cb,y.Db>>16)),15).dd(y),T<g.i))return LMe(n,v(ze(g,T),89))}return i}function H(n,i,l){var d=Wee,g,y=d[n],x=y instanceof Array?y[0]:null;y&&!x?E=y:(E=(g=i&&i.prototype,!g&&(g=Wee[i]),Ufr(g)),E.Sm=l,!i&&(E.Tm=Z),d[n]=E);for(var T=3;T<arguments.length;++T)arguments[T].prototype=E;x&&(E.Rm=x)}function zr(n){for(var i;!v(ni(n.a),51).Ob();){if(n.d=Vbr(n),!n.d)return!1;if(n.a=v(n.d.Pb(),51),$e(n.a,38)){if(i=v(n.a,38),n.a=i.a,!n.b&&(n.b=new FT),Fv(n.b,n.d),i.b)for(;!wL(i.b);)Fv(n.b,v($hr(i.b),51));n.d=i.d}}return!0}function DMe(n,i){var l,d,g,y;for(g=1,i.j=!0,y=null,d=new me(XT(i));d.a<d.c.c.length;)l=v(pe(d),218),n.c[l.c]||(n.c[l.c]=!0,y=OZ(l,i),l.f?g+=DMe(n,y):!y.j&&l.a==l.e.e-l.d.e&&(l.f=!0,Es(n.p,l),g+=DMe(n,y)));return g}function t3r(n){var i,l,d;for(l=new me(n.a.a.b);l.a<l.c.c.length;)i=v(pe(l),86),d=(hr(0),0),d>0&&(!(Bm(n.a.c)&&i.n.d)&&!(LT(n.a.c)&&i.n.b)&&(i.g.d+=u.Math.max(0,d/2-.5)),!(Bm(n.a.c)&&i.n.a)&&!(LT(n.a.c)&&i.n.c)&&(i.g.a-=d-1))}function zVt(n){var i,l,d,g,y;if(g=new Ot,y=Pjt(n,g),i=v(oe(n,(At(),kh)),10),i)for(d=new me(i.j);d.a<d.c.c.length;)l=v(pe(d),12),Ze(oe(l,Ji))===Ze(n)&&(y=u.Math.max(y,Pjt(l,g)));return g.c.length==0||_t(n,M5,y),y!=-1?g:null}function GVt(n,i,l){var d,g,y,x,T,R;y=v(Yt(i.e,0),18).c,d=y.i,g=d.k,R=v(Yt(l.g,0),18).d,x=R.i,T=x.k,g==(lr(),Ws)?_t(n,(At(),m1),v(oe(d,m1),12)):_t(n,(At(),m1),y),T==Ws?_t(n,(At(),Kf),v(oe(x,Kf),12)):_t(n,(At(),Kf),R)}function MMe(n){var i,l,d;this.c=n,d=v(oe(n,(qt(),Pd)),88),i=We(at(oe(n,Qte))),l=We(at(oe(n,cVe))),d==(ys(),Ol)||d==ql||d==cp?this.b=i*l:this.b=1/(i*l),this.j=We(at(oe(n,z5))),this.e=We(at(oe(n,Sx))),this.f=n.b.c.length}function PMe(n,i){var l,d,g,y,x;return i&=63,l=n.h,d=(l&FG)!=0,d&&(l|=-1048576),i<22?(x=l>>i,y=n.m>>i|l<<22-i,g=n.l>>i|n.m<<22-i):i<44?(x=d?rb:0,y=l>>i-22,g=n.m>>i-22|l<<44-i):(x=d?rb:0,y=d?Hh:0,g=l>>i-44),Su(g&Hh,y&Hh,x&rb)}function P1e(n){var i,l,d,g,y,x;for(this.c=new Ot,this.d=n,d=ka,g=ka,i=Ss,l=Ss,x=Ur(n,0);x.b!=x.d.c;)y=v(Fr(x),8),d=u.Math.min(d,y.a),g=u.Math.min(g,y.b),i=u.Math.max(i,y.a),l=u.Math.max(l,y.b);this.a=new rf(d,g,i-d,l-g)}function qVt(n,i){var l,d,g,y,x,T;for(y=new me(n.b);y.a<y.c.c.length;)for(g=v(pe(y),30),T=new me(g.a);T.a<T.c.c.length;)for(x=v(pe(T),10),x.k==(lr(),Pc)&&Qk(x,i),d=new yr(_r(os(x).a.Kc(),new S));zr(d);)l=v(Rr(d),18),bUt(l,i)}function n3r(n,i){var l,d,g;for(i.Ug("Layer constraint preprocessing",1),l=new Ot,g=new go(n.a,0);g.b<g.d.gc();)d=(Tr(g.b<g.d.gc()),v(g.d.Xb(g.c=g.b++),10)),Rbr(d)&&(FEr(d),jn(l.c,d),ld(g));l.c.length==0||_t(n,(At(),Lye),l),i.Vg()}function r3r(n){var i,l;for(n.e=st(Wr,vi,28,n.p.c.length,15,1),n.k=st(Wr,vi,28,n.p.c.length,15,1),l=new me(n.p);l.a<l.c.c.length;)i=v(pe(l),10),n.e[i.p]=Gm(new yr(_r(Hs(i).a.Kc(),new S))),n.k[i.p]=Gm(new yr(_r(os(i).a.Kc(),new S)))}function i3r(n){var i,l,d,g,y,x;for(g=0,n.q=new Ot,i=new fs,x=new me(n.p);x.a<x.c.c.length;){for(y=v(pe(x),10),y.p=g,d=new yr(_r(os(y).a.Kc(),new S));zr(d);)l=v(Rr(d),18),Es(i,l.d.i);i.a.Bc(y)!=null,Lt(n.q,new nD(i)),i.a.$b(),++g}}function HVt(n,i){var l,d,g,y,x,T,R,O,D;if(n.a.f>0&&$e(i,44)&&(n.a._j(),O=v(i,44),R=O.ld(),y=R==null?0:ma(R),x=nIe(n.a,y),l=n.a.d[x],l)){for(d=v(l.g,379),D=l.i,T=0;T<D;++T)if(g=d[T],g.Bi()==y&&g.Fb(O))return HVt(n,O),!0}return!1}function a3r(n){var i,l,d,g,y,x,T;if(i=n.qi(Yf),i&&(T=ai(h1((!i.b&&(i.b=new sd((Pn(),nl),_c,i)),i.b),"settingDelegates")),T!=null)){for(l=new Ot,g=T4(T,"\\w+"),y=0,x=g.length;y<x;++y)d=g[y],jn(l.c,d);return l}return Fn(),Fn(),Zo}function s3r(n){var i,l,d,g;for(g=v(Zi(n.a,(b4(),Mte)),15).Kc();g.Ob();)d=v(g.Pb(),105),l=(i=wk(d.k),i.Hc((Bt(),or))?i.Hc(gr)?i.Hc(Mr)?i.Hc(cr)?null:Ern:Srn:xrn:wrn),l8(n,d,l[0],(UE(),fx),0),l8(n,d,l[1],l2,1),l8(n,d,l[2],px,1)}function o3r(n,i){var l,d;l=zCr(i),k5r(n,i,l),Kqt(n.a,v(oe(So(i.b),(At(),x6)),234)),lAr(n),NEr(n,i),d=st(Wr,vi,28,i.b.j.c.length,15,1),mpe(n,i,(Bt(),or),d,l),mpe(n,i,gr,d,l),mpe(n,i,Mr,d,l),mpe(n,i,cr,d,l),n.a=null,n.c=null,n.b=null}function BMe(n,i,l){switch(i){case 7:!n.e&&(n.e=new Gn(ss,n,7,4)),Gr(n.e),!n.e&&(n.e=new Gn(ss,n,7,4)),Ka(n.e,v(l,16));return;case 8:!n.d&&(n.d=new Gn(ss,n,8,5)),Gr(n.d),!n.d&&(n.d=new Gn(ss,n,8,5)),Ka(n.d,v(l,16));return}IDe(n,i,l)}function FMe(n,i){var l,d,g,y,x;if(Ze(i)===Ze(n))return!0;if(!$e(i,15)||(x=v(i,15),n.gc()!=x.gc()))return!1;for(y=x.Kc(),d=n.Kc();d.Ob();)if(l=d.Pb(),g=y.Pb(),!(Ze(l)===Ze(g)||l!=null&&Yi(l,g)))return!1;return!0}function l3r(n,i){var l,d,g,y;for(y=v(Wl(ic(ic(new xn(null,new Nn(i.b,16)),new Avt),new kvt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),y.Jc(new Rvt),l=0,g=y.Kc();g.Ob();)d=v(g.Pb(),12),d.p==-1&&$Me(n,d,l++)}function VVt(n){switch(n.g){case 0:return new xTt;case 1:return new wTt;case 2:return new ETt;case 3:return new d8t;case 4:return new O9t;default:throw _e(new ar("No implementation is available for the node placer "+(n.f!=null?n.f:""+n.g)))}}function YVt(n){switch(n.g){case 0:return new nNe;case 1:return new cTt;case 2:return new lTt;case 3:return new sTt;case 4:return new nIt;default:throw _e(new ar("No implementation is available for the cycle breaker "+(n.f!=null?n.f:""+n.g)))}}function c3r(n,i){var l,d,g,y,x;d=new Ea,qa(d,i,d.c.b,d.c);do for(l=(Tr(d.b!=0),v(cf(d,d.a.a),40)),n.b[l.g]=1,y=Ur(l.d,0);y.b!=y.d.c;)g=v(Fr(y),65),x=g.c,n.b[x.g]==1?pi(n.a,g):n.b[x.g]==2?n.b[x.g]=1:qa(d,x,d.c.b,d.c);while(d.b!=0)}function u3r(n,i,l){var d;d=null,i&&(d=i.d),KD(n,new XR(i.n.a-d.b+l.a,i.n.b-d.d+l.b)),KD(n,new XR(i.n.a-d.b+l.a,i.n.b+i.o.b+d.a+l.b)),KD(n,new XR(i.n.a+i.o.a+d.c+l.a,i.n.b-d.d+l.b)),KD(n,new XR(i.n.a+i.o.a+d.c+l.a,i.n.b+i.o.b+d.a+l.b))}function $Me(n,i,l){var d,g,y;for(i.p=l,y=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(i),new QA(i)])));zr(y);)d=v(Rr(y),12),d.p==-1&&$Me(n,d,l);if(i.i.k==(lr(),Ws))for(g=new me(i.i.j);g.a<g.c.c.length;)d=v(pe(g),12),d!=i&&d.p==-1&&$Me(n,d,l)}function h3r(n,i){var l,d,g,y,x,T;for(d=new Zb,x=OQ(new wh(n.g)),y=x.a.ec().Kc();y.Ob();){if(g=v(y.Pb(),10),!g){i.bh("There are no classes in a balanced layout.");break}T=n.j[g.p],l=v(j1(d,T),15),l||(l=new Ot,cy(d,T,l)),l.Fc(g)}return d}function jVt(n){var i,l,d,g,y;if(g=v(Wl(KNe(ZNe(n)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),d=b5,g.gc()>=2)for(l=g.Kc(),i=at(l.Pb());l.Ob();)y=i,i=at(l.Pb()),d=u.Math.min(d,(hr(i),i-(hr(y),y)));return d}function d3r(n,i){var l,d,g;for(g=new Ot,d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),l.b.g==n.g&&!An(l.b.c,_ee)&&Ze(oe(l.b,(pc(),gg)))!==Ze(oe(l.c,gg))&&!VT(new xn(null,new Nn(g,16)),new AAt(l))&&jn(g.c,l);return us(g,new uEt),g}function f3r(n,i){var l,d,g;if(Ze(i)===Ze(ni(n)))return!0;if(!$e(i,15)||(d=v(i,15),g=n.gc(),g!=d.gc()))return!1;if($e(d,59)){for(l=0;l<g;l++)if(!Wp(n.Xb(l),d.Xb(l)))return!1;return!0}else return p_r(n.Kc(),d.Kc())}function p3r(n,i,l,d,g,y){var x,T,R,O;for(T=!VR(Ki(n.Oc(),new PR(new Gvt))).Bd((w_(),p6)),x=n,y==(ys(),Ef)&&(x=ff(x)),O=x.Kc();O.Ob();)R=v(O.Pb(),72),R.n.a=i.a,T?R.n.b=i.b+(d.b-R.o.b)/2:g?R.n.b=i.b:R.n.b=i.b+d.b-R.o.b,i.a+=R.o.a+l}function g3r(n,i){var l,d,g,y,x;for(i.Ug("Port side processing",1),x=new me(n.a);x.a<x.c.c.length;)g=v(pe(x),10),oWt(g);for(d=new me(n.b);d.a<d.c.c.length;)for(l=v(pe(d),30),y=new me(l.a);y.a<y.c.c.length;)g=v(pe(y),10),oWt(g);i.Vg()}function m3r(n,i,l){var d,g,y,x,T,R,O;if(l)for(y=l.a.length,d=new S_(y),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),R=m8(l,x.a),R&&(O=nmr(zm(R,Bme),i),Ni(n.f,O,R),g=ug in R.a,g&&I8(O,zm(R,ug)),sJ(R,O),mMe(R,O))}function b3r(n,i,l){var d,g,y,x,T;if(T=l,!T&&(T=zIe(new tk,0)),T.Ug(VXt,1),qWt(n.c,i),x=w7r(n.a,i),x.gc()==1)SWt(v(x.Xb(0),36),T);else for(y=1/x.gc(),g=x.Kc();g.Ob();){if(d=v(g.Pb(),36),l.$g())return;SWt(d,T.eh(y))}Nir(n.a,x,i),K5r(i),T.Vg()}function WVt(n,i,l){var d,g,y,x,T;if(g=n.f,!g&&(g=v(n.a.a.ec().Kc().Pb(),60)),WD(g,i,l),n.a.a.gc()!=1)for(d=i*l,x=n.a.a.ec().Kc();x.Ob();)y=v(x.Pb(),60),y!=g&&(T=Nk(y),T.f.d?(y.d.d+=d+ep,y.d.a-=d+ep):T.f.a&&(y.d.a-=d+ep))}function B1e(n,i,l,d,g){var y,x,T,R,O,D,q,J,re;return x=l-n,T=d-i,y=u.Math.atan2(x,T),R=y+vge,O=y-vge,D=g*u.Math.sin(R)+n,J=g*u.Math.cos(R)+i,q=g*u.Math.sin(O)+n,re=g*u.Math.cos(O)+i,H1(Te(xe(Vs,1),kt,8,0,[new Ct(D,J),new Ct(q,re)]))}function y3r(n,i,l,d){var g,y,x,T,R,O,D,q;g=l,D=i,y=D;do y=n.a[y.p],T=(q=n.g[y.p],We(n.p[q.p])+We(n.d[y.p])-y.d.d),R=ymr(y,d),R&&(x=(O=n.g[R.p],We(n.p[O.p])+We(n.d[R.p])+R.o.b+R.d.a),g=u.Math.min(g,T-(x+PT(n.k,y,R))));while(D!=y);return g}function v3r(n,i,l,d){var g,y,x,T,R,O,D,q;g=l,D=i,y=D;do y=n.a[y.p],x=(q=n.g[y.p],We(n.p[q.p])+We(n.d[y.p])+y.o.b+y.d.a),R=Sbr(y,d),R&&(T=(O=n.g[R.p],We(n.p[O.p])+We(n.d[R.p])-R.d.d),g=u.Math.min(g,T-(x+PT(n.k,y,R))));while(D!=y);return g}function KVt(n,i){var l;if(i.Ug("Equal Whitespace Eliminator",1),Y1(n,(Vg(),Mne)))Ayr(v(Et(n,Mne),15),We(at(Et(n,C6))),(l=We(at(Et(n,RP))),We(at(Et(n,(Z1(),OP)))),l));else throw _e(new Gb("The graph does not contain rows."));i.Vg()}function Et(n,i){var l,d;return d=(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),h1(n.o,i)),d??(l=i.Sg(),$e(l,4)&&(l==null?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),FZ(n.o,i)):(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),sG(n.o,i,l))),l)}function w4(){w4=z,D0=new kT("H_LEFT",0),cb=new kT("H_CENTER",1),M0=new kT("H_RIGHT",2),B0=new kT("V_TOP",3),am=new kT("V_CENTER",4),Qf=new kT("V_BOTTOM",5),Bd=new kT("INSIDE",6),P0=new kT("OUTSIDE",7),Xf=new kT("H_PRIORITY",8)}function _3r(n,i){var l,d,g,y,x,T,R;if(!i.f)throw _e(new ar("The input edge is not a tree edge."));for(y=null,g=qi,d=new me(n.d);d.a<d.c.c.length;)l=v(pe(d),218),T=l.d,R=l.e,N1e(n,T,i)&&!N1e(n,R,i)&&(x=R.e-T.e-l.a,x<g&&(g=x,y=l));return y}function w3r(n){var i,l,d,g,y,x;if(!(n.f.e.c.length<=1)){i=0,g=BVt(n),l=ka;do{for(i>0&&(g=l),x=new me(n.f.e);x.a<x.c.c.length;)y=v(pe(x),153),!Vt(Ht(oe(y,(iG(),pGe))))&&(d=DAr(n,y),Hi(i1(y.d),d));l=BVt(n)}while(!adr(n,i++,g,l))}}function E3r(n,i){var l,d,g,y,x;for(y=n.g.a,x=n.g.b,d=new me(n.d);d.a<d.c.c.length;)l=v(pe(d),72),g=l.n,n.a==(K1(),WI)||n.i==(Bt(),gr)?g.a=y:n.a==KI||n.i==(Bt(),cr)?g.a=y+n.j.a-l.o.a:g.a=y+(n.j.a-l.o.a)/2,g.b=x,Hi(g,i),x+=l.o.b+n.e}function x3r(n,i){var l,d,g,y,x,T,R,O,D,q;O=n,R=bD(O,"individualSpacings"),R&&(d=Y1(i,(Ei(),I6)),x=!d,x&&(g=new cue,sa(i,I6,g)),T=v(Et(i,I6),385),q=R,y=null,q&&(y=(D=Xfe(q,st(Xt,kt,2,0,6,1)),new Xue(q,D))),y&&(l=new U8t(q,T),To(y,l)))}function S3r(n,i){var l,d,g,y,x,T,R,O,D,q,J;return R=null,q=n,D=null,(FZt in q.a||$Zt in q.a||Ree in q.a)&&(O=null,J=P9e(i),x=bD(q,FZt),l=new hkt(J),$vr(l.a,x),T=bD(q,$Zt),d=new wkt(J),Uvr(d.a,T),y=ME(q,Ree),g=new Skt(J),O=(SEr(g.a,y),y),D=O),R=D,R}function T3r(n,i){var l,d,g;if(i===n)return!0;if($e(i,552)){if(g=v(i,849),n.a.d!=g.a.d||zT(n).gc()!=zT(g).gc())return!1;for(d=zT(g).Kc();d.Ob();)if(l=v(d.Pb(),425),QDt(n,l.a.ld())!=v(l.a.md(),16).gc())return!1;return!0}return!1}function C3r(n){var i,l,d,g;return d=v(n.a,17).a,g=v(n.b,17).a,i=d,l=g,d==0&&g==0?l-=1:d==-1&&g<=0?(i=0,l-=2):d<=0&&g>0?(i-=1,l-=1):d>=0&&g<0?(i+=1,l+=1):d>0&&g>=0?(i-=1,l+=1):(i+=1,l-=1),new Ms(Nt(i),Nt(l))}function A3r(n,i){return n.c<i.c?-1:n.c>i.c?1:n.b<i.b?-1:n.b>i.b?1:n.a!=i.a?ma(n.a)-ma(i.a):n.d==(yD(),EP)&&i.d==wP?-1:n.d==wP&&i.d==EP?1:0}function XVt(n,i){var l,d,g,y,x;return y=i.a,y.c.i==i.b?x=y.d:x=y.c,y.c.i==i.b?d=y.c:d=y.d,g=Kvr(n.a,x,d),g>0&&g<b5?(l=y3r(n.a,d.i,g,n.c),VFt(n.a,d.i,-l),l>0):g<0&&-g<b5?(l=v3r(n.a,d.i,-g,n.c),VFt(n.a,d.i,l),l>0):!1}function k3r(n,i,l,d){var g,y,x,T,R,O,D,q;for(g=(i-n.d)/n.c.c.length,y=0,n.a+=l,n.d=i,q=new me(n.c);q.a<q.c.c.length;)D=v(pe(q),27),O=D.g,R=D.f,Au(D,D.i+y*g),ku(D,D.j+d*l),FE(D,D.g+g),BE(D,n.a),++y,T=D.g,x=D.f,fMe(D,new Ct(T,x),new Ct(O,R))}function R3r(n){var i,l,d,g,y,x,T;if(n==null)return null;for(T=n.length,g=(T+1)/2|0,x=st(bh,E5,28,g,15,1),T%2!=0&&(x[--g]=oPe((sr(T-1,n.length),n.charCodeAt(T-1)))),l=0,d=0;l<g;++l)i=oPe(Do(n,d++)),y=oPe(Do(n,d++)),x[l]=(i<<4|y)<<24>>24;return x}function I3r(n){if(n.ze()){var i=n.c;i.Ae()?n.o="["+i.n:i.ze()?n.o="["+i.xe():n.o="[L"+i.xe()+";",n.b=i.we()+"[]",n.k=i.ye()+"[]";return}var l=n.j,d=n.d;d=d.split("/"),n.o=U0e(".",[l,U0e("$",d)]),n.b=U0e(".",[l,U0e(".",d)]),n.k=d[d.length-1]}function N3r(n,i){var l,d,g,y,x;for(x=null,y=new me(n.e.a);y.a<y.c.c.length;)if(g=v(pe(y),125),g.b.a.c.length==g.g.a.c.length){for(d=g.e,x=hSr(g),l=g.e-v(x.a,17).a+1;l<g.e+v(x.b,17).a;l++)i[l]<i[d]&&(d=l);i[d]<i[g.e]&&(--i[g.e],++i[d],g.e=d)}}function F1e(n){var i,l,d,g,y,x,T,R;for(g=ka,d=Ss,l=new me(n.e.b);l.a<l.c.c.length;)for(i=v(pe(l),30),x=new me(i.a);x.a<x.c.c.length;)y=v(pe(x),10),R=We(n.p[y.p]),T=R+We(n.b[n.g[y.p].p]),g=u.Math.min(g,R),d=u.Math.max(d,T);return d-g}function QVt(n){dpe();var i,l,d,g;return d=qp(n,Wu(35)),i=d==-1?n:(mo(0,d,n.length),n.substr(0,d)),l=d==-1?null:(sr(d+1,n.length+1),n.substr(d+1)),g=j1r(NKe,i),g?l!=null&&(g=YUt(g,(hr(l),l))):(g=p8r(i),spr(NKe,i,g),l!=null&&(g=YUt(g,l))),g}function UMe(n,i,l,d){var g,y,x,T,R;for(g=mPe(n,i),T=0,R=g.gc();T<R;++T)if(y=v(g.Xb(T),179),An(d,d8(Al(n,y)))){if(x=rz(Al(n,y)),l==null){if(x==null)return y}else if(An(l,x))return y}return null}function zMe(n,i,l,d){var g,y,x,T,R;for(g=X1e(n,i),T=0,R=g.gc();T<R;++T)if(y=v(g.Xb(T),179),An(d,d8(Al(n,y)))){if(x=rz(Al(n,y)),l==null){if(x==null)return y}else if(An(l,x))return y}return null}function O3r(n,i,l){var d,g,y,x,T,R;if(x=new fK,T=Iu(n.e.Dh(),i),d=v(n.g,124),al(),v(i,69).xk())for(y=0;y<n.i;++y)g=d[y],T.am(g.Lk())&&Yr(x,g);else for(y=0;y<n.i;++y)g=d[y],T.am(g.Lk())&&(R=g.md(),Yr(x,l?eM(n,i,y,x.i,R):R));return hOe(x)}function ZVt(n){var i,l,d,g,y,x,T;if(n&&(i=n.qi(Yf),i&&(x=ai(h1((!i.b&&(i.b=new sd((Pn(),nl),_c,i)),i.b),"conversionDelegates")),x!=null))){for(T=new Ot,d=T4(x,"\\w+"),g=0,y=d.length;g<y;++g)l=d[g],jn(T.c,l);return T}return Fn(),Fn(),Zo}function JVt(n,i){var l,d,g,y,x,T,R,O;for(x=i==1?Kbe:Wbe,y=x.a.ec().Kc();y.Ob();)for(g=v(y.Pb(),88),R=v(Zi(n.f.c,g),21).Kc();R.Ob();)switch(T=v(R.Pb(),42),d=v(T.b,86),O=v(T.a,194),l=O.c,g.g){case 2:case 1:d.g.d+=l;break;case 4:case 3:d.g.c+=l}}function L3r(n,i){var l,d,g,y,x;for(l=new UD(ZI),g=(jk(),Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5])),y=0,x=g.length;y<x;++y)d=g[y],sIe(l,d,new Ot);return ts(Bl(Ki(ic(new xn(null,new Nn(n.b,16)),new qvt),new Hvt),new vCt(i)),new _Ct(l)),l}function fJ(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=i.Kc();y.Ob();)g=v(y.Pb(),27),D=g.i+g.g/2,J=g.j+g.f/2,R=n.f,x=R.i+R.g/2,T=R.j+R.f/2,O=D-x,q=J-T,d=u.Math.sqrt(O*O+q*q),O*=n.e/d,q*=n.e/d,l?(D-=O,J-=q):(D+=O,J+=q),Au(g,D-g.g/2),ku(g,J-g.f/2)}function a5(n){var i,l,d;if(!n.c&&n.b!=null){for(i=n.b.length-4;i>=0;i-=2)for(l=0;l<=i;l+=2)(n.b[l]>n.b[l+2]||n.b[l]===n.b[l+2]&&n.b[l+1]>n.b[l+3])&&(d=n.b[l+2],n.b[l+2]=n.b[l],n.b[l]=d,d=n.b[l+3],n.b[l+3]=n.b[l+1],n.b[l+1]=d);n.c=!0}}function D3r(n,i){var l,d,g,y,x,T,R,O,D;for(O=-1,D=0,x=n,T=0,R=x.length;T<R;++T){for(y=x[T],l=new KOt(O==-1?n[0]:n[O],i,(DD(),gne)),d=0;d<y.length;d++)for(g=d+1;g<y.length;g++)ya(y[d],(At(),ua))&&ya(y[g],ua)&&RKt(l,y[d],y[g])>0&&++D;++O}return D}function T0(n){var i,l;return l=new Ed(__(n.Rm)),l.a+="@",bi(l,(i=ma(n)>>>0,i.toString(16))),n.Vh()?(l.a+=" (eProxyURI: ",Kc(l,n._h()),n.Kh()&&(l.a+=" eClass: ",Kc(l,n.Kh())),l.a+=")"):n.Kh()&&(l.a+=" (eClass: ",Kc(l,n.Kh()),l.a+=")"),l.a}function nM(n){var i,l,d,g;if(n.e)throw _e(new Tl((Fm(kbe),age+kbe.k+sge)));for(n.d==(ys(),cp)&&DJ(n,Ol),l=new me(n.a.a);l.a<l.c.c.length;)i=v(pe(l),316),i.g=i.i;for(g=new me(n.a.b);g.a<g.c.c.length;)d=v(pe(g),60),d.i=Ss;return n.b.cf(n),n}function M3r(n,i){var l,d,g,y,x;if(i<2*n.b)throw _e(new ar("The knot vector must have at least two time the dimension elements."));for(n.f=1,g=0;g<n.b;g++)Lt(n.e,0);for(x=i+1-2*n.b,l=x,y=1;y<x;y++)Lt(n.e,y/l);if(n.d)for(d=0;d<n.b;d++)Lt(n.e,1)}function eYt(n,i){var l,d,g,y,x,T,R,O,D;if(O=i,D=v(oZ(Mde(n.i),O),27),!D)throw g=zm(O,ug),T="Unable to find elk node for json object '"+g,R=T+"' Panic!",_e(new zp(R));y=ME(O,"edges"),l=new O8t(n,D),_4r(l.a,l.b,y),x=ME(O,Fme),d=new rkt(n),Swr(d.a,x)}function tYt(n,i,l,d){var g,y,x,T,R;if(d!=null){if(g=n.d[i],g){for(y=g.g,R=g.i,T=0;T<R;++T)if(x=v(y[T],136),x.Bi()==l&&Yi(d,x.ld()))return T}}else if(g=n.d[i],g){for(y=g.g,R=g.i,T=0;T<R;++T)if(x=v(y[T],136),Ze(x.ld())===Ze(d))return T}return-1}function lI(n,i){var l,d,g;return l=i==null?Pl(ol(n.f,null)):NL(n.i,i),$e(l,241)?(g=v(l,241),g.zi()==null,g):$e(l,507)?(d=v(l,2037),g=d.a,g&&(g.yb==null||(i==null?yu(n.f,null,g):qE(n.i,i,g))),g):null}function P3r(n){iPe();var i,l,d,g,y,x,T;if(n==null||(g=n.length,g%2!=0))return null;for(i=jQ(n),y=g/2|0,l=st(bh,E5,28,y,15,1),d=0;d<y;d++){if(x=iB[i[d*2]],x==-1||(T=iB[i[d*2+1]],T==-1))return null;l[d]=(x<<4|T)<<24>>24}return l}function B3r(n,i,l){var d,g,y;if(g=v(yl(n.i,i),314),!g)if(g=new PFt(n.d,i,l),Sk(n.i,i,g),VLe(i))Usr(n.a,i.c,i.b,g);else switch(y=_Sr(i),d=v(yl(n.p,y),252),y.g){case 1:case 3:g.j=!0,Uue(d,i.b,g);break;case 4:case 2:g.k=!0,Uue(d,i.c,g)}return g}function F3r(n,i){var l,d,g,y,x,T,R,O,D;for(R=Pg(n.c-n.b&n.a.length-1),O=null,D=null,y=new fD(n);y.a!=y.b;)g=v(CZ(y),10),l=(T=v(oe(g,(At(),m1)),12),T?T.i:null),d=(x=v(oe(g,Kf),12),x?x.i:null),(O!=l||D!=d)&&(LVt(R,i),O=l,D=d),jn(R.c,g);LVt(R,i)}function $3r(n,i,l,d){var g,y,x,T,R,O;if(T=new fK,R=Iu(n.e.Dh(),i),g=v(n.g,124),al(),v(i,69).xk())for(x=0;x<n.i;++x)y=g[x],R.am(y.Lk())&&Yr(T,y);else for(x=0;x<n.i;++x)y=g[x],R.am(y.Lk())&&(O=y.md(),Yr(T,d?eM(n,i,x,T.i,O):O));return FLe(T,l)}function nYt(n,i){var l,d,g,y,x,T,R,O;if(g=n.b[i.p],g>=0)return g;for(y=1,T=new me(i.j);T.a<T.c.c.length;)for(x=v(pe(T),12),d=new me(x.g);d.a<d.c.c.length;)l=v(pe(d),18),O=l.d.i,i!=O&&(R=nYt(n,O),y=u.Math.max(y,R+1));return Dvr(n,i,y),y}function rYt(n,i){var l,d,g,y,x,T,R,O;if(g=n.b[i.p],g>=0)return g;for(y=1,T=new me(i.j);T.a<T.c.c.length;)for(x=v(pe(T),12),d=new me(x.e);d.a<d.c.c.length;)l=v(pe(d),18),O=l.c.i,i!=O&&(R=rYt(n,O),y=u.Math.max(y,R+1));return h_r(n,i,y),y}function iYt(n,i,l){var d,g,y;for(d=1;d<n.c.length;d++){for(y=($n(d,n.c.length),v(n.c[d],10)),g=d;g>0&&i.Ne(($n(g-1,n.c.length),v(n.c[g-1],10)),y)>0;)of(n,g,($n(g-1,n.c.length),v(n.c[g-1],10))),--g;$n(g,n.c.length),n.c[g]=y}l.a=new Br,l.b=new Br}function U3r(n,i,l){var d,g,y,x,T,R,O,D;for(D=(d=v(i.e&&i.e(),9),new nf(d,v(v0(d,d.length),9),0)),R=T4(l,"[\\[\\]\\s,]+"),y=R,x=0,T=y.length;x<T;++x)if(g=y[x],v4(g).length!=0){if(O=dVt(n,g),O==null)return null;S0(D,v(O,22))}return D}function z3r(n){var i,l,d,g;for(g=n.length,i=null,d=0;d<g;d++)l=(sr(d,n.length),n.charCodeAt(d)),qp(".*+?{[()|\\^$",Wu(l))>=0?(i||(i=new EL,d>0&&bl(i,(mo(0,d,n.length),n.substr(0,d)))),i.a+="\\",c8(i,l&vs)):i&&c8(i,l&vs);return i?i.a:n}function G3r(n){var i,l,d;for(l=new me(n.a.a.b);l.a<l.c.c.length;)i=v(pe(l),86),d=(hr(0),0),d>0&&(!(Bm(n.a.c)&&i.n.d)&&!(LT(n.a.c)&&i.n.b)&&(i.g.d-=u.Math.max(0,d/2-.5)),!(Bm(n.a.c)&&i.n.a)&&!(LT(n.a.c)&&i.n.c)&&(i.g.a+=u.Math.max(0,d-1)))}function aYt(n,i,l){var d,g;if((n.c-n.b&n.a.length-1)==2)i==(Bt(),or)||i==gr?(ZQ(v(ID(n),15),(Id(),im)),ZQ(v(ID(n),15),m2)):(ZQ(v(ID(n),15),(Id(),m2)),ZQ(v(ID(n),15),im));else for(g=new fD(n);g.a!=g.b;)d=v(CZ(g),15),ZQ(d,l)}function q3r(n,i){var l,d,g,y,x,T,R;for(g=i8(new T7e(n)),T=new go(g,g.c.length),y=i8(new T7e(i)),R=new go(y,y.c.length),x=null;T.b>0&&R.b>0&&(l=(Tr(T.b>0),v(T.a.Xb(T.c=--T.b),27)),d=(Tr(R.b>0),v(R.a.Xb(R.c=--R.b),27)),l==d);)x=l;return x}function sYt(n,i,l){var d,g,y,x;oMt(n,i)>oMt(n,l)?(d=sc(l,(Bt(),gr)),n.d=d.dc()?0:pde(v(d.Xb(0),12)),x=sc(i,cr),n.b=x.dc()?0:pde(v(x.Xb(0),12))):(g=sc(l,(Bt(),cr)),n.d=g.dc()?0:pde(v(g.Xb(0),12)),y=sc(i,gr),n.b=y.dc()?0:pde(v(y.Xb(0),12)))}function oYt(n,i){var l,d,g,y;for(l=n.o.a,y=v(v(Zi(n.r,i),21),87).Kc();y.Ob();)g=v(y.Pb(),117),g.e.a=l*We(at(g.b.of(ite))),g.e.b=(d=g.b,d.pf((Ei(),jh))?d.ag()==(Bt(),or)?-d.Mf().b-We(at(d.of(jh))):We(at(d.of(jh))):d.ag()==(Bt(),or)?-d.Mf().b:0)}function H3r(n,i){var l,d,g,y;for(i.Ug("Self-Loop pre-processing",1),d=new me(n.a);d.a<d.c.c.length;)l=v(pe(d),10),Ivr(l)&&(g=(y=new _Gt(l),_t(l,(At(),yx),y),fAr(y),y),ts(Bl(ic(new xn(null,new Nn(g.d,16)),new N2t),new O2t),new L2t),o5r(g));i.Vg()}function V3r(n){var i,l,d,g,y,x,T,R;i=!0,g=null,y=null;e:for(R=new me(n.a);R.a<R.c.c.length;)for(T=v(pe(R),10),d=new yr(_r(Hs(T).a.Kc(),new S));zr(d);){if(l=v(Rr(d),18),g&&g!=T){i=!1;break e}if(g=T,x=l.c.i,y&&y!=x){i=!1;break e}y=x}return i}function Y3r(n,i,l){var d,g,y,x,T,R;for(y=-1,T=-1,x=0;x<i.c.length&&(g=($n(x,i.c.length),v(i.c[x],339)),!(g.c>n.c));x++)g.a>=n.s&&(y<0&&(y=x),T=x);return R=(n.s+n.c)/2,y>=0&&(d=OCr(n,i,y,T),R=Rar(($n(d,i.c.length),v(i.c[d],339))),B4r(i,d,l)),R}function Jr(n,i,l){var d,g,y,x,T,R,O;for(x=(y=new V6e,y),v9e(x,(hr(i),i)),O=(!x.b&&(x.b=new sd((Pn(),nl),_c,x)),x.b),R=1;R<l.length;R+=2)sG(O,l[R-1],l[R]);for(d=(!n.Ab&&(n.Ab=new vt(wi,n,0,3)),n.Ab),T=0;T<0;++T)g=ldr(v(ze(d,d.i-1),598)),d=g;Yr(d,x)}function lYt(n,i,l){var d,g,y;for(jor.call(this,new Ot),this.a=i,this.b=l,this.e=n,d=(n.b&&ipe(n),n.a),this.d=$Lt(d.a,this.a),this.c=$Lt(d.b,this.b),zyr(this,this.d,this.c),f4r(this),y=this.e.e.a.ec().Kc();y.Ob();)g=v(y.Pb(),272),g.c.c.length>0&&k6r(this,g)}function GMe(n,i,l,d,g,y){var x,T,R;if(!g[i.a]){for(g[i.a]=!0,x=d,!x&&(x=new PQ),Lt(x.e,i),R=y[i.a].Kc();R.Ob();)T=v(R.Pb(),290),!(T.d==l||T.c==l)&&(T.c!=i&&GMe(n,T.c,i,x,g,y),T.d!=i&&GMe(n,T.d,i,x,g,y),Lt(x.c,T),xs(x.d,T.b));return x}return null}function j3r(n){var i,l,d,g,y,x,T;for(i=0,g=new me(n.e);g.a<g.c.c.length;)d=v(pe(g),18),l=VT(new xn(null,new Nn(d.b,16)),new ovt),l&&++i;for(x=new me(n.g);x.a<x.c.c.length;)y=v(pe(x),18),T=VT(new xn(null,new Nn(y.b,16)),new lvt),T&&++i;return i>=2}function W3r(n,i,l,d,g){var y,x,T,R,O,D;for(y=n.c.d.j,x=v(gf(l,0),8),D=1;D<l.b;D++)O=v(gf(l,D),8),qa(d,x,d.c.b,d.c),T=Vp(Hi(new Wo(x),O),.5),R=Vp(new sfe(X9e(y)),g),Hi(T,R),qa(d,T,d.c.b,d.c),x=O,y=i==0?RZ(y):bLe(y);pi(d,(Tr(l.b!=0),v(l.c.b.c,8)))}function K3r(n){w4();var i,l,d;return l=va(Bd,Te(xe(fl,1),wt,95,0,[P0])),!(Dz(xQ(l,n))>1||(i=va(D0,Te(xe(fl,1),wt,95,0,[cb,M0])),Dz(xQ(i,n))>1)||(d=va(B0,Te(xe(fl,1),wt,95,0,[am,Qf])),Dz(xQ(d,n))>1))}function qMe(n,i,l){var d,g,y;for(y=new me(n.t);y.a<y.c.c.length;)d=v(pe(y),274),d.b.s<0&&d.c>0&&(d.b.n-=d.c,d.b.n<=0&&d.b.u>0&&pi(i,d.b));for(g=new me(n.i);g.a<g.c.c.length;)d=v(pe(g),274),d.a.s<0&&d.c>0&&(d.a.u-=d.c,d.a.u<=0&&d.a.n>0&&pi(l,d.a))}function pJ(n){var i,l,d,g,y;if(n.g==null&&(n.d=n.bj(n.f),Yr(n,n.d),n.c))return y=n.f,y;if(i=v(n.g[n.i-1],51),g=i.Pb(),n.e=i,l=n.bj(g),l.Ob())n.d=l,Yr(n,l);else for(n.d=null;!i.Ob()&&(Ga(n.g,--n.i,null),n.i!=0);)d=v(n.g[n.i-1],51),i=d;return g}function X3r(n,i){var l,d,g,y,x,T;if(d=i,g=d.Lk(),tb(n.e,g)){if(g.Si()&&NQ(n,g,d.md()))return!1}else for(T=Iu(n.e.Dh(),g),l=v(n.g,124),y=0;y<n.i;++y)if(x=l[y],T.am(x.Lk()))return Yi(x,d)?!1:(v(JT(n,y,i),76),!0);return Yr(n,i)}function Q3r(n,i,l,d){var g,y,x,T;for(g=new Jm(n),g_(g,(lr(),Pc)),_t(g,(At(),Ji),i),_t(g,oP,d),_t(g,(qt(),Qa),(co(),su)),_t(g,m1,i.c),_t(g,Kf,i.d),PYt(i,g),T=u.Math.floor(l/2),x=new me(g.j);x.a<x.c.c.length;)y=v(pe(x),12),y.n.b=T;return g}function cYt(n){var i,l,d,g,y,x,T;for(i=0,d=new me(n.a);d.a<d.c.c.length;)for(l=v(pe(d),10),y=new yr(_r(os(l).a.Kc(),new S));zr(y);)g=v(Rr(y),18),n==g.d.i.c&&g.c.j==(Bt(),cr)&&(x=q1(g.c).b,T=q1(g.d).b,i=u.Math.max(i,u.Math.abs(T-x)));return i}function uYt(n,i,l){var d,g,y,x,T;for(l.Ug("ELK Force",1),Vt(Ht(Et(i,(A0(),sGe))))||oz((d=new dL((fE(),new aE(i))),d)),T=TUt(i),bwr(T),$br(n,v(oe(T,aGe),432)),x=nWt(n.a,T),y=x.Kc();y.Ob();)g=v(y.Pb(),235),GAr(n.b,g,l.eh(1/x.gc()));T=mKt(x),CKt(T),l.Vg()}function HMe(n,i,l){switch(l.g){case 1:return new Ct(i.a,u.Math.min(n.d.b,i.b));case 2:return new Ct(u.Math.max(n.c.a,i.a),i.b);case 3:return new Ct(i.a,u.Math.max(n.c.b,i.b));case 4:return new Ct(u.Math.min(i.a,n.d.a),i.b)}return new Ct(i.a,i.b)}function bG(n){var i,l,d;for(i=Pg(1+(!n.c&&(n.c=new vt(Oh,n,9,9)),n.c).i),Lt(i,(!n.d&&(n.d=new Gn(ss,n,8,5)),n.d)),d=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));d.e!=d.i.gc();)l=v(wr(d),123),Lt(i,(!l.d&&(l.d=new Gn(ss,l,8,5)),l.d));return ni(i),new YL(i)}function eb(n){var i,l,d;for(i=Pg(1+(!n.c&&(n.c=new vt(Oh,n,9,9)),n.c).i),Lt(i,(!n.e&&(n.e=new Gn(ss,n,7,4)),n.e)),d=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));d.e!=d.i.gc();)l=v(wr(d),123),Lt(i,(!l.e&&(l.e=new Gn(ss,l,7,4)),l.e));return ni(i),new YL(i)}function Z3r(n){var i,l,d,g;if(n==null)return null;if(d=eu(n,!0),g=dq.length,An(d.substr(d.length-g,g),dq)){if(l=d.length,l==4){if(i=(sr(0,d.length),d.charCodeAt(0)),i==43)return QKe;if(i==45)return Dhn}else if(l==3)return QKe}return y4(d)}function J3r(n,i){var l,d,g,y,x;if(i.Ug("Breaking Point Processor",1),P7r(n),Vt(Ht(oe(n,(qt(),pVe))))){for(g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),l=0,x=new me(d.a);x.a<x.c.c.length;)y=v(pe(x),10),y.p=l++;Nkr(n),kYt(n,!0),kYt(n,!1)}i.Vg()}function eTr(n,i,l,d){var g,y,x,T,R,O,D,q,J;for(q=d?(Bt(),cr):(Bt(),gr),g=!1,R=i[l],O=0,D=R.length;O<D;++O)T=R[O],!yk(v(oe(T,(qt(),Qa)),101))&&(x=T.e,J=!sc(T,q).dc()&&!!x,J&&(y=BDe(x),n.b=new $De(y,d?0:y.length-1)),g=g|z5r(n,T,q,J));return g}function hYt(n,i,l,d){var g,y,x;if(x=ADe(i,l),jn(d.c,i),n.j[x.p]==-1||n.j[x.p]==2||n.a[i.p])return d;for(n.j[x.p]=-1,y=new yr(_r(Qm(x).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),!(!(!Jo(g)&&!(!Jo(g)&&g.c.i.c==g.d.i.c))||g==i))return hYt(n,g,x,d);return d}function tTr(n){var i,l,d,g;for(i=0,l=0,g=new me(n.j);g.a<g.c.c.length;)if(d=v(pe(g),12),i=ti(zo(i,tBt(Ki(new xn(null,new Nn(d.e,16)),new Nwt)))),l=ti(zo(l,tBt(Ki(new xn(null,new Nn(d.g,16)),new Owt)))),i>1||l>1)return 2;return i+l==1?2:0}function Gh(n,i){var l,d,g,y,x,T;return y=n.a*tge+n.b*1502,T=n.b*tge+11,l=u.Math.floor(T*GG),y+=l,T-=l*fBe,y%=fBe,n.a=y,n.b=T,i<=24?u.Math.floor(n.a*Eze[i]):(g=n.a*(1<<i-24),x=u.Math.floor(n.b*xze[i]),d=g+x,d>=2147483648&&(d-=4294967296),d)}function dYt(n,i,l){var d,g,y,x,T,R,O;for(y=new Ot,O=new Ea,x=new Ea,ykr(n,O,x,i),X6r(n,O,x,i,l),R=new me(n);R.a<R.c.c.length;)for(T=v(pe(R),118),g=new me(T.k);g.a<g.c.c.length;)d=v(pe(g),132),(!i||d.c==(o1(),d2))&&T.g>d.b.g&&jn(y.c,d);return y}function nTr(n,i,l){var d,g,y,x,T,R;for(T=n.c,x=(l.q?l.q:(Fn(),Fn(),Jg)).vc().Kc();x.Ob();)y=v(x.Pb(),44),d=!VR(Ki(new xn(null,new Nn(T,16)),new PR(new E8t(i,y)))).Bd((w_(),p6)),d&&(R=y.md(),$e(R,4)&&(g=WLe(R),g!=null&&(R=g)),i.qf(v(y.ld(),149),R))}function rTr(n,i,l){var d,g;if(nz(n.b),a1(n.b,(Kz(),Bne),(AL(),eH)),a1(n.b,Fne,i.g),a1(n.b,$ne,i.a),n.a=kG(n.b,i),l.Ug("Compaction by shrinking a tree",n.a.c.length),i.i.c.length>1)for(g=new me(n.a);g.a<g.c.c.length;)d=v(pe(g),47),d.Kf(i,l.eh(1));l.Vg()}function VMe(n,i,l){var d,g,y;if(y=h5((dh(),ko),n.Dh(),i),y){if(al(),!v(y,69).xk()&&(y=Ik(Al(ko,y)),!y))throw _e(new ar(r2+i.xe()+MM));g=(d=n.Ih(y),v(d>=0?n.Lh(d,!0,!0):XE(n,y,!0),160)),v(g,220).Xl(i,l)}else throw _e(new ar(r2+i.xe()+MM))}function gJ(n,i){var l,d,g,y,x;if(i){for(y=$e(n.Cb,90)||$e(n.Cb,102),x=!y&&$e(n.Cb,331),d=new mr((!i.a&&(i.a=new rD(i,pl,i)),i.a));d.e!=d.i.gc();)if(l=v(wr(d),89),g=kJ(l),y?$e(g,90):x?$e(g,156):g)return g;return y?(Pn(),n0):(Pn(),dp)}else return null}function iTr(n,i){var l,d,g,y;for(i.Ug("Resize child graph to fit parent.",1),d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),30),xs(n.a,l.a),l.a.c.length=0;for(y=new me(n.a);y.a<y.c.c.length;)g=v(pe(y),10),po(g,null);n.b.c.length=0,S5r(n),n.e&&_Ar(n.e,n),i.Vg()}function aTr(n,i){var l,d,g,y,x;for(i.Ug("Edge joining",1),l=Vt(Ht(oe(n,(qt(),eve)))),g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),x=new go(d.a,0);x.b<x.d.gc();)y=(Tr(x.b<x.d.gc()),v(x.d.Xb(x.c=x.b++),10)),y.k==(lr(),Ws)&&(gpe(y,l),ld(x));i.Vg()}function sTr(n,i){var l,d,g,y,x;for(l=new Ot,g=ic(new xn(null,new Nn(n,16)),new Xwt),y=ic(new xn(null,new Nn(n,16)),new Qwt),x=mgr(Dpr(e4($Tr(Te(xe(F8r,1),Yn,848,0,[g,y])),new Zwt))),d=1;d<x.length;d++)x[d]-x[d-1]>=2*i&&Lt(l,new lde(x[d-1]+i,x[d]-i));return l}function oTr(n,i,l){var d,g,y,x,T,R,O,D;if(l)for(y=l.a.length,d=new S_(y),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),g=m8(l,x.a),g&&(R=B1r(n,(O=(kv(),D=new H7e,D),i&&YMe(O,i),O),g),I8(R,zm(g,ug)),sJ(g,R),mMe(g,R),c0e(n,g,R))}function mJ(n){var i,l,d,g,y,x;if(!n.j){if(x=new USt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Fl(n));d.e!=d.i.gc();)l=v(wr(d),29),g=mJ(l),Ka(x,g),Yr(x,l);i.a.Bc(n)!=null}h4(x),n.j=new NT((v(ze(bt((Mv(),Zn).o),11),19),x.i),x.g),$h(n).b&=-33}return n.j}function lTr(n){var i,l,d,g;if(n==null)return null;if(d=eu(n,!0),g=dq.length,An(d.substr(d.length-g,g),dq)){if(l=d.length,l==4){if(i=(sr(0,d.length),d.charCodeAt(0)),i==43)return ZKe;if(i==45)return Mhn}else if(l==3)return ZKe}return new L7e(d)}function cTr(n){var i,l,d;return l=n.l,l&l-1||(d=n.m,d&d-1)||(i=n.h,i&i-1)||i==0&&d==0&&l==0?-1:i==0&&d==0&&l!=0?c9e(l):i==0&&d!=0&&l==0?c9e(d)+22:i!=0&&d==0&&l==0?c9e(i)+44:-1}function s5(n,i){var l,d,g,y,x;for(g=i.a&n.f,y=null,d=n.b[g];;d=d.b){if(d==i){y?y.b=i.b:n.b[g]=i.b;break}y=d}for(x=i.f&n.f,y=null,l=n.c[x];;l=l.d){if(l==i){y?y.d=i.d:n.c[x]=i.d;break}y=l}i.e?i.e.c=i.c:n.a=i.c,i.c?i.c.e=i.e:n.e=i.e,--n.i,++n.g}function uTr(n,i){var l;i.d?i.d.b=i.b:n.a=i.b,i.b?i.b.d=i.d:n.e=i.d,!i.e&&!i.c?(l=v($f(v(Lk(n.b,i.a),260)),260),l.a=0,++n.c):(l=v($f(v(br(n.b,i.a),260)),260),--l.a,i.e?i.e.c=i.c:l.b=v($f(i.c),511),i.c?i.c.e=i.e:l.c=v($f(i.e),511)),--n.d}function hTr(n){var i,l,d,g,y,x,T,R,O,D;for(l=n.o,i=n.p,x=qi,g=Po,T=qi,y=Po,O=0;O<l;++O)for(D=0;D<i;++D)e5(n,O,D)&&(x=u.Math.min(x,O),g=u.Math.max(g,O),T=u.Math.min(T,D),y=u.Math.max(y,D));return R=g-x+1,d=y-T+1,new GLt(Nt(x),Nt(T),Nt(R),Nt(d))}function $1e(n,i){var l,d,g,y;for(y=new go(n,0),l=(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),148));y.b<y.d.gc();)d=(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),148)),g=new DIe(d.c,l.d,i),Tr(y.b>0),y.a.Xb(y.c=--y.b),KS(y,g),Tr(y.b<y.d.gc()),y.d.Xb(y.c=y.b++),g.a=!1,l=d}function fYt(n){var i,l,d,g,y,x;for(g=v(oe(n,(At(),Yte)),12),x=new me(n.j);x.a<x.c.c.length;){for(y=v(pe(x),12),d=new me(y.g);d.a<d.c.c.length;)return i=v(pe(d),18),lo(i,g),y;for(l=new me(y.e);l.a<l.c.c.length;)return i=v(pe(l),18),Uo(i,g),y}return null}function pYt(n,i,l){var d,g,y,x,T,R;for(R=v(YS(n.a,i),17).a,l?FDe(n.a,Nt(R+1),i):FDe(n.a,Nt(R-1),i),x=new Hp,g=new yr(_r((l?os(i):Hs(i)).a.Kc(),new S));zr(g);)d=v(Rr(g),18),l?y=d.d.i:y=d.c.i,Ze(YS(n.a,y))===Ze(YS(n.a,i))&&(T=x.a.zc(y,x),T==null);return x}function dTr(n,i,l){var d,g;d=xc(l.q.getTime()),Oc(d,0)<0?(g=py-ti(Zz(ty(d),py)),g==py&&(g=0)):g=ti(Zz(d,py)),i==1?(g=u.Math.min((g+50)/100|0,9),C_(n,48+g&vs)):i==2?(g=u.Math.min((g+5)/10|0,99),Gg(n,g,2)):(Gg(n,g,3),i>3&&Gg(n,0,i-3))}function fTr(n){var i,l,d,g;return Ze(oe(n,(qt(),W4)))===Ze((Km(),Cy))?!n.e&&Ze(oe(n,Pq))!==Ze((P8(),Iq)):(d=v(oe(n,qye),299),g=Vt(Ht(oe(n,Hye)))||Ze(oe(n,hP))===Ze((SD(),Rq)),i=v(oe(n,NHe),17).a,l=n.a.c.length,!g&&d!=(P8(),Iq)&&(i==0||i>l))}function pTr(n){var i,l;for(l=0;l<n.c.length&&!(s9t(($n(l,n.c.length),v(n.c[l],113)))>0);l++);if(l>0&&l<n.c.length-1)return l;for(i=0;i<n.c.length&&!(s9t(($n(i,n.c.length),v(n.c[i],113)))>0);i++);return i>0&&l<n.c.length-1?i:n.c.length/2|0}function gYt(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=6&&i){if(tI(n,i))throw _e(new ar(PM+RVt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?gDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,6,d)),d=J8e(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,6,i,i))}function bJ(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=3&&i){if(tI(n,i))throw _e(new ar(PM+mWt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?vDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,12,d)),d=eIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function YMe(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=9&&i){if(tI(n,i))throw _e(new ar(PM+pjt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?bDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,9,d)),d=tIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,9,i,i))}function cI(n){var i,l,d,g,y;if(d=Gf(n),y=n.j,y==null&&d)return n.Jk()?null:d.ik();if($e(d,156)){if(l=d.jk(),l&&(g=l.wi(),g!=n.i)){if(i=v(d,156),i.nk())try{n.g=g.ti(i,y)}catch(x){if(x=Da(x),$e(x,82))n.g=null;else throw _e(x)}n.i=g}return n.g}return null}function mYt(n){var i;return i=new Ot,Lt(i,new ck(new Ct(n.c,n.d),new Ct(n.c+n.b,n.d))),Lt(i,new ck(new Ct(n.c,n.d),new Ct(n.c,n.d+n.a))),Lt(i,new ck(new Ct(n.c+n.b,n.d+n.a),new Ct(n.c+n.b,n.d))),Lt(i,new ck(new Ct(n.c+n.b,n.d+n.a),new Ct(n.c,n.d+n.a))),i}function gTr(n){var i,l,d;if(n==null)return Ku;try{return Kl(n)}catch(g){if(g=Da(g),$e(g,103))return i=g,d=__(cd(n))+"@"+(l=(Pm(),jLe(n)>>>0),l.toString(16)),R2r(pbr(),(KR(),"Exception during lenientFormat for "+d),i),"<"+d+" threw "+__(i.Rm)+">";throw _e(g)}}function mTr(n,i,l){var d,g,y;for(y=i.a.ec().Kc();y.Ob();)g=v(y.Pb(),74),d=v(br(n.b,g),272),!d&&(Aa(Hg(g))==Aa(jv(g))?r5r(n,g,l):Hg(g)==Aa(jv(g))?br(n.c,g)==null&&br(n.b,jv(g))!=null&&WWt(n,g,l,!1):br(n.d,g)==null&&br(n.b,Hg(g))!=null&&WWt(n,g,l,!0))}function bTr(n,i){var l,d,g,y,x,T,R;for(g=n.Kc();g.Ob();)for(d=v(g.Pb(),10),T=new zc,rc(T,d),Bs(T,(Bt(),gr)),_t(T,(At(),Xte),(Qn(),!0)),x=i.Kc();x.Ob();)y=v(x.Pb(),10),R=new zc,rc(R,y),Bs(R,cr),_t(R,Xte,!0),l=new NE,_t(l,Xte,!0),Uo(l,T),lo(l,R)}function yTr(n,i,l,d){var g,y,x,T;g=eGt(n,i,l),y=eGt(n,l,i),x=v(br(n.c,i),118),T=v(br(n.c,l),118),g<y?new R_((o1(),n3),x,T,y-g):y<g?new R_((o1(),n3),T,x,g-y):(g!=0||!(!i.i||!l.i)&&d[i.i.c][l.i.c])&&(new R_((o1(),n3),x,T,0),new R_(n3,T,x,0))}function bYt(n,i){var l,d,g,y,x,T,R;for(g=0,x=new me(i.a);x.a<x.c.c.length;)for(y=v(pe(x),10),g+=y.o.b+y.d.a+y.d.d+n.e,d=new yr(_r(Hs(y).a.Kc(),new S));zr(d);)l=v(Rr(d),18),l.c.i.k==(lr(),iu)&&(R=l.c.i,T=v(oe(R,(At(),Ji)),10),g+=T.o.b+T.d.a+T.d.d);return g}function rM(){rM=z,W5=new kU("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),A6=new kU("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),DP=new kU("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),LP=new kU("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Jq=new kU("WHOLE_DRAWING",4)}function vTr(n,i){if($e(i,207))return qyr(n,v(i,27));if($e(i,193))return Xyr(n,v(i,123));if($e(i,366))return Udr(n,v(i,135));if($e(i,326))return rkr(n,v(i,74));if(i)return null;throw _e(new ar(xUe+Wv(new wh(Te(xe(zs,1),Yn,1,5,[i])))))}function _Tr(n){var i,l,d,g,y,x,T;for(y=new Ea,g=new me(n.d.a);g.a<g.c.c.length;)d=v(pe(g),125),d.b.a.c.length==0&&qa(y,d,y.c.b,y.c);if(y.b>1)for(i=yE((l=new v_,++n.b,l),n.d),T=Ur(y,0);T.b!=T.d.c;)x=v(Fr(T),125),C0(m0(g0(b0(p0(new Bf,1),0),i),x))}function wTr(n,i,l){var d,g,y,x,T;for(l.Ug("Breaking Point Removing",1),n.a=v(oe(i,(qt(),lb)),223),y=new me(i.b);y.a<y.c.c.length;)for(g=v(pe(y),30),T=new me(DE(g.a));T.a<T.c.c.length;)x=v(pe(T),10),_Ft(x)&&(d=v(oe(x,(At(),gx)),313),!d.d&&oKt(n,d));l.Vg()}function yJ(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=11&&i){if(tI(n,i))throw _e(new ar(PM+dPe(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?_De(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,10,d)),d=uIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,11,i,i))}function ETr(n){var i,l,d,g;for(d=new P_(new b_(n.b).a);d.b;)l=zE(d),g=v(l.ld(),12),i=v(l.md(),10),_t(i,(At(),Ji),g),_t(g,kh,i),_t(g,Lq,(Qn(),!0)),Bs(g,v(oe(i,vc),64)),oe(i,vc),_t(g.i,(qt(),Qa),(co(),SN)),v(oe(So(g.i),au),21).Fc((cl(),iN))}function xTr(n,i,l){var d,g,y,x,T,R;if(y=0,x=0,n.c)for(R=new me(n.d.i.j);R.a<R.c.c.length;)T=v(pe(R),12),y+=T.e.c.length;else y=1;if(n.d)for(R=new me(n.c.i.j);R.a<R.c.c.length;)T=v(pe(R),12),x+=T.g.c.length;else x=1;return g=Ps(ZU(x-y)),d=(l+i)/2+(l-i)*(.4*g),d}function STr(n){b4();var i,l;if(n.Hc((Bt(),lc)))throw _e(new ar("Port sides must not contain UNDEFINED"));switch(n.gc()){case 1:return kq;case 2:return i=n.Hc(gr)&&n.Hc(cr),l=n.Hc(or)&&n.Hc(Mr),i||l?Bte:Pte;case 3:return Mte;case 4:return Dte;default:return null}}function U1e(n,i,l){return l5(),O8(n,i)&&O8(n,l)?!1:bpe(new Ct(n.c,n.d),new Ct(n.c+n.b,n.d),i,l)||bpe(new Ct(n.c+n.b,n.d),new Ct(n.c+n.b,n.d+n.a),i,l)||bpe(new Ct(n.c+n.b,n.d+n.a),new Ct(n.c,n.d+n.a),i,l)||bpe(new Ct(n.c,n.d+n.a),new Ct(n.c,n.d),i,l)}function jMe(n,i){var l,d,g,y;if(!n.dc()){for(l=0,d=n.gc();l<d;++l)if(y=ai(n.Xb(l)),y==null?i==null:An(y.substr(0,3),"!##")?i!=null&&(g=i.length,!An(y.substr(y.length-g,g),i)||y.length!=i.length+3)&&!An(nw,i):An(y,Zme)&&!An(nw,i)||An(y,i))return!0}return!1}function TTr(n,i,l,d){var g,y,x,T,R,O;for(x=n.j.c.length,R=st(z8r,SBe,314,x,0,1),T=0;T<x;T++)y=v(Yt(n.j,T),12),y.p=T,R[T]=P4r(zVt(y),l,d);for(XTr(n,R,l,i,d),O=new Br,g=0;g<R.length;g++)R[g]&&Ni(O,v(Yt(n.j,g),12),R[g]);O.f.c+O.i.c!=0&&(_t(n,(At(),sP),O),Xxr(n,R))}function CTr(n,i){var l,d,g,y,x,T;for(i.Ug("Partition postprocessing",1),d=new me(n.b);d.a<d.c.c.length;)for(l=v(pe(d),30),y=new me(l.a);y.a<y.c.c.length;)for(g=v(pe(y),10),T=new me(g.j);T.a<T.c.c.length;)x=v(pe(T),12),Vt(Ht(oe(x,(At(),Xte))))&&lD(T);i.Vg()}function ATr(n,i,l){var d,g,y;for(g=new me(n.a.b);g.a<g.c.c.length;)if(d=v(pe(g),60),y=qT(d),y&&y.k==(lr(),hs))switch(v(oe(y,(At(),vc)),64).g){case 4:y.n.a=i.a;break;case 2:y.n.a=l.a-(y.o.a+y.d.c);break;case 1:y.n.b=i.b;break;case 3:y.n.b=l.b-(y.o.b+y.d.a)}}function kTr(n,i,l){var d,g,y;for(l.Ug("Processor determine the height for each level",1),n.a=i.b.b==0?1:i.b.b,g=null,d=Ur(i.b,0);!g&&d.b!=d.d.c;)y=v(Fr(d),40),Vt(Ht(oe(y,(fa(),p2))))&&(g=y);g&&sWt(n,H1(Te(xe(Sne,1),wee,40,0,[g])),l,v(oe(i,(pc(),Ax)),88)),l.Vg()}function RTr(n){var i,l,d,g,y,x;for(d=(kv(),y=new bL,y),yG(d,n),l=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));l.e!=l.i.gc();)i=v(wr(l),27),x=(g=new bL,g),yJ(x,d),DT(x,i.g,i.f),I8(x,i.k),ef(x,i.i,i.j),Yr((!d.a&&(d.a=new vt(Pi,d,10,11)),d.a),x),yG(x,i);return d}function ITr(n,i,l){var d,g,y,x,T;return g=v(Et(i,(lJ(),iWe)),17),!g&&(g=Nt(0)),y=v(Et(l,iWe),17),!y&&(y=Nt(0)),g.a>y.a?-1:g.a<y.a?1:n.a&&(d=ha(i.j,l.j),d!=0||(d=ha(i.i,l.i),d!=0))?d:(x=i.g*i.f,T=l.g*l.f,ha(x,T))}function NTr(n,i){var l,d,g,y,x,T,R,O,D,q;if(++n.e,R=n.d==null?0:n.d.length,i>R){for(D=n.d,n.d=st(xKe,OUe,66,2*R+4,0,1),y=0;y<R;++y)if(O=D[y],O)for(d=O.g,q=O.i,T=0;T<q;++T)g=v(d[T],136),x=nIe(n,g.Bi()),l=n.d[x],!l&&(l=n.d[x]=n.dk()),l.Fc(g);return!0}else return!1}function OTr(n,i,l){var d,g,y,x,T,R;if(g=l,y=g.Lk(),tb(n.e,y)){if(y.Si()){for(d=v(n.g,124),x=0;x<n.i;++x)if(T=d[x],Yi(T,g)&&x!=i)throw _e(new ar(sq))}}else for(R=Iu(n.e.Dh(),y),d=v(n.g,124),x=0;x<n.i;++x)if(T=d[x],R.am(T.Lk()))throw _e(new ar(hq));FD(n,i,l)}function yYt(n,i){var l,d,g,y,x,T;for(l=v(oe(i,(At(),ob)),21),x=v(Zi((_pe(),da),l),21),T=v(Zi(_i,l),21),y=x.Kc();y.Ob();)if(d=v(y.Pb(),21),!v(Zi(n.b,d),15).dc())return!1;for(g=T.Kc();g.Ob();)if(d=v(g.Pb(),21),!v(Zi(n.b,d),15).dc())return!1;return!0}function WMe(n,i){var l,d,g,y,x,T,R,O,D;if(n.a.c.length==1)return wHt(v(Yt(n.a,0),172),i);for(x=kyr(n),R=0,O=n.d,y=x,D=n.d,T=(O-y)/2+y;y+1<O;){for(R=0,d=new me(n.a);d.a<d.c.c.length;)l=v(pe(d),172),R+=(g=dM(l,T,!1),g.a);R<i?(D=T,O=T):y=T,T=(O-y)/2+y}return D}function yG(n,i){var l,d,g,y,x;if(!i)return n;if($e(i,342))for(g=v(i,342),y=(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o),d=g.gh().c.Kc();d.e!=d.i.gc();)l=v(d.Yj(),44),x=l.md(),sG(y,v(l.ld(),149),x);else!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),C$t(n.o,i.nf());return n}function LTr(n){var i,l,d,g,y;return isNaN(n)?(E8(),tze):n<-9223372036854776e3?(E8(),Ien):n>=9223372036854776e3?(E8(),JUe):(g=!1,n<0&&(g=!0,n=-n),d=0,n>=j_&&(d=Ps(n/j_),n-=d*j_),l=0,n>=n6&&(l=Ps(n/n6),n-=l*n6),i=Ps(n),y=Su(i,l,d),g&&u0e(y),y)}function DTr(n){var i,l,d,g,y;if(y=new Ot,Cu(n.b,new H5t(y)),n.b.c.length=0,y.c.length!=0){for(i=($n(0,y.c.length),v(y.c[0],82)),l=1,d=y.c.length;l<d;++l)g=($n(l,y.c.length),v(y.c[l],82)),g!=i&&sxr(i,g);if($e(i,63))throw _e(v(i,63));if($e(i,296))throw _e(v(i,296))}}function MTr(n,i){var l,d,g,y;for(l=!i||!n.u.Hc((Ah(),ub)),y=0,g=new me(n.e.Xf());g.a<g.c.c.length;){if(d=v(pe(g),852),d.ag()==(Bt(),lc))throw _e(new ar("Label and node size calculator can only be used with ports that have port sides assigned."));d.Qf(y++),xyr(n,d,l)}}function KMe(n){var i,l,d,g,y;for(l=new me(n.a.a);l.a<l.c.c.length;){for(i=v(pe(l),316),i.j=null,y=i.a.a.ec().Kc();y.Ob();)d=v(y.Pb(),60),i1(d.b),(!i.j||d.d.c<i.j.d.c)&&(i.j=d);for(g=i.a.a.ec().Kc();g.Ob();)d=v(g.Pb(),60),d.b.a=d.d.c-i.j.d.c,d.b.b=d.d.d-i.j.d.d}return n}function vJ(n){var i,l,d,g,y;for(l=new me(n.a.a);l.a<l.c.c.length;){for(i=v(pe(l),194),i.f=null,y=i.a.a.ec().Kc();y.Ob();)d=v(y.Pb(),86),i1(d.e),(!i.f||d.g.c<i.f.g.c)&&(i.f=d);for(g=i.a.a.ec().Kc();g.Ob();)d=v(g.Pb(),86),d.e.a=d.g.c-i.f.g.c,d.e.b=d.g.d-i.f.g.d}return n}function PTr(n){var i,l,d;return l=v(n.a,17).a,d=v(n.b,17).a,i=u.Math.max(u.Math.abs(l),u.Math.abs(d)),l<i&&d==-i?new Ms(Nt(l+1),Nt(d)):l==i&&d<i?new Ms(Nt(l),Nt(d+1)):l>=-i&&d==i?new Ms(Nt(l-1),Nt(d)):new Ms(Nt(l),Nt(d-1))}function vYt(){return qo(),Te(xe(Y8r,1),wt,81,0,[UGe,BGe,k5,nye,aqe,_te,Ite,q4,rqe,WGe,tqe,G4,iqe,VGe,sqe,NGe,Ste,rye,yte,Ate,lqe,Cte,OGe,nqe,cqe,kte,oqe,vte,GGe,JGe,ZGe,Nte,MGe,bte,Ete,DGe,jI,XGe,YGe,eqe,eP,FGe,PGe,QGe,jGe,xte,Rte,LGe,Tte,KGe,wte,qGe,zGe,Cq,mte,HGe,$Ge])}function BTr(n,i,l){n.d=0,n.b=0,i.k==(lr(),iu)&&l.k==iu&&v(oe(i,(At(),Ji)),10)==v(oe(l,Ji),10)&&(Ife(i).j==(Bt(),or)?sYt(n,i,l):sYt(n,l,i)),i.k==iu&&l.k==Ws?Ife(i).j==(Bt(),or)?n.d=1:n.b=1:l.k==iu&&i.k==Ws&&(Ife(l).j==(Bt(),or)?n.b=1:n.d=1),w_r(n,i,l)}function FTr(n){var i,l,d,g,y,x,T,R,O,D,q;return q=HDe(n),i=n.a,R=i!=null,R&&a8(q,"category",n.a),g=fU(new m_(n.d)),x=!g,x&&(O=new p_,c1(q,"knownOptions",O),l=new Tkt(O),To(new m_(n.d),l)),y=fU(n.g),T=!y,T&&(D=new p_,c1(q,"supportedFeatures",D),d=new Ckt(D),To(n.g,d)),q}function $Tr(n){var i,l,d,g,y,x,T,R,O;for(d=!1,i=336,l=0,y=new lOt(n.length),T=n,R=0,O=T.length;R<O;++R)x=T[R],d=d|(Vv(x),!1),g=(Pv(x),x.a),Lt(y.a,ni(g)),i&=g.yd(),l=ryr(l,g.zd());return v(v(rLt(new xn(null,E1e(new Nn((CE(),ULe(y.a)),16),new L,i,l)),new b5t(n)),687),848)}function UTr(n,i){var l;n.d&&(i.c!=n.e.c||Imr(n.e.b,i.b))&&(Lt(n.f,n.d),n.a=n.d.c+n.d.b,n.d=null,n.e=null),esr(i.b)?n.c=i:n.b=i,(i.b==(B8(),dx)&&!i.a||i.b==$4&&i.a||i.b==A5&&i.a||i.b==U4&&!i.a)&&n.c&&n.b&&(l=new rf(n.a,n.c.d,i.c-n.a,n.b.d-n.c.d),n.d=l,n.e=i)}function iM(n){var i;if(M6t.call(this),this.i=new Fxt,this.g=n,this.f=v(n.e&&n.e(),9).length,this.f==0)throw _e(new ar("There must be at least one phase in the phase enumeration."));this.c=(i=v(n1(this.g),9),new nf(i,v(v0(i,i.length),9),0)),this.a=new ms,this.b=new Br}function XMe(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=7&&i){if(tI(n,i))throw _e(new ar(PM+CHt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?mDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=v(i,54).Rh(n,1,vH,d)),d=rNe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,7,i,i))}function _Yt(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=3&&i){if(tI(n,i))throw _e(new ar(PM+Szt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?yDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=v(i,54).Rh(n,0,wH,d)),d=iNe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function z1e(n,i){uI();var l,d,g,y,x,T,R,O,D;return i.d>n.d&&(T=n,n=i,i=T),i.d<63?A5r(n,i):(x=(n.d&-2)<<4,O=xOe(n,x),D=xOe(i,x),d=ope(n,Ok(O,x)),g=ope(i,Ok(D,x)),R=z1e(O,D),l=z1e(d,g),y=z1e(ope(O,d),ope(g,D)),y=ppe(ppe(y,R),l),y=Ok(y,x),R=Ok(R,x<<1),ppe(ppe(R,y),l))}function fy(){fy=z,ive=new AT(SQt,0),bVe=new AT("LONGEST_PATH",1),yVe=new AT("LONGEST_PATH_SOURCE",2),rve=new AT("COFFMAN_GRAHAM",3),mVe=new AT(Ige,4),vVe=new AT("STRETCH_WIDTH",5),pne=new AT("MIN_WIDTH",6),dN=new AT("BF_MODEL_ORDER",7),fN=new AT("DF_MODEL_ORDER",8)}function zTr(n,i,l){var d,g,y,x,T;for(x=MD(n,l),T=st(tm,gy,10,i.length,0,1),d=0,y=x.Kc();y.Ob();)g=v(y.Pb(),12),Vt(Ht(oe(g,(At(),Lq))))&&(T[d++]=v(oe(g,kh),10));if(d<i.length)throw _e(new Tl("Expected "+i.length+" hierarchical ports, but found only "+d+"."));return T}function GTr(n,i){var l,d,g,y,x,T;if(!n.tb){for(y=(!n.rb&&(n.rb=new ZS(n,v1,n)),n.rb),T=new ok(y.i),g=new mr(y);g.e!=g.i.gc();)d=v(wr(g),142),x=d.xe(),l=v(x==null?yu(T.f,null,d):qE(T.i,x,d),142),l&&(x==null?yu(T.f,null,l):qE(T.i,x,l));n.tb=T}return v(Qc(n.tb,i),142)}function vG(n,i){var l,d,g,y,x;if((n.i==null&&tg(n),n.i).length,!n.p){for(x=new ok((3*n.g.i/2|0)+1),g=new mk(n.g);g.e!=g.i.gc();)d=v(j0e(g),179),y=d.xe(),l=v(y==null?yu(x.f,null,d):qE(x.i,y,d),179),l&&(y==null?yu(x.f,null,l):qE(x.i,y,l));n.p=x}return v(Qc(n.p,i),179)}function QMe(n,i,l,d,g){var y,x,T,R,O;for(m2r(d+_Q(l,l.ie()),g),mLt(i,Pvr(l)),y=l.f,y&&QMe(n,i,y,"Caused by: ",!1),T=(l.k==null&&(l.k=st(pbe,kt,82,0,0,1)),l.k),R=0,O=T.length;R<O;++R)x=T[R],QMe(n,i,x,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function _G(n,i,l,d){var g,y,x,T,R;for(R=i.e,T=R.length,x=i.q.ug(R,l?0:T-1,l),g=R[l?0:T-1],x=x|ojt(n,g,l,d),y=l?1:T-2;l?y<T:y>=0;y+=l?1:-1)x=x|i.c.lg(R,y,l,d&&!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,(At(),P5))))),x=x|i.q.ug(R,y,l),x=x|ojt(n,R[y],l,d);return Es(n.c,i),x}function _J(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=UMt(n.j),q=0,J=D.length;q<J;++q){if(O=D[q],l==(ll(),Rh)||l==yP)for(R=Xp(O.g),g=R,y=0,x=g.length;y<x;++y)d=g[y],Kxr(i,d)&&ZE(d,!0);if(l==_u||l==yP)for(T=Xp(O.e),g=T,y=0,x=g.length;y<x;++y)d=g[y],Wxr(i,d)&&ZE(d,!0)}}function qTr(n){var i,l;switch(i=null,l=null,oEr(n).g){case 1:i=(Bt(),gr),l=cr;break;case 2:i=(Bt(),Mr),l=or;break;case 3:i=(Bt(),cr),l=gr;break;case 4:i=(Bt(),or),l=Mr}a7e(n,v(ad(Ek(v(Zi(n.k,i),15).Oc(),R5)),113)),i7e(n,v(ad(QS(v(Zi(n.k,l),15).Oc(),R5)),113))}function HTr(n){var i,l,d,g,y,x;if(g=v(Yt(n.j,0),12),g.e.c.length+g.g.c.length==0)n.n.a=0;else{for(x=0,d=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(g),new QA(g)])));zr(d);)l=v(Rr(d),12),x+=l.i.n.a+l.n.a+l.a.a;i=v(oe(n,(qt(),Ex)),8),y=i?i.a:0,n.n.a=x/(g.e.c.length+g.g.c.length)-y}}function wYt(n,i){var l,d,g;for(d=new me(i.a);d.a<d.c.c.length;)l=v(pe(d),225),_de(v(l.b,68),$s(Eo(v(i.b,68).c),v(i.b,68).a)),g=Ujt(v(i.b,68).b,v(l.b,68).b),g>1&&(n.a=!0),_hr(v(l.b,68),Hi(Eo(v(i.b,68).c),Vp($s(Eo(v(l.b,68).a),v(i.b,68).a),g))),jDt(n,i),wYt(n,l)}function EYt(n){var i,l,d,g,y,x,T;for(y=new me(n.a.a);y.a<y.c.c.length;)d=v(pe(y),194),d.e=0,d.d.a.$b();for(g=new me(n.a.a);g.a<g.c.c.length;)for(d=v(pe(g),194),l=d.a.a.ec().Kc();l.Ob();)for(i=v(l.Pb(),86),T=i.f.Kc();T.Ob();)x=v(T.Pb(),86),x.d!=d&&(Es(d.d,x),++x.d.e)}function VTr(n){var i,l,d,g,y,x,T,R;for(R=n.j.c.length,l=0,i=R,g=2*R,T=new me(n.j);T.a<T.c.c.length;)switch(x=v(pe(T),12),x.j.g){case 2:case 4:x.p=-1;break;case 1:case 3:d=x.e.c.length,y=x.g.c.length,d>0&&y>0?x.p=i++:d>0?x.p=l++:y>0?x.p=g++:x.p=l++}Fn(),us(n.j,new r2t)}function YTr(n){var i,l;l=null,i=v(Yt(n.g,0),18);do{if(l=i.d.i,ya(l,(At(),Kf)))return v(oe(l,Kf),12).i;if(l.k!=(lr(),is)&&zr(new yr(_r(os(l).a.Kc(),new S))))i=v(Rr(new yr(_r(os(l).a.Kc(),new S))),18);else if(l.k!=is)return null}while(l&&l.k!=(lr(),is));return l}function jTr(n,i){var l,d,g,y,x,T,R,O,D;for(T=i.j,x=i.g,R=v(Yt(T,T.c.length-1),113),D=($n(0,T.c.length),v(T.c[0],113)),O=l1e(n,x,R,D),y=1;y<T.c.length;y++)l=($n(y-1,T.c.length),v(T.c[y-1],113)),g=($n(y,T.c.length),v(T.c[y],113)),d=l1e(n,x,l,g),d>O&&(R=l,D=g,O=d);i.a=D,i.c=R}function WTr(n,i,l){var d,g,y,x,T,R,O;for(O=new Vb(new cAt(n)),x=Te(xe(Jnn,1),WXt,12,0,[i,l]),T=0,R=x.length;T<R;++T)for(y=x[T],O.a.zc(y,(Qn(),a2))==null,g=new V1(y.b);nc(g.a)||nc(g.b);)d=v(nc(g.a)?pe(g.a):pe(g.b),18),d.c==d.d||JU(O,y==d.c?d.d:d.c);return ni(O),new Eh(O)}function C0(n){if(!n.a.d||!n.a.e)throw _e(new Tl((Fm(otn),otn.k+" must have a source and target "+(Fm(Yze),Yze.k)+" specified.")));if(n.a.d==n.a.e)throw _e(new Tl("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return RX(n.a.d.g,n.a),RX(n.a.e.b,n.a),n.a}function KTr(n,i){var l,d,g,y,x,T,R;for(i.Ug("Constraints Postprocessor",1),x=0,y=new me(n.b);y.a<y.c.c.length;){for(g=v(pe(y),30),R=0,T=!1,d=new me(g.a);d.a<d.c.c.length;)l=v(pe(d),10),l.k==(lr(),is)&&(T=!0,_t(l,(qt(),sne),Nt(x)),_t(l,nne,Nt(R)),++R);T&&++x}i.Vg()}function xYt(n,i,l){var d,g,y,x,T,R;if(d=0,i.b!=0&&l.b!=0){y=Ur(i,0),x=Ur(l,0),T=We(at(Fr(y))),R=We(at(Fr(x))),g=!0;do{if(T>R-n.b&&T<R+n.b)return-1;T>R-n.a&&T<R+n.a&&++d,T<=R&&y.b!=y.d.c?T=We(at(Fr(y))):R<=T&&x.b!=x.d.c?R=We(at(Fr(x))):g=!1}while(g)}return d}function SYt(n,i){var l,d;return nz(n.a),a1(n.a,(hZ(),Rne),Rne),a1(n.a,j5,j5),d=new ms,yi(d,j5,(aJ(),$ve)),Ze(Et(i,(Xv(),qve)))!==Ze((qz(),Ine))&&yi(d,j5,Pve),Vt(Ht(Et(i,zYe)))&&yi(d,j5,Uve),yi(d,j5,Bve),Vt(Ht(Et(i,qYe)))&&ch(d,j5,Fve),p8e(n.a,d),l=kG(n.a,i),l}function XTr(n,i,l,d,g){var y,x,T,R;for(R=(y=v(n1(tl),9),new nf(y,v(v0(y,y.length),9),0)),T=new me(n.j);T.a<T.c.c.length;)x=v(pe(T),12),i[x.p]&&(ERr(x,i[x.p],d),S0(R,x.j));g?(b1e(n,i,(Bt(),gr),2*l,d),b1e(n,i,cr,2*l,d)):(b1e(n,i,(Bt(),or),2*l,d),b1e(n,i,Mr,2*l,d))}function QTr(n){var i,l;for(l=new yr(_r(os(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),i.d.i.k!=(lr(),Pc))throw _e(new Gb(Rge+rG(n)+"' 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 ZTr(n,i,l){var d,g,y,x,T;for(l.Ug("Longest path layering",1),n.a=i,T=n.a.a,n.b=st(Wr,vi,28,T.c.length,15,1),d=0,x=new me(T);x.a<x.c.c.length;)g=v(pe(x),10),g.p=d,n.b[d]=-1,++d;for(y=new me(T);y.a<y.c.c.length;)g=v(pe(y),10),nYt(n,g);T.c.length=0,n.a=null,n.b=null,l.Vg()}function JTr(n,i,l,d){var g,y,x,T,R,O,D,q,J;for(R=0,D=new me(n.a);D.a<D.c.c.length;){for(O=v(pe(D),10),T=0,y=new yr(_r(Hs(O).a.Kc(),new S));zr(y);)g=v(Rr(y),18),q=q1(g.c).b,J=q1(g.d).b,T=u.Math.max(T,u.Math.abs(J-q));R=u.Math.max(R,T)}return x=d*u.Math.min(1,i/l)*R,x}function e5r(n,i){var l,d,g,y,x;for(x=v(oe(i,(pc(),wYe)),433),y=Ur(i.b,0);y.b!=y.d.c;)if(g=v(Fr(y),40),n.b[g.g]==0){switch(x.g){case 0:zGt(n,g);break;case 1:c3r(n,g)}n.b[g.g]=2}for(d=Ur(n.a,0);d.b!=d.d.c;)l=v(Fr(d),65),f4(l.b.d,l,!0),f4(l.c.b,l,!0);_t(i,(fa(),uYe),n.a)}function ZMe(n){var i;return i=new EL,n&256&&(i.a+="F"),n&128&&(i.a+="H"),n&512&&(i.a+="X"),n&2&&(i.a+="i"),n&8&&(i.a+="m"),n&4&&(i.a+="s"),n&32&&(i.a+="u"),n&64&&(i.a+="w"),n&16&&(i.a+="x"),n&k0&&(i.a+=","),nRe(i.a)}function t5r(n,i){var l,d,g,y,x,T;i.Ug(HQt,1),g=v(Et(n,(Z1(),NP)),107),y=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),x=owr(y),T=u.Math.max(x.a,We(at(Et(n,(Vg(),IP))))-(g.b+g.c)),d=u.Math.max(x.b,We(at(Et(n,Dne)))-(g.d+g.a)),l=d-x.b,sa(n,RP,l),sa(n,C6,T),sa(n,bN,d+l),i.Vg()}function Iu(n,i){al();var l,d,g,y;return i?i==(ca(),Lhn)||(i==whn||i==_w||i==_hn)&&n!=XKe?new YPe(n,i):(d=v(i,692),l=d.$k(),l||(d8(Al((dh(),ko),i)),l=d.$k()),y=(!l.i&&(l.i=new Br),l.i),g=v(Pl(ol(y.f,n)),2041),!g&&Ni(y,n,g=new YPe(n,i)),g):bhn}function n5r(n,i){var l,d;if(d=JU(n.b,i.b),!d)throw _e(new Tl("Invalid hitboxes for scanline constraint calculation."));(mUt(i.b,v(par(n.b,i.b),60))||mUt(i.b,v(far(n.b,i.b),60)))&&Pm(),n.a[i.b.f]=v(Zue(n.b,i.b),60),l=v(Que(n.b,i.b),60),l&&(n.a[l.f]=i.b)}function r5r(n,i,l){var d,g,y,x,T,R,O,D,q;for(y=o5(i,!1,!1),O=hG(y),q=We(at(Et(i,(qD(),Fbe)))),g=DKt(O,q+n.a),D=new P1e(g),Ul(D,i),Ni(n.b,i,D),jn(l.c,D),R=(!i.n&&(i.n=new vt(wl,i,1,7)),i.n),T=new mr(R);T.e!=T.i.gc();)x=v(wr(T),135),d=wG(n,x,!0,0,0),jn(l.c,d);return D}function i5r(n,i){var l,d,g,y,x,T,R;for(g=new Ot,l=0;l<=n.j;l++)d=new Xc(i),d.p=n.j-l,jn(g.c,d);for(T=new me(n.p);T.a<T.c.c.length;)x=v(pe(T),10),po(x,v(Yt(g,n.j-n.g[x.p]),30));for(y=new me(g);y.a<y.c.c.length;)R=v(pe(y),30),R.a.c.length==0&&lD(y);i.b.c.length=0,xs(i.b,g)}function a5r(n,i){var l,d,g,y,x,T,R,O,D;for(R=v(oe(n,(At(),Ji)),12),O=ac(Te(xe(Vs,1),kt,8,0,[R.i.n,R.n,R.a])).a,D=n.i.n.b,l=Xp(n.e),g=l,y=0,x=g.length;y<x;++y)d=g[y],lo(d,R),jo(d.a,new Ct(O,D)),i&&(T=v(oe(d,(qt(),Nl)),75),T||(T=new ah,_t(d,Nl,T)),pi(T,new Ct(O,D)))}function s5r(n,i){var l,d,g,y,x,T,R,O,D;for(g=v(oe(n,(At(),Ji)),12),O=ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).a,D=n.i.n.b,l=Xp(n.g),x=l,T=0,R=x.length;T<R;++T)y=x[T],Uo(y,g),IT(y.a,new Ct(O,D)),i&&(d=v(oe(y,(qt(),Nl)),75),d||(d=new ah,_t(y,Nl,d)),pi(d,new Ct(O,D)))}function o5r(n){var i,l,d,g,y,x,T,R,O;if(d=n.b,y=d.e,x=yk(v(oe(d,(qt(),Qa)),101)),l=!!y&&v(oe(y,(At(),au)),21).Hc((cl(),wf)),!(x||l))for(O=(T=new Dm(n.e).a.vc().Kc(),new FS(T));O.a.Ob();)R=(i=v(O.a.Pb(),44),v(i.md(),113)),R.a&&(g=R.d,rc(g,null),R.c=!0,n.a=!0)}function l5r(n,i){var l,d,g,y;for(i.Ug("Semi-Interactive Crossing Minimization Processor",1),l=!1,g=new me(n.b);g.a<g.c.c.length;)d=v(pe(g),30),y=jz(JQ(Ki(Ki(new xn(null,new Nn(d.a,16)),new $2t),new U2t),new z2t),new G2t),l=l|y.a!=null;l&&_t(n,(At(),Yqe),(Qn(),!0)),i.Vg()}function c5r(n,i){var l,d,g,y,x,T;for(n.b=new Ot,n.d=v(oe(i,(At(),x6)),234),n.e=Y0r(n.d),y=new Ea,g=H1(Te(xe(Xnn,1),YXt,36,0,[i])),x=0;x<g.c.length;)d=($n(x,g.c.length),v(g.c[x],36)),d.p=x++,l=new $Wt(d,n.a,n.b),xs(g,l.b),Lt(n.b,l),l.s&&(T=Ur(y,0),tz(T,l));return n.c=new fs,y}function u5r(n,i){var l,d,g,y,x,T;for(x=v(v(Zi(n.r,i),21),87).Kc();x.Ob();)y=v(x.Pb(),117),l=y.c?HIe(y.c):0,l>0?y.a?(T=y.b.Mf().a,l>T&&(g=(l-T)/2,y.d.b=g,y.d.c=g)):y.d.c=n.s+l:aD(n.u)&&(d=VDe(y.b),d.c<0&&(y.d.b=-d.c),d.c+d.b>y.b.Mf().a&&(y.d.c=d.c+d.b-y.b.Mf().a))}function h5r(n,i){var l,d,g,y,x;x=new Ot,l=i;do y=v(br(n.b,l),131),y.B=l.c,y.D=l.d,jn(x.c,y),l=v(br(n.k,l),18);while(l);return d=($n(0,x.c.length),v(x.c[0],131)),d.j=!0,d.A=v(d.d.a.ec().Kc().Pb(),18).c.i,g=v(Yt(x,x.c.length-1),131),g.q=!0,g.C=v(g.d.a.ec().Kc().Pb(),18).d.i,x}function d5r(n){var i,l;if(i=v(n.a,17).a,l=v(n.b,17).a,i>=0){if(i==l)return new Ms(Nt(-i-1),Nt(-i-1));if(i==-l)return new Ms(Nt(-i),Nt(l+1))}return u.Math.abs(i)>u.Math.abs(l)?i<0?new Ms(Nt(-i),Nt(l)):new Ms(Nt(-i),Nt(l+1)):new Ms(Nt(i+1),Nt(l))}function f5r(n){var i,l;l=v(oe(n,(qt(),Lu)),171),i=v(oe(n,(At(),aw)),311),l==(pf(),u2)?(_t(n,Lu,Mq),_t(n,aw,(Ym(),D5))):l==Y4?(_t(n,Lu,Mq),_t(n,aw,(Ym(),y6))):i==(Ym(),D5)?(_t(n,Lu,u2),_t(n,aw,Nq)):i==y6&&(_t(n,Lu,Y4),_t(n,aw,Nq))}function wJ(){wJ=z,Hq=new qwt,don=yi(new ms,(Mo(),qc),(qo(),yte)),gon=ch(yi(new ms,qc,Cte),Gl,Tte),mon=Jp(Jp(RL(ch(yi(new ms,N0,Ite),Gl,Rte),ru),kte),Nte),fon=ch(yi(yi(yi(new ms,em,_te),ru,Ete),ru,jI),Gl,wte),pon=ch(yi(yi(new ms,ru,jI),ru,bte),Gl,mte)}function aM(){aM=z,von=yi(ch(new ms,(Mo(),Gl),(qo(),qGe)),qc,yte),xon=Jp(Jp(RL(ch(yi(new ms,N0,Ite),Gl,Rte),ru),kte),Nte),_on=ch(yi(yi(yi(new ms,em,_te),ru,Ete),ru,jI),Gl,wte),Eon=yi(yi(new ms,qc,Cte),Gl,Tte),won=ch(yi(yi(new ms,ru,jI),ru,bte),Gl,mte)}function p5r(n,i,l,d,g){var y,x;(!Jo(i)&&i.c.i.c==i.d.i.c||!T$t(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])),l))&&!Jo(i)&&(i.c==g?JR(i.a,0,new Wo(l)):pi(i.a,new Wo(l)),d&&!r1(n.a,l)&&(x=v(oe(i,(qt(),Nl)),75),x||(x=new ah,_t(i,Nl,x)),y=new Wo(l),qa(x,y,x.c.b,x.c),Es(n.a,y)))}function TYt(n,i){var l,d,g,y;for(y=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),l=y&n.b.length-1,g=null,d=n.b[l];d;g=d,d=d.a)if(d.d==y&&Wp(d.i,i))return g?g.a=d.a:n.b[l]=d.a,n7t(v($f(d.c),604),v($f(d.f),604)),lU(v($f(d.b),227),v($f(d.e),227)),--n.f,++n.e,!0;return!1}function g5r(n){var i,l;for(l=new yr(_r(Hs(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),i.c.i.k!=(lr(),Pc))throw _e(new Gb(Rge+rG(n)+"' 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 m5r(n,i,l){var d,g,y,x,T,R,O;if(g=Rzt(n.Db&254),g==0)n.Eb=l;else{if(g==1)T=st(zs,Yn,1,2,5,1),y=o1e(n,i),y==0?(T[0]=l,T[1]=n.Eb):(T[0]=n.Eb,T[1]=l);else for(T=st(zs,Yn,1,g+1,5,1),x=L_(n.Eb),d=2,R=0,O=0;d<=128;d<<=1)d==i?T[O++]=l:n.Db&d&&(T[O++]=x[R++]);n.Eb=T}n.Db|=i}function CYt(n,i,l){var d,g,y,x;for(this.b=new Ot,g=0,d=0,x=new me(n);x.a<x.c.c.length;)y=v(pe(x),176),l&&xkr(y),Lt(this.b,y),g+=y.o,d+=y.p;this.b.c.length>0&&(y=v(Yt(this.b,0),176),g+=y.o,d+=y.p),g*=2,d*=2,i>1?g=Ps(u.Math.ceil(g*i)):d=Ps(u.Math.ceil(d/i)),this.a=new BLe(g,d)}function AYt(n,i,l,d,g,y){var x,T,R,O,D,q,J,re,ae,le,de,Se;for(D=d,i.j&&i.o?(re=v(br(n.f,i.A),60),le=re.d.c+re.d.b,--D):le=i.a.c+i.a.b,q=g,l.q&&l.o?(re=v(br(n.f,l.C),60),O=re.d.c,++q):O=l.a.c,de=O-le,R=u.Math.max(2,q-D),T=de/R,ae=le+T,J=D;J<q;++J)x=v(y.Xb(J),131),Se=x.a.b,x.a.c=ae-Se/2,ae+=T}function kYt(n,i){var l,d,g,y,x,T,R,O,D,q,J;g=i?new ewt:new twt,y=!1;do for(y=!1,O=i?ff(n.b):n.b,R=O.Kc();R.Ob();)for(T=v(R.Pb(),30),J=DE(T.a),i||ff(J),q=new me(J);q.a<q.c.c.length;)D=v(pe(q),10),g.Mb(D)&&(d=D,l=v(oe(D,(At(),gx)),313),x=i?l.b:l.k,y=ejt(d,x,i,!1));while(y)}function JMe(n,i,l,d,g,y){var x,T,R,O,D,q;for(O=l.c.length,y&&(n.c=st(Wr,vi,28,i.length,15,1)),x=g?0:i.length-1;g?x<i.length:x>=0;x+=g?1:-1){for(T=i[x],R=d==(Bt(),gr)?g?sc(T,d):ff(sc(T,d)):g?ff(sc(T,d)):sc(T,d),y&&(n.c[T.p]=R.gc()),q=R.Kc();q.Ob();)D=v(q.Pb(),12),n.d[D.p]=O++;xs(l,R)}}function RYt(n,i,l){var d,g,y,x,T,R,O,D;for(y=We(at(n.b.Kc().Pb())),O=We(at(fbr(i.b))),d=Vp(Eo(n.a),O-l),g=Vp(Eo(i.a),l-y),D=Hi(d,g),Vp(D,1/(O-y)),this.a=D,this.b=new Ot,T=!0,x=n.b.Kc(),x.Pb();x.Ob();)R=We(at(x.Pb())),T&&R-l>cme&&(this.b.Fc(l),T=!1),this.b.Fc(R);T&&this.b.Fc(l)}function b5r(n){var i,l,d,g;if(MCr(n,n.n),n.d.c.length>0){for(_L(n.c);DMe(n,v(pe(new me(n.e.a)),125))<n.e.a.c.length;){for(i=iwr(n),g=i.e.e-i.d.e-i.a,i.e.j&&(g=-g),d=new me(n.e.a);d.a<d.c.c.length;)l=v(pe(d),125),l.j&&(l.e+=g);_L(n.c)}_L(n.c),_Me(n,v(pe(new me(n.e.a)),125)),LWt(n)}}function y5r(n,i){Fk();var l,d;if(l=bfe(R8(),i.Pg()),l){if(d=l.j,$e(n,207))return Vfr(v(n,27))?oh(d,(d1(),Fs))||oh(d,Hn):oh(d,(d1(),Fs));if($e(n,326))return oh(d,(d1(),mg));if($e(n,193))return oh(d,(d1(),pw));if($e(n,366))return oh(d,(d1(),Sy))}return!0}function v5r(n,i,l){var d,g,y,x,T,R;if(g=l,y=g.Lk(),tb(n.e,y)){if(y.Si()){for(d=v(n.g,124),x=0;x<n.i;++x)if(T=d[x],Yi(T,g)&&x!=i)throw _e(new ar(sq))}}else for(R=Iu(n.e.Dh(),y),d=v(n.g,124),x=0;x<n.i;++x)if(T=d[x],R.am(T.Lk())&&x!=i)throw _e(new ar(hq));return v(JT(n,i,l),76)}function IYt(n,i){if(i instanceof Object)try{if(i.__java$exception=n,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var l=n;Object.defineProperties(i,{cause:{get:function(){var d=l.he();return d&&d.fe()}},suppressed:{get:function(){return l.ge()}}})}catch{}}function NYt(n,i){var l,d,g,y,x;if(d=i>>5,i&=31,d>=n.d)return n.e<0?(eg(),Men):(eg(),KM);if(y=n.d-d,g=st(Wr,vi,28,y+1,15,1),lSr(g,y,n.a,d,i),n.e<0){for(l=0;l<d&&n.a[l]==0;l++);if(l<d||i>0&&n.a[l]<<32-i){for(l=0;l<y&&g[l]==-1;l++)g[l]=0;l==y&&++y,++g[l]}}return x=new T_(n.e,y,g),gD(x),x}function OYt(n){var i,l,d,g;return g=z1(n),l=new Q5t(g),d=new Z5t(g),i=new Ot,xs(i,(!n.d&&(n.d=new Gn(ss,n,8,5)),n.d)),xs(i,(!n.e&&(n.e=new Gn(ss,n,7,4)),n.e)),v(Wl(Bl(Ki(new xn(null,new Nn(i,16)),l),d),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21)}function _5r(n,i){var l;switch(l=v(oe(n,(qt(),ine)),283),i.Ug("Label side selection ("+l+")",1),l.g){case 0:qVt(n,(Id(),im));break;case 1:qVt(n,(Id(),m2));break;case 2:lWt(n,(Id(),im));break;case 3:lWt(n,(Id(),m2));break;case 4:zYt(n,(Id(),im));break;case 5:zYt(n,(Id(),m2))}i.Vg()}function tb(n,i){al();var l,d,g;return i.Jk()?!0:i.Ik()==-2?i==(Kk(),P6)||i==M6||i==X2e||i==Q2e?!0:(g=n.Dh(),Ma(g,i)>=0?!1:(l=h5((dh(),ko),g,i),l?(d=l.Ik(),(d>1||d==-1)&&RE(Al(ko,l))!=3):!0)):!1}function w5r(n,i,l,d){var g,y,x,T,R;return T=zl(v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84)),R=zl(v(ze((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c),0),84)),Aa(T)==Aa(R)||l4(R,T)?null:(x=lz(i),x==l?d:(y=v(br(n.a,x),10),y&&(g=y.e,g)?g:null))}function E5r(n,i,l){var d,g,y,x,T;for(l.Ug("Longest path to source layering",1),n.a=i,T=n.a.a,n.b=st(Wr,vi,28,T.c.length,15,1),d=0,x=new me(T);x.a<x.c.c.length;)g=v(pe(x),10),g.p=d,n.b[d]=-1,++d;for(y=new me(T);y.a<y.c.c.length;)g=v(pe(y),10),rYt(n,g);T.c.length=0,n.a=null,n.b=null,l.Vg()}function ePe(n,i,l){var d,g,y,x,T,R;if(d=Zir(l,n.length),x=n[d],y=c7t(l,x.length),x[y].k==(lr(),hs))for(R=i.j,g=0;g<R.c.length;g++)T=($n(g,R.c.length),v(R.c[g],12)),(l?T.j==(Bt(),gr):T.j==(Bt(),cr))&&Vt(Ht(oe(T,(At(),Lq))))&&(of(R,g,v(oe(x[y],(At(),Ji)),12)),y+=l?1:-1)}function x5r(n,i){var l,d,g,y,x,T,R,O;i.Ug("Greedy Width Approximator",1),l=We(at(Et(n,(Z1(),Pne)))),R=v(Et(n,NP),107),y=v(Et(n,fje),394),x=Vt(Ht(Et(n,dje))),T=We(at(Et(n,OP))),O=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),x9e(O),g=new MOt(l,y,x),d=LCr(g,O,T,R),sa(n,(Vg(),r3),d.c),i.Vg()}function LYt(n){if(n.g==null)switch(n.p){case 0:n.g=Yfr(n)?(Qn(),HI):(Qn(),a2);break;case 1:n.g=Cz($1r(n));break;case 2:n.g=Lz(B0r(n));break;case 3:n.g=ydr(n);break;case 4:n.g=new sU(bdr(n));break;case 6:n.g=Zm(wdr(n));break;case 5:n.g=Nt(Ifr(n));break;case 7:n.g=V8(G1r(n))}return n.g}function tPe(n){if(n.n==null)switch(n.p){case 0:n.n=jfr(n)?(Qn(),HI):(Qn(),a2);break;case 1:n.n=Cz(U1r(n));break;case 2:n.n=Lz(F0r(n));break;case 3:n.n=vdr(n);break;case 4:n.n=new sU(_dr(n));break;case 6:n.n=Zm(Edr(n));break;case 5:n.n=Nt(Nfr(n));break;case 7:n.n=V8(z1r(n))}return n.n}function DYt(n,i,l,d){var g,y,x,T,R;if(T=(al(),v(i,69).xk()),tb(n.e,i)){if(i.Si()&&RJ(n,i,d,$e(i,102)&&(v(i,19).Bb&el)!=0))throw _e(new ar(sq))}else for(R=Iu(n.e.Dh(),i),g=v(n.g,124),x=0;x<n.i;++x)if(y=g[x],R.am(y.Lk()))throw _e(new ar(hq));FD(n,sMe(n,i,l),T?v(d,76):zg(i,d))}function MYt(n){var i,l,d,g,y,x,T;for(y=new me(n.a.a);y.a<y.c.c.length;)d=v(pe(y),316),d.g=0,d.i=0,d.e.a.$b();for(g=new me(n.a.a);g.a<g.c.c.length;)for(d=v(pe(g),316),l=d.a.a.ec().Kc();l.Ob();)for(i=v(l.Pb(),60),T=i.c.Kc();T.Ob();)x=v(T.Pb(),60),x.a!=d&&(Es(d.e,x),++x.a.g,++x.a.i)}function S5r(n){var i,l,d,g,y;g=v(oe(n,(qt(),uw)),21),y=v(oe(n,une),21),l=new Ct(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),i=new Wo(l),g.Hc((ud(),o3))&&(d=v(oe(n,sN),8),y.Hc((qh(),TN))&&(d.a<=0&&(d.a=20),d.b<=0&&(d.b=20)),i.a=u.Math.max(l.a,d.a),i.b=u.Math.max(l.b,d.b)),Ckr(n,l,i)}function T5r(n,i){var l,d,g;i.a?(JU(n.b,i.b),n.a[i.b.i]=v(Zue(n.b,i.b),86),l=v(Que(n.b,i.b),86),l&&(n.a[l.i]=i.b)):(d=v(Zue(n.b,i.b),86),d&&d==n.a[i.b.i]&&d.d&&d.d!=i.b.d&&d.f.Fc(i.b),g=v(Que(n.b,i.b),86),g&&n.a[g.i]==i.b&&g.d&&g.d!=i.b.d&&i.b.f.Fc(g),Vhe(n.b,i.b))}function PYt(n,i){var l,d,g,y,x,T;return y=n.d,T=We(at(oe(n,(qt(),vy)))),T<0&&(T=0,_t(n,vy,T)),i.o.b=T,x=u.Math.floor(T/2),d=new zc,Bs(d,(Bt(),cr)),rc(d,i),d.n.b=x,g=new zc,Bs(g,gr),rc(g,i),g.n.b=x,lo(n,d),l=new NE,Ul(l,n),_t(l,Nl,null),Uo(l,g),lo(l,y),$Ar(i,n,l),LSr(n,l),l}function C5r(n){var i,l;return l=v(oe(n,(At(),au)),21),i=new ms,l.Hc((cl(),iP))&&(Rd(i,lon),Rd(i,YVe)),(l.Hc(iN)||Vt(Ht(oe(n,(qt(),Wye)))))&&(Rd(i,YVe),l.Hc(L5)&&Rd(i,uon)),l.Hc(wf)&&Rd(i,oon),l.Hc(aP)&&Rd(i,hon),l.Hc(Hte)&&Rd(i,con),l.Hc(nN)&&Rd(i,aon),l.Hc(rN)&&Rd(i,son),i}function A5r(n,i){var l,d,g,y,x,T,R,O,D,q,J;return d=n.d,y=i.d,T=d+y,R=n.e!=i.e?-1:1,T==2?(D=Go(Us(n.a[0],ul),Us(i.a[0],ul)),J=ti(D),q=ti(Dv(D,32)),q==0?new qm(R,J):new T_(R,2,Te(xe(Wr,1),vi,28,15,[J,q]))):(l=n.a,g=i.a,x=st(Wr,vi,28,T,15,1),Cyr(l,d,g,y,x),O=new T_(R,T,x),gD(O),O)}function BYt(n,i,l,d){var g,y;if(i){if(g=n.a.Ne(l.d,i.d),g==0)return d.d=iIe(i,l.e),d.b=!0,i;y=g<0?0:1,i.a[y]=BYt(n,i.a[y],l,d),US(i.a[y])&&(US(i.a[1-y])?(i.b=!0,i.a[0].b=!1,i.a[1].b=!1):US(i.a[y].a[y])?i=dZ(i,1-y):US(i.a[y].a[1-y])&&(i=TMt(i,1-y)))}else return l;return i}function FYt(n,i,l){var d,g,y,x;g=n.i,d=n.n,TOe(n,(u1(),bc),g.c+d.b,l),TOe(n,yc,g.c+g.b-d.c-l[2],l),x=g.b-d.b-d.c,l[0]>0&&(l[0]+=n.d,x-=l[0]),l[2]>0&&(l[2]+=n.d,x-=l[2]),y=u.Math.max(0,x),l[1]=u.Math.max(l[1],x),TOe(n,vu,g.c+d.b+l[0]-(l[1]-x)/2,l),i==vu&&(n.c.b=y,n.c.c=g.c+d.b+(y-x)/2)}function $Yt(){this.c=st(ao,_l,28,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,15,1),this.b=st(ao,_l,28,Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]).length,15,1),this.a=st(ao,_l,28,Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]).length,15,1),kRe(this.c,ka),kRe(this.b,Ss),kRe(this.a,Ss)}function Jc(n,i,l){var d,g,y,x;if(i<=l?(g=i,y=l):(g=l,y=i),d=0,n.b==null)n.b=st(Wr,vi,28,2,15,1),n.b[0]=g,n.b[1]=y,n.c=!0;else{if(d=n.b.length,n.b[d-1]+1==g){n.b[d-1]=y;return}x=st(Wr,vi,28,d+2,15,1),Gc(n.b,0,x,0,d),n.b=x,n.b[d-1]>=g&&(n.c=!1,n.a=!1),n.b[d++]=g,n.b[d]=y,n.c||a5(n)}}function k5r(n,i,l){var d,g,y,x,T,R,O;for(O=i.d,n.a=new gu(O.c.length),n.c=new Br,T=new me(O);T.a<T.c.c.length;)x=v(pe(T),105),y=new Mz(null),Lt(n.a,y),Ni(n.c,x,y);for(n.b=new Br,MSr(n,i),d=0;d<O.c.length-1;d++)for(R=v(Yt(i.d,d),105),g=d+1;g<O.c.length;g++)yTr(n,R,v(Yt(i.d,g),105),l)}function E4(n){var i,l,d,g,y;for(g=new Ot,i=new nD((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a)),d=new yr(_r(eb(n).a.Kc(),new S));zr(d);)l=v(Rr(d),74),$e(ze((!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b),0),193)||(y=zl(v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84)),i.a._b(y)||jn(g.c,y));return g}function R5r(n,i,l){var d,g,y;if(n.e=l,n.d=0,n.b=0,n.f=1,n.i=i,(n.e&16)==16&&(n.i=$Cr(n.i)),n.j=n.i.length,$i(n),y=YE(n),n.d!=n.j)throw _e(new oi(fi((ii(),qZt))));if(n.g){for(d=0;d<n.g.a.c.length;d++)if(g=v(kE(n.g,d),592),n.f<=g.a)throw _e(new oi(fi((ii(),HZt))));n.g.a.c.length=0}return y}function I5r(n,i){var l,d,g,y,x,T,R;for(l=Ss,T=(lr(),is),g=new me(i.a);g.a<g.c.c.length;)d=v(pe(g),10),y=d.k,y!=is&&(x=at(oe(d,(At(),Wqe))),x==null?(l=u.Math.max(l,0),d.n.b=l+F8e(n.a,y,T)):d.n.b=(hr(x),x)),R=F8e(n.a,y,T),d.n.b<l+R+d.d.d&&(d.n.b=l+R+d.d.d),l=d.n.b+d.o.b+d.d.a,T=y}function UYt(n,i,l,d,g){var y,x,T,R,O,D;if(n.d&&n.d.Gg(g),y=v(g.Xb(0),27),GGt(n,l,y,!1)||(x=v(g.Xb(g.gc()-1),27),GGt(n,d,x,!0))||QDe(n,g))return!0;for(D=g.Kc();D.Ob();)for(O=v(D.Pb(),27),R=i.Kc();R.Ob();)if(T=v(R.Pb(),27),xJ(n,O,T))return!0;return!1}function N5r(n,i,l){var d,g,y,x,T,R,O,D,q,J;J=i.c.length,q=(O=n.Ih(l),v(O>=0?n.Lh(O,!1,!0):XE(n,l,!1),61));e:for(y=q.Kc();y.Ob();){for(g=v(y.Pb(),58),D=0;D<J;++D)if(x=($n(D,i.c.length),v(i.c[D],76)),R=x.md(),T=x.Lk(),d=g.Nh(T,!1),R==null?d!=null:!Yi(R,d))continue e;return g}return null}function O5r(n,i){var l,d,g,y,x,T,R;for(i.Ug("Comment post-processing",1),y=new me(n.b);y.a<y.c.c.length;){for(g=v(pe(y),30),d=new Ot,T=new me(g.a);T.a<T.c.c.length;)x=v(pe(T),10),R=v(oe(x,(At(),S6)),15),l=v(oe(x,v6),15),(R||l)&&(K7r(x,R,l),R&&xs(d,R),l&&xs(d,l));xs(g.a,d)}i.Vg()}function L5r(n,i,l,d){var g,y,x,T;for(g=v(hy(i,(Bt(),cr)).Kc().Pb(),12),y=v(hy(i,gr).Kc().Pb(),12),T=new me(n.j);T.a<T.c.c.length;){for(x=v(pe(T),12);x.e.c.length!=0;)lo(v(Yt(x.e,0),18),g);for(;x.g.c.length!=0;)Uo(v(Yt(x.g,0),18),y)}l||_t(i,(At(),m1),null),d||_t(i,(At(),Kf),null)}function o5(n,i,l){var d,g;if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i==0)return P9e(n);if(d=v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166),i&&(Gr((!d.a&&(d.a=new gs(Ud,d,5)),d.a)),T8(d,0),A8(d,0),S8(d,0),C8(d,0)),l)for(g=(!n.a&&(n.a=new vt(xa,n,6,6)),n.a);g.i>1;)x4(g,g.i-1);return d}function zYt(n,i){var l,d,g,y,x,T,R;for(l=new FT,y=new me(n.b);y.a<y.c.c.length;){for(g=v(pe(y),30),R=!0,d=0,T=new me(g.a);T.a<T.c.c.length;)switch(x=v(pe(T),10),x.k.g){case 4:++d;case 1:cOe(l,x);break;case 0:OSr(x,i);default:l.b==l.c||Njt(l,d,R,!1,i),R=!1,d=0}l.b==l.c||Njt(l,d,R,!0,i)}}function nPe(n,i){var l,d,g,y,x,T;for(l=0,T=new me(i);T.a<T.c.c.length;){for(x=v(pe(T),12),eLe(n.b,n.d[x.p]),g=new V1(x.b);nc(g.a)||nc(g.b);)d=v(nc(g.a)?pe(g.a):pe(g.b),18),y=bRe(n,x==d.c?d.d:d.c),y>n.d[x.p]&&(l+=bOe(n.b,y),Fv(n.a,Nt(y)));for(;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function D5r(n){var i,l,d,g,y,x,T,R,O;for(n.a=new cIe,O=0,g=0,d=new me(n.i.b);d.a<d.c.c.length;){for(i=v(pe(d),30),i.p=g,R=new me(i.a);R.a<R.c.c.length;)T=v(pe(R),10),T.p=O,++O;++g}for(y=n.r==(qf(),Tx),x=y?crn:lrn,l=new me(n.i.b);l.a<l.c.c.length;)i=v(pe(l),30),us(i.a,x),Lgr(n.a,Nt(i.p),i.a)}function GYt(n,i,l){var d,g,y,x;for(y=(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i,g=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));g.e!=g.i.gc();)d=v(wr(g),27),(!d.a&&(d.a=new vt(Pi,d,10,11)),d.a).i==0||(y+=GYt(n,d,!1));if(l)for(x=Aa(i);x;)y+=(!x.a&&(x.a=new vt(Pi,x,10,11)),x.a).i,x=Aa(x);return y}function x4(n,i){var l,d,g,y;return n.Pj()?(d=null,g=n.Qj(),n.Tj()&&(d=n.Vj(n.$i(i),null)),l=n.Ij(4,y=Vk(n,i),null,i,g),n.Mj()&&y!=null&&(d=n.Oj(y,d)),d?(d.nj(l),d.oj()):n.Jj(l),y):(y=Vk(n,i),n.Mj()&&y!=null&&(d=n.Oj(y,null),d&&d.oj()),y)}function M5r(n){var i,l,d,g,y,x,T,R,O,D;for(O=n.a,i=new fs,R=0,d=new me(n.d);d.a<d.c.c.length;){for(l=v(pe(d),226),D=0,D_(l.b,new Cr),x=Ur(l.b,0);x.b!=x.d.c;)y=v(Fr(x),226),i.a._b(y)&&(g=l.c,T=y.c,D<T.d+T.a+O&&D+g.a+O>T.d&&(D=T.d+T.a+O));l.c.d=D,i.a.zc(l,i),R=u.Math.max(R,l.c.d+l.c.a)}return R}function cl(){cl=z,qte=new GS("COMMENTS",0),wf=new GS("EXTERNAL_PORTS",1),iP=new GS("HYPEREDGES",2),Hte=new GS("HYPERNODES",3),iN=new GS("NON_FREE_PORTS",4),L5=new GS("NORTH_SOUTH_PORTS",5),aP=new GS(dQt,6),nN=new GS("CENTER_LABELS",7),rN=new GS("END_LABELS",8),Vte=new GS("PARTITIONS",9)}function P5r(n,i,l,d,g){return d<0?(d=i5(n,g,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe]),i),d<0&&(d=i5(n,g,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),i)),d<0?!1:(l.k=d,!0)):d>0?(l.k=d-1,!0):!1}function B5r(n,i,l,d,g){return d<0?(d=i5(n,g,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe]),i),d<0&&(d=i5(n,g,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),i)),d<0?!1:(l.k=d,!0)):d>0?(l.k=d-1,!0):!1}function F5r(n,i,l,d,g,y){var x,T,R,O;if(T=32,d<0){if(i[0]>=n.length||(T=Do(n,i[0]),T!=43&&T!=45)||(++i[0],d=hJ(n,i),d<0))return!1;T==45&&(d=-d)}return T==32&&i[0]-l==2&&g.b==2&&(R=new UK,O=R.q.getFullYear()-Jv+Jv-80,x=O%100,y.a=d==x,d+=(O/100|0)*100+(d<x?100:0)),y.p=d,!0}function qYt(n,i){var l,d,g,y,x;Aa(n)&&(x=v(oe(i,(qt(),uw)),181),Ze(Et(n,Qa))===Ze((co(),y2))&&sa(n,Qa,up),d=(fE(),new aE(Aa(n))),y=new jhe(Aa(n)?new aE(Aa(n)):null,n),g=iKt(d,y,!1,!0),S0(x,(ud(),o3)),l=v(oe(i,sN),8),l.a=u.Math.max(g.a,l.a),l.b=u.Math.max(g.b,l.b))}function $5r(n,i,l){var d,g,y,x,T,R;for(x=v(oe(n,(At(),Lye)),15).Kc();x.Ob();){switch(y=v(x.Pb(),10),v(oe(y,(qt(),Lu)),171).g){case 2:po(y,i);break;case 4:po(y,l)}for(g=new yr(_r(Qm(y).a.Kc(),new S));zr(g);)d=v(Rr(g),18),!(d.c&&d.d)&&(T=!d.d,R=v(oe(d,Xqe),12),T?lo(d,R):Uo(d,R))}}function EJ(){EJ=z,cye=new Ck(VJ,0,(Bt(),or),or),dye=new Ck(hge,1,Mr,Mr),lye=new Ck(uge,2,gr,gr),gye=new Ck(dge,3,cr,cr),hye=new Ck("NORTH_WEST_CORNER",4,cr,or),uye=new Ck("NORTH_EAST_CORNER",5,or,gr),pye=new Ck("SOUTH_WEST_CORNER",6,Mr,cr),fye=new Ck("SOUTH_EAST_CORNER",7,gr,Mr)}function U5r(n){var i,l,d,g,y,x;for(y=new fs,i=new nD((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a)),g=new yr(_r(eb(n).a.Kc(),new S));zr(g);)d=v(Rr(g),74),$e(ze((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b),0),193)||(x=zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84)),i.a._b(x)||(l=y.a.zc(x,y),l==null));return y}function l5(){l5=z,Xje=Te(xe(C2,1),Xpe,28,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}]),u.Math.pow(2,-65)}function uI(){uI=z;var n,i;for(f6=st(T5,kt,92,32,0,1),XM=st(T5,kt,92,32,0,1),n=1,i=0;i<=18;i++)f6[i]=(eg(),Oc(n,0)>=0?Yv(n):cD(Yv(ty(n)))),XM[i]=bX(w0(n,i),0)?Yv(w0(n,i)):cD(Yv(ty(w0(n,i)))),n=Go(n,5);for(;i<XM.length;i++)f6[i]=HT(f6[i-1],f6[1]),XM[i]=HT(XM[i-1],(eg(),_be))}function HYt(n,i){var l,d,g,y,x;if(n.c.length==0)return new Ms(Nt(0),Nt(0));for(l=($n(0,n.c.length),v(n.c[0],12)).j,x=0,y=i.g,d=i.g+1;x<n.c.length-1&&l.g<y;)++x,l=($n(x,n.c.length),v(n.c[x],12)).j;for(g=x;g<n.c.length-1&&l.g<d;)++g,l=($n(x,n.c.length),v(n.c[x],12)).j;return new Ms(Nt(x),Nt(g))}function z5r(n,i,l,d){var g,y,x,T,R,O,D;R=sc(i,l),(l==(Bt(),Mr)||l==cr)&&(R=ff(R)),x=!1;do for(g=!1,y=0;y<R.gc()-1;y++)O=v(R.Xb(y),12),T=v(R.Xb(y+1),12),Txr(n,O,T,d)&&(x=!0,lfe(n.a,v(R.Xb(y),12),v(R.Xb(y+1),12)),D=v(R.Xb(y+1),12),R.hd(y+1,v(R.Xb(y),12)),R.hd(y,D),g=!0);while(g);return x}function G5r(n,i,l){var d,g,y,x;for(l.Ug(kQt,1),g=v(Wl(Ki(new xn(null,new Nn(i.b,16)),new AEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),bVt(n,g,0),x=Ur(i.b,0);x.b!=x.d.c;)y=v(Fr(x),40),d=br(n.a,Nt(y.g))!=null?v(br(n.a,Nt(y.g)),17).a:0,_t(y,(pc(),gg),Nt(d));l.Vg()}function xJ(n,i,l){var d,g,y,x,T,R,O,D;return T=i.i-n.g/2,R=l.i-n.g/2,O=i.j-n.g/2,D=l.j-n.g/2,y=i.g+n.g,x=l.g+n.g,d=i.f+n.g,g=l.f+n.g,T<R+x&&R<T&&O<D+g&&D<O||R<T+y&&T<R&&D<O+d&&O<D||T<R+x&&R<T&&O<D&&D<O+d?!0:R<T+y&&T<R&&O<D+g&&D<O}function q5r(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=i.c.length,x=($n(l,i.c.length),v(i.c[l],293)),T=x.a.o.a,q=x.c,J=0,O=x.c;O<=x.f;O++){if(T<=n.a[O])return O;for(D=n.a[O],R=null,g=l+1;g<y;g++)d=($n(g,i.c.length),v(i.c[g],293)),d.c<=O&&d.f>=O&&(R=d);R&&(D=u.Math.max(D,R.a.o.a)),D>J&&(q=O,J=D)}return q}function H5r(n){var i,l,d,g,y,x,T;for(y=new Vb(v(ni(new Pr),50)),T=Ss,l=new me(n.d);l.a<l.c.c.length;){for(i=v(pe(l),226),T=i.c.c;y.a.gc()!=0&&(x=v(y.a.Tc(),226),x.c.c+x.c.b<T);)y.a.Bc(x)!=null;for(g=y.a.ec().Kc();g.Ob();)d=v(g.Pb(),226),pi(d.b,i),pi(i.b,d);y.a.zc(i,(Qn(),a2))==null}}function VYt(n,i,l){var d,g,y,x,T;if(!b8(i)){for(T=l.eh(($e(i,16)?v(i,16).gc():Gm(i.Kc()))/n.a|0),T.Ug(RQt,1),x=new REt,y=null,g=i.Kc();g.Ob();)d=v(g.Pb(),40),x=Ad(Te(xe(Md,1),Yn,20,0,[x,new Mm(d)])),y&&(_t(y,(fa(),Ron),d),_t(d,kve,y),Efe(d)==Efe(y)&&(_t(y,Rve,d),_t(d,Tne,y))),y=d;T.Vg(),VYt(n,x,l)}}function V5r(n,i){var l,d,g;if(i==null){for(d=(!n.a&&(n.a=new vt(hb,n,9,5)),new mr(n.a));d.e!=d.i.gc();)if(l=v(wr(d),694),g=l.c,(g??l.zb)==null)return l}else for(d=(!n.a&&(n.a=new vt(hb,n,9,5)),new mr(n.a));d.e!=d.i.gc();)if(l=v(wr(d),694),An(i,(g=l.c,g??l.zb)))return l;return null}function G1e(n,i){var l;switch(l=null,i.g){case 1:n.e.pf((Ei(),C2e))&&(l=v(n.e.of(C2e),256));break;case 3:n.e.pf((Ei(),A2e))&&(l=v(n.e.of(A2e),256));break;case 2:n.e.pf((Ei(),T2e))&&(l=v(n.e.of(T2e),256));break;case 4:n.e.pf((Ei(),k2e))&&(l=v(n.e.of(k2e),256))}return!l&&(l=v(n.e.of((Ei(),TWe)),256)),l}function YYt(n,i,l){var d,g,y,x,T,R;for(g=l,y=0,T=new me(i);T.a<T.c.c.length;)x=v(pe(T),27),sa(x,(Xv(),Nne),Nt(g++)),R=E4(x),d=u.Math.atan2(x.j+x.f/2,x.i+x.g/2),d+=d<0?Z_:0,d<.7853981633974483||d>FQt?us(R,n.b):d<=FQt&&d>$Qt?us(R,n.d):d<=$Qt&&d>UQt?us(R,n.c):d<=UQt&&us(R,n.a),y=YYt(n,R,y);return g}function jYt(n,i,l,d){var g,y,x,T,R,O;for(g=(d.c+d.a)/2,xd(i.j),pi(i.j,g),xd(l.e),pi(l.e,g),O=new g7t,T=new me(n.f);T.a<T.c.c.length;)y=v(pe(T),132),R=y.a,g1e(O,i,R),g1e(O,l,R);for(x=new me(n.k);x.a<x.c.c.length;)y=v(pe(x),132),R=y.b,g1e(O,i,R),g1e(O,l,R);return O.b+=2,O.a+=tDt(i,n.q),O.a+=tDt(n.q,l),O}function Y5r(n,i,l){var d;l.Ug("Processor arrange node",1),Vt(Ht(oe(i,(pc(),gYe)))),d=v(ad(U8(Ki(new xn(null,new Nn(i.b,16)),new WEt))),40),n.a=v(oe(i,SYe),353),n.a==(LD(),Lve)||n.a==kne?aKt(n,new wh(Te(xe(Sne,1),wee,40,0,[d])),l.eh(1)):n.a==Ove&&LKt(n,new wh(Te(xe(Sne,1),wee,40,0,[d])),l.eh(1)),l.Vg()}function Z1(){Z1=z,Pne=new fo((Ei(),X5),1.3),Qln=new fo(i3,(Qn(),!1)),cje=new bE(15),NP=new fo(Ty,cje),OP=new fo(bw,15),jln=rH,Xln=mw,Zln=tC,Jln=g2,Kln=eC,e2e=oH,ecn=a3,fje=(gPe(),Hln),dje=qln,n2e=Yln,pje=Vln,lje=Uln,t2e=$ln,oje=Fln,hje=Gln,sje=sH,Wln=S2e,Qq=Pln,aje=Mln,Zq=Bln,uje=zln}function WYt(n){var i,l,d,g,y,x,T;for(l=n.i,i=n.n,T=l.d,n.f==(ju(),o2)?T+=(l.a-n.e.b)/2:n.f==I0&&(T+=l.a-n.e.b),g=new me(n.d);g.a<g.c.c.length;){switch(d=v(pe(g),187),x=d.Mf(),y=new ho,y.b=T,T+=x.b+n.a,n.b.g){case 0:y.a=l.c+i.b;break;case 1:y.a=l.c+i.b+(l.b-x.a)/2;break;case 2:y.a=l.c+l.b-i.c-x.a}d.Of(y)}}function KYt(n){var i,l,d,g,y,x,T;for(l=n.i,i=n.n,T=l.c,n.b==(Th(),s2)?T+=(l.b-n.e.a)/2:n.b==R0&&(T+=l.b-n.e.a),g=new me(n.d);g.a<g.c.c.length;){switch(d=v(pe(g),187),x=d.Mf(),y=new ho,y.a=T,T+=x.a+n.a,n.f.g){case 0:y.b=l.d+i.d;break;case 1:y.b=l.d+i.d+(l.a-x.b)/2;break;case 2:y.b=l.d+l.a-i.a-x.b}d.Of(y)}}function j5r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;D=l.a.c,x=l.a.c+l.a.b,y=v(br(l.c,i),468),re=y.f,ae=y.a,R=new Ct(D,re),q=new Ct(x,ae),g=D,l.p||(g+=n.c),g+=l.F+l.v*n.b,O=new Ct(g,re),J=new Ct(g,ae),xD(i.a,Te(xe(Vs,1),kt,8,0,[R,O])),T=l.d.a.gc()>1,T&&(d=new Ct(g,l.b),pi(i.a,d)),xD(i.a,Te(xe(Vs,1),kt,8,0,[J,q]))}function rPe(n,i,l){var d,g;for(i<n.d.b.c.length?(n.b=v(Yt(n.d.b,i),30),n.a=v(Yt(n.d.b,i-1),30),n.c=i):(n.a=new Xc(n.d),n.a.p=i-1,Lt(n.d.b,n.a),n.b=new Xc(n.d),n.b.p=i,Lt(n.d.b,n.b),n.c=i),po(l,n.b),g=new yr(_r(Hs(l).a.Kc(),new S));zr(g);)d=v(Rr(g),18),!d.c.i.c&&d.c.i.k==(lr(),Pc)&&po(d.c.i,n.a)}function XYt(n){dE(n,new H_(cE(sE(lE(oE(new f_,kee),"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 uSt))),It(n,kee,rx,iKe),It(n,kee,N4,15),It(n,kee,XJ,Nt(0)),It(n,kee,s6,kI)}function iPe(){iPe=z;var n,i,l,d,g,y;for(iB=st(bh,E5,28,255,15,1),yre=st(Tf,rg,28,16,15,1),i=0;i<255;i++)iB[i]=-1;for(l=57;l>=48;l--)iB[l]=l-48<<24>>24;for(d=70;d>=65;d--)iB[d]=d-65+10<<24>>24;for(g=102;g>=97;g--)iB[g]=g-97+10<<24>>24;for(y=0;y<10;y++)yre[y]=48+y&vs;for(n=10;n<=15;n++)yre[n]=65+n-10&vs}function W5r(n,i){i.Ug("Process graph bounds",1),_t(n,(fa(),Cve),CU(Jfe(e4(new xn(null,new Nn(n.b,16)),new _Et)))),_t(n,Ave,CU(Jfe(e4(new xn(null,new Nn(n.b,16)),new wEt)))),_t(n,lYe,CU(Zfe(e4(new xn(null,new Nn(n.b,16)),new EEt)))),_t(n,cYe,CU(Zfe(e4(new xn(null,new Nn(n.b,16)),new xEt)))),i.Vg()}function K5r(n){var i,l,d,g,y;g=v(oe(n,(qt(),uw)),21),y=v(oe(n,une),21),l=new Ct(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),i=new Wo(l),g.Hc((ud(),o3))&&(d=v(oe(n,sN),8),y.Hc((qh(),TN))&&(d.a<=0&&(d.a=20),d.b<=0&&(d.b=20)),i.a=u.Math.max(l.a,d.a),i.b=u.Math.max(l.b,d.b)),Vt(Ht(oe(n,Xye)))||Tkr(n,l,i)}function X5r(n,i){var l,d,g,y;for(y=sc(i,(Bt(),Mr)).Kc();y.Ob();)d=v(y.Pb(),12),l=v(oe(d,(At(),kh)),10),l&&C0(m0(g0(b0(p0(new Bf,0),.1),n.i[i.p].d),n.i[l.p].a));for(g=sc(i,or).Kc();g.Ob();)d=v(g.Pb(),12),l=v(oe(d,(At(),kh)),10),l&&C0(m0(g0(b0(p0(new Bf,0),.1),n.i[l.p].d),n.i[i.p].a))}function q1e(n){var i,l,d,g,y,x;if(!n.c){if(x=new PSt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Uc(n));d.e!=d.i.gc();)l=v(wr(d),89),g=kJ(l),$e(g,90)&&Ka(x,q1e(v(g,29))),Yr(x,l);i.a.Bc(n)!=null,i.a.gc()==0}Vvr(x),h4(x),n.c=new NT((v(ze(bt((Mv(),Zn).o),15),19),x.i),x.g),$h(n).b&=-33}return n.c}function aPe(n){var i;if(n.c!=10)throw _e(new oi(fi((ii(),Lee))));switch(i=n.a,i){case 110:i=10;break;case 114:i=13;break;case 116:i=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 _e(new oi(fi((ii(),vf))))}return i}function QYt(n){var i,l,d,g,y;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==FG&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+QYt($8(n));for(l=n,d="";!(l.l==0&&l.m==0&&l.h==0);){if(g=vfe(zJ),l=$Pe(l,g,!0),i=""+w7t(i2),!(l.l==0&&l.m==0&&l.h==0))for(y=9-i.length;y>0;y--)i="0"+i;d=i+d}return d}function Q5r(n){var i,l,d,g,y,x,T;for(i=!1,l=0,g=new me(n.d.b);g.a<g.c.c.length;)for(d=v(pe(g),30),d.p=l++,x=new me(d.a);x.a<x.c.c.length;)y=v(pe(x),10),!i&&!b8(Qm(y))&&(i=!0);T=va((ys(),cp),Te(xe(zP,1),wt,88,0,[Ol,ql])),i||(S0(T,Ef),S0(T,lp)),n.a=new DFt(T),xh(n.f),xh(n.b),xh(n.e),xh(n.g)}function Z5r(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",i=Object.create(null);if(i[n]!==void 0)return!1;var l=Object.getOwnPropertyNames(i);return!(l.length!=0||(i[n]=42,i[n]!==42)||Object.getOwnPropertyNames(i).length==0)}function J5r(n,i,l){var d,g,y,x,T,R,O,D,q;for(d=l.c,g=l.d,T=q1(i.c),R=q1(i.d),d==i.c?(T=HMe(n,T,g),R=iHt(i.d)):(T=iHt(i.c),R=HMe(n,R,g)),O=new MK(i.a),qa(O,T,O.a,O.a.a),qa(O,R,O.c.b,O.c),x=i.c==d,q=new r6t,y=0;y<O.b-1;++y)D=new Ms(v(gf(O,y),8),v(gf(O,y+1),8)),x&&y==0||!x&&y==O.b-2?q.b=D:Lt(q.a,D);return q}function eCr(n,i){var l,d,g,y;if(y=n.j.g-i.j.g,y!=0)return y;if(l=v(oe(n,(qt(),_y)),17),d=v(oe(i,_y),17),l&&d&&(g=l.a-d.a,g!=0))return g;switch(n.j.g){case 1:return ha(n.n.a,i.n.a);case 2:return ha(n.n.b,i.n.b);case 3:return ha(i.n.a,n.n.a);case 4:return ha(i.n.b,n.n.b);default:throw _e(new Tl(YBe))}}function sPe(n,i,l,d){var g,y,x,T,R;if(Gm((jU(),new yr(_r(Qm(i).a.Kc(),new S))))>=n.a||!zDe(i,l))return-1;if(b8(v(d.Kb(i),20)))return 1;for(g=0,x=v(d.Kb(i),20).Kc();x.Ob();)if(y=v(x.Pb(),18),R=y.c.i==i?y.d.i:y.c.i,T=sPe(n,R,l,d),T==-1||(g=u.Math.max(g,T),g>n.c-1))return-1;return g+1}function ZYt(n,i){var l,d,g,y,x,T;if(Ze(i)===Ze(n))return!0;if(!$e(i,15)||(d=v(i,15),T=n.gc(),d.gc()!=T))return!1;if(x=d.Kc(),n.Yi()){for(l=0;l<T;++l)if(g=n.Vi(l),y=x.Pb(),g==null?y!=null:!Yi(g,y))return!1}else for(l=0;l<T;++l)if(g=n.Vi(l),y=x.Pb(),Ze(g)!==Ze(y))return!1;return!0}function JYt(n,i){var l,d,g,y,x,T;if(n.f>0){if(n._j(),i!=null){for(y=0;y<n.d.length;++y)if(l=n.d[y],l){for(d=v(l.g,379),T=l.i,x=0;x<T;++x)if(g=d[x],Yi(i,g.md()))return!0}}else for(y=0;y<n.d.length;++y)if(l=n.d[y],l){for(d=v(l.g,379),T=l.i,x=0;x<T;++x)if(g=d[x],Ze(i)===Ze(g.md()))return!0}}return!1}function tCr(n,i){var l,d,g;return l=i.qi(n.a),l&&(g=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),"affiliation")),g!=null)?(d=AX(g,Wu(35)),d==-1?C0e(n,iD(n,Cd(i.qk())),g):d==0?C0e(n,null,(sr(1,g.length+1),g.substr(1))):C0e(n,(mo(0,d,g.length),g.substr(0,d)),(sr(d+1,g.length+1),g.substr(d+1)))):null}function nCr(n,i,l){var d,g,y,x;l.Ug("Orthogonally routing hierarchical port edges",1),n.a=0,d=Xkr(i),n7r(i,d),U6r(n,i,d),nRr(i),g=v(oe(i,(qt(),Qa)),101),y=i.b,tKt(($n(0,y.c.length),v(y.c[0],30)),g,i),tKt(v(Yt(y,y.c.length-1),30),g,i),x=i.b,hWt(($n(0,x.c.length),v(x.c[0],30))),hWt(v(Yt(x,x.c.length-1),30)),l.Vg()}function oPe(n){switch(n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw _e(new Gp("Invalid hexadecimal"))}}function SJ(){SJ=z,Hze=new CT("SPIRAL",0),Uze=new CT("LINE_BY_LINE",1),zze=new CT("MANHATTAN",2),$ze=new CT("JITTER",3),Nbe=new CT("QUADRANTS_LINE_BY_LINE",4),qze=new CT("QUADRANTS_MANHATTAN",5),Gze=new CT("QUADRANTS_JITTER",6),Fze=new CT("COMBINE_LINE_BY_LINE_MANHATTAN",7),Bze=new CT("COMBINE_JITTER_MANHATTAN",8)}function ejt(n,i,l,d){var g,y,x,T,R,O;for(R=p1e(n,l),O=p1e(i,l),g=!1;R&&O&&(d||W_r(R,O,l));)x=p1e(R,l),T=p1e(O,l),xz(i),xz(n),y=R.c,gpe(R,!1),gpe(O,!1),l?(m4(i,O.p,y),i.p=O.p,m4(n,R.p+1,y),n.p=R.p):(m4(n,R.p,y),n.p=R.p,m4(i,O.p+1,y),i.p=O.p),po(R,null),po(O,null),R=x,O=T,g=!0;return g}function tjt(n){switch(n.g){case 0:return new pTt;case 1:return new dTt;case 3:return new RRt;case 4:return new cwt;case 5:return new rOt;case 6:return new fTt;case 2:return new hTt;case 7:return new aTt;case 8:return new oTt;default:throw _e(new ar("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function rCr(n,i,l,d){var g,y,x,T,R;for(g=!1,y=!1,T=new me(d.j);T.a<T.c.c.length;)x=v(pe(T),12),Ze(oe(x,(At(),Ji)))===Ze(l)&&(x.g.c.length==0?x.e.c.length==0||(g=!0):y=!0);return R=0,g&&g^y?R=l.j==(Bt(),or)?-n.e[d.c.p][d.p]:i-n.e[d.c.p][d.p]:y&&g^y?R=n.e[d.c.p][d.p]+1:g&&y&&(R=l.j==(Bt(),or)?0:i/2),R}function H1e(n,i,l,d,g,y,x,T){var R,O,D;for(R=0,i!=null&&(R^=ry(i.toLowerCase())),l!=null&&(R^=ry(l)),d!=null&&(R^=ry(d)),x!=null&&(R^=ry(x)),T!=null&&(R^=ry(T)),O=0,D=y.length;O<D;O++)R^=ry(y[O]);n?R|=256:R&=-257,g?R|=16:R&=-17,this.f=R,this.i=i==null?null:(hr(i),i),this.a=l,this.d=d,this.j=y,this.g=x,this.e=T}function lPe(n,i,l){var d,g;switch(g=null,i.g){case 1:g=(hh(),CGe);break;case 2:g=(hh(),kGe)}switch(d=null,l.g){case 1:d=(hh(),AGe);break;case 2:d=(hh(),TGe);break;case 3:d=(hh(),RGe);break;case 4:d=(hh(),IGe)}return g&&d?vk(n.j,new qTt(new wh(Te(xe(I8r,1),Yn,178,0,[v(ni(g),178),v(ni(d),178)])))):(Fn(),Fn(),Zo)}function iCr(n){var i,l,d;switch(i=v(oe(n,(qt(),sN)),8),_t(n,sN,new Ct(i.b,i.a)),v(oe(n,fg),255).g){case 1:_t(n,fg,(qg(),Vne));break;case 2:_t(n,fg,(qg(),qne));break;case 3:_t(n,fg,(qg(),tH));break;case 4:_t(n,fg,(qg(),nH))}(n.q?n.q:(Fn(),Fn(),Jg))._b(Z4)&&(l=v(oe(n,Z4),8),d=l.a,l.a=l.b,l.b=d)}function njt(n,i,l,d,g,y){if(this.b=l,this.d=g,n>=i.length)throw _e(new Sl("Greedy SwitchDecider: Free layer not in graph."));this.c=i[n],this.e=new YU(d),Wfe(this.e,this.c,(Bt(),cr)),this.i=new YU(d),Wfe(this.i,this.c,gr),this.f=new _9t(this.c),this.a=!y&&g.i&&!g.s&&this.c[0].k==(lr(),hs),this.a&&bSr(this,n,i.length)}function rjt(n,i){var l,d,g,y,x,T;y=!n.B.Hc((qh(),bH)),x=n.B.Hc(P2e),n.a=new qzt(x,y,n.c),n.n&&FNe(n.a.n,n.n),Uue(n.g,(u1(),vu),n.a),i||(d=new GD(1,y,n.c),d.n.a=n.k,Sk(n.p,(Bt(),or),d),g=new GD(1,y,n.c),g.n.d=n.k,Sk(n.p,Mr,g),T=new GD(0,y,n.c),T.n.c=n.k,Sk(n.p,cr,T),l=new GD(0,y,n.c),l.n.b=n.k,Sk(n.p,gr,l))}function aCr(n){var i,l,d;switch(i=v(oe(n.d,(qt(),lb)),223),i.g){case 2:l=jRr(n);break;case 3:l=(d=new Ot,ts(Ki(Bl(ic(ic(new xn(null,new Nn(n.d.b,16)),new v_t),new __t),new w_t),new s_t),new $Ct(d)),d);break;default:throw _e(new Tl("Compaction not supported for "+i+" edges."))}g6r(n,l),To(new m_(n.g),new BCt(n))}function sCr(n,i){var l,d,g,y,x,T,R;if(i.Ug("Process directions",1),l=v(oe(n,(pc(),Ax)),88),l!=(ys(),lp))for(g=Ur(n.b,0);g.b!=g.d.c;){switch(d=v(Fr(g),40),T=v(oe(d,(fa(),jq)),17).a,R=v(oe(d,Wq),17).a,l.g){case 4:R*=-1;break;case 1:y=T,T=R,R=y;break;case 2:x=T,T=-R,R=x}_t(d,jq,Nt(T)),_t(d,Wq,Nt(R))}i.Vg()}function oCr(n,i){var l;return l=new Ii,i&&Ul(l,v(br(n.a,vH),96)),$e(i,422)&&Ul(l,v(br(n.a,_H),96)),$e(i,366)?(Ul(l,v(br(n.a,wl),96)),l):($e(i,84)&&Ul(l,v(br(n.a,Lr),96)),$e(i,207)?(Ul(l,v(br(n.a,Pi),96)),l):$e(i,193)?(Ul(l,v(br(n.a,Oh),96)),l):($e(i,326)&&Ul(l,v(br(n.a,ss),96)),l))}function lCr(n){var i,l,d,g,y,x,T,R;for(R=new BPt,T=new me(n.a);T.a<T.c.c.length;)if(x=v(pe(T),10),x.k!=(lr(),hs)){for(u3r(R,x,new ho),y=new yr(_r(os(x).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),!(g.c.i.k==hs||g.d.i.k==hs))for(d=Ur(g.a,0);d.b!=d.d.c;)l=v(Fr(d),8),i=l,KD(R,new XR(i.a,i.b))}return R}function V1e(){V1e=z,Uje=new la(_me),$je=(AL(),eH),Fje=new En(xme,$je),Bje=($z(),Gne),Scn=new En(Q$e,Bje),Pje=(uG(),c2e),xcn=new En(Z$e,Pje),_cn=new En(wme,null),Mje=(bz(),Une),Ecn=new En(Eme,Mje),Dje=(VK(),s2e),mcn=new En(J$e,Dje),bcn=new En(eUe,(Qn(),!1)),ycn=new En(tUe,Nt(64)),vcn=new En(nUe,!0),wcn=l2e}function ijt(n,i){var l,d,g,y,x,T,R,O,D,q;for(n.p=1,g=n.c,q=new Hp,D=VE(n,(ll(),_u)).Kc();D.Ob();)for(O=v(D.Pb(),12),d=new me(O.g);d.a<d.c.c.length;)l=v(pe(d),18),R=l.d.i,n!=R&&(y=R.c,y.p<=g.p&&(x=g.p+1,x==i.b.c.length?(T=new Xc(i),T.p=x,Lt(i.b,T),po(R,T)):(T=v(Yt(i.b,x),30),po(R,T)),q.a.zc(R,q)));return q}function cCr(n,i){var l,d;if(l=v(oe(n,(fa(),xve)),15),!l||l.gc()<1)return null;if(l.gc()==1)return v(l.Xb(0),40);switch(d=null,i.g){case 2:d=v(ad(Ek(l.Oc(),new bEt)),40);break;case 1:d=v(ad(QS(l.Oc(),new fEt)),40);break;case 4:d=v(ad(Ek(l.Oc(),new pEt)),40);break;case 3:d=v(ad(QS(l.Oc(),new gEt)),40)}return d}function ajt(n){var i,l,d,g,y,x;if(n.a==null)if(n.a=st(Wh,Qg,28,n.c.b.c.length,16,1),n.a[0]=!1,ya(n.c,(qt(),nve)))for(d=v(oe(n.c,nve),15),l=d.Kc();l.Ob();)i=v(l.Pb(),17).a,i>0&&i<n.a.length&&(n.a[i]=!1);else for(x=new me(n.c.b),x.a<x.c.c.length&&pe(x),g=1;x.a<x.c.c.length;)y=v(pe(x),30),n.a[g++]=V3r(y)}function Vg(){Vg=z,RP=new la("additionalHeight"),bN=new la("drawingHeight"),C6=new la("drawingWidth"),Dne=new la("minHeight"),IP=new la("minWidth"),Mne=new la("rows"),r3=new la("targetWidth"),Zve=new Ba("minRowIncrease",0),Lln=new Ba("maxRowIncrease",0),Qve=new Ba("minRowDecrease",0),Oln=new Ba("maxRowDecrease",0)}function sjt(n,i){var l,d,g,y;switch(g=n.b,i){case 1:{n.b|=1,n.b|=4,n.b|=8;break}case 2:{n.b|=2,n.b|=4,n.b|=8;break}case 4:{n.b|=1,n.b|=2,n.b|=4,n.b|=8;break}case 3:{n.b|=16,n.b|=8;break}case 0:{n.b|=32,n.b|=16,n.b|=8,n.b|=1,n.b|=2,n.b|=4;break}}if(n.b!=g&&n.c)for(d=new mr(n.c);d.e!=d.i.gc();)y=v(wr(d),482),l=$h(y),_4(l,i)}function ojt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;for(g=!1,x=i,T=0,R=x.length;T<R;++T)y=x[T],Vt((Qn(),!!y.e))&&!v(Yt(n.b,y.e.p),219).s&&(g=g|(O=y.e,D=v(Yt(n.b,O.p),219),q=D.e,J=c7t(l,q.length),re=q[J][0],re.k==(lr(),hs)?q[J]=zTr(y,q[J],l?(Bt(),cr):(Bt(),gr)):D.c.mg(q,l),ae=_G(n,D,l,d),ePe(D.e,D.o,l),ae));return g}function ljt(n,i){var l,d,g,y,x;for(y=(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i,g=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));g.e!=g.i.gc();)d=v(wr(g),27),Ze(Et(d,(Ei(),J5)))!==Ze((Km(),qP))&&(x=v(Et(i,rC),143),l=v(Et(d,rC),143),(x==l||x&&vOe(x,l))&&(!d.a&&(d.a=new vt(Pi,d,10,11)),d.a).i!=0&&(y+=ljt(n,d)));return y}function uCr(n){var i,l,d,g,y,x,T;for(d=0,T=0,x=new me(n.d);x.a<x.c.c.length;)y=v(pe(x),105),g=v(Wl(Ki(new xn(null,new Nn(y.j,16)),new M6e),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),l=null,d<=T?(l=(Bt(),or),d+=g.gc()):T<d&&(l=(Bt(),Mr),T+=g.gc()),i=l,ts(Bl(g.Oc(),new U_t),new GCt(i))}function hCr(n){var i,l,d,g,y;for(y=new gu(n.a.c.length),g=new me(n.a);g.a<g.c.c.length;){switch(d=v(pe(g),10),l=v(oe(d,(qt(),Lu)),171),i=null,l.g){case 1:case 2:i=(F_(),O5);break;case 3:case 4:i=(F_(),tN)}i?(_t(d,(At(),Wte),(F_(),O5)),i==tN?_J(d,l,(ll(),Rh)):i==O5&&_J(d,l,(ll(),_u))):jn(y.c,d)}return y}function dCr(n){var i,l,d,g,y,x,T,R;for(n.b=new _Vt(new wh((Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]))),new wh((UE(),Te(xe(oye,1),wt,372,0,[px,l2,fx])))),x=Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]),T=0,R=x.length;T<R;++T)for(y=x[T],l=Te(xe(oye,1),wt,372,0,[px,l2,fx]),d=0,g=l.length;d<g;++d)i=l[d],iEr(n.b,y,i,new Ot)}function cjt(n,i){var l,d,g,y,x,T,R,O,D,q;if(x=v(v(Zi(n.r,i),21),87),T=n.u.Hc((Ah(),v2)),l=n.u.Hc(jP),d=n.u.Hc(YP),O=n.u.Hc(L6),q=n.B.Hc((qh(),tre)),D=!l&&!d&&(O||x.gc()==2),u5r(n,i),g=null,R=null,T){for(y=x.Kc(),g=v(y.Pb(),117),R=g;y.Ob();)R=v(y.Pb(),117);g.d.b=0,R.d.c=0,D&&!g.a&&(g.d.c=0)}q&&(rxr(x),T&&(g.d.b=0,R.d.c=0))}function ujt(n,i){var l,d,g,y,x,T,R,O,D,q;if(x=v(v(Zi(n.r,i),21),87),T=n.u.Hc((Ah(),v2)),l=n.u.Hc(jP),d=n.u.Hc(YP),R=n.u.Hc(L6),q=n.B.Hc((qh(),tre)),O=!l&&!d&&(R||x.gc()==2),NAr(n,i),D=null,g=null,T){for(y=x.Kc(),D=v(y.Pb(),117),g=D;y.Ob();)g=v(y.Pb(),117);D.d.d=0,g.d.a=0,O&&!D.a&&(D.d.a=0)}q&&(ixr(x),T&&(D.d.d=0,g.d.a=0))}function hjt(n,i,l){var d,g,y,x,T,R,O,D;if(g=i.k,i.p>=0)return!1;if(i.p=l.b,Lt(l.e,i),g==(lr(),Ws)||g==iu){for(x=new me(i.j);x.a<x.c.c.length;)for(y=v(pe(x),12),D=(d=new me(new QA(y).a.g),new x7e(d));nc(D.a);)if(O=v(pe(D.a),18).d,T=O.i,R=T.k,i.c!=T.c&&(R==Ws||R==iu)&&hjt(n,T,l))return!0}return!0}function TJ(n){var i;return n.Db&64?RMe(n):(i=new Ff(RMe(n)),i.a+=" (changeable: ",Hb(i,(n.Bb&k0)!=0),i.a+=", volatile: ",Hb(i,(n.Bb&P4)!=0),i.a+=", transient: ",Hb(i,(n.Bb&R4)!=0),i.a+=", defaultValueLiteral: ",bl(i,n.j),i.a+=", unsettable: ",Hb(i,(n.Bb&gh)!=0),i.a+=", derived: ",Hb(i,(n.Bb&ng)!=0),i.a+=")",i.a)}function fCr(n,i){var l,d,g,y,x;return g=i.qi(n.a),g&&(d=(!g.b&&(g.b=new sd((Pn(),nl),_c,g)),g.b),l=ai(h1(d,Bo)),l!=null&&(y=l.lastIndexOf("#"),x=y==-1?Y8e(n,i.jk(),l):y==0?wz(n,null,(sr(1,l.length+1),l.substr(1))):wz(n,(mo(0,y,l.length),l.substr(0,y)),(sr(y+1,l.length+1),l.substr(y+1))),$e(x,156)))?v(x,156):null}function pCr(n,i){var l,d,g,y,x;return d=i.qi(n.a),d&&(l=(!d.b&&(d.b=new sd((Pn(),nl),_c,d)),d.b),y=ai(h1(l,Qme)),y!=null&&(g=y.lastIndexOf("#"),x=g==-1?Y8e(n,i.jk(),y):g==0?wz(n,null,(sr(1,y.length+1),y.substr(1))):wz(n,(mo(0,g,y.length),y.substr(0,g)),(sr(g+1,y.length+1),y.substr(g+1))),$e(x,156)))?v(x,156):null}function gCr(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(g=hTr(n.d),x=v(oe(n.b,(qD(),eGe)),107),T=x.b+x.c,R=x.d+x.a,D=g.d.a*n.e+T,O=g.b.a*n.f+R,mrr(n.b,new Ct(D,O)),J=new me(n.g);J.a<J.c.c.length;)q=v(pe(J),568),i=q.g-g.a.a,l=q.i-g.c.a,d=Hi(kor(new Ct(i,l),q.a,q.b),Vp(ZL(Eo(b8e(q.e)),q.d*q.a,q.c*q.b),-.5)),y=y8e(q.e),Wir(q.e,$s(d,y))}function mCr(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(i.Ug("Restoring reversed edges",1),R=new me(n.b);R.a<R.c.c.length;)for(T=v(pe(R),30),D=new me(T.a);D.a<D.c.c.length;)for(O=v(pe(D),10),J=new me(O.j);J.a<J.c.c.length;)for(q=v(pe(J),12),x=Xp(q.g),d=x,g=0,y=d.length;g<y;++g)l=d[g],Vt(Ht(oe(l,(At(),ap))))&&ZE(l,!1);i.Vg()}function bCr(n,i,l,d){var g,y,x,T,R;for(R=st(ao,kt,109,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,0,2),y=Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]),x=0,T=y.length;x<T;++x)g=y[x],R[g.g]=st(ao,_l,28,n.c[g.g],15,1);return Aqt(R,n,or),Aqt(R,n,Mr),s1e(R,n,or,i,l,d),s1e(R,n,gr,i,l,d),s1e(R,n,Mr,i,l,d),s1e(R,n,cr,i,l,d),R}function yCr(n,i,l){if(Tu(n.a,i)){if(r1(v(br(n.a,i),49),l))return 1}else Ni(n.a,i,new fs);if(Tu(n.a,l)){if(r1(v(br(n.a,l),49),i))return-1}else Ni(n.a,l,new fs);if(Tu(n.b,i)){if(r1(v(br(n.b,i),49),l))return-1}else Ni(n.b,i,new fs);if(Tu(n.b,l)){if(r1(v(br(n.b,l),49),i))return 1}else Ni(n.b,l,new fs);return 0}function vCr(n){var i,l,d,g,y,x;n.q==(co(),sm)||n.q==su||(g=n.f.n.d+HX(v(yl(n.b,(Bt(),or)),127))+n.c,i=n.f.n.a+HX(v(yl(n.b,Mr),127))+n.c,d=v(yl(n.b,gr),127),x=v(yl(n.b,cr),127),y=u.Math.max(0,d.n.d-g),y=u.Math.max(y,x.n.d-g),l=u.Math.max(0,d.n.a-i),l=u.Math.max(l,x.n.a-i),d.n.d=y,x.n.d=y,d.n.a=l,x.n.a=l)}function cPe(n,i,l,d){var g,y,x,T,R,O;if(l==null){for(g=v(n.g,124),T=0;T<n.i;++T)if(x=g[T],x.Lk()==i)return Ko(n,x,d)}return y=(al(),v(i,69).xk()?v(l,76):zg(i,l)),id(n.e)?(O=!Qz(n,i),d=bu(n,y,d),R=i.Jk()?Bv(n,3,i,null,l,pI(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0),O):Bv(n,1,i,i.ik(),l,-1,O),d?d.nj(R):d=R):d=bu(n,y,d),d}function djt(){this.b=new Zb,this.d=new Zb,this.e=new Zb,this.c=new Zb,this.a=new Br,this.f=new Br,GT(Vs,new zxt,new qxt),GT(Qje,new eSt,new tSt),GT(xGe,new nSt,new rSt),GT(SGe,new iSt,new aSt),GT(Iun,new sSt,new oSt),GT(N8r,new Hxt,new Vxt),GT(D8r,new Yxt,new jxt),GT(O8r,new Wxt,new Kxt),GT(L8r,new Xxt,new Qxt),GT(B8r,new Zxt,new Jxt)}function sM(n,i){var l,d,g,y,x;for(n=n==null?Ku:(hr(n),n),g=0;g<i.length;g++)i[g]=gTr(i[g]);for(l=new sk,x=0,d=0;d<i.length&&(y=n.indexOf("%s",x),y!=-1);)l.a+=""+af(n==null?Ku:(hr(n),n),x,y),Kc(l,i[d++]),x=y+2;if(kMt(l,n,x,n.length),d<i.length){for(l.a+=" [",Kc(l,i[d++]);d<i.length;)l.a+=Xo,Kc(l,i[d++]);l.a+="]"}return l.a}function uPe(n,i){var l,d,g,y,x,T,R;for(l=0,R=new me(i);R.a<R.c.c.length;){for(T=v(pe(R),12),eLe(n.b,n.d[T.p]),x=0,g=new V1(T.b);nc(g.a)||nc(g.b);)d=v(nc(g.a)?pe(g.a):pe(g.b),18),TLt(d)?(y=bRe(n,T==d.c?d.d:d.c),y>n.d[T.p]&&(l+=bOe(n.b,y),Fv(n.a,Nt(y)))):++x;for(l+=n.b.d*x;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function fjt(n){var i,l,d,g,y,x;return y=0,i=Gf(n),i.kk()&&(y|=4),n.Bb&gh&&(y|=2),$e(n,102)?(l=v(n,19),g=sl(l),l.Bb&Sc&&(y|=32),g&&(kr(t4(g)),y|=8,x=g.t,(x>1||x==-1)&&(y|=16),g.Bb&Sc&&(y|=64)),l.Bb&el&&(y|=P4),y|=k0):$e(i,469)?y|=512:(d=i.kk(),d&&d.i&1&&(y|=256)),n.Bb&512&&(y|=128),y}function _Cr(n,i){var l;return n.f==K2e?(l=RE(Al((dh(),ko),i)),n.e?l==4&&i!=(Kk(),P6)&&i!=(Kk(),M6)&&i!=(Kk(),X2e)&&i!=(Kk(),Q2e):l==2):n.d&&(n.d.Hc(i)||n.d.Hc(Ik(Al((dh(),ko),i)))||n.d.Hc(h5((dh(),ko),n.b,i)))?!0:n.f&&jMe((dh(),n.f),rz(Al(ko,i)))?(l=RE(Al(ko,i)),n.e?l==4:l==2):!1}function wCr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(J=-1,re=0,O=n,D=0,q=O.length;D<q;++D){for(R=O[D],y=R,x=0,T=y.length;x<T;++x)for(g=y[x],i=new GMt(J==-1?n[0]:n[J],v(oe(So(g),(qt(),nm)),284),_qt(g),Vt(Ht(oe(So(g),zye)))),l=0;l<g.j.c.length;l++)for(d=l+1;d<g.j.c.length;d++)H9t(i,v(Yt(g.j,l),12),v(Yt(g.j,d),12))>0&&++re;++J}return re}function ECr(n,i,l,d){var g,y,x,T,R,O,D,q;return x=v(Et(l,(Ei(),R6)),8),R=x.a,D=x.b+n,g=u.Math.atan2(D,R),g<0&&(g+=Z_),g+=i,g>Z_&&(g-=Z_),T=v(Et(d,R6),8),O=T.a,q=T.b+n,y=u.Math.atan2(q,O),y<0&&(y+=Z_),y+=i,y>Z_&&(y-=Z_),$1(),x0(1e-10),u.Math.abs(g-y)<=1e-10||g==y||isNaN(g)&&isNaN(y)?0:g<y?-1:g>y?1:mE(isNaN(g),isNaN(y))}function Y1e(n){var i,l,d,g,y,x,T;for(T=new Br,d=new me(n.a.b);d.a<d.c.c.length;)i=v(pe(d),60),Ni(T,i,new Ot);for(g=new me(n.a.b);g.a<g.c.c.length;)for(i=v(pe(g),60),i.i=Ss,x=i.c.Kc();x.Ob();)y=v(x.Pb(),60),v(Pl(ol(T.f,y)),15).Fc(i);for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),60),i.c.$b(),i.c=v(Pl(ol(T.f,i)),15);MYt(n)}function j1e(n){var i,l,d,g,y,x,T;for(T=new Br,d=new me(n.a.b);d.a<d.c.c.length;)i=v(pe(d),86),Ni(T,i,new Ot);for(g=new me(n.a.b);g.a<g.c.c.length;)for(i=v(pe(g),86),i.o=Ss,x=i.f.Kc();x.Ob();)y=v(x.Pb(),86),v(Pl(ol(T.f,y)),15).Fc(i);for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),86),i.f.$b(),i.f=v(Pl(ol(T.f,i)),15);EYt(n)}function xCr(n,i,l,d){var g,y;for(Awr(n,i,l,d),brr(i,n.j-i.j+l),yrr(i,n.k-i.k+d),y=new me(i.f);y.a<y.c.c.length;)switch(g=v(pe(y),334),g.a.g){case 0:F8(n,i.g+g.b.a,0,i.g+g.c.a,i.i-1);break;case 1:F8(n,i.g+i.o,i.i+g.b.a,n.o-1,i.i+g.c.a);break;case 2:F8(n,i.g+g.b.a,i.i+i.p,i.g+g.c.a,n.p-1);break;default:F8(n,0,i.i+g.b.a,i.g-1,i.i+g.c.a)}}function SCr(n,i){var l,d,g,y,x,T,R,O;for(y=new Ot,i.b.c.length=0,l=v(Wl(ZNe(new xn(null,new Nn(new m_(n.a.b),1))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),g=l.Kc();g.Ob();)if(d=v(g.Pb(),17),x=uOe(n.a,d),x.b!=0)for(T=new Xc(i),jn(y.c,T),T.p=d.a,O=Ur(x,0);O.b!=O.d.c;)R=v(Fr(O),10),po(R,T);xs(i.b,y)}function CJ(n,i,l,d,g){var y,x,T;try{if(i>=n.o)throw _e(new z7e);T=i>>5,x=i&31,y=w0(1,ti(w0(x,1))),g?n.n[l][T]=s1(n.n[l][T],y):n.n[l][T]=Us(n.n[l][T],FIe(y)),y=w0(y,1),d?n.n[l][T]=s1(n.n[l][T],y):n.n[l][T]=Us(n.n[l][T],FIe(y))}catch(R){throw R=Da(R),$e(R,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(R)}}function TCr(n,i,l,d){var g,y,x,T,R,O,D,q,J;for(J=new Vb(new lAt(n)),T=Te(xe(tm,1),gy,10,0,[i,l]),R=0,O=T.length;R<O;++R)for(x=T[R],q=MD(x,d).Kc();q.Ob();)for(D=v(q.Pb(),12),y=new V1(D.b);nc(y.a)||nc(y.b);)g=v(nc(y.a)?pe(y.a):pe(y.b),18),Jo(g)||(J.a.zc(D,(Qn(),a2))==null,TLt(g)&&JU(J,D==g.c?g.d:g.c));return ni(J),new Eh(J)}function hPe(n,i,l,d){var g,y,x;i&&(y=We(at(oe(i,(fa(),xy))))+d,x=l+We(at(oe(i,Cne)))/2,_t(i,jq,Nt(ti(xc(u.Math.round(y))))),_t(i,Wq,Nt(ti(xc(u.Math.round(x))))),i.d.b==0||hPe(n,v(SX((g=Ur(new Mm(i).a.d,0),new xT(g))),40),l+We(at(oe(i,Cne)))+n.b,d+We(at(oe(i,mN)))),oe(i,Rve)!=null&&hPe(n,v(oe(i,Rve),40),l,d))}function CCr(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(R=So(i.a),g=We(at(oe(R,(qt(),dw))))*2,D=We(at(oe(R,z5))),O=u.Math.max(g,D),y=st(ao,_l,28,i.f-i.c+1,15,1),d=-O,l=0,T=i.b.Kc();T.Ob();)x=v(T.Pb(),10),d+=n.a[x.c.p]+O,y[l++]=d;for(d+=n.a[i.a.c.p]+O,y[l++]=d,J=new me(i.e);J.a<J.c.c.length;)q=v(pe(J),10),d+=n.a[q.c.p]+O,y[l++]=d;return y}function ACr(n,i){var l,d,g,y;if(y=v(Et(n,(Ei(),nC)),64).g-v(Et(i,nC),64).g,y!=0)return y;if(l=v(Et(n,R2e),17),d=v(Et(i,R2e),17),l&&d&&(g=l.a-d.a,g!=0))return g;switch(v(Et(n,nC),64).g){case 1:return ha(n.i,i.i);case 2:return ha(n.j,i.j);case 3:return ha(i.i,n.i);case 4:return ha(i.j,n.j);default:throw _e(new Tl(YBe))}}function dPe(n){var i,l,d;return n.Db&64?T1e(n):(i=new Ed(fUe),l=n.k,l?bi(bi((i.a+=' "',i),l),'"'):(!n.n&&(n.n=new vt(wl,n,1,7)),n.n.i>0&&(d=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!d||bi(bi((i.a+=' "',i),d),'"'))),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function pjt(n){var i,l,d;return n.Db&64?T1e(n):(i=new Ed(pUe),l=n.k,l?bi(bi((i.a+=' "',i),l),'"'):(!n.n&&(n.n=new vt(wl,n,1,7)),n.n.i>0&&(d=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!d||bi(bi((i.a+=' "',i),d),'"'))),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function kCr(n,i){var l,d,g,y,x;for(i==(ND(),gve)&&dG(v(Zi(n.a,(b4(),kq)),15)),g=v(Zi(n.a,(b4(),kq)),15).Kc();g.Ob();)switch(d=v(g.Pb(),105),l=v(Yt(d.j,0),113).d.j,y=new Eh(d.j),us(y,new k_t),i.g){case 2:v1e(n,y,l,(UE(),l2),1);break;case 1:case 0:x=pTr(y),v1e(n,new Qb(y,0,x),l,(UE(),l2),0),v1e(n,new Qb(y,x,y.c.length),l,l2,1)}}function W1e(n,i){var l,d,g,y,x,T,R;if(i==null||i.length==0)return null;if(g=v(Qc(n.a,i),143),!g){for(d=(T=new Dm(n.b).a.vc().Kc(),new FS(T));d.a.Ob();)if(l=(y=v(d.a.Pb(),44),v(y.md(),143)),x=l.c,R=i.length,An(x.substr(x.length-R,R),i)&&(i.length==x.length||Do(x,x.length-i.length-1)==46)){if(g)return null;g=l}g&&Cl(n.a,i,g)}return g}function RCr(n,i){var l,d,g,y;return l=new Ls,d=v(Wl(Bl(new xn(null,new Nn(n.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21),g=d.gc(),d=v(Wl(Bl(new xn(null,new Nn(i.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[B4,Ql]))),21),y=d.gc(),g<y?-1:g==y?0:1}function gjt(n){var i,l,d;ya(n,(qt(),_x))&&(d=v(oe(n,_x),21),!d.dc()&&(l=(i=v(n1(fl),9),new nf(i,v(v0(i,i.length),9),0)),d.Hc((w4(),Bd))?S0(l,Bd):S0(l,P0),d.Hc(Xf)||S0(l,Xf),d.Hc(D0)?S0(l,B0):d.Hc(cb)?S0(l,am):d.Hc(M0)&&S0(l,Qf),d.Hc(B0)?S0(l,D0):d.Hc(am)?S0(l,cb):d.Hc(Qf)&&S0(l,M0),_t(n,_x,l)))}function ICr(n){var i,l,d,g,y,x,T;for(g=v(oe(n,(At(),mx)),10),d=n.j,l=($n(0,d.c.length),v(d.c[0],12)),x=new me(g.j);x.a<x.c.c.length;)if(y=v(pe(x),12),Ze(y)===Ze(oe(l,Ji))){y.j==(Bt(),or)&&n.p>g.p?(Bs(y,Mr),y.d&&(T=y.o.b,i=y.a.b,y.a.b=T-i)):y.j==Mr&&g.p>n.p&&(Bs(y,or),y.d&&(T=y.o.b,i=y.a.b,y.a.b=-(T-i)));break}return g}function wG(n,i,l,d,g){var y,x,T,R,O,D,q;if(!($e(i,207)||$e(i,366)||$e(i,193)))throw _e(new ar("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return x=n.a/2,R=i.i+d-x,D=i.j+g-x,O=R+i.g+n.a,q=D+i.f+n.a,y=new ah,pi(y,new Ct(R,D)),pi(y,new Ct(R,q)),pi(y,new Ct(O,q)),pi(y,new Ct(O,D)),T=new P1e(y),Ul(T,i),l&&Ni(n.b,i,T),T}function hI(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=new Ct(i,l),D=new me(n.a);D.a<D.c.c.length;)for(O=v(pe(D),10),Hi(O.n,y),J=new me(O.j);J.a<J.c.c.length;)for(q=v(pe(J),12),g=new me(q.g);g.a<g.c.c.length;)for(d=v(pe(g),18),u4(d.a,y),x=v(oe(d,(qt(),Nl)),75),x&&u4(x,y),R=new me(d.b);R.a<R.c.c.length;)T=v(pe(R),72),Hi(T.n,y)}function NCr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=new Ct(i,l),D=new me(n.a);D.a<D.c.c.length;)for(O=v(pe(D),10),Hi(O.n,y),J=new me(O.j);J.a<J.c.c.length;)for(q=v(pe(J),12),g=new me(q.g);g.a<g.c.c.length;)for(d=v(pe(g),18),u4(d.a,y),x=v(oe(d,(qt(),Nl)),75),x&&u4(x,y),R=new me(d.b);R.a<R.c.c.length;)T=v(pe(R),72),Hi(T.n,y)}function mjt(n){if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i==0)throw _e(new ik("Edges must have a source."));if((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i==0)throw _e(new ik("Edges must have a target."));if(!n.b&&(n.b=new Gn(Lr,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c.i<=1)))throw _e(new ik("Hyperedges are not supported."))}function fPe(n,i){var l,d,g,y,x,T,R,O,D,q;for(q=0,y=new FT,Fv(y,i);y.b!=y.c;)for(R=v(xk(y),219),O=0,D=v(oe(i.j,(qt(),nm)),284),x=We(at(oe(i.j,ene))),T=We(at(oe(i.j,RHe))),D!=(Zp(),wy)&&(O+=x*D3r(R.e,D),O+=T*wCr(R.e)),q+=uqt(R.d,R.e)+O,g=new me(R.b);g.a<g.c.c.length;)d=v(pe(g),36),l=v(Yt(n.b,d.p),219),l.s||(q+=uJ(n,l));return q}function eg(){eg=z;var n;for(Zee=new qm(1,1),_be=new qm(1,10),KM=new qm(0,0),Men=new qm(-1,1),Pen=Te(xe(T5,1),kt,92,0,[KM,Zee,new qm(1,2),new qm(1,3),new qm(1,4),new qm(1,5),new qm(1,6),new qm(1,7),new qm(1,8),new qm(1,9),_be]),Jee=st(T5,kt,92,32,0,1),n=0;n<Jee.length;n++)Jee[n]=bX(w0(1,n),0)?Yv(w0(1,n)):cD(Yv(ty(w0(1,n))))}function bjt(n,i,l,d,g,y,x){if(n.c=d.Lf().a,n.d=d.Lf().b,g&&(n.c+=g.Lf().a,n.d+=g.Lf().b),n.b=i.Mf().a,n.a=i.Mf().b,!g)l?n.c-=x+i.Mf().a:n.c+=d.Mf().a+x;else switch(g.ag().g){case 0:case 2:n.c+=g.Mf().a+x+y.a+x;break;case 4:n.c-=x+y.a+x+i.Mf().a;break;case 1:n.c+=g.Mf().a+x,n.d-=x+y.b+x+i.Mf().b;break;case 3:n.c+=g.Mf().a+x,n.d+=g.Mf().b+x+y.b+x}}function yjt(n,i){var l,d;for(this.b=new Ot,this.e=new Ot,this.a=n,this.d=i,W2r(this),e2r(this),this.b.dc()?this.c=n.c.p:this.c=v(this.b.Xb(0),10).c.p,this.e.c.length==0?this.f=n.c.p:this.f=v(Yt(this.e,this.e.c.length-1),10).c.p,d=v(oe(n,(At(),oP)),15).Kc();d.Ob();)if(l=v(d.Pb(),72),ya(l,(qt(),rne))){this.d=v(oe(l,rne),232);break}}function dI(n,i,l){var d,g,y,x,T,R,O,D;for(d=v(br(n.a,i),49),y=v(br(n.a,l),49),g=v(br(n.e,i),49),x=v(br(n.e,l),49),d.a.zc(l,d),x.a.zc(i,x),D=y.a.ec().Kc();D.Ob();)O=v(D.Pb(),10),d.a.zc(O,d),Es(v(br(n.e,O),49),i),bo(v(br(n.e,O),49),g);for(R=g.a.ec().Kc();R.Ob();)T=v(R.Pb(),10),x.a.zc(T,x),Es(v(br(n.a,T),49),l),bo(v(br(n.a,T),49),y)}function EG(n,i,l){var d,g,y,x,T,R,O,D;for(d=v(br(n.a,i),49),y=v(br(n.a,l),49),g=v(br(n.b,i),49),x=v(br(n.b,l),49),d.a.zc(l,d),x.a.zc(i,x),D=y.a.ec().Kc();D.Ob();)O=v(D.Pb(),10),d.a.zc(O,d),Es(v(br(n.b,O),49),i),bo(v(br(n.b,O),49),g);for(R=g.a.ec().Kc();R.Ob();)T=v(R.Pb(),10),x.a.zc(T,x),Es(v(br(n.a,T),49),l),bo(v(br(n.a,T),49),y)}function mf(n,i,l){var d,g,y,x,T,R,O,D;for(d=v(br(n.a,i),49),y=v(br(n.a,l),49),g=v(br(n.d,i),49),x=v(br(n.d,l),49),d.a.zc(l,d),x.a.zc(i,x),D=y.a.ec().Kc();D.Ob();)O=v(D.Pb(),12),d.a.zc(O,d),Es(v(br(n.d,O),49),i),bo(v(br(n.d,O),49),g);for(R=g.a.ec().Kc();R.Ob();)T=v(R.Pb(),12),x.a.zc(T,x),Es(v(br(n.a,T),49),l),bo(v(br(n.a,T),49),y)}function OCr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;if(y=l,l<d)for(J=(re=new Mz(n.p),ae=new Mz(n.p),bo(re.e,n.e),re.q=n.q,re.r=ae,lQ(re),bo(ae.j,n.j),ae.r=re,lQ(ae),new Ms(re,ae)),q=v(J.a,118),D=v(J.b,118),g=($n(y,i.c.length),v(i.c[y],339)),x=jYt(n,q,D,g),O=l+1;O<=d;O++)T=($n(O,i.c.length),v(i.c[O],339)),R=jYt(n,q,D,T),j2r(T,R,g,x)&&(g=T,x=R,y=O);return y}function LCr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;for(x=v(ze(i,0),27),Au(x,0),ku(x,0),J=new Ot,jn(J.c,x),T=x,y=new YIe(n.a,x.g,x.f,(rM(),Jq)),re=1;re<i.i;re++)ae=v(ze(i,re),27),R=ape(n,W5,ae,T,y,J,l),O=ape(n,A6,ae,T,y,J,l),D=ape(n,DP,ae,T,y,J,l),q=ape(n,LP,ae,T,y,J,l),g=l6r(n,R,O,D,q,ae,T,d),Au(ae,g.d),ku(ae,g.e),Drr(g,Jq),y=g,T=ae,jn(J.c,ae);return y}function DCr(n,i,l){var d,g,y,x,T,R,O,D,q,J;if(D=null,J=i,q=oPt(n,QMt(l),J),I8(q,zm(J,ug)),x=ME(J,mUe),d=new L8t(n,q),r4r(d.a,d.b,x),T=ME(J,$me),g=new D8t(n,q),i4r(g.a,g.b,T),(!q.b&&(q.b=new Gn(Lr,q,4,7)),q.b).i==0||(!q.c&&(q.c=new Gn(Lr,q,5,8)),q.c).i==0)throw y=zm(J,ug),R=MZt+y,O=R+UI,_e(new zp(O));return sJ(J,q),FRr(n,J,q),D=c0e(n,J,q),D}function MCr(n,i){var l,d,g,y,x,T,R;for(g=st(Wr,vi,28,n.e.a.c.length,15,1),x=new me(n.e.a);x.a<x.c.c.length;)y=v(pe(x),125),g[y.d]+=y.b.a.c.length;for(T=KU(i);T.b!=0;)for(y=v(T.b==0?null:(Tr(T.b!=0),cf(T,T.a.a)),125),d=Mk(new me(y.g.a));d.Ob();)l=v(d.Pb(),218),R=l.e,R.e=u.Math.max(R.e,y.e+l.a),--g[R.d],g[R.d]==0&&qa(T,R,T.c.b,T.c)}function vjt(n){var i,l,d,g,y,x,T,R,O,D,q;for(l=Po,g=qi,T=new me(n.e.a);T.a<T.c.c.length;)y=v(pe(T),125),g=u.Math.min(g,y.e),l=u.Math.max(l,y.e);for(i=st(Wr,vi,28,l-g+1,15,1),x=new me(n.e.a);x.a<x.c.c.length;)y=v(pe(x),125),y.e-=g,++i[y.e];if(d=0,n.k!=null)for(O=n.k,D=0,q=O.length;D<q&&(R=O[D],i[d++]+=R,i.length!=d);++D);return i}function PCr(n,i){var l,d,g,y,x,T;if(i.Ug("Edge routing",1),g=v(oe(n,(pc(),Ive)),392),g==(OD(),Eve))tgr(n);else if(g==Vq)for(v(ad(U8(Ki(new xn(null,new Nn(n.b,16)),new cEt))),40),y=We(at(oe(n,EYe))),x=We(at(oe(n,bYe))),T=v(oe(n,Ax),88),zRr(n,T,y),y8r(n,T,y,x),E8r(n,T,y,x),d=Ur(n.a,0);d.b!=d.d.c;)l=v(Fr(d),65),l.a.b<2&&wMe(l);i.Vg()}function _jt(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return v(tPe(n),17).a==n.o;case 1:case 2:{if(n.o==-2)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return gE(n.k,n.f);case 3:case 4:return n.j==n.e;default:return n.n==null?n.g==null:Yi(n.n,n.g)}}default:return!1}}function BCr(n,i){var l,d,g;switch(i.Ug("Breaking Point Insertion",1),d=new MMe(n),v(oe(n,(qt(),tve)),351).g){case 2:g=new $6e;break;case 0:g=new P6e;break;default:g=new U6e}if(l=g.og(n,d),Vt(Ht(oe(n,fVe)))&&(l=C6r(n,l)),!g.pg()&&ya(n,dne))switch(v(oe(n,dne),352).g){case 2:l=JHt(d,l);break;case 1:l=Hqt(d,l)}if(l.dc()){i.Vg();return}YRr(n,l),i.Vg()}function wjt(n,i,l){var d,g,y,x,T,R,O,D,q;for(y=new gu(i.c.length),O=new me(i);O.a<O.c.c.length;)x=v(pe(O),10),Lt(y,n.b[x.c.p][x.p]);for(w6r(n,y,l),q=null;q=d7r(y);)tkr(n,v(q.a,239),v(q.b,239),y);for(i.c.length=0,g=new me(y);g.a<g.c.c.length;)for(d=v(pe(g),239),T=d.d,R=0,D=T.length;R<D;++R)x=T[R],jn(i.c,x),n.a[x.c.p][x.p].a=U1(d.g,d.d[0]).a}function Ejt(n){dE(n,new H_(cE(sE(lE(oE(new f_,LM),"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 cSt))),It(n,LM,rx,JWe),It(n,LM,mee,zt(GP)),It(n,LM,sUe,zt(KWe)),It(n,LM,y5,zt(XWe)),It(n,LM,l6,zt(ZWe)),It(n,LM,RI,zt(QWe))}function AJ(n,i,l){var d,g,y,x,T;if(d=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),T=ti(Go(Wg,Ug(ti(Go(l==null?0:ma(l),Kg)),15))),y=TD(n,i,d),y&&T==y.f&&Wp(l,y.i))return l;if(x=CD(n,l,T),x)throw _e(new ar("value already present: "+l));return g=new uQ(i,d,l,T),y?(s5(n,y),pG(n,g,y),y.e=null,y.c=null,y.i):(pG(n,g,null),kqt(n),null)}function FCr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;D=l.a.c,x=l.a.c+l.a.b,y=v(br(l.c,i),468),re=y.f,ae=y.a,y.b?R=new Ct(x,re):R=new Ct(D,re),y.c?q=new Ct(D,ae):q=new Ct(x,ae),g=D,l.p||(g+=n.c),g+=l.F+l.v*n.b,O=new Ct(g,re),J=new Ct(g,ae),xD(i.a,Te(xe(Vs,1),kt,8,0,[R,O])),T=l.d.a.gc()>1,T&&(d=new Ct(g,l.b),pi(i.a,d)),xD(i.a,Te(xe(Vs,1),kt,8,0,[J,q]))}function qf(){qf=z,bne=new qS(og,0),Uq=new qS("NIKOLOV",1),zq=new qS("NIKOLOV_PIXEL",2),CVe=new qS("NIKOLOV_IMPROVED",3),AVe=new qS("NIKOLOV_IMPROVED_PIXEL",4),TVe=new qS("DUMMYNODE_PERCENTAGE",5),kVe=new qS("NODECOUNT_PERCENTAGE",6),yne=new qS("NO_BOUNDARY",7),Tx=new qS("MODEL_ORDER_LEFT_TO_RIGHT",8),e3=new qS("MODEL_ORDER_RIGHT_TO_LEFT",9)}function $Cr(n){var i,l,d,g,y;for(d=n.length,i=new EL,y=0;y<d;)if(l=Do(n,y++),!(l==9||l==10||l==12||l==13||l==32)){if(l==35){for(;y<d&&(l=Do(n,y++),!(l==13||l==10)););continue}l==92&&y<d?(g=(sr(y,n.length),n.charCodeAt(y)))==35||g==9||g==10||g==12||g==13||g==32?(c8(i,g&vs),++y):(i.a+="\\",c8(i,g&vs),++y):c8(i,l&vs)}return i.a}function pPe(){pPe=z,lln=new En(R$e,(Qn(),!1)),dln=new En(I$e,Nt(0)),fln=new En(N$e,0),pln=new En(xee,!1),DYe=(qz(),Ine),uln=new En(pme,DYe),Nt(0),cln=new En(gme,Nt(1)),PYe=(bZ(),Yve),yln=new En(O$e,PYe),BYe=(qQ(),zve),vln=new En(L$e,BYe),MYe=(ZZ(),Vve),hln=new En(D$e,MYe),bln=new En(mme,0),gln=new En(bme,!1),mln=new En(M$e,!1)}function UCr(n,i){var l,d,g;for(d=new me(i);d.a<d.c.c.length;)if(l=v(pe(d),27),Rn(n.a,l,l),Rn(n.b,l,l),g=E4(l),g.c.length!=0)for(n.d&&n.d.Gg(g),Rn(n.a,l,($n(0,g.c.length),v(g.c[0],27))),Rn(n.b,l,v(Yt(g,g.c.length-1),27));s0e(g).c.length!=0;)g=s0e(g),n.d&&n.d.Gg(g),Rn(n.a,l,($n(0,g.c.length),v(g.c[0],27))),Rn(n.b,l,v(Yt(g,g.c.length-1),27))}function K1e(n,i,l){var d,g,y,x,T,R;if(i)if(l<=-1){if(d=qn(i.Dh(),-1-l),$e(d,102))return v(d,19);for(x=v(i.Mh(d),160),T=0,R=x.gc();T<R;++T)if(Ze(x.Ul(T))===Ze(n)&&(g=x.Tl(T),$e(g,102)&&(y=v(g,19),y.Bb&Sc)))return y;throw _e(new Tl("The containment feature could not be located"))}else return sl(v(qn(n.Dh(),l),19));else return null}function zCr(n){var i,l,d,g,y,x,T,R,O,D;for(l=0,T=new me(n.d);T.a<T.c.c.length;)x=v(pe(T),105),x.i&&(x.i.c=l++);for(i=E_(Wh,[kt,Qg],[183,28],16,[l,l],2),D=n.d,g=0;g<D.c.length;g++)if(R=($n(g,D.c.length),v(D.c[g],105)),R.i)for(y=g+1;y<D.c.length;y++)O=($n(y,D.c.length),v(D.c[y],105)),O.i&&(d=fxr(R,O),i[R.i.c][O.i.c]=d,i[O.i.c][R.i.c]=d);return i}function gPe(){gPe=z,zln=new En(F$e,(Qn(),!1)),Nt(-1),Mln=new En($$e,Nt(-1)),Nt(-1),Pln=new En(U$e,Nt(-1)),Bln=new En(z$e,!1),ije=(MQ(),r2e),Vln=new En(G$e,ije),Yln=new En(q$e,-1),rje=(NZ(),Jve),Hln=new En(H$e,rje),qln=new En(V$e,!0),nje=(HQ(),i2e),Uln=new En(Y$e,nje),$ln=new En(j$e,!1),Nt(1),Fln=new En(W$e,Nt(1)),Gln=new la(K$e)}function oM(){oM=z,wve=new pE("ROOT_PROC",0),QVe=new pE("FAN_PROC",1),tYe=new pE("LEVEL_PROC",2),nYe=new pE("NEIGHBORS_PROC",3),eYe=new pE("LEVEL_HEIGHT",4),XVe=new pE("DIRECTION_PROC",5),rYe=new pE("NODE_POSITION_PROC",6),WVe=new pE("COMPACTION_PROC",7),JVe=new pE("LEVEL_COORDS",8),ZVe=new pE("GRAPH_BOUNDS_PROC",9),KVe=new pE("DETREEIFYING_PROC",10)}function mPe(n,i){var l,d,g,y,x,T,R,O,D,q;for(q=Fl(i),O=null,g=!1,T=0,D=Uc(q.a).i;T<D;++T)x=v(RG(q,T,(y=v(ze(Uc(q.a),T),89),R=y.c,$e(R,90)?v(R,29):(Pn(),n0))),29),l=mPe(n,x),l.dc()||(O?(g||(g=!0,O=new ZX(O)),O.Gc(l)):O=l);return d=QSr(n,i),d.dc()?O||(Fn(),Fn(),Zo):O?(g||(O=new ZX(O)),O.Gc(d),O):d}function X1e(n,i){var l,d,g,y,x,T,R,O,D,q;for(q=Fl(i),O=null,d=!1,T=0,D=Uc(q.a).i;T<D;++T)y=v(RG(q,T,(g=v(ze(Uc(q.a),T),89),R=g.c,$e(R,90)?v(R,29):(Pn(),n0))),29),l=X1e(n,y),l.dc()||(O?(d||(d=!0,O=new ZX(O)),O.Gc(l)):O=l);return x=D4r(n,i),x.dc()?O||(Fn(),Fn(),Zo):O?(d||(O=new ZX(O)),O.Gc(x),O):x}function xG(n,i,l){var d,g,y,x,T,R;if($e(i,76))return Ko(n,i,l);for(T=null,y=null,d=v(n.g,124),x=0;x<n.i;++x)if(g=d[x],Yi(i,g.md())&&(y=g.Lk(),$e(y,102)&&v(y,19).Bb&Sc)){T=g;break}return T&&(id(n.e)&&(R=y.Jk()?Bv(n,4,y,i,null,pI(n,y,i,$e(y,102)&&(v(y,19).Bb&el)!=0),!0):Bv(n,y.tk()?2:1,y,i,y.ik(),-1,!0),l?l.nj(R):l=R),l=xG(n,T,l)),l}function GCr(n,i,l){var d,g,y,x;if(x=Iu(n.e.Dh(),i),d=v(n.g,124),al(),v(i,69).xk()){for(y=0;y<n.i;++y)if(g=d[y],x.am(g.Lk())&&Yi(g,l))return x4(n,y),!0}else if(l!=null){for(y=0;y<n.i;++y)if(g=d[y],x.am(g.Lk())&&Yi(l,g.md()))return x4(n,y),!0}else for(y=0;y<n.i;++y)if(g=d[y],x.am(g.Lk())&&g.md()==null)return x4(n,y),!0;return!1}function qCr(n,i){var l,d,g,y,x;if(i.Ug("Node and Port Label Placement and Node Sizing",1),RIt((TL(),new Gde(n,!0,!0,new $vt))),v(oe(n,(At(),au)),21).Hc((cl(),wf)))for(y=v(oe(n,(qt(),Q4)),21),g=y.Hc((Ah(),pH)),x=Vt(Ht(oe(n,rVe))),d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),30),ts(Ki(new xn(null,new Nn(l.a,16)),new Uvt),new DOt(y,g,x));i.Vg()}function HCr(n,i){var l,d,g,y,x;for(n.c==null||n.c.length<i.c.length?n.c=st(Wh,Qg,28,i.c.length,16,1):_L(n.c),n.a=new Ot,d=0,x=new me(i);x.a<x.c.c.length;)g=v(pe(x),10),g.p=d++;for(l=new Ea,y=new me(i);y.a<y.c.c.length;)g=v(pe(y),10),n.c[g.p]||(rVt(n,g),l.b==0||(Tr(l.b!=0),v(l.a.a.c,15)).gc()<n.a.c.length?IT(l,n.a):jo(l,n.a),n.a=new Ot);return l}function xjt(n){dE(n,new H_(cE(sE(lE(oE(new f_,MI),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new Ixt))),It(n,MI,_me,zt(Hje)),It(n,MI,rx,qje),It(n,MI,N4,8),It(n,MI,xme,zt(Ccn)),It(n,MI,tUe,zt(zje)),It(n,MI,nUe,zt(Gje)),It(n,MI,nq,(Qn(),!1))}function VCr(n,i){var l,d,g,y,x,T,R;if(l=i.qi(n.a),l&&(R=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),FUe)),R!=null)){for(d=new Ot,y=T4(R,"\\w"),x=0,T=y.length;x<T;++x)g=y[x],An(g,"##other")?Lt(d,"!##"+iD(n,Cd(i.qk()))):An(g,"##local")?d.c.push(null):An(g,uq)?Lt(d,iD(n,Cd(i.qk()))):jn(d.c,g);return d}return Fn(),Fn(),Zo}function Sjt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re;for(x=_E(i.c,l,d),q=new me(i.a);q.a<q.c.c.length;){for(D=v(pe(q),10),Hi(D.n,x),re=new me(D.j);re.a<re.c.c.length;)for(J=v(pe(re),12),y=new me(J.g);y.a<y.c.c.length;)for(g=v(pe(y),18),u4(g.a,x),T=v(oe(g,(qt(),Nl)),75),T&&u4(T,x),O=new me(g.b);O.a<O.c.c.length;)R=v(pe(O),72),Hi(R.n,x);Lt(n.a,D),D.a=n}}function SG(n){var i,l,d,g,y,x,T,R;if(n.d)throw _e(new Tl((Fm(Xbe),age+Xbe.k+sge)));for(n.c==(ys(),cp)&&d5(n,Ol),l=new me(n.a.a);l.a<l.c.c.length;)i=v(pe(l),194),i.e=0;for(x=new me(n.a.b);x.a<x.c.c.length;)for(y=v(pe(x),86),y.o=Ss,g=y.f.Kc();g.Ob();)d=v(g.Pb(),86),++d.d.e;for(V7r(n),R=new me(n.a.b);R.a<R.c.c.length;)T=v(pe(R),86),T.k=!0;return n}function YCr(n,i){var l,d,g,y,x,T,R,O;for(T=new OHt(n),l=new Ea,qa(l,i,l.c.b,l.c);l.b!=0;){for(d=v(l.b==0?null:(Tr(l.b!=0),cf(l,l.a.a)),113),d.d.p=1,x=new me(d.e);x.a<x.c.c.length;)g=v(pe(x),340),Zqt(T,g),O=g.d,O.d.p==0&&qa(l,O,l.c.b,l.c);for(y=new me(d.b);y.a<y.c.c.length;)g=v(pe(y),340),Zqt(T,g),R=g.c,R.d.p==0&&qa(l,R,l.c.b,l.c)}return T}function Tjt(n){var i,l,d,g,y;if(d=We(at(Et(n,(Ei(),Jcn)))),d!=1)for(DT(n,d*n.g,d*n.f),l=War(kur((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c),new vSt)),y=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!n.n&&(n.n=new vt(wl,n,1,7)),n.n),(!n.c&&(n.c=new vt(Oh,n,9,9)),n.c),l])));zr(y);)g=v(Rr(y),422),g.qh(d*g.nh(),d*g.oh()),g.ph(d*g.mh(),d*g.lh()),i=v(g.of(AWe),8),i&&(i.a*=d,i.b*=d)}function bPe(n,i,l){var d,g,y,x,T;if(x=(al(),v(i,69).xk()),tb(n.e,i)){if(i.Si()&&RJ(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0))return!1}else for(T=Iu(n.e.Dh(),i),d=v(n.g,124),y=0;y<n.i;++y)if(g=d[y],T.am(g.Lk()))return(x?Yi(g,l):l==null?g.md()==null:Yi(l,g.md()))?!1:(v(JT(n,y,x?v(l,76):zg(i,l)),76),!0);return Yr(n,x?v(l,76):zg(i,l))}function jCr(n,i,l,d,g){var y,x,T,R,O,D,q,J;for(x=new me(n.b);x.a<x.c.c.length;)for(y=v(pe(x),30),J=dz(y.a),O=J,D=0,q=O.length;D<q;++D)switch(R=O[D],v(oe(R,(qt(),Lu)),171).g){case 1:g5r(R),po(R,i),$Gt(R,!0,d);break;case 3:QTr(R),po(R,l),$Gt(R,!1,g)}for(T=new go(n.b,0);T.b<T.d.gc();)(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),30)).a.c.length==0&&ld(T)}function WCr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(re=i.length,R=re,sr(0,i.length),i.charCodeAt(0)==45?(q=-1,J=1,--re):(q=1,J=0),y=(spe(),Fen)[10],g=re/y|0,de=re%y,de!=0&&++g,T=st(Wr,vi,28,g,15,1),l=Ben[8],x=0,ae=J+(de==0?y:de),le=J;le<R;le=ae,ae=le+y)d=Nd((mo(le,ae,i.length),i.substr(le,ae-le)),Po,qi),O=(uI(),eDe(T,T,x,l)),O+=Xvr(T,x,d),T[x++]=O;D=x,n.e=q,n.d=D,n.a=T,gD(n)}function KCr(n,i){var l,d,g,y;return l=new St,d=v(Wl(Bl(new xn(null,new Nn(n.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21),g=d.gc(),d=v(Wl(Bl(new xn(null,new Nn(i.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[B4,Ql]))),21),y=d.gc(),g=g==1?1:0,y=y==1?1:0,g<y?-1:g==y?0:1}function XCr(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(T=n.i,g=Vt(Ht(oe(T,(qt(),K4)))),D=0,d=0,O=new me(n.g);O.a<O.c.c.length;)R=v(pe(O),18),x=Jo(R),y=x&&g&&Vt(Ht(oe(R,lw))),J=R.d.i,x&&y?++d:x&&!y?++D:So(J).e==T?++d:++D;for(l=new me(n.e);l.a<l.c.c.length;)i=v(pe(l),18),x=Jo(i),y=x&&g&&Vt(Ht(oe(i,lw))),q=i.c.i,x&&y?++D:x&&!y?++d:So(q).e==T?++D:++d;return D-d}function c5(n,i,l,d){this.e=n,this.k=v(oe(n,(At(),B5)),312),this.g=st(tm,gy,10,i,0,1),this.b=st(ws,kt,345,i,7,1),this.a=st(tm,gy,10,i,0,1),this.d=st(ws,kt,345,i,7,1),this.j=st(tm,gy,10,i,0,1),this.i=st(ws,kt,345,i,7,1),this.p=st(ws,kt,345,i,7,1),this.n=st(rs,kt,485,i,8,1),_U(this.n,(Qn(),!1)),this.f=st(rs,kt,485,i,8,1),_U(this.f,!0),this.o=l,this.c=d}function Cjt(n,i){var l,d,g,y,x,T;if(!i.dc())if(v(i.Xb(0),293).d==(jk(),H4))_wr(n,i);else for(d=i.Kc();d.Ob();){switch(l=v(d.Pb(),293),l.d.g){case 5:sI(n,l,Tvr(n,l));break;case 0:sI(n,l,(x=l.f-l.c+1,T=(x-1)/2|0,l.c+T));break;case 4:sI(n,l,Ogr(n,l));break;case 2:Hzt(l),sI(n,l,(y=DDe(l),y?l.c:l.f));break;case 1:Hzt(l),sI(n,l,(g=DDe(l),g?l.f:l.c))}mxr(l.a)}}function yPe(n,i,l,d){var g,y,x;return x=new oRt(i,l),n.a?d?(g=v($f(v(br(n.b,i),260)),260),++g.a,x.d=d.d,x.e=d.e,x.b=d,x.c=d,d.e?d.e.c=x:g.b=x,d.d?d.d.b=x:n.a=x,d.d=x,d.e=x):(v($f(n.e),511).b=x,x.d=n.e,n.e=x,g=v(br(n.b,i),260),g?(++g.a,y=g.c,y.c=x,x.e=y,g.c=x):(Ni(n.b,i,g=new zNe(x)),++n.c)):(n.a=n.e=x,Ni(n.b,i,new zNe(x)),++n.c),++n.d,x}function Q1e(n,i){var l,d,g,y,x;if(i.Ug("Network simplex",1),n.e.a.c.length<1){i.Vg();return}for(y=new me(n.e.a);y.a<y.c.c.length;)g=v(pe(y),125),g.e=0;for(x=n.e.a.c.length>=40,x&&UAr(n),Wkr(n),b5r(n),l=Lzt(n),d=0;l&&d<n.f;)tAr(n,l,_3r(n,l)),l=Lzt(n),++d;x&&PEr(n),n.a?N3r(n,vjt(n)):vjt(n),n.b=null,n.d=null,n.p=null,n.c=null,n.g=null,n.i=null,n.n=null,n.o=null,i.Vg()}function QCr(n,i){var l,d,g,y,x,T,R;if(!i.e){for(i.e=!0,d=i.d.a.ec().Kc();d.Ob();){if(l=v(d.Pb(),18),i.o&&i.d.a.gc()<=1){x=i.a.c,T=i.a.c+i.a.b,R=new Ct(x+(T-x)/2,i.b),pi(v(i.d.a.ec().Kc().Pb(),18).a,R);continue}if(g=v(br(i.c,l),468),g.b||g.c){FCr(n,l,i);continue}y=n.d==(H8(),vP)&&(g.d||g.e)&&H4r(n,i)&&i.d.a.gc()<=1,y?T7r(l,i):j5r(n,l,i)}i.k&&To(i.d,new pvt)}}function vPe(n,i,l,d,g,y){var x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(J=y,T=(d+g)/2+J,de=l*u.Math.cos(T),Se=l*u.Math.sin(T),Me=de-i.g/2,Ue=Se-i.f/2,Au(i,Me),ku(i,Ue),q=n.a.Eg(i),le=2*u.Math.acos(l/l+n.c),le<g-d?(re=le/q,x=(d+g-le)/2):(re=(g-d)/q,x=d),ae=E4(i),n.e&&(n.e.Fg(n.d),n.e.Gg(ae)),O=new me(ae);O.a<O.c.c.length;)R=v(pe(O),27),D=n.a.Eg(R),vPe(n,R,l+n.c,x,x+re*D,y),x+=re*D}function ZCr(n,i,l){var d;switch(d=l.q.getMonth(),i){case 5:bi(n,Te(xe(Xt,1),kt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[d]);break;case 4:bi(n,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe])[d]);break;case 3:bi(n,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[d]);break;default:Gg(n,d+1,i)}}function JCr(n,i,l,d){var g,y,x,T,R,O,D,q,J;for(R=new Ct(l,d),$s(R,v(oe(i,(Uv(),JM)),8)),J=new me(i.e);J.a<J.c.c.length;)q=v(pe(J),153),Hi(q.d,R),Lt(n.e,q);for(T=new me(i.c);T.a<T.c.c.length;){for(x=v(pe(T),290),y=new me(x.a);y.a<y.c.c.length;)g=v(pe(y),250),Hi(g.d,R);Lt(n.c,x)}for(D=new me(i.d);D.a<D.c.c.length;)O=v(pe(D),454),Hi(O.d,R),Lt(n.d,O)}function _Pe(n,i){var l,d,g,y,x,T,R,O;for(R=new me(i.j);R.a<R.c.c.length;)for(T=v(pe(R),12),g=new V1(T.b);nc(g.a)||nc(g.b);)d=v(nc(g.a)?pe(g.a):pe(g.b),18),l=d.c==T?d.d:d.c,y=l.i,i!=y&&(O=v(oe(d,(qt(),cN)),17).a,O<0&&(O=0),x=y.p,n.b[x]==0&&(d.d==l?(n.a[x]-=O+1,n.a[x]<=0&&n.c[x]>0&&pi(n.f,y)):(n.c[x]-=O+1,n.c[x]<=0&&n.a[x]>0&&pi(n.e,y))))}function Ajt(n,i,l,d){var g,y,x,T,R,O,D;for(R=new Ct(l,d),$s(R,v(oe(i,(fa(),gN)),8)),D=Ur(i.b,0);D.b!=D.d.c;)O=v(Fr(D),40),Hi(O.e,R),pi(n.b,O);for(T=v(Wl(KNe(new xn(null,new Nn(i.a,16))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15).Kc();T.Ob();){for(x=v(T.Pb(),65),y=Ur(x.a,0);y.b!=y.d.c;)g=v(Fr(y),8),g.a+=R.a,g.b+=R.b;pi(n.a,x)}}function wPe(n,i){var l,d,g,y;if(0<($e(n,16)?v(n,16).gc():Gm(n.Kc()))){if(g=i,1<g){for(--g,y=new oEt,d=n.Kc();d.Ob();)l=v(d.Pb(),40),y=Ad(Te(xe(Md,1),Yn,20,0,[y,new Mm(l)]));return wPe(y,g)}if(g<0){for(y=new lEt,d=n.Kc();d.Ob();)l=v(d.Pb(),40),y=Ad(Te(xe(Md,1),Yn,20,0,[y,new Mm(l)]));if(0<($e(y,16)?v(y,16).gc():Gm(y.Kc())))return wPe(y,g)}}return v(SX(n.Kc()),40)}function eAr(n,i,l){var d,g,y,x;for(l.Ug("Processor order nodes",2),n.b=We(at(oe(i,(pc(),Nve)))),n.a=v(oe(i,Ax),88),n.a==(ys(),cp)&&(n.a=lp,_t(i,Ax,n.a)),g=new Ea,x=Ur(i.b,0);x.b!=x.d.c;)y=v(Fr(x),40),Vt(Ht(oe(y,(fa(),p2))))&&qa(g,y,g.c.b,g.c);d=(Tr(g.b!=0),v(g.a.a.c,40)),xWt(n,d),l.fh(1),hPe(n,d,0-We(at(oe(d,(fa(),Cne))))/2,0),l.fh(1),l.Vg()}function qh(){qh=z,TN=new RT("DEFAULT_MINIMUM_SIZE",0),yH=new RT("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),Zne=new RT("COMPUTE_PADDING",2),KP=new RT("OUTSIDE_NODE_LABELS_OVERHANG",3),Jne=new RT("PORTS_OVERHANG",4),tre=new RT("UNIFORM_PORT_SPACING",5),ere=new RT("SPACE_EFFICIENT_PORT_LABELS",6),P2e=new RT("FORCE_TABULAR_NODE_LABELS",7),bH=new RT("ASYMMETRICAL",8)}function Z1e(n,i){var l,d,g,y,x,T,R,O;if(i){if(l=(y=i.Dh(),y?Cd(y).wi().si(y):null),l){for(cy(n,i,l),g=i.Dh(),R=0,O=(g.i==null&&tg(g),g.i).length;R<O;++R)T=(d=(g.i==null&&tg(g),g.i),R>=0&&R<d.length?d[R]:null),T.rk()&&!T.sk()&&($e(T,331)?J2r(n,v(T,35),i,l):(x=v(T,19),x.Bb&Sc&&uEr(n,x,i,l)));i.Vh()&&v(l,54).ei(v(i,54)._h())}return l}else return null}function tAr(n,i,l){var d,g,y;if(!i.f)throw _e(new ar("Given leave edge is no tree edge."));if(l.f)throw _e(new ar("Given enter edge is a tree edge already."));for(i.f=!1,S8e(n.p,i),l.f=!0,Es(n.p,l),d=l.e.e-l.d.e-l.a,N1e(n,l.e,i)||(d=-d),y=new me(n.e.a);y.a<y.c.c.length;)g=v(pe(y),125),N1e(n,g,i)||(g.e+=d);n.j=1,_L(n.c),_Me(n,v(pe(new me(n.e.a)),125)),LWt(n)}function kjt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re;if(jgr(n,i,l),y=i[l],re=d?(Bt(),cr):(Bt(),gr),Ksr(i.length,l,d)){for(g=i[d?l-1:l+1],NOe(n,g,d?(ll(),_u):(ll(),Rh)),R=y,D=0,J=R.length;D<J;++D)x=R[D],iDe(n,x,re);for(NOe(n,y,d?(ll(),Rh):(ll(),_u)),T=g,O=0,q=T.length;O<q;++O)x=T[O],x.e||iDe(n,x,Xz(re))}else for(T=y,O=0,q=T.length;O<q;++O)x=T[O],iDe(n,x,re);return!1}function nAr(n,i,l,d,g){var y,x,T,R,O,D,q;for(Fn(),us(n,new pSt),T=new go(n,0),q=new Ot,y=0;T.b<T.d.gc();)x=(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),163)),q.c.length!=0&&lh(x)*od(x)>y*2?(D=new eZ(q),O=lh(x)/od(x),R=vpe(D,i,new ek,l,d,g,O),Hi(i1(D.e),R),q.c.length=0,y=0,jn(q.c,D),jn(q.c,x),y=lh(D)*od(D)+lh(x)*od(x)):(jn(q.c,x),y+=lh(x)*od(x));return q}function Rjt(n,i){var l,d,g,y,x,T;if(T=v(oe(i,(qt(),Qa)),101),T==(co(),sm)||T==su)for(g=new Ct(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a).b,x=new me(n.a);x.a<x.c.c.length;)y=v(pe(x),10),y.k==(lr(),hs)&&(l=v(oe(y,(At(),vc)),64),!(l!=(Bt(),gr)&&l!=cr)&&(d=We(at(oe(y,bx))),T==sm&&(d*=g),y.n.b=d-v(oe(y,Ex),8).b,_Z(y,!1,!0)))}function rAr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;if(id(n.e)){if(i!=l&&(g=v(n.g,124),re=g[l],x=re.Lk(),tb(n.e,x))){for(ae=Iu(n.e.Dh(),x),R=-1,T=-1,d=0,O=0,q=i>l?i:l;O<=q;++O)O==l?T=d++:(y=g[O],D=ae.am(y.Lk()),O==i&&(R=O==q&&!D?d-1:d),D&&++d);return J=v($D(n,i,l),76),T!=R&&$R(n,new vz(n.e,7,x,Nt(T),re.md(),R)),J}}else return v(L1e(n,i,l),76);return v($D(n,i,l),76)}function iAr(n,i){var l,d,g,y,x,T,R;for(i.Ug("Port order processing",1),R=v(oe(n,(qt(),iVe)),430),d=new me(n.b);d.a<d.c.c.length;)for(l=v(pe(d),30),y=new me(l.a);y.a<y.c.c.length;)g=v(pe(y),10),x=v(oe(g,Qa),101),T=g.j,x==(co(),yw)||x==sm||x==su?(Fn(),us(T,hqe)):x!=up&&x!=y2&&(Fn(),us(T,drn),u_r(T),R==(Az(),fve)&&us(T,hrn)),g.i=!0,bMe(g);i.Vg()}function aAr(n){var i,l,d,g,y,x,T,R;for(R=new Br,i=new Rue,x=n.Kc();x.Ob();)g=v(x.Pb(),10),T=yE(bU(new v_,g),i),yu(R.f,g,T);for(y=n.Kc();y.Ob();)for(g=v(y.Pb(),10),d=new yr(_r(os(g).a.Kc(),new S));zr(d);)l=v(Rr(d),18),!Jo(l)&&C0(m0(g0(p0(b0(new Bf,u.Math.max(1,v(oe(l,(qt(),aVe)),17).a)),1),v(br(R,l.c.i),125)),v(br(R,l.d.i),125)));return i}function Ijt(){Ijt=z,lon=yi(new ms,(Mo(),ru),(qo(),XGe)),YVe=yi(new ms,qc,yte),uon=ch(yi(new ms,qc,Cte),Gl,Tte),oon=ch(yi(yi(new ms,qc,VGe),ru,YGe),Gl,jGe),hon=Jp(Jp(RL(ch(yi(new ms,N0,Ite),Gl,Rte),ru),kte),Nte),con=ch(new ms,Gl,QGe),aon=ch(yi(yi(yi(new ms,em,_te),ru,Ete),ru,jI),Gl,wte),son=ch(yi(yi(new ms,ru,jI),ru,bte),Gl,mte)}function sAr(n,i,l,d,g,y){var x,T,R,O,D,q,J;for(O=LUt(i)-LUt(n),x=yHt(i,O),R=Su(0,0,0);O>=0&&(T=J_r(n,x),!(T&&(O<22?R.l|=1<<O:O<44?R.m|=1<<O-22:R.h|=1<<O-44,n.l==0&&n.m==0&&n.h==0)));)D=x.m,q=x.h,J=x.l,x.h=q>>>1,x.m=D>>>1|(q&1)<<21,x.l=J>>>1|(D&1)<<21,--O;return l&&u0e(R),y&&(d?(i2=$8(n),g&&(i2=pUt(i2,(E8(),eze)))):i2=Su(n.l,n.m,n.h)),R}function oAr(n,i){var l,d,g,y,x,T,R,O,D,q;for(O=n.e[i.c.p][i.p]+1,R=i.c.a.c.length+1,T=new me(n.a);T.a<T.c.c.length;){for(x=v(pe(T),12),q=0,y=0,g=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(x),new QA(x)])));zr(g);)d=v(Rr(g),12),d.i.c==i.c&&(q+=zsr(n,d.i)+1,++y);l=q/y,D=x.j,D==(Bt(),gr)?l<O?n.f[x.p]=n.c-l:n.f[x.p]=n.b+(R-l):D==cr&&(l<O?n.f[x.p]=n.b+l:n.f[x.p]=n.c-(R-l))}}function Nd(n,i,l){var d,g,y,x,T;if(n==null)throw _e(new Gp(Ku));for(y=n.length,x=y>0&&(sr(0,n.length),n.charCodeAt(0)==45||(sr(0,n.length),n.charCodeAt(0)==43))?1:0,d=x;d<y;d++)if(uGt((sr(d,n.length),n.charCodeAt(d)))==-1)throw _e(new Gp(nx+n+'"'));if(T=parseInt(n,10),g=T<i,isNaN(T))throw _e(new Gp(nx+n+'"'));if(g||T>l)throw _e(new Gp(nx+n+'"'));return T}function lAr(n){var i,l,d,g,y,x,T;for(x=new Ea,y=new me(n.a);y.a<y.c.c.length;)g=v(pe(y),118),yue(g,g.f.c.length),yK(g,g.k.c.length),g.i==0&&(g.o=0,qa(x,g,x.c.b,x.c));for(;x.b!=0;)for(g=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),118),d=g.o+1,l=new me(g.f);l.a<l.c.c.length;)i=v(pe(l),132),T=i.a,s7e(T,u.Math.max(T.o,d)),yK(T,T.i-1),T.i==0&&qa(x,T,x.c.b,x.c)}function cAr(n){var i,l,d,g,y,x,T,R;for(x=new me(n);x.a<x.c.c.length;){for(y=v(pe(x),74),d=zl(v(ze((!y.b&&(y.b=new Gn(Lr,y,4,7)),y.b),0),84)),T=d.i,R=d.j,g=v(ze((!y.a&&(y.a=new vt(xa,y,6,6)),y.a),0),166),PU(g,g.j+T,g.k+R),MU(g,g.b+T,g.c+R),l=new mr((!g.a&&(g.a=new gs(Ud,g,5)),g.a));l.e!=l.i.gc();)i=v(wr(l),377),Fhe(i,i.a+T,i.b+R);A9e(v(Et(y,(Ei(),kx)),75),T,R)}}function fI(n){var i;switch(n){case 100:return f5(YM,!0);case 68:return f5(YM,!1);case 119:return f5(tbe,!0);case 87:return f5(tbe,!1);case 115:return f5(nbe,!0);case 83:return f5(nbe,!1);case 99:return f5(rbe,!0);case 67:return f5(rbe,!1);case 105:return f5(ibe,!0);case 73:return f5(ibe,!1);default:throw _e(new tc((i=n,len+i.toString(16))))}}function uAr(n){var i,l,d,g,y;switch(g=v(Yt(n.a,0),10),i=new Jm(n),Lt(n.a,i),i.o.a=u.Math.max(1,g.o.a),i.o.b=u.Math.max(1,g.o.b),i.n.a=g.n.a,i.n.b=g.n.b,v(oe(g,(At(),vc)),64).g){case 4:i.n.a+=2;break;case 1:i.n.b+=2;break;case 2:i.n.a-=2;break;case 3:i.n.b-=2}return d=new zc,rc(d,i),l=new NE,y=v(Yt(g.j,0),12),Uo(l,y),lo(l,d),Hi(i1(d.n),y.n),Hi(i1(d.a),y.a),i}function Njt(n,i,l,d,g){l&&(!d||(n.c-n.b&n.a.length-1)>1)&&i==1&&v(n.a[n.b],10).k==(lr(),Pc)?Qk(v(n.a[n.b],10),(Id(),im)):d&&(!l||(n.c-n.b&n.a.length-1)>1)&&i==1&&v(n.a[n.c-1&n.a.length-1],10).k==(lr(),Pc)?Qk(v(n.a[n.c-1&n.a.length-1],10),(Id(),m2)):(n.c-n.b&n.a.length-1)==2?(Qk(v(ID(n),10),(Id(),im)),Qk(v(ID(n),10),m2)):F3r(n,g),gOe(n)}function hAr(n,i,l){var d,g,y,x,T;for(y=0,g=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));g.e!=g.i.gc();)d=v(wr(g),27),x="",(!d.n&&(d.n=new vt(wl,d,1,7)),d.n).i==0||(x=v(ze((!d.n&&(d.n=new vt(wl,d,1,7)),d.n),0),135).a),T=new h0e(y++,i,x),Ul(T,d),_t(T,(fa(),AP),d),T.e.b=d.j+d.f/2,T.f.a=u.Math.max(d.g,1),T.e.a=d.i+d.g/2,T.f.b=u.Math.max(d.f,1),pi(i.b,T),yu(l.f,d,T)}function dAr(n){var i,l,d,g,y;d=v(oe(n,(At(),Ji)),27),y=v(Et(d,(qt(),uw)),181).Hc((ud(),vw)),n.e||(g=v(oe(n,au),21),i=new Ct(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),g.Hc((cl(),wf))?(sa(d,Qa,(co(),su)),JE(d,i.a,i.b,!1,!0)):Vt(Ht(Et(d,Xye)))||JE(d,i.a,i.b,!0,!0)),y?sa(d,uw,bn(vw)):sa(d,uw,(l=v(n1(WP),9),new nf(l,v(v0(l,l.length),9),0)))}function EPe(n,i,l){var d,g,y,x;if(i[0]>=n.length)return l.o=0,!0;switch(Do(n,i[0])){case 43:g=1;break;case 45:g=-1;break;default:return l.o=0,!0}if(++i[0],y=i[0],x=hJ(n,i),x==0&&i[0]==y)return!1;if(i[0]<n.length&&Do(n,i[0])==58){if(d=x*60,++i[0],y=i[0],x=hJ(n,i),x==0&&i[0]==y)return!1;d+=x}else d=x,d<24&&i[0]-y<=2?d*=60:d=d%100+(d/100|0)*60;return d*=g,l.o=-d,!0}function fAr(n){var i,l,d,g,y,x,T,R,O;for(x=new Ot,d=new yr(_r(os(n.b).a.Kc(),new S));zr(d);)l=v(Rr(d),18),Jo(l)&&Lt(x,new ZPt(l,MBt(n,l.c),MBt(n,l.d)));for(O=(y=new Dm(n.e).a.vc().Kc(),new FS(y));O.a.Ob();)T=(i=v(O.a.Pb(),44),v(i.md(),113)),T.d.p=0;for(R=(g=new Dm(n.e).a.vc().Kc(),new FS(g));R.a.Ob();)T=(i=v(R.a.Pb(),44),v(i.md(),113)),T.d.p==0&&Lt(n.d,YCr(n,T))}function pAr(n){var i,l,d,g,y,x,T;for(y=z1(n),g=new mr((!n.e&&(n.e=new Gn(ss,n,7,4)),n.e));g.e!=g.i.gc();)if(d=v(wr(g),74),T=zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84)),!l4(T,y))return!0;for(l=new mr((!n.d&&(n.d=new Gn(ss,n,8,5)),n.d));l.e!=l.i.gc();)if(i=v(wr(l),74),x=zl(v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84)),!l4(x,y))return!0;return!1}function gAr(n,i){var l,d,g,y,x,T,R,O,D;for(x=new me(i.b);x.a<x.c.c.length;)for(y=v(pe(x),30),O=new me(y.a);O.a<O.c.c.length;){for(R=v(pe(O),10),D=new Ot,T=0,d=new yr(_r(Hs(R).a.Kc(),new S));zr(d);)l=v(Rr(d),18),!(Jo(l)||!Jo(l)&&l.c.i.c==l.d.i.c)&&(g=v(oe(l,(qt(),T6)),17).a,g>T&&(T=g,D.c.length=0),g==T&&Lt(D,new Ms(l.c.i,l)));Fn(),us(D,n.c),EE(n.b,R.p,D)}}function mAr(n,i){var l,d,g,y,x,T,R,O,D;for(x=new me(i.b);x.a<x.c.c.length;)for(y=v(pe(x),30),O=new me(y.a);O.a<O.c.c.length;){for(R=v(pe(O),10),D=new Ot,T=0,d=new yr(_r(os(R).a.Kc(),new S));zr(d);)l=v(Rr(d),18),!(Jo(l)||!Jo(l)&&l.c.i.c==l.d.i.c)&&(g=v(oe(l,(qt(),T6)),17).a,g>T&&(T=g,D.c.length=0),g==T&&Lt(D,new Ms(l.d.i,l)));Fn(),us(D,n.c),EE(n.f,R.p,D)}}function bAr(n,i){var l,d,g,y,x,T,R,O;if(O=Ht(oe(i,(pc(),Yon))),O==null||(hr(O),O)){for(q4r(n,i),g=new Ot,R=Ur(i.b,0);R.b!=R.d.c;)x=v(Fr(R),40),l=cMe(n,x,null),l&&(Ul(l,i),jn(g.c,l));if(n.a=null,n.b=null,g.c.length>1)for(d=new me(g);d.a<d.c.c.length;)for(l=v(pe(d),121),y=0,T=Ur(l.b,0);T.b!=T.d.c;)x=v(Fr(T),40),x.g=y++;return g}return H1(Te(xe(X8r,1),FXt,121,0,[i]))}function yAr(n){var i,l,d,g,y,x,T,R;for(R=new ah,i=Ur(n,0),T=null,l=v(Fr(i),8),g=v(Fr(i),8);i.b!=i.d.c;)T=l,l=g,g=v(Fr(i),8),y=$Ft($s(new Ct(T.a,T.b),l)),x=$Ft($s(new Ct(g.a,g.b),l)),d=10,d=u.Math.min(d,u.Math.abs(y.a+y.b)/2),d=u.Math.min(d,u.Math.abs(x.a+x.b)/2),y.a=ZU(y.a)*d,y.b=ZU(y.b)*d,x.a=ZU(x.a)*d,x.b=ZU(x.b)*d,pi(R,Hi(y,l)),pi(R,Hi(x,l));return R}function vAr(n,i,l){var d,g,y,x,T,R;if(l.Ug("Minimize Crossings "+n.a,1),d=i.b.c.length==0||!VR(Ki(new xn(null,new Nn(i.b,16)),new PR(new dwt))).Bd((w_(),p6)),R=i.b.c.length==1&&v(Yt(i.b,0),30).a.c.length==1,y=Ze(oe(i,(qt(),W4)))===Ze((Km(),Cy)),d||R&&!y){l.Vg();return}g=c5r(n,i),x=(T=v(gf(g,0),219),T.c.kg()?T.c.eg()?new rAt(n):new iAt(n):new nAt(n)),Qbr(g,x),Ryr(n),l.Vg()}function Od(n,i,l,d){var g,y,x,T,R;return x=n.Ph(),R=n.Jh(),g=null,R?i&&!(K1e(n,i,l).Bb&el)?(d=Ko(R.El(),n,d),n.di(null),g=i.Qh()):R=null:(x&&(R=x.Qh()),i&&(g=i.Qh())),R!=g&&R&&R.Il(n),T=n.Fh(),n.Bh(i,l),R!=g&&g&&g.Hl(n),n.vh()&&n.wh()&&(x&&T>=0&&T!=l&&(y=new js(n,1,T,x,null),d?d.nj(y):d=y),l>=0&&(y=new js(n,1,l,T==l?x:null,i),d?d.nj(y):d=y)),d}function Ojt(n){var i,l,d;if(n.b==null){if(d=new qb,n.i!=null&&(bl(d,n.i),d.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(Pdr(n.i)||(d.a+="//"),bl(d,n.a)),n.d!=null&&(d.a+="/",bl(d,n.d)),n.f&16&&(d.a+="/"),i=0,l=n.j.length;i<l;i++)i!=0&&(d.a+="/"),bl(d,n.j[i]);n.g!=null&&(d.a+="?",bl(d,n.g))}else bl(d,n.a);n.e!=null&&(d.a+="#",bl(d,n.e)),n.b=d.a}return n.b}function _Ar(n,i){var l,d,g,y,x,T;for(g=new me(i.a);g.a<g.c.c.length;)d=v(pe(g),10),y=oe(d,(At(),Ji)),$e(y,12)&&(x=v(y,12),T=Xjt(i,d,x.o.a,x.o.b),x.n.a=T.a,x.n.b=T.b,Bs(x,v(oe(d,vc),64)));l=new Ct(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a),v(oe(i,(At(),au)),21).Hc((cl(),wf))?(_t(n,(qt(),Qa),(co(),su)),v(oe(So(n),au),21).Fc(iN),FWt(n,l,!1)):FWt(n,l,!0)}function wAr(n,i,l,d,g){var y,x,T,R;y=new Jm(n),g_(y,(lr(),iu)),_t(y,(qt(),Qa),(co(),su)),_t(y,(At(),Ji),i.c.i),x=new zc,_t(x,Ji,i.c),Bs(x,g),rc(x,y),_t(i.c,kh,y),T=new Jm(n),g_(T,iu),_t(T,Qa,su),_t(T,Ji,i.d.i),R=new zc,_t(R,Ji,i.d),Bs(R,g),rc(R,T),_t(i.d,kh,T),Uo(i,x),lo(i,R),n4(0,l.c.length),OL(l.c,0,y),jn(d.c,T),_t(y,jte,Nt(1)),_t(T,jte,Nt(1))}function EAr(n,i,l,d){var g,y,x,T,R;if(R=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),g=ti(Go(Wg,Ug(ti(Go(l==null?0:ma(l),Kg)),15))),T=CD(n,i,R),x=TD(n,l,g),T&&g==T.a&&Wp(l,T.g))return l;if(x)throw _e(new ar("key already present: "+l));return T&&s5(n,T),x&&s5(n,x),y=new uQ(l,g,i,R),pG(n,y,x),x&&(x.e=null,x.c=null),T&&(T.e=null,T.c=null),kqt(n),T?T.g:null}function Ljt(n,i,l){var d,g,y,x,T;for(y=0;y<i;y++){for(d=0,T=y+1;T<i;T++)d=zo(zo(Go(Us(n[y],ul),Us(n[T],ul)),Us(l[y+T],ul)),Us(ti(d),ul)),l[y+T]=ti(d),d=Dv(d,32);l[y+i]=ti(d)}for(Mmr(l,l,i<<1),d=0,g=0,x=0;g<i;++g,x++)d=zo(zo(Go(Us(n[g],ul),Us(n[g],ul)),Us(l[x],ul)),Us(ti(d),ul)),l[x]=ti(d),d=Dv(d,32),++x,d=zo(d,Us(l[x],ul)),l[x]=ti(d),d=Dv(d,32);return l}function Djt(n,i,l){var d,g,y,x,T,R,O,D;if(!b8(i)){for(R=We(at(p4(l.c,(qt(),pP)))),O=v(p4(l.c,$q),140),!O&&(O=new mL),d=l.a,g=null,T=i.Kc();T.Ob();)x=v(T.Pb(),12),D=0,g?(D=R,D+=g.o.b):D=O.d,y=yE(bU(new v_,x),n.f),Ni(n.k,x,y),C0(m0(g0(p0(b0(new Bf,0),Ps(u.Math.ceil(D))),d),y)),g=x,d=y;C0(m0(g0(p0(b0(new Bf,0),Ps(u.Math.ceil(O.a+g.o.b))),d),l.d))}}function xAr(n,i,l,d,g,y,x,T){var R,O,D,q,J,re;return re=!1,J=y-l.s,D=l.t-i.f+(O=dM(l,J,!1),O.a),d.g+T>J?!1:(q=(R=dM(d,J,!1),R.a),D+T+q<=i.b&&(_z(l,y-l.s),l.c=!0,_z(d,y-l.s),nG(d,l.s,l.t+l.d+T),d.k=!0,I9e(l.q,d),re=!0,g&&(aZ(i,d),d.j=i,n.c.length>x&&(aG(($n(x,n.c.length),v(n.c[x],186)),d),($n(x,n.c.length),v(n.c[x],186)).a.c.length==0&&Jb(n,x)))),re)}function SAr(n,i){var l,d,g,y,x,T;if(i.Ug("Partition midprocessing",1),g=new OE,ts(Ki(new xn(null,new Nn(n.a,16)),new a2t),new CCt(g)),g.d!=0){for(T=v(Wl(ZNe((y=g.i,new xn(null,(y||(g.i=new $T(g,g.c))).Nc()))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),d=T.Kc(),l=v(d.Pb(),17);d.Ob();)x=v(d.Pb(),17),bTr(v(Zi(g,l),21),v(Zi(g,x),21)),l=x;i.Vg()}}function Mjt(n,i,l){var d,g,y,x,T,R,O,D;if(i.p==0){for(i.p=1,x=l,x||(g=new Ot,y=(d=v(n1(tl),9),new nf(d,v(v0(d,d.length),9),0)),x=new Ms(g,y)),v(x.a,15).Fc(i),i.k==(lr(),hs)&&v(x.b,21).Fc(v(oe(i,(At(),vc)),64)),R=new me(i.j);R.a<R.c.c.length;)for(T=v(pe(R),12),D=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(T),new QA(T)])));zr(D);)O=v(Rr(D),12),Mjt(n,O.i,x);return x}return null}function lM(n,i){var l,d,g,y,x;if(n.Ab){if(n.Ab){if(x=n.Ab.i,x>0){if(g=v(n.Ab.g,2033),i==null){for(y=0;y<x;++y)if(l=g[y],l.d==null)return l}else for(y=0;y<x;++y)if(l=g[y],An(i,l.d))return l}}else if(i==null){for(d=new mr(n.Ab);d.e!=d.i.gc();)if(l=v(wr(d),598),l.d==null)return l}else for(d=new mr(n.Ab);d.e!=d.i.gc();)if(l=v(wr(d),598),An(i,l.d))return l}return null}function TAr(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;re=F1r(n,P9e(i),g),_9e(re,zm(g,ug)),h=null,ae=g,le=bD(ae,DZt),de=new nkt(re),Pxr(de.a,le),Se=bD(ae,"endPoint"),Me=new skt(re),Mxr(Me.a,Se),Ue=ME(ae,Ree),je=new ckt(re),xEr(je.a,Ue),q=zm(g,vUe),y=new M8t(n,re),llr(y.a,y.b,q),J=zm(g,yUe),x=new P8t(n,re),clr(x.a,x.b,J),O=ME(g,wUe),T=new B8t(l,re),awr(T.b,T.a,O),D=ME(g,_Ue),R=new F8t(d,re),swr(R.b,R.a,D)}function xPe(n,i,l){var d,g,y,x,T;switch(T=null,i.g){case 1:for(g=new me(n.j);g.a<g.c.c.length;)if(d=v(pe(g),12),Vt(Ht(oe(d,(At(),Dye)))))return d;T=new zc,_t(T,(At(),Dye),(Qn(),!0));break;case 2:for(x=new me(n.j);x.a<x.c.c.length;)if(y=v(pe(x),12),Vt(Ht(oe(y,(At(),Pye)))))return y;T=new zc,_t(T,(At(),Pye),(Qn(),!0))}return T&&(rc(T,n),Bs(T,l),l_r(T.n,n.o,l)),T}function Pjt(n,i){var l,d,g,y,x,T;for(T=-1,x=new Ea,d=new V1(n.b);nc(d.a)||nc(d.b);){for(l=v(nc(d.a)?pe(d.a):pe(d.b),18),T=u.Math.max(T,We(at(oe(l,(qt(),vy))))),l.c==n?ts(Ki(new xn(null,new Nn(l.b,16)),new tvt),new dCt(x)):ts(Ki(new xn(null,new Nn(l.b,16)),new nvt),new fCt(x)),y=Ur(x,0);y.b!=y.d.c;)g=v(Fr(y),72),ya(g,(At(),_6))||_t(g,_6,l);xs(i,x),xd(x)}return T}function QE(n,i,l,d,g){var y,x,T,R,O;T=g?d.b:d.a,!r1(n.a,d)&&(O=T>l.s&&T<l.c,R=!1,l.e.b!=0&&l.j.b!=0&&(R=R|(u.Math.abs(T-We(at(e8(l.e))))<sg&&u.Math.abs(T-We(at(e8(l.j))))<sg),R=R|(u.Math.abs(T-We(at(y0(l.e))))<sg&&u.Math.abs(T-We(at(y0(l.j))))<sg)),(O||R)&&(x=v(oe(i,(qt(),Nl)),75),x||(x=new ah,_t(i,Nl,x)),y=new Wo(d),qa(x,y,x.c.b,x.c),Es(n.a,y)))}function CAr(n,i,l,d){var g,y,x,T,R,O,D;if(A4r(n,i,l,d))return!0;for(x=new me(i.f);x.a<x.c.c.length;){switch(y=v(pe(x),334),T=!1,R=n.j-i.j+l,O=R+i.o,D=n.k-i.k+d,g=D+i.p,y.a.g){case 0:T=g0e(n,R+y.b.a,0,R+y.c.a,D-1);break;case 1:T=g0e(n,O,D+y.b.a,n.o-1,D+y.c.a);break;case 2:T=g0e(n,R+y.b.a,g,R+y.c.a,n.p-1);break;default:T=g0e(n,0,D+y.b.a,R-1,D+y.c.a)}if(T)return!0}return!1}function AAr(n,i,l){var d,g,y,x,T,R,O,D,q;for(l.Ug("Processor set coordinates",1),n.a=i.b.b==0?1:i.b.b,O=null,d=Ur(i.b,0);!O&&d.b!=d.d.c;)q=v(Fr(d),40),Vt(Ht(oe(q,(fa(),p2))))&&(O=q,R=q.e,R.a=v(oe(q,jq),17).a,R.b=v(oe(q,Wq),17).a);T=a0e(O),D=1;do T=Ixr((g=T,l.eh(D),g)),D=T.b/n.a|0;while(T.b!=0);for(x=Ur(i.b,0);x.b!=x.d.c;)y=v(Fr(x),40),$s(y.e,new Ct(y.f.a/2,y.f.b/2));l.Vg()}function kAr(n,i,l){var d,g,y,x,T,R,O,D;for(l.Ug(kQt,1),xh(n.b),xh(n.a),T=null,y=Ur(i.b,0);!T&&y.b!=y.d.c;)O=v(Fr(y),40),Vt(Ht(oe(O,(fa(),p2))))&&(T=O);for(R=new Ea,qa(R,T,R.c.b,R.c),dKt(n,R),D=Ur(i.b,0);D.b!=D.d.c;)O=v(Fr(D),40),x=ai(oe(O,(fa(),CP))),g=Qc(n.b,x)!=null?v(Qc(n.b,x),17).a:0,_t(O,Tve,Nt(g)),d=1+(Qc(n.a,x)!=null?v(Qc(n.a,x),17).a:0),_t(O,oYe,Nt(d));l.Vg()}function Bjt(n){dE(n,new H_(cE(sE(lE(oE(new f_,ox),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new lSt))),It(n,ox,rx,rWe),It(n,ox,N4,15),It(n,ox,YG,Nt(0)),It(n,ox,iUe,zt(eWe)),It(n,ox,y5,zt($cn)),It(n,ox,o6,zt(Ucn)),It(n,ox,s6,QQt),It(n,ox,SM,zt(tWe)),It(n,ox,l6,zt(nWe)),It(n,ox,aUe,zt(b2e)),It(n,ox,gee,zt(Fcn))}function Fjt(n,i){var l,d,g,y,x,T,R,O,D;if(g=n.i,x=g.o.a,y=g.o.b,x<=0&&y<=0)return Bt(),lc;switch(O=n.n.a,D=n.n.b,T=n.o.a,l=n.o.b,i.g){case 2:case 1:if(O<0)return Bt(),cr;if(O+T>x)return Bt(),gr;break;case 4:case 3:if(D<0)return Bt(),or;if(D+l>y)return Bt(),Mr}return R=(O+T/2)/x,d=(D+l/2)/y,R+d<=1&&R-d<=0?(Bt(),cr):R+d>=1&&R-d>=0?(Bt(),gr):d<.5?(Bt(),or):(Bt(),Mr)}function RAr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(l=!1,D=We(at(oe(i,(qt(),Sx)))),ae=Zv*D,g=new me(i.b);g.a<g.c.c.length;)for(d=v(pe(g),30),O=new me(d.a),y=v(pe(O),10),q=uNe(n.a[y.p]);O.a<O.c.c.length;)T=v(pe(O),10),J=uNe(n.a[T.p]),q!=J&&(re=PT(n.b,y,T),x=y.n.b+y.o.b+y.d.a+q.a+re,R=T.n.b-T.d.d+J.a,x>R+ae&&(le=q.g+J.g,J.a=(J.g*J.a+q.g*q.a)/le,J.g=le,q.f=J,l=!0)),y=T,q=J;return l}function $jt(n,i,l,d,g,y,x){var T,R,O,D,q,J;for(J=new fk,O=i.Kc();O.Ob();)for(T=v(O.Pb(),853),q=new me(T.Rf());q.a<q.c.c.length;)D=v(pe(q),187),Ze(D.of((Ei(),E2e)))===Ze((W1(),EN))&&(bjt(J,D,!1,d,g,y,x),QD(n,J));for(R=l.Kc();R.Ob();)for(T=v(R.Pb(),853),q=new me(T.Rf());q.a<q.c.c.length;)D=v(pe(q),187),Ze(D.of((Ei(),E2e)))===Ze((W1(),s3))&&(bjt(J,D,!0,d,g,y,x),QD(n,J))}function IAr(n,i,l){var d,g,y,x,T,R,O;for(x=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));x.e!=x.i.gc();)for(y=v(wr(x),27),g=new yr(_r(eb(y).a.Kc(),new S));zr(g);)d=v(Rr(g),74),!tM(d)&&!tM(d)&&!KE(d)&&(R=v(Pl(ol(l.f,y)),40),O=v(br(l,zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84))),40),R&&O&&(T=new $Ne(R,O),_t(T,(fa(),AP),d),Ul(T,d),pi(R.d,T),pi(O.b,T),pi(i.a,T)))}function NAr(n,i){var l,d,g,y,x,T,R,O;for(R=v(v(Zi(n.r,i),21),87).Kc();R.Ob();)T=v(R.Pb(),117),g=T.c?a9t(T.c):0,g>0?T.a?(O=T.b.Mf().b,g>O&&(n.v||T.c.d.c.length==1?(x=(g-O)/2,T.d.d=x,T.d.a=x):(l=v(Yt(T.c.d,0),187).Mf().b,d=(l-O)/2,T.d.d=u.Math.max(0,d),T.d.a=g-d-O))):T.d.a=n.t+g:aD(n.u)&&(y=VDe(T.b),y.d<0&&(T.d.d=-y.d),y.d+y.a>T.b.Mf().b&&(T.d.a=y.d+y.a-T.b.Mf().b))}function A0(){A0=z,g6=new fo((Ei(),lH),Nt(1)),hte=new fo(bw,80),ynn=new fo(LWe,5),lnn=new fo(X5,kI),mnn=new fo(N2e,Nt(1)),bnn=new fo(O2e,(Qn(),!0)),oGe=new bE(50),pnn=new fo(Ty,oGe),iGe=sH,lGe=UP,cnn=new fo(w2e,!1),sGe=oH,dnn=i3,fnn=g2,hnn=mw,unn=eC,gnn=a3,aGe=(tMe(),tnn),qbe=ann,ute=enn,Gbe=nnn,cGe=inn,wnn=_N,Enn=Kne,_nn=cH,vnn=Wne,uGe=(Uk(),l3),new fo(N6,uGe)}function OAr(n,i){var l;switch(kz(n)){case 6:return ro(i);case 7:return VS(i);case 8:return HS(i);case 3:return Array.isArray(i)&&(l=kz(i),!(l>=14&&l<=16));case 11:return i!=null&&typeof i===xpe;case 12:return i!=null&&(typeof i===NG||typeof i==xpe);case 0:return W0e(i,n.__elementTypeId$);case 2:return kde(i)&&i.Tm!==Z;case 1:return kde(i)&&i.Tm!==Z||W0e(i,n.__elementTypeId$);default:return!0}}function LAr(n){var i,l,d,g;d=n.o,WS(),n.A.dc()||Yi(n.A,jze)?g=d.a:(n.D?g=u.Math.max(d.a,JD(n.f)):g=JD(n.f),n.A.Hc((ud(),gH))&&!n.B.Hc((qh(),KP))&&(g=u.Math.max(g,JD(v(yl(n.p,(Bt(),or)),252))),g=u.Math.max(g,JD(v(yl(n.p,Mr),252)))),i=eUt(n),i&&(g=u.Math.max(g,i.a))),Vt(Ht(n.e.Tf().of((Ei(),i3))))?d.a=u.Math.max(d.a,g):d.a=g,l=n.f.i,l.c=0,l.b=g,tpe(n.f)}function Ujt(n,i){var l,d,g,y;return d=u.Math.min(u.Math.abs(n.c-(i.c+i.b)),u.Math.abs(n.c+n.b-i.c)),y=u.Math.min(u.Math.abs(n.d-(i.d+i.a)),u.Math.abs(n.d+n.a-i.d)),l=u.Math.abs(n.c+n.b/2-(i.c+i.b/2)),l>n.b/2+i.b/2||(g=u.Math.abs(n.d+n.a/2-(i.d+i.a/2)),g>n.a/2+i.a/2)?1:l==0&&g==0?0:l==0?y/g+1:g==0?d/l+1:u.Math.min(d/l,y/g)+1}function DAr(n,i){var l,d,g,y,x,T,R;for(y=0,T=0,R=0,g=new me(n.f.e);g.a<g.c.c.length;)d=v(pe(g),153),i!=d&&(x=n.i[i.a][d.a],y+=x,l=$v(i.d,d.d),l>0&&n.d!=(wD(),Ybe)&&(T+=x*(d.d.a+n.a[i.a][d.a]*(i.d.a-d.d.a)/l)),l>0&&n.d!=(wD(),Hbe)&&(R+=x*(d.d.b+n.a[i.a][d.a]*(i.d.b-d.d.b)/l)));switch(n.d.g){case 1:return new Ct(T/y,i.d.b);case 2:return new Ct(i.d.a,R/y);default:return new Ct(T/y,R/y)}}function zjt(n){var i,l,d,g,y,x;for(l=(!n.a&&(n.a=new gs(Ud,n,5)),n.a).i+2,x=new gu(l),Lt(x,new Ct(n.j,n.k)),ts(new xn(null,(!n.a&&(n.a=new gs(Ud,n,5)),new Nn(n.a,16))),new ZAt(x)),Lt(x,new Ct(n.b,n.c)),i=1;i<x.c.length-1;)d=($n(i-1,x.c.length),v(x.c[i-1],8)),g=($n(i,x.c.length),v(x.c[i],8)),y=($n(i+1,x.c.length),v(x.c[i+1],8)),d.a==g.a&&g.a==y.a||d.b==g.b&&g.b==y.b?Jb(x,i):++i;return x}function Gjt(n,i){G8();var l,d,g,y,x;if(x=v(oe(n.i,(qt(),Qa)),101),y=n.j.g-i.j.g,y!=0||!(x==(co(),yw)||x==sm||x==su))return 0;if(x==(co(),yw)&&(l=v(oe(n,_y),17),d=v(oe(i,_y),17),l&&d&&(g=l.a-d.a,g!=0)))return g;switch(n.j.g){case 1:return ha(n.n.a,i.n.a);case 2:return ha(n.n.b,i.n.b);case 3:return ha(i.n.a,n.n.a);case 4:return ha(i.n.b,n.n.b);default:throw _e(new Tl(YBe))}}function qjt(n,i){var l,d,g,y,x,T,R;for(l=bNt(SRt(ERt(xRt(new F7e,i),new vQ(i.e)),grn),n.a),i.j.c.length==0||QBt(v(Yt(i.j,0),60).a,l),R=new Cue,Ni(n.e,l,R),x=new fs,T=new fs,y=new me(i.k);y.a<y.c.c.length;)g=v(pe(y),18),Es(x,g.c),Es(T,g.d);d=x.a.gc()-T.a.gc(),d<0?(Uz(R,!0,(ys(),Ol)),Uz(R,!1,ql)):d>0&&(Uz(R,!1,(ys(),Ol)),Uz(R,!0,ql)),Cu(i.g,new t8t(n,l)),Ni(n.g,i,l)}function Hjt(){Hjt=z;var n;for(lze=Te(xe(Wr,1),vi,28,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]),ybe=st(Wr,vi,28,37,15,1),Oen=Te(xe(Wr,1),vi,28,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]),cze=st(C2,Xpe,28,37,14,1),n=2;n<=36;n++)ybe[n]=Ps(u.Math.pow(n,lze[n])),cze[n]=oG(MG,ybe[n])}function MAr(n){var i;if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i!=1)throw _e(new ar(yZt+(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i));return i=new ah,Fz(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84))&&bo(i,OKt(n,Fz(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84)),!1)),Fz(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))&&bo(i,OKt(n,Fz(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84)),!0)),i}function Vjt(n,i){var l,d,g,y,x;for(i.d?g=n.a.c==(Kp(),Cx)?Hs(i.b):os(i.b):g=n.a.c==(Kp(),Ey)?Hs(i.b):os(i.b),y=!1,d=new yr(_r(g.a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),x=Vt(n.a.f[n.a.g[i.b.p].p]),!(!x&&!Jo(l)&&l.c.i.c==l.d.i.c)&&!(Vt(n.a.n[n.a.g[i.b.p].p])||Vt(n.a.n[n.a.g[i.b.p].p]))&&(y=!0,r1(n.b,n.a.g[M_r(l,i.b).p])))return i.c=!0,i.a=l,i;return i.c=y,i.a=null,i}function SPe(n,i,l){var d,g,y,x,T,R,O;if(d=l.gc(),d==0)return!1;if(n.Pj())if(R=n.Qj(),LLe(n,i,l),x=d==1?n.Ij(3,null,l.Kc().Pb(),i,R):n.Ij(5,null,l,i,R),n.Mj()){for(T=d<100?null:new Av(d),y=i+d,g=i;g<y;++g)O=n.xj(g),T=n.Nj(O,T),T=T;T?(T.nj(x),T.oj()):n.Jj(x)}else n.Jj(x);else if(LLe(n,i,l),n.Mj()){for(T=d<100?null:new Av(d),y=i+d,g=i;g<y;++g)T=n.Nj(n.xj(g),T);T&&T.oj()}return!0}function Yjt(n,i,l){var d,g,y,x,T;return n.Pj()?(g=null,y=n.Qj(),d=n.Ij(1,T=(x=n.Dj(i,n.Zi(i,l)),x),l,i,y),n.Mj()&&!(n.Yi()&&T?Yi(T,l):Ze(T)===Ze(l))&&(T&&(g=n.Oj(T,g)),g=n.Nj(l,g)),g?(g.nj(d),g.oj()):n.Jj(d),T):(T=(x=n.Dj(i,n.Zi(i,l)),x),n.Mj()&&!(n.Yi()&&T?Yi(T,l):Ze(T)===Ze(l))&&(g=null,T&&(g=n.Oj(T,null)),g=n.Nj(l,g),g&&g.oj()),T)}function TPe(n,i){var l,d,g,y,x,T,R,O,D;if(n.e=i,n.f=v(oe(i,(Uv(),dte)),234),lxr(i),n.d=u.Math.max(i.e.c.length*16+i.c.c.length,256),!Vt(Ht(oe(i,(A0(),iGe)))))for(D=n.e.e.c.length,R=new me(i.e);R.a<R.c.c.length;)T=v(pe(R),153),O=T.d,O.a=eNe(n.f)*D,O.b=eNe(n.f)*D;for(l=i.b,y=new me(i.c);y.a<y.c.c.length;)if(g=v(pe(y),290),d=v(oe(g,cGe),17).a,d>0){for(x=0;x<d;x++)Lt(l,new sLt(g));hVt(g)}}function jjt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;if(J=new JS(n.Zg()),c1(i,Mi,J),l&&!n.Xg().a.dc())for(D=new p_,c1(i,"logs",D),T=0,ae=new LR(n.Xg().b.Kc());ae.b.Ob();)re=ai(ae.b.Pb()),q=new JS(re),s4(D,T),hfe(D,T,q),++T;if(d&&(O=new bK(n.Wg()),c1(i,"executionTime",O)),!n.Yg().a.dc())for(x=new p_,c1(i,Fme,x),T=0,y=new LR(n.Yg().b.Kc());y.b.Ob();)g=v(y.b.Pb(),871),R=new nk,s4(x,T),hfe(x,T,R),jjt(g,R,l,d),++T}function CPe(){CPe=z,Jue(),Vhn=new H3t,Te(xe(D6,2),kt,381,0,[Te(xe(D6,1),jee,600,0,[new dU(ZJt)])]),Te(xe(D6,2),kt,381,0,[Te(xe(D6,1),jee,600,0,[new dU(GUe)])]),Te(xe(D6,2),kt,381,0,[Te(xe(D6,1),jee,600,0,[new dU(JJt)]),Te(xe(D6,1),jee,600,0,[new dU(GUe)])]),new Ov("-1"),Te(xe(D6,2),kt,381,0,[Te(xe(D6,1),jee,600,0,[new dU("\\c+")])]),new Ov("0"),new Ov("0"),new Ov("1"),new Ov("0"),new Ov(aen)}function PAr(n,i){var l,d,g,y,x,T,R,O,D,q;for(i.Ug("Hypernodes processing",1),g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),T=new me(d.a);T.a<T.c.c.length;)if(x=v(pe(T),10),Vt(Ht(oe(x,(qt(),ane))))&&x.j.c.length<=2){for(q=0,D=0,l=0,y=0,O=new me(x.j);O.a<O.c.c.length;)switch(R=v(pe(O),12),R.j.g){case 1:++q;break;case 2:++D;break;case 3:++l;break;case 4:++y}q==0&&l==0&&URr(n,x,y<=D)}i.Vg()}function BAr(n,i,l,d,g){var y,x,T,R,O,D,q;for(x=new me(i);x.a<x.c.c.length;){if(y=v(pe(x),18),R=y.c,l.a._b(R))O=(LE(),f2);else if(d.a._b(R))O=(LE(),H5);else throw _e(new ar("Source port must be in one of the port sets."));if(D=y.d,l.a._b(D))q=(LE(),f2);else if(d.a._b(D))q=(LE(),H5);else throw _e(new ar("Target port must be in one of the port sets."));T=new qHt(y,O,q),Ni(n.b,y,T),jn(g.c,T)}}function kJ(n){var i,l;return n.c&&n.c.Vh()&&(l=v(n.c,54),n.c=v(Hv(n,l),142),n.c!=l&&(n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,2,l,n.c)),$e(n.Cb,411)?n.Db>>16==-15&&n.Cb.Yh()&&Ofe(new Afe(n.Cb,9,13,l,n.c,uy(Uh(v(n.Cb,62)),n))):$e(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(i=n.c,$e(i,90)||(i=(Pn(),n0)),$e(l,90)||(l=(Pn(),n0)),Ofe(new Afe(n.Cb,9,10,l,i,uy(Uc(v(n.Cb,29)),n)))))),n.c}function FAr(n,i,l){var d,g,y,x,T,R,O,D,q;for(l.Ug("Hyperedge merging",1),l3r(n,i),R=new go(i.b,0);R.b<R.d.gc();)if(T=(Tr(R.b<R.d.gc()),v(R.d.Xb(R.c=R.b++),30)),D=T.a,D.c.length!=0)for(d=null,g=null,y=null,x=null,O=0;O<D.c.length;O++)d=($n(O,D.c.length),v(D.c[O],10)),g=d.k,g==(lr(),Ws)&&x==Ws&&(q=Lkr(d,y),q.a&&(L5r(d,y,q.b,q.c),$n(O,D.c.length),yRe(D.c,O,1),--O,d=y,g=x)),y=d,x=g;l.Vg()}function Wjt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;if(i==l)return!0;if(i=LMe(n,i),l=LMe(n,l),d=t1e(i),d){if(D=t1e(l),D!=d)return D?(R=d.mk(),ae=D.mk(),R==ae&&R!=null):!1;if(x=(!i.d&&(i.d=new gs(pl,i,1)),i.d),y=x.i,J=(!l.d&&(l.d=new gs(pl,l,1)),l.d),y==J.i){for(O=0;O<y;++O)if(g=v(ze(x,O),89),q=v(ze(J,O),89),!Wjt(n,g,q))return!1}return!0}else return T=i.e,re=l.e,T==re}function Kjt(n,i,l,d){var g,y,x,T,R,O,D,q;if(tb(n.e,i)){for(q=Iu(n.e.Dh(),i),y=v(n.g,124),D=null,R=-1,T=-1,g=0,O=0;O<n.i;++O)x=y[O],q.am(x.Lk())&&(g==l&&(R=O),g==d&&(T=O,D=x.md()),++g);if(R==-1)throw _e(new Sl(zme+l+ew+g));if(T==-1)throw _e(new Sl(Gme+d+ew+g));return $D(n,R,T),id(n.e)&&$R(n,Bv(n,7,i,Nt(d),D,l,!0)),D}else throw _e(new ar("The feature must be many-valued to support move"))}function Xjt(n,i,l,d){var g,y,x,T,R;switch(R=new Wo(i.n),R.a+=i.o.a/2,R.b+=i.o.b/2,T=We(at(oe(i,(qt(),X4)))),y=n.f,x=n.d,g=n.c,v(oe(i,(At(),vc)),64).g){case 1:R.a+=x.b+g.a-l/2,R.b=-d-T,i.n.b=-(x.d+T+g.b);break;case 2:R.a=y.a+x.b+x.c+T,R.b+=x.d+g.b-d/2,i.n.a=y.a+x.c+T-g.a;break;case 3:R.a+=x.b+g.a-l/2,R.b=y.b+x.d+x.a+T,i.n.b=y.b+x.a+T-g.b;break;case 4:R.a=-l-T,R.b+=x.d+g.b-d/2,i.n.a=-(x.b+T+g.a)}return R}function Qjt(n){var i,l,d,g,y,x;return d=new d9e,Ul(d,n),Ze(oe(d,(qt(),Pd)))===Ze((ys(),cp))&&_t(d,Pd,IZ(d)),oe(d,(UQ(),MP))==null&&(x=v(hHt(n),167),_t(d,MP,vX(x.of(MP)))),_t(d,(At(),Ji),n),_t(d,au,(i=v(n1(Aye),9),new nf(i,v(v0(i,i.length),9),0))),g=B7r((Aa(n)&&(fE(),new aE(Aa(n))),fE(),new jhe(Aa(n)?new aE(Aa(n)):null,n)),ql),y=v(oe(d,JHe),107),l=d.d,RDt(l,y),RDt(l,g),d}function $Ar(n,i,l){var d,g;d=i.c.i,g=l.d.i,d.k==(lr(),Ws)?(_t(n,(At(),m1),v(oe(d,m1),12)),_t(n,Kf,v(oe(d,Kf),12)),_t(n,V4,Ht(oe(d,V4)))):d.k==Pc?(_t(n,(At(),m1),v(oe(d,m1),12)),_t(n,Kf,v(oe(d,Kf),12)),_t(n,V4,(Qn(),!0))):g.k==Pc?(_t(n,(At(),m1),v(oe(g,m1),12)),_t(n,Kf,v(oe(g,Kf),12)),_t(n,V4,(Qn(),!0))):(_t(n,(At(),m1),i.c),_t(n,Kf,l.d))}function UAr(n){var i,l,d,g,y,x,T;for(n.o=new FT,d=new Ea,x=new me(n.e.a);x.a<x.c.c.length;)y=v(pe(x),125),XT(y).c.length==1&&qa(d,y,d.c.b,d.c);for(;d.b!=0;)y=v(d.b==0?null:(Tr(d.b!=0),cf(d,d.a.a)),125),XT(y).c.length!=0&&(i=v(Yt(XT(y),0),218),l=y.g.a.c.length>0,T=OZ(i,y),B8e(l?T.b:T.g,i),XT(T).c.length==1&&qa(d,T,d.c.b,d.c),g=new Ms(y,i),Fv(n.o,g),Yu(n.e.a,y))}function Zjt(n,i){var l,d,g,y,x,T,R;return d=u.Math.abs(sQ(n.b).a-sQ(i.b).a),T=u.Math.abs(sQ(n.b).b-sQ(i.b).b),g=0,R=0,l=1,x=1,d>n.b.b/2+i.b.b/2&&(g=u.Math.min(u.Math.abs(n.b.c-(i.b.c+i.b.b)),u.Math.abs(n.b.c+n.b.b-i.b.c)),l=1-g/d),T>n.b.a/2+i.b.a/2&&(R=u.Math.min(u.Math.abs(n.b.d-(i.b.d+i.b.a)),u.Math.abs(n.b.d+n.b.a-i.b.d)),x=1-R/T),y=u.Math.min(l,x),(1-y)*u.Math.sqrt(d*d+T*T)}function zAr(n){var i,l,d,g;for(ype(n,n.e,n.f,(LE(),f2),!0,n.c,n.i),ype(n,n.e,n.f,f2,!1,n.c,n.i),ype(n,n.e,n.f,H5,!0,n.c,n.i),ype(n,n.e,n.f,H5,!1,n.c,n.i),BAr(n,n.c,n.e,n.f,n.i),d=new go(n.i,0);d.b<d.d.gc();)for(i=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),131)),g=new go(n.i,d.b);g.b<g.d.gc();)l=(Tr(g.b<g.d.gc()),v(g.d.Xb(g.c=g.b++),131)),A6r(i,l);XRr(n.i,v(oe(n.d,(At(),x6)),234)),u7r(n.i)}function J1e(n,i){var l,d;if(i!=null){if(d=WE(n),d)if(d.i&1){if(d==Wh)return HS(i);if(d==Wr)return $e(i,17);if(d==g3)return $e(i,161);if(d==bh)return $e(i,222);if(d==Tf)return $e(i,180);if(d==ao)return VS(i);if(d==lC)return $e(i,191);if(d==C2)return $e(i,168)}else return jK(),l=v(br(hre,d),57),!l||l.fk(i);else if($e(i,58))return n.dl(v(i,58))}return!1}function APe(){APe=z;var n,i,l,d,g,y,x,T,R;for(fp=st(bh,E5,28,255,15,1),Oy=st(Tf,rg,28,64,15,1),i=0;i<255;i++)fp[i]=-1;for(l=90;l>=65;l--)fp[l]=l-65<<24>>24;for(d=122;d>=97;d--)fp[d]=d-97+26<<24>>24;for(g=57;g>=48;g--)fp[g]=g-48+52<<24>>24;for(fp[43]=62,fp[47]=63,y=0;y<=25;y++)Oy[y]=65+y&vs;for(x=26,R=0;x<=51;++x,R++)Oy[x]=97+R&vs;for(n=52,T=0;n<=61;++n,T++)Oy[n]=48+T&vs;Oy[62]=43,Oy[63]=47}function Jjt(n,i){var l,d,g,y,x,T;return g=T9e(n),T=T9e(i),g==T?n.e==i.e&&n.a<54&&i.a<54?n.f<i.f?-1:n.f>i.f?1:0:(d=n.e-i.e,l=(n.d>0?n.d:u.Math.floor((n.a-1)*sXt)+1)-(i.d>0?i.d:u.Math.floor((i.a-1)*sXt)+1),l>d+1?g:l<d-1?-g:(y=(!n.c&&(n.c=uz(xc(n.f))),n.c),x=(!i.c&&(i.c=uz(xc(i.f))),i.c),d<0?y=HT(y,uWt(-d)):d>0&&(x=HT(x,uWt(d))),cGt(y,x))):g<T?-1:1}function GAr(n,i,l){var d,g,y,x,T,R,O,D;for(l.Ug(UXt,1),n.vf(i),y=0;n.xf(y)&&!l.$g();){for(n.wf(),D=$g(Ad(Te(xe(Md,1),Yn,20,0,[i.e,i.d,i.b])));zr(D);)for(R=v(Rr(D),309),T=$g(Ad(Te(xe(Md,1),Yn,20,0,[i.e,i.d,i.b])));zr(T);)x=v(Rr(T),309),x!=R&&(g=n.uf(x,R),g&&Hi(R.c,g));for(O=$g(Ad(Te(xe(Md,1),Yn,20,0,[i.e,i.d,i.b])));zr(O);)R=v(Rr(O),309),d=R.c,xHt(d,-n.d,-n.d,n.d,n.d),Hi(R.d,d),d.a=0,d.b=0;++y}l.Vg()}function qAr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(n.dc())return new ho;for(O=0,q=0,g=n.Kc();g.Ob();)d=v(g.Pb(),36),y=d.f,O=u.Math.max(O,y.a),q+=y.a*y.b;for(O=u.Math.max(O,u.Math.sqrt(q)*We(at(oe(v(n.Kc().Pb(),36),(qt(),Qte))))),J=0,re=0,R=0,l=i,T=n.Kc();T.Ob();)x=v(T.Pb(),36),D=x.f,J+D.a>O&&(J=0,re+=R+i,R=0),hI(x,J,re),l=u.Math.max(l,J+D.a),R=u.Math.max(R,D.b),J+=D.a+i;return new Ct(l+i,re+R+i)}function kPe(n,i){var l,d,g,y,x,T,R;if(!z1(n))throw _e(new Tl(bZt));if(d=z1(n),y=d.g,g=d.f,y<=0&&g<=0)return Bt(),lc;switch(T=n.i,R=n.j,i.g){case 2:case 1:if(T<0)return Bt(),cr;if(T+n.g>y)return Bt(),gr;break;case 4:case 3:if(R<0)return Bt(),or;if(R+n.f>g)return Bt(),Mr}return x=(T+n.g/2)/y,l=(R+n.f/2)/g,x+l<=1&&x-l<=0?(Bt(),cr):x+l>=1&&x-l>=0?(Bt(),gr):l<.5?(Bt(),or):(Bt(),Mr)}function HAr(n,i,l,d,g){var y,x;if(y=zo(Us(i[0],ul),Us(d[0],ul)),n[0]=ti(y),y=xE(y,32),l>=g){for(x=1;x<g;x++)y=zo(y,zo(Us(i[x],ul),Us(d[x],ul))),n[x]=ti(y),y=xE(y,32);for(;x<l;x++)y=zo(y,Us(i[x],ul)),n[x]=ti(y),y=xE(y,32)}else{for(x=1;x<l;x++)y=zo(y,zo(Us(i[x],ul),Us(d[x],ul))),n[x]=ti(y),y=xE(y,32);for(;x<g;x++)y=zo(y,Us(d[x],ul)),n[x]=ti(y),y=xE(y,32)}Oc(y,0)!=0&&(n[x]=ti(y))}function S4(n){zi();var i,l,d,g,y,x;if(n.e!=4&&n.e!=5)throw _e(new ar("Token#complementRanges(): must be RANGE: "+n.e));for(y=n,a5(y),fM(y),d=y.b.length+2,y.b[0]==0&&(d-=2),l=y.b[y.b.length-1],l==GI&&(d-=2),g=new Td(4),g.b=st(Wr,vi,28,d,15,1),x=0,y.b[0]>0&&(g.b[x++]=0,g.b[x++]=y.b[0]-1),i=1;i<y.b.length-2;i+=2)g.b[x++]=y.b[i]+1,g.b[x++]=y.b[i+1]-1;return l!=GI&&(g.b[x++]=l+1,g.b[x]=GI),g.a=!0,g}function VAr(n,i){var l,d,g,y,x,T,R,O,D;for(i.Ug("Layer constraint edge reversal",1),x=new me(n.b);x.a<x.c.c.length;){for(y=v(pe(x),30),D=-1,l=new Ot,O=dz(y.a),g=0;g<O.length;g++)d=v(oe(O[g],(At(),aw)),311),D==-1?d!=(Ym(),D5)&&(D=g):d==(Ym(),D5)&&(po(O[g],null),m4(O[g],D++,y)),d==(Ym(),y6)&&jn(l.c,O[g]);for(R=new me(l);R.a<R.c.c.length;)T=v(pe(R),10),po(T,null),po(T,y)}i.Vg()}function epe(n,i,l){var d,g,y,x,T,R,O,D;if(d=l.gc(),d==0)return!1;if(n.Pj())if(O=n.Qj(),w1e(n,i,l),x=d==1?n.Ij(3,null,l.Kc().Pb(),i,O):n.Ij(5,null,l,i,O),n.Mj()){for(T=d<100?null:new Av(d),y=i+d,g=i;g<y;++g)D=n.g[g],T=n.Nj(D,T),T=n.Uj(D,T);T?(T.nj(x),T.oj()):n.Jj(x)}else n.Jj(x);else if(w1e(n,i,l),n.Mj()){for(T=d<100?null:new Av(d),y=i+d,g=i;g<y;++g)R=n.g[g],T=n.Nj(R,T);T&&T.oj()}return!0}function YAr(n,i){var l,d,g,y,x,T,R,O,D;for(i.Ug("Hierarchical port dummy size processing",1),R=new Ot,D=new Ot,d=We(at(oe(n,(qt(),$5)))),l=d*2,y=new me(n.b);y.a<y.c.c.length;){for(g=v(pe(y),30),R.c.length=0,D.c.length=0,T=new me(g.a);T.a<T.c.c.length;)x=v(pe(T),10),x.k==(lr(),hs)&&(O=v(oe(x,(At(),vc)),64),O==(Bt(),or)?jn(R.c,x):O==Mr&&jn(D.c,x));OVt(R,!0,l),OVt(D,!1,l)}i.Vg()}function RPe(n,i,l,d){var g,y,x,T,R;for(x=new me(n.k);x.a<x.c.c.length;)g=v(pe(x),132),(!d||g.c==(o1(),d2))&&(R=g.b,R.g<0&&g.d>0&&(yue(R,R.d-g.d),g.c==(o1(),d2)&&Crr(R,R.a-g.d),R.d<=0&&R.i>0&&qa(i,R,i.c.b,i.c)));for(y=new me(n.f);y.a<y.c.c.length;)g=v(pe(y),132),(!d||g.c==(o1(),d2))&&(T=g.a,T.g<0&&g.d>0&&(yK(T,T.i-g.d),g.c==(o1(),d2)&&Arr(T,T.b-g.d),T.i<=0&&T.d>0&&qa(l,T,l.c.b,l.c)))}function jAr(n,i,l,d,g){var y,x,T,R,O,D,q,J,re;for(Fn(),us(n,new dSt),x=KU(n),re=new Ot,J=new Ot,T=null,R=0;x.b!=0;)y=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),163),!T||lh(T)*od(T)/2<lh(y)*od(y)?(T=y,jn(re.c,y)):(R+=lh(y)*od(y),jn(J.c,y),J.c.length>1&&(R>lh(T)*od(T)/2||x.b==0)&&(q=new eZ(J),D=lh(T)/od(T),O=vpe(q,i,new ek,l,d,g,D),Hi(i1(q.e),O),T=q,jn(re.c,q),R=0,J.c.length=0));return xs(re,J),re}function Gc(n,i,l,d,g){Pm();var y,x,T,R,O,D,q;if(yNe(n,"src"),yNe(l,"dest"),q=cd(n),R=cd(l),BIe((q.i&4)!=0,"srcType is not an array"),BIe((R.i&4)!=0,"destType is not an array"),D=q.c,x=R.c,BIe(D.i&1?D==x:(x.i&1)==0,"Array types don't match"),Lbr(n,i,l,d,g),!(D.i&1)&&q!=R)if(O=L_(n),y=L_(l),Ze(n)===Ze(l)&&i<d)for(i+=g,T=d+g;T-- >d;)Ga(y,T,O[--i]);else for(T=d+g;d<T;)Ga(y,d++,O[i++]);else AMe(n,i,l,d,g,!0)}function eWt(n,i){var l,d,g,y,x,T,R,O,D;switch(i.Ug("Box layout",2),g=uU(at(Et(n,(lJ(),Gcn)))),y=v(Et(n,zcn),107),l=Vt(Ht(Et(n,eWe))),d=Vt(Ht(Et(n,tWe))),v(Et(n,b2e),320).g){case 0:x=(D=new Eh((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a)),Fn(),us(D,new KAt(d)),D),T=hMe(n),R=at(Et(n,Jje)),(R==null||(hr(R),R<=0))&&(R=1.3),O=TRr(x,g,y,T.a,T.b,l,(hr(R),R)),JE(n,O.a,O.b,!1,!0);break;default:b6r(n,g,y,l)}i.Vg()}function WAr(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae;for(J=vEr(n,l),R=0;R<i;R++){for(KS(g,l),re=new Ot,ae=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),418)),D=J+R;D<n.b;D++)T=ae,ae=(Tr(d.b<d.d.gc()),v(d.d.Xb(d.c=d.b++),418)),Lt(re,new RYt(T,ae,l));for(q=J+R;q<n.b;q++)Tr(d.b>0),d.a.Xb(d.c=--d.b),q>J+R&&ld(d);for(x=new me(re);x.a<x.c.c.length;)y=v(pe(x),418),KS(d,y);if(R<i-1)for(O=J+R;O<n.b;O++)Tr(d.b>0),d.a.Xb(d.c=--d.b)}}function KAr(){zi();var n,i,l,d,g,y;if(J2e)return J2e;for(n=new Td(4),C4(n,Qv(abe,!0)),gM(n,Qv("M",!0)),gM(n,Qv("C",!0)),y=new Td(4),d=0;d<11;d++)Jc(y,d,d);return i=new Td(4),C4(i,Qv("M",!0)),Jc(i,4448,4607),Jc(i,65438,65439),g=new jL(2),V_(g,n),V_(g,sB),l=new jL(2),l.Jm(XX(y,Qv("L",!0))),l.Jm(i),l=new r4(3,l),l=new bNe(g,l),J2e=l,J2e}function T4(n,i){var l,d,g,y,x,T,R,O;for(l=new RegExp(i,"g"),R=st(Xt,kt,2,0,6,1),d=0,O=n,y=null;;)if(T=l.exec(O),T==null||O==""){R[d]=O;break}else x=T.index,R[d]=(mo(0,x,O.length),O.substr(0,x)),O=af(O,x+T[0].length,O.length),l.lastIndex=0,y==O&&(R[d]=(mo(0,1,O.length),O.substr(0,1)),O=(sr(1,O.length+1),O.substr(1))),y=O,++d;if(n.length>0){for(g=R.length;g>0&&R[g-1]=="";)--g;g<R.length&&(R.length=g)}return R}function pc(){pc=z,_Ye=new bE(20),vYe=new fo((Ei(),Ty),_Ye),Nve=new fo(bw,20),EYe=new fo(DWe,3),Bon=new fo(X5,kI),Ane=new fo(lH,Nt(1)),Yon=new fo(O2e,(Qn(),!0)),gYe=iH,mYe=(ys(),cp),Ax=new fo(gw,mYe),Fon=sH,$on=S2e,zon=mw,Gon=i3,qon=tC,Hon=g2,Uon=eC,yYe=oH,Von=a3,SYe=(OMe(),Pon),wYe=Don,Kon=_N,Xon=Kne,Won=cH,jon=Wne,xYe=(Uk(),l3),new fo(N6,xYe),V5=Lon,Ive=Oon,gg=Mon,pYe=Ion,bYe=Non}function XAr(n){var i,l;if(i=ai(Et(n,(Ei(),yN))),!J$t(i,n)&&!Y1(n,rC)&&((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a).i!=0||Vt(Ht(Et(n,aH)))))if(i==null||v4(i).length==0){if(!J$t(fr,n))throw l=bi(bi(new Ed("Unable to load default layout algorithm "),fr)," for unconfigured node "),MJ(n,l),_e(new Gb(l.a))}else throw l=bi(bi(new Ed("Layout algorithm '"),i),"' not found for "),MJ(n,l),_e(new Gb(l.a))}function tpe(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;if(l=n.i,i=n.n,n.b==0)for(re=l.c+i.b,J=l.b-i.b-i.c,x=n.a,R=0,D=x.length;R<D;++R)g=x[R],eQ(g,re,J);else d=HGt(n,!1),eQ(n.a[0],l.c+i.b,d[0]),eQ(n.a[2],l.c+l.b-i.c-d[2],d[2]),q=l.b-i.b-i.c,d[0]>0&&(q-=d[0]+n.c,d[0]+=n.c),d[2]>0&&(q-=d[2]+n.c),d[1]=u.Math.max(d[1],q),eQ(n.a[1],l.c+i.b+d[0]-(d[1]-q)/2,d[1]);for(y=n.a,T=0,O=y.length;T<O;++T)g=y[T],$e(g,336)&&v(g,336).lf()}function QAr(n){var i,l,d,g,y,x,T,R,O,D,q;for(q=new Uwt,q.d=0,x=new me(n.b);x.a<x.c.c.length;)y=v(pe(x),30),q.d+=y.a.c.length;for(d=0,g=0,q.a=st(Wr,vi,28,n.b.c.length,15,1),O=0,D=0,q.e=st(Wr,vi,28,q.d,15,1),l=new me(n.b);l.a<l.c.c.length;)for(i=v(pe(l),30),i.p=d++,q.a[i.p]=g++,D=0,R=new me(i.a);R.a<R.c.c.length;)T=v(pe(R),10),T.p=O++,q.e[T.p]=D++;return q.c=new EAt(q),q.b=Pg(q.d),gAr(q,n),q.f=Pg(q.d),mAr(q,n),q}function tWt(n,i){var l,d,g,y;for(y=v(Yt(n.n,n.n.c.length-1),209).d,n.p=u.Math.min(n.p,i.g),n.r=u.Math.max(n.r,y),n.g=u.Math.max(n.g,i.g+(n.b.c.length==1?0:n.i)),n.o=u.Math.min(n.o,i.f),n.e+=i.f+(n.b.c.length==1?0:n.i),n.f=u.Math.max(n.f,i.f),g=n.n.c.length>0?(n.n.c.length-1)*n.i:0,d=new me(n.n);d.a<d.c.c.length;)l=v(pe(d),209),g+=l.a;n.d=g,n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),cDe(n.j)}function nWt(n,i){var l,d,g,y,x,T,R,O,D,q;if(D=Ht(oe(i,(A0(),bnn))),D==null||(hr(D),D)){for(q=st(Wh,Qg,28,i.e.c.length,16,1),x=F4r(i),g=new Ea,O=new me(i.e);O.a<O.c.c.length;)T=v(pe(O),153),l=GMe(n,T,null,null,q,x),l&&(Ul(l,i),qa(g,l,g.c.b,g.c));if(g.b>1)for(d=Ur(g,0);d.b!=d.d.c;)for(l=v(Fr(d),235),y=0,R=new me(l.e);R.a<R.c.c.length;)T=v(pe(R),153),T.a=y++;return g}return H1(Te(xe(q8r,1),FXt,235,0,[i]))}function tg(n){var i,l,d,g,y,x,T;if(!n.g){if(T=new hue,i=eB,x=i.a.zc(n,i),x==null){for(d=new mr(Fl(n));d.e!=d.i.gc();)l=v(wr(d),29),Ka(T,tg(l));i.a.Bc(n)!=null,i.a.gc()==0}for(g=T.i,y=(!n.s&&(n.s=new vt(Ju,n,21,17)),new mr(n.s));y.e!=y.i.gc();++g)Mrr(v(wr(y),462),g);Ka(T,(!n.s&&(n.s=new vt(Ju,n,21,17)),n.s)),h4(T),n.g=new IUt(n,T),n.i=v(T.g,254),n.i==null&&(n.i=Y2e),n.p=null,$h(n).b&=-5}return n.g}function ZAr(n,i){var l,d,g,y,x,T,R,O,D;if(l=i.qi(n.a),l&&(R=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),"memberTypes")),R!=null)){for(O=new Ot,y=T4(R,"\\w"),x=0,T=y.length;x<T;++x)g=y[x],d=g.lastIndexOf("#"),D=d==-1?Y8e(n,i.jk(),g):d==0?wz(n,null,(sr(1,g.length+1),g.substr(1))):wz(n,(mo(0,d,g.length),g.substr(0,d)),(sr(d+1,g.length+1),g.substr(d+1))),$e(D,156)&&Lt(O,v(D,156));return O}return Fn(),Fn(),Zo}function npe(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae;if(d=n.i,l=n.n,n.b==0)i=qGt(n,!1),tQ(n.a[0],d.d+l.d,i[0]),tQ(n.a[2],d.d+d.a-l.a-i[2],i[2]),J=d.a-l.d-l.a,q=J,i[0]>0&&(i[0]+=n.c,q-=i[0]),i[2]>0&&(q-=i[2]+n.c),i[1]=u.Math.max(i[1],q),tQ(n.a[1],d.d+l.d+i[0]-(i[1]-q)/2,i[1]);else for(ae=d.d+l.d,re=d.a-l.d-l.a,x=n.a,R=0,D=x.length;R<D;++R)g=x[R],tQ(g,ae,re);for(y=n.a,T=0,O=y.length;T<O;++T)g=y[T],$e(g,336)&&v(g,336).mf()}function JAr(n){var i,l,d,g,y,x,T,R,O,D;for(D=st(Wr,vi,28,n.b.c.length+1,15,1),O=new fs,d=0,y=new me(n.b);y.a<y.c.c.length;){for(g=v(pe(y),30),D[d++]=O.a.gc(),R=new me(g.a);R.a<R.c.c.length;)for(x=v(pe(R),10),l=new yr(_r(os(x).a.Kc(),new S));zr(l);)i=v(Rr(l),18),O.a.zc(i,O);for(T=new me(g.a);T.a<T.c.c.length;)for(x=v(pe(T),10),l=new yr(_r(Hs(x).a.Kc(),new S));zr(l);)i=v(Rr(l),18),O.a.Bc(i)!=null}return D}function RJ(n,i,l,d){var g,y,x,T,R;if(R=Iu(n.e.Dh(),i),g=v(n.g,124),al(),v(i,69).xk()){for(x=0;x<n.i;++x)if(y=g[x],R.am(y.Lk())&&Yi(y,l))return!0}else if(l!=null){for(T=0;T<n.i;++T)if(y=g[T],R.am(y.Lk())&&Yi(l,y.md()))return!0;if(d){for(x=0;x<n.i;++x)if(y=g[x],R.am(y.Lk())&&Ze(l)===Ze(Zhe(n,v(y.md(),58))))return!0}}else for(x=0;x<n.i;++x)if(y=g[x],R.am(y.Lk())&&y.md()==null)return!1;return!1}function ekr(n,i){var l,d,g,y,x,T;if(l=i.qi(n.a),l&&(T=ai(h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Iee)),T!=null))switch(g=AX(T,Wu(35)),d=i.qk(),g==-1?(x=iD(n,Cd(d)),y=T):g==0?(x=null,y=(sr(1,T.length+1),T.substr(1))):(x=(mo(0,g,T.length),T.substr(0,g)),y=(sr(g+1,T.length+1),T.substr(g+1))),RE(Al(n,i))){case 2:case 3:return Dbr(n,d,x,y);case 0:case 4:case 5:case 6:return Mbr(n,d,x,y)}return null}function rWt(n,i,l,d){var g,y,x,T;for(T=l,x=new me(i.a);x.a<x.c.c.length;){if(y=v(pe(x),225),g=v(y.b,68),HE(n.b.c,g.b.c+g.b.b)<=0&&HE(g.b.c,n.b.c+n.b.b)<=0&&HE(n.b.d,g.b.d+g.b.a)<=0&&HE(g.b.d,n.b.d+n.b.a)<=0){if(HE(g.b.c,n.b.c+n.b.b)==0&&d.a<0||HE(g.b.c+g.b.b,n.b.c)==0&&d.a>0||HE(g.b.d,n.b.d+n.b.a)==0&&d.b<0||HE(g.b.d+g.b.a,n.b.d)==0&&d.b>0){T=0;break}}else T=u.Math.min(T,ZHt(n,g,d));T=u.Math.min(T,rWt(n,y,T,d))}return T}function TG(n,i){var l,d,g,y,x,T,R;if(n.b<2)throw _e(new ar("The vector chain must contain at least a source and a target point."));for(g=(Tr(n.b!=0),v(n.a.a.c,8)),PU(i,g.a,g.b),R=new gk((!i.a&&(i.a=new gs(Ud,i,5)),i.a)),x=Ur(n,1);x.a<n.b-1;)T=v(Fr(x),8),R.e!=R.i.gc()?l=v(wr(R),377):(l=(kv(),d=new hK,d),jzt(R,l)),Fhe(l,T.a,T.b);for(;R.e!=R.i.gc();)wr(R),XD(R);y=(Tr(n.b!=0),v(n.c.b.c,8)),MU(i,y.a,y.b)}function iWt(n,i,l,d){var g,y,x,T,R,O;if(O=Iu(n.e.Dh(),i),x=v(n.g,124),tb(n.e,i)){if(i.Si()&&(y=pI(n,i,d,$e(i,102)&&(v(i,19).Bb&el)!=0),y>=0&&y!=l))throw _e(new ar(sq));for(g=0,R=0;R<n.i;++R)if(T=x[R],O.am(T.Lk())){if(g==l)return v(JT(n,R,(al(),v(i,69).xk()?v(d,76):zg(i,d))),76);++g}throw _e(new Sl(FM+l+ew+g))}else{for(R=0;R<n.i;++R)if(T=x[R],O.am(T.Lk()))return al(),v(i,69).xk()?T:T.md();return null}}function aWt(n,i){var l,d,g,y,x,T,R,O,D;for(l=0,g=new me(($n(0,n.c.length),v(n.c[0],105)).g.b.j);g.a<g.c.c.length;)d=v(pe(g),12),d.p=l++;for(i==(Bt(),or)?us(n,new G_t):us(n,new q_t),T=0,D=n.c.length-1;T<D;)x=($n(T,n.c.length),v(n.c[T],105)),O=($n(D,n.c.length),v(n.c[D],105)),y=i==or?x.c:x.a,R=i==or?O.a:O.c,Kb(x,i,(K1(),KI),y),Kb(O,i,WI,R),++T,--D;T==D&&Kb(($n(T,n.c.length),v(n.c[T],105)),i,(K1(),b6),null)}function tkr(n,i,l,d){var g,y,x,T,R,O;for(x=new PWt(n,i,l),R=new go(d,0),g=!1;R.b<R.d.gc();)T=(Tr(R.b<R.d.gc()),v(R.d.Xb(R.c=R.b++),239)),T==i||T==l?ld(R):!g&&We(U1(T.g,T.d[0]).a)>We(U1(x.g,x.d[0]).a)?(Tr(R.b>0),R.a.Xb(R.c=--R.b),KS(R,x),g=!0):T.e&&T.e.gc()>0&&(y=(!T.e&&(T.e=new Ot),T.e).Mc(i),O=(!T.e&&(T.e=new Ot),T.e).Mc(l),(y||O)&&((!T.e&&(T.e=new Ot),T.e).Fc(x),++x.c));g||jn(d.c,x)}function nkr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;return q=n.a.i+n.a.g/2,J=n.a.i+n.a.g/2,ae=i.i+i.g/2,de=i.j+i.f/2,T=new Ct(ae,de),O=v(Et(i,(Ei(),R6)),8),O.a=O.a+q,O.b=O.b+J,y=(T.b-O.b)/(T.a-O.a),d=T.b-y*T.a,le=l.i+l.g/2,Se=l.j+l.f/2,R=new Ct(le,Se),D=v(Et(l,R6),8),D.a=D.a+q,D.b=D.b+J,x=(R.b-D.b)/(R.a-D.a),g=R.b-x*R.a,re=(d-g)/(x-y),O.a<re&&T.a<re||re<O.a&&re<T.a?!1:!(D.a<re&&R.a<re||re<D.a&&re<R.a)}function rkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(J=v(br(n.c,i),190),!J)throw _e(new zp("Edge did not exist in input."));return O=Z8(J),y=fU((!i.a&&(i.a=new vt(xa,i,6,6)),i.a)),T=!y,T&&(re=new p_,l=new POt(n,O,re),Var((!i.a&&(i.a=new vt(xa,i,6,6)),i.a),l),c1(J,bUe,re)),g=Y1(i,(Ei(),kx)),g&&(D=v(Et(i,kx),75),x=!D||xLt(D),R=!x,R&&(q=new p_,d=new vkt(q),To(D,d),c1(J,"junctionPoints",q))),a8(J,"container",lz(i).k),null}function sWt(n,i,l,d){var g,y,x,T,R,O;if(!b8(i)){if(O=l.eh(($e(i,16)?v(i,16).gc():Gm(i.Kc()))/n.a|0),O.Ug(RQt,1),R=new CEt,T=0,d==(ys(),Ol)||d==ql)for(x=i.Kc();x.Ob();)g=v(x.Pb(),40),R=Ad(Te(xe(Md,1),Yn,20,0,[R,new Mm(g)])),T<g.f.a&&(T=g.f.a);else for(x=i.Kc();x.Ob();)g=v(x.Pb(),40),R=Ad(Te(xe(Md,1),Yn,20,0,[R,new Mm(g)])),T<g.f.b&&(T=g.f.b);for(y=i.Kc();y.Ob();)g=v(y.Pb(),40),_t(g,(fa(),Cne),T);O.Vg(),sWt(n,R,l,d)}}function IPe(n,i,l){var d,g,y,x,T,R,O,D;this.a=n,this.b=i,this.c=l,this.e=H1(Te(xe(U8r,1),Yn,177,0,[new ck(n,i),new ck(i,l),new ck(l,n)])),this.f=H1(Te(xe(Vs,1),kt,8,0,[n,i,l])),this.d=(d=$s(Eo(this.b),this.a),g=$s(Eo(this.c),this.a),y=$s(Eo(this.c),this.b),x=d.a*(this.a.a+this.b.a)+d.b*(this.a.b+this.b.b),T=g.a*(this.a.a+this.c.a)+g.b*(this.a.b+this.c.b),R=2*(d.a*y.b-d.b*y.a),O=(g.b*x-d.b*T)/R,D=(d.a*T-g.a*x)/R,new Ct(O,D))}function ZE(n,i){var l,d,g,y,x,T;for(y=n.c,x=n.d,Uo(n,null),lo(n,null),i&&Vt(Ht(oe(x,(At(),Dye))))?Uo(n,xPe(x.i,(ll(),_u),(Bt(),gr))):Uo(n,x),i&&Vt(Ht(oe(y,(At(),Pye))))?lo(n,xPe(y.i,(ll(),Rh),(Bt(),cr))):lo(n,y),d=new me(n.b);d.a<d.c.c.length;)l=v(pe(d),72),g=v(oe(l,(qt(),pg)),278),g==(W1(),EN)?_t(l,pg,s3):g==s3&&_t(l,pg,EN);T=Vt(Ht(oe(n,(At(),ap)))),_t(n,ap,(Qn(),!T)),n.a=Gz(n.a)}function ikr(n,i){var l,d,g,y,x;return l=eI(v(oe(i,(pc(),Ax)),88)),n.b.b==0?null:(x=v(Wl(Bl(new xn(null,new Nn(n.b,16)),new hEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),y=v(Wl(Ki(new xn(null,new Nn(i.b,16)),new SAt(x)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),g=at(ad(QS(Bl(y.Oc(),new TAt(l)),(IE(),IE(),wbe)))),d=v(ad(U8(Ki(y.Oc(),new m8t(l,g)))),40),d)}function akr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;l=yE(new v_,n.f),O=n.i[i.c.i.p],re=n.i[i.d.i.p],R=i.c,J=i.d,T=R.a.b,q=J.a.b,O.b||(T+=R.n.b),re.b||(q+=J.n.b),D=Ps(u.Math.max(0,T-q)),x=Ps(u.Math.max(0,q-T)),ae=(le=u.Math.max(1,v(oe(i,(qt(),T6)),17).a),de=pOe(i.c.i.k,i.d.i.k),le*de),g=C0(m0(g0(p0(b0(new Bf,ae),x),l),v(br(n.k,i.c),125))),y=C0(m0(g0(p0(b0(new Bf,ae),D),l),v(br(n.k,i.d),125))),d=new a8t(g,y),n.c[i.p]=d}function skr(n,i,l){var d,g,y,x,T,R;for(d=0,y=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));y.e!=y.i.gc();)g=v(wr(y),27),x="",(!g.n&&(g.n=new vt(wl,g,1,7)),g.n).i==0||(x=v(ze((!g.n&&(g.n=new vt(wl,g,1,7)),g.n),0),135).a),T=new MIt(x),Ul(T,g),_t(T,(Uv(),m6),g),T.a=d++,T.d.a=g.i+g.g/2,T.d.b=g.j+g.f/2,T.e.a=u.Math.max(g.g,1),T.e.b=u.Math.max(g.f,1),Lt(i.e,T),yu(l.f,g,T),R=v(Et(g,(A0(),lGe)),101),R==(co(),y2)&&(R=up)}function okr(n,i){var l,d,g,y,x,T,R;i.Ug("Layer constraint postprocessing",1),R=n.b,R.c.length!=0&&(d=($n(0,R.c.length),v(R.c[0],30)),x=v(Yt(R,R.c.length-1),30),l=new Xc(n),y=new Xc(n),jCr(n,d,x,l,y),l.a.c.length==0||(n4(0,R.c.length),OL(R.c,0,l)),y.a.c.length==0||jn(R.c,y)),ya(n,(At(),Lye))&&(g=new Xc(n),T=new Xc(n),$5r(n,g,T),g.a.c.length==0||(n4(0,R.c.length),OL(R.c,0,g)),T.a.c.length==0||jn(R.c,T)),i.Vg()}function CG(n){var i,l,d;switch(n){case 91:case 93:case 45:case 94:case 44:case 92:d="\\"+String.fromCharCode(n&vs);break;case 12:d="\\f";break;case 10:d="\\n";break;case 13:d="\\r";break;case 9:d="\\t";break;case 27:d="\\e";break;default:n<32?(l=(i=n>>>0,"0"+i.toString(16)),d="\\x"+af(l,l.length-2,l.length)):n>=el?(l=(i=n>>>0,"0"+i.toString(16)),d="\\v"+af(l,l.length-6,l.length)):d=""+String.fromCharCode(n&vs)}return d}function oWt(n){var i,l,d;if(OT(v(oe(n,(qt(),Qa)),101)))for(l=new me(n.j);l.a<l.c.c.length;)i=v(pe(l),12),i.j==(Bt(),lc)&&(d=v(oe(i,(At(),kh)),10),d?Bs(i,v(oe(d,vc),64)):i.e.c.length-i.g.c.length<0?Bs(i,gr):Bs(i,cr));else{for(l=new me(n.j);l.a<l.c.c.length;)i=v(pe(l),12),d=v(oe(i,(At(),kh)),10),d?Bs(i,v(oe(d,vc),64)):i.e.c.length-i.g.c.length<0?Bs(i,(Bt(),gr)):Bs(i,(Bt(),cr));_t(n,Qa,(co(),SN))}}function NPe(n){var i,l,d,g,y,x;for(this.e=new Ot,this.a=new Ot,l=n.b-1;l<3;l++)JR(n,0,v(gf(n,0),8));if(n.b<4)throw _e(new ar("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,M3r(this,n.b+this.b-1),x=new Ot,y=new me(this.e),i=0;i<this.b-1;i++)Lt(x,at(pe(y)));for(g=Ur(n,0);g.b!=g.d.c;)d=v(Fr(g),8),Lt(x,at(pe(y))),Lt(this.a,new vDt(d,x)),$n(0,x.c.length),x.c.splice(0,1)}function lWt(n,i){var l,d,g,y,x,T,R,O,D;for(y=new me(n.b);y.a<y.c.c.length;)for(g=v(pe(y),30),T=new me(g.a);T.a<T.c.c.length;)for(x=v(pe(T),10),x.k==(lr(),Pc)&&(R=(O=v(Rr(new yr(_r(Hs(x).a.Kc(),new S))),18),D=v(Rr(new yr(_r(os(x).a.Kc(),new S))),18),!Vt(Ht(oe(O,(At(),ap))))||!Vt(Ht(oe(D,ap)))?i:SUt(i)),Qk(x,R)),d=new yr(_r(os(x).a.Kc(),new S));zr(d);)l=v(Rr(d),18),R=Vt(Ht(oe(l,(At(),ap))))?SUt(i):i,bUt(l,R)}function lkr(n,i,l,d,g){var y,x,T;if(l.f>=i.o&&l.f<=i.f||i.a*.5<=l.f&&i.a*1.5>=l.f){if(x=v(Yt(i.n,i.n.c.length-1),209),x.e+x.d+l.g+g<=d&&(y=v(Yt(i.n,i.n.c.length-1),209),y.f-n.f+l.f<=n.b||n.a.c.length==1))return TLe(i,l),!0;if(i.s+l.g<=d&&(i.t+i.d+l.f+g<=n.b||n.a.c.length==1))return Lt(i.b,l),T=v(Yt(i.n,i.n.c.length-1),209),Lt(i.n,new SQ(i.s,T.f+T.a+i.i,i.i)),aDe(v(Yt(i.n,i.n.c.length-1),209),l),tWt(i,l),!0}return!1}function cWt(n,i,l){var d,g,y,x;return n.Pj()?(g=null,y=n.Qj(),d=n.Ij(1,x=Mfe(n,i,l),l,i,y),n.Mj()&&!(n.Yi()&&x!=null?Yi(x,l):Ze(x)===Ze(l))?(x!=null&&(g=n.Oj(x,g)),g=n.Nj(l,g),n.Tj()&&(g=n.Wj(x,l,g)),g?(g.nj(d),g.oj()):n.Jj(d)):(n.Tj()&&(g=n.Wj(x,l,g)),g?(g.nj(d),g.oj()):n.Jj(d)),x):(x=Mfe(n,i,l),n.Mj()&&!(n.Yi()&&x!=null?Yi(x,l):Ze(x)===Ze(l))&&(g=null,x!=null&&(g=n.Oj(x,null)),g=n.Nj(l,g),g&&g.oj()),x)}function ckr(n,i){var l,d,g,y,x;if(i.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){i.Vg();return}if(g=new MMe(n),x=(g.i==null&&(g.i=C9e(g,new B6e)),We(g.i)*g.f),l=x/(g.i==null&&(g.i=C9e(g,new B6e)),We(g.i)),g.b>l){i.Vg();return}switch(v(oe(n,(qt(),tve)),351).g){case 2:y=new $6e;break;case 0:y=new P6e;break;default:y=new U6e}if(d=y.og(n,g),!y.pg())switch(v(oe(n,dne),352).g){case 2:d=JHt(g,d);break;case 1:d=Hqt(g,d)}i6r(n,g,d),i.Vg()}function cM(n,i){var l,d,g,y,x,T,R,O;i%=24,n.q.getHours()!=i&&(d=new u.Date(n.q.getTime()),d.setDate(d.getDate()+1),T=n.q.getTimezoneOffset()-d.getTimezoneOffset(),T>0&&(R=T/60|0,O=T%60,g=n.q.getDate(),l=n.q.getHours(),l+R>=24&&++g,y=new u.Date(n.q.getFullYear(),n.q.getMonth(),g,i+R,n.q.getMinutes()+O,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(y.getTime()))),x=n.q.getTime(),n.q.setTime(x+36e5),n.q.getHours()!=i&&n.q.setTime(x)}function ukr(n,i){var l,d,g,y;if(x0r(n.d,n.e),n.c.a.$b(),We(at(oe(i.j,(qt(),ene))))!=0||We(at(oe(i.j,ene)))!=0)for(l=b5,Ze(oe(i.j,nm))!==Ze((Zp(),wy))&&_t(i.j,(At(),c2),(Qn(),!0)),y=v(oe(i.j,gP),17).a,g=0;g<y&&(d=Skr(n,i),!(d<l&&(l=d,D$t(n),l==0)));g++);else for(l=qi,Ze(oe(i.j,nm))!==Ze((Zp(),wy))&&_t(i.j,(At(),c2),(Qn(),!0)),y=v(oe(i.j,gP),17).a,g=0;g<y&&(d=pWt(n,i),!(d<l&&(l=d,D$t(n),l==0)));g++);}function hkr(n,i){var l,d,g,y,x,T,R,O;for(x=new Ot,T=0,l=0,R=0;T<i.c.length-1&&l<n.gc();){for(d=v(n.Xb(l),17).a+R;($n(T+1,i.c.length),v(i.c[T+1],17)).a<d;)++T;for(O=0,y=d-($n(T,i.c.length),v(i.c[T],17)).a,g=($n(T+1,i.c.length),v(i.c[T+1],17)).a-d,y>g&&++O,Lt(x,($n(T+O,i.c.length),v(i.c[T+O],17))),R+=($n(T+O,i.c.length),v(i.c[T+O],17)).a-d,++l;l<n.gc()&&v(n.Xb(l),17).a+R<=($n(T+O,i.c.length),v(i.c[T+O],17)).a;)++l;T+=1+O}return x}function dkr(n,i){var l,d,g,y,x;for(x=new yr(_r(Hs(i).a.Kc(),new S));zr(x);)if(y=v(Rr(x),18),n.f.b==0?(g=y.c.i.k==(lr(),is)&&!!y.c.i.c&&y.c.i.c.p==n.c,zr(new yr(_r(Hs(y.c.i).a.Kc(),new S)))?(l=v(Rr(new yr(_r(Hs(y.c.i).a.Kc(),new S))),18).c.i.c,d=y.c.i.k==Pc&&!!l&&l.p==n.c):d=!1):(g=y.c.i.k==(lr(),is)&&y.c.i.p==n.c,d=y.c.i.k==Pc&&v(Rr(new yr(_r(Hs(y.c.i).a.Kc(),new S))),18).c.i.p==n.c),g||d)return!0;return!1}function fkr(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(J=new Ot,Se=OQ(d),de=i*n.a,q=0,ae=0,y=new fs,x=new fs,T=new Ot,Me=0,Ue=0,re=0,le=0,O=0,D=0;Se.a.gc()!=0;)R=ovr(Se,g,x),R&&(Se.a.Bc(R)!=null,jn(T.c,R),y.a.zc(R,y),ae=n.f[R.p],Me+=n.e[R.p]-ae*n.b,q=n.c[R.p],Ue+=q*n.b,D+=ae*n.b,le+=n.e[R.p]),(!R||Se.a.gc()==0||Me>=de&&n.e[R.p]>ae*n.b||Ue>=l*de)&&(jn(J.c,T),T=new Ot,bo(x,y),y.a.$b(),O-=D,re=u.Math.max(re,O*n.b+le),O+=Ue,Me=Ue,Ue=0,D=0,le=0);return new Ms(re,J)}function rpe(n){var i,l,d,g,y,x,T;if(!n.d){if(T=new FSt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Fl(n));d.e!=d.i.gc();)l=v(wr(d),29),Ka(T,rpe(l));i.a.Bc(n)!=null,i.a.gc()==0}for(x=T.i,g=(!n.q&&(n.q=new vt(e0,n,11,10)),new mr(n.q));g.e!=g.i.gc();++x)v(wr(g),411);Ka(T,(!n.q&&(n.q=new vt(e0,n,11,10)),n.q)),h4(T),n.d=new NT((v(ze(bt((Mv(),Zn).o),9),19),T.i),T.g),n.e=v(T.g,688),n.e==null&&(n.e=dhn),$h(n).b&=-17}return n.d}function pI(n,i,l,d){var g,y,x,T,R,O;if(O=Iu(n.e.Dh(),i),R=0,g=v(n.g,124),al(),v(i,69).xk()){for(x=0;x<n.i;++x)if(y=g[x],O.am(y.Lk())){if(Yi(y,l))return R;++R}}else if(l!=null){for(T=0;T<n.i;++T)if(y=g[T],O.am(y.Lk())){if(Yi(l,y.md()))return R;++R}if(d){for(R=0,x=0;x<n.i;++x)if(y=g[x],O.am(y.Lk())){if(Ze(l)===Ze(Zhe(n,v(y.md(),58))))return R;++R}}}else for(x=0;x<n.i;++x)if(y=g[x],O.am(y.Lk())){if(y.md()==null)return R;++R}return-1}function pkr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le;if(l.Xh(i)&&(D=(re=i,re?v(d,54).gi(re):null),D))if(le=l.Nh(i,n.a),ae=i.t,ae>1||ae==-1)if(q=v(le,71),J=v(D,71),q.dc())J.$b();else for(x=!!sl(i),y=0,T=n.a?q.Kc():q.Ii();T.Ob();)O=v(T.Pb(),58),g=v(j1(n,O),58),g?(x?(R=J.dd(g),R==-1?J.Gi(y,g):y!=R&&J.Ui(y,g)):J.Gi(y,g),++y):n.b&&!x&&(J.Gi(y,O),++y);else le==null?D.Wb(null):(g=j1(n,le),g==null?n.b&&!sl(i)&&D.Wb(le):D.Wb(g))}function gkr(n,i){var l,d,g,y,x,T,R,O;for(l=new xvt,g=new yr(_r(Hs(i).a.Kc(),new S));zr(g);)if(d=v(Rr(g),18),!Jo(d)&&(T=d.c.i,zDe(T,gte))){if(O=sPe(n,T,gte,pte),O==-1)continue;l.b=u.Math.max(l.b,O),!l.a&&(l.a=new Ot),Lt(l.a,T)}for(x=new yr(_r(os(i).a.Kc(),new S));zr(x);)if(y=v(Rr(x),18),!Jo(y)&&(R=y.d.i,zDe(R,pte))){if(O=sPe(n,R,pte,gte),O==-1)continue;l.d=u.Math.max(l.d,O),!l.c&&(l.c=new Ot),Lt(l.c,R)}return l}function mkr(n,i,l,d){var g,y,x,T,R,O,D;if(l.d.i!=i.i){for(g=new Jm(n),g_(g,(lr(),Ws)),_t(g,(At(),Ji),l),_t(g,(qt(),Qa),(co(),su)),jn(d.c,g),x=new zc,rc(x,g),Bs(x,(Bt(),cr)),T=new zc,rc(T,g),Bs(T,gr),D=l.d,lo(l,x),y=new NE,Ul(y,l),_t(y,Nl,null),Uo(y,T),lo(y,D),O=new go(l.b,0);O.b<O.d.gc();)R=(Tr(O.b<O.d.gc()),v(O.d.Xb(O.c=O.b++),72)),Ze(oe(R,pg))===Ze((W1(),s3))&&(_t(R,_6,l),ld(O),Lt(y.b,R));GVt(g,x,T)}}function bkr(n,i,l,d){var g,y,x,T,R,O,D;if(l.c.i!=i.i)for(g=new Jm(n),g_(g,(lr(),Ws)),_t(g,(At(),Ji),l),_t(g,(qt(),Qa),(co(),su)),jn(d.c,g),x=new zc,rc(x,g),Bs(x,(Bt(),cr)),T=new zc,rc(T,g),Bs(T,gr),lo(l,x),y=new NE,Ul(y,l),_t(y,Nl,null),Uo(y,T),lo(y,i),GVt(g,x,T),O=new go(l.b,0);O.b<O.d.gc();)R=(Tr(O.b<O.d.gc()),v(O.d.Xb(O.c=O.b++),72)),D=v(oe(R,pg),278),D==(W1(),s3)&&(ya(R,_6)||_t(R,_6,l),ld(O),Lt(y.b,R))}function uWt(n){uI();var i,l,d,g;if(i=Ps(n),n<XM.length)return XM[i];if(n<=50)return mG((eg(),_be),i);if(n<=py)return Ok(mG(f6[1],i),i);if(n>1e6)throw _e(new NK("power of ten too big"));if(n<=qi)return Ok(mG(f6[1],i),i);for(d=mG(f6[1],qi),g=d,l=xc(n-qi),i=Ps(n%qi);Oc(l,qi)>0;)g=HT(g,d),l=zf(l,qi);for(g=HT(g,mG(f6[1],i)),g=Ok(g,qi),l=xc(n-qi);Oc(l,qi)>0;)g=Ok(g,qi),l=zf(l,qi);return g=Ok(g,i),g}function hWt(n){var i,l,d,g,y,x,T,R,O,D;for(R=new me(n.a);R.a<R.c.c.length;)if(T=v(pe(R),10),T.k==(lr(),hs)&&(g=v(oe(T,(At(),vc)),64),g==(Bt(),gr)||g==cr))for(d=new yr(_r(Qm(T).a.Kc(),new S));zr(d);)l=v(Rr(d),18),i=l.a,i.b!=0&&(O=l.c,O.i==T&&(y=(Tr(i.b!=0),v(i.a.a.c,8)),y.b=ac(Te(xe(Vs,1),kt,8,0,[O.i.n,O.n,O.a])).b),D=l.d,D.i==T&&(x=(Tr(i.b!=0),v(i.c.b.c,8)),x.b=ac(Te(xe(Vs,1),kt,8,0,[D.i.n,D.n,D.a])).b))}function uM(n,i,l,d){var g,y,x;if(this.j=new Ot,this.k=new Ot,this.b=new Ot,this.c=new Ot,this.e=new fk,this.i=new ah,this.f=new Cue,this.d=new Ot,this.g=new Ot,Lt(this.b,n),Lt(this.b,i),this.e.c=u.Math.min(n.a,i.a),this.e.d=u.Math.min(n.b,i.b),this.e.b=u.Math.abs(n.a-i.a),this.e.a=u.Math.abs(n.b-i.b),g=v(oe(d,(qt(),Nl)),75),g)for(x=Ur(g,0);x.b!=x.d.c;)y=v(Fr(x),8),t9e(y.a,n.a)&&pi(this.i,y);l&&Lt(this.j,l),Lt(this.k,d)}function ykr(n,i,l,d){var g,y,x,T,R,O,D;for(T=-1,D=new me(n);D.a<D.c.c.length;)O=v(pe(D),118),O.g=T--,g=ti(kQ(fQ(Ki(new xn(null,new Nn(O.f,16)),new Hwt),new Vwt)).d),y=ti(kQ(fQ(Ki(new xn(null,new Nn(O.k,16)),new Ywt),new jwt)).d),x=g,R=y,d||(x=ti(kQ(fQ(new xn(null,new Nn(O.f,16)),new Wwt)).d),R=ti(kQ(fQ(new xn(null,new Nn(O.k,16)),new Gwt)).d)),O.d=x,O.a=g,O.i=R,O.b=y,R==0?qa(l,O,l.c.b,l.c):x==0&&qa(i,O,i.c.b,i.c)}function Qk(n,i){var l,d,g,y,x,T;if(n.k==(lr(),Pc)&&(l=n.k==Pc&&!VR(Ki(v(oe(n,(At(),oP)),15).Oc(),new PR(new L6e))).Bd((w_(),p6))?(Id(),hH):i,_t(n,(At(),E6),l),l!=(Id(),m2)))for(d=v(oe(n,Ji),18),T=We(at(oe(d,(qt(),vy)))),x=0,l==im?x=n.o.b-u.Math.ceil(T/2):l==hH&&(x=u.Math.ceil(n.o.b-We(at(oe(So(n),U5)))-T)/2,n.o.b-=We(at(oe(So(n),U5))),n.o.b-=T),y=new me(n.j);y.a<y.c.c.length;)g=v(pe(y),12),g.n.b=x}function dWt(n,i,l){var d,g,y,x,T,R,O,D,q;for(g=!0,x=new me(n.b);x.a<x.c.c.length;){for(y=v(pe(x),30),O=Ss,D=null,R=new me(y.a);R.a<R.c.c.length;)if(T=v(pe(R),10),q=We(i.p[T.p])+We(i.d[T.p])-T.d.d,d=We(i.p[T.p])+We(i.d[T.p])+T.o.b+T.d.a,q>O&&d>O)D=T,O=We(i.p[T.p])+We(i.d[T.p])+T.o.b+T.d.a;else{g=!1,l._g()&&l.bh("bk node placement breaks on "+T+" which should have been after "+D);break}if(!g)break}return l._g()&&l.bh(i+" is feasible: "+g),g}function OPe(n,i,l,d){var g,y,x,T,R,O,D,q,J;if(y=new Jm(n),g_(y,(lr(),iu)),_t(y,(qt(),Qa),(co(),su)),g=0,i){for(x=new zc,_t(x,(At(),Ji),i),_t(y,Ji,i.i),Bs(x,(Bt(),cr)),rc(x,y),J=Xp(i.e),O=J,D=0,q=O.length;D<q;++D)R=O[D],lo(R,x);_t(i,kh,y),++g}if(l){for(T=new zc,_t(y,(At(),Ji),l.i),_t(T,Ji,l),Bs(T,(Bt(),gr)),rc(T,y),J=Xp(l.g),O=J,D=0,q=O.length;D<q;++D)R=O[D],Uo(R,T);_t(l,kh,y),++g}return _t(y,(At(),jte),Nt(g)),jn(d.c,y),y}function vkr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(l=(O=new Dm(n.c.b).a.vc().Kc(),new FS(O));l.a.Ob();)i=(T=v(l.a.Pb(),44),v(T.md(),143)),g=i.a,g==null&&(g=""),d=Vor(n.c,g),!d&&g.length==0&&(d=Lyr(n)),d&&!f4(d.c,i,!1)&&pi(d.c,i);for(x=Ur(n.a,0);x.b!=x.d.c;)y=v(Fr(x),487),D=bfe(n.c,y.a),re=bfe(n.c,y.b),D&&re&&pi(D.c,new Ms(re,y.c));for(xd(n.a),J=Ur(n.b,0);J.b!=J.d.c;)q=v(Fr(J),487),i=Hor(n.c,q.a),R=bfe(n.c,q.b),i&&R&&Ear(i,R,q.c);xd(n.b)}function _kr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;y=new iU(n),x=new Sqt,g=(pz(x.g),pz(x.j),xh(x.b),pz(x.d),pz(x.i),xh(x.k),xh(x.c),xh(x.e),re=aVt(x,y,null),eYt(x,y),re),i&&(O=new iU(i),T=Rkr(O),eMe(g,Te(xe(Wje,1),Yn,536,0,[T]))),J=!1,q=!1,l&&(O=new iU(l),Oee in O.a&&(J=Um(O,Oee).qe().a),GZt in O.a&&(q=Um(O,GZt).qe().a)),D=b7t(s$t(new tk,J),q),rSr(new Mxt,g,D),Oee in y.a&&c1(y,Oee,null),(J||q)&&(R=new nk,jjt(D,R,J,q),c1(y,Oee,R)),d=new mkt(x),zbr(new m8e(g),d)}function wkr(n,i,l){var d,g,y,x,T,R,O,D,q;for(x=new Rqt,O=Te(xe(Wr,1),vi,28,15,[0]),g=-1,y=0,d=0,R=0;R<n.b.c.length;++R)if(D=v(Yt(n.b,R),443),D.b>0){if(g<0&&D.a&&(g=R,y=O[0],d=0),g>=0){if(T=D.b,R==g&&(T-=d++,T==0))return 0;if(!gKt(i,O,D,T,x)){R=g-1,O[0]=y;continue}}else if(g=-1,!gKt(i,O,D,0,x))return 0}else{if(g=-1,Do(D.c,0)==32){if(q=O[0],mFt(i,O),O[0]>q)continue}else if(ifr(i,D.c,O[0])){O[0]+=D.c.length;continue}return 0}return sRr(x,l)?O[0]:0}function Ekr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=new rQ(new eCt(l)),T=st(Wh,Qg,28,n.f.e.c.length,16,1),gNe(T,T.length),l[i.a]=0,O=new me(n.f.e);O.a<O.c.c.length;)R=v(pe(O),153),R.a!=i.a&&(l[R.a]=qi),_k(iI(D,R),SI);for(;D.b.c.length!=0;)for(q=v(Bfe(D),153),T[q.a]=!0,y=hNt(new Kue(n.b,q),0);y.c;)g=v(QOe(y),290),J=D_r(g,q),!T[J.a]&&(ya(g,(iG(),fte))?x=We(at(oe(g,fte))):x=n.c,d=l[q.a]+x,d<l[J.a]&&(l[J.a]=d,A$t(D,J),_k(iI(D,J),SI)))}function xkr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae;for(x=n.o,d=st(Wr,vi,28,x,15,1),g=st(Wr,vi,28,x,15,1),l=n.p,i=st(Wr,vi,28,l,15,1),y=st(Wr,vi,28,l,15,1),O=0;O<x;O++){for(q=0;q<l&&!e5(n,O,q);)++q;d[O]=q}for(D=0;D<x;D++){for(q=l-1;q>=0&&!e5(n,D,q);)--q;g[D]=q}for(re=0;re<l;re++){for(T=0;T<x&&!e5(n,T,re);)++T;i[re]=T}for(ae=0;ae<l;ae++){for(T=x-1;T>=0&&!e5(n,T,ae);)--T;y[ae]=T}for(R=0;R<x;R++)for(J=0;J<l;J++)R<y[J]&&R>i[J]&&J<g[R]&&J>d[R]&&CJ(n,R,J,!1,!0)}function LPe(n){var i,l,d,g,y,x,T,R;l=Vt(Ht(oe(n,(A0(),cnn)))),y=n.a.c.d,T=n.a.d.d,l?(x=Vp($s(new Ct(T.a,T.b),y),.5),R=Vp(Eo(n.e),.5),i=$s(Hi(new Ct(y.a,y.b),x),R),G8e(n.d,i)):(g=We(at(oe(n.a,ynn))),d=n.d,y.a>=T.a?y.b>=T.b?(d.a=T.a+(y.a-T.a)/2+g,d.b=T.b+(y.b-T.b)/2-g-n.e.b):(d.a=T.a+(y.a-T.a)/2+g,d.b=y.b+(T.b-y.b)/2+g):y.b>=T.b?(d.a=y.a+(T.a-y.a)/2+g,d.b=T.b+(y.b-T.b)/2+g):(d.a=y.a+(T.a-y.a)/2+g,d.b=y.b+(T.b-y.b)/2-g-n.e.b))}function hM(n){var i,l,d,g,y,x,T,R;if(!n.f){if(R=new Y6e,T=new Y6e,i=eB,x=i.a.zc(n,i),x==null){for(y=new mr(Fl(n));y.e!=y.i.gc();)g=v(wr(y),29),Ka(R,hM(g));i.a.Bc(n)!=null,i.a.gc()==0}for(d=(!n.s&&(n.s=new vt(Ju,n,21,17)),new mr(n.s));d.e!=d.i.gc();)l=v(wr(d),179),$e(l,102)&&Yr(T,v(l,19));h4(T),n.r=new r9t(n,(v(ze(bt((Mv(),Zn).o),6),19),T.i),T.g),Ka(R,n.r),h4(R),n.f=new NT((v(ze(bt(Zn.o),5),19),R.i),R.g),$h(n).b&=-3}return n.f}function fWt(n){dE(n,new H_(cE(sE(lE(oE(new f_,X_),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new xr))),It(n,X_,bge,zt(tGe)),It(n,X_,yge,zt(Fbe)),It(n,X_,s6,zt(Wtn)),It(n,X_,rx,zt(eGe)),It(n,X_,wBe,zt(Ztn)),It(n,X_,EBe,zt(Qtn)),It(n,X_,_Be,zt(Jtn)),It(n,X_,xBe,zt(Xtn)),It(n,X_,IBe,zt(Ktn)),It(n,X_,NBe,zt(Bbe)),It(n,X_,OBe,zt(Jze)),It(n,X_,LBe,zt(ote))}function IJ(){IJ=z,wKe=Te(xe(Tf,1),rg,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Gun=new RegExp(`[ 	
\r\f]+`);try{QP=Te(xe(iIr,1),Yn,2114,0,[new oU((c8e(),PZ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",HU((IK(),IK(),jM))))),new oU(PZ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",HU(jM))),new oU(PZ("yyyy-MM-dd'T'HH:mm:ss",HU(jM))),new oU(PZ("yyyy-MM-dd'T'HH:mm",HU(jM))),new oU(PZ("yyyy-MM-dd",HU(jM)))])}catch(n){if(n=Da(n),!$e(n,82))throw _e(n)}}function Skr(n,i){var l,d,g,y;if(g=Gh(n.d,1)!=0,d=fPe(n,i),d==0&&Vt(Ht(oe(i.j,(At(),c2)))))return 0;!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,P5)))||Ze(oe(i.j,(qt(),nm)))===Ze((Zp(),wy))?i.c.mg(i.e,g):g=Vt(Ht(oe(i.j,c2))),_G(n,i,g,!0),Vt(Ht(oe(i.j,P5)))&&_t(i.j,P5,(Qn(),!1)),Vt(Ht(oe(i.j,c2)))&&(_t(i.j,c2,(Qn(),!1)),_t(i.j,P5,!0)),l=fPe(n,i);do{if(S9e(n),l==0)return 0;g=!g,y=l,_G(n,i,g,!1),l=fPe(n,i)}while(y>l);return y}function pWt(n,i){var l,d,g,y;if(g=Gh(n.d,1)!=0,d=uJ(n,i),d==0&&Vt(Ht(oe(i.j,(At(),c2)))))return 0;!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,P5)))||Ze(oe(i.j,(qt(),nm)))===Ze((Zp(),wy))?i.c.mg(i.e,g):g=Vt(Ht(oe(i.j,c2))),_G(n,i,g,!0),Vt(Ht(oe(i.j,P5)))&&_t(i.j,P5,(Qn(),!1)),Vt(Ht(oe(i.j,c2)))&&(_t(i.j,c2,(Qn(),!1)),_t(i.j,P5,!0)),l=uJ(n,i);do{if(S9e(n),l==0)return 0;g=!g,y=l,_G(n,i,g,!1),l=uJ(n,i)}while(y>l);return y}function DPe(n,i,l,d){var g,y,x,T,R,O,D,q,J;return R=$s(new Ct(l.a,l.b),n),O=R.a*i.b-R.b*i.a,D=i.a*d.b-i.b*d.a,q=(R.a*d.b-R.b*d.a)/D,J=O/D,D==0?O==0?(g=Hi(new Ct(l.a,l.b),Vp(new Ct(d.a,d.b),.5)),y=$v(n,g),x=$v(Hi(new Ct(n.a,n.b),i),g),T=u.Math.sqrt(d.a*d.a+d.b*d.b)*.5,y<x&&y<=T?new Ct(n.a,n.b):x<=T?Hi(new Ct(n.a,n.b),i):null):null:q>=0&&q<=1&&J>=0&&J<=1?Hi(new Ct(n.a,n.b),Vp(new Ct(i.a,i.b),q)):null}function Tkr(n,i,l){var d,g,y,x,T;if(d=v(oe(n,(qt(),Gye)),21),l.a>i.a&&(d.Hc((q_(),PP))?n.c.a+=(l.a-i.a)/2:d.Hc(BP)&&(n.c.a+=l.a-i.a)),l.b>i.b&&(d.Hc((q_(),$P))?n.c.b+=(l.b-i.b)/2:d.Hc(FP)&&(n.c.b+=l.b-i.b)),v(oe(n,(At(),au)),21).Hc((cl(),wf))&&(l.a>i.a||l.b>i.b))for(T=new me(n.a);T.a<T.c.c.length;)x=v(pe(T),10),x.k==(lr(),hs)&&(g=v(oe(x,vc),64),g==(Bt(),gr)?x.n.a+=l.a-i.a:g==Mr&&(x.n.b+=l.b-i.b));y=n.d,n.f.a=l.a-y.b-y.c,n.f.b=l.b-y.d-y.a}function Ckr(n,i,l){var d,g,y,x,T;if(d=v(oe(n,(qt(),Gye)),21),l.a>i.a&&(d.Hc((q_(),PP))?n.c.a+=(l.a-i.a)/2:d.Hc(BP)&&(n.c.a+=l.a-i.a)),l.b>i.b&&(d.Hc((q_(),$P))?n.c.b+=(l.b-i.b)/2:d.Hc(FP)&&(n.c.b+=l.b-i.b)),v(oe(n,(At(),au)),21).Hc((cl(),wf))&&(l.a>i.a||l.b>i.b))for(x=new me(n.a);x.a<x.c.c.length;)y=v(pe(x),10),y.k==(lr(),hs)&&(g=v(oe(y,vc),64),g==(Bt(),gr)?y.n.a+=l.a-i.a:g==Mr&&(y.n.b+=l.b-i.b));T=n.d,n.f.a=l.a-T.b-T.c,n.f.b=l.b-T.d-T.a}function Akr(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(i=kVt(n),D=(T=new m_(i).a.vc().Kc(),new vK(T));D.a.Ob();){for(O=(g=v(D.a.Pb(),44),v(g.ld(),10)),q=0,J=0,q=O.d.d,J=O.o.b+O.d.a,n.d[O.p]=0,l=O;(y=n.a[l.p])!=O;)d=E2r(l,y),R=0,n.c==(Kp(),Ey)?R=d.d.n.b+d.d.a.b-d.c.n.b-d.c.a.b:R=d.c.n.b+d.c.a.b-d.d.n.b-d.d.a.b,x=We(n.d[l.p])+R,n.d[y.p]=x,q=u.Math.max(q,y.d.d-x),J=u.Math.max(J,x+y.o.b+y.d.a),l=y;l=O;do n.d[l.p]=We(n.d[l.p])+q,l=n.a[l.p];while(l!=O);n.b[O.p]=q+J}}function dM(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=0,x=n.t,g=0,d=0,R=0,J=0,q=0,l&&(n.n.c.length=0,Lt(n.n,new SQ(n.s,n.t,n.i))),T=0,D=new me(n.b);D.a<D.c.c.length;)O=v(pe(D),27),y+O.g+(T>0?n.i:0)>i&&R>0&&(y=0,x+=R+n.i,g=u.Math.max(g,J),d+=R+n.i,R=0,J=0,l&&(++q,Lt(n.n,new SQ(n.s,x,n.i))),T=0),J+=O.g+(T>0?n.i:0),R=u.Math.max(R,O.f),l&&aDe(v(Yt(n.n,q),209),O),y+=O.g+(T>0?n.i:0),++T;return g=u.Math.max(g,J),d+=R,l&&(n.r=g,n.d=d,cDe(n.j)),new rf(n.s,n.t,g,d)}function ipe(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(n.b=!1,q=ka,R=Ss,J=ka,O=Ss,d=n.e.a.ec().Kc();d.Ob();)for(l=v(d.Pb(),272),g=l.a,q=u.Math.min(q,g.c),R=u.Math.max(R,g.c+g.b),J=u.Math.min(J,g.d),O=u.Math.max(O,g.d+g.a),x=new me(l.c);x.a<x.c.c.length;)y=v(pe(x),407),i=y.a,i.a?(D=g.d+y.b.b,T=D+y.c,J=u.Math.min(J,D),O=u.Math.max(O,T)):(D=g.c+y.b.a,T=D+y.c,q=u.Math.min(q,D),R=u.Math.max(R,T));n.a=new Ct(R-q,O-J),n.c=new Ct(q+n.d.a,J+n.d.b)}function u5(n){var i,l,d,g,y,x,T,R;if(!n.a){if(n.o=null,R=new Mkt(n),i=new BSt,l=eB,T=l.a.zc(n,l),T==null){for(x=new mr(Fl(n));x.e!=x.i.gc();)y=v(wr(x),29),Ka(R,u5(y));l.a.Bc(n)!=null,l.a.gc()==0}for(g=(!n.s&&(n.s=new vt(Ju,n,21,17)),new mr(n.s));g.e!=g.i.gc();)d=v(wr(g),179),$e(d,331)&&Yr(i,v(d,35));h4(i),n.k=new i9t(n,(v(ze(bt((Mv(),Zn).o),7),19),i.i),i.g),Ka(R,n.k),h4(R),n.a=new NT((v(ze(bt(Zn.o),4),19),R.i),R.g),$h(n).b&=-2}return n.a}function MPe(n,i,l,d){var g,y,x,T,R,O,D;if(D=Iu(n.e.Dh(),i),g=0,y=v(n.g,124),R=null,al(),v(i,69).xk()){for(T=0;T<n.i;++T)if(x=y[T],D.am(x.Lk())){if(Yi(x,l)){R=x;break}++g}}else if(l!=null){for(T=0;T<n.i;++T)if(x=y[T],D.am(x.Lk())){if(Yi(l,x.md())){R=x;break}++g}}else for(T=0;T<n.i;++T)if(x=y[T],D.am(x.Lk())){if(x.md()==null){R=x;break}++g}return R&&(id(n.e)&&(O=i.Jk()?new ffe(n.e,4,i,l,null,g,!0):Bv(n,i.tk()?2:1,i,l,i.ik(),-1,!0),d?d.nj(O):d=O),d=xG(n,R,d)),d}function ape(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae,le;switch(ae=0,le=0,R=g.c,T=g.b,D=l.f,re=l.g,i.g){case 0:ae=d.i+d.g+x,n.c?le=YEr(ae,y,d,x):le=d.j,J=u.Math.max(R,ae+re),O=u.Math.max(T,le+D);break;case 1:le=d.j+d.f+x,n.c?ae=VEr(le,y,d,x):ae=d.i,J=u.Math.max(R,ae+re),O=u.Math.max(T,le+D);break;case 2:ae=R+x,le=0,J=R+x+re,O=u.Math.max(T,D);break;case 3:ae=0,le=T+x,J=u.Math.max(R,re),O=T+x+D;break;default:throw _e(new ar("IllegalPlacementOption."))}return q=new YLe(n.a,J,O,i,ae,le),q}function kkr(n){var i,l,d,g,y,x,T,R,O,D,q,J;if(T=n.d,q=v(oe(n,(At(),S6)),15),i=v(oe(n,v6),15),!(!q&&!i)){if(y=We(at(p4(n,(qt(),Qye)))),x=We(at(p4(n,sVe))),J=0,q){for(O=0,g=q.Kc();g.Ob();)d=v(g.Pb(),10),O=u.Math.max(O,d.o.b),J+=d.o.a;J+=y*(q.gc()-1),T.d+=O+x}if(l=0,i){for(O=0,g=i.Kc();g.Ob();)d=v(g.Pb(),10),O=u.Math.max(O,d.o.b),l+=d.o.a;l+=y*(i.gc()-1),T.a+=O+x}R=u.Math.max(J,l),R>n.o.a&&(D=(R-n.o.a)/2,T.b=u.Math.max(T.b,D),T.c=u.Math.max(T.c,D))}}function Rkr(n){var i,l,d,g,y,x,T,R;for(y=new cMt,asr(y,(Fk(),Rcn)),d=(g=Xfe(n,st(Xt,kt,2,0,6,1)),new hL(new wh(new Xue(n,g).b)));d.b<d.d.gc();)l=(Tr(d.b<d.d.gc()),ai(d.d.Xb(d.c=d.b++))),x=GPe(w2,l),x&&(i=Um(n,l),i.te()?T=i.te().a:i.qe()?T=""+i.qe().a:i.re()?T=""+i.re().a:T=i.Ib(),R=UPe(x,T),R!=null&&((oh(x.j,(d1(),Fs))||oh(x.j,Hn))&&zz(Ffe(y,Pi),x,R),oh(x.j,mg)&&zz(Ffe(y,ss),x,R),oh(x.j,pw)&&zz(Ffe(y,Oh),x,R),oh(x.j,Sy)&&zz(Ffe(y,wl),x,R)));return y}function AG(n,i,l){var d,g,y,x,T,R,O,D;if(g=v(n.g,124),tb(n.e,i))return al(),v(i,69).xk()?new VX(i,n):new DU(i,n);for(O=Iu(n.e.Dh(),i),d=0,T=0;T<n.i;++T){if(y=g[T],x=y.Lk(),O.am(x)){if(al(),v(i,69).xk())return y;if(x==(Kk(),P6)||x==M6){for(R=new Ed(Kl(y.md()));++T<n.i;)y=g[T],x=y.Lk(),(x==P6||x==M6)&&bi(R,Kl(y.md()));return gIe(v(i.Hk(),156),R.a)}else return D=y.md(),D!=null&&l&&$e(i,102)&&v(i,19).Bb&el&&(D=eM(n,i,T,d,D)),D}++d}return i.ik()}function NJ(n,i,l,d){var g,y,x,T,R,O;if(R=Iu(n.e.Dh(),i),y=v(n.g,124),tb(n.e,i)){for(g=0,T=0;T<n.i;++T)if(x=y[T],R.am(x.Lk())){if(g==l)return al(),v(i,69).xk()?x:(O=x.md(),O!=null&&d&&$e(i,102)&&v(i,19).Bb&el&&(O=eM(n,i,T,g,O)),O);++g}throw _e(new Sl(FM+l+ew+g))}else{for(g=0,T=0;T<n.i;++T){if(x=y[T],R.am(x.Lk()))return al(),v(i,69).xk()?x:(O=x.md(),O!=null&&d&&$e(i,102)&&v(i,19).Bb&el&&(O=eM(n,i,T,g,O)),O);++g}return i.ik()}}function spe(){spe=z,Ben=Te(xe(Wr,1),vi,28,15,[Po,1162261467,mM,1220703125,362797056,1977326743,mM,387420489,zJ,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,mM,1291467969,1544804416,1838265625,60466176]),Fen=Te(xe(Wr,1),vi,28,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 ope(n,i){var l,d,g,y,x,T,R,O,D,q;if(x=n.e,R=i.e,R==0)return n;if(x==0)return i.e==0?i:new T_(-i.e,i.d,i.a);if(y=n.d,T=i.d,y+T==2)return l=Us(n.a[0],ul),d=Us(i.a[0],ul),x<0&&(l=ty(l)),R<0&&(d=ty(d)),eg(),bX(zf(l,d),0)?Yv(zf(l,d)):cD(Yv(ty(zf(l,d))));if(g=y!=T?y>T?1:-1:J9e(n.a,i.a,y),g==-1)q=-R,D=x==R?wfe(i.a,T,n.a,y):xfe(i.a,T,n.a,y);else if(q=x,x==R){if(g==0)return eg(),KM;D=wfe(n.a,y,i.a,T)}else D=xfe(n.a,y,i.a,T);return O=new T_(q,D.length,D),gD(O),O}function Ikr(n,i){var l,d,g,y;if(y=Qjt(i),!i.c&&(i.c=new vt(Oh,i,9,9)),ts(new xn(null,(!i.c&&(i.c=new vt(Oh,i,9,9)),new Nn(i.c,16))),new iCt(y)),g=v(oe(y,(At(),au)),21),E7r(i,g),g.Hc((cl(),wf)))for(d=new mr((!i.c&&(i.c=new vt(Oh,i,9,9)),i.c));d.e!=d.i.gc();)l=v(wr(d),123),Q7r(n,i,y,l);return v(Et(i,(qt(),uw)),181).gc()!=0&&qYt(i,y),Vt(Ht(oe(y,tVe)))&&g.Fc(Vte),ya(y,Bq)&&Z6t(new PLe(We(at(oe(y,Bq)))),y),Ze(Et(i,W4))===Ze((Km(),Cy))?w8r(n,i,y):a8r(n,i,y),y}function Nkr(n){var i,l,d,g,y,x,T,R;for(g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),x=new me(DE(d.a));x.a<x.c.c.length;)if(y=v(pe(x),10),wFt(y)&&(l=v(oe(y,(At(),gx)),313),!l.g&&l.d))for(i=l,R=l.d;R;)ejt(R.i,R.k,!1,!0),xz(i.a),xz(R.i),xz(R.k),xz(R.b),lo(R.c,i.c.d),lo(i.c,null),po(i.a,null),po(R.i,null),po(R.k,null),po(R.b,null),T=new dOe(i.i,R.a,i.e,R.j,R.f),T.k=i.k,T.n=i.n,T.b=i.b,T.c=R.c,T.g=i.g,T.d=R.d,_t(i.i,gx,T),_t(R.a,gx,T),R=R.d,i=T}function eu(n,i){var l,d,g,y,x,T,R;if(n==null)return null;if(y=n.length,y==0)return"";for(R=st(Tf,rg,28,y,15,1),mo(0,y,n.length),mo(0,y,R.length),aLt(n,0,y,R,0),l=null,T=i,g=0,x=0;g<y;g++)d=R[g],zKt(),d<=32&&Ne[d]&2?T?(!l&&(l=new Ff(n)),mor(l,g-x++)):(T=i,d!=32&&(!l&&(l=new Ff(n)),t0e(l,g-x,g-x+1," "))):T=!1;return T?l?(y=l.a.length,y>0?af(l.a,0,y-1):""):(mo(0,y-1,n.length),n.substr(0,y-1)):l?l.a:n}function Okr(n,i){var l,d,g,y,x,T,R;for(i.Ug("Sort By Input Model "+oe(n,(qt(),nm)),1),g=0,d=new me(n.b);d.a<d.c.c.length;){for(l=v(pe(d),30),R=g==0?0:g-1,T=v(Yt(n.b,R),30),x=new me(l.a);x.a<x.c.c.length;)y=v(pe(x),10),Ze(oe(y,Qa))!==Ze((co(),yw))&&Ze(oe(y,Qa))!==Ze(su)&&(Fn(),us(y.j,new szt(T,v(oe(n,nm),284),_qt(y),Vt(Ht(oe(n,zye))))),i.bh("Node "+y+" ports: "+y.j));Fn(),us(l.a,new N$t(T,v(oe(n,nm),284),v(oe(n,IHe),390))),i.bh("Layer "+g+": "+l),++g}i.Vg()}function C4(n,i){var l,d,g,y,x;if(x=v(i,138),a5(n),a5(x),x.b!=null){if(n.c=!0,n.b==null){n.b=st(Wr,vi,28,x.b.length,15,1),Gc(x.b,0,n.b,0,x.b.length);return}for(y=st(Wr,vi,28,n.b.length+x.b.length,15,1),l=0,d=0,g=0;l<n.b.length||d<x.b.length;)l>=n.b.length?(y[g++]=x.b[d++],y[g++]=x.b[d++]):d>=x.b.length?(y[g++]=n.b[l++],y[g++]=n.b[l++]):x.b[d]<n.b[l]||x.b[d]===n.b[l]&&x.b[d+1]<n.b[l+1]?(y[g++]=x.b[d++],y[g++]=x.b[d++]):(y[g++]=n.b[l++],y[g++]=n.b[l++]);n.b=y}}function Lkr(n,i){var l,d,g,y,x,T,R,O,D,q;return l=Vt(Ht(oe(n,(At(),V4)))),T=Vt(Ht(oe(i,V4))),d=v(oe(n,m1),12),R=v(oe(i,m1),12),g=v(oe(n,Kf),12),O=v(oe(i,Kf),12),D=!!d&&d==R,q=!!g&&g==O,!l&&!T?new SIe(v(pe(new me(n.j)),12).p==v(pe(new me(i.j)),12).p,D,q):(y=(!Vt(Ht(oe(n,V4)))||Vt(Ht(oe(n,Dq))))&&(!Vt(Ht(oe(i,V4)))||Vt(Ht(oe(i,Dq)))),x=(!Vt(Ht(oe(n,V4)))||!Vt(Ht(oe(n,Dq))))&&(!Vt(Ht(oe(i,V4)))||!Vt(Ht(oe(i,Dq)))),new SIe(D&&y||q&&x,D,q))}function gWt(n){var i,l,d,g,y,x,T,R;for(d=0,l=0,R=new Ea,i=0,T=new me(n.n);T.a<T.c.c.length;)x=v(pe(T),209),x.c.c.length==0?qa(R,x,R.c.b,R.c):(d=u.Math.max(d,x.d),l+=x.a+(i>0?n.i:0)),++i;for(vLe(n.n,R),n.d=l,n.r=d,n.g=0,n.f=0,n.e=0,n.o=ka,n.p=ka,y=new me(n.b);y.a<y.c.c.length;)g=v(pe(y),27),n.p=u.Math.min(n.p,g.g),n.g=u.Math.max(n.g,g.g),n.f=u.Math.max(n.f,g.f),n.o=u.Math.min(n.o,g.f),n.e+=g.f+n.i;n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),cDe(n.j)}function mWt(n){var i,l,d,g;return n.Db&64?R0e(n):(i=new Ed(hUe),d=n.k,d?bi(bi((i.a+=' "',i),d),'"'):(!n.n&&(n.n=new vt(wl,n,1,7)),n.n.i>0&&(g=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!g||bi(bi((i.a+=' "',i),g),'"'))),l=(!n.b&&(n.b=new Gn(Lr,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c.i<=1))),l?i.a+=" [":i.a+=" ",bi(i,k8e(new que,new mr(n.b))),l&&(i.a+="]"),i.a+=Tge,l&&(i.a+="["),bi(i,k8e(new que,new mr(n.c))),l&&(i.a+="]"),i.a)}function Dkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(yt=n.c,xt=i.c,l=$l(yt.a,n,0),d=$l(xt.a,i,0),Ue=v(VE(n,(ll(),Rh)).Kc().Pb(),12),mn=v(VE(n,_u).Kc().Pb(),12),je=v(VE(i,Rh).Kc().Pb(),12),Kn=v(VE(i,_u).Kc().Pb(),12),Se=Xp(Ue.e),Mt=Xp(mn.g),Me=Xp(je.e),yn=Xp(Kn.g),m4(n,d,xt),x=Me,D=0,ae=x.length;D<ae;++D)g=x[D],lo(g,Ue);for(T=yn,q=0,le=T.length;q<le;++q)g=T[q],Uo(g,mn);for(m4(i,l,yt),R=Se,J=0,de=R.length;J<de;++J)g=R[J],lo(g,je);for(y=Mt,O=0,re=y.length;O<re;++O)g=y[O],Uo(g,Kn)}function Mkr(n){var i,l,d,g,y,x,T;for(x=v(Et(n,(UT(),Y5)),27),d=new mr((!x.e&&(x.e=new Gn(ss,x,7,4)),x.e));d.e!=d.i.gc();)l=v(wr(d),74),T=new Ct(v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166).j,v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166).k),y=new Ct(v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166).b,v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166).c),g=new Ct(y.a-T.a,y.b-T.b),i=u.Math.atan2(g.b,g.a),v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84).qf((Xv(),Hve),i)}function Pkr(n,i){var l,d,g,y,x,T,R,O,D;for(i.Ug("Interactive Node Reorderer",1),D=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),T=new Ot,g=new mr(D);g.e!=g.i.gc();)l=v(wr(g),27),Y1(l,(Z1(),Qq))&&jn(T.c,l);for(y=new me(T);y.a<y.c.c.length;)l=v(pe(y),27),WQ(D,l);for(Fn(),us(T,new bxt),x=new me(T);x.a<x.c.c.length;)l=v(pe(x),27),O=v(Et(l,(Z1(),Qq)),17).a,O=u.Math.min(O,D.i),FD(D,O,l);for(R=0,d=new mr(D);d.e!=d.i.gc();)l=v(wr(d),27),sa(l,(Z1(),aje),Nt(R)),++R;i.Vg()}function PPe(n,i,l){var d,g,y,x,T,R,O,D;return u.Math.abs(i.s-i.c)<sg||u.Math.abs(l.s-l.c)<sg?0:(d=xYt(n,i.j,l.e),g=xYt(n,l.j,i.e),y=d==-1||g==-1,x=0,y?(d==-1&&(new R_((o1(),d2),l,i,1),++x),g==-1&&(new R_((o1(),d2),i,l,1),++x)):(T=QT(i.j,l.s,l.c),T+=QT(l.e,i.s,i.c),R=QT(l.j,i.s,i.c),R+=QT(i.e,l.s,l.c),O=d+16*T,D=g+16*R,O<D?new R_((o1(),n3),i,l,D-O):O>D?new R_((o1(),n3),l,i,O-D):O>0&&D>0&&(new R_((o1(),n3),i,l,0),new R_(n3,l,i,0))),x)}function Bkr(n,i,l){var d,g,y;for(n.a=new Ot,y=Ur(i.b,0);y.b!=y.d.c;){for(g=v(Fr(y),40);v(oe(g,(pc(),gg)),17).a>n.a.c.length-1;)Lt(n.a,new Ms(b5,m$e));d=v(oe(g,gg),17).a,l==(ys(),Ol)||l==ql?(g.e.a<We(at(v(Yt(n.a,d),42).a))&&vue(v(Yt(n.a,d),42),g.e.a),g.e.a+g.f.a>We(at(v(Yt(n.a,d),42).b))&&_ue(v(Yt(n.a,d),42),g.e.a+g.f.a)):(g.e.b<We(at(v(Yt(n.a,d),42).a))&&vue(v(Yt(n.a,d),42),g.e.b),g.e.b+g.f.b>We(at(v(Yt(n.a,d),42).b))&&_ue(v(Yt(n.a,d),42),g.e.b+g.f.b))}}function bWt(n,i,l,d){var g,y,x,T,R,O,D;if(y=IZ(d),T=Vt(Ht(oe(d,(qt(),KHe)))),(T||Vt(Ht(oe(n,ane))))&&!OT(v(oe(n,Qa),101)))g=zk(y),R=xPe(n,l,l==(ll(),_u)?g:Xz(g));else switch(R=new zc,rc(R,n),i?(D=R.n,D.a=i.a-n.n.a,D.b=i.b-n.n.b,xHt(D,0,0,n.o.a,n.o.b),Bs(R,Fjt(R,y))):(g=zk(y),Bs(R,l==(ll(),_u)?g:Xz(g))),x=v(oe(d,(At(),au)),21),O=R.j,y.g){case 2:case 1:(O==(Bt(),or)||O==Mr)&&x.Fc((cl(),L5));break;case 4:case 3:(O==(Bt(),gr)||O==cr)&&x.Fc((cl(),L5))}return R}function yWt(n,i){var l,d,g,y,x,T;for(x=new P_(new b_(n.f.b).a);x.b;){if(y=zE(x),g=v(y.ld(),602),i==1){if(g.Af()!=(ys(),Ef)&&g.Af()!=lp)continue}else if(g.Af()!=(ys(),Ol)&&g.Af()!=ql)continue;switch(d=v(v(y.md(),42).b,86),T=v(v(y.md(),42).a,194),l=T.c,g.Af().g){case 2:d.g.c=n.e.a,d.g.b=u.Math.max(1,d.g.b+l);break;case 1:d.g.c=d.g.c+l,d.g.b=u.Math.max(1,d.g.b-l);break;case 4:d.g.d=n.e.b,d.g.a=u.Math.max(1,d.g.a+l);break;case 3:d.g.d=d.g.d+l,d.g.a=u.Math.max(1,d.g.a-l)}}}function Fkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(T=st(Wr,vi,28,i.b.c.length,15,1),O=st(eye,wt,273,i.b.c.length,0,1),R=st(tm,gy,10,i.b.c.length,0,1),q=n.a,J=0,re=q.length;J<re;++J){for(D=q[J],le=0,x=new me(D.e);x.a<x.c.c.length;)g=v(pe(x),10),d=d8e(g.c),++T[d],ae=We(at(oe(i,(qt(),O0)))),T[d]>0&&R[d]&&(ae=PT(n.b,R[d],g)),le=u.Math.max(le,g.c.c.b+ae);for(y=new me(D.e);y.a<y.c.c.length;)g=v(pe(y),10),g.n.b=le+g.d.d,l=g.c,l.c.b=le+g.d.d+g.o.b+g.d.a,O[$l(l.b.b,l,0)]=g.k,R[$l(l.b.b,l,0)]=g}}function vWt(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(d=new yr(_r(eb(i).a.Kc(),new S));zr(d);)l=v(Rr(d),74),$e(ze((!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b),0),193)||(R=zl(v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84)),tM(l)||(x=i.i+i.g/2,T=i.j+i.f/2,D=R.i+R.g/2,q=R.j+R.f/2,J=new ho,J.a=D-x,J.b=q-T,y=new Ct(J.a,J.b),nI(y,i.g,i.f),J.a-=y.a,J.b-=y.b,x=D-J.a,T=q-J.b,O=new Ct(J.a,J.b),nI(O,R.g,R.f),J.a-=O.a,J.b-=O.b,D=x+J.a,q=T+J.b,g=o5(l,!0,!0),T8(g,x),A8(g,T),S8(g,D),C8(g,q),vWt(n,R)))}function _Wt(n){dE(n,new H_(cE(sE(lE(oE(new f_,ax),"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 Rxt))),It(n,ax,_me,zt(zne)),It(n,ax,Q$e,zt(f2e)),It(n,ax,Z$e,zt(d2e)),It(n,ax,wme,zt(Lje)),It(n,ax,Eme,zt(h2e)),It(n,ax,rx,Oje),It(n,ax,N4,8),It(n,ax,xme,zt(gcn)),It(n,ax,J$e,zt(Ije)),It(n,ax,eUe,zt(Nje)),It(n,ax,nq,(Qn(),!1))}function $kr(n,i){var l,d,g,y,x,T,R,O,D,q;for(i.Ug("Simple node placement",1),q=v(oe(n,(At(),B5)),312),T=0,y=new me(n.b);y.a<y.c.c.length;){for(d=v(pe(y),30),x=d.c,x.b=0,l=null,O=new me(d.a);O.a<O.c.c.length;)R=v(pe(O),10),l&&(x.b+=qLe(R,l,q.c)),x.b+=R.d.d+R.o.b+R.d.a,l=R;T=u.Math.max(T,x.b)}for(g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),x=d.c,D=(T-x.b)/2,l=null,O=new me(d.a);O.a<O.c.c.length;)R=v(pe(O),10),l&&(D+=qLe(R,l,q.c)),D+=R.d.d,R.n.b=D,D+=R.o.b+R.d.a,l=R;i.Vg()}function Ukr(n,i){var l,d,g,y;for(Wgr(i.b.j),ts(Bl(new xn(null,new Nn(i.d,16)),new j_t),new W_t),y=new me(i.d);y.a<y.c.c.length;){switch(g=v(pe(y),105),g.e.g){case 0:l=v(Yt(g.j,0),113).d.j,a7e(g,v(ad(Ek(v(Zi(g.k,l),15).Oc(),R5)),113)),i7e(g,v(ad(QS(v(Zi(g.k,l),15).Oc(),R5)),113));break;case 1:d=dDe(g),a7e(g,v(ad(Ek(v(Zi(g.k,d[0]),15).Oc(),R5)),113)),i7e(g,v(ad(QS(v(Zi(g.k,d[1]),15).Oc(),R5)),113));break;case 2:CSr(n,g);break;case 3:qTr(g);break;case 4:jTr(n,g)}Kgr(g)}n.a=null}function lpe(n,i,l){var d,g,y,x,T,R,O,D;return d=n.a.o==(G1(),sp)?ka:Ss,T=Vjt(n,new f8t(i,l)),!T.a&&T.c?(pi(n.d,T),d):T.a?(g=T.a.c,R=T.a.d,l?(O=n.a.c==(Kp(),Cx)?R:g,y=n.a.c==Cx?g:R,x=n.a.g[y.i.p],D=We(n.a.p[x.p])+We(n.a.d[y.i.p])+y.n.b+y.a.b-We(n.a.d[O.i.p])-O.n.b-O.a.b):(O=n.a.c==(Kp(),Ey)?R:g,y=n.a.c==Ey?g:R,D=We(n.a.p[n.a.g[y.i.p].p])+We(n.a.d[y.i.p])+y.n.b+y.a.b-We(n.a.d[O.i.p])-O.n.b-O.a.b),n.a.n[n.a.g[g.i.p].p]=(Qn(),!0),n.a.n[n.a.g[R.i.p].p]=!0,D):d}function zkr(n,i,l,d){var g,y,x,T,R,O,D,q;if(d.gc()==0)return!1;if(R=(al(),v(i,69).xk()),x=R?d:new PE(d.gc()),tb(n.e,i)){if(i.Si())for(D=d.Kc();D.Ob();)O=D.Pb(),RJ(n,i,O,$e(i,102)&&(v(i,19).Bb&el)!=0)||(y=zg(i,O),x.Fc(y));else if(!R)for(D=d.Kc();D.Ob();)O=D.Pb(),y=zg(i,O),x.Fc(y)}else{for(q=Iu(n.e.Dh(),i),g=v(n.g,124),T=0;T<n.i;++T)if(y=g[T],q.am(y.Lk()))throw _e(new ar(hq));if(d.gc()>1)throw _e(new ar(hq));R||(y=zg(i,d.Kc().Pb()),x.Fc(y))}return $9e(n,sMe(n,i,l),x)}function OJ(n,i,l){var d,g,y,x,T,R,O,D;if(tb(n.e,i))R=(al(),v(i,69).xk()?new VX(i,n):new DU(i,n)),dJ(R.c,R.b),WL(R,v(l,16));else{for(D=Iu(n.e.Dh(),i),d=v(n.g,124),x=0;x<n.i;++x)if(g=d[x],y=g.Lk(),D.am(y)){if(y==(Kk(),P6)||y==M6){for(O=nDe(n,i,l),T=x,O?x4(n,x):++x;x<n.i;)g=d[x],y=g.Lk(),y==P6||y==M6?x4(n,x):++x;O||v(JT(n,T,zg(i,l)),76)}else nDe(n,i,l)?x4(n,x):v(JT(n,x,(al(),v(i,69).xk()?v(l,76):zg(i,l))),76);return}nDe(n,i,l)||Yr(n,(al(),v(i,69).xk()?v(l,76):zg(i,l)))}}function wWt(n,i,l){var d,g,y,x,T,R,O,D;return Yi(l,n.b)||(n.b=l,y=new Vr,x=v(Wl(Bl(new xn(null,new Nn(l.f,16)),y),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21),n.e=!0,n.f=!0,n.c=!0,n.d=!0,g=x.Hc((qk(),yq)),d=x.Hc(vq),g&&!d&&(n.f=!1),!g&&d&&(n.d=!1),g=x.Hc(bq),d=x.Hc(_q),g&&!d&&(n.c=!1),!g&&d&&(n.e=!1)),D=v(n.a.Ve(i,l),42),R=v(D.a,17).a,O=v(D.b,17).a,T=!1,R<0?n.c||(T=!0):n.e||(T=!0),O<0?n.d||(T=!0):n.f||(T=!0),T?wWt(n,D,l):D}function EWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(q=0;q<i.length;q++){for(T=n.Kc();T.Ob();)y=v(T.Pb(),230),y.hg(q,i);for(J=0;J<i[q].length;J++){for(R=n.Kc();R.Ob();)y=v(R.Pb(),230),y.ig(q,J,i);for(le=i[q][J].j,re=0;re<le.c.length;re++){for(O=n.Kc();O.Ob();)y=v(O.Pb(),230),y.jg(q,J,re,i);for(ae=($n(re,le.c.length),v(le.c[re],12)),l=0,g=new V1(ae.b);nc(g.a)||nc(g.b);)for(d=v(nc(g.a)?pe(g.a):pe(g.b),18),D=n.Kc();D.Ob();)y=v(D.Pb(),230),y.gg(q,J,re,l++,d,i)}}}for(x=n.Kc();x.Ob();)y=v(x.Pb(),230),y.fg()}function Gkr(n,i){var l,d,g,y,x,T,R;for(n.b=We(at(oe(i,(qt(),$5)))),n.c=We(at(oe(i,dw))),n.d=v(oe(i,jye),350),n.a=v(oe(i,Jte),282),R_r(i),T=v(Wl(Ki(Ki(ic(ic(new xn(null,new Nn(i.b,16)),new uvt),new hvt),new dvt),new fvt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),g=T.Kc();g.Ob();)l=v(g.Pb(),18),x=v(oe(l,(At(),sw)),15),x.Jc(new pCt(n)),_t(l,sw,null);for(d=T.Kc();d.Ob();)l=v(d.Pb(),18),R=v(oe(l,(At(),Zqe)),18),y=v(oe(l,F5),15),r8r(n,y,R),_t(l,F5,null)}function cpe(n,i){var l,d,g,y,x,T,R;if(n.a){if(T=n.a.xe(),R=null,T!=null?i.a+=""+T:(x=n.a.mk(),x!=null&&(y=qp(x,Wu(91)),y!=-1?(R=(sr(y,x.length+1),x.substr(y)),i.a+=""+af(x==null?Ku:(hr(x),x),0,y)):i.a+=""+x)),n.d&&n.d.i!=0){for(g=!0,i.a+="<",d=new mr(n.d);d.e!=d.i.gc();)l=v(wr(d),89),g?g=!1:i.a+=Xo,cpe(l,i);i.a+=">"}R!=null&&(i.a+=""+R)}else n.e?(T=n.e.zb,T!=null&&(i.a+=""+T)):(i.a+="?",n.b?(i.a+=" super ",cpe(n.b,i)):n.f&&(i.a+=" extends ",cpe(n.f,i)))}function qkr(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function Hkr(n){var i,l,d,g;if(d=wpe((!n.c&&(n.c=uz(xc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return d;if(i=T9e(n)<0?1:0,l=n.e,g=(d.length+1+u.Math.abs(Ps(n.e)),new sk),i==1&&(g.a+="-"),n.e>0)if(l-=d.length-i,l>=0){for(g.a+="0.";l>iw.length;l-=iw.length)f9t(g,iw);QNt(g,iw,Ps(l)),bi(g,(sr(i,d.length+1),d.substr(i)))}else l=i-l,bi(g,af(d,i,Ps(l))),g.a+=".",bi(g,SNe(d,Ps(l)));else{for(bi(g,(sr(i,d.length+1),d.substr(i)));l<-iw.length;l+=iw.length)f9t(g,iw);QNt(g,iw,Ps(-l))}return g.a}function upe(n){var i,l,d,g,y,x,T,R,O;return!(n.k!=(lr(),is)||n.j.c.length<=1||(y=v(oe(n,(qt(),Qa)),101),y==(co(),su))||(g=(g4(),(n.q?n.q:(Fn(),Fn(),Jg))._b(wx)?d=v(oe(n,wx),203):d=v(oe(So(n),fP),203),d),g==mne)||!(g==q5||g==G5)&&(x=We(at(p4(n,pP))),i=v(oe(n,$q),140),!i&&(i=new oIe(x,x,x,x)),O=sc(n,(Bt(),cr)),R=i.d+i.a+(O.gc()-1)*x,R>n.o.b||(l=sc(n,gr),T=i.d+i.a+(l.gc()-1)*x,T>n.o.b)))}function Vkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;i.Ug("Orthogonal edge routing",1),O=We(at(oe(n,(qt(),z5)))),l=We(at(oe(n,$5))),d=We(at(oe(n,dw))),J=new Lde(0,l),de=0,x=new go(n.b,0),T=null,D=null,R=null,q=null;do D=x.b<x.d.gc()?(Tr(x.b<x.d.gc()),v(x.d.Xb(x.c=x.b++),30)):null,q=D?D.a:null,T&&(FPe(T,de),de+=T.c.a),le=T?de+d:de,ae=qPe(J,n,R,q,le),g=!T||yX(R,(wJ(),Hq)),y=!D||yX(q,(wJ(),Hq)),ae>0?(re=(ae-1)*l,T&&(re+=d),D&&(re+=d),re<O&&!g&&!y&&(re=O),de+=re):!g&&!y&&(de+=O),T=D,R=q;while(D);n.f.a=de,i.Vg()}function LJ(n,i){var l,d,g,y,x,T,R,O,D,q;if(D=null,n.d&&(D=v(Qc(n.d,i),142)),!D){if(y=n.a.vi(),q=y.i,!n.d||SL(n.d)!=q){for(R=new Br,n.d&&AD(R,n.d),O=R.f.c+R.i.c,T=O;T<q;++T)d=v(ze(y,T),142),g=ay(n.e,d).xe(),l=v(g==null?yu(R.f,null,d):qE(R.i,g,d),142),l&&l!=d&&(g==null?yu(R.f,null,l):qE(R.i,g,l));if(R.f.c+R.i.c!=q)for(x=0;x<O;++x)d=v(ze(y,x),142),g=ay(n.e,d).xe(),l=v(g==null?yu(R.f,null,d):qE(R.i,g,d),142),l&&l!=d&&(g==null?yu(R.f,null,l):qE(R.i,g,l));n.d=R}D=v(Qc(n.d,i),142)}return D}function hpe(n,i,l,d,g,y,x){var T,R,O,D,q,J,re;return q=Vt(Ht(oe(i,(qt(),XHe)))),J=null,y==(ll(),Rh)&&d.c.i==l?J=d.c:y==_u&&d.d.i==l&&(J=d.d),O=x,!O||!q||J?(D=(Bt(),lc),J?D=J.j:OT(v(oe(l,Qa),101))&&(D=y==Rh?cr:gr),R=Ykr(n,i,l,y,D,d),T=yfe((So(l),d)),y==Rh?(Uo(T,v(Yt(R.j,0),12)),lo(T,g)):(Uo(T,g),lo(T,v(Yt(R.j,0),12))),O=new kzt(d,T,R,v(oe(R,(At(),Ji)),12),y,!J)):(Lt(O.e,d),re=u.Math.max(We(at(oe(O.d,vy))),We(at(oe(d,vy)))),_t(O.d,vy,re)),Rn(n.a,d,new PX(O.d,i,y)),O}function dpe(){dpe=z;var n;NKe=new S6t,Qun=st(Xt,kt,2,0,6,1),Kun=s1($k(33,58),$k(1,26)),Xun=s1($k(97,122),$k(65,90)),CKe=$k(48,57),jun=s1(Kun,0),Wun=s1(Xun,CKe),AKe=s1(s1(0,$k(1,6)),$k(33,38)),kKe=s1(s1(CKe,$k(65,70)),$k(97,102)),Zun=s1(jun,qZ("-_.!~*'()")),Jun=s1(Wun,MZ("-_.!~*'()")),qZ(bJt),MZ(bJt),s1(Zun,qZ(";:@&=+$,")),s1(Jun,MZ(";:@&=+$,")),RKe=qZ(":/?#"),IKe=MZ(":/?#"),ZP=qZ("/?#"),JP=MZ("/?#"),n=new fs,n.a.zc("jar",n),n.a.zc("zip",n),n.a.zc("archive",n),dre=(Fn(),new zR(n))}function Ykr(n,i,l,d,g,y){var x,T,R,O,D,q;return x=null,O=d==(ll(),Rh)?y.c:y.d,R=IZ(i),O.i==l?(x=v(br(n.b,O),10),x||(x=IG(O,v(oe(l,(qt(),Qa)),101),g,XCr(O),null,O.n,O.o,R,i),_t(x,(At(),Ji),O),Ni(n.b,O,x))):(x=IG((D=new Ii,q=We(at(oe(i,(qt(),O0))))/2,zz(D,X4,q),D),v(oe(l,Qa),101),g,d==Rh?-1:1,null,new ho,new Ct(0,0),R,i),T=CEr(x,l,d),_t(x,(At(),Ji),T),Ni(n.b,T,x)),v(oe(i,(At(),au)),21).Fc((cl(),wf)),OT(v(oe(i,(qt(),Qa)),101))?_t(i,Qa,(co(),SN)):_t(i,Qa,(co(),up)),x}function gI(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;T=0,ae=0,R=EQ(n.g,n.g.length),y=n.e,x=n.j,d=n.b,g=n.c;do{for(re=0,D=new me(n.q);D.a<D.c.c.length;)O=v(pe(D),10),J=GWt(n,O),l=!0,(n.r==(qf(),Uq)||n.r==zq)&&(l=Vt(Ht(J.b))),v(J.a,17).a<0&&l?(++re,R=EQ(n.g,n.g.length),n.e=n.e+v(J.a,17).a,ae+=y-n.e,y=n.e+v(J.a,17).a,x=n.j,d=DE(n.b),g=DE(n.c)):(n.g=EQ(R,R.length),n.e=y,n.b=(ni(d),d?new Eh(d):i8(new me(d))),n.c=(ni(g),g?new Eh(g):i8(new me(g))),n.j=x);++T,q=re!=0&&Vt(Ht(i.Kb(new Ms(Nt(ae),Nt(T)))))}while(q)}function jkr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;return x=n.f,J=i.f,T=x==(rM(),A6)||x==LP,re=J==A6||J==LP,R=x==W5||x==DP,ae=J==W5||J==DP,O=x==W5||x==A6,le=J==W5||J==A6,T&&re?n.f==LP?n:i:R&&ae?n.f==DP?n:i:O&&le?(x==W5?(q=n,D=i):(q=i,D=n),y=(de=l.j+l.f,Se=q.e+d.f,Me=u.Math.max(de,Se),Ue=Me-u.Math.min(l.j,q.e),je=q.d+d.g-l.i,je*Ue),g=(yt=l.i+l.g,xt=D.d+d.g,Mt=u.Math.max(yt,xt),yn=Mt-u.Math.min(l.i,D.d),mn=D.e+d.f-l.j,yn*mn),y<=g?n.f==W5?n:i:n.f==A6?n:i):n}function xWt(n,i){var l,d,g,y,x,T,R,O,D,q;if(_t(i,(fa(),mN),0),R=v(oe(i,Tne),40),i.d.b==0)R?(D=We(at(oe(R,xy)))+n.b+_Le(n,R,i),_t(i,xy,D)):_t(i,xy,0);else{for(d=(y=Ur(new Mm(i).a.d,0),new xT(y));hU(d.a);)l=v(Fr(d.a),65).c,xWt(n,l);T=v(SX((x=Ur(new Mm(i).a.d,0),new xT(x))),40),q=v(eor((g=Ur(new Mm(i).a.d,0),new xT(g))),40),O=(We(at(oe(q,xy)))+We(at(oe(T,xy))))/2,R?(D=We(at(oe(R,xy)))+n.b+_Le(n,R,i),_t(i,xy,D),_t(i,mN,We(at(oe(i,xy)))-O),s7r(n,i)):_t(i,xy,O)}}function Wkr(n){var i,l,d,g,y,x,T,R,O,D,q;for(D=n.e.a.c.length,x=new me(n.e.a);x.a<x.c.c.length;)y=v(pe(x),125),y.j=!1;for(n.i=st(Wr,vi,28,D,15,1),n.g=st(Wr,vi,28,D,15,1),n.n=new Ot,g=0,q=new Ot,R=new me(n.e.a);R.a<R.c.c.length;)T=v(pe(R),125),T.d=g++,T.b.a.c.length==0&&Lt(n.n,T),xs(q,T.g);for(i=0,d=new me(q);d.a<d.c.c.length;)l=v(pe(d),218),l.c=i++,l.f=!1;O=q.c.length,n.b==null||n.b.length<O?(n.b=st(ao,_l,28,O,15,1),n.c=st(Wh,Qg,28,O,16,1)):_L(n.c),n.d=q,n.p=new Yhe(o4(n.d.c.length)),n.j=1}function Kkr(n,i){var l,d,g,y,x,T,R,O,D;if(!(i.e.c.length<=1)){for(n.f=i,n.d=v(oe(n.f,(iG(),dGe)),391),n.g=v(oe(n.f,mGe),17).a,n.e=We(at(oe(n.f,fGe))),n.c=We(at(oe(n.f,fte))),tLt(n.b),g=new me(n.f.c);g.a<g.c.c.length;)d=v(pe(g),290),yPe(n.b,d.c,d,null),yPe(n.b,d.d,d,null);for(T=n.f.e.c.length,n.a=E_(ao,[kt,_l],[109,28],15,[T,T],2),O=new me(n.f.e);O.a<O.c.c.length;)R=v(pe(O),153),Ekr(n,R,n.a[R.a]);for(n.i=E_(ao,[kt,_l],[109,28],15,[T,T],2),y=0;y<T;++y)for(x=0;x<T;++x)l=n.a[y][x],D=1/(l*l),n.i[y][x]=D}}function SWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(T=i.ah(),T||i.Ug(UXt,1),l=v(oe(n,(At(),Bye)),15),x=1/l.gc(),i._g())for(i.bh("ELK Layered uses the following "+l.gc()+" modules:"),re=0,J=l.Kc();J.Ob();)D=v(J.Pb(),47),d=(re<10?"0":"")+re++,i.bh("   Slot "+d+": "+__(cd(D)));for(q=l.Kc();q.Ob();){if(D=v(q.Pb(),47),i.$g())return;D.Kf(n,i.eh(x))}for(y=new me(n.b);y.a<y.c.c.length;)g=v(pe(y),30),xs(n.a,g.a),g.a.c.length=0;for(O=new me(n.a);O.a<O.c.c.length;)R=v(pe(O),10),po(R,null);n.b.c.length=0,T||i.Vg()}function Xkr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;if(O=new Ot,!ya(n,(At(),Oye)))return O;for(d=v(oe(n,Oye),15).Kc();d.Ob();)i=v(d.Pb(),10),p6r(i,n),jn(O.c,i);for(y=new me(n.b);y.a<y.c.c.length;)for(g=v(pe(y),30),T=new me(g.a);T.a<T.c.c.length;)x=v(pe(T),10),x.k==(lr(),hs)&&(R=v(oe(x,Kte),10),R&&(D=new zc,rc(D,x),q=v(oe(x,vc),64),Bs(D,q),J=v(Yt(R.j,0),12),re=new NE,Uo(re,D),lo(re,J)));for(l=new me(O);l.a<l.c.c.length;)i=v(pe(l),10),po(i,v(Yt(n.b,n.b.c.length-1),30));return O}function TWt(n,i,l){var d,g,y,x,T,R,O,D,q;for(q=new Ot,D=new nOe(0,l),y=0,aZ(D,new d0e(0,0,D,l)),g=0,O=new mr(n);O.e!=O.i.gc();)R=v(wr(O),27),d=v(Yt(D.a,D.a.c.length-1),172),T=g+R.g+(v(Yt(D.a,0),172).b.c.length==0?0:l),(T>i||Vt(Ht(Et(R,(Z1(),Zq)))))&&(g=0,y+=D.b+l,jn(q.c,D),D=new nOe(y,l),d=new d0e(0,D.f,D,l),aZ(D,d),g=0),d.b.c.length==0||!Vt(Ht(Et(Aa(R),(Z1(),t2e))))&&(R.f>=d.o&&R.f<=d.f||d.a*.5<=R.f&&d.a*1.5>=R.f)?TLe(d,R):(x=new d0e(d.s+d.r+l,D.f,D,l),aZ(D,x),TLe(x,R)),g=R.i+R.g;return jn(q.c,D),q}function fM(n){var i,l,d,g;if(!(n.b==null||n.b.length<=2)&&!n.a){for(i=0,g=0;g<n.b.length;){for(i!=g?(n.b[i]=n.b[g++],n.b[i+1]=n.b[g++]):g+=2,l=n.b[i+1];g<n.b.length&&!(l+1<n.b[g]);)if(l+1==n.b[g])n.b[i+1]=n.b[g+1],l=n.b[i+1],g+=2;else if(l>=n.b[g+1])g+=2;else if(l<n.b[g+1])n.b[i+1]=n.b[g+1],l=n.b[i+1],g+=2;else throw _e(new tc("Token#compactRanges(): Internel Error: ["+n.b[i]+","+n.b[i+1]+"] ["+n.b[g]+","+n.b[g+1]+"]"));i+=2}i!=n.b.length&&(d=st(Wr,vi,28,i,15,1),Gc(n.b,0,d,0,i),n.b=d),n.a=!0}}function Qkr(n,i){var l,d,g,y,x,T,R;for(x=wk(n.a).Kc();x.Ob();){if(y=v(x.Pb(),18),y.b.c.length>0)for(d=new Eh(v(Zi(n.a,y),21)),Fn(),us(d,new E7e(i)),g=new go(y.b,0);g.b<g.d.gc();){switch(l=(Tr(g.b<g.d.gc()),v(g.d.Xb(g.c=g.b++),72)),T=-1,v(oe(l,(qt(),pg)),278).g){case 1:T=d.c.length-1;break;case 0:T=aEr(d);break;case 2:T=0}T!=-1&&(R=($n(T,d.c.length),v(d.c[T],249)),Lt(R.b.b,l),v(oe(So(R.b.c.i),(At(),au)),21).Fc((cl(),rN)),v(oe(So(R.b.c.i),au),21).Fc(nN),ld(g),_t(l,Kqe,y))}Uo(y,null),lo(y,null)}}function Zkr(n,i){var l,d,g,y;return l=new ds,d=v(Wl(Bl(new xn(null,new Nn(n.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21),g=d.gc(),g=g==2?1:0,g==1&&gE(Zz(v(Wl(Ki(d.Lc(),new ta),W$t(Zm(0),new Ft)),168).a,2),0)&&(g=0),d=v(Wl(Bl(new xn(null,new Nn(i.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[B4,Ql]))),21),y=d.gc(),y=y==2?1:0,y==1&&gE(Zz(v(Wl(Ki(d.Lc(),new Os),W$t(Zm(0),new Ft)),168).a,2),0)&&(y=0),g<y?-1:g==y?0:1}function CWt(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(i=z1(n),y=Vt(Ht(Et(i,(qt(),K4)))),D=0,g=0,O=new mr((!n.e&&(n.e=new Gn(ss,n,7,4)),n.e));O.e!=O.i.gc();)R=v(wr(O),74),T=KE(R),x=T&&y&&Vt(Ht(Et(R,lw))),J=zl(v(ze((!R.c&&(R.c=new Gn(Lr,R,5,8)),R.c),0),84)),T&&x?++g:T&&!x?++D:Aa(J)==i||J==i?++g:++D;for(d=new mr((!n.d&&(n.d=new Gn(ss,n,8,5)),n.d));d.e!=d.i.gc();)l=v(wr(d),74),T=KE(l),x=T&&y&&Vt(Ht(Et(l,lw))),q=zl(v(ze((!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b),0),84)),T&&x?++D:T&&!x?++g:Aa(q)==i||q==i?++D:++g;return D-g}function Jkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(i.Ug("Edge splitting",1),n.b.c.length<=2){i.Vg();return}for(y=new go(n.b,0),x=(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),30));y.b<y.d.gc();)for(g=x,x=(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),30)),R=new me(g.a);R.a<R.c.c.length;)for(T=v(pe(R),10),D=new me(T.j);D.a<D.c.c.length;)for(O=v(pe(D),12),d=new me(O.g);d.a<d.c.c.length;)l=v(pe(d),18),J=l.d,q=J.i.c,q!=g&&q!=x&&PYt(l,(re=new Jm(n),g_(re,(lr(),Ws)),_t(re,(At(),Ji),l),_t(re,(qt(),Qa),(co(),su)),po(re,x),re));i.Vg()}function e6r(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(D=new Ot,J=new fs,x=i.b,g=0;g<x.c.length;g++){for(O=($n(g,x.c.length),v(x.c[g],30)).a,D.c.length=0,y=0;y<O.c.length;y++)T=n.a[g][y],T.p=y,T.k==(lr(),iu)&&jn(D.c,T),of(v(Yt(i.b,g),30).a,y,T),T.j.c.length=0,xs(T.j,v(v(Yt(n.b,g),15).Xb(y),16)),yk(v(oe(T,(qt(),Qa)),101))||_t(T,Qa,(co(),yw));for(d=new me(D);d.a<d.c.c.length;)l=v(pe(d),10),q=ICr(l),J.a.zc(q,J),J.a.zc(l,J)}for(R=J.a.ec().Kc();R.Ob();)T=v(R.Pb(),10),Fn(),us(T.j,(G8(),hqe)),T.i=!0,bMe(T)}function AWt(n){var i,l,d,g,y;return n.g!=null?n.g:n.a<32?(n.g=_Rr(xc(n.f),Ps(n.e)),n.g):(g=wpe((!n.c&&(n.c=uz(xc(n.f))),n.c),0),n.e==0?g:(i=(!n.c&&(n.c=uz(xc(n.f))),n.c).e<0?2:1,l=g.length,d=-n.e+l-i,y=new Cv,y.a+=""+g,n.e>0&&d>=-6?d>=0?BU(y,l-Ps(n.e),"."):(t0e(y,i-1,i-1,"0."),BU(y,i+1,Qp(iw,0,-Ps(d)-1))):(l-i>=1&&(BU(y,i,"."),++l),BU(y,l,"E"),d>0&&BU(y,++l,"+"),BU(y,++l,""+sD(xc(d)))),n.g=y.a,n.g))}function t6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;d=We(at(oe(i,(qt(),ZHe)))),yt=v(oe(i,gP),17).a,J=4,g=3,xt=20/yt,re=!1,R=0,x=qi;do{for(y=R!=1,q=R!=0,Mt=0,de=n.a,Me=0,je=de.length;Me<je;++Me)ae=de[Me],ae.f=null,q7r(n,ae,y,q,d),Mt+=u.Math.abs(ae.a);do T=RAr(n,i);while(T);for(le=n.a,Se=0,Ue=le.length;Se<Ue;++Se)if(ae=le[Se],l=uNe(ae).a,l!=0)for(D=new me(ae.e);D.a<D.c.c.length;)O=v(pe(D),10),O.n.b+=l;R==0||R==1?(--J,J<=0&&(Mt<x||-J>yt)?(R=2,x=qi):R==0?(R=1,x=Mt):(R=0,x=Mt)):(re=Mt>=x||x-Mt<xt,x=Mt,re&&--g)}while(!(re&&g<=0))}function fpe(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;for(ae=new Br,y=n.a.ec().Kc();y.Ob();)d=v(y.Pb(),177),Ni(ae,d,l.af(d));for(x=(ni(n),n?new Eh(n):i8(n.a.ec().Kc())),us(x,new Y5t(ae)),T=OQ(x),R=new xX(i),re=new Br,yu(re.f,i,R);T.a.gc()!=0;){for(O=null,D=null,q=null,g=T.a.ec().Kc();g.Ob();)if(d=v(g.Pb(),177),We(at(Pl(ol(ae.f,d))))<=ka){if(Tu(re,d.a)&&!Tu(re,d.b)){D=d.b,q=d.a,O=d;break}if(Tu(re,d.b)&&!Tu(re,d.a)){D=d.a,q=d.b,O=d;break}}if(!O)break;J=new xX(D),Lt(v(Pl(ol(re.f,q)),225).a,J),yu(re.f,D,J),T.a.Bc(O)!=null}return R}function n6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;for(l.Ug("Depth-first cycle removal",1),q=i.a,D=q.c.length,n.c=new Ot,n.d=st(Wh,Qg,28,D,16,1),n.a=st(Wh,Qg,28,D,16,1),n.b=new Ot,x=0,O=new me(q);O.a<O.c.c.length;)R=v(pe(O),10),R.p=x,b8(Hs(R))&&Lt(n.c,R),++x;for(re=new me(n.c);re.a<re.c.c.length;)J=v(pe(re),10),uMe(n,J);for(y=0;y<D;y++)n.d[y]||(T=($n(y,q.c.length),v(q.c[y],10)),uMe(n,T));for(g=new me(n.b);g.a<g.c.c.length;)d=v(pe(g),18),ZE(d,!0),_t(i,(At(),Oq),(Qn(),!0));n.c=null,n.d=null,n.a=null,n.b=null,l.Vg()}function r6r(n,i){l5();var l,d,g,y,x,T;return y=i.c-(n.c+n.b),g=n.c-(i.c+i.b),x=n.d-(i.d+i.a),l=i.d-(n.d+n.a),d=u.Math.max(g,y),T=u.Math.max(x,l),$1(),x0(cg),(u.Math.abs(d)<=cg||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:mE(isNaN(d),isNaN(0)))>=0^(x0(cg),(u.Math.abs(T)<=cg||T==0||isNaN(T)&&isNaN(0)?0:T<0?-1:T>0?1:mE(isNaN(T),isNaN(0)))>=0)?u.Math.max(T,d):(x0(cg),(u.Math.abs(d)<=cg||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:mE(isNaN(d),isNaN(0)))>0?u.Math.sqrt(T*T+d*d):-u.Math.sqrt(T*T+d*d))}function V_(n,i){var l,d,g,y,x,T;if(i){if(!n.a&&(n.a=new kK),n.e==2){AK(n.a,i);return}if(i.e==1){for(g=0;g<i.Pm();g++)V_(n,i.Lm(g));return}if(T=n.a.a.c.length,T==0){AK(n.a,i);return}if(x=v(kE(n.a,T-1),122),!((x.e==0||x.e==10)&&(i.e==0||i.e==10))){AK(n.a,i);return}y=i.e==0?2:i.Mm().length,x.e==0?(l=new EL,d=x.Km(),d>=el?bl(l,SLe(d)):c8(l,d&vs),x=new Zde(10,null,0),Uhr(n.a,x,T-1)):(l=(x.Mm().length+y,new EL),bl(l,x.Mm())),i.e==0?(d=i.Km(),d>=el?bl(l,SLe(d)):c8(l,d&vs)):bl(l,i.Mm()),v(x,530).b=l.a}}function i6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!l.dc()){for(T=0,J=0,d=l.Kc(),ae=v(d.Pb(),17).a;T<i.f;){if(T==ae&&(J=0,d.Ob()?ae=v(d.Pb(),17).a:ae=i.f+1),T!=J){for(de=v(Yt(n.b,T),30),re=v(Yt(n.b,J),30),le=DE(de.a),q=new me(le);q.a<q.c.c.length;)if(D=v(pe(q),10),m4(D,re.a.c.length,re),J==0)for(x=DE(Hs(D)),y=new me(x);y.a<y.c.c.length;)g=v(pe(y),18),ZE(g,!0),_t(n,(At(),Oq),(Qn(),!0)),OWt(n,g,1)}++J,++T}for(R=new go(n.b,0);R.b<R.d.gc();)O=(Tr(R.b<R.d.gc()),v(R.d.Xb(R.c=R.b++),30)),O.a.c.length==0&&ld(R)}}function a6r(n,i,l){var d,g,y;if(g=v(oe(i,(qt(),Jte)),282),g!=(aI(),rP)){switch(l.Ug("Horizontal Compaction",1),n.a=i,y=new lFt,d=new EVt((y.d=i,y.c=v(oe(y.d,lb),223),Q5r(y),i7r(y),aCr(y),y.a)),Hir(d,n.b),v(oe(i,kHe),431).g){case 1:o7t(d,new L$t(n.a));break;default:o7t(d,(UNe(),ntn))}switch(g.g){case 1:nM(d);break;case 2:nM(DJ(d,(ys(),ql)));break;case 3:nM(l7t(DJ(nM(d),(ys(),ql)),new a_t));break;case 4:nM(l7t(DJ(nM(d),(ys(),ql)),new OCt(y)));break;case 5:nM(qir(d,frn))}DJ(d,(ys(),Ol)),d.e=!0,L7r(y),l.Vg()}}function s6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(x=i.b,D=x.o,R=x.d,d=We(at(HZ(x,(qt(),O0)))),g=We(at(HZ(x,U5))),O=We(at(HZ(x,Jye))),T=new Iue,PIe(T,R.d,R.c,R.a,R.b),J=bCr(i,d,g,O),Se=new me(i.d);Se.a<Se.c.c.length;){for(de=v(pe(Se),105),ae=de.f.a.ec().Kc();ae.Ob();)re=v(ae.Pb(),340),y=re.a,q=QEr(re),l=(Me=new ah,Qqt(re,re.c,J,Me),Sxr(re,q,J,Me),Qqt(re,re.d,J,Me),Me),l=n.ng(re,q,l),xd(y.a),bo(y.a,l),ts(new xn(null,new Nn(l,16)),new n8t(D,T));le=de.i,le&&($Er(de,le,J,g),Ue=new Wo(le.g),KLe(D,T,Ue),Hi(Ue,le.j),KLe(D,T,Ue))}PIe(R,T.d,T.c,T.a,T.b)}function o6r(n){var i,l,d,g;g=n.o,WS(),n.A.dc()||Yi(n.A,jze)?i=g.b:(n.D?i=u.Math.max(g.b,ZD(n.f)):i=ZD(n.f),n.A.Hc((ud(),gH))&&!n.B.Hc((qh(),KP))&&(i=u.Math.max(i,ZD(v(yl(n.p,(Bt(),gr)),252))),i=u.Math.max(i,ZD(v(yl(n.p,cr),252)))),l=eUt(n),l&&(i=u.Math.max(i,l.b)),n.A.Hc(mH)&&(n.q==(co(),sm)||n.q==su)&&(i=u.Math.max(i,HX(v(yl(n.b,(Bt(),gr)),127))),i=u.Math.max(i,HX(v(yl(n.b,cr),127))))),Vt(Ht(n.e.Tf().of((Ei(),i3))))?g.b=u.Math.max(g.b,i):g.b=i,d=n.f.i,d.d=0,d.a=i,npe(n.f)}function l6r(n,i,l,d,g,y,x,T){var R,O,D,q;switch(R=H1(Te(xe(J8r,1),Yn,238,0,[i,l,d,g])),q=null,n.b.g){case 1:q=H1(Te(xe(gje,1),Yn,535,0,[new lue,new sue,new oue]));break;case 0:q=H1(Te(xe(gje,1),Yn,535,0,[new oue,new sue,new lue]));break;case 2:q=H1(Te(xe(gje,1),Yn,535,0,[new sue,new lue,new oue]))}for(D=new me(q);D.a<D.c.c.length;)O=v(pe(D),535),R.c.length>1&&(R=O.Hg(R,n.a,T));return R.c.length==1?v(Yt(R,R.c.length-1),238):R.c.length==2?jkr(($n(0,R.c.length),v(R.c[0],238)),($n(1,R.c.length),v(R.c[1],238)),x,y):null}function c6r(n,i,l){var d,g,y,x,T,R,O;for(l.Ug("Find roots",1),n.a.c.length=0,g=Ur(i.b,0);g.b!=g.d.c;)d=v(Fr(g),40),d.b.b==0&&(_t(d,(fa(),p2),(Qn(),!0)),Lt(n.a,d));switch(n.a.c.length){case 0:y=new h0e(0,i,"DUMMY_ROOT"),_t(y,(fa(),p2),(Qn(),!0)),_t(y,Sve,!0),pi(i.b,y);break;case 1:break;default:for(x=new h0e(0,i,_ee),R=new me(n.a);R.a<R.c.c.length;)T=v(pe(R),40),O=new $Ne(x,T),_t(O,(fa(),Sve),(Qn(),!0)),pi(x.a.a,O),pi(x.d,O),pi(T.b,O),_t(T,p2,!1);_t(x,(fa(),p2),(Qn(),!0)),_t(x,Sve,!0),pi(i.b,x)}l.Vg()}function kWt(n){var i,l,d,g,y,x;for(Cu(n.a,new Pa),l=new me(n.a);l.a<l.c.c.length;)i=v(pe(l),225),d=$s(Eo(v(n.b,68).c),v(i.b,68).c),ztn?(x=v(n.b,68).b,y=v(i.b,68).b,u.Math.abs(d.a)>=u.Math.abs(d.b)?(d.b=0,y.d+y.a>x.d&&y.d<x.d+x.a&&UX(d,u.Math.max(x.c-(y.c+y.b),y.c-(x.c+x.b)))):(d.a=0,y.c+y.b>x.c&&y.c<x.c+x.b&&UX(d,u.Math.max(x.d-(y.d+y.a),y.d-(x.d+x.a))))):UX(d,Zjt(v(n.b,68),v(i.b,68))),g=u.Math.sqrt(d.a*d.a+d.b*d.b),g=Yqt(QM,i,g,d),UX(d,g),_de(v(i.b,68),d),Cu(i.a,new v7e(d)),v(QM.b,68),POe(QM,Wze,i)}function u6r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae;for(n.f=new Rue,O=0,g=0,x=new me(n.e.b);x.a<x.c.c.length;)for(y=v(pe(x),30),R=new me(y.a);R.a<R.c.c.length;){for(T=v(pe(R),10),T.p=O++,d=new yr(_r(os(T).a.Kc(),new S));zr(d);)l=v(Rr(d),18),l.p=g++;for(i=upe(T),J=new me(T.j);J.a<J.c.c.length;)q=v(pe(J),12),i&&(ae=q.a.b,ae!=u.Math.floor(ae)&&(D=ae-N_(xc(u.Math.round(ae))),q.a.b-=D)),re=q.n.b+q.a.b,re!=u.Math.floor(re)&&(D=re-N_(xc(u.Math.round(re))),q.n.b-=D)}n.g=O,n.b=g,n.i=st(K8r,Yn,412,O,0,1),n.c=st(W8r,Yn,655,g,0,1),n.d.a.$b()}function Gr(n){var i,l,d,g,y,x,T,R,O;if(n.Pj())if(R=n.Qj(),n.i>0){if(i=new a8e(n.i,n.g),l=n.i,y=l<100?null:new Av(l),n.Tj())for(d=0;d<n.i;++d)x=n.g[d],y=n.Vj(x,y);if(_D(n),g=l==1?n.Ij(4,ze(i,0),null,0,R):n.Ij(6,i,null,-1,R),n.Mj()){for(d=new mk(i);d.e!=d.i.gc();)y=n.Oj(j0e(d),y);y?(y.nj(g),y.oj()):n.Jj(g)}else y?(y.nj(g),y.oj()):n.Jj(g)}else _D(n),n.Jj(n.Ij(6,(Fn(),Zo),null,-1,R));else if(n.Mj())if(n.i>0){for(T=n.g,O=n.i,_D(n),y=O<100?null:new Av(O),d=0;d<O;++d)x=T[d],y=n.Oj(x,y);y&&y.oj()}else _D(n);else _D(n)}function BPe(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(lUt(this),l==(LE(),f2)?Es(this.r,n):Es(this.w,n),D=ka,O=Ss,x=i.a.ec().Kc();x.Ob();)g=v(x.Pb(),42),T=v(g.a,465),d=v(g.b,18),R=d.c,R==n&&(R=d.d),T==f2?Es(this.r,R):Es(this.w,R),J=(Bt(),Qu).Hc(R.j)?We(at(oe(R,(At(),aN)))):ac(Te(xe(Vs,1),kt,8,0,[R.i.n,R.n,R.a])).b,D=u.Math.min(D,J),O=u.Math.max(O,J);for(q=(Bt(),Qu).Hc(n.j)?We(at(oe(n,(At(),aN)))):ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a])).b,gHt(this,q,D,O),y=i.a.ec().Kc();y.Ob();)g=v(y.Pb(),42),THt(this,v(g.b,18));this.o=!1}function h6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;return l=n.l&8191,d=n.l>>13|(n.m&15)<<9,g=n.m>>4&8191,y=n.m>>17|(n.h&255)<<5,x=(n.h&1048320)>>8,T=i.l&8191,R=i.l>>13|(i.m&15)<<9,O=i.m>>4&8191,D=i.m>>17|(i.h&255)<<5,q=(i.h&1048320)>>8,yn=l*T,mn=d*T,Kn=g*T,Xn=y*T,Sr=x*T,R!=0&&(mn+=l*R,Kn+=d*R,Xn+=g*R,Sr+=y*R),O!=0&&(Kn+=l*O,Xn+=d*O,Sr+=g*O),D!=0&&(Xn+=l*D,Sr+=d*D),q!=0&&(Sr+=l*q),re=yn&Hh,ae=(mn&511)<<13,J=re+ae,de=yn>>22,Se=mn>>9,Me=(Kn&262143)<<4,Ue=(Xn&31)<<17,le=de+Se+Me+Ue,yt=Kn>>18,xt=Xn>>5,Mt=(Sr&4095)<<8,je=yt+xt+Mt,le+=J>>22,J&=Hh,je+=le>>22,le&=Hh,je&=rb,Su(J,le,je)}function RWt(n){var i,l,d,g,y,x,T;if(T=v(Yt(n.j,0),12),T.g.c.length!=0&&T.e.c.length!=0)throw _e(new Tl("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(T.g.c.length!=0){for(y=ka,l=new me(T.g);l.a<l.c.c.length;)i=v(pe(l),18),x=i.d.i,d=v(oe(x,(qt(),one)),140),y=u.Math.min(y,x.n.a-d.b);return new mK(ni(y))}if(T.e.c.length!=0){for(g=Ss,l=new me(T.e);l.a<l.c.c.length;)i=v(pe(l),18),x=i.c.i,d=v(oe(x,(qt(),one)),140),g=u.Math.max(g,x.n.a+x.o.a+d.c);return new mK(ni(g))}return yL(),yL(),lbe}function IWt(n,i){var l,d,g,y,x,T,R;if(n.ol()){if(n.i>4)if(n.fk(i)){if(n.al()){if(g=v(i,54),d=g.Eh(),R=d==n.e&&(n.ml()?g.yh(g.Fh(),n.il())==n.jl():-1-g.Fh()==n.Lj()),n.nl()&&!R&&!d&&g.Jh()){for(y=0;y<n.i;++y)if(l=n.pl(v(n.g[y],58)),Ze(l)===Ze(i))return!0}return R}else if(n.ml()&&!n.ll()){if(x=v(i,58).Mh(sl(v(n.Lk(),19))),Ze(x)===Ze(n.e))return!0;if(x==null||!v(x,58).Vh())return!1}}else return!1;if(T=rI(n,i),n.nl()&&!T){for(y=0;y<n.i;++y)if(g=n.pl(v(n.g[y],58)),Ze(g)===Ze(i))return!0}return T}else return rI(n,i)}function d6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(l.Ug("Interactive cycle breaking",1),q=new Ot,re=new me(i.a);re.a<re.c.c.length;)for(J=v(pe(re),10),J.p=1,ae=kDe(J).a,D=VE(J,(ll(),_u)).Kc();D.Ob();)for(O=v(D.Pb(),12),y=new me(O.g);y.a<y.c.c.length;)d=v(pe(y),18),le=d.d.i,le!=J&&(de=kDe(le).a,de<ae&&jn(q.c,d));for(x=new me(q);x.a<x.c.c.length;)d=v(pe(x),18),ZE(d,!0);for(q.c.length=0,R=new me(i.a);R.a<R.c.c.length;)T=v(pe(R),10),T.p>0&&IHt(n,T,q);for(g=new me(q);g.a<g.c.c.length;)d=v(pe(g),18),ZE(d,!0);q.c.length=0,l.Vg()}function f6r(n,i){var l,d,g,y,x,T,R,O,D;for(l=0,D=new Ot,T=new me(i);T.a<T.c.c.length;){switch(x=v(pe(T),12),eLe(n.b,n.d[x.p]),D.c.length=0,x.i.k.g){case 0:d=v(oe(x,(At(),kh)),10),Cu(d.j,new uAt(D));break;case 1:Csr(U8(Ki(new xn(null,new Nn(x.i.j,16)),new hAt(x))),new dAt(D));break;case 3:g=v(oe(x,(At(),Ji)),12),Lt(D,new Ms(g,Nt(x.e.c.length+x.g.c.length)))}for(O=new me(D);O.a<O.c.c.length;)R=v(pe(O),42),y=bRe(n,v(R.a,12)),y>n.d[x.p]&&(l+=bOe(n.b,y)*v(R.b,17).a,Fv(n.a,Nt(y)));for(;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function p6r(n,i){var l,d,g,y,x,T,R,O,D,q;if(D=v(oe(n,(At(),vc)),64),d=v(Yt(n.j,0),12),D==(Bt(),or)?Bs(d,Mr):D==Mr&&Bs(d,or),v(oe(i,(qt(),uw)),181).Hc((ud(),vw))){if(R=We(at(oe(n,uN))),O=We(at(oe(n,hN))),x=We(at(oe(n,J4))),T=v(oe(i,Q4),21),T.Hc((Ah(),ub)))for(l=O,q=n.o.a/2-d.n.a,y=new me(d.f);y.a<y.c.c.length;)g=v(pe(y),72),g.n.b=l,g.n.a=q-g.o.a/2,l+=g.o.b+x;else if(T.Hc(v2))for(y=new me(d.f);y.a<y.c.c.length;)g=v(pe(y),72),g.n.a=R+n.o.a-d.n.a;U0r(new _K((TL(),new Gde(i,!1,!1,new O6e))),new BX(null,n,!1))}}function g6r(n,i){var l,d,g,y,x,T,R,O,D;if(i.c.length!=0){for(Fn(),vde(i.c,i.c.length,null),g=new me(i),d=v(pe(g),154);g.a<g.c.c.length;)l=v(pe(g),154),t9e(d.e.c,l.e.c)&&!(HLe(qNt(d.e).b,l.e.d)||HLe(qNt(l.e).b,d.e.d))?d=(xs(d.k,l.k),xs(d.b,l.b),xs(d.c,l.c),bo(d.i,l.i),xs(d.d,l.d),xs(d.j,l.j),y=u.Math.min(d.e.c,l.e.c),x=u.Math.min(d.e.d,l.e.d),T=u.Math.max(d.e.c+d.e.b,l.e.c+l.e.b),R=T-y,O=u.Math.max(d.e.d+d.e.a,l.e.d+l.e.a),D=O-x,WOt(d.e,y,x,R,D),$0r(d.f,l.f),!d.a&&(d.a=l.a),xs(d.g,l.g),Lt(d.g,l),d):(qjt(n,d),d=l);qjt(n,d)}}function m6r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;for(R=new Ot,y=new me(i.a);y.a<y.c.c.length;)for(g=v(pe(y),10),T=new me(g.j);T.a<T.c.c.length;){for(x=v(pe(T),12),D=null,Ue=Xp(x.g),je=0,yt=Ue.length;je<yt;++je)Me=Ue[je],D8(Me.d.i,l)||(Se=hpe(n,i,l,Me,Me.c,(ll(),_u),D),Se!=D&&jn(R.c,Se),Se.c&&(D=Se));for(O=null,ae=Xp(x.e),le=0,de=ae.length;le<de;++le)re=ae[le],D8(re.c.i,l)||(Se=hpe(n,i,l,re,re.d,(ll(),Rh),O),Se!=O&&jn(R.c,Se),Se.c&&(O=Se))}for(J=new me(R);J.a<J.c.c.length;)q=v(pe(J),453),$l(i.a,q.a,0)!=-1||Lt(i.a,q.a),q.c&&jn(d.c,q)}function b6r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;for(q=new Wo(v(Et(n,(lJ(),nWe)),8)),q.a=u.Math.max(q.a-l.b-l.c,0),q.b=u.Math.max(q.b-l.d-l.a,0),g=at(Et(n,Jje)),(g==null||(hr(g),g<=0))&&(g=1.3),T=new Ot,ae=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));ae.e!=ae.i.gc();)re=v(wr(ae),27),x=new DNt(re),jn(T.c,x);switch(J=v(Et(n,b2e),320),J.g){case 3:de=nAr(T,i,q.a,q.b,(O=d,hr(g),O));break;case 1:de=jAr(T,i,q.a,q.b,(D=d,hr(g),D));break;default:de=v6r(T,i,q.a,q.b,(R=d,hr(g),R))}y=new eZ(de),le=vpe(y,i,l,q.a,q.b,d,(hr(g),g)),JE(n,le.a,le.b,!1,!0)}function y6r(n,i,l,d){var g,y,x,T,R,O;if(T=n.j,T==(Bt(),lc)&&i!=(co(),up)&&i!=(co(),y2)&&(T=Fjt(n,l),Bs(n,T),!(n.q?n.q:(Fn(),Fn(),Jg))._b((qt(),X4))&&T!=lc&&(n.n.a!=0||n.n.b!=0)&&_t(n,X4,ywr(n,T))),i==(co(),sm)){switch(O=0,T.g){case 1:case 3:y=n.i.o.a,y>0&&(O=n.n.a/y);break;case 2:case 4:g=n.i.o.b,g>0&&(O=n.n.b/g)}_t(n,(At(),bx),O)}if(R=n.o,x=n.a,d)x.a=d.a,x.b=d.b,n.d=!0;else if(i!=up&&i!=y2&&T!=lc)switch(T.g){case 1:x.a=R.a/2;break;case 2:x.a=R.a,x.b=R.b/2;break;case 3:x.a=R.a/2,x.b=R.b;break;case 4:x.b=R.b/2}else x.a=R.a/2,x.b=R.b/2}function pM(n){var i,l,d,g,y,x,T,R,O,D;if(n.Pj())if(D=n.Ej(),R=n.Qj(),D>0)if(i=new R9e(n.pj()),l=D,y=l<100?null:new Av(l),GU(n,l,i.g),g=l==1?n.Ij(4,ze(i,0),null,0,R):n.Ij(6,i,null,-1,R),n.Mj()){for(d=new mr(i);d.e!=d.i.gc();)y=n.Oj(wr(d),y);y?(y.nj(g),y.oj()):n.Jj(g)}else y?(y.nj(g),y.oj()):n.Jj(g);else GU(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Fn(),Zo),null,-1,R));else if(n.Mj())if(D=n.Ej(),D>0){for(T=n.Fj(),O=D,GU(n,D,T),y=O<100?null:new Av(O),d=0;d<O;++d)x=T[d],y=n.Oj(x,y);y&&y.oj()}else GU(n,n.Ej(),n.Fj());else GU(n,n.Ej(),n.Fj())}function v6r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de;for(T=st(ao,_l,28,n.c.length,15,1),J=new rQ(new fSt),fDe(J,n),O=0,le=new Ot;J.b.c.length!=0;)if(x=v(J.b.c.length==0?null:Yt(J.b,0),163),O>1&&lh(x)*od(x)/2>T[0]){for(y=0;y<le.c.length-1&&lh(x)*od(x)/2>T[y];)++y;ae=new Qb(le,0,y+1),q=new eZ(ae),D=lh(x)/od(x),R=vpe(q,i,new ek,l,d,g,D),Hi(i1(q.e),R),_k(iI(J,q),SI),re=new Qb(le,y+1,le.c.length),fDe(J,re),le.c.length=0,O=0,I9t(T,T.length,0)}else de=J.b.c.length==0?null:Yt(J.b,0),de!=null&&jfe(J,0),O>0&&(T[O]=T[O-1]),T[O]+=lh(x)*od(x),++O,jn(le.c,x);return le}function _6r(n,i){var l,d,g,y;l=i.b,y=new Eh(l.j),g=0,d=l.j,d.c.length=0,SE(v(M_(n.b,(Bt(),or),(UE(),px)),15),l),g=tG(y,g,new I_t,d),SE(v(M_(n.b,or,l2),15),l),g=tG(y,g,new x_t,d),SE(v(M_(n.b,or,fx),15),l),SE(v(M_(n.b,gr,px),15),l),SE(v(M_(n.b,gr,l2),15),l),g=tG(y,g,new N_t,d),SE(v(M_(n.b,gr,fx),15),l),SE(v(M_(n.b,Mr,px),15),l),g=tG(y,g,new O_t,d),SE(v(M_(n.b,Mr,l2),15),l),g=tG(y,g,new L_t,d),SE(v(M_(n.b,Mr,fx),15),l),SE(v(M_(n.b,cr,px),15),l),g=tG(y,g,new C_t,d),SE(v(M_(n.b,cr,l2),15),l),SE(v(M_(n.b,cr,fx),15),l)}function w6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;for(T=new me(i);T.a<T.c.c.length;)y=v(pe(T),239),y.e=null,y.c=0;for(R=null,x=new me(i);x.a<x.c.c.length;)if(y=v(pe(x),239),q=y.d[0],!(l&&q.k!=(lr(),is))){for(re=v(oe(q,(At(),w6)),15).Kc();re.Ob();)J=v(re.Pb(),10),(!l||J.k==(lr(),is))&&((!y.e&&(y.e=new Ot),y.e).Fc(n.b[J.c.p][J.p]),++n.b[J.c.p][J.p].c);if(!l&&q.k==(lr(),is)){if(R)for(D=v(Zi(n.d,R),21).Kc();D.Ob();)for(O=v(D.Pb(),10),g=v(Zi(n.d,q),21).Kc();g.Ob();)d=v(g.Pb(),10),Cur(n.b[O.c.p][O.p]).Fc(n.b[d.c.p][d.p]),++n.b[d.c.p][d.p].c;R=q}}}function E6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(l.Ug("Model order cycle breaking",1),n.a=0,n.b=0,re=new Ot,D=i.a.c.length,O=new me(i.a);O.a<O.c.c.length;)R=v(pe(O),10),ya(R,(At(),ua))&&(D=u.Math.max(D,v(oe(R,ua),17).a+1));for(le=new me(i.a);le.a<le.c.c.length;)for(ae=v(pe(le),10),x=UHt(n,ae,D),J=VE(ae,(ll(),_u)).Kc();J.Ob();)for(q=v(J.Pb(),12),y=new me(q.g);y.a<y.c.c.length;)d=v(pe(y),18),de=d.d.i,T=UHt(n,de,D),T<x&&jn(re.c,d);for(g=new me(re);g.a<g.c.c.length;)d=v(pe(g),18),ZE(d,!0),_t(i,(At(),Oq),(Qn(),!0));re.c.length=0,l.Vg()}function NWt(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(x=i.d,T=l.d;x.a-T.a==0&&x.b-T.b==0;)R=!1,$e(i,250)&&$e(l,250)&&!R?(O=v(i,250).a,D=$s(new Wo(l9e(O)),o9e(O)),d=2,g=new Ct(D.a/u.Math.sqrt(D.a*D.a+D.b*D.b)*d,-D.b/u.Math.sqrt(D.a*D.a+D.b*D.b)*d),Hi(x,g),q=v(l,250).a,J=$s(new Wo(l9e(q)),o9e(q)),d=D==J?-2:2,y=new Ct(J.a/u.Math.sqrt(J.a*J.a+J.b*J.b)*d,-(J.b/u.Math.sqrt(J.a*J.a+J.b*J.b))*d),Hi(x,y),R=!0):(x.a+=Gh(n,26)*bM+Gh(n,27)*yM-.5,x.b+=Gh(n,26)*bM+Gh(n,27)*yM-.5,T.a+=Gh(n,26)*bM+Gh(n,27)*yM-.5,T.b+=Gh(n,26)*bM+Gh(n,27)*yM-.5)}function x6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(O=eSr(i),le=v(oe(i,(qt(),hP)),322),To(O,new tCt(le)),de=v(oe(i,Pq),299),To(O,new nCt(de)),ae=0,D=new Ot,y=new fD(O);y.a!=y.b;)g=v(CZ(y),36),qWt(n.c,g),J=v(oe(g,(At(),Bye)),15),ae+=J.gc(),d=J.Kc(),Lt(D,new Ms(g,d));for(l.Ug("Recursive hierarchical layout",ae),re=v(v(Yt(D,D.c.length-1),42).b,51);re.Ob();)for(R=new me(D);R.a<R.c.c.length;)for(T=v(pe(R),42),J=v(T.b,51),x=v(T.a,36);J.Ob();)if(q=v(J.Pb(),47),$e(q,514)){if(x.e)break;q.Kf(x,l.eh(1));break}else q.Kf(x,l.eh(1));l.Vg()}function S6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(i.Ug("Layer size calculation",1),D=ka,O=Ss,g=!1,T=new me(n.b);T.a<T.c.c.length;)if(x=v(pe(T),30),R=x.c,R.a=0,R.b=0,x.a.c.length!=0){for(g=!0,J=new me(x.a);J.a<J.c.c.length;)q=v(pe(J),10),ae=q.o,re=q.d,R.a=u.Math.max(R.a,ae.a+re.b+re.c);d=v(Yt(x.a,0),10),le=d.n.b-d.d.d,d.k==(lr(),hs)&&(le-=v(oe(n,(qt(),$q)),140).d),y=v(Yt(x.a,x.a.c.length-1),10),l=y.n.b+y.o.b+y.d.a,y.k==hs&&(l+=v(oe(n,(qt(),$q)),140).a),R.b=l-le,D=u.Math.min(D,le),O=u.Math.max(O,l)}g||(D=0,O=0),n.f.b=O-D,n.c.b-=D,i.Vg()}function FPe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(y=0,x=0,O=new me(n.a);O.a<O.c.c.length;)T=v(pe(O),10),y=u.Math.max(y,T.d.b),x=u.Math.max(x,T.d.c);for(R=new me(n.a);R.a<R.c.c.length;){switch(T=v(pe(R),10),l=v(oe(T,(qt(),fg)),255),l.g){case 1:ae=0;break;case 2:ae=1;break;case 5:ae=.5;break;default:for(d=0,q=0,re=new me(T.j);re.a<re.c.c.length;)J=v(pe(re),12),J.e.c.length==0||++d,J.g.c.length==0||++q;d+q==0?ae=.5:ae=q/(d+q)}de=n.c,D=T.o.a,Se=(de.a-D)*ae,ae>.5?Se-=x*2*(ae-.5):ae<.5&&(Se+=y*2*(.5-ae)),g=T.d.b,Se<g&&(Se=g),le=T.d.c,Se>de.a-le-D&&(Se=de.a-le-D),T.n.a=i+Se}}function T6r(n){var i,l,d,g,y;if(d=v(oe(n,(qt(),Lu)),171),d==(pf(),u2)){for(l=new yr(_r(Hs(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),!HPt(i))throw _e(new Gb(Rge+rG(n)+"' 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(d==Y4){for(y=new yr(_r(os(n).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),!HPt(g))throw _e(new Gb(Rge+rG(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function kG(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(n.e&&n.c.c<n.f)throw _e(new Tl("Expected "+n.f+" phases to be configured; only found "+n.c.c));for(D=v(n1(n.g),9),re=Pg(n.f),y=D,T=0,O=y.length;T<O;++T)d=y[T],q=v(Tz(n,d.g),188),q?Lt(re,v(Fzt(n,q),106)):re.c.push(null);for(ae=new ms,ts(Ki(Bl(Ki(new xn(null,new Nn(re,16)),new Pxt),new YAt(i)),new Bxt),new jAt(ae)),Rd(ae,n.a),l=new Ot,g=D,x=0,R=g.length;x<R;++x)d=g[x],xs(l,vUt(n,yQ(v(Tz(ae,d.g),20)))),J=v(Yt(re,d.g),106),J&&jn(l.c,J);return xs(l,vUt(n,yQ(v(Tz(ae,D[D.length-1].g+1),20)))),l}function C6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(J=new Ot,g=new Ot,le=null,T=i.Kc();T.Ob();)x=v(T.Pb(),17),y=new eAt(x.a),jn(g.c,y),le&&(y.d=le,le.e=y),le=y;for(Ue=JAr(n),D=0;D<g.c.length;++D){for(re=null,de=OOe(($n(0,g.c.length),v(g.c[0],661))),l=null,d=ka,q=1;q<n.b.c.length;++q)Se=de?u.Math.abs(de.b-q):u.Math.abs(q-re.b)+1,ae=re?u.Math.abs(q-re.b):Se+1,ae<Se?(O=re,R=ae):(O=de,R=Se),Me=(je=We(at(oe(n,(qt(),dVe)))),Ue[q]+u.Math.pow(R,je)),Me<d&&(d=Me,l=O,l.c=q),de&&q==de.b&&(re=de,de=Mhr(de));l&&(Lt(J,Nt(l.c)),l.a=!0,Kyr(l))}return Fn(),vde(J.c,J.c.length,null),J}function $Pe(n,i,l){var d,g,y,x,T,R;if(i.l==0&&i.m==0&&i.h==0)throw _e(new NK("divide by zero"));if(n.l==0&&n.m==0&&n.h==0)return l&&(i2=Su(0,0,0)),Su(0,0,0);if(i.h==FG&&i.m==0&&i.l==0)return _vr(n,l);if(R=!1,i.h>>19&&(i=$8(i),R=!R),x=cTr(i),y=!1,g=!1,d=!1,n.h==FG&&n.m==0&&n.l==0)if(g=!0,y=!0,x==-1)n=mIt((E8(),JUe)),d=!0,R=!R;else return T=PMe(n,x),R&&u0e(T),l&&(i2=Su(0,0,0)),T;else n.h>>19&&(y=!0,n=$8(n),d=!0,R=!R);return x!=-1?Fbr(n,x,R,y,l):wDe(n,i)<0?(l&&(y?i2=$8(n):i2=Su(n.l,n.m,n.h)),Su(0,0,0)):sAr(d?n:Su(n.l,n.m,n.h),i,R,y,g,l)}function ppe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(x=n.e,R=i.e,x==0)return i;if(R==0)return n;if(y=n.d,T=i.d,y+T==2)return l=Us(n.a[0],ul),d=Us(i.a[0],ul),x==R?(D=zo(l,d),ae=ti(D),re=ti(Dv(D,32)),re==0?new qm(x,ae):new T_(x,2,Te(xe(Wr,1),vi,28,15,[ae,re]))):(eg(),bX(x<0?zf(d,l):zf(l,d),0)?Yv(x<0?zf(d,l):zf(l,d)):cD(Yv(ty(x<0?zf(d,l):zf(l,d)))));if(x==R)J=x,q=y>=T?xfe(n.a,y,i.a,T):xfe(i.a,T,n.a,y);else{if(g=y!=T?y>T?1:-1:J9e(n.a,i.a,y),g==0)return eg(),KM;g==1?(J=x,q=wfe(n.a,y,i.a,T)):(J=R,q=wfe(i.a,T,n.a,y))}return O=new T_(J,q.length,q),gD(O),O}function A6r(n,i){var l,d,g,y,x,T,R;if(!(n.g>i.f||i.g>n.f)){for(l=0,d=0,x=n.w.a.ec().Kc();x.Ob();)g=v(x.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,i.g,i.f)&&++l;for(T=n.r.a.ec().Kc();T.Ob();)g=v(T.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,i.g,i.f)&&--l;for(R=i.w.a.ec().Kc();R.Ob();)g=v(R.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,n.g,n.f)&&++d;for(y=i.r.a.ec().Kc();y.Ob();)g=v(y.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,n.g,n.f)&&--d;l<d?new BQ(n,i,d-l):d<l?new BQ(i,n,l-d):(new BQ(i,n,0),new BQ(n,i,0))}}function k6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(O=i.c,g=y8e(n.e),q=Vp(ZL(Eo(b8e(n.e)),n.d*n.a,n.c*n.b),-.5),l=g.a-q.a,d=g.b-q.b,x=i.a,l=x.c-l,d=x.d-d,R=new me(O);R.a<R.c.c.length;){switch(T=v(pe(R),407),J=T.b,re=l+J.a,de=d+J.b,ae=Ps(re/n.a),Se=Ps(de/n.b),y=T.a,y.g){case 0:D=(qk(),yq);break;case 1:D=(qk(),bq);break;case 2:D=(qk(),vq);break;default:D=(qk(),_q)}y.a?(Me=Ps((de+T.c)/n.b),Lt(n.f,new EIe(D,Nt(Se),Nt(Me))),y==(VD(),Eq)?F8(n,0,Se,ae,Me):F8(n,ae,Se,n.d-1,Me)):(le=Ps((re+T.c)/n.a),Lt(n.f,new EIe(D,Nt(ae),Nt(le))),y==(VD(),wq)?F8(n,ae,0,le,Se):F8(n,ae,Se,le,n.c-1))}}function R6r(n){var i,l,d,g,y,x,T,R,O,D;for(i=new hue,l=new hue,O=An(lq,(g=lM(n.b,gi),g?ai(h1((!g.b&&(g.b=new sd((Pn(),nl),_c,g)),g.b),Vf)):null)),R=0;R<n.i;++R)T=v(n.g[R],179),$e(T,102)?(x=v(T,19),x.Bb&Sc?(!(x.Bb&ng)||!O&&(y=lM(x,gi),(y?ai(h1((!y.b&&(y.b=new sd((Pn(),nl),_c,y)),y.b),Iee)):null)==null))&&Yr(i,x):(D=sl(x),D&&D.Bb&Sc||(!(x.Bb&ng)||!O&&(d=lM(x,gi),(d?ai(h1((!d.b&&(d.b=new sd((Pn(),nl),_c,d)),d.b),Iee)):null)==null))&&Yr(l,x))):(al(),v(T,69).xk()&&(T.sk()||(Yr(i,T),Yr(l,T))));h4(i),h4(l),n.a=v(i.g,254),v(l.g,254)}function h5(n,i,l){var d,g,y,x,T,R,O,D,q;if(Ma(i,l)>=0)return l;switch(RE(Al(n,l))){case 2:{if(An("",ay(n,l.qk()).xe())){if(R=rz(Al(n,l)),T=d8(Al(n,l)),D=UMe(n,i,R,T),D)return D;for(g=mPe(n,i),x=0,q=g.gc();x<q;++x)if(D=v(g.Xb(x),179),jMe(Ide(Al(n,D)),R))return D}return null}case 4:{if(An("",ay(n,l.qk()).xe())){for(d=l;d;d=z0r(Al(n,d)))if(O=rz(Al(n,d)),T=d8(Al(n,d)),D=zMe(n,i,O,T),D)return D;if(R=rz(Al(n,l)),An(nw,R))return TDe(n,i);for(y=X1e(n,i),x=0,q=y.gc();x<q;++x)if(D=v(y.Xb(x),179),jMe(Ide(Al(n,D)),R))return D}return null}default:return null}}function I6r(n,i,l){var d,g,y,x,T,R,O,D;if(l.gc()==0)return!1;if(T=(al(),v(i,69).xk()),y=T?l:new PE(l.gc()),tb(n.e,i)){if(i.Si())for(O=l.Kc();O.Ob();)R=O.Pb(),RJ(n,i,R,$e(i,102)&&(v(i,19).Bb&el)!=0)||(g=zg(i,R),y.Hc(g)||y.Fc(g));else if(!T)for(O=l.Kc();O.Ob();)R=O.Pb(),g=zg(i,R),y.Fc(g)}else{if(l.gc()>1)throw _e(new ar(hq));for(D=Iu(n.e.Dh(),i),d=v(n.g,124),x=0;x<n.i;++x)if(g=d[x],D.am(g.Lk())){if(l.Hc(T?g:g.md()))return!1;for(O=l.Kc();O.Ob();)R=O.Pb(),v(JT(n,x,T?v(R,76):zg(i,R)),76);return!0}T||(g=zg(i,l.Kc().Pb()),y.Fc(g))}return Ka(n,y)}function N6r(n,i){var l,d,g,y,x,T,R,O,D;for(D=new Ea,T=(O=new Dm(n.c).a.vc().Kc(),new FS(O));T.a.Ob();)y=(g=v(T.a.Pb(),44),v(g.md(),467)),y.b==0&&qa(D,y,D.c.b,D.c);for(;D.b!=0;)for(y=v(D.b==0?null:(Tr(D.b!=0),cf(D,D.a.a)),467),y.a==null&&(y.a=0),d=new me(y.d);d.a<d.c.c.length;)l=v(pe(d),663),l.b.a==null?l.b.a=We(y.a)+l.a:i.o==(G1(),fw)?l.b.a=u.Math.min(We(l.b.a),We(y.a)+l.a):l.b.a=u.Math.max(We(l.b.a),We(y.a)+l.a),--l.b.b,l.b.b==0&&pi(D,l.b);for(x=(R=new Dm(n.c).a.vc().Kc(),new FS(R));x.a.Ob();)y=(g=v(x.a.Pb(),44),v(g.md(),467)),i.i[y.c.p]=y.a}function O6r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;for(D=l+i.c.c.a,re=new me(i.j);re.a<re.c.c.length;){if(J=v(pe(re),12),g=ac(Te(xe(Vs,1),kt,8,0,[J.i.n,J.n,J.a])),i.k==(lr(),iu)&&(T=v(oe(J,(At(),Ji)),12),g.a=ac(Te(xe(Vs,1),kt,8,0,[T.i.n,T.n,T.a])).a,i.n.a=g.a),x=new Ct(0,g.b),J.j==(Bt(),gr))x.a=D;else if(J.j==cr)x.a=l;else continue;if(ae=u.Math.abs(g.a-x.a),!(ae<=d&&!xwr(i)))for(y=J.g.c.length+J.e.c.length>1,O=new V1(J.b);nc(O.a)||nc(O.b);)R=v(nc(O.a)?pe(O.a):pe(O.b),18),q=R.c==J?R.d:R.c,u.Math.abs(ac(Te(xe(Vs,1),kt,8,0,[q.i.n,q.n,q.a])).b-x.b)>1&&p5r(n,R,x,y,J)}}function L6r(n){var i,l,d,g,y,x;if(g=new go(n.e,0),d=new go(n.a,0),n.d)for(l=0;l<n.b;l++)Tr(g.b<g.d.gc()),g.d.Xb(g.c=g.b++);else for(l=0;l<n.b-1;l++)Tr(g.b<g.d.gc()),g.d.Xb(g.c=g.b++),ld(g);for(i=We((Tr(g.b<g.d.gc()),at(g.d.Xb(g.c=g.b++))));n.f-i>cme;){for(y=i,x=0;u.Math.abs(i-y)<cme;)++x,i=We((Tr(g.b<g.d.gc()),at(g.d.Xb(g.c=g.b++)))),Tr(d.b<d.d.gc()),d.d.Xb(d.c=d.b++);x<n.b&&(Tr(g.b>0),g.a.Xb(g.c=--g.b),WAr(n,n.b-x,y,d,g),Tr(g.b<g.d.gc()),g.d.Xb(g.c=g.b++)),Tr(d.b>0),d.a.Xb(d.c=--d.b)}if(!n.d)for(l=0;l<n.b-1;l++)Tr(g.b<g.d.gc()),g.d.Xb(g.c=g.b++),ld(g);n.d=!0,n.c=!0}function ca(){ca=z,XKe=(pRe(),Tc).b,whn=v(ze(bt(Tc.b),0),35),_w=v(ze(bt(Tc.b),1),35),_hn=v(ze(bt(Tc.b),2),35),aC=Tc.bb,v(ze(bt(Tc.bb),0),35),v(ze(bt(Tc.bb),1),35),sC=Tc.fb,tB=v(ze(bt(Tc.fb),0),35),v(ze(bt(Tc.fb),1),35),v(ze(bt(Tc.fb),2),19),Ox=Tc.qb,Lhn=v(ze(bt(Tc.qb),0),35),v(ze(bt(Tc.qb),1),19),v(ze(bt(Tc.qb),2),19),kH=v(ze(bt(Tc.qb),3),35),RH=v(ze(bt(Tc.qb),4),35),rB=v(ze(bt(Tc.qb),6),35),nB=v(ze(bt(Tc.qb),5),19),Ehn=Tc.j,xhn=Tc.k,Shn=Tc.q,Thn=Tc.w,Chn=Tc.B,Ahn=Tc.A,khn=Tc.C,Rhn=Tc.D,Ihn=Tc._,Nhn=Tc.cb,Ohn=Tc.hb}function D6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;n.c=0,n.b=0,d=2*i.c.a.c.length+1;e:for(q=l.Kc();q.Ob();){if(D=v(q.Pb(),12),T=D.j==(Bt(),or)||D.j==Mr,re=0,T){if(J=v(oe(D,(At(),kh)),10),!J)continue;re+=rCr(n,d,D,J)}else{for(O=new me(D.g);O.a<O.c.c.length;)if(R=v(pe(O),18),g=R.d,g.i.c==i.c){Lt(n.a,D);continue e}else re+=n.g[g.p];for(x=new me(D.e);x.a<x.c.c.length;)if(y=v(pe(x),18),g=y.c,g.i.c==i.c){Lt(n.a,D);continue e}else re-=n.g[g.p]}D.e.c.length+D.g.c.length>0?(n.f[D.p]=re/(D.e.c.length+D.g.c.length),n.c=u.Math.min(n.c,n.f[D.p]),n.b=u.Math.max(n.b,n.f[D.p])):T&&(n.f[D.p]=re)}}function M6r(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function P6r(n,i,l){var d,g,y,x;for(l.Ug("Graph transformation ("+n.a+")",1),x=DE(i.a),y=new me(i.b);y.a<y.c.c.length;)g=v(pe(y),30),xs(x,g.a);if(d=v(oe(i,(qt(),LHe)),428),d==(Rz(),$te))switch(v(oe(i,Pd),88).g){case 2:mD(i,x);break;case 3:zD(i,x);break;case 4:n.a==(N8(),Tq)?(zD(i,x),ufe(i,x)):(ufe(i,x),zD(i,x))}else if(n.a==(N8(),Tq))switch(v(oe(i,Pd),88).g){case 2:mD(i,x),ufe(i,x);break;case 3:zD(i,x),mD(i,x);break;case 4:mD(i,x),zD(i,x)}else switch(v(oe(i,Pd),88).g){case 2:mD(i,x),ufe(i,x);break;case 3:mD(i,x),zD(i,x);break;case 4:zD(i,x),mD(i,x)}l.Vg()}function B6r(n){var i,l,d,g,y,x,T,R;for(y=new me(n.a.b);y.a<y.c.c.length;)g=v(pe(y),86),g.b.c=g.g.c,g.b.d=g.g.d;for(R=new Ct(ka,ka),i=new Ct(Ss,Ss),d=new me(n.a.b);d.a<d.c.c.length;)l=v(pe(d),86),R.a=u.Math.min(R.a,l.g.c),R.b=u.Math.min(R.b,l.g.d),i.a=u.Math.max(i.a,l.g.c+l.g.b),i.b=u.Math.max(i.b,l.g.d+l.g.a);for(T=oQ(n.c).a.nc();T.Ob();)x=v(T.Pb(),42),l=v(x.b,86),R.a=u.Math.min(R.a,l.g.c),R.b=u.Math.min(R.b,l.g.d),i.a=u.Math.max(i.a,l.g.c+l.g.b),i.b=u.Math.max(i.b,l.g.d+l.g.a);n.d=OX(new Ct(R.a,R.b)),n.e=$s(new Ct(i.a,i.b),R),n.a.a.c.length=0,n.a.b.c.length=0}function F6r(n){ED();var i,l,d,g,y,x,T;for(T=new i6t,l=new me(n);l.a<l.c.c.length;)i=v(pe(l),148),(!T.b||i.c>=T.b.c)&&(T.b=i),(!T.c||i.c<=T.c.c)&&(T.d=T.c,T.c=i),(!T.e||i.d>=T.e.d)&&(T.e=i),(!T.f||i.d<=T.f.d)&&(T.f=i);return d=new VZ((B8(),dx)),hz(n,Ynn,new wh(Te(xe(Sq,1),Yn,382,0,[d]))),x=new VZ(U4),hz(n,Vnn,new wh(Te(xe(Sq,1),Yn,382,0,[x]))),g=new VZ($4),hz(n,Hnn,new wh(Te(xe(Sq,1),Yn,382,0,[g]))),y=new VZ(A5),hz(n,qnn,new wh(Te(xe(Sq,1),Yn,382,0,[y]))),$1e(d.c,dx),$1e(g.c,$4),$1e(y.c,A5),$1e(x.c,U4),T.a.c.length=0,xs(T.a,d.c),xs(T.a,ff(g.c)),xs(T.a,y.c),xs(T.a,ff(x.c)),T}function $6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;for(i.Ug(HQt,1),re=We(at(Et(n,(Vg(),r3)))),x=We(at(Et(n,(Z1(),OP)))),T=v(Et(n,NP),107),x9e((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a)),D=TWt((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),re,x),!n.a&&(n.a=new vt(Pi,n,10,11)),O=new me(D);O.a<O.c.c.length;)for(R=v(pe(O),186),g=new me(R.a);g.a<g.c.c.length;)d=v(pe(g),172),J=new YNe(d.s,d.t,We(at(Et(n,OP)))),I9e(J,d),Lt(R.d,J);q=wqt(D,x),ae=u.Math.max(q.a,We(at(Et(n,IP)))-(T.b+T.c)),y=u.Math.max(q.b,We(at(Et(n,Dne)))-(T.d+T.a)),l=y-q.b,sa(n,RP,l),sa(n,C6,ae),sa(n,bN,y+l),sa(n,Mne,D),i.Vg()}function U6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le;for(O=new Hp,D=new Hp,ae=new Hp,le=new Hp,R=We(at(oe(i,(qt(),Sx)))),y=We(at(oe(i,O0))),T=new me(l);T.a<T.c.c.length;)if(x=v(pe(T),10),q=v(oe(x,(At(),vc)),64),q==(Bt(),or))for(D.a.zc(x,D),g=new yr(_r(Hs(x).a.Kc(),new S));zr(g);)d=v(Rr(g),18),Es(O,d.c.i);else if(q==Mr)for(le.a.zc(x,le),g=new yr(_r(Hs(x).a.Kc(),new S));zr(g);)d=v(Rr(g),18),Es(ae,d.c.i);O.a.gc()!=0&&(J=new Lde(2,y),re=qPe(J,i,O,D,-R-i.c.b),re>0&&(n.a=R+(re-1)*y,i.c.b+=n.a,i.f.b+=n.a)),ae.a.gc()!=0&&(J=new Lde(1,y),re=qPe(J,i,ae,le,i.f.b+R-i.c.b),re>0&&(i.f.b+=R+(re-1)*y))}function OWt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(D=We(at(oe(n,(qt(),xx)))),d=We(at(oe(n,lVe))),J=new cue,_t(J,xx,D+d),O=i,Se=O.d,le=O.c.i,Me=O.d.i,de=d8e(le.c),Ue=d8e(Me.c),g=new Ot,q=de;q<=Ue;q++)T=new Jm(n),g_(T,(lr(),Ws)),_t(T,(At(),Ji),O),_t(T,Qa,(co(),su)),_t(T,hne,J),re=v(Yt(n.b,q),30),q==de?m4(T,re.a.c.length-l,re):po(T,re),je=We(at(oe(O,vy))),je<0&&(je=0,_t(O,vy,je)),T.o.b=je,ae=u.Math.floor(je/2),x=new zc,Bs(x,(Bt(),cr)),rc(x,T),x.n.b=ae,R=new zc,Bs(R,gr),rc(R,T),R.n.b=ae,lo(O,x),y=new NE,Ul(y,O),_t(y,Nl,null),Uo(y,R),lo(y,Se),kwr(T,O,y),jn(g.c,y),O=y;return g}function gpe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(R=v(hy(n,(Bt(),cr)).Kc().Pb(),12).e,re=v(hy(n,gr).Kc().Pb(),12).g,T=R.c.length,Ue=q1(v(Yt(n.j,0),12));T-- >0;){for(le=($n(0,R.c.length),v(R.c[0],18)),g=($n(0,re.c.length),v(re.c[0],18)),Me=g.d.e,y=$l(Me,g,0),c1r(le,g.d,y),Uo(g,null),lo(g,null),ae=le.a,i&&pi(ae,new Wo(Ue)),d=Ur(g.a,0);d.b!=d.d.c;)l=v(Fr(d),8),pi(ae,new Wo(l));for(Se=le.b,J=new me(g.b);J.a<J.c.c.length;)q=v(pe(J),72),jn(Se.c,q);if(de=v(oe(le,(qt(),Nl)),75),x=v(oe(g,Nl),75),x)for(de||(de=new ah,_t(le,Nl,de)),D=Ur(x,0);D.b!=D.d.c;)O=v(Fr(D),8),pi(de,new Wo(O))}}function z6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;if(le=i.b.c.length,!(le<3)){for(re=st(Wr,vi,28,le,15,1),q=0,D=new me(i.b);D.a<D.c.c.length;)O=v(pe(D),30),re[q++]=O.a.c.length;for(J=new go(i.b,2),d=1;d<le-1;d++)for(l=(Tr(J.b<J.d.gc()),v(J.d.Xb(J.c=J.b++),30)),ae=new me(l.a),y=0,T=0,R=0;R<re[d+1];R++)if(Ue=v(pe(ae),10),R==re[d+1]-1||iMe(n,Ue,d+1,d)){for(x=re[d]-1,iMe(n,Ue,d+1,d)&&(x=n.c.e[v(v(v(Yt(n.c.b,Ue.p),15).Xb(0),42).a,10).p]);T<=R;){if(Me=v(Yt(l.a,T),10),!iMe(n,Me,d+1,d))for(Se=v(Yt(n.c.b,Me.p),15).Kc();Se.Ob();)de=v(Se.Pb(),42),g=n.c.e[v(de.a,10).p],(g<y||g>x)&&Es(n.b,v(de.b,18));++T}y=x}}}function UPe(n,i){var l;if(i==null||An(i,Ku)||i.length==0&&n.k!=(dy(),k6))return null;switch(n.k.g){case 1:return UZ(i,BI)?(Qn(),HI):UZ(i,Ame)?(Qn(),a2):null;case 2:try{return Nt(Nd(i,Po,qi))}catch(d){if(d=Da(d),$e(d,130))return null;throw _e(d)}case 4:try{return y4(i)}catch(d){if(d=Da(d),$e(d,130))return null;throw _e(d)}case 3:return i;case 5:return JUt(n),dVt(n,i);case 6:return JUt(n),U3r(n,n.a,i);case 7:try{return l=Q4r(n),l.cg(i),l}catch(d){if(d=Da(d),$e(d,33))return null;throw _e(d)}default:throw _e(new Tl("Invalid type set for this layout option."))}}function zPe(n){var i;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(i=n.Rj(),n.p){case 0:return i!=null&&Vt(Ht(i))!=qL(n.k,0);case 1:return i!=null&&v(i,222).a!=ti(n.k)<<24>>24;case 2:return i!=null&&v(i,180).a!=(ti(n.k)&vs);case 6:return i!=null&&qL(v(i,168).a,n.k);case 5:return i!=null&&v(i,17).a!=ti(n.k);case 7:return i!=null&&v(i,191).a!=ti(n.k)<<16>>16;case 3:return i!=null&&We(at(i))!=n.j;case 4:return i!=null&&v(i,161).a!=n.j;default:return i==null?n.n!=null:!Yi(i,n.n)}}function RG(n,i,l){var d,g,y,x;return n.ol()&&n.nl()&&(x=Ade(n,v(l,58)),Ze(x)!==Ze(l))?(n.xj(i),n.Dj(i,PBt(n,i,x)),n.al()&&(y=(g=v(l,54),n.ml()?n.kl()?g.Th(n.b,sl(v(qn(Vu(n.b),n.Lj()),19)).n,v(qn(Vu(n.b),n.Lj()).Hk(),29).kk(),null):g.Th(n.b,Ma(g.Dh(),sl(v(qn(Vu(n.b),n.Lj()),19))),null,null):g.Th(n.b,-1-n.Lj(),null,null)),!v(x,54).Ph()&&(y=(d=v(x,54),n.ml()?n.kl()?d.Rh(n.b,sl(v(qn(Vu(n.b),n.Lj()),19)).n,v(qn(Vu(n.b),n.Lj()).Hk(),29).kk(),y):d.Rh(n.b,Ma(d.Dh(),sl(v(qn(Vu(n.b),n.Lj()),19))),null,y):d.Rh(n.b,-1-n.Lj(),null,y))),y&&y.oj()),id(n.b)&&n.Jj(n.Ij(9,l,x,i,!1)),x):l}function LWt(n){var i,l,d,g,y,x,T,R,O,D;for(d=new Ot,x=new me(n.e.a);x.a<x.c.c.length;){for(g=v(pe(x),125),D=0,g.k.c.length=0,l=new me(XT(g));l.a<l.c.c.length;)i=v(pe(l),218),i.f&&(Lt(g.k,i),++D);D==1&&jn(d.c,g)}for(y=new me(d);y.a<y.c.c.length;)for(g=v(pe(y),125);g.k.c.length==1;){for(O=v(pe(new me(g.k)),218),n.b[O.c]=O.g,T=O.d,R=O.e,l=new me(XT(g));l.a<l.c.c.length;)i=v(pe(l),218),Yi(i,O)||(i.f?T==i.d||R==i.e?n.b[O.c]-=n.b[i.c]-i.g:n.b[O.c]+=n.b[i.c]-i.g:g==T?i.d==g?n.b[O.c]+=i.g:n.b[O.c]-=i.g:i.d==g?n.b[O.c]-=i.g:n.b[O.c]+=i.g);Yu(T.k,O),Yu(R.k,O),T==g?g=O.e:g=O.d}}function DWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(l=v(yl(n.b,i),127),R=v(v(Zi(n.r,i),21),87),R.dc()){l.n.b=0,l.n.c=0;return}for(O=n.u.Hc((Ah(),ub)),x=0,T=R.Kc(),D=null,q=0,J=0;T.Ob();)d=v(T.Pb(),117),g=We(at(d.b.of((IX(),ite)))),y=d.b.Mf().a,n.A.Hc((ud(),vw))&&cjt(n,i),D?(re=J+D.d.c+n.w+d.d.b,x=u.Math.max(x,($1(),x0(ep),u.Math.abs(q-g)<=ep||q==g||isNaN(q)&&isNaN(g)?0:re/(g-q)))):n.C&&n.C.b>0&&(x=u.Math.max(x,F$t(n.C.b+d.d.b,g))),D=d,q=g,J=y;n.C&&n.C.c>0&&(re=J+n.C.c,O&&(re+=D.d.c),x=u.Math.max(x,($1(),x0(ep),u.Math.abs(q-1)<=ep||q==1||isNaN(q)&&isNaN(1)?0:re/(1-q)))),l.n.b=0,l.a.a=x}function MWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(l=v(yl(n.b,i),127),R=v(v(Zi(n.r,i),21),87),R.dc()){l.n.d=0,l.n.a=0;return}for(O=n.u.Hc((Ah(),ub)),x=0,n.A.Hc((ud(),vw))&&ujt(n,i),T=R.Kc(),D=null,J=0,q=0;T.Ob();)d=v(T.Pb(),117),y=We(at(d.b.of((IX(),ite)))),g=d.b.Mf().b,D?(re=q+D.d.a+n.w+d.d.d,x=u.Math.max(x,($1(),x0(ep),u.Math.abs(J-y)<=ep||J==y||isNaN(J)&&isNaN(y)?0:re/(y-J)))):n.C&&n.C.d>0&&(x=u.Math.max(x,F$t(n.C.d+d.d.d,y))),D=d,J=y,q=g;n.C&&n.C.a>0&&(re=q+n.C.a,O&&(re+=D.d.a),x=u.Math.max(x,($1(),x0(ep),u.Math.abs(J-1)<=ep||J==1||isNaN(J)&&isNaN(1)?0:re/(1-J)))),l.n.d=0,l.a.b=x}function G6r(n,i,l,d,g,y,x,T){var R,O,D,q,J,re,ae,le,de,Se;if(ae=!1,O=WMe(l.q,i.f+i.b-l.q.f),re=d.f>i.b&&T,Se=g-(l.q.e+O-x),q=(R=dM(d,Se,!1),R.a),re&&q>d.f)return!1;if(re){for(J=0,de=new me(i.d);de.a<de.c.c.length;)le=v(pe(de),315),J+=WMe(le,d.f)+x;Se=g-J}return Se<d.g||(D=y==n.c.length-1&&Se>=($n(y,n.c.length),v(n.c[y],186)).e,!re&&q>i.b&&!D)?!1:((D||re||q<=i.b)&&(D&&q>i.b?(l.d=q,_z(l,wHt(l,q))):($qt(l.q,O),l.c=!0),_z(d,g-(l.s+l.r)),nG(d,l.q.e+l.q.d,i.f),aZ(i,d),n.c.length>y&&(aG(($n(y,n.c.length),v(n.c[y],186)),d),($n(y,n.c.length),v(n.c[y],186)).a.c.length==0&&Jb(n,y)),ae=!0),ae)}function PWt(n,i,l){var d,g,y,x,T,R;for(this.g=n,T=i.d.length,R=l.d.length,this.d=st(tm,gy,10,T+R,0,1),x=0;x<T;x++)this.d[x]=i.d[x];for(y=0;y<R;y++)this.d[T+y]=l.d[y];if(i.e){if(this.e=KU(i.e),this.e.Mc(l),l.e)for(g=l.e.Kc();g.Ob();)d=v(g.Pb(),239),d!=i&&(this.e.Hc(d)?--d.c:this.e.Fc(d))}else l.e&&(this.e=KU(l.e),this.e.Mc(i));this.f=i.f+l.f,this.a=i.a+l.a,this.a>0?Ufe(this,this.f/this.a):U1(i.g,i.d[0]).a!=null&&U1(l.g,l.d[0]).a!=null?Ufe(this,(We(U1(i.g,i.d[0]).a)+We(U1(l.g,l.d[0]).a))/2):U1(i.g,i.d[0]).a!=null?Ufe(this,U1(i.g,i.d[0]).a):U1(l.g,l.d[0]).a!=null&&Ufe(this,U1(l.g,l.d[0]).a)}function q6r(n,i){var l,d,g,y,x,T,R,O,D,q;for(n.a=new gLt(Tbr(zP)),d=new me(i.a);d.a<d.c.c.length;){for(l=v(pe(d),855),T=new z0e(Te(xe(jbe,1),Yn,86,0,[])),Lt(n.a.a,T),O=new me(l.d);O.a<O.c.c.length;)R=v(pe(O),116),D=new U8e(n,R),HPe(D,v(oe(l.c,(At(),ob)),21)),Tu(n.g,l)||(Ni(n.g,l,new Ct(R.c,R.d)),Ni(n.f,l,D)),Lt(n.a.b,D),cfe(T,D);for(x=new me(l.b);x.a<x.c.c.length;)y=v(pe(x),602),D=new U8e(n,y.Df()),Ni(n.b,y,new Ms(T,D)),HPe(D,v(oe(l.c,(At(),ob)),21)),y.Bf()&&(q=new XLe(n,y.Bf(),1),HPe(q,v(oe(l.c,ob),21)),g=new z0e(Te(xe(jbe,1),Yn,86,0,[])),cfe(g,q),Rn(n.c,y.Af(),new Ms(T,q)))}return n.a}function BWt(n){var i;this.a=n,i=(lr(),Te(xe(eye,1),wt,273,0,[is,Ws,hs,iu,Pc,ip])).length,this.b=E_(g2e,[kt,d$e],[601,149],0,[i,i],2),this.c=E_(g2e,[kt,d$e],[601,149],0,[i,i],2),Xde(this,is,(qt(),Sx),z5),RD(this,is,Ws,xx,dw),iz(this,is,iu,xx),iz(this,is,hs,xx),RD(this,is,Pc,Sx,z5),Xde(this,Ws,O0,$5),iz(this,Ws,iu,O0),iz(this,Ws,hs,O0),RD(this,Ws,Pc,xx,dw),kIt(this,iu,O0),iz(this,iu,hs,O0),iz(this,iu,Pc,Zye),kIt(this,hs,pP),RD(this,hs,Pc,hN,uN),Xde(this,Pc,O0,O0),Xde(this,ip,O0,$5),RD(this,ip,is,xx,dw),RD(this,ip,Pc,xx,dw),RD(this,ip,Ws,xx,dw)}function H6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(x=l.Lk(),$e(x,102)&&v(x,19).Bb&el&&(J=v(l.md(),54),le=Hv(n.e,J),le!=J)){if(D=zg(x,le),KL(n,i,y1e(n,i,D)),q=null,id(n.e)&&(d=h5((dh(),ko),n.e.Dh(),x),d!=qn(n.e.Dh(),n.c))){for(de=Iu(n.e.Dh(),x),T=0,y=v(n.g,124),R=0;R<i;++R)g=y[R],de.am(g.Lk())&&++T;q=new ffe(n.e,9,d,J,le,T,!1),q.nj(new Vm(n.e,9,n.c,l,D,i,!1))}return ae=v(x,19),re=sl(ae),re?(q=J.Th(n.e,Ma(J.Dh(),re),null,q),q=v(le,54).Rh(n.e,Ma(le.Dh(),re),null,q)):ae.Bb&Sc&&(O=-1-Ma(n.e.Dh(),ae),q=J.Th(n.e,O,null,null),!v(le,54).Ph()&&(q=v(le,54).Rh(n.e,O,null,q))),q&&q.oj(),D}return l}function V6r(n){var i,l,d;for(WT(w2,Te(xe(C5,1),Yn,134,0,[new W6e])),l=new t7e(n),d=0;d<l.a.length;++d)i=s4(l,d).te().a,An(i,"layered")?WT(w2,Te(xe(C5,1),Yn,134,0,[new bTt])):An(i,"force")?WT(w2,Te(xe(C5,1),Yn,134,0,[new X3t])):An(i,"stress")?WT(w2,Te(xe(C5,1),Yn,134,0,[new Z3t])):An(i,"mrtree")?WT(w2,Te(xe(C5,1),Yn,134,0,[new TTt])):An(i,"radial")?WT(w2,Te(xe(C5,1),Yn,134,0,[new NTt])):An(i,"disco")?WT(w2,Te(xe(C5,1),Yn,134,0,[new j3t,new W3t])):An(i,"sporeOverlap")||An(i,"sporeCompaction")?WT(w2,Te(xe(C5,1),Yn,134,0,[new PTt])):An(i,"rectpacking")&&WT(w2,Te(xe(C5,1),Yn,134,0,[new LTt]))}function FWt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(J=new Wo(n.o),Se=i.a/J.a,T=i.b/J.b,le=i.a-J.a,y=i.b-J.b,l)for(g=Ze(oe(n,(qt(),Qa)))===Ze((co(),su)),ae=new me(n.j);ae.a<ae.c.c.length;)switch(re=v(pe(ae),12),re.j.g){case 1:g||(re.n.a*=Se);break;case 2:re.n.a+=le,g||(re.n.b*=T);break;case 3:g||(re.n.a*=Se),re.n.b+=y;break;case 4:g||(re.n.b*=T)}for(O=new me(n.b);O.a<O.c.c.length;)R=v(pe(O),72),D=R.n.a+R.o.a/2,q=R.n.b+R.o.b/2,de=D/J.a,x=q/J.b,de+x>=1&&(de-x>0&&q>=0?(R.n.a+=le,R.n.b+=y*x):de-x<0&&D>=0&&(R.n.a+=le*de,R.n.b+=y));n.o.a=i.a,n.o.b=i.b,_t(n,(qt(),uw),(ud(),d=v(n1(WP),9),new nf(d,v(v0(d,d.length),9),0)))}function Y6r(n,i,l,d,g,y){var x;if(!(i==null||!L0e(i,RKe,IKe)))throw _e(new ar("invalid scheme: "+i));if(!n&&!(l!=null&&qp(l,Wu(35))==-1&&l.length>0&&(sr(0,l.length),l.charCodeAt(0)!=47)))throw _e(new ar("invalid opaquePart: "+l));if(n&&!(i!=null&&mU(dre,i.toLowerCase()))&&!(l==null||!L0e(l,ZP,JP)))throw _e(new ar(yJt+l));if(n&&i!=null&&mU(dre,i.toLowerCase())&&!TEr(l))throw _e(new ar(yJt+l));if(!Nvr(d))throw _e(new ar("invalid device: "+d));if(!gyr(g))throw x=g==null?"invalid segments: null":"invalid segment: "+hyr(g),_e(new ar(x));if(!(y==null||qp(y,Wu(35))==-1))throw _e(new ar("invalid query: "+y))}function j6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(l.Ug("Network simplex layering",1),n.b=i,Se=v(oe(i,(qt(),gP)),17).a*4,de=n.b.a,de.c.length<1){l.Vg();return}for(y=HCr(n,de),le=null,g=Ur(y,0);g.b!=g.d.c;){for(d=v(Fr(g),15),T=Se*Ps(u.Math.sqrt(d.gc())),x=aAr(d),Q1e(oRe(Vir(lRe(sde(x),T),le),!0),l.eh(1)),J=n.b.b,ae=new me(x.a);ae.a<ae.c.c.length;){for(re=v(pe(ae),125);J.c.length<=re.e;)EE(J,J.c.length,new Xc(n.b));D=v(re.f,10),po(D,v(Yt(J,re.e),30))}if(y.b>1)for(le=st(Wr,vi,28,n.b.b.c.length,15,1),q=0,O=new me(n.b.b);O.a<O.c.c.length;)R=v(pe(O),30),le[q++]=R.a.c.length}de.c.length=0,n.a=null,n.b=null,n.c=null,l.Vg()}function W6r(n,i){var l,d,g,y,x,T,R,O,D,q;for(D=new Ot,q=new FT,y=null,g=0,d=0;d<i.length;++d)switch(l=i[d],eyr(y,l)&&(g=ALe(n,q,D,_ne,g)),ya(l,(At(),mx))&&(y=v(oe(l,mx),10)),l.k.g){case 0:for(R=g8e(vk(sc(l,(Bt(),or)),new z6e));Vfe(R);)x=v(YOe(R),12),n.d[x.p]=g++,jn(D.c,x);for(g=ALe(n,q,D,_ne,g),O=g8e(vk(sc(l,Mr),new z6e));Vfe(O);)x=v(YOe(O),12),n.d[x.p]=g++,jn(D.c,x);break;case 3:sc(l,VVe).dc()||(x=v(sc(l,VVe).Xb(0),12),n.d[x.p]=g++,jn(D.c,x)),sc(l,_ne).dc()||Fv(q,l);break;case 1:for(T=sc(l,(Bt(),cr)).Kc();T.Ob();)x=v(T.Pb(),12),n.d[x.p]=g++,jn(D.c,x);sc(l,gr).Jc(new i8t(q,l))}return ALe(n,q,D,_ne,g),D}function GPe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(i==null||i.length==0)return null;if(y=v(Qc(n.f,i),23),!y){for(g=(re=new Dm(n.d).a.vc().Kc(),new FS(re));g.a.Ob();)if(l=(x=v(g.a.Pb(),44),v(x.md(),23)),T=l.f,ae=i.length,An(T.substr(T.length-ae,ae),i)&&(i.length==T.length||Do(T,T.length-i.length-1)==46)){if(y)return null;y=l}if(!y){for(d=(J=new Dm(n.d).a.vc().Kc(),new FS(J));d.a.Ob();)if(l=(x=v(d.a.Pb(),44),v(x.md(),23)),q=l.g,q!=null){for(R=q,O=0,D=R.length;O<D;++O)if(T=R[O],ae=i.length,An(T.substr(T.length-ae,ae),i)&&(i.length==T.length||Do(T,T.length-i.length-1)==46)){if(y)return null;y=l}}}y&&Cl(n.f,i,y)}return y}function K6r(n,i){var l,d,g,y,x;for(l=new sk,x=!1,y=0;y<i.length;y++){if(d=(sr(y,i.length),i.charCodeAt(y)),d==32){for(zZ(n,l,0),l.a+=" ",zZ(n,l,0);y+1<i.length&&(sr(y+1,i.length),i.charCodeAt(y+1)==32);)++y;continue}if(x){d==39?y+1<i.length&&(sr(y+1,i.length),i.charCodeAt(y+1)==39)?(l.a+=String.fromCharCode(d),++y):x=!1:l.a+=String.fromCharCode(d);continue}if(qp("GyMLdkHmsSEcDahKzZv",Wu(d))>0){zZ(n,l,0),l.a+=String.fromCharCode(d),g=g2r(i,y),zZ(n,l,g),y+=g-1;continue}d==39?y+1<i.length&&(sr(y+1,i.length),i.charCodeAt(y+1)==39)?(l.a+="'",++y):x=!0:l.a+=String.fromCharCode(d)}zZ(n,l,0),jEr(n)}function X6r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(Ue=qOt(n),R=new Ot,y=n.c.length,O=y-1,D=y+1;Ue.a.gc()!=0;){for(;l.b!=0;)Se=(Tr(l.b!=0),v(cf(l,l.a.a),118)),Ue.a.Bc(Se)!=null,Se.g=O--,RPe(Se,i,l,d);for(;i.b!=0;)Me=(Tr(i.b!=0),v(cf(i,i.a.a),118)),Ue.a.Bc(Me)!=null,Me.g=D++,RPe(Me,i,l,d);for(T=Po,le=Ue.a.ec().Kc();le.Ob();){if(ae=v(le.Pb(),118),!d&&ae.b>0&&ae.a<=0){R.c.length=0,jn(R.c,ae);break}re=ae.i-ae.d,re>=T&&(re>T&&(R.c.length=0,T=re),jn(R.c,ae))}R.c.length!=0&&(x=v(Yt(R,KZ(g,R.c.length)),118),Ue.a.Bc(x)!=null,x.g=D++,RPe(x,i,l,d),R.c.length=0)}for(de=n.c.length+1,J=new me(n);J.a<J.c.c.length;)q=v(pe(J),118),q.g<y&&(q.g=q.g+de)}function $Wt(n,i,l){var d,g,y,x;this.j=n,this.e=BDe(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?v(Yt(l,So(this.o).p),219):null,g=v(oe(n,(At(),au)),21),this.g=g.Hc((cl(),wf)),this.b=new Ot,this.d=new Qzt(this.e),x=v(oe(this.j,x6),234),this.q=Zmr(i,x,this.e),this.k=new zDt(this),y=H1(Te(xe(mrn,1),Yn,230,0,[this,this.d,this.k,this.q])),i==($E(),qq)&&!Vt(Ht(oe(n,(qt(),vx))))?(d=new UDe(this.e),jn(y.c,d),this.c=new oOe(d,x,v(this.q,413))):i==qq&&Vt(Ht(oe(n,(qt(),vx))))?(d=new UDe(this.e),jn(y.c,d),this.c=new O$t(d,x,v(this.q,413))):this.c=new r8t(i,this),Lt(y,this.c),EWt(y,this.e),this.s=BRr(this.k)}function Q6r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de;for(y=new Ot,O=new me(d);O.a<O.c.c.length;)if(T=v(pe(O),453),x=null,T.f==(ll(),_u))for(ae=new me(T.e);ae.a<ae.c.c.length;)re=v(pe(ae),18),de=re.d.i,So(de)==i?zFt(n,i,T,re,T.b,re.d):!l||D8(de,l)?Axr(n,i,T,d,re):(J=hpe(n,i,l,re,T.b,_u,x),J!=x&&jn(y.c,J),J.c&&(x=J));else for(q=new me(T.e);q.a<q.c.c.length;)if(D=v(pe(q),18),le=D.c.i,So(le)==i)zFt(n,i,T,D,D.c,T.b);else{if(!l||D8(le,l))continue;J=hpe(n,i,l,D,T.b,Rh,x),J!=x&&jn(y.c,J),J.c&&(x=J)}for(R=new me(y);R.a<R.c.c.length;)T=v(pe(R),453),$l(i.a,T.a,0)!=-1||Lt(i.a,T.a),T.c&&jn(g.c,T)}function UWt(n){var i,l,d,g,y,x,T;for(i=0,y=new me(n.b.a);y.a<y.c.c.length;)d=v(pe(y),194),d.b=0,d.c=0;for(vHt(n,0),D0e(n,n.g),vJ(n.c),rRe(n.c),l=(ys(),Ol),SG(Ehe(d5(SG(Ehe(d5(SG(d5(n.c,l)),Ozt(l)))),l))),d5(n.c,Ol),k0e(n,n.g),aHt(n,0),yWt(n,0),JVt(n,1),vHt(n,1),D0e(n,n.d),vJ(n.c),x=new me(n.b.a);x.a<x.c.c.length;)d=v(pe(x),194),i+=u.Math.abs(d.c);for(T=new me(n.b.a);T.a<T.c.c.length;)d=v(pe(T),194),d.b=0,d.c=0;for(l=Ef,SG(Ehe(d5(SG(Ehe(d5(SG(rRe(d5(n.c,l))),Ozt(l)))),l))),d5(n.c,Ol),k0e(n,n.d),aHt(n,1),yWt(n,1),JVt(n,0),rRe(n.c),g=new me(n.b.a);g.a<g.c.c.length;)d=v(pe(g),194),i+=u.Math.abs(d.c);return i}function Z6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(Vt(Ht(oe(l,(qt(),K4)))))for(T=new me(l.j);T.a<T.c.c.length;)for(x=v(pe(T),12),J=Xp(x.g),O=J,D=0,q=O.length;D<q;++D)R=O[D],y=R.d.i==l,g=y&&Vt(Ht(oe(R,lw))),g&&(ae=R.c,re=v(br(n.b,ae),10),re||(re=IG(ae,(co(),up),ae.j,-1,null,null,ae.o,v(oe(i,Pd),88),i),_t(re,(At(),Ji),ae),Ni(n.b,ae,re),Lt(i.a,re)),de=R.d,le=v(br(n.b,de),10),le||(le=IG(de,(co(),up),de.j,1,null,null,de.o,v(oe(i,Pd),88),i),_t(le,(At(),Ji),de),Ni(n.b,de,le),Lt(i.a,le)),d=yfe(R),Uo(d,v(Yt(re.j,0),12)),lo(d,v(Yt(le.j,0),12)),Rn(n.a,R,new PX(d,i,(ll(),_u))),v(oe(i,(At(),au)),21).Fc((cl(),wf)))}function J6r(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(g=new me(n.a.b);g.a<g.c.c.length;)for(l=v(pe(g),30),R=new me(l.a);R.a<R.c.c.length;)T=v(pe(R),10),i.j[T.p]=T,i.i[T.p]=i.o==(G1(),sp)?Ss:ka;for(xh(n.c),x=n.a.b,i.c==(Kp(),Ey)&&(x=ff(x)),t1r(n.e,i,n.b),_U(i.p,null),y=x.Kc();y.Ob();)for(l=v(y.Pb(),30),O=l.a,i.o==(G1(),sp)&&(O=ff(O)),J=O.Kc();J.Ob();)q=v(J.Pb(),10),i.g[q.p]==q&&xKt(n,q,i);for(N6r(n,i),d=x.Kc();d.Ob();)for(l=v(d.Pb(),30),J=new me(l.a);J.a<J.c.c.length;)q=v(pe(J),10),i.p[q.p]=i.p[i.g[q.p].p],q==i.g[q.p]&&(D=We(i.i[i.j[q.p].p]),(i.o==(G1(),sp)&&D>Ss||i.o==fw&&D<ka)&&(i.p[q.p]=We(i.p[q.p])+D));n.e.xg()}function e7r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;for(l.Ug("Label dummy switching",1),d=v(oe(i,(qt(),rne)),232),Hmr(i),g=L3r(i,d),n.a=st(ao,_l,28,i.b.c.length,15,1),T=(jk(),Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5])),D=0,re=T.length;D<re;++D)if(y=T[D],(y==N5||y==I5||y==H4)&&!v(oh(g.a,y)?g.b[y.g]:null,15).dc()){Kmr(n,i);break}for(R=Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5]),q=0,ae=R.length;q<ae;++q)y=R[q],y==N5||y==I5||y==H4||Cjt(n,v(oh(g.a,y)?g.b[y.g]:null,15));for(x=Te(xe(ZI,1),wt,232,0,[QI,tP,XI,H4,N5,I5]),O=0,J=x.length;O<J;++O)y=x[O],(y==N5||y==I5||y==H4)&&Cjt(n,v(oh(g.a,y)?g.b[y.g]:null,15));n.a=null,l.Vg()}function zWt(n,i){var l,d,g,y,x,T,R,O,D;if(O=i,!(O.b==null||n.b==null)){for(a5(n),fM(n),a5(O),fM(O),l=st(Wr,vi,28,n.b.length+O.b.length,15,1),D=0,d=0,x=0;d<n.b.length&&x<O.b.length;)if(g=n.b[d],y=n.b[d+1],T=O.b[x],R=O.b[x+1],y<T)d+=2;else if(y>=T&&g<=R)T<=g&&y<=R?(l[D++]=g,l[D++]=y,d+=2):T<=g?(l[D++]=g,l[D++]=R,n.b[d]=R+1,x+=2):y<=R?(l[D++]=T,l[D++]=y,d+=2):(l[D++]=T,l[D++]=R,n.b[d]=R+1);else if(R<g)x+=2;else throw _e(new tc("Token#intersectRanges(): Internal Error: ["+n.b[d]+","+n.b[d+1]+"] & ["+O.b[x]+","+O.b[x+1]+"]"));for(;d<n.b.length;)l[D++]=n.b[d++],l[D++]=n.b[d++];n.b=st(Wr,vi,28,D,15,1),Gc(l,0,n.b,0,D)}}function t7r(n){var i,l,d,g,y,x,T;for(i=new Ot,n.g=new Ot,n.d=new Ot,x=new P_(new b_(n.f.b).a);x.b;)y=zE(x),Lt(i,v(v(y.md(),42).b,86)),Bm(v(y.ld(),602).Af())?Lt(n.d,v(y.md(),42)):Lt(n.g,v(y.md(),42));for(D0e(n,n.d),D0e(n,n.g),n.c=new gVt(n.b),jir(n.c,(ERe(),Fnn)),k0e(n,n.d),k0e(n,n.g),xs(i,n.c.a.b),n.e=new Ct(ka,ka),n.a=new Ct(Ss,Ss),d=new me(i);d.a<d.c.c.length;)l=v(pe(d),86),n.e.a=u.Math.min(n.e.a,l.g.c),n.e.b=u.Math.min(n.e.b,l.g.d),n.a.a=u.Math.max(n.a.a,l.g.c+l.g.b),n.a.b=u.Math.max(n.a.b,l.g.d+l.g.a);uRe(n.c,new d_),T=0;do g=UWt(n),++T;while((T<2||g>Zv)&&T<10);uRe(n.c,new tE),UWt(n),Ghr(n.c),B6r(n.f)}function n7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(l=v(oe(n,(qt(),Qa)),101),x=n.f,y=n.d,T=x.a+y.b+y.c,R=0-y.d-n.c.b,D=x.b+y.d+y.a-n.c.b,O=new Ot,q=new Ot,g=new me(i);g.a<g.c.c.length;){switch(d=v(pe(g),10),l.g){case 1:case 2:case 3:HTr(d);break;case 4:J=v(oe(d,Ex),8),re=J?J.a:0,d.n.a=T*We(at(oe(d,(At(),bx))))-re,_Z(d,!0,!1);break;case 5:ae=v(oe(d,Ex),8),le=ae?ae.a:0,d.n.a=We(at(oe(d,(At(),bx))))-le,_Z(d,!0,!1),x.a=u.Math.max(x.a,d.n.a+d.o.a/2)}switch(v(oe(d,(At(),vc)),64).g){case 1:d.n.b=R,jn(O.c,d);break;case 3:d.n.b=D,jn(q.c,d)}}switch(l.g){case 1:case 2:wzt(O,n),wzt(q,n);break;case 3:Ezt(O,n),Ezt(q,n)}}function r7r(n,i){var l,d,g,y,x,T,R,O,D,q,J;switch(n.k.g){case 1:if(d=v(oe(n,(At(),Ji)),18),l=v(oe(d,jqe),75),l?Vt(Ht(oe(d,ap)))&&(l=Gz(l)):l=new ah,O=v(oe(n,m1),12),O){if(D=ac(Te(xe(Vs,1),kt,8,0,[O.i.n,O.n,O.a])),i<=D.a)return D.b;qa(l,D,l.a,l.a.a)}if(q=v(oe(n,Kf),12),q){if(J=ac(Te(xe(Vs,1),kt,8,0,[q.i.n,q.n,q.a])),J.a<=i)return J.b;qa(l,J,l.c.b,l.c)}if(l.b>=2){for(R=Ur(l,0),x=v(Fr(R),8),T=v(Fr(R),8);T.a<i&&R.b!=R.d.c;)x=T,T=v(Fr(R),8);return x.b+(i-x.a)/(T.a-x.a)*(T.b-x.b)}break;case 3:switch(y=v(oe(v(Yt(n.j,0),12),(At(),Ji)),12),g=y.i,y.j.g){case 1:return g.n.b;case 3:return g.n.b+g.o.b}}return kDe(n).b}function i7r(n){var i,l,d,g,y,x,T,R,O,D,q;for(x=new me(n.d.b);x.a<x.c.c.length;)for(y=v(pe(x),30),R=new me(y.a);R.a<R.c.c.length;){if(T=v(pe(R),10),Vt(Ht(oe(T,(qt(),uP))))&&!b8(Qm(T))){d=v(Qdr(Qm(T)),18),D=d.c.i,D==T&&(D=d.d.i),q=new Ms(D,$s(Eo(T.n),D.n)),Ni(n.b,T,q);continue}g=new rf(T.n.a-T.d.b,T.n.b-T.d.d,T.o.a+T.d.b+T.d.c,T.o.b+T.d.d+T.d.a),i=bNt(SRt(ERt(xRt(new F7e,T),g),prn),n.a),mNt(_ar(l$t(new B7e,Te(xe(nte,1),Yn,60,0,[i])),i),n.a),O=new Cue,Ni(n.e,i,O),l=Gm(new yr(_r(Hs(T).a.Kc(),new S)))-Gm(new yr(_r(os(T).a.Kc(),new S))),l<0?Uz(O,!0,(ys(),Ol)):l>0&&Uz(O,!0,(ys(),ql)),T.k==(lr(),hs)&&SLt(O),Ni(n.f,T,i)}}function a7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(g=v(oe(n,(fa(),AP)),27),O=qi,D=qi,T=Po,R=Po,Ue=Ur(n.b,0);Ue.b!=Ue.d.c;)Se=v(Fr(Ue),40),re=Se.e,ae=Se.f,O=u.Math.min(O,re.a-ae.a/2),D=u.Math.min(D,re.b-ae.b/2),T=u.Math.max(T,re.a+ae.a/2),R=u.Math.max(R,re.b+ae.b/2);for(J=v(Et(g,(pc(),vYe)),107),Me=Ur(n.b,0);Me.b!=Me.d.c;)Se=v(Fr(Me),40),q=oe(Se,AP),$e(q,207)&&(y=v(q,27),ef(y,Se.e.a,Se.e.b),yG(y,Se));for(de=Ur(n.a,0);de.b!=de.d.c;)le=v(Fr(de),65),d=v(oe(le,AP),74),d&&(i=le.a,l=o5(d,!0,!0),TG(i,l));je=T-O+(J.b+J.c),x=R-D+(J.d+J.a),Vt(Ht(Et(g,(Ei(),i3))))||JE(g,je,x,!1,!1),sa(g,Z5,je-(J.b+J.c)),sa(g,Q5,x-(J.d+J.a))}function GWt(n,i){var l,d,g,y,x,T,R,O,D,q;for(R=!0,g=0,O=n.g[i.p],D=i.o.b+n.o,l=n.d[i.p][2],of(n.b,O,Nt(v(Yt(n.b,O),17).a-1+l)),of(n.c,O,We(at(Yt(n.c,O)))-D+l*n.f),++O,O>=n.j?(++n.j,Lt(n.b,Nt(1)),Lt(n.c,D)):(d=n.d[i.p][1],of(n.b,O,Nt(v(Yt(n.b,O),17).a+1-d)),of(n.c,O,We(at(Yt(n.c,O)))+D-d*n.f)),(n.r==(qf(),Uq)&&(v(Yt(n.b,O),17).a>n.k||v(Yt(n.b,O-1),17).a>n.k)||n.r==zq&&(We(at(Yt(n.c,O)))>n.n||We(at(Yt(n.c,O-1)))>n.n))&&(R=!1),x=new yr(_r(Hs(i).a.Kc(),new S));zr(x);)y=v(Rr(x),18),T=y.c.i,n.g[T.p]==O&&(q=GWt(n,T),g=g+v(q.a,17).a,R=R&&Vt(Ht(q.b)));return n.g[i.p]=O,g=g+n.d[i.p][0],new Ms(Nt(g),(Qn(),!!R))}function qWt(n,i){var l,d,g,y,x;l=We(at(oe(i,(qt(),O0)))),l<2&&_t(i,O0,2),d=v(oe(i,Pd),88),d==(ys(),cp)&&_t(i,Pd,IZ(i)),g=v(oe(i,ssn),17),g.a==0?_t(i,(At(),x6),new M0e):_t(i,(At(),x6),new LQ(g.a)),y=Ht(oe(i,dP)),y==null&&_t(i,dP,(Qn(),Ze(oe(i,lb))===Ze((Xm(),xN)))),ts(new xn(null,new Nn(i.a,16)),new _7e(n)),ts(ic(new xn(null,new Nn(i.b,16)),new rd),new w7e(n)),x=new BWt(i),_t(i,(At(),B5),x),nz(n.a),a1(n.a,(Mo(),N0),v(oe(i,ow),188)),a1(n.a,em,v(oe(i,cw),188)),a1(n.a,qc,v(oe(i,hP),188)),a1(n.a,ru,v(oe(i,cne),188)),a1(n.a,Gl,abr(v(oe(i,lb),223))),p8e(n.a,e8r(i)),_t(i,Bye,kG(n.a,i))}function qPe(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(q=new Br,x=new Ot,GHt(n,l,n.d.Ag(),x,q),GHt(n,d,n.d.Bg(),x,q),n.b=.2*(le=jVt(ic(new xn(null,new Nn(x,16)),new Jwt)),de=jVt(ic(new xn(null,new Nn(x,16)),new eEt)),u.Math.min(le,de)),y=0,T=0;T<x.c.length-1;T++)for(R=($n(T,x.c.length),v(x.c[T],118)),ae=T+1;ae<x.c.length;ae++)y+=PPe(n,R,($n(ae,x.c.length),v(x.c[ae],118)));for(J=v(oe(i,(At(),x6)),234),y>=2&&(Se=dYt(x,!0,J),!n.e&&(n.e=new xAt(n)),h2r(n.e,Se,x,n.b)),Kqt(x,J),h7r(x),re=-1,D=new me(x);D.a<D.c.c.length;)O=v(pe(D),118),!(u.Math.abs(O.s-O.c)<sg)&&(re=u.Math.max(re,O.o),n.d.yg(O,g,n.c));return n.d.a.a.$b(),re+1}function s7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(q=v(SX((x=Ur(new Mm(i).a.d,0),new xT(x))),40),ae=q?v(oe(q,(fa(),kve)),40):null,g=1;q&&ae;){for(R=0,je=0,l=q,d=ae,T=0;T<g;T++)l=Efe(l),d=Efe(d),je+=We(at(oe(l,(fa(),mN)))),R+=We(at(oe(d,mN)));if(Ue=We(at(oe(ae,(fa(),xy)))),Me=We(at(oe(q,xy))),J=_Le(n,q,ae),re=Ue+R+n.b+J-Me-je,0<re){for(O=i,D=0;O&&O!=d;)++D,O=v(oe(O,Tne),40);if(O)for(Se=re/D,O=i;O!=d;)de=We(at(oe(O,xy)))+re,_t(O,xy,de),le=We(at(oe(O,mN)))+re,_t(O,mN,le),re-=Se,O=v(oe(O,Tne),40);else return}++g,q.d.b==0?q=wPe(new Mm(i),g):q=v(SX((y=Ur(new Mm(q).a.d,0),new xT(y))),40),ae=q?v(oe(q,kve),40):null}}function o7r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;return J=n.c[i],re=n.c[l],ae=v(oe(J,(At(),w6)),15),!!ae&&ae.gc()!=0&&ae.Hc(re)||(le=J.k!=(lr(),Ws)&&re.k!=Ws,de=v(oe(J,mx),10),Se=v(oe(re,mx),10),Me=de!=Se,Ue=!!de&&de!=J||!!Se&&Se!=re,je=r1e(J,(Bt(),or)),yt=r1e(re,Mr),Ue=Ue|(r1e(J,Mr)||r1e(re,or)),xt=Ue&&Me||je||yt,le&&xt)||J.k==(lr(),iu)&&re.k==is||re.k==(lr(),iu)&&J.k==is?!1:(D=n.c[i],y=n.c[l],g=Dqt(n.e,D,y,(Bt(),cr)),R=Dqt(n.i,D,y,gr),BTr(n.f,D,y),O=WUt(n.b,D,y)+v(g.a,17).a+v(R.a,17).a+n.f.d,T=WUt(n.b,y,D)+v(g.b,17).a+v(R.b,17).a+n.f.b,n.a&&(q=v(oe(D,Ji),12),x=v(oe(y,Ji),12),d=gqt(n.g,q,x),O+=v(d.a,17).a,T+=v(d.b,17).a),O>T)}function HWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(O=ka,D=ka,T=Ss,R=Ss,J=new me(i.i);J.a<J.c.c.length;)q=v(pe(J),68),g=v(v(br(n.g,q.a),42).b,27),ef(g,q.b.c,q.b.d),O=u.Math.min(O,g.i),D=u.Math.min(D,g.j),T=u.Math.max(T,g.i+g.g),R=u.Math.max(R,g.j+g.f);for(re=v(Et(n.c,(cG(),fcn)),107),JE(n.c,T-O+(re.b+re.c),R-D+(re.d+re.a),!0,!0),WDe(n.c,-O+re.b,-D+re.d),d=new mr(QLt(n.c));d.e!=d.i.gc();)l=v(wr(d),74),x=o5(l,!0,!0),ae=Hg(l),de=jv(l),le=new Ct(ae.i+ae.g/2,ae.j+ae.f/2),y=new Ct(de.i+de.g/2,de.j+de.f/2),Se=$s(new Ct(y.a,y.b),le),nI(Se,ae.g,ae.f),Hi(le,Se),Me=$s(new Ct(le.a,le.b),y),nI(Me,de.g,de.f),Hi(y,Me),PU(x,le.a,le.b),MU(x,y.a,y.b)}function l7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;for(i.Ug("Label dummy removal",1),d=We(at(oe(n,(qt(),U5)))),g=We(at(oe(n,J4))),O=v(oe(n,Pd),88),R=new me(n.b);R.a<R.c.c.length;)for(T=v(pe(R),30),q=new go(T.a,0);q.b<q.d.gc();)D=(Tr(q.b<q.d.gc()),v(q.d.Xb(q.c=q.b++),10)),D.k==(lr(),Pc)&&(J=v(oe(D,(At(),Ji)),18),ae=We(at(oe(J,vy))),x=Ze(oe(D,E6))===Ze((Id(),m2)),l=new Wo(D.n),x&&(l.b+=ae+d),y=new Ct(D.o.a,D.o.b+(D.k==Pc&&!VR(Ki(v(oe(D,oP),15).Oc(),new PR(new L6e))).Bd((w_(),p6))?0:-ae-d)),re=v(oe(D,oP),15),O==(ys(),Ef)||O==lp?p3r(re,l,g,y,x,O):Eyr(re,l,g,y),xs(J.b,re),gpe(D,Ze(oe(n,lb))===Ze((Xm(),uH))),ld(q));i.Vg()}function c7r(n){n.q||(n.q=!0,n.p=fc(n,0),n.a=fc(n,1),_a(n.a,0),n.f=fc(n,2),_a(n.f,1),Ha(n.f,2),n.n=fc(n,3),Ha(n.n,3),Ha(n.n,4),Ha(n.n,5),Ha(n.n,6),n.g=fc(n,4),_a(n.g,7),Ha(n.g,8),n.c=fc(n,5),_a(n.c,7),_a(n.c,8),n.i=fc(n,6),_a(n.i,9),_a(n.i,10),_a(n.i,11),_a(n.i,12),Ha(n.i,13),n.j=fc(n,7),_a(n.j,9),n.d=fc(n,8),_a(n.d,3),_a(n.d,4),_a(n.d,5),_a(n.d,6),Ha(n.d,7),Ha(n.d,8),Ha(n.d,9),Ha(n.d,10),n.b=fc(n,9),Ha(n.b,0),Ha(n.b,1),n.e=fc(n,10),Ha(n.e,1),Ha(n.e,2),Ha(n.e,3),Ha(n.e,4),_a(n.e,5),_a(n.e,6),_a(n.e,7),_a(n.e,8),_a(n.e,9),_a(n.e,10),Ha(n.e,11),n.k=fc(n,11),Ha(n.k,0),Ha(n.k,1),n.o=Li(n,12),n.s=Li(n,13))}function HPe(n,i){i.dc()&&Bg(n.j,!0,!0,!0,!0),Yi(i,(Bt(),F0))&&Bg(n.j,!0,!0,!0,!1),Yi(i,xf)&&Bg(n.j,!1,!0,!0,!0),Yi(i,Fd)&&Bg(n.j,!0,!0,!1,!0),Yi(i,Zf)&&Bg(n.j,!0,!1,!0,!0),Yi(i,Ih)&&Bg(n.j,!1,!0,!0,!1),Yi(i,Sf)&&Bg(n.j,!1,!0,!1,!0),Yi(i,$d)&&Bg(n.j,!0,!1,!1,!0),Yi(i,$0)&&Bg(n.j,!0,!1,!0,!1),Yi(i,Qu)&&Bg(n.j,!0,!0,!0,!0),Yi(i,Du)&&Bg(n.j,!0,!0,!0,!0),Yi(i,Qu)&&Bg(n.j,!0,!0,!0,!0),Yi(i,Xu)&&Bg(n.j,!0,!0,!0,!0),Yi(i,Zu)&&Bg(n.j,!0,!0,!0,!0),Yi(i,Nh)&&Bg(n.j,!0,!0,!0,!0),Yi(i,ou)&&Bg(n.j,!0,!0,!0,!0)}function VWt(n,i,l){var d,g,y,x,T,R,O,D,q;if(n.a!=i.jk())throw _e(new ar(FI+i.xe()+lx));if(d=ay((dh(),ko),i).Jl(),d)return d.jk().wi().ri(d,l);if(x=ay(ko,i).Ll(),x){if(l==null)return null;if(T=v(l,15),T.dc())return"";for(q=new qb,y=T.Kc();y.Ob();)g=y.Pb(),bl(q,x.jk().wi().ri(x,g)),q.a+=" ";return Phe(q,q.a.length-1)}if(D=ay(ko,i).Ml(),!D.dc()){for(O=D.Kc();O.Ob();)if(R=v(O.Pb(),156),R.fk(l))try{if(q=R.jk().wi().ri(R,l),q!=null)return q}catch(J){if(J=Da(J),!$e(J,103))throw _e(J)}throw _e(new ar("Invalid value: '"+l+"' for datatype :"+i.xe()))}return v(i,847).ok(),l==null?null:$e(l,180)?""+v(l,180).a:cd(l)==Qee?zIt(QP[0],v(l,206)):Kl(l)}function u7r(n){var i,l,d,g,y,x,T,R,O,D;for(O=new Ea,T=new Ea,y=new me(n);y.a<y.c.c.length;)d=v(pe(y),131),d.v=0,d.n=d.i.c.length,d.u=d.t.c.length,d.n==0&&qa(O,d,O.c.b,O.c),d.u==0&&d.r.a.gc()==0&&qa(T,d,T.c.b,T.c);for(x=-1;O.b!=0;)for(d=v(d1e(O,0),131),l=new me(d.t);l.a<l.c.c.length;)i=v(pe(l),274),D=i.b,D.v=u.Math.max(D.v,d.v+1),x=u.Math.max(x,D.v),--D.n,D.n==0&&qa(O,D,O.c.b,O.c);if(x>-1){for(g=Ur(T,0);g.b!=g.d.c;)d=v(Fr(g),131),d.v=x;for(;T.b!=0;)for(d=v(d1e(T,0),131),l=new me(d.i);l.a<l.c.c.length;)i=v(pe(l),274),R=i.a,R.r.a.gc()==0&&(R.v=u.Math.min(R.v,d.v-1),--R.u,R.u==0&&qa(T,R,T.c.b,T.c))}}function h7r(n){var i,l,d,g,y,x,T,R,O,D;for(O=new Ot,T=new Ot,x=new me(n);x.a<x.c.c.length;)g=v(pe(x),118),yue(g,g.f.c.length),yK(g,g.k.c.length),g.d==0&&jn(O.c,g),g.i==0&&g.e.b==0&&jn(T.c,g);for(d=-1;O.c.length!=0;)for(g=v(Jb(O,0),118),l=new me(g.k);l.a<l.c.c.length;)i=v(pe(l),132),D=i.b,s7e(D,u.Math.max(D.o,g.o+1)),d=u.Math.max(d,D.o),yue(D,D.d-1),D.d==0&&jn(O.c,D);if(d>-1){for(y=new me(T);y.a<y.c.c.length;)g=v(pe(y),118),g.o=d;for(;T.c.length!=0;)for(g=v(Jb(T,0),118),l=new me(g.f);l.a<l.c.c.length;)i=v(pe(l),132),R=i.a,!(R.e.b>0)&&(s7e(R,u.Math.min(R.o,g.o-1)),yK(R,R.i-1),R.i==0&&jn(T.c,R))}}function YWt(n,i,l,d,g){var y,x,T,R;return R=ka,x=!1,T=DPe(n,$s(new Ct(i.a,i.b),n),Hi(new Ct(l.a,l.b),g),$s(new Ct(d.a,d.b),l)),y=!!T&&!(u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx||u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx),T=DPe(n,$s(new Ct(i.a,i.b),n),l,g),T&&((u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx)==(u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx)||y?R=u.Math.min(R,hD($s(T,l))):x=!0),T=DPe(n,$s(new Ct(i.a,i.b),n),d,g),T&&(x||(u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx)==(u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx)||y)&&(R=u.Math.min(R,hD($s(T,d)))),R}function jWt(n){dE(n,new H_(DK(cE(sE(lE(oE(new f_,e2),HXt),"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 Fh),Nu))),It(n,e2,SM,zt(gGe)),It(n,e2,QJ,(Qn(),!0)),It(n,e2,y5,zt(Rnn)),It(n,e2,l6,zt(Inn)),It(n,e2,o6,zt(Nnn)),It(n,e2,II,zt(knn)),It(n,e2,TM,zt(bGe)),It(n,e2,NI,zt(Onn)),It(n,e2,UBe,zt(pGe)),It(n,e2,GBe,zt(dGe)),It(n,e2,qBe,zt(fGe)),It(n,e2,HBe,zt(mGe)),It(n,e2,zBe,zt(fte))}function d7r(n){var i,l,d,g,y,x,T,R;for(i=null,d=new me(n);d.a<d.c.c.length;)l=v(pe(d),239),We(U1(l.g,l.d[0]).a),l.b=null,l.e&&l.e.gc()>0&&l.c==0&&(!i&&(i=new Ot),jn(i.c,l));if(i)for(;i.c.length!=0;){if(l=v(Jb(i,0),239),l.b&&l.b.c.length>0){for(y=(!l.b&&(l.b=new Ot),new me(l.b));y.a<y.c.c.length;)if(g=v(pe(y),239),uU(U1(g.g,g.d[0]).a)==uU(U1(l.g,l.d[0]).a)){if($l(n,g,0)>$l(n,l,0))return new Ms(g,l)}else if(We(U1(g.g,g.d[0]).a)>We(U1(l.g,l.d[0]).a))return new Ms(g,l)}for(T=(!l.e&&(l.e=new Ot),l.e).Kc();T.Ob();)x=v(T.Pb(),239),R=(!x.b&&(x.b=new Ot),x.b),n4(0,R.c.length),OL(R.c,0,l),x.c==R.c.length&&jn(i.c,x)}return null}function f7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(i.Ug("Interactive crossing minimization",1),x=0,y=new me(n.b);y.a<y.c.c.length;)d=v(pe(y),30),d.p=x++;for(J=BDe(n),de=new dRe(J.length),EWt(new wh(Te(xe(mrn,1),Yn,230,0,[de])),J),le=0,x=0,g=new me(n.b);g.a<g.c.c.length;){for(d=v(pe(g),30),l=0,q=0,D=new me(d.a);D.a<D.c.c.length;)for(R=v(pe(D),10),R.n.a>0&&(l+=R.n.a+R.o.a/2,++q),ae=new me(R.j);ae.a<ae.c.c.length;)re=v(pe(ae),12),re.p=le++;for(q>0&&(l/=q),Se=st(ao,_l,28,d.a.c.length,15,1),T=0,O=new me(d.a);O.a<O.c.c.length;)R=v(pe(O),10),R.p=T++,Se[R.p]=r7r(R,l),R.k==(lr(),Ws)&&_t(R,(At(),Wqe),Se[R.p]);Fn(),us(d.a,new tAt(Se)),kjt(de,J,x,!0),++x}i.Vg()}function gM(n,i){var l,d,g,y,x,T,R,O,D;if(i.e==5){zWt(n,i);return}if(O=i,!(O.b==null||n.b==null)){for(a5(n),fM(n),a5(O),fM(O),l=st(Wr,vi,28,n.b.length+O.b.length,15,1),D=0,d=0,x=0;d<n.b.length&&x<O.b.length;)if(g=n.b[d],y=n.b[d+1],T=O.b[x],R=O.b[x+1],y<T)l[D++]=n.b[d++],l[D++]=n.b[d++];else if(y>=T&&g<=R)T<=g&&y<=R?d+=2:T<=g?(n.b[d]=R+1,x+=2):y<=R?(l[D++]=g,l[D++]=T-1,d+=2):(l[D++]=g,l[D++]=T-1,n.b[d]=R+1,x+=2);else if(R<g)x+=2;else throw _e(new tc("Token#subtractRanges(): Internal Error: ["+n.b[d]+","+n.b[d+1]+"] - ["+O.b[x]+","+O.b[x+1]+"]"));for(;d<n.b.length;)l[D++]=n.b[d++],l[D++]=n.b[d++];n.b=st(Wr,vi,28,D,15,1),Gc(l,0,n.b,0,D)}}function WWt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(T=o5(i,!1,!1),Se=hG(T),d&&(Se=Gz(Se)),Ue=We(at(Et(i,(qD(),Fbe)))),de=(Tr(Se.b!=0),v(Se.a.a.c,8)),q=v(gf(Se,1),8),Se.b>2?(D=new Ot,xs(D,new Qb(Se,1,Se.b)),y=DKt(D,Ue+n.a),Me=new P1e(y),Ul(Me,i),jn(l.c,Me)):d?Me=v(br(n.b,Hg(i)),272):Me=v(br(n.b,jv(i)),272),R=Hg(i),d&&(R=jv(i)),x=dSr(de,R),O=Ue+n.a,x.a?(O+=u.Math.abs(de.b-q.b),le=new Ct(q.a,(q.b+de.b)/2)):(O+=u.Math.abs(de.a-q.a),le=new Ct((q.a+de.a)/2,q.b)),d?Ni(n.d,i,new oDe(Me,x,le,O)):Ni(n.c,i,new oDe(Me,x,le,O)),Ni(n.b,i,Me),ae=(!i.n&&(i.n=new vt(wl,i,1,7)),i.n),re=new mr(ae);re.e!=re.i.gc();)J=v(wr(re),135),g=wG(n,J,!0,0,0),jn(l.c,g)}function p7r(n){var i,l,d,g,y,x,T;if(!n.A.dc()){if(n.A.Hc((ud(),mH))&&(v(yl(n.b,(Bt(),or)),127).k=!0,v(yl(n.b,Mr),127).k=!0,i=n.q!=(co(),sm)&&n.q!=su,r7e(v(yl(n.b,gr),127),i),r7e(v(yl(n.b,cr),127),i),r7e(n.g,i),n.A.Hc(vw)&&(v(yl(n.b,or),127).j=!0,v(yl(n.b,Mr),127).j=!0,v(yl(n.b,gr),127).k=!0,v(yl(n.b,cr),127).k=!0,n.g.k=!0)),n.A.Hc(gH))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,T=n.B.Hc((qh(),KP)),g=H0e(),y=0,x=g.length;y<x;++y)d=g[y],l=v(yl(n.i,d),314),l&&(VLe(d)?(l.j=!0,l.k=!0):(l.j=!T,l.k=!T));n.A.Hc(o3)&&n.B.Hc((qh(),yH))&&(n.g.j=!0,n.g.j=!0,n.a.j||(n.a.j=!0,n.a.k=!0,n.a.e=!0))}}function g7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(d=new me(n.e.b);d.a<d.c.c.length;)for(l=v(pe(d),30),y=new me(l.a);y.a<y.c.c.length;)if(g=v(pe(y),10),re=n.i[g.p],O=re.a.e,R=re.d.e,g.n.b=O,Se=R-O-g.o.b,i=upe(g),J=(g4(),(g.q?g.q:(Fn(),Fn(),Jg))._b((qt(),wx))?q=v(oe(g,wx),203):q=v(oe(So(g),fP),203),q),i&&(J==q5||J==G5)&&(g.o.b+=Se),i&&(J==sve||J==q5||J==G5)){for(le=new me(g.j);le.a<le.c.c.length;)ae=v(pe(le),12),(Bt(),Du).Hc(ae.j)&&(D=v(br(n.k,ae),125),ae.n.b=D.e-O);for(T=new me(g.b);T.a<T.c.c.length;)x=v(pe(T),72),de=v(oe(g,_x),21),de.Hc((w4(),Qf))?x.n.b+=Se:de.Hc(am)&&(x.n.b+=Se/2);(J==q5||J==G5)&&sc(g,(Bt(),Mr)).Jc(new bAt(Se))}}function m7r(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(O=new Ot,R=new me(i.a);R.a<R.c.c.length;)for(x=v(pe(R),10),J=sc(x,(Bt(),gr)).Kc();J.Ob();)for(q=v(J.Pb(),12),g=new me(q.g);g.a<g.c.c.length;)d=v(pe(g),18),!(!Jo(d)&&d.c.i.c==d.d.i.c||Jo(d)||d.d.i.c!=l)&&jn(O.c,d);for(T=ff(l.a).Kc();T.Ob();)for(x=v(T.Pb(),10),J=sc(x,(Bt(),cr)).Kc();J.Ob();)for(q=v(J.Pb(),12),g=new me(q.e);g.a<g.c.c.length;)if(d=v(pe(g),18),!(!Jo(d)&&d.c.i.c==d.d.i.c||Jo(d)||d.c.i.c!=i)&&O.c.length!=0){for(D=new go(O,O.c.length),y=(Tr(D.b>0),v(D.a.Xb(D.c=--D.b),18));y!=d&&D.b>0;)n.a[y.p]=!0,n.a[d.p]=!0,y=(Tr(D.b>0),v(D.a.Xb(D.c=--D.b),18));D.b>0&&ld(D)}}function KWt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;if(!n.b)return!1;for(x=null,J=null,R=new Cfe(null,null),g=1,R.a[1]=n.b,q=R;q.a[g];)O=g,T=J,J=q,q=q.a[g],d=n.a.Ne(i,q.d),g=d<0?0:1,d==0&&(!l.c||Ec(q.e,l.d))&&(x=q),!(q&&q.b)&&!US(q.a[g])&&(US(q.a[1-g])?J=J.a[O]=dZ(q,g):US(q.a[1-g])||(re=J.a[1-O],re&&(!US(re.a[1-O])&&!US(re.a[O])?(J.b=!1,re.b=!0,q.b=!0):(y=T.a[1]==J?1:0,US(re.a[O])?T.a[y]=TMt(J,O):US(re.a[1-O])&&(T.a[y]=dZ(J,O)),q.b=T.a[y].b=!0,T.a[y].a[0].b=!1,T.a[y].a[1].b=!1))));return x&&(l.b=!0,l.d=x.e,q!=x&&(D=new Cfe(q.d,q.e),bxr(n,R,x,D),J==x&&(J=D)),J.a[J.a[1]==q?1:0]=q.a[q.a[0]?0:1],--n.c),n.b=R.a[1],n.b&&(n.b.b=!1),l.b}function b7r(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(g=new me(n.a.a.b);g.a<g.c.c.length;)for(d=v(pe(g),60),R=d.c.Kc();R.Ob();)T=v(R.Pb(),60),d.a!=T.a&&(Bm(n.a.d)?q=n.a.g.ff(d,T):q=n.a.g.gf(d,T),y=d.b.a+d.d.b+q-T.b.a,y=u.Math.ceil(y),y=u.Math.max(0,y),jOe(d,T)?(x=yE(new v_,n.d),O=Ps(u.Math.ceil(T.b.a-d.b.a)),i=O-(T.b.a-d.b.a),D=Nk(d).a,l=d,D||(D=Nk(T).a,i=-i,l=T),D&&(l.b.a-=i,D.n.a-=i),C0(m0(g0(b0(p0(new Bf,u.Math.max(0,O)),1),x),n.c[d.a.d])),C0(m0(g0(b0(p0(new Bf,u.Math.max(0,-O)),1),x),n.c[T.a.d]))):(J=1,($e(d.g,154)&&$e(T.g,10)||$e(T.g,154)&&$e(d.g,10))&&(J=2),C0(m0(g0(b0(p0(new Bf,Ps(y)),J),n.c[d.a.d]),n.c[T.a.d]))))}function XWt(n,i,l){var d,g,y,x,T,R,O,D,q,J;if(l)for(d=-1,D=new go(i,0);D.b<D.d.gc();){if(T=(Tr(D.b<D.d.gc()),v(D.d.Xb(D.c=D.b++),10)),q=n.c[T.c.p][T.p].a,q==null){for(x=d+1,y=new go(i,D.b);y.b<y.d.gc();)if(J=Gsr(n,(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),10))).a,J!=null){x=(hr(J),J);break}q=(d+x)/2,n.c[T.c.p][T.p].a=q,n.c[T.c.p][T.p].d=(hr(q),q),n.c[T.c.p][T.p].b=1}d=(hr(q),q)}else{for(g=0,O=new me(i);O.a<O.c.c.length;)T=v(pe(O),10),n.c[T.c.p][T.p].a!=null&&(g=u.Math.max(g,We(n.c[T.c.p][T.p].a)));for(g+=2,R=new me(i);R.a<R.c.c.length;)T=v(pe(R),10),n.c[T.c.p][T.p].a==null&&(q=Gh(n.i,24)*GG*g-1,n.c[T.c.p][T.p].a=q,n.c[T.c.p][T.p].d=q,n.c[T.c.p][T.p].b=1)}}function y7r(n,i,l){var d,g,y,x,T,R,O,D,q;for(!l&&(l=Abr(i.q.getTimezoneOffset())),g=(i.q.getTimezoneOffset()-l.a)*6e4,T=new Z8e(zo(xc(i.q.getTime()),g)),R=T,T.q.getTimezoneOffset()!=i.q.getTimezoneOffset()&&(g>0?g-=864e5:g+=864e5,R=new Z8e(zo(xc(i.q.getTime()),g))),D=new sk,O=n.a.length,y=0;y<O;)if(d=Do(n.a,y),d>=97&&d<=122||d>=65&&d<=90){for(x=y+1;x<O&&Do(n.a,x)==d;++x);b8r(D,d,x-y,T,R,l),y=x}else if(d==39){if(++y,y<O&&Do(n.a,y)==39){D.a+="'",++y;continue}for(q=!1;!q;){for(x=y;x<O&&Do(n.a,x)!=39;)++x;if(x>=O)throw _e(new ar("Missing trailing '"));x+1<O&&Do(n.a,x+1)==39?++x:q=!0,bi(D,af(n.a,y,x)),y=x+1}}else D.a+=String.fromCharCode(d),++y;return D.a}function v7r(){Ai(u3,new c4t),Ai(wi,new _4t),Ai(Jf,new N4t),Ai(v1,new B4t),Ai(V2e,new F4t),Ai(fre,new $4t),Ai(hb,new U4t),Ai(XP,new z4t),Ai(wH,new JSt),Ai($2e,new e4t),Ai(_2,new t4t),Ai(e0,new n4t),Ai(y1,new r4t),Ai(Rx,new i4t),Ai(h3,new a4t),Ai(Ju,new s4t),Ai(c3,new o4t),Ai(_c,new l4t),Ai(pl,new u4t),Ai(Mu,new h4t),Ai(rs,new d4t),Ai(xe(bh,1),new f4t),Ai(d6,new p4t),Ai(WM,new g4t),Ai(Qee,new m4t),Ai(oXe,new b4t),Ai(ws,new y4t),Ai(EKe,new v4t),Ai(TKe,new w4t),Ai(WKe,new E4t),Ai(pre,new x4t),Ai(VI,new S4t),Ai(Ao,new T4t),Ai(jUe,new C4t),Ai(ux,new A4t),Ai(WUe,new k4t),Ai(HKe,new R4t),Ai(lXe,new I4t),Ai(hx,new O4t),Ai(Xt,new L4t),Ai(SKe,new D4t),Ai(cXe,new M4t)}function QWt(n,i){var l,d,g,y,x,T,R,O,D;if(n==null)return Ku;if(R=i.a.zc(n,i),R!=null)return"[...]";for(l=new B_(Xo,"[","]"),g=n,y=0,x=g.length;y<x;++y)d=g[y],d!=null&&cd(d).i&4?Array.isArray(d)&&(D=kz(d),!(D>=14&&D<=16))?i.a._b(d)?(l.a?bi(l.a,l.b):l.a=new Ed(l.d),VL(l.a,"[...]")):(T=L_(d),O=new nD(i),Hm(l,QWt(T,O))):$e(d,183)?Hm(l,KSr(v(d,183))):$e(d,195)?Hm(l,DEr(v(d,195))):$e(d,201)?Hm(l,Hxr(v(d,201))):$e(d,2111)?Hm(l,MEr(v(d,2111))):$e(d,53)?Hm(l,WSr(v(d,53))):$e(d,376)?Hm(l,d4r(v(d,376))):$e(d,846)?Hm(l,jSr(v(d,846))):$e(d,109)&&Hm(l,YSr(v(d,109))):Hm(l,d==null?Ku:Kl(d));return l.a?l.e.length==0?l.a.a:l.a.a+(""+l.e):l.c}function mI(n,i){var l,d,g,y;y=n.F,i==null?(n.F=null,q8(n,null)):(n.F=(hr(i),i),d=qp(i,Wu(60)),d!=-1?(g=(mo(0,d,i.length),i.substr(0,d)),qp(i,Wu(46))==-1&&!An(g,Zk)&&!An(g,$M)&&!An(g,Mee)&&!An(g,UM)&&!An(g,zM)&&!An(g,GM)&&!An(g,qM)&&!An(g,HM)&&(g=NJt),l=AX(i,Wu(62)),l!=-1&&(g+=""+(sr(l+1,i.length+1),i.substr(l+1))),q8(n,g)):(g=i,qp(i,Wu(46))==-1&&(d=qp(i,Wu(91)),d!=-1&&(g=(mo(0,d,i.length),i.substr(0,d))),!An(g,Zk)&&!An(g,$M)&&!An(g,Mee)&&!An(g,UM)&&!An(g,zM)&&!An(g,GM)&&!An(g,qM)&&!An(g,HM)?(g=NJt,d!=-1&&(g+=""+(sr(d,i.length+1),i.substr(d)))):g=i),q8(n,g),g==i&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,5,y,i))}function ZWt(n,i){var l,d,g,y,x,T,R,O,D,q;if(R=i.length-1,T=(sr(R,i.length),i.charCodeAt(R)),T==93){if(x=qp(i,Wu(91)),x>=0)return g=Evr(n,(mo(1,x,i.length),i.substr(1,x-1))),D=(mo(x+1,R,i.length),i.substr(x+1,R-(x+1))),WRr(n,D,g)}else{if(l=-1,ize==null&&(ize=new RegExp("\\d")),ize.test(String.fromCharCode(T))&&(l=mIe(i,Wu(46),R-1),l>=0)){d=v(_fe(n,UFt(n,(mo(1,l,i.length),i.substr(1,l-1))),!1),61),O=0;try{O=Nd((sr(l+1,i.length+1),i.substr(l+1)),Po,qi)}catch(J){throw J=Da(J),$e(J,130)?(y=J,_e(new VQ(y))):_e(J)}if(O<d.gc())return q=d.Xb(O),$e(q,76)&&(q=v(q,76).md()),v(q,58)}if(l<0)return v(_fe(n,UFt(n,(sr(1,i.length+1),i.substr(1))),!1),58)}return null}function _7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(i.Ug("Label dummy insertions",1),q=new Ot,x=We(at(oe(n,(qt(),U5)))),O=We(at(oe(n,J4))),D=v(oe(n,Pd),88),re=new me(n.a);re.a<re.c.c.length;)for(J=v(pe(re),10),y=new yr(_r(os(J).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),g.c.i!=g.d.i&&qhe(g.b,arn)){for(le=zgr(g),ae=Pg(g.b.c.length),l=Q3r(n,g,le,ae),jn(q.c,l),d=l.o,T=new go(g.b,0);T.b<T.d.gc();)R=(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),72)),Ze(oe(R,pg))===Ze((W1(),wN))&&(D==(ys(),Ef)||D==lp?(d.a+=R.o.a+O,d.b=u.Math.max(d.b,R.o.b)):(d.a=u.Math.max(d.a,R.o.a),d.b+=R.o.b+O),jn(ae.c,R),ld(T));D==(ys(),Ef)||D==lp?(d.a-=O,d.b+=x+le):d.b+=x-O+le}xs(n.a,q),i.Vg()}function w7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(n.c=n.e,ae=Ht(oe(i,(qt(),osn))),re=ae==null||(hr(ae),ae),y=v(oe(i,(At(),au)),21).Hc((cl(),wf)),g=v(oe(i,Qa),101),l=!(g==(co(),yw)||g==sm||g==su),re&&(l||!y)){for(q=new me(i.a);q.a<q.c.c.length;)O=v(pe(q),10),O.p=0;for(J=new Ot,D=new me(i.a);D.a<D.c.c.length;)if(O=v(pe(D),10),d=Mjt(n,O,null),d){for(R=new d9e,Ul(R,i),_t(R,ob,v(d.b,21)),FNe(R.d,i.d),_t(R,sN,null),T=v(d.a,15).Kc();T.Ob();)x=v(T.Pb(),10),Lt(R.a,x),x.a=R;J.Fc(R)}y&&(Ze(oe(i,j4))===Ze((z_(),Qbe))?n.c=n.b:Ze(oe(i,j4))===Ze(Zbe)?n.c=n.d:n.c=n.a)}else J=new wh(Te(xe(Xnn,1),YXt,36,0,[i]));return Ze(oe(i,j4))!==Ze((z_(),z4))&&(Fn(),J.jd(new lK)),J}function bI(n,i,l){var d,g,y,x,T,R,O;if(O=n.c,!i&&(i=DKe),n.c=i,n.Db&4&&!(n.Db&1)&&(R=new js(n,1,2,O,n.c),l?l.nj(R):l=R),O!=i){if($e(n.Cb,292))n.Db>>16==-10?l=v(n.Cb,292).Yk(i,l):n.Db>>16==-15&&(!i&&(i=(Pn(),dp)),!O&&(O=(Pn(),dp)),n.Cb.Yh()&&(R=new Vm(n.Cb,1,13,O,i,uy(Uh(v(n.Cb,62)),n),!1),l?l.nj(R):l=R));else if($e(n.Cb,90))n.Db>>16==-23&&($e(i,90)||(i=(Pn(),n0)),$e(O,90)||(O=(Pn(),n0)),n.Cb.Yh()&&(R=new Vm(n.Cb,1,10,O,i,uy(Uc(v(n.Cb,29)),n),!1),l?l.nj(R):l=R));else if($e(n.Cb,457))for(T=v(n.Cb,850),x=(!T.b&&(T.b=new SK(new Due)),T.b),y=(d=new P_(new b_(x.a).a),new TK(d));y.a.b;)g=v(zE(y.a).ld(),89),l=bI(g,gJ(g,T),l)}return l}function E7r(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(x=Vt(Ht(Et(n,(qt(),K4)))),J=v(Et(n,Q4),21),R=!1,O=!1,q=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));q.e!=q.i.gc()&&(!R||!O);){for(y=v(wr(q),123),T=0,g=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!y.d&&(y.d=new Gn(ss,y,8,5)),y.d),(!y.e&&(y.e=new Gn(ss,y,7,4)),y.e)])));zr(g)&&(d=v(Rr(g),74),D=x&&KE(d)&&Vt(Ht(Et(d,lw))),l=IWt((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b),y)?n==Aa(zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84))):n==Aa(zl(v(ze((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b),0),84))),!((D||l)&&(++T,T>1))););(T>0||J.Hc((Ah(),ub))&&(!y.n&&(y.n=new vt(wl,y,1,7)),y.n).i>0)&&(R=!0),T>1&&(O=!0)}R&&i.Fc((cl(),wf)),O&&i.Fc((cl(),iP))}function JWt(n){var i,l,d,g,y,x,T,R,O,D,q,J;if(J=v(Et(n,(Ei(),mw)),21),J.dc())return null;if(T=0,x=0,J.Hc((ud(),mH))){for(D=v(Et(n,UP),101),d=2,l=2,g=2,y=2,i=Aa(n)?v(Et(Aa(n),gw),88):v(Et(n,gw),88),O=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));O.e!=O.i.gc();)if(R=v(wr(O),123),q=v(Et(R,nC),64),q==(Bt(),lc)&&(q=kPe(R,i),sa(R,nC,q)),D==(co(),su))switch(q.g){case 1:d=u.Math.max(d,R.i+R.g);break;case 2:l=u.Math.max(l,R.j+R.f);break;case 3:g=u.Math.max(g,R.i+R.g);break;case 4:y=u.Math.max(y,R.j+R.f)}else switch(q.g){case 1:d+=R.g+2;break;case 2:l+=R.f+2;break;case 3:g+=R.g+2;break;case 4:y+=R.f+2}T=u.Math.max(d,g),x=u.Math.max(l,y)}return JE(n,T,x,!0,!0)}function mpe(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(Me=v(Wl(JQ(Ki(new xn(null,new Nn(i.d,16)),new qCt(l)),new HCt(l)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),q=qi,D=Po,R=new me(i.b.j);R.a<R.c.c.length;)T=v(pe(R),12),T.j==l&&(q=u.Math.min(q,T.p),D=u.Math.max(D,T.p));if(q==qi)for(x=0;x<Me.gc();x++)zOe(v(Me.Xb(x),105),l,x);else for(Ue=st(Wr,vi,28,g.length,15,1),yhr(Ue,Ue.length),Se=Me.Kc();Se.Ob();){for(de=v(Se.Pb(),105),y=v(br(n.b,de),183),O=0,le=q;le<=D;le++)y[le]&&(O=u.Math.max(O,d[le]));if(de.i){for(re=de.i.c,je=new fs,J=0;J<g.length;J++)g[re][J]&&Es(je,Nt(Ue[J]));for(;r1(je,Nt(O));)++O}for(zOe(de,l,O),ae=q;ae<=D;ae++)y[ae]&&(d[ae]=O+1);de.i&&(Ue[de.i.c]=O)}}function x7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(g=null,d=new me(i.a);d.a<d.c.c.length;)l=v(pe(d),10),upe(l)?y=(T=yE(bU(new v_,l),n.f),R=yE(bU(new v_,l),n.f),O=new PNe(l,!0,T,R),D=l.o.b,q=(g4(),(l.q?l.q:(Fn(),Fn(),Jg))._b((qt(),wx))?J=v(oe(l,wx),203):J=v(oe(So(l),fP),203),J),re=1e4,q==G5&&(re=1),ae=C0(m0(g0(p0(b0(new Bf,re),Ps(u.Math.ceil(D))),T),R)),q==q5&&Es(n.d,ae),Djt(n,ff(sc(l,(Bt(),cr))),O),Djt(n,sc(l,gr),O),O):y=(le=yE(bU(new v_,l),n.f),ts(Ki(new xn(null,new Nn(l.j,16)),new wwt),new s8t(n,le)),new PNe(l,!1,le,le)),n.i[l.p]=y,g&&(x=g.c.d.a+PT(n.n,g.c,l)+l.d.d,g.b||(x+=g.c.o.b),C0(m0(g0(b0(p0(new Bf,Ps(u.Math.ceil(x))),0),g.d),y.a))),g=y}function S7r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re;for(y=new yVt(i),q=J5r(n,i,y),re=u.Math.max(We(at(oe(i,(qt(),vy)))),1),D=new me(q.a);D.a<D.c.c.length;)O=v(pe(D),42),R=yGt(v(O.a,8),v(O.b,8),re),h=!0,h=h&wE(l,new Ct(R.c,R.d)),h=h&wE(l,_E(new Ct(R.c,R.d),R.b,0)),h=h&wE(l,_E(new Ct(R.c,R.d),0,R.a)),h&wE(l,_E(new Ct(R.c,R.d),R.b,R.a));switch(J=y.d,T=yGt(v(q.b.a,8),v(q.b.b,8),re),J==(Bt(),cr)||J==gr?(d.c[J.g]=u.Math.min(d.c[J.g],T.d),d.b[J.g]=u.Math.max(d.b[J.g],T.d+T.a)):(d.c[J.g]=u.Math.min(d.c[J.g],T.c),d.b[J.g]=u.Math.max(d.b[J.g],T.c+T.b)),g=Ss,x=y.c.i.d,J.g){case 4:g=x.c;break;case 2:g=x.b;break;case 1:g=x.a;break;case 3:g=x.d}return d.a[J.g]=u.Math.max(d.a[J.g],g),y}function T7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;T=v(br(i.c,n),468),Me=i.a.c,R=i.a.c+i.a.b,mn=T.f,Kn=T.a,x=mn<Kn,le=new Ct(Me,mn),Ue=new Ct(R,Kn),g=(Me+R)/2,de=new Ct(g,mn),je=new Ct(g,Kn),y=xTr(n,mn,Kn),xt=q1(i.B),Mt=new Ct(g,y),yn=q1(i.D),l=Nbr(Te(xe(Vs,1),kt,8,0,[xt,Mt,yn])),re=!1,Se=i.B.i,Se&&Se.c&&T.d&&(O=x&&Se.p<Se.c.a.c.length-1||!x&&Se.p>0,O?O&&(J=Se.p,x?++J:--J,q=v(Yt(Se.c.a,J),10),d=xUt(q),re=!(U1e(d,xt,l[0])||j9t(d,xt,l[0]))):re=!0),ae=!1,yt=i.D.i,yt&&yt.c&&T.e&&(D=x&&yt.p>0||!x&&yt.p<yt.c.a.c.length-1,D?(J=yt.p,x?--J:++J,q=v(Yt(yt.c.a,J),10),d=xUt(q),ae=!(U1e(d,l[0],yn)||j9t(d,l[0],yn))):ae=!0),re&&ae&&pi(n.a,Mt),re||xD(n.a,Te(xe(Vs,1),kt,8,0,[le,de])),ae||xD(n.a,Te(xe(Vs,1),kt,8,0,[je,Ue]))}function C7r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(re=i.c.length,J=0,q=new me(n.b);q.a<q.c.c.length;)if(D=v(pe(q),30),Se=D.a,Se.c.length!=0){for(de=new me(Se),O=0,Me=null,g=v(pe(de),10),y=null;g;){if(y=v(Yt(i,g.p),261),y.c>=0){for(R=null,T=new go(D.a,O+1);T.b<T.d.gc()&&(x=(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),10)),R=v(Yt(i,x.p),261),!(R.d==y.d&&R.c<y.c));)R=null;R&&(Me&&(of(d,g.p,Nt(v(Yt(d,g.p),17).a-1)),v(Yt(l,Me.p),15).Mc(y)),y=HEr(y,g,re++),jn(i.c,y),Lt(l,new Ot),Me?(v(Yt(l,Me.p),15).Fc(y),Lt(d,Nt(1))):Lt(d,Nt(0)))}ae=null,de.a<de.c.c.length&&(ae=v(pe(de),10),le=v(Yt(i,ae.p),261),v(Yt(l,g.p),15).Fc(le),of(d,ae.p,Nt(v(Yt(d,ae.p),17).a+1))),y.d=J,y.c=O++,Me=g,g=ae}++J}}function A7r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;if(y=v(oe(n,(At(),Ji)),74),!!y){for(d=n.a,g=new Wo(l),Hi(g,Zwr(n)),D8(n.d.i,n.c.i)?(J=n.c,q=ac(Te(xe(Vs,1),kt,8,0,[J.n,J.a])),$s(q,l)):q=q1(n.c),qa(d,q,d.a,d.a.a),re=q1(n.d),oe(n,$ye)!=null&&Hi(re,v(oe(n,$ye),8)),qa(d,re,d.c.b,d.c),u4(d,g),x=o5(y,!0,!0),lZ(x,v(ze((!y.b&&(y.b=new Gn(Lr,y,4,7)),y.b),0),84)),cZ(x,v(ze((!y.c&&(y.c=new Gn(Lr,y,5,8)),y.c),0),84)),TG(d,x),D=new me(n.b);D.a<D.c.c.length;)O=v(pe(D),72),T=v(oe(O,Ji),135),FE(T,O.o.a),BE(T,O.o.b),ef(T,O.n.a+g.a,O.n.b+g.b),sa(T,(Bk(),iye),Ht(oe(O,iye)));R=v(oe(n,(qt(),Nl)),75),R?(u4(R,g),sa(y,Nl,R)):sa(y,Nl,null),i==(Xm(),O6)?sa(y,lb,O6):sa(y,lb,null)}}function eKt(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn;if(l.c.length!=0){for(ae=new Ot,re=new me(l);re.a<re.c.c.length;)J=v(pe(re),27),Lt(ae,new Ct(J.i,J.j));for(d.dh(i,"Before removing overlaps");QDe(n,l);)fJ(n,l,!1);if(d.dh(i,"After removing overlaps"),T=0,R=0,g=null,l.c.length!=0&&(g=($n(0,l.c.length),v(l.c[0],27)),T=g.i-($n(0,ae.c.length),v(ae.c[0],8)).a,R=g.j-($n(0,ae.c.length),v(ae.c[0],8)).b),x=u.Math.sqrt(T*T+R*R),q=vyr(l),y=1,q.a.gc()!=0){for(D=q.a.ec().Kc();D.Ob();)O=v(D.Pb(),27),le=n.f,de=le.i+le.g/2,Se=le.j+le.f/2,Me=O.i+O.g/2,Ue=O.j+O.f/2,je=Me-de,yt=Ue-Se,xt=u.Math.sqrt(je*je+yt*yt),Mt=je/xt,yn=yt/xt,Au(O,O.i+Mt*x),ku(O,O.j+yn*x);d.dh(i,"Child movement "+y),++y}n.a&&n.a.Gg(new Eh(q)),eKt(n,i,new Eh(q),d)}}function bpe(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;return R=n,D=$s(new Ct(i.a,i.b),n),O=l,q=$s(new Ct(d.a,d.b),l),J=R.a,de=R.b,ae=O.a,Me=O.b,re=D.a,Se=D.b,le=q.a,Ue=q.b,g=le*Se-re*Ue,$1(),x0(cg),u.Math.abs(0-g)<=cg||g==0||isNaN(0)&&isNaN(g)?!1:(x=1/g*((J-ae)*Se-(de-Me)*re),T=1/g*-(-(J-ae)*Ue+(de-Me)*le),y=(x0(cg),(u.Math.abs(0-x)<=cg||x==0||isNaN(0)&&isNaN(x)?0:0<x?-1:0>x?1:mE(isNaN(0),isNaN(x)))<0&&(x0(cg),(u.Math.abs(x-1)<=cg||x==1||isNaN(x)&&isNaN(1)?0:x<1?-1:x>1?1:mE(isNaN(x),isNaN(1)))<0)&&(x0(cg),(u.Math.abs(0-T)<=cg||T==0||isNaN(0)&&isNaN(T)?0:0<T?-1:0>T?1:mE(isNaN(0),isNaN(T)))<0)&&(x0(cg),(u.Math.abs(T-1)<=cg||T==1||isNaN(T)&&isNaN(1)?0:T<1?-1:T>1?1:mE(isNaN(T),isNaN(1)))<0)),y)}function k7r(n){var i,l,d,g;if(l=n.D!=null?n.D:n.B,i=qp(l,Wu(91)),i!=-1){d=(mo(0,i,l.length),l.substr(0,i)),g=new qb;do g.a+="[";while((i=ZR(l,91,++i))!=-1);An(d,Zk)?g.a+="Z":An(d,$M)?g.a+="B":An(d,Mee)?g.a+="C":An(d,UM)?g.a+="D":An(d,zM)?g.a+="F":An(d,GM)?g.a+="I":An(d,qM)?g.a+="J":An(d,HM)?g.a+="S":(g.a+="L",g.a+=""+d,g.a+=";");try{return null}catch(y){if(y=Da(y),!$e(y,63))throw _e(y)}}else if(qp(l,Wu(46))==-1){if(An(l,Zk))return Wh;if(An(l,$M))return bh;if(An(l,Mee))return Tf;if(An(l,UM))return ao;if(An(l,zM))return g3;if(An(l,GM))return Wr;if(An(l,qM))return C2;if(An(l,HM))return lC}return null}function R7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(n.e=i,T=R4r(i),xt=new Ot,d=new me(T);d.a<d.c.c.length;){for(l=v(pe(d),15),Mt=new Ot,jn(xt.c,Mt),R=new fs,ae=l.Kc();ae.Ob();){for(re=v(ae.Pb(),27),y=wG(n,re,!0,0,0),jn(Mt.c,y),le=re.i,de=re.j,J=(!re.n&&(re.n=new vt(wl,re,1,7)),re.n),q=new mr(J);q.e!=q.i.gc();)O=v(wr(q),135),g=wG(n,O,!1,le,de),jn(Mt.c,g);for(yt=(!re.c&&(re.c=new vt(Oh,re,9,9)),re.c),Me=new mr(yt);Me.e!=Me.i.gc();)for(Se=v(wr(Me),123),x=wG(n,Se,!1,le,de),jn(Mt.c,x),Ue=Se.i+le,je=Se.j+de,J=(!Se.n&&(Se.n=new vt(wl,Se,1,7)),Se.n),D=new mr(J);D.e!=D.i.gc();)O=v(wr(D),135),g=wG(n,O,!1,Ue,je),jn(Mt.c,g);bo(R,yQ(Ad(Te(xe(Md,1),Yn,20,0,[eb(re),bG(re)]))))}mTr(n,R,Mt)}return n.f=new u7t(xt),Ul(n.f,i),n.f}function I7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;for(q=new TNe(new y7e(n));q.c!=q.d.a.d;)for(D=hFt(q),T=v(D.d,58),i=v(D.e,58),x=T.Dh(),le=0,je=(x.i==null&&tg(x),x.i).length;le<je;++le)if(O=(y=(x.i==null&&tg(x),x.i),le>=0&&le<y.length?y[le]:null),O.rk()&&!O.sk()){if($e(O,102))R=v(O,19),!(R.Bb&Sc)&&(xt=sl(R),!(xt&&xt.Bb&Sc))&&pkr(n,R,T,i);else if(al(),v(O,69).xk()&&(l=(yt=O,v(yt?v(i,54).gi(yt):null,160)),l))for(re=v(T.Mh(O),160),d=l.gc(),de=0,ae=re.gc();de<ae;++de)if(J=re.Tl(de),$e(J,102)){if(Ue=re.Ul(de),g=j1(n,Ue),g==null&&Ue!=null){if(Me=v(J,19),!n.b||Me.Bb&Sc||sl(Me))continue;g=Ue}if(!l.Ol(J,g)){for(Se=0;Se<d;++Se)if(l.Tl(Se)==J&&Ze(l.Ul(Se))===Ze(g)){l.Ti(l.gc()-1,Se),--d;break}}}else l.Ol(re.Tl(de),re.Ul(de))}}function N7r(n,i,l){var d;if(l.Ug("StretchWidth layering",1),i.a.c.length==0){l.Vg();return}for(n.c=i,n.t=0,n.u=0,n.i=ka,n.g=Ss,n.d=We(at(oe(i,(qt(),O0)))),Q2r(n),i3r(n),r3r(n),eEr(n),t2r(n),n.i=u.Math.max(1,n.i),n.g=u.Math.max(1,n.g),n.d=n.d/n.i,n.f=n.g/n.i,n.s=d_r(n),d=new Xc(n.c),Lt(n.c.b,d),n.r=DE(n.p),n.n=EQ(n.k,n.k.length);n.r.c.length!=0;)n.o=_yr(n),!n.o||CUt(n)&&n.b.a.gc()!=0?(AEr(n,d),d=new Xc(n.c),Lt(n.c.b,d),bo(n.a,n.b),n.b.a.$b(),n.t=n.u,n.u=0):CUt(n)?(n.c.b.c.length=0,d=new Xc(n.c),Lt(n.c.b,d),n.t=0,n.u=0,n.b.a.$b(),n.a.a.$b(),++n.f,n.r=DE(n.p),n.n=EQ(n.k,n.k.length)):(po(n.o,d),Yu(n.r,n.o),Es(n.b,n.o),n.t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p],n.u+=n.e[n.o.p]*n.d);i.a.c.length=0,dG(i.b),l.Vg()}function O7r(n){var i,l,d,g,y,x,T,R,O,D,q;for(n.j=st(Wr,vi,28,n.g,15,1),n.o=new Ot,ts(ic(new xn(null,new Nn(n.e.b,16)),new kwt),new yAt(n)),n.a=st(Wh,Qg,28,n.b,16,1),jz(new xn(null,new Nn(n.e.b,16)),new _At(n)),d=(q=new Ot,ts(Ki(ic(new xn(null,new Nn(n.e.b,16)),new Iwt),new vAt(n)),new o8t(n,q)),q),R=new me(d);R.a<R.c.c.length;)if(T=v(pe(R),515),!(T.c.length<=1)){if(T.c.length==2){m4r(T),upe(($n(0,T.c.length),v(T.c[0],18)).d.i)||Lt(n.o,T);continue}if(!(OEr(T)||wSr(T,new Rwt)))for(O=new me(T),g=null;O.a<O.c.c.length;)i=v(pe(O),18),l=n.c[i.p],!g||O.a>=O.c.c.length?D=pOe((lr(),is),Ws):D=pOe((lr(),Ws),Ws),D*=2,y=l.a.g,l.a.g=u.Math.max(y,y+(D-y)),x=l.b.g,l.b.g=u.Math.max(x,x+(D-x)),g=i}}function L7r(n){var i,l,d,g;for(ts(Ki(new xn(null,new Nn(n.a.b,16)),new c_t),new u_t),pEr(n),ts(Ki(new xn(null,new Nn(n.a.b,16)),new h_t),new d_t),n.c==(Xm(),O6)&&(ts(Ki(ic(new xn(null,new Nn(new m_(n.f),1)),new f_t),new p_t),new PCt(n)),ts(Ki(Bl(ic(ic(new xn(null,new Nn(n.d.b,16)),new g_t),new m_t),new b_t),new y_t),new FCt(n))),g=new Ct(ka,ka),i=new Ct(Ss,Ss),d=new me(n.a.b);d.a<d.c.c.length;)l=v(pe(d),60),g.a=u.Math.min(g.a,l.d.c),g.b=u.Math.min(g.b,l.d.d),i.a=u.Math.max(i.a,l.d.c+l.d.b),i.b=u.Math.max(i.b,l.d.d+l.d.a);Hi(i1(n.d.c),OX(new Ct(g.a,g.b))),Hi(i1(n.d.f),$s(new Ct(i.a,i.b),g)),ATr(n,g,i),xh(n.f),xh(n.b),xh(n.g),xh(n.e),n.a.a.c.length=0,n.a.b.c.length=0,n.a=null,n.d=null}function DJ(n,i){var l;if(n.e)throw _e(new Tl((Fm(kbe),age+kbe.k+sge)));if(!Bar(n.a,i))throw _e(new tc(yXt+i+vXt));if(i==n.d)return n;switch(l=n.d,n.d=i,l.g){case 0:switch(i.g){case 2:jE(n);break;case 1:Gv(n),jE(n);break;case 4:n5(n),jE(n);break;case 3:n5(n),Gv(n),jE(n)}break;case 2:switch(i.g){case 1:Gv(n),Y1e(n);break;case 4:n5(n),jE(n);break;case 3:n5(n),Gv(n),jE(n)}break;case 1:switch(i.g){case 2:Gv(n),Y1e(n);break;case 4:Gv(n),n5(n),jE(n);break;case 3:Gv(n),n5(n),Gv(n),jE(n)}break;case 4:switch(i.g){case 2:n5(n),jE(n);break;case 1:n5(n),Gv(n),jE(n);break;case 3:Gv(n),Y1e(n)}break;case 3:switch(i.g){case 2:Gv(n),n5(n),jE(n);break;case 1:Gv(n),n5(n),Gv(n),jE(n);break;case 4:Gv(n),Y1e(n)}}return n}function d5(n,i){var l;if(n.d)throw _e(new Tl((Fm(Xbe),age+Xbe.k+sge)));if(!Par(n.a,i))throw _e(new tc(yXt+i+vXt));if(i==n.c)return n;switch(l=n.c,n.c=i,l.g){case 0:switch(i.g){case 2:$_(n);break;case 1:qv(n),$_(n);break;case 4:r5(n),$_(n);break;case 3:r5(n),qv(n),$_(n)}break;case 2:switch(i.g){case 1:qv(n),j1e(n);break;case 4:r5(n),$_(n);break;case 3:r5(n),qv(n),$_(n)}break;case 1:switch(i.g){case 2:qv(n),j1e(n);break;case 4:qv(n),r5(n),$_(n);break;case 3:qv(n),r5(n),qv(n),$_(n)}break;case 4:switch(i.g){case 2:r5(n),$_(n);break;case 1:r5(n),qv(n),$_(n);break;case 3:qv(n),j1e(n)}break;case 3:switch(i.g){case 2:qv(n),r5(n),$_(n);break;case 1:qv(n),r5(n),qv(n),$_(n);break;case 4:qv(n),j1e(n)}}return n}function MJ(n,i){var l,d,g,y,x,T,R,O;if($e(n.Eh(),167)?(MJ(v(n.Eh(),167),i),i.a+=" > "):i.a+="Root ",l=n.Dh().zb,An(l.substr(0,3),"Elk")?bi(i,(sr(3,l.length+1),l.substr(3))):i.a+=""+l,g=n.jh(),g){bi((i.a+=" ",i),g);return}if($e(n,366)&&(O=v(n,135).a,O)){bi((i.a+=" ",i),O);return}for(x=new mr(n.kh());x.e!=x.i.gc();)if(y=v(wr(x),135),O=y.a,O){bi((i.a+=" ",i),O);return}if($e(n,326)&&(d=v(n,74),!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b.i!=0&&(!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c.i!=0))){for(i.a+=" (",T=new gk((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b));T.e!=T.i.gc();)T.e>0&&(i.a+=Xo),MJ(v(wr(T),167),i);for(i.a+=Tge,R=new gk((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c));R.e!=R.i.gc();)R.e>0&&(i.a+=Xo),MJ(v(wr(R),167),i);i.a+=")"}}function D7r(n,i,l){var d,g,y,x,T,R,O,D;for(R=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));R.e!=R.i.gc();)for(T=v(wr(R),27),g=new yr(_r(eb(T).a.Kc(),new S));zr(g);){if(d=v(Rr(g),74),!d.b&&(d.b=new Gn(Lr,d,4,7)),!(d.b.i<=1&&(!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c.i<=1)))throw _e(new ik("Graph must not contain hyperedges."));if(!tM(d)&&T!=zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84)))for(O=new tOt,Ul(O,d),_t(O,(Uv(),m6),d),vrr(O,v(Pl(ol(l.f,T)),153)),Err(O,v(br(l,zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84))),153)),Lt(i.c,O),x=new mr((!d.n&&(d.n=new vt(wl,d,1,7)),d.n));x.e!=x.i.gc();)y=v(wr(x),135),D=new rPt(O,y.a),Ul(D,y),_t(D,m6,y),D.e.a=u.Math.max(y.g,1),D.e.b=u.Math.max(y.f,1),LPe(D),Lt(i.d,D)}}function M7r(n,i,l){var d,g,y,x,T,R,O,D,q,J;switch(l.Ug("Node promotion heuristic",1),n.i=i,n.r=v(oe(i,(qt(),h2)),243),n.r!=(qf(),Tx)&&n.r!=e3?lRr(n):D5r(n),D=v(oe(n.i,WHe),17).a,y=new e2t,n.r.g){case 2:case 1:gI(n,y);break;case 3:for(n.r=yne,gI(n,y),R=0,T=new me(n.b);T.a<T.c.c.length;)x=v(pe(T),17),R=u.Math.max(R,x.a);R>n.k&&(n.r=Uq,gI(n,y));break;case 4:for(n.r=yne,gI(n,y),O=0,g=new me(n.c);g.a<g.c.c.length;)d=at(pe(g)),O=u.Math.max(O,(hr(d),d));O>n.n&&(n.r=zq,gI(n,y));break;case 6:J=Ps(u.Math.ceil(n.g.length*D/100)),gI(n,new SCt(J));break;case 5:q=Ps(u.Math.ceil(n.e*D/100)),gI(n,new TCt(q));break;case 8:BKt(n,!0);break;case 9:BKt(n,!1);break;default:gI(n,y)}n.r!=Tx&&n.r!=e3?i5r(n,i):SCr(n,i),l.Vg()}function P7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(q=n.b,D=new go(q,0),KS(D,new Xc(n)),Me=!1,x=1;D.b<D.d.gc();){for(O=(Tr(D.b<D.d.gc()),v(D.d.Xb(D.c=D.b++),30)),le=($n(x,q.c.length),v(q.c[x],30)),de=DE(O.a),Se=de.c.length,ae=new me(de);ae.a<ae.c.c.length;)J=v(pe(ae),10),po(J,le);if(Me){for(re=ff(de).Kc();re.Ob();)for(J=v(re.Pb(),10),y=new me(DE(Hs(J)));y.a<y.c.c.length;)g=v(pe(y),18),ZE(g,!0),_t(n,(At(),Oq),(Qn(),!0)),d=OWt(n,g,Se),l=v(oe(J,gx),313),Ue=v(Yt(d,d.c.length-1),18),l.k=Ue.c.i,l.n=Ue,l.b=g.d.i,l.c=g;Me=!1}else de.c.length!=0&&(i=($n(0,de.c.length),v(de.c[0],10)),i.k==(lr(),ip)&&(Me=!0,x=-1));++x}for(T=new go(n.b,0);T.b<T.d.gc();)R=(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),30)),R.a.c.length==0&&ld(T)}function B7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(q=new jPe(n),Bfr(q,!(i==(ys(),Ef)||i==lp)),D=q.a,J=new ek,g=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),x=0,R=g.length;x<R;++x)l=g[x],O=Hhe(D,bc,l),O&&(J.d=u.Math.max(J.d,O.jf()));for(d=Te(xe(F4,1),wt,237,0,[bc,vu,yc]),y=0,T=d.length;y<T;++y)l=d[y],O=Hhe(D,yc,l),O&&(J.a=u.Math.max(J.a,O.jf()));for(le=Te(xe(F4,1),wt,237,0,[bc,vu,yc]),Se=0,Ue=le.length;Se<Ue;++Se)re=le[Se],O=Hhe(D,re,bc),O&&(J.b=u.Math.max(J.b,O.kf()));for(ae=Te(xe(F4,1),wt,237,0,[bc,vu,yc]),de=0,Me=ae.length;de<Me;++de)re=ae[de],O=Hhe(D,re,yc),O&&(J.c=u.Math.max(J.c,O.kf()));return J.d>0&&(J.d+=D.n.d,J.d+=D.d),J.a>0&&(J.a+=D.n.a,J.a+=D.d),J.b>0&&(J.b+=D.n.b,J.b+=D.d),J.c>0&&(J.c+=D.n.c,J.c+=D.d),J}function tKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;for(J=l.d,q=l.c,y=new Ct(l.f.a+l.d.b+l.d.c,l.f.b+l.d.d+l.d.a),x=y.b,O=new me(n.a);O.a<O.c.c.length;)if(T=v(pe(O),10),T.k==(lr(),hs)){switch(d=v(oe(T,(At(),vc)),64),g=v(oe(T,Vqe),8),D=T.n,d.g){case 2:D.a=l.f.a+J.c-q.a;break;case 4:D.a=-q.a-J.b}switch(ae=0,d.g){case 2:case 4:i==(co(),sm)?(re=We(at(oe(T,bx))),D.b=y.b*re-v(oe(T,(qt(),Ex)),8).b,ae=D.b+g.b,_Z(T,!1,!0)):i==su&&(D.b=We(at(oe(T,bx)))-v(oe(T,(qt(),Ex)),8).b,ae=D.b+g.b,_Z(T,!1,!0))}x=u.Math.max(x,ae)}for(l.f.b+=x-y.b,R=new me(n.a);R.a<R.c.c.length;)if(T=v(pe(R),10),T.k==(lr(),hs))switch(d=v(oe(T,(At(),vc)),64),D=T.n,d.g){case 1:D.b=-q.b-J.d;break;case 3:D.b=l.f.b+J.a-q.b}}function F7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(D=v(v(Zi(n.r,i),21),87),D.gc()<=2||i==(Bt(),gr)||i==(Bt(),cr)){wKt(n,i);return}for(le=n.u.Hc((Ah(),L6)),l=i==(Bt(),or)?(GE(),mq):(GE(),gq),Se=i==or?(ju(),I0):(ju(),g1),d=cRe(TIe(l),n.s),de=i==or?ka:Ss,O=D.Kc();O.Ob();)T=v(O.Pb(),117),!(!T.c||T.c.d.c.length<=0)&&(ae=T.b.Mf(),re=T.e,q=T.c,J=q.i,J.b=(y=q.n,q.e.a+y.b+y.c),J.a=(x=q.n,q.e.b+x.d+x.a),le?(J.c=re.a-(g=q.n,q.e.a+g.b+g.c)-n.s,le=!1):J.c=re.a+ae.a+n.s,az(Se,TBe),q.f=Se,l1(q,(Th(),R0)),Lt(d.d,new wde(J,mLe(d,J))),de=i==or?u.Math.min(de,re.b):u.Math.max(de,re.b+T.b.Mf().b));for(de+=i==or?-n.t:n.t,MLe((d.e=de,d)),R=D.Kc();R.Ob();)T=v(R.Pb(),117),!(!T.c||T.c.d.c.length<=0)&&(J=T.c.i,J.c-=T.e.a,J.d-=T.e.b)}function nKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(g=new Ot,le=new me(i.a);le.a<le.c.c.length;)if(ae=v(pe(le),10),re=ae.e,re&&(d=nKt(n,re,ae),xs(g,d),Z6r(n,re,ae),v(oe(re,(At(),au)),21).Hc((cl(),wf))))for(Me=v(oe(ae,(qt(),Qa)),101),J=v(oe(ae,Q4),181).Hc((Ah(),ub)),Se=new me(ae.j);Se.a<Se.c.c.length;)for(de=v(pe(Se),12),y=v(br(n.b,de),10),y||(y=IG(de,Me,de.j,-(de.e.c.length-de.g.c.length),null,new ho,de.o,v(oe(re,Pd),88),re),_t(y,Ji,de),Ni(n.b,de,y),Lt(re.a,y)),x=v(Yt(y.j,0),12),D=new me(de.f);D.a<D.c.c.length;)O=v(pe(D),72),T=new p7t,T.o.a=O.o.a,T.o.b=O.o.b,Lt(x.f,T),J||(Ue=de.j,q=0,aD(v(oe(ae,Q4),21))&&(q=EMe(O.n,O.o,de.o,0,Ue)),Me==(co(),up)||(Bt(),Du).Hc(Ue)?T.o.a=q:T.o.b=q);return R=new Ot,Q6r(n,i,l,g,R),l&&m6r(n,i,l,R),R}function VPe(n,i,l){var d,g,y,x,T,R,O,D,q;if(!n.c[i.c.p][i.p].e){for(n.c[i.c.p][i.p].e=!0,n.c[i.c.p][i.p].b=0,n.c[i.c.p][i.p].d=0,n.c[i.c.p][i.p].a=null,D=new me(i.j);D.a<D.c.c.length;)for(O=v(pe(D),12),q=l?new FR(O):new QA(O),R=q.Kc();R.Ob();)T=v(R.Pb(),12),x=T.i,x.c==i.c?x!=i&&(VPe(n,x,l),n.c[i.c.p][i.p].b+=n.c[x.c.p][x.p].b,n.c[i.c.p][i.p].d+=n.c[x.c.p][x.p].d):(n.c[i.c.p][i.p].d+=n.g[T.p],++n.c[i.c.p][i.p].b);if(y=v(oe(i,(At(),zqe)),15),y)for(g=y.Kc();g.Ob();)d=v(g.Pb(),10),i.c==d.c&&(VPe(n,d,l),n.c[i.c.p][i.p].b+=n.c[d.c.p][d.p].b,n.c[i.c.p][i.p].d+=n.c[d.c.p][d.p].d);n.c[i.c.p][i.p].b>0&&(n.c[i.c.p][i.p].d+=Gh(n.i,24)*GG*.07000000029802322-.03500000014901161,n.c[i.c.p][i.p].a=n.c[i.c.p][i.p].d/n.c[i.c.p][i.p].b)}}function $7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(ae=new me(n);ae.a<ae.c.c.length;){for(re=v(pe(ae),10),jb(re.n),jb(re.o),LOe(re.f),gjt(re),iCr(re),de=new me(re.j);de.a<de.c.c.length;){for(le=v(pe(de),12),jb(le.n),jb(le.a),jb(le.o),Bs(le,WGt(le.j)),y=v(oe(le,(qt(),_y)),17),y&&_t(le,_y,Nt(-y.a)),g=new me(le.g);g.a<g.c.c.length;){for(d=v(pe(g),18),l=Ur(d.a,0);l.b!=l.d.c;)i=v(Fr(l),8),jb(i);if(R=v(oe(d,Nl),75),R)for(T=Ur(R,0);T.b!=T.d.c;)x=v(Fr(T),8),jb(x);for(q=new me(d.b);q.a<q.c.c.length;)O=v(pe(q),72),jb(O.n),jb(O.o)}for(J=new me(le.f);J.a<J.c.c.length;)O=v(pe(J),72),jb(O.n),jb(O.o)}for(re.k==(lr(),hs)&&(_t(re,(At(),vc),WGt(v(oe(re,vc),64))),f5r(re)),D=new me(re.b);D.a<D.c.c.length;)O=v(pe(D),72),gjt(O),jb(O.o),jb(O.n)}}function U7r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;Kn=br(n.e,d),Kn==null&&(Kn=new nk,re=v(Kn,190),Me=i+"_s",Ue=Me+g,J=new JS(Ue),c1(re,ug,J)),mn=v(Kn,190),Tk(l,mn),Sr=new nk,k_(Sr,"x",d.j),k_(Sr,"y",d.k),c1(mn,DZt,Sr),Mt=new nk,k_(Mt,"x",d.b),k_(Mt,"y",d.c),c1(mn,"endPoint",Mt),q=fU((!d.a&&(d.a=new gs(Ud,d,5)),d.a)),ae=!q,ae&&(xt=new p_,y=new bkt(xt),To((!d.a&&(d.a=new gs(Ud,d,5)),d.a),y),c1(mn,Ree,xt)),R=X0e(d),je=!!R,je&&jDe(n.a,mn,vUe,R1e(n,X0e(d))),Se=Q0e(d),yt=!!Se,yt&&jDe(n.a,mn,yUe,R1e(n,Q0e(d))),O=(!d.e&&(d.e=new Gn(xa,d,10,9)),d.e).i==0,le=!O,le&&(yn=new p_,x=new q8t(n,yn),To((!d.e&&(d.e=new Gn(xa,d,10,9)),d.e),x),c1(mn,wUe,yn)),D=(!d.g&&(d.g=new Gn(xa,d,9,10)),d.g).i==0,de=!D,de&&(Xn=new p_,T=new H8t(n,Xn),To((!d.g&&(d.g=new Gn(xa,d,9,10)),d.g),T),c1(mn,_Ue,Xn))}function z7r(n){WS();var i,l,d,g,y,x,T;for(d=n.f.n,x=wNe(n.r).a.nc();x.Ob();){if(y=v(x.Pb(),117),g=0,y.b.pf((Ei(),jh))&&(g=We(at(y.b.of(jh))),g<0))switch(y.b.ag().g){case 1:d.d=u.Math.max(d.d,-g);break;case 3:d.a=u.Math.max(d.a,-g);break;case 2:d.c=u.Math.max(d.c,-g);break;case 4:d.b=u.Math.max(d.b,-g)}if(aD(n.u))switch(i=Ymr(y.b,g),T=!v(n.e.of(g2),181).Hc((qh(),bH)),l=!1,y.b.ag().g){case 1:l=i>d.d,d.d=u.Math.max(d.d,i),T&&l&&(d.d=u.Math.max(d.d,d.a),d.a=d.d+g);break;case 3:l=i>d.a,d.a=u.Math.max(d.a,i),T&&l&&(d.a=u.Math.max(d.a,d.d),d.d=d.a+g);break;case 2:l=i>d.c,d.c=u.Math.max(d.c,i),T&&l&&(d.c=u.Math.max(d.b,d.c),d.b=d.c+g);break;case 4:l=i>d.b,d.b=u.Math.max(d.b,i),T&&l&&(d.b=u.Math.max(d.b,d.c),d.c=d.b+g)}}}function rKt(n,i){var l,d,g,y,x,T,R,O,D;return O="",i.length==0?n.ne(cBe,kpe,-1,-1):(D=v4(i),An(D.substr(0,3),"at ")&&(D=(sr(3,D.length+1),D.substr(3))),D=D.replace(/\[.*?\]/g,""),x=D.indexOf("("),x==-1?(x=D.indexOf("@"),x==-1?(O=D,D=""):(O=v4((sr(x+1,D.length+1),D.substr(x+1))),D=v4((mo(0,x,D.length),D.substr(0,x))))):(l=D.indexOf(")",x),O=(mo(x+1,l,D.length),D.substr(x+1,l-(x+1))),D=v4((mo(0,x,D.length),D.substr(0,x)))),x=qp(D,Wu(46)),x!=-1&&(D=(sr(x+1,D.length+1),D.substr(x+1))),(D.length==0||An(D,"Anonymous function"))&&(D=kpe),T=AX(O,Wu(58)),g=mIe(O,Wu(58),T-1),R=-1,d=-1,y=cBe,T!=-1&&g!=-1&&(y=(mo(0,g,O.length),O.substr(0,g)),R=_Nt((mo(g+1,T,O.length),O.substr(g+1,T-(g+1)))),d=_Nt((sr(T+1,O.length+1),O.substr(T+1)))),n.ne(y,D,R,d))}function G7r(n){var i,l,d,g,y,x,T,R,O,D,q;for(O=new me(n);O.a<O.c.c.length;){switch(R=v(pe(O),10),x=v(oe(R,(qt(),Lu)),171),y=null,x.g){case 1:case 2:y=(F_(),O5);break;case 3:case 4:y=(F_(),tN)}if(y)_t(R,(At(),Wte),(F_(),O5)),y==tN?_J(R,x,(ll(),Rh)):y==O5&&_J(R,x,(ll(),_u));else if(OT(v(oe(R,Qa),101))&&R.j.c.length!=0){for(i=!0,q=new me(R.j);q.a<q.c.c.length;){if(D=v(pe(q),12),!(D.j==(Bt(),gr)&&D.e.c.length-D.g.c.length>0||D.j==cr&&D.e.c.length-D.g.c.length<0)){i=!1;break}for(g=new me(D.g);g.a<g.c.c.length;)if(l=v(pe(g),18),T=v(oe(l.d.i,Lu),171),T==(pf(),cP)||T==Y4){i=!1;break}for(d=new me(D.e);d.a<d.c.c.length;)if(l=v(pe(d),18),T=v(oe(l.c.i,Lu),171),T==(pf(),lP)||T==u2){i=!1;break}}i&&_J(R,x,(ll(),yP))}}}function q7r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;for(xt=0,re=0,q=new me(i.e);q.a<q.c.c.length;){for(D=v(pe(q),10),J=0,T=0,R=l?v(oe(D,wne),17).a:Po,Se=d?v(oe(D,Ene),17).a:Po,O=u.Math.max(R,Se),Ue=new me(D.j);Ue.a<Ue.c.c.length;){if(Me=v(pe(Ue),12),je=D.n.b+Me.n.b+Me.a.b,d)for(x=new me(Me.g);x.a<x.c.c.length;)y=v(pe(x),18),le=y.d,ae=le.i,i!=n.a[ae.p]&&(de=u.Math.max(v(oe(ae,wne),17).a,v(oe(ae,Ene),17).a),yt=v(oe(y,(qt(),T6)),17).a,yt>=O&&yt>=de&&(J+=ae.n.b+le.n.b+le.a.b-je,++T));if(l)for(x=new me(Me.e);x.a<x.c.c.length;)y=v(pe(x),18),le=y.c,ae=le.i,i!=n.a[ae.p]&&(de=u.Math.max(v(oe(ae,wne),17).a,v(oe(ae,Ene),17).a),yt=v(oe(y,(qt(),T6)),17).a,yt>=O&&yt>=de&&(J+=ae.n.b+le.n.b+le.a.b-je,++T))}T>0&&(xt+=J/T,++re)}re>0?(i.a=g*xt/re,i.g=re):(i.a=0,i.g=0)}function H7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(y=n.f.b,J=y.a,D=y.b,ae=n.e.g,re=n.e.f,DT(n.e,y.a,y.b),xt=J/ae,Mt=D/re,O=new mr(dQ(n.e));O.e!=O.i.gc();)R=v(wr(O),135),Au(R,R.i*xt),ku(R,R.j*Mt);for(Me=new mr(Ude(n.e));Me.e!=Me.i.gc();)Se=v(wr(Me),123),je=Se.i,yt=Se.j,je>0&&Au(Se,je*xt),yt>0&&ku(Se,yt*Mt);for(kD(n.b,new Lm),i=new Ot,T=new P_(new b_(n.c).a);T.b;)x=zE(T),d=v(x.ld(),74),l=v(x.md(),407).a,g=o5(d,!1,!1),q=Xqt(Hg(d),hG(g),l),TG(q,g),Ue=cHt(d),Ue&&$l(i,Ue,0)==-1&&(jn(i.c,Ue),FLt(Ue,(Tr(q.b!=0),v(q.a.a.c,8)),l));for(de=new P_(new b_(n.d).a);de.b;)le=zE(de),d=v(le.ld(),74),l=v(le.md(),407).a,g=o5(d,!1,!1),q=Xqt(jv(d),Gz(hG(g)),l),q=Gz(q),TG(q,g),Ue=uHt(d),Ue&&$l(i,Ue,0)==-1&&(jn(i.c,Ue),FLt(Ue,(Tr(q.b!=0),v(q.c.b.c,8)),l))}function iKt(n,i,l,d){var g,y,x,T,R;return T=new jPe(i),MTr(T,d),g=!0,n&&n.pf((Ei(),gw))&&(y=v(n.of((Ei(),gw)),88),g=y==(ys(),cp)||y==Ol||y==ql),rjt(T,!1),Cu(T.e.Rf(),new xIe(T,!1,g)),Jde(T,T.f,(u1(),bc),(Bt(),or)),Jde(T,T.f,yc,Mr),Jde(T,T.g,bc,cr),Jde(T,T.g,yc,gr),OGt(T,or),OGt(T,Mr),MLt(T,gr),MLt(T,cr),WS(),x=T.A.Hc((ud(),o3))&&T.B.Hc((qh(),yH))?Xzt(T):null,x&&Gir(T.a,x),z7r(T),G_r(T),q_r(T),p7r(T),LAr(T),gwr(T),G0e(T,or),G0e(T,Mr),vCr(T),o6r(T),l&&(xvr(T),mwr(T),G0e(T,gr),G0e(T,cr),R=T.B.Hc((qh(),KP)),KHt(T,R,or),KHt(T,R,Mr),XHt(T,R,gr),XHt(T,R,cr),ts(new xn(null,new Nn(new Dm(T.i),0)),new ur),ts(Ki(new xn(null,wNe(T.r).a.oc()),new On),new Ir),IEr(T),T.e.Pf(T.o),ts(new xn(null,wNe(T.r).a.oc()),new Ln)),T.o}function V7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(O=ka,d=new me(n.a.b);d.a<d.c.c.length;)i=v(pe(d),86),O=u.Math.min(O,i.d.f.g.c+i.e.a);for(re=new Ea,x=new me(n.a.a);x.a<x.c.c.length;)y=v(pe(x),194),y.i=O,y.e==0&&qa(re,y,re.c.b,re.c);for(;re.b!=0;){for(y=v(re.b==0?null:(Tr(re.b!=0),cf(re,re.a.a)),194),g=y.f.g.c,J=y.a.a.ec().Kc();J.Ob();)D=v(J.Pb(),86),le=y.i+D.e.a,D.d.g||D.g.c<le?D.o=le:D.o=D.g.c;for(g-=y.f.o,y.b+=g,n.c==(ys(),ql)||n.c==lp?y.c+=g:y.c-=g,q=y.a.a.ec().Kc();q.Ob();)for(D=v(q.Pb(),86),R=D.f.Kc();R.Ob();)T=v(R.Pb(),86),Bm(n.c)?ae=n.f.yf(D,T):ae=n.f.zf(D,T),T.d.i=u.Math.max(T.d.i,D.o+D.g.b+ae-T.e.a),T.k||(T.d.i=u.Math.max(T.d.i,T.g.c-T.e.a)),--T.d.e,T.d.e==0&&pi(re,T.d)}for(l=new me(n.a.b);l.a<l.c.c.length;)i=v(pe(l),86),i.g.c=i.o}function Y7r(n){var i,l,d,g,y,x,T,R;switch(T=n.b,i=n.a,v(oe(n,(nJ(),Lze)),435).g){case 0:us(T,new ei(new to));break;case 1:default:us(T,new ei(new Fi))}switch(v(oe(n,Nze),436).g){case 1:us(T,new La),us(T,new Pt),us(T,new Ci);break;case 0:default:us(T,new La),us(T,new uo)}switch(v(oe(n,Mze),257).g){case 0:R=new Rs;break;case 1:R=new Hr;break;case 2:R=new za;break;case 3:R=new Un;break;case 5:R=new BR(new za);break;case 4:R=new BR(new Hr);break;case 7:R=new DRe(new BR(new Hr),new BR(new za));break;case 8:R=new DRe(new BR(new Un),new BR(new za));break;case 6:default:R=new BR(new Un)}for(x=new me(T);x.a<x.c.c.length;){for(y=v(pe(x),176),d=0,g=0,l=new Ms(Nt(d),Nt(g));CAr(i,y,d,g);)l=v(R.Ve(l,y),42),d=v(l.a,17).a,g=v(l.b,17).a;xCr(i,y,d,g)}}function aKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;for(l.Ug(LQt,1),J=(fa(),Tve),n.a==(LD(),kne)&&(J=oYe),D=0,Fn(),i.jd(new Sue(J)),y=i.gc(),T=i.fd(i.gc()),O=!0;O&&T.Sb();)Me=v(T.Ub(),40),v(oe(Me,J),17).a==0?--y:O=!1;if(xt=i.kd(0,y),x=new rde(xt),xt=i.kd(y,i.gc()),R=new rde(xt),x.b==0)for(le=Ur(R,0);le.b!=le.d.c;)ae=v(Fr(le),40),_t(ae,kP,Nt(D++));else for(q=x.b,yt=Ur(x,0);yt.b!=yt.d.c;){for(je=v(Fr(yt),40),_t(je,kP,Nt(D++)),d=a0e(je),aKt(n,d,l.eh(1/q|0)),D_(d,ONe(new Sue(kP))),re=new Ea,Ue=Ur(d,0);Ue.b!=Ue.d.c;)for(Me=v(Fr(Ue),40),Se=Ur(je.d,0);Se.b!=Se.d.c;)de=v(Fr(Se),65),de.c==Me&&qa(re,de,re.c.b,re.c);for(xd(je.d),bo(je.d,re),T=Ur(R,R.b),g=je.d.b,O=!0;0<g&&O&&T.Sb();)Me=v(T.Ub(),40),v(oe(Me,J),17).a==0?(_t(Me,kP,Nt(D++)),--g,T.Qb()):O=!1}l.Vg()}function j7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(q=We(at(Et(n,(Xv(),Hve)))),Vt(Ht(Et(n,GYe)))&&(D=v(Et(n,(UT(),Y5)),27),y=v(ze(LNe(v(ze((!D.e&&(D.e=new Gn(ss,D,7,4)),D.e),(!D.e&&(D.e=new Gn(ss,D,7,4)),D.e).i-1),74)),0),27),d=v(ze(LNe(v(ze((!D.e&&(D.e=new Gn(ss,D,7,4)),D.e),0),74)),0),27),x=new Ct(y.i+y.g/2,y.j+y.f/2),g=new Ct(d.i+d.g/2,d.j+d.f/2),l=q,l<=0&&(l+=Z_),J=u.Math.acos((x.a*g.a+x.b*g.b)/(u.Math.sqrt(x.a*x.a+x.b*x.b)*u.Math.sqrt(g.a*g.a+g.b*g.b))),J<=0&&(J+=Z_),i=u.Math.atan2(x.b,x.a),i<=0&&(i+=Z_),q=g$e-(i-l+J/2)),R=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));R.e!=R.i.gc();)T=v(wr(R),27),O=new Ct(T.i+T.g/2,T.j+T.f/2),re=O.a*u.Math.cos(q)-O.b*u.Math.sin(q),O.b=O.a*u.Math.sin(q)+O.b*u.Math.cos(q),O.a=re,ef(T,O.a-T.g/2,O.b-T.f/2)}function W7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(i.Ug("Inverted port preprocessing",1),D=n.b,O=new go(D,0),l=null,Ue=new Ot;O.b<O.d.gc();){for(Me=l,l=(Tr(O.b<O.d.gc()),v(O.d.Xb(O.c=O.b++),30)),re=new me(Ue);re.a<re.c.c.length;)q=v(pe(re),10),po(q,Me);for(Ue.c.length=0,ae=new me(l.a);ae.a<ae.c.c.length;)if(q=v(pe(ae),10),q.k==(lr(),is)&&OT(v(oe(q,(qt(),Qa)),101))){for(Se=lPe(q,(ll(),Rh),(Bt(),gr)).Kc();Se.Ob();)for(le=v(Se.Pb(),12),R=le.e,T=v(X1(R,st(Jbe,Cge,18,R.c.length,0,1)),483),g=T,y=0,x=g.length;y<x;++y)d=g[y],bkr(n,le,d,Ue);for(de=lPe(q,_u,cr).Kc();de.Ob();)for(le=v(de.Pb(),12),R=le.g,T=v(X1(R,st(Jbe,Cge,18,R.c.length,0,1)),483),g=T,y=0,x=g.length;y<x;++y)d=g[y],mkr(n,le,d,Ue)}}for(J=new me(Ue);J.a<J.c.c.length;)q=v(pe(J),10),po(q,l);i.Vg()}function ype(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(J=null,d==(LE(),f2)?J=i:d==H5&&(J=l),le=J.a.ec().Kc();le.Ob();){for(ae=v(le.Pb(),12),de=ac(Te(xe(Vs,1),kt,8,0,[ae.i.n,ae.n,ae.a])).b,Ue=new fs,T=new fs,O=new V1(ae.b);nc(O.a)||nc(O.b);)if(R=v(nc(O.a)?pe(O.a):pe(O.b),18),Vt(Ht(oe(R,(At(),ap))))==g&&$l(y,R,0)!=-1){if(R.d==ae?Se=R.c:Se=R.d,Me=ac(Te(xe(Vs,1),kt,8,0,[Se.i.n,Se.n,Se.a])).b,u.Math.abs(Me-de)<.2)continue;Me<de?i.a._b(Se)?Es(Ue,new Ms(f2,R)):Es(Ue,new Ms(H5,R)):i.a._b(Se)?Es(T,new Ms(f2,R)):Es(T,new Ms(H5,R))}if(Ue.a.gc()>1)for(re=new BPe(ae,Ue,d),To(Ue,new p8t(n,re)),jn(x.c,re),q=Ue.a.ec().Kc();q.Ob();)D=v(q.Pb(),42),Yu(y,D.b);if(T.a.gc()>1)for(re=new BPe(ae,T,d),To(T,new g8t(n,re)),jn(x.c,re),q=T.a.ec().Kc();q.Ob();)D=v(q.Pb(),42),Yu(y,D.b)}}function K7r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(le=n.n,de=n.o,J=n.d,q=We(at(p4(n,(qt(),Qye)))),i){for(D=q*(i.gc()-1),re=0,R=i.Kc();R.Ob();)x=v(R.Pb(),10),D+=x.o.a,re=u.Math.max(re,x.o.b);for(Se=le.a-(D-de.a)/2,y=le.b-J.d+re,d=de.a/(i.gc()+1),g=d,T=i.Kc();T.Ob();)x=v(T.Pb(),10),x.n.a=Se,x.n.b=y-x.o.b,Se+=x.o.a+q,O=fYt(x),O.n.a=x.o.a/2-O.a.a,O.n.b=x.o.b,ae=v(oe(x,(At(),Yte)),12),ae.e.c.length+ae.g.c.length==1&&(ae.n.a=g-ae.a.a,ae.n.b=0,rc(ae,n)),g+=d}if(l){for(D=q*(l.gc()-1),re=0,R=l.Kc();R.Ob();)x=v(R.Pb(),10),D+=x.o.a,re=u.Math.max(re,x.o.b);for(Se=le.a-(D-de.a)/2,y=le.b+de.b+J.a-re,d=de.a/(l.gc()+1),g=d,T=l.Kc();T.Ob();)x=v(T.Pb(),10),x.n.a=Se,x.n.b=y,Se+=x.o.a+q,O=fYt(x),O.n.a=x.o.a/2-O.a.a,O.n.b=0,ae=v(oe(x,(At(),Yte)),12),ae.e.c.length+ae.g.c.length==1&&(ae.n.a=g-ae.a.a,ae.n.b=de.b,rc(ae,n)),g+=d}}function X7r(n,i){var l,d,g,y,x,T;if(v(oe(i,(At(),au)),21).Hc((cl(),wf))){for(T=new me(i.a);T.a<T.c.c.length;)y=v(pe(T),10),y.k==(lr(),is)&&(g=v(oe(y,(qt(),one)),140),n.c=u.Math.min(n.c,y.n.a-g.b),n.a=u.Math.max(n.a,y.n.a+y.o.a+g.c),n.d=u.Math.min(n.d,y.n.b-g.d),n.b=u.Math.max(n.b,y.n.b+y.o.b+g.a));for(x=new me(i.a);x.a<x.c.c.length;)if(y=v(pe(x),10),y.k!=(lr(),is))switch(y.k.g){case 2:if(d=v(oe(y,(qt(),Lu)),171),d==(pf(),u2)){y.n.a=n.c-10,yqt(y,new Dvt).Jb(new gCt(y));break}if(d==Y4){y.n.a=n.a+10,yqt(y,new Mvt).Jb(new mCt(y));break}if(l=v(oe(y,aw),311),l==(Ym(),D5)){RWt(y).Jb(new bCt(y)),y.n.b=n.d-10;break}if(l==y6){RWt(y).Jb(new yCt(y)),y.n.b=n.b+10;break}break;default:throw _e(new ar("The node type "+y.k+" is not supported by the "+V8r))}}}function Q7r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;for(R=new Ct(d.i+d.g/2,d.j+d.f/2),re=CWt(d),ae=v(Et(i,(qt(),Qa)),101),de=v(Et(d,lN),64),Y8t(kGt(d),X4)||(d.i==0&&d.j==0?le=0:le=hxr(d,de),sa(d,X4,le)),O=new Ct(i.g,i.f),g=IG(d,ae,de,re,O,R,new Ct(d.g,d.f),v(oe(l,Pd),88),l),_t(g,(At(),Ji),d),y=v(Yt(g.j,0),12),xrr(y,pAr(d)),_t(g,Q4,(Ah(),bn(v2))),q=v(Et(i,Q4),181).Hc(ub),T=new mr((!d.n&&(d.n=new vt(wl,d,1,7)),d.n));T.e!=T.i.gc();)if(x=v(wr(T),135),!Vt(Ht(Et(x,hw)))&&x.a&&(J=x0e(x),Lt(y.f,J),!q))switch(D=0,aD(v(Et(i,Q4),21))&&(D=EMe(new Ct(x.i,x.j),new Ct(x.g,x.f),new Ct(d.g,d.f),0,de)),de.g){case 2:case 4:J.o.a=D;break;case 1:case 3:J.o.b=D}_t(g,uN,at(Et(Aa(i),uN))),_t(g,hN,at(Et(Aa(i),hN))),_t(g,J4,at(Et(Aa(i),J4))),Lt(l.a,g),Ni(n.a,d,g)}function Z7r(n,i,l,d,g,y){var x,T,R,O,D,q;for(O=new zc,Ul(O,i),Bs(O,v(Et(i,(qt(),lN)),64)),_t(O,(At(),Ji),i),rc(O,l),q=O.o,q.a=i.g,q.b=i.f,D=O.n,D.a=i.i,D.b=i.j,Ni(n.a,i,O),x=VT(Bl(ic(new xn(null,(!i.e&&(i.e=new Gn(ss,i,7,4)),new Nn(i.e,16))),new $yt),new Byt),new sCt(i)),x||(x=VT(Bl(ic(new xn(null,(!i.d&&(i.d=new Gn(ss,i,8,5)),new Nn(i.d,16))),new Uyt),new Fyt),new oCt(i))),x||(x=VT(new xn(null,(!i.e&&(i.e=new Gn(ss,i,7,4)),new Nn(i.e,16))),new zyt)),_t(O,Lq,(Qn(),!!x)),y6r(O,y,g,v(Et(i,Ex),8)),R=new mr((!i.n&&(i.n=new vt(wl,i,1,7)),i.n));R.e!=R.i.gc();)T=v(wr(R),135),!Vt(Ht(Et(T,hw)))&&T.a&&Lt(O.f,x0e(T));switch(g.g){case 2:case 1:(O.j==(Bt(),or)||O.j==Mr)&&d.Fc((cl(),L5));break;case 4:case 3:(O.j==(Bt(),gr)||O.j==cr)&&d.Fc((cl(),L5))}return O}function J7r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(Ue=0,ae=0,re=0,J=1,Me=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));Me.e!=Me.i.gc();)de=v(wr(Me),27),J+=Gm(new yr(_r(eb(de).a.Kc(),new S))),yn=de.g,ae=u.Math.max(ae,yn),q=de.f,re=u.Math.max(re,q),Ue+=yn*q;for(le=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a).i,x=Ue+2*d*d*J*le,y=u.Math.sqrt(x),R=u.Math.max(y*l,ae),T=u.Math.max(y/l,re),Se=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));Se.e!=Se.i.gc();)de=v(wr(Se),27),mn=g.b+(Gh(i,26)*bM+Gh(i,27)*yM)*(R-de.g),Kn=g.b+(Gh(i,26)*bM+Gh(i,27)*yM)*(T-de.f),Au(de,mn),ku(de,Kn);for(Mt=R+(g.b+g.c),xt=T+(g.d+g.a),yt=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));yt.e!=yt.i.gc();)for(je=v(wr(yt),27),D=new yr(_r(eb(je).a.Kc(),new S));zr(D);)O=v(Rr(D),74),tM(O)||i8r(O,i,Mt,xt);Mt+=g.b+g.c,xt+=g.d+g.a,JE(n,Mt,xt,!1,!0)}function eRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(i.Ug("Comment pre-processing",1),l=0,R=new me(n.a);R.a<R.c.c.length;)if(T=v(pe(R),10),Vt(Ht(oe(T,(qt(),uP))))){for(++l,g=0,d=null,O=null,ae=new me(T.j);ae.a<ae.c.c.length;)J=v(pe(ae),12),g+=J.e.c.length+J.g.c.length,J.e.c.length==1&&(d=v(Yt(J.e,0),18),O=d.c),J.g.c.length==1&&(d=v(Yt(J.g,0),18),O=d.d);if(g==1&&O.e.c.length+O.g.c.length==1&&!Vt(Ht(oe(O.i,uP))))ORr(T,d,O,O.i),lD(R);else{for(Se=new Ot,re=new me(T.j);re.a<re.c.c.length;){for(J=v(pe(re),12),q=new me(J.g);q.a<q.c.c.length;)D=v(pe(q),18),D.d.g.c.length==0||jn(Se.c,D);for(x=new me(J.e);x.a<x.c.c.length;)y=v(pe(x),18),y.c.e.c.length==0||jn(Se.c,y)}for(de=new me(Se);de.a<de.c.c.length;)le=v(pe(de),18),ZE(le,!0)}}i._g()&&i.bh("Found "+l+" comment boxes"),i.Vg()}function YPe(n,i){ZOt();var l,d,g,y,x,T,R;if(this.a=new x8e(this),this.b=n,this.c=i,this.f=Ide(Al((dh(),ko),i)),this.f.dc())if((T=TDe(ko,n))==i)for(this.e=!0,this.d=new Ot,this.f=new kSt,this.f.Fc(nw),v(LJ(Sz(ko,Cd(n)),""),29)==n&&this.f.Fc(iD(ko,Cd(n))),g=X1e(ko,n).Kc();g.Ob();)switch(d=v(g.Pb(),179),RE(Al(ko,d))){case 4:{this.d.Fc(d);break}case 5:{this.f.Gc(Ide(Al(ko,d)));break}}else if(al(),v(i,69).xk())for(this.e=!0,this.f=null,this.d=new Ot,x=0,R=(n.i==null&&tg(n),n.i).length;x<R;++x)for(d=(l=(n.i==null&&tg(n),n.i),x>=0&&x<l.length?l[x]:null),y=Ik(Al(ko,d));y;y=Ik(Al(ko,y)))y==i&&this.d.Fc(d);else RE(Al(ko,i))==1&&T?(this.f=null,this.d=(Kk(),yhn)):(this.f=null,this.e=!0,this.d=(Fn(),new Eue(i)));else this.e=RE(Al(ko,i))==5,this.f.Fb(K2e)&&(this.f=K2e)}function sKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;for(l=0,d=O_r(n,i),J=n.s,re=n.t,O=v(v(Zi(n.r,i),21),87).Kc();O.Ob();)if(R=v(O.Pb(),117),!(!R.c||R.c.d.c.length<=0)){switch(ae=R.b.Mf(),T=R.b.pf((Ei(),jh))?We(at(R.b.of(jh))):0,D=R.c,q=D.i,q.b=(x=D.n,D.e.a+x.b+x.c),q.a=(y=D.n,D.e.b+y.d+y.a),i.g){case 1:q.c=R.a?(ae.a-q.b)/2:ae.a+J,q.d=ae.b+T+d,l1(D,(Th(),s2)),Yp(D,(ju(),g1));break;case 3:q.c=R.a?(ae.a-q.b)/2:ae.a+J,q.d=-T-d-q.a,l1(D,(Th(),s2)),Yp(D,(ju(),I0));break;case 2:q.c=-T-d-q.b,R.a?(g=n.v?q.a:v(Yt(D.d,0),187).Mf().b,q.d=(ae.b-g)/2):q.d=ae.b+re,l1(D,(Th(),R0)),Yp(D,(ju(),o2));break;case 4:q.c=ae.a+T+d,R.a?(g=n.v?q.a:v(Yt(D.d,0),187).Mf().b,q.d=(ae.b-g)/2):q.d=ae.b+re,l1(D,(Th(),dg)),Yp(D,(ju(),o2))}(i==(Bt(),or)||i==Mr)&&(l=u.Math.max(l,q.a))}l>0&&(v(yl(n.b,i),127).a.b=l)}function tRr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le;if(J=We(at(oe(n,(qt(),uN)))),re=We(at(oe(n,hN))),q=We(at(oe(n,J4))),T=n.o,y=v(Yt(n.j,0),12),x=y.n,le=ySr(y,q),!!le){if(i.Hc((Ah(),ub)))switch(v(oe(n,(At(),vc)),64).g){case 1:le.c=(T.a-le.b)/2-x.a,le.d=re;break;case 3:le.c=(T.a-le.b)/2-x.a,le.d=-re-le.a;break;case 2:l&&y.e.c.length==0&&y.g.c.length==0?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=T.b+re-x.b,le.c=-J-le.b;break;case 4:l&&y.e.c.length==0&&y.g.c.length==0?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=T.b+re-x.b,le.c=J}else if(i.Hc(v2))switch(v(oe(n,(At(),vc)),64).g){case 1:case 3:le.c=x.a+J;break;case 2:case 4:l&&!y.c?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=x.b+re}for(g=le.d,O=new me(y.f);O.a<O.c.c.length;)R=v(pe(O),72),ae=R.n,ae.a=le.c,ae.b=g,g+=R.o.b+q}}function nRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn;for(xt=new Ot,ae=new me(n.b);ae.a<ae.c.c.length;)for(re=v(pe(ae),30),Se=new me(re.a);Se.a<Se.c.c.length;)if(le=v(pe(Se),10),le.k==(lr(),hs)&&ya(le,(At(),Kte))){for(Me=null,je=null,Ue=null,mn=new me(le.j);mn.a<mn.c.c.length;)switch(yn=v(pe(mn),12),yn.j.g){case 4:Me=yn;break;case 2:je=yn;break;default:Ue=yn}for(yt=v(Yt(Ue.g,0),18),D=new MK(yt.a),O=new Wo(Ue.n),Hi(O,le.n),q=Ur(D,0),tz(q,O),Mt=Gz(yt.a),J=new Wo(Ue.n),Hi(J,le.n),qa(Mt,J,Mt.c.b,Mt.c),Kn=v(oe(le,Kte),10),Xn=v(Yt(Kn.j,0),12),R=v(X1(Me.e,st(Jbe,Cge,18,0,0,1)),483),d=R,y=0,T=d.length;y<T;++y)i=d[y],lo(i,Xn),y0e(i.a,i.a.b,D);for(R=Xp(je.g),l=R,g=0,x=l.length;g<x;++g)i=l[g],Uo(i,Xn),y0e(i.a,0,Mt);Uo(yt,null),lo(yt,null),jn(xt.c,le)}for(de=new me(xt);de.a<de.c.c.length;)le=v(pe(de),10),po(le,null)}function jPe(n){var i;if(this.r=Odr(new Cn,new Ar),this.b=new UD(v(ni(tl),297)),this.p=new UD(v(ni(tl),297)),this.i=new UD(v(ni(Mtn),297)),this.e=n,this.o=new Wo(n.Mf()),this.D=Vt(Ht(n.of((Ei(),_N)))),this.F=n.Yf()||Vt(Ht(n.of(aH))),this.A=v(n.of(mw),21),this.B=v(n.of(g2),21),this.q=v(n.of(UP),101),this.u=v(n.of(a3),21),!_xr(this.u))throw _e(new Gb("Invalid port label placement: "+this.u));if(this.v=Vt(Ht(n.of(IWe))),this.j=v(n.of(eC),21),!K3r(this.j))throw _e(new Gb("Invalid node label placement: "+this.j));this.n=v(jD(n,bWe),107),this.k=We(at(jD(n,jne))),this.d=We(at(jD(n,MWe))),this.w=We(at(jD(n,UWe))),this.s=We(at(jD(n,PWe))),this.t=We(at(jD(n,BWe))),this.C=v(jD(n,FWe),140),this.c=2*this.d,i=!this.B.Hc((qh(),bH)),this.f=new GD(0,i,0),this.g=new GD(1,i,0),Uue(this.f,(u1(),vu),this.g)}function rRr(){Ai(CH,new r3t),Ai(bre,new p3t),Ai(AH,new T3t),Ai(KKe,new P3t),Ai(Xt,new U3t),Ai(xe(bh,1),new z3t),Ai(rs,new G3t),Ai(d6,new q3t),Ai(Xt,new Y4t),Ai(Xt,new j4t),Ai(Xt,new W4t),Ai(ws,new K4t),Ai(Xt,new X4t),Ai(_f,new Q4t),Ai(_f,new Z4t),Ai(Xt,new J4t),Ai(VI,new t3t),Ai(Xt,new n3t),Ai(Xt,new i3t),Ai(Xt,new a3t),Ai(Xt,new s3t),Ai(Xt,new o3t),Ai(xe(bh,1),new l3t),Ai(Xt,new c3t),Ai(Xt,new u3t),Ai(_f,new h3t),Ai(_f,new d3t),Ai(Xt,new f3t),Ai(Ao,new g3t),Ai(Xt,new m3t),Ai(ux,new b3t),Ai(Xt,new y3t),Ai(Xt,new v3t),Ai(Xt,new _3t),Ai(Xt,new w3t),Ai(_f,new E3t),Ai(_f,new x3t),Ai(Xt,new S3t),Ai(Xt,new C3t),Ai(Xt,new A3t),Ai(Xt,new k3t),Ai(Xt,new R3t),Ai(Xt,new I3t),Ai(hx,new N3t),Ai(Xt,new O3t),Ai(Xt,new L3t),Ai(Xt,new D3t),Ai(hx,new M3t),Ai(ux,new B3t),Ai(Xt,new F3t),Ai(Ao,new $3t)}function oKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;switch(D=new ah,n.a.g){case 3:J=v(oe(i.e,(At(),sw)),15),re=v(oe(i.j,sw),15),ae=v(oe(i.f,sw),15),l=v(oe(i.e,F5),15),d=v(oe(i.j,F5),15),g=v(oe(i.f,F5),15),x=new Ot,xs(x,J),re.Jc(new rwt),xs(x,ff(re)),xs(x,ae),y=new Ot,xs(y,l),xs(y,ff(d)),xs(y,g),_t(i.f,sw,x),_t(i.f,F5,y),_t(i.f,Zqe,i.f),_t(i.e,sw,null),_t(i.e,F5,null),_t(i.j,sw,null),_t(i.j,F5,null);break;case 1:bo(D,i.e.a),pi(D,i.i.n),bo(D,ff(i.j.a)),pi(D,i.a.n),bo(D,i.f.a);break;default:bo(D,i.e.a),bo(D,ff(i.j.a)),bo(D,i.f.a)}xd(i.f.a),bo(i.f.a,D),Uo(i.f,i.e.c),T=v(oe(i.e,(qt(),Nl)),75),O=v(oe(i.j,Nl),75),R=v(oe(i.f,Nl),75),(T||O||R)&&(q=new ah,vNe(q,R),vNe(q,O),vNe(q,T),_t(i.f,Nl,q)),Uo(i.j,null),lo(i.j,null),Uo(i.e,null),lo(i.e,null),po(i.a,null),po(i.i,null),i.g&&oKt(n,i.g)}function lKt(){lKt=z;var n,i,l;for(new Wz(1,0),new Wz(10,0),new Wz(0,0),Den=st(vbe,kt,247,11,0,1),iw=st(Tf,rg,28,100,15,1),dze=Te(xe(ao,1),_l,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),fze=st(Wr,vi,28,dze.length,15,1),pze=Te(xe(ao,1),_l,28,15,[1,10,100,py,1e4,Qpe,1e6,1e7,1e8,zJ,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),gze=st(Wr,vi,28,pze.length,15,1),mze=st(vbe,kt,247,11,0,1),n=0;n<mze.length;n++)Den[n]=new Wz(n,0),mze[n]=new Wz(0,n),iw[n]=48;for(;n<iw.length;n++)iw[n]=48;for(l=0;l<fze.length;l++)fze[l]=vMe(dze[l]);for(i=0;i<gze.length;i++)gze[i]=vMe(pze[i]);uI()}function iRr(){function n(){this.obj=this.createObject()}return n.prototype.createObject=function(i){return Object.create(null)},n.prototype.get=function(i){return this.obj[i]},n.prototype.set=function(i,l){this.obj[i]=l},n.prototype[ege]=function(i){delete this.obj[i]},n.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},n.prototype.entries=function(){var i=this.keys(),l=this,d=0;return{next:function(){if(d>=i.length)return{done:!0};var g=i[d++];return{value:[g,l.get(g)],done:!1}}}},Z5r()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(i){return this.obj[":"+i]},n.prototype.set=function(i,l){this.obj[":"+i]=l},n.prototype[ege]=function(i){delete this.obj[":"+i]},n.prototype.keys=function(){var i=[];for(var l in this.obj)l.charCodeAt(0)==58&&i.push(l.substring(1));return i}),n}function fa(){fa=z,AP=new la($Be),new Ba("DEPTH",Nt(0)),Tve=new Ba("FAN",Nt(0)),oYe=new Ba(IQt,Nt(0)),p2=new Ba("ROOT",(Qn(),!1)),kve=new Ba("LEFTNEIGHBOR",null),Ron=new Ba("RIGHTNEIGHBOR",null),Tne=new Ba("LEFTSIBLING",null),Rve=new Ba("RIGHTSIBLING",null),Sve=new Ba("DUMMY",!1),new Ba("LEVEL",Nt(0)),uYe=new Ba("REMOVABLE_EDGES",new Ea),jq=new Ba("XCOOR",Nt(0)),Wq=new Ba("YCOOR",Nt(0)),Cne=new Ba("LEVELHEIGHT",0),b1=new Ba("LEVELMIN",0),L0=new Ba("LEVELMAX",0),Cve=new Ba("GRAPH_XMIN",0),Ave=new Ba("GRAPH_YMIN",0),lYe=new Ba("GRAPH_XMAX",0),cYe=new Ba("GRAPH_YMAX",0),sYe=new Ba("COMPACT_LEVEL_ASCENSION",!1),xve=new Ba("COMPACT_CONSTRAINTS",new Ot),CP=new Ba("ID",""),kP=new Ba("POSITION",Nt(0)),xy=new Ba("PRELIM",0),mN=new Ba("MODIFIER",0),gN=new la(GXt),Yq=new la(qXt)}function aRr(n){APe();var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(n==null)return null;if(q=n.length*8,q==0)return"";for(T=q%24,re=q/24|0,J=T!=0?re+1:re,y=null,y=st(Tf,rg,28,J*4,15,1),O=0,D=0,i=0,l=0,d=0,x=0,g=0,R=0;R<re;R++)i=n[g++],l=n[g++],d=n[g++],D=(l&15)<<24>>24,O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,le=l&-128?(l>>4^240)<<24>>24:l>>4<<24>>24,de=d&-128?(d>>6^252)<<24>>24:d>>6<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[le|O<<4],y[x++]=Oy[D<<2|de],y[x++]=Oy[d&63];return T==8?(i=n[g],O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[O<<4],y[x++]=61,y[x++]=61):T==16&&(i=n[g],l=n[g+1],D=(l&15)<<24>>24,O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,le=l&-128?(l>>4^240)<<24>>24:l>>4<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[le|O<<4],y[x++]=Oy[D<<2],y[x++]=61),Qp(y,0,y.length)}function sRr(n,i){var l,d,g,y,x,T,R;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Po&&fOe(i,n.p-Jv),x=i.q.getDate(),cz(i,1),n.k>=0&&Wfr(i,n.k),n.c>=0?cz(i,n.c):n.k>=0?(R=new q9e(i.q.getFullYear()-Jv,i.q.getMonth(),35),d=35-R.q.getDate(),cz(i,u.Math.min(d,x))):cz(i,x),n.f<0&&(n.f=i.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),Fsr(i,n.f==24&&n.g?0:n.f),n.j>=0&&Ipr(i,n.j),n.n>=0&&Gpr(i,n.n),n.i>=0&&fIt(i,zo(Go(oG(xc(i.q.getTime()),py),py),n.i)),n.a&&(g=new UK,fOe(g,g.q.getFullYear()-Jv-80),nhe(xc(i.q.getTime()),xc(g.q.getTime()))&&fOe(i,g.q.getFullYear()-Jv+100)),n.d>=0){if(n.c==-1)l=(7+n.d-i.q.getDay())%7,l>3&&(l-=7),T=i.q.getMonth(),cz(i,i.q.getDate()+l),i.q.getMonth()!=T&&cz(i,i.q.getDate()+(l>0?-7:7));else if(i.q.getDay()!=n.d)return!1}return n.o>Po&&(y=i.q.getTimezoneOffset(),fIt(i,zo(xc(i.q.getTime()),(n.o-y)*60*py))),!0}function cKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(g=oe(i,(At(),Ji)),!!$e(g,207)){for(ae=v(g,27),le=i.e,J=new Wo(i.c),y=i.d,J.a+=y.b,J.b+=y.d,je=v(Et(ae,(qt(),une)),181),oh(je,(qh(),Zne))&&(re=v(Et(ae,JHe),107),frr(re,y.a),wrr(re,y.d),prr(re,y.b),_rr(re,y.c)),l=new Ot,D=new me(i.a);D.a<D.c.c.length;)for(R=v(pe(D),10),$e(oe(R,Ji),207)?dRr(R,J):$e(oe(R,Ji),193)&&!le&&(d=v(oe(R,Ji),123),Me=Xjt(i,R,d.g,d.f),ef(d,Me.a,Me.b)),Se=new me(R.j);Se.a<Se.c.c.length;)de=v(pe(Se),12),ts(Ki(new xn(null,new Nn(de.g,16)),new lCt(R)),new cCt(l));if(le)for(Se=new me(le.j);Se.a<Se.c.c.length;)de=v(pe(Se),12),ts(Ki(new xn(null,new Nn(de.g,16)),new uCt(le)),new hCt(l));for(Ue=v(Et(ae,lb),223),T=new me(l);T.a<T.c.c.length;)x=v(pe(T),18),A7r(x,Ue,J);for(dAr(i),O=new me(i.a);O.a<O.c.c.length;)R=v(pe(O),10),q=R.e,q&&cKt(n,q)}}function uKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(!v(v(Zi(n.r,i),21),87).dc()){if(x=v(yl(n.b,i),127),R=x.i,T=x.n,D=G1e(n,i),d=R.b-T.b-T.c,g=x.a.a,y=R.c+T.b,re=n.w,(D==(ZT(),b2)||D==fH)&&v(v(Zi(n.r,i),21),87).gc()==1&&(g=D==b2?g-2*n.w:g,D=HP),d<g&&!n.B.Hc((qh(),Jne)))D==b2?(re+=(d-g)/(v(v(Zi(n.r,i),21),87).gc()+1),y+=re):re+=(d-g)/(v(v(Zi(n.r,i),21),87).gc()-1);else switch(d<g&&(g=D==b2?g-2*n.w:g,D=HP),D.g){case 3:y+=(d-g)/2;break;case 4:y+=d-g;break;case 0:l=(d-g)/(v(v(Zi(n.r,i),21),87).gc()+1),re+=u.Math.max(0,l),y+=re;break;case 1:l=(d-g)/(v(v(Zi(n.r,i),21),87).gc()-1),re+=u.Math.max(0,l)}for(J=v(v(Zi(n.r,i),21),87).Kc();J.Ob();)q=v(J.Pb(),117),q.e.a=y+q.d.b,q.e.b=(O=q.b,O.pf((Ei(),jh))?O.ag()==(Bt(),or)?-O.Mf().b-We(at(O.of(jh))):We(at(O.of(jh))):O.ag()==(Bt(),or)?-O.Mf().b:0),y+=q.d.b+q.b.Mf().a+q.d.c+re}}function hKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(!v(v(Zi(n.r,i),21),87).dc()){if(x=v(yl(n.b,i),127),R=x.i,T=x.n,q=G1e(n,i),d=R.a-T.d-T.a,g=x.a.b,y=R.d+T.d,ae=n.w,O=n.o.a,(q==(ZT(),b2)||q==fH)&&v(v(Zi(n.r,i),21),87).gc()==1&&(g=q==b2?g-2*n.w:g,q=HP),d<g&&!n.B.Hc((qh(),Jne)))q==b2?(ae+=(d-g)/(v(v(Zi(n.r,i),21),87).gc()+1),y+=ae):ae+=(d-g)/(v(v(Zi(n.r,i),21),87).gc()-1);else switch(d<g&&(g=q==b2?g-2*n.w:g,q=HP),q.g){case 3:y+=(d-g)/2;break;case 4:y+=d-g;break;case 0:l=(d-g)/(v(v(Zi(n.r,i),21),87).gc()+1),ae+=u.Math.max(0,l),y+=ae;break;case 1:l=(d-g)/(v(v(Zi(n.r,i),21),87).gc()-1),ae+=u.Math.max(0,l)}for(re=v(v(Zi(n.r,i),21),87).Kc();re.Ob();)J=v(re.Pb(),117),J.e.a=(D=J.b,D.pf((Ei(),jh))?D.ag()==(Bt(),cr)?-D.Mf().a-We(at(D.of(jh))):O+We(at(D.of(jh))):D.ag()==(Bt(),cr)?-D.Mf().a:O),J.e.b=y+J.d.d,y+=J.d.d+J.b.Mf().b+J.d.a+ae}}function oRr(n,i){var l,d,g,y,x;for(i.Ug("Processor determine the coords for each level",1),d=new Ot,x=Ur(n.b,0);x.b!=x.d.c;){for(g=v(Fr(x),40);v(oe(g,(pc(),gg)),17).a>d.c.length-1;)Lt(d,new Ms(b5,m$e));l=v(oe(g,gg),17).a,Bm(v(oe(n,Ax),88))?(g.e.a<We(at(($n(l,d.c.length),v(d.c[l],42)).a))&&vue(($n(l,d.c.length),v(d.c[l],42)),g.e.a),g.e.a+g.f.a>We(at(($n(l,d.c.length),v(d.c[l],42)).b))&&_ue(($n(l,d.c.length),v(d.c[l],42)),g.e.a+g.f.a)):(g.e.b<We(at(($n(l,d.c.length),v(d.c[l],42)).a))&&vue(($n(l,d.c.length),v(d.c[l],42)),g.e.b),g.e.b+g.f.b>We(at(($n(l,d.c.length),v(d.c[l],42)).b))&&_ue(($n(l,d.c.length),v(d.c[l],42)),g.e.b+g.f.b))}for(y=Ur(n.b,0);y.b!=y.d.c;)g=v(Fr(y),40),l=v(oe(g,(pc(),gg)),17).a,_t(g,(fa(),b1),at(($n(l,d.c.length),v(d.c[l],42)).a)),_t(g,L0,at(($n(l,d.c.length),v(d.c[l],42)).b));i.Vg()}function lRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(n.o=We(at(oe(n.i,(qt(),Sx)))),n.f=We(at(oe(n.i,dw))),n.j=n.i.b.c.length,T=n.j-1,J=0,n.k=0,n.n=0,n.b=H1(st(Ao,kt,17,n.j,0,1)),n.c=H1(st(ws,kt,345,n.j,7,1)),x=new me(n.i.b);x.a<x.c.c.length;){for(g=v(pe(x),30),g.p=T,q=new me(g.a);q.a<q.c.c.length;)D=v(pe(q),10),D.p=J,++J;--T}for(n.g=st(Wr,vi,28,J,15,1),n.d=E_(Wr,[kt,vi],[53,28],15,[J,3],2),n.p=new Ot,n.q=new Ot,i=0,n.e=0,y=new me(n.i.b);y.a<y.c.c.length;){for(g=v(pe(y),30),T=g.p,d=0,le=0,R=g.a.c.length,O=0,q=new me(g.a);q.a<q.c.c.length;)D=v(pe(q),10),J=D.p,n.g[J]=D.c.p,O+=D.o.b+n.o,l=Gm(new yr(_r(Hs(D).a.Kc(),new S))),ae=Gm(new yr(_r(os(D).a.Kc(),new S))),n.d[J][0]=ae-l,n.d[J][1]=l,n.d[J][2]=ae,d+=l,le+=ae,l>0&&Lt(n.q,D),Lt(n.p,D);i-=d,re=R+i,O+=i*n.f,of(n.b,T,Nt(re)),of(n.c,T,O),n.k=u.Math.max(n.k,re),n.n=u.Math.max(n.n,O),n.e+=i,i+=le}}function Bt(){Bt=z;var n;lc=new LU(wM,0),or=new LU(VJ,1),gr=new LU(uge,2),Mr=new LU(hge,3),cr=new LU(dge,4),hp=(Fn(),new zR((n=v(n1(tl),9),new nf(n,v(v0(n,n.length),9),0)))),F0=iy(va(or,Te(xe(tl,1),Dc,64,0,[]))),xf=iy(va(gr,Te(xe(tl,1),Dc,64,0,[]))),Fd=iy(va(Mr,Te(xe(tl,1),Dc,64,0,[]))),Zf=iy(va(cr,Te(xe(tl,1),Dc,64,0,[]))),Qu=iy(va(or,Te(xe(tl,1),Dc,64,0,[Mr]))),Du=iy(va(gr,Te(xe(tl,1),Dc,64,0,[cr]))),$0=iy(va(or,Te(xe(tl,1),Dc,64,0,[cr]))),Ih=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr]))),$d=iy(va(Mr,Te(xe(tl,1),Dc,64,0,[cr]))),Sf=iy(va(gr,Te(xe(tl,1),Dc,64,0,[Mr]))),Nh=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,cr]))),Xu=iy(va(gr,Te(xe(tl,1),Dc,64,0,[Mr,cr]))),Zu=iy(va(or,Te(xe(tl,1),Dc,64,0,[Mr,cr]))),mh=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,Mr]))),ou=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,Mr,cr])))}function cRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(i.Ug(cQt,1),le=new Ot,xt=new Ot,O=new me(n.b);O.a<O.c.c.length;)for(R=v(pe(O),30),Se=-1,ae=dz(R.a),q=ae,J=0,re=q.length;J<re;++J)if(D=q[J],++Se,!!(D.k==(lr(),is)&&OT(v(oe(D,(qt(),Qa)),101)))){for(yk(v(oe(D,(qt(),Qa)),101))||VTr(D),_t(D,(At(),mx),D),le.c.length=0,xt.c.length=0,l=new Ot,je=new Ea,Kfe(je,hy(D,(Bt(),or))),TKt(n,je,le,xt,l),T=Se,Mt=D,y=new me(le);y.a<y.c.c.length;)d=v(pe(y),10),m4(d,T,R),++Se,_t(d,mx,D),x=v(Yt(d.j,0),12),de=v(oe(x,Ji),12),Vt(Ht(oe(de,Uye)))||v(oe(d,w6),15).Fc(Mt);for(xd(je),Ue=hy(D,Mr).Kc();Ue.Ob();)Me=v(Ue.Pb(),12),qa(je,Me,je.a,je.a.a);for(TKt(n,je,xt,null,l),yt=D,g=new me(xt);g.a<g.c.c.length;)d=v(pe(g),10),m4(d,++Se,R),_t(d,mx,D),x=v(Yt(d.j,0),12),de=v(oe(x,Ji),12),Vt(Ht(oe(de,Uye)))||v(oe(yt,w6),15).Fc(d);l.c.length==0||_t(D,zqe,l)}i.Vg()}function dKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;if(i.b!=0){for(re=new Ea,T=null,ae=null,d=Ps(u.Math.floor(u.Math.log(i.b)*u.Math.LOG10E)+1),R=0,Ue=Ur(i,0);Ue.b!=Ue.d.c;)for(Se=v(Fr(Ue),40),Ze(ae)!==Ze(oe(Se,(fa(),CP)))&&(ae=ai(oe(Se,CP)),R=0),ae!=null?T=ae+sMt(R++,d):T=sMt(R++,d),_t(Se,CP,T),de=(g=Ur(new Mm(Se).a.d,0),new xT(g));hU(de.a);)le=v(Fr(de.a),65).c,qa(re,le,re.c.b,re.c),_t(le,CP,T);for(J=new Br,x=0;x<T.length-d;x++)for(Me=Ur(i,0);Me.b!=Me.d.c;)Se=v(Fr(Me),40),O=af(ai(oe(Se,(fa(),CP))),0,x+1),l=(O==null?Pl(ol(J.f,null)):NL(J.i,O))!=null?v(O==null?Pl(ol(J.f,null)):NL(J.i,O),17).a+1:1,Cl(J,O,Nt(l));for(q=new P_(new b_(J).a);q.b;)D=zE(q),y=Nt(br(n.a,D.ld())!=null?v(br(n.a,D.ld()),17).a:0),Cl(n.a,ai(D.ld()),Nt(v(D.md(),17).a+y.a)),y=v(br(n.b,D.ld()),17),(!y||y.a<v(D.md(),17).a)&&Cl(n.b,ai(D.ld()),v(D.md(),17));dKt(n,re)}}function uRr(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(l=null,R=null,g=v(oe(n.b,(qt(),Yye)),349),g==(ND(),Gq)&&(l=new Ot,R=new Ot),T=new me(n.d);T.a<T.c.c.length;)if(x=v(pe(T),105),y=x.i,!!y)switch(x.e.g){case 0:i=v(vD(new lk(x.b)),64),g==Gq&&i==(Bt(),or)?jn(l.c,x):g==Gq&&i==(Bt(),Mr)?jn(R.c,x):B_r(x,i);break;case 1:O=x.a.d.j,D=x.c.d.j,O==(Bt(),or)?Kb(x,or,(K1(),WI),x.a):D==or?Kb(x,or,(K1(),KI),x.c):O==Mr?Kb(x,Mr,(K1(),KI),x.a):D==Mr&&Kb(x,Mr,(K1(),WI),x.c);break;case 2:case 3:d=x.b,oh(d,(Bt(),or))?oh(d,Mr)?oh(d,cr)?oh(d,gr)||Kb(x,or,(K1(),KI),x.c):Kb(x,or,(K1(),WI),x.a):Kb(x,or,(K1(),b6),null):Kb(x,Mr,(K1(),b6),null);break;case 4:q=x.a.d.j,J=x.a.d.j,q==(Bt(),or)||J==or?Kb(x,Mr,(K1(),b6),null):Kb(x,or,(K1(),b6),null)}l&&(l.c.length==0||aWt(l,(Bt(),or)),R.c.length==0||aWt(R,(Bt(),Mr)))}function hRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(l.Ug("Breadth first model order layering",1),n.a=i,de=new Ot,le=new me(n.a.a);le.a<le.c.c.length;)re=v(pe(le),10),re.k==(lr(),is)&&jn(de.c,re);for(Fn(),us(de,new owt),R=!0,g=new Xc(n.a),d=null,Lt(n.a.b,g),ae=new me(de);ae.a<ae.c.c.length;)if(re=v(pe(ae),10),R)po(re,g),R=!1;else{for(T=new yr(_r(Hs(re).a.Kc(),new S));zr(T);)y=v(Rr(T),18),(y.c.i.k==(lr(),is)&&y.c.i.c==g||y.c.i.k==Pc&&v(Rr(new yr(_r(Hs(y.c.i).a.Kc(),new S))),18).c.i.c==g)&&(d=new Xc(n.a),Lt(n.a.b,d),g=new Xc(n.a),Lt(n.a.b,g));for(x=new yr(_r(Hs(re).a.Kc(),new S));zr(x);)y=v(Rr(x),18),y.c.i.k==(lr(),Pc)&&!y.c.i.c&&po(y.c.i,d);po(re,g)}for(n.a.a.c.length=0,Se=new Ot,q=new me(n.a.b);q.a<q.c.c.length;)O=v(pe(q),30),O.a.c.length==0&&jn(Se.c,O);for(vLe(n.a.b,Se),J=0,D=new me(n.a.b);D.a<D.c.c.length;)O=v(pe(D),30),O.p=J,++J;l.Vg()}function dRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(d=v(oe(n,(At(),Ji)),27),ae=v(oe(n,(qt(),nne)),17).a,y=v(oe(n,sne),17).a,sa(d,nne,Nt(ae)),sa(d,sne,Nt(y)),Au(d,n.n.a+i.a),ku(d,n.n.b+i.b),(v(Et(d,uw),181).gc()!=0||n.e||Ze(oe(So(n),cne))===Ze((HD(),bP))&&xIt((g4(),(n.q?n.q:(Fn(),Fn(),Jg))._b(wx)?J=v(oe(n,wx),203):J=v(oe(So(n),fP),203),J)))&&(FE(d,n.o.a),BE(d,n.o.b)),q=new me(n.j);q.a<q.c.c.length;)O=v(pe(q),12),le=oe(O,Ji),$e(le,193)&&(g=v(le,123),ef(g,O.n.a,O.n.b),sa(g,lN,O.j));for(re=v(oe(n,_x),181).gc()!=0,R=new me(n.b);R.a<R.c.c.length;)x=v(pe(R),72),(re||v(oe(x,_x),181).gc()!=0)&&(l=v(oe(x,Ji),135),DT(l,x.o.a,x.o.b),ef(l,x.n.a,x.n.b));if(!aD(v(oe(n,Q4),21)))for(D=new me(n.j);D.a<D.c.c.length;)for(O=v(pe(D),12),T=new me(O.f);T.a<T.c.c.length;)x=v(pe(T),72),l=v(oe(x,Ji),135),FE(l,x.o.a),BE(l,x.o.b),ef(l,x.n.a,x.n.b)}function fRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;for(i.Ug("Calculate Graph Size",1),i.dh(n,T$e),q=b5,J=b5,O=C$e,D=C$e,le=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));le.e!=le.i.gc();)re=v(wr(le),27),Me=re.i,Ue=re.j,mn=re.g,T=re.f,R=v(Et(re,(Ei(),vN)),140),q=u.Math.min(q,Me-R.b),J=u.Math.min(J,Ue-R.d),O=u.Math.max(O,Me+mn+R.c),D=u.Math.max(D,Ue+T+R.a);for(Se=v(Et(n,(Ei(),Ty)),107),de=new Ct(q-Se.b,J-Se.d),yn=O-q+(Se.b+Se.c),x=D-J+(Se.d+Se.a),Vt(Ht(Et(n,(Xv(),FYe))))&&(je=v(Et(n,(UT(),Y5)),27),yt=v(Et(je,vN),140),xt=je.i+je.g/2+(yt.b+yt.c)/2-de.a,Mt=je.j+je.f/2+(yt.d+yt.a)/2-de.b,g=yn-xt,y=x-Mt,g<yn/2?(l=g-xt,yn+=l,de.a-=l):(l=xt-g,yn+=l),y<x/2?(d=y-Mt,x+=d,de.b-=d):(d=Mt-y,x+=d)),ae=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));ae.e!=ae.i.gc();)re=v(wr(ae),27),Au(re,re.i-de.a),ku(re,re.j-de.b);Vt(Ht(Et(n,i3)))||(FE(n,yn),BE(n,x)),sa(n,Z5,yn-(Se.b+Se.c)),sa(n,Q5,x-(Se.d+Se.a)),i.dh(n,Eee)}function pRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;if(n.e.a.$b(),n.f.a.$b(),n.c.c.length=0,n.i.c.length=0,n.g.a.$b(),i)for(x=new me(i.a);x.a<x.c.c.length;)for(y=v(pe(x),10),q=hy(y,(Bt(),gr)).Kc();q.Ob();)for(D=v(q.Pb(),12),Es(n.e,D),g=new me(D.g);g.a<g.c.c.length;)d=v(pe(g),18),!Jo(d)&&(Lt(n.c,d),AGt(n,d),T=d.c.i.k,(T==(lr(),is)||T==iu||T==hs||T==ip)&&Lt(n.j,d),re=d.d,J=re.i.c,J==l?Es(n.f,re):J==i?Es(n.e,re):Yu(n.c,d));if(l)for(x=new me(l.a);x.a<x.c.c.length;){for(y=v(pe(x),10),O=new me(y.j);O.a<O.c.c.length;)for(R=v(pe(O),12),g=new me(R.g);g.a<g.c.c.length;)d=v(pe(g),18),Jo(d)&&Es(n.g,d);for(q=hy(y,(Bt(),cr)).Kc();q.Ob();)for(D=v(q.Pb(),12),Es(n.f,D),g=new me(D.g);g.a<g.c.c.length;)d=v(pe(g),18),!Jo(d)&&(Lt(n.c,d),AGt(n,d),T=d.c.i.k,(T==(lr(),is)||T==iu||T==hs||T==ip)&&Lt(n.j,d),re=d.d,J=re.i.c,J==l?Es(n.f,re):J==i?Es(n.e,re):Yu(n.c,d))}}function gRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(l.Ug("Polyline edge routing",1),de=We(at(oe(i,(qt(),PHe)))),re=We(at(oe(i,z5))),g=We(at(oe(i,$5))),d=u.Math.min(1,g/re),Ue=0,R=0,i.b.c.length!=0&&(je=cYt(v(Yt(i.b,0),30)),Ue=.4*d*je),T=new go(i.b,0);T.b<T.d.gc();){for(x=(Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),30)),y=yX(x,Hq),y&&Ue>0&&(Ue-=re),FPe(x,Ue),D=0,J=new me(x.a);J.a<J.c.c.length;){for(q=v(pe(J),10),O=0,le=new yr(_r(os(q).a.Kc(),new S));zr(le);)ae=v(Rr(le),18),Se=q1(ae.c).b,Me=q1(ae.d).b,x==ae.d.i.c&&!Jo(ae)&&(k4r(ae,Ue,.4*d*u.Math.abs(Se-Me)),ae.c.j==(Bt(),cr)&&(Se=0,Me=0)),O=u.Math.max(O,u.Math.abs(Me-Se));switch(q.k.g){case 0:case 4:case 1:case 3:case 5:O6r(n,q,Ue,de)}D=u.Math.max(D,O)}T.b<T.d.gc()&&(je=cYt((Tr(T.b<T.d.gc()),v(T.d.Xb(T.c=T.b++),30))),D=u.Math.max(D,je),Tr(T.b>0),T.a.Xb(T.c=--T.b)),R=.4*d*D,!y&&T.b<T.d.gc()&&(R+=re),Ue+=x.c.a+R}n.a.a.$b(),i.f.a=Ue,l.Vg()}function mRr(n){var i,l,d,g,y;switch(az(n,zZt),(!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i+(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i){case 0:throw _e(new ar("The edge must have at least one source or target."));case 1:return(!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i==0?Aa(zl(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))):Aa(zl(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84)))}if((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b).i==1&&(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c).i==1){if(g=zl(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84)),y=zl(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84)),Aa(g)==Aa(y))return Aa(g);if(g==Aa(y))return g;if(y==Aa(g))return y}for(d=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c)]))),i=zl(v(Rr(d),84));zr(d);)if(l=zl(v(Rr(d),84)),l!=i&&!l4(l,i)){if(Aa(l)==Aa(i))i=Aa(l);else if(i=q3r(i,l),!i)return null}return i}function WPe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;if(J=i.length,J>0&&(R=(sr(0,i.length),i.charCodeAt(0)),R!=64)){if(R==37&&(q=i.lastIndexOf("%"),O=!1,q!=0&&(q==J-1||(O=(sr(q+1,i.length),i.charCodeAt(q+1)==46))))){if(x=(mo(1,q,i.length),i.substr(1,q-1)),Ue=An("%",x)?null:KPe(x),d=0,O)try{d=Nd((sr(q+2,i.length+1),i.substr(q+2)),Po,qi)}catch(je){throw je=Da(je),$e(je,130)?(T=je,_e(new VQ(T))):_e(je)}for(de=E9e(n.Gh());de.Ob();)if(ae=vZ(de),$e(ae,519)&&(g=v(ae,598),Me=g.d,(Ue==null?Me==null:An(Ue,Me))&&d--==0))return g;return null}if(D=i.lastIndexOf("."),re=D==-1?i:(mo(0,D,i.length),i.substr(0,D)),l=0,D!=-1)try{l=Nd((sr(D+1,i.length+1),i.substr(D+1)),Po,qi)}catch(je){if(je=Da(je),$e(je,130))re=i;else throw _e(je)}for(re=An("%",re)?null:KPe(re),le=E9e(n.Gh());le.Ob();)if(ae=vZ(le),$e(ae,197)&&(y=v(ae,197),Se=y.xe(),(re==null?Se==null:An(re,Se))&&l--==0))return y;return null}return ZWt(n,i)}function bRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(D=new Br,R=new OE,d=new me(n.a.a.b);d.a<d.c.c.length;)if(i=v(pe(d),60),O=qT(i),O)yu(D.f,O,i);else if(Me=Nk(i),Me)for(y=new me(Me.k);y.a<y.c.c.length;)g=v(pe(y),18),Rn(R,g,i);for(l=new me(n.a.a.b);l.a<l.c.c.length;)if(i=v(pe(l),60),O=qT(i),O){for(T=new yr(_r(os(O).a.Kc(),new S));zr(T);)if(x=v(Rr(T),18),!Jo(x)&&(ae=x.c,Se=x.d,!((Bt(),Qu).Hc(x.c.j)&&Qu.Hc(x.d.j)))){if(le=v(br(D,x.d.i),60),C0(m0(g0(b0(p0(new Bf,0),100),n.c[i.a.d]),n.c[le.a.d])),ae.j==cr&&V9t((hh(),ae))){for(J=v(Zi(R,x),21).Kc();J.Ob();)if(q=v(J.Pb(),60),q.d.c<i.d.c){if(re=n.c[q.a.d],de=n.c[i.a.d],re==de)continue;C0(m0(g0(b0(p0(new Bf,1),100),re),de))}}if(Se.j==gr&&Y9t((hh(),Se))){for(J=v(Zi(R,x),21).Kc();J.Ob();)if(q=v(J.Pb(),60),q.d.c>i.d.c){if(re=n.c[i.a.d],de=n.c[q.a.d],re==de)continue;C0(m0(g0(b0(p0(new Bf,1),100),re),de))}}}}}function yRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;if(J=v(v(Zi(n.r,i),21),87),i==(Bt(),gr)||i==cr){sKt(n,i);return}for(y=i==or?(GE(),gq):(GE(),mq),je=i==or?(ju(),g1):(ju(),I0),l=v(yl(n.b,i),127),d=l.i,g=d.c+YT(Te(xe(ao,1),_l,28,15,[l.n.b,n.C.b,n.k])),Se=d.c+d.b-YT(Te(xe(ao,1),_l,28,15,[l.n.c,n.C.c,n.k])),x=cRe(TIe(y),n.t),Me=i==or?Ss:ka,q=J.Kc();q.Ob();)O=v(q.Pb(),117),!(!O.c||O.c.d.c.length<=0)&&(de=O.b.Mf(),le=O.e,re=O.c,ae=re.i,ae.b=(R=re.n,re.e.a+R.b+R.c),ae.a=(T=re.n,re.e.b+T.d+T.a),az(je,TBe),re.f=je,l1(re,(Th(),R0)),ae.c=le.a-(ae.b-de.a)/2,yt=u.Math.min(g,le.a),xt=u.Math.max(Se,le.a+de.a),ae.c<yt?ae.c=yt:ae.c+ae.b>xt&&(ae.c=xt-ae.b),Lt(x.d,new wde(ae,mLe(x,ae))),Me=i==or?u.Math.max(Me,le.b+O.b.Mf().b):u.Math.min(Me,le.b));for(Me+=i==or?n.t:-n.t,Ue=MLe((x.e=Me,x)),Ue>0&&(v(yl(n.b,i),127).a.b=Ue),D=J.Kc();D.Ob();)O=v(D.Pb(),117),!(!O.c||O.c.d.c.length<=0)&&(ae=O.c.i,ae.c-=O.e.a,ae.d-=O.e.b)}function vRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(i=new Br,R=new mr(n);R.e!=R.i.gc();){for(T=v(wr(R),27),l=new fs,Ni(Ube,T,l),re=new qs,g=v(Wl(new xn(null,new TE(new yr(_r(bG(T).a.Kc(),new S)))),R9t(re,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)])))),85),c$t(l,v(g.xc((Qn(),!0)),16),new Rt),d=v(Wl(Ki(v(g.xc(!1),15).Lc(),new Bb),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),x=d.Kc();x.Ob();)y=v(x.Pb(),74),J=cHt(y),J&&(O=v(Pl(ol(i.f,J)),21),O||(O=OYt(J),yu(i.f,J,O)),bo(l,O));for(g=v(Wl(new xn(null,new TE(new yr(_r(eb(T).a.Kc(),new S)))),R9t(re,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql])))),85),c$t(l,v(g.xc(!0),16),new Gt),d=v(Wl(Ki(v(g.xc(!1),15).Lc(),new Ds),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),q=d.Kc();q.Ob();)D=v(q.Pb(),74),J=uHt(D),J&&(O=v(Pl(ol(i.f,J)),21),O||(O=OYt(J),yu(i.f,J,O)),bo(l,O))}}function _Rr(n,i){spe();var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;if(R=Oc(n,0)<0,R&&(n=ty(n)),Oc(n,0)==0)switch(i){case 0:return"0";case 1:return xI;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 re=new Cv,i<0?re.a+="0E+":re.a+="0E",re.a+=i==Po?"2147483648":""+-i,re.a}D=18,q=st(Tf,rg,28,D+1,15,1),l=D,le=n;do O=le,le=oG(le,10),q[--l]=ti(zo(48,zf(O,Go(le,10))))&vs;while(Oc(le,0)!=0);if(g=zf(zf(zf(D,l),i),1),i==0)return R&&(q[--l]=45),Qp(q,l,D-l);if(i>0&&Oc(g,-6)>=0){if(Oc(g,0)>=0){for(y=l+ti(g),T=D-1;T>=y;T--)q[T+1]=q[T];return q[++y]=46,R&&(q[--l]=45),Qp(q,l,D-l+1)}for(x=2;nhe(x,zo(ty(g),1));x++)q[--l]=48;return q[--l]=46,q[--l]=48,R&&(q[--l]=45),Qp(q,l,D-l)}return ae=l+1,d=D,J=new sk,R&&(J.a+="-"),d-ae>=1?(C_(J,q[l]),J.a+=".",J.a+=Qp(q,l+1,D-l-1)):J.a+=Qp(q,l,D-l),J.a+="E",Oc(g,0)>0&&(J.a+="+"),J.a+=""+sD(g),J.a}function JE(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;if(de=new Ct(n.g,n.f),le=hMe(n),le.a=u.Math.max(le.a,i),le.b=u.Math.max(le.b,l),xt=le.a/de.a,D=le.b/de.b,je=le.a-de.a,R=le.b-de.b,d)for(x=Aa(n)?v(Et(Aa(n),(Ei(),gw)),88):v(Et(n,(Ei(),gw)),88),T=Ze(Et(n,(Ei(),UP)))===Ze((co(),su)),Me=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));Me.e!=Me.i.gc();)switch(Se=v(wr(Me),123),Ue=v(Et(Se,nC),64),Ue==(Bt(),lc)&&(Ue=kPe(Se,x),sa(Se,nC,Ue)),Ue.g){case 1:T||Au(Se,Se.i*xt);break;case 2:Au(Se,Se.i+je),T||ku(Se,Se.j*D);break;case 3:T||Au(Se,Se.i*xt),ku(Se,Se.j+R);break;case 4:T||ku(Se,Se.j*D)}if(DT(n,le.a,le.b),g)for(J=new mr((!n.n&&(n.n=new vt(wl,n,1,7)),n.n));J.e!=J.i.gc();)q=v(wr(J),135),re=q.i+q.g/2,ae=q.j+q.f/2,yt=re/de.a,O=ae/de.b,yt+O>=1&&(yt-O>0&&ae>=0?(Au(q,q.i+je),ku(q,q.j+R*O)):yt-O<0&&re>=0&&(Au(q,q.i+je*yt),ku(q,q.j+R)));return sa(n,(Ei(),mw),(ud(),y=v(n1(WP),9),new nf(y,v(v0(y,y.length),9),0))),new Ct(xt,D)}function fKt(n){dE(n,new H_(DK(cE(sE(lE(oE(new f_,bf),"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 uxt),bf))),It(n,bf,mee,zt(Tln)),It(n,bf,N4,zt(Cln)),It(n,bf,y5,zt(wln)),It(n,bf,l6,zt(Eln)),It(n,bf,o6,zt(xln)),It(n,bf,II,zt(_ln)),It(n,bf,TM,zt($Ye)),It(n,bf,NI,zt(Sln)),It(n,bf,gme,zt(Gve)),It(n,bf,pme,zt(qve)),It(n,bf,xee,zt(zYe)),It(n,bf,mme,zt(Hve)),It(n,bf,bme,zt(GYe)),It(n,bf,M$e,zt(qYe)),It(n,bf,D$e,zt(UYe)),It(n,bf,I$e,zt(Nne)),It(n,bf,N$e,zt(One)),It(n,bf,O$e,zt(Kq)),It(n,bf,L$e,zt(HYe)),It(n,bf,R$e,zt(FYe))}function PJ(n){var i,l,d,g,y,x,T,R,O,D,q;if(n==null)throw _e(new Gp(Ku));if(O=n,y=n.length,R=!1,y>0&&(i=(sr(0,n.length),n.charCodeAt(0)),(i==45||i==43)&&(n=(sr(1,n.length+1),n.substr(1)),--y,R=i==45)),y==0)throw _e(new Gp(nx+O+'"'));for(;n.length>0&&(sr(0,n.length),n.charCodeAt(0)==48);)n=(sr(1,n.length+1),n.substr(1)),--y;if(y>(Hjt(),Oen)[10])throw _e(new Gp(nx+O+'"'));for(g=0;g<y;g++)if(uGt((sr(g,n.length),n.charCodeAt(g)))==-1)throw _e(new Gp(nx+O+'"'));for(q=0,x=lze[10],D=ybe[10],T=ty(cze[10]),l=!0,d=y%x,d>0&&(q=-parseInt((mo(0,d,n.length),n.substr(0,d)),10),n=(sr(d,n.length+1),n.substr(d)),y-=d,l=!1);y>=x;){if(d=parseInt((mo(0,x,n.length),n.substr(0,x)),10),n=(sr(x,n.length+1),n.substr(x)),y-=x,l)l=!1;else{if(Oc(q,T)<0)throw _e(new Gp(nx+O+'"'));q=Go(q,D)}q=zf(q,d)}if(Oc(q,0)>0)throw _e(new Gp(nx+O+'"'));if(!R&&(q=ty(q),Oc(q,0)<0))throw _e(new Gp(nx+O+'"'));return q}function KPe(n){dpe();var i,l,d,g,y,x,T,R;if(n==null)return null;if(g=qp(n,Wu(37)),g<0)return n;for(R=new Ed((mo(0,g,n.length),n.substr(0,g))),i=st(bh,E5,28,4,15,1),T=0,d=0,x=n.length;g<x;g++)if(sr(g,n.length),n.charCodeAt(g)==37&&n.length>g+2&&o0e((sr(g+1,n.length),n.charCodeAt(g+1)),AKe,kKe)&&o0e((sr(g+2,n.length),n.charCodeAt(g+2)),AKe,kKe))if(l=zur((sr(g+1,n.length),n.charCodeAt(g+1)),(sr(g+2,n.length),n.charCodeAt(g+2))),g+=2,d>0?(l&192)==128?i[T++]=l<<24>>24:d=0:l>=128&&((l&224)==192?(i[T++]=l<<24>>24,d=2):(l&240)==224?(i[T++]=l<<24>>24,d=3):(l&248)==240&&(i[T++]=l<<24>>24,d=4)),d>0){if(T==d){switch(T){case 2:{C_(R,((i[0]&31)<<6|i[1]&63)&vs);break}case 3:{C_(R,((i[0]&15)<<12|(i[1]&63)<<6|i[2]&63)&vs);break}}T=0,d=0}}else{for(y=0;y<T;++y)C_(R,i[y]&vs);T=0,R.a+=String.fromCharCode(l)}else{for(y=0;y<T;++y)C_(R,i[y]&vs);T=0,C_(R,(sr(g,n.length),n.charCodeAt(g)))}return R.a}function pKt(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae;if(re=Aa(zl(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84))),ae=Aa(zl(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))),q=re==ae,T=new ho,i=v(Et(n,(SZ(),KWe)),75),i&&i.b>=2){if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i==0)l=(kv(),g=new dK,g),Yr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),l);else if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i>1)for(J=new gk((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));J.e!=J.i.gc();)XD(J);TG(i,v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166))}if(q)for(d=new mr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));d.e!=d.i.gc();)for(l=v(wr(d),166),O=new mr((!l.a&&(l.a=new gs(Ud,l,5)),l.a));O.e!=O.i.gc();)R=v(wr(O),377),T.a=u.Math.max(T.a,R.a),T.b=u.Math.max(T.b,R.b);for(x=new mr((!n.n&&(n.n=new vt(wl,n,1,7)),n.n));x.e!=x.i.gc();)y=v(wr(x),135),D=v(Et(y,GP),8),D&&ef(y,D.a,D.b),q&&(T.a=u.Math.max(T.a,y.i+y.g),T.b=u.Math.max(T.b,y.j+y.f));return T}function gKt(n,i,l,d,g){var y,x,T;if(mFt(n,i),x=i[0],y=Do(l.c,0),T=-1,Y9e(l))if(d>0){if(x+d>n.length)return!1;T=hJ((mo(0,x+d,n.length),n.substr(0,x+d)),i)}else T=hJ(n,i);switch(y){case 71:return T=i5(n,x,Te(xe(Xt,1),kt,2,6,[eXt,tXt]),i),g.e=T,!0;case 77:return P5r(n,i,g,T,x);case 76:return B5r(n,i,g,T,x);case 69:return kSr(n,i,x,g);case 99:return RSr(n,i,x,g);case 97:return T=i5(n,x,Te(xe(Xt,1),kt,2,6,["AM","PM"]),i),g.b=T,!0;case 121:return F5r(n,i,x,T,l,g);case 100:return T<=0?!1:(g.c=T,!0);case 83:return T<0?!1:Hvr(T,x,i[0],g);case 104:T==12&&(T=0);case 75:case 72:return T<0?!1:(g.f=T,g.g=!1,!0);case 107:return T<0?!1:(g.f=T,g.g=!0,!0);case 109:return T<0?!1:(g.j=T,!0);case 115:return T<0?!1:(g.n=T,!0);case 90:if(x<n.length&&(sr(x,n.length),n.charCodeAt(x)==90))return++i[0],g.o=0,!0;case 122:case 118:return ZEr(n,x,i,g);default:return!1}}function wRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn;for(Ue=i.c.length,g=new c5(n.a,l,null,null),yn=st(ao,_l,28,Ue,15,1),le=st(ao,_l,28,Ue,15,1),ae=st(ao,_l,28,Ue,15,1),de=0,T=0;T<Ue;T++)le[T]=qi,ae[T]=Po;for(R=0;R<Ue;R++)for(d=($n(R,i.c.length),v(i.c[R],185)),yn[R]=F1e(d),yn[de]>yn[R]&&(de=R),q=new me(n.a.b);q.a<q.c.c.length;)for(D=v(pe(q),30),Me=new me(D.a);Me.a<Me.c.c.length;)Se=v(pe(Me),10),xt=We(d.p[Se.p])+We(d.d[Se.p]),le[R]=u.Math.min(le[R],xt),ae[R]=u.Math.max(ae[R],xt+Se.o.b);for(Mt=st(ao,_l,28,Ue,15,1),O=0;O<Ue;O++)($n(O,i.c.length),v(i.c[O],185)).o==(G1(),fw)?Mt[O]=le[de]-le[O]:Mt[O]=ae[de]-ae[O];for(y=st(ao,_l,28,Ue,15,1),re=new me(n.a.b);re.a<re.c.c.length;)for(J=v(pe(re),30),yt=new me(J.a);yt.a<yt.c.c.length;){for(je=v(pe(yt),10),x=0;x<Ue;x++)y[x]=We(($n(x,i.c.length),v(i.c[x],185)).p[je.p])+We(($n(x,i.c.length),v(i.c[x],185)).d[je.p])+Mt[x];Vkt(y,YFt(W.prototype.Me,W,[])),g.p[je.p]=(y[1]+y[2])/2,g.d[je.p]=0}return g}function ERr(n,i,l){var d,g,y,x,T;switch(d=i.i,y=n.i.o,g=n.i.d,T=n.n,x=ac(Te(xe(Vs,1),kt,8,0,[T,n.a])),n.j.g){case 1:Yp(i,(ju(),I0)),d.d=-g.d-l-d.a,v(v(Yt(i.d,0),187).of((At(),E6)),291)==(Id(),im)?(l1(i,(Th(),R0)),d.c=x.a-We(at(oe(n,M5)))-l-d.b):(l1(i,(Th(),dg)),d.c=x.a+We(at(oe(n,M5)))+l);break;case 2:l1(i,(Th(),dg)),d.c=y.a+g.c+l,v(v(Yt(i.d,0),187).of((At(),E6)),291)==(Id(),im)?(Yp(i,(ju(),I0)),d.d=x.b-We(at(oe(n,M5)))-l-d.a):(Yp(i,(ju(),g1)),d.d=x.b+We(at(oe(n,M5)))+l);break;case 3:Yp(i,(ju(),g1)),d.d=y.b+g.a+l,v(v(Yt(i.d,0),187).of((At(),E6)),291)==(Id(),im)?(l1(i,(Th(),R0)),d.c=x.a-We(at(oe(n,M5)))-l-d.b):(l1(i,(Th(),dg)),d.c=x.a+We(at(oe(n,M5)))+l);break;case 4:l1(i,(Th(),R0)),d.c=-g.b-l-d.b,v(v(Yt(i.d,0),187).of((At(),E6)),291)==(Id(),im)?(Yp(i,(ju(),I0)),d.d=x.b-We(at(oe(n,M5)))-l-d.a):(Yp(i,(ju(),g1)),d.d=x.b+We(at(oe(n,M5)))+l)}}function xRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le;for(l.Ug(PQt,1),!i.a&&(i.a=new vt(Pi,i,10,11)),d=We(at(Et(i,(Z1(),Pne)))),D=We(at(Et(i,OP))),J=v(Et(i,NP),107),re=new n8e(d,D),y=MKt(re,i,J),GFt(i,re),T=v(Et(i,oje),17).a;T>1;){if(g=RTr(i),q=y.g,ae=v(Et(i,NP),107),le=We(at(Et(i,Pne))),(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i>1&&We(at(Et(i,(Vg(),Zve))))!=ka&&(y.c+(ae.b+ae.c))/(y.b+(ae.d+ae.a))<le?sa(g,(Vg(),r3),We(at(Et(i,r3)))+We(at(Et(i,Zve)))):(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i>1&&We(at(Et(i,(Vg(),Qve))))!=ka&&(y.c+(ae.b+ae.c))/(y.b+(ae.d+ae.a))>le&&sa(g,(Vg(),r3),u.Math.max(We(at(Et(i,IP))),We(at(Et(g,r3)))-We(at(Et(i,Qve))))),re=new n8e(d,D),R=MKt(re,g,J),O=R.g,O>=q&&O==O){for(x=0;x<(!g.a&&(g.a=new vt(Pi,g,10,11)),g.a).i;x++)lVt(n,v(ze((!g.a&&(g.a=new vt(Pi,g,10,11)),g.a),x),27),v(ze((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),x),27));GFt(i,re),Lfr(y,R.c),Ofr(y,R.b)}--T}sa(i,(Vg(),bN),y.b),sa(i,C6,y.c),l.Vg()}function SRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(i.Ug("Interactive node layering",1),l=new Ot,J=new me(n.a);J.a<J.c.c.length;){for(D=v(pe(J),10),R=D.n.a,T=R+D.o.a,T=u.Math.max(R+1,T),Me=new go(l,0),d=null;Me.b<Me.d.gc();)if(de=(Tr(Me.b<Me.d.gc()),v(Me.d.Xb(Me.c=Me.b++),578)),de.c>=T){Tr(Me.b>0),Me.a.Xb(Me.c=--Me.b);break}else de.a>R&&(d?(xs(d.b,de.b),d.a=u.Math.max(d.a,de.a),ld(Me)):(Lt(de.b,D),de.c=u.Math.min(de.c,R),de.a=u.Math.max(de.a,T),d=de));d||(d=new u6t,d.c=R,d.a=T,KS(Me,d),Lt(d.b,D))}for(x=n.b,O=0,Se=new me(l);Se.a<Se.c.c.length;)for(de=v(pe(Se),578),g=new Xc(n),g.p=O++,jn(x.c,g),re=new me(de.b);re.a<re.c.c.length;)D=v(pe(re),10),po(D,g),D.p=0;for(q=new me(n.a);q.a<q.c.c.length;)if(D=v(pe(q),10),D.p==0)for(le=ijt(D,n);le.a.gc()!=0;)ae=v(le.a.ec().Kc().Pb(),10),le.a.Bc(ae)!=null,bo(le,ijt(ae,n));for(y=new go(x,0);y.b<y.d.gc();)(Tr(y.b<y.d.gc()),v(y.d.Xb(y.c=y.b++),30)).a.c.length==0&&ld(y);n.a.c.length=0,i.Vg()}function TRr(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(re=0,Kn=0,R=new me(n);R.a<R.c.c.length;)T=v(pe(R),27),JWt(T),re=u.Math.max(re,T.g),Kn+=T.g*T.f;for(ae=Kn/n.c.length,mn=lwr(n,ae),Kn+=n.c.length*mn,re=u.Math.max(re,u.Math.sqrt(Kn*x))+l.b,Ui=l.b,Fa=l.d,J=0,D=l.b+l.c,yn=new Ea,pi(yn,Nt(0)),xt=new Ea,O=new go(n,0);O.b<O.d.gc();)T=(Tr(O.b<O.d.gc()),v(O.d.Xb(O.c=O.b++),27)),Sr=T.g,q=T.f,Ui+Sr>re&&(y&&(jo(xt,J),jo(yn,Nt(O.b-1))),Ui=l.b,Fa+=J+i,J=0,D=u.Math.max(D,l.b+l.c+Sr)),Au(T,Ui),ku(T,Fa),D=u.Math.max(D,Ui+Sr+l.c),J=u.Math.max(J,q),Ui+=Sr+i;if(D=u.Math.max(D,d),Xn=Fa+J+l.a,Xn<g&&(J+=g-Xn,Xn=g),y)for(Ui=l.b,O=new go(n,0),jo(yn,Nt(n.c.length)),Mt=Ur(yn,0),Se=v(Fr(Mt),17).a,jo(xt,J),yt=Ur(xt,0),je=0;O.b<O.d.gc();)O.b==Se&&(Ui=l.b,je=We(at(Fr(yt))),Se=v(Fr(Mt),17).a),T=(Tr(O.b<O.d.gc()),v(O.d.Xb(O.c=O.b++),27)),Me=T.f,BE(T,je),le=je,O.b==Se&&(de=D-Ui-l.c,Ue=T.g,FE(T,de),fMe(T,new Ct(de,le),new Ct(Ue,Me))),Ui+=T.g+i;return new Ct(D,Xn)}function CRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;for(i.Ug("Compound graph postprocessor",1),l=Vt(Ht(oe(n,(qt(),eve)))),T=v(oe(n,(At(),Hqe)),229),D=new fs,Se=T.ec().Kc();Se.Ob();){for(de=v(Se.Pb(),18),x=new Eh(T.cc(de)),Fn(),us(x,new E7e(n)),yt=Pmr(($n(0,x.c.length),v(x.c[0],249))),Mt=z$t(v(Yt(x,x.c.length-1),249)),Ue=yt.i,D8(Mt.i,Ue)?Me=Ue.e:Me=So(Ue),q=U2r(de,x),xd(de.a),J=null,y=new me(x);y.a<y.c.c.length;)g=v(pe(y),249),le=new ho,oMe(le,g.a,Me),re=g.b,d=new ah,y0e(d,0,re.a),u4(d,le),je=new Wo(q1(re.c)),xt=new Wo(q1(re.d)),Hi(je,le),Hi(xt,le),J&&(d.b==0?ae=xt:ae=(Tr(d.b!=0),v(d.a.a.c,8)),yn=u.Math.abs(J.a-ae.a)>sg,mn=u.Math.abs(J.b-ae.b)>sg,(!l&&yn&&mn||l&&(yn||mn))&&pi(de.a,je)),bo(de.a,d),d.b==0?J=je:J=(Tr(d.b!=0),v(d.c.b.c,8)),ubr(re,q,le),z$t(g)==Mt&&(So(Mt.i)!=g.a&&(le=new ho,oMe(le,So(Mt.i),Me)),_t(de,$ye,le)),Yxr(re,de,Me),D.a.zc(re,D);Uo(de,yt),lo(de,Mt)}for(O=D.a.ec().Kc();O.Ob();)R=v(O.Pb(),18),Uo(R,null),lo(R,null);i.Vg()}function ARr(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(g=v(oe(n,(pc(),Ax)),88),D=g==(ys(),Ol)||g==ql?lp:ql,l=v(Wl(Ki(new xn(null,new Nn(n.b,16)),new mEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),R=v(Wl(Bl(l.Oc(),new NAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),R.Gc(v(Wl(Bl(l.Oc(),new OAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),16)),R.jd(new LAt(D)),J=new Vb(new DAt(g)),d=new Br,T=R.Kc();T.Ob();)x=v(T.Pb(),240),O=v(x.a,40),Vt(Ht(x.c))?(J.a.zc(O,(Qn(),a2))==null,new MR(J.a.Zc(O,!1)).a.gc()>0&&Ni(d,O,v(new MR(J.a.Zc(O,!1)).a.Vc(),40)),new MR(J.a.ad(O,!0)).a.gc()>1&&Ni(d,Vzt(J,O),O)):(new MR(J.a.Zc(O,!1)).a.gc()>0&&(y=v(new MR(J.a.Zc(O,!1)).a.Vc(),40),Ze(y)===Ze(Pl(ol(d.f,O)))&&v(oe(O,(fa(),xve)),15).Fc(y)),new MR(J.a.ad(O,!0)).a.gc()>1&&(q=Vzt(J,O),Ze(Pl(ol(d.f,q)))===Ze(O)&&v(oe(q,(fa(),xve)),15).Fc(O)),J.a.Bc(O)!=null)}function mKt(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(n.gc()==1)return v(n.Xb(0),235);if(n.gc()<=0)return new PQ;for(g=n.Kc();g.Ob();){for(l=v(g.Pb(),235),ae=0,D=qi,q=qi,R=Po,O=Po,re=new me(l.e);re.a<re.c.c.length;)J=v(pe(re),153),ae+=v(oe(J,(A0(),g6)),17).a,D=u.Math.min(D,J.d.a-J.e.a/2),q=u.Math.min(q,J.d.b-J.e.b/2),R=u.Math.max(R,J.d.a+J.e.a/2),O=u.Math.max(O,J.d.b+J.e.b/2);_t(l,(A0(),g6),Nt(ae)),_t(l,(Uv(),JM),new Ct(D,q)),_t(l,xq,new Ct(R,O))}for(Fn(),n.jd(new eE),le=new PQ,Ul(le,v(n.Xb(0),96)),T=0,Me=0,y=n.Kc();y.Ob();)l=v(y.Pb(),235),de=$s(Eo(v(oe(l,(Uv(),xq)),8)),v(oe(l,JM),8)),T=u.Math.max(T,de.a),Me+=de.a*de.b;for(T=u.Math.max(T,u.Math.sqrt(Me)*We(at(oe(le,(A0(),lnn))))),Se=We(at(oe(le,hte))),Ue=0,je=0,x=0,i=Se,d=n.Kc();d.Ob();)l=v(d.Pb(),235),de=$s(Eo(v(oe(l,(Uv(),xq)),8)),v(oe(l,JM),8)),Ue+de.a>T&&(Ue=0,je+=x+Se,x=0),JCr(le,l,Ue,je),i=u.Math.max(i,Ue+de.a),x=u.Math.max(x,de.b),Ue+=de.a+Se;return le}function kRr(n){APe();var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(n==null||(y=jQ(n),ae=nvr(y),ae%4!=0))return null;if(le=ae/4|0,le==0)return st(bh,E5,28,0,15,1);for(q=null,i=0,l=0,d=0,g=0,x=0,T=0,R=0,O=0,re=0,J=0,D=0,q=st(bh,E5,28,le*3,15,1);re<le-1;re++){if(!pU(x=y[D++])||!pU(T=y[D++])||!pU(R=y[D++])||!pU(O=y[D++]))return null;i=fp[x],l=fp[T],d=fp[R],g=fp[O],q[J++]=(i<<2|l>>4)<<24>>24,q[J++]=((l&15)<<4|d>>2&15)<<24>>24,q[J++]=(d<<6|g)<<24>>24}return!pU(x=y[D++])||!pU(T=y[D++])?null:(i=fp[x],l=fp[T],R=y[D++],O=y[D++],fp[R]==-1||fp[O]==-1?R==61&&O==61?l&15?null:(de=st(bh,E5,28,re*3+1,15,1),Gc(q,0,de,0,re*3),de[J]=(i<<2|l>>4)<<24>>24,de):R!=61&&O==61?(d=fp[R],d&3?null:(de=st(bh,E5,28,re*3+2,15,1),Gc(q,0,de,0,re*3),de[J++]=(i<<2|l>>4)<<24>>24,de[J]=((l&15)<<4|d>>2&15)<<24>>24,de)):null:(d=fp[R],g=fp[O],q[J++]=(i<<2|l>>4)<<24>>24,q[J++]=((l&15)<<4|d>>2&15)<<24>>24,q[J++]=(d<<6|g)<<24>>24,q))}function RRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;for(i.Ug(cQt,1),ae=v(oe(n,(qt(),lb)),223),g=new me(n.b);g.a<g.c.c.length;)for(d=v(pe(g),30),O=dz(d.a),x=O,T=0,R=x.length;T<R;++T)if(y=x[T],y.k==(lr(),iu)){if(ae==(Xm(),O6))for(q=new me(y.j);q.a<q.c.c.length;)D=v(pe(q),12),D.e.c.length==0||_2r(D),D.g.c.length==0||w2r(D);else if($e(oe(y,(At(),Ji)),18))de=v(oe(y,Ji),18),Se=v(hy(y,(Bt(),cr)).Kc().Pb(),12),Me=v(hy(y,gr).Kc().Pb(),12),Ue=v(oe(Se,Ji),12),je=v(oe(Me,Ji),12),Uo(de,je),lo(de,Ue),yt=new Wo(Me.i.n),yt.a=ac(Te(xe(Vs,1),kt,8,0,[je.i.n,je.n,je.a])).a,pi(de.a,yt),yt=new Wo(Se.i.n),yt.a=ac(Te(xe(Vs,1),kt,8,0,[Ue.i.n,Ue.n,Ue.a])).a,pi(de.a,yt);else{if(y.j.c.length>=2){for(le=!0,J=new me(y.j),l=v(pe(J),12),re=null;J.a<J.c.c.length;)if(re=l,l=v(pe(J),12),!Yi(oe(re,Ji),oe(l,Ji))){le=!1;break}}else le=!1;for(q=new me(y.j);q.a<q.c.c.length;)D=v(pe(q),12),D.e.c.length==0||a5r(D,le),D.g.c.length==0||s5r(D,le)}po(y,null)}i.Vg()}function IRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;for(T=new me(n.a.b);T.a<T.c.c.length;)for(y=v(pe(T),30),Ue=new me(y.a);Ue.a<Ue.c.c.length;)Me=v(pe(Ue),10),i.g[Me.p]=Me,i.a[Me.p]=Me,i.d[Me.p]=0;for(R=n.a.b,i.c==(Kp(),Ey)&&(R=ff(R)),x=R.Kc();x.Ob();)for(y=v(x.Pb(),30),re=-1,J=y.a,i.o==(G1(),sp)&&(re=qi,J=ff(J)),yt=J.Kc();yt.Ob();)if(je=v(yt.Pb(),10),q=null,i.c==Ey?q=v(Yt(n.b.f,je.p),15):q=v(Yt(n.b.b,je.p),15),q.gc()>0)if(d=q.gc(),O=Ps(u.Math.floor((d+1)/2))-1,g=Ps(u.Math.ceil((d+1)/2))-1,i.o==sp)for(D=g;D>=O;D--)i.a[je.p]==je&&(le=v(q.Xb(D),42),ae=v(le.a,10),!r1(l,le.b)&&re>n.b.e[ae.p]&&(i.a[ae.p]=je,i.g[je.p]=i.g[ae.p],i.a[je.p]=i.g[je.p],i.f[i.g[je.p].p]=(Qn(),!!(Vt(i.f[i.g[je.p].p])&je.k==(lr(),Ws))),re=n.b.e[ae.p]));else for(D=O;D<=g;D++)i.a[je.p]==je&&(Se=v(q.Xb(D),42),de=v(Se.a,10),!r1(l,Se.b)&&re<n.b.e[de.p]&&(i.a[de.p]=je,i.g[je.p]=i.g[de.p],i.a[je.p]=i.g[je.p],i.f[i.g[je.p].p]=(Qn(),!!(Vt(i.f[i.g[je.p].p])&je.k==(lr(),Ws))),re=n.b.e[de.p]))}function bKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn;return Ue=n.c[($n(0,i.c.length),v(i.c[0],18)).p],Mt=n.c[($n(1,i.c.length),v(i.c[1],18)).p],Ue.a.e.e-Ue.a.a-(Ue.b.e.e-Ue.b.a)==0&&Mt.a.e.e-Mt.a.a-(Mt.b.e.e-Mt.b.a)==0||(Se=Ue.b.e.f,!$e(Se,10))?!1:(de=v(Se,10),yt=n.i[de.p],xt=de.c?$l(de.c.a,de,0):-1,y=ka,xt>0&&(g=v(Yt(de.c.a,xt-1),10),x=n.i[g.p],yn=u.Math.ceil(PT(n.n,g,de)),y=yt.a.e-de.d.d-(x.a.e+g.o.b+g.d.a)-yn),O=ka,xt<de.c.a.c.length-1&&(R=v(Yt(de.c.a,xt+1),10),D=n.i[R.p],yn=u.Math.ceil(PT(n.n,R,de)),O=D.a.e-R.d.d-(yt.a.e+de.o.b+de.d.a)-yn),l&&($1(),x0(cg),u.Math.abs(y-O)<=cg||y==O||isNaN(y)&&isNaN(O))?!0:(d=Nde(Ue.a),T=-Nde(Ue.b),q=-Nde(Mt.a),Me=Nde(Mt.b),le=Ue.a.e.e-Ue.a.a-(Ue.b.e.e-Ue.b.a)>0&&Mt.a.e.e-Mt.a.a-(Mt.b.e.e-Mt.b.a)<0,ae=Ue.a.e.e-Ue.a.a-(Ue.b.e.e-Ue.b.a)<0&&Mt.a.e.e-Mt.a.a-(Mt.b.e.e-Mt.b.a)>0,re=Ue.a.e.e+Ue.b.a<Mt.b.e.e+Mt.a.a,J=Ue.a.e.e+Ue.b.a>Mt.b.e.e+Mt.a.a,je=0,!le&&!ae&&(J?y+q>0?je=q:O-d>0&&(je=d):re&&(y+T>0?je=T:O-Me>0&&(je=Me))),yt.a.e+=je,yt.b&&(yt.d.e+=je),!1))}function yKt(n,i,l){var d,g,y,x,T,R,O,D,q,J;if(d=new rf(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),g=new fk,n.c)for(x=new me(i.Rf());x.a<x.c.c.length;)y=v(pe(x),187),g.c=y.Lf().a+i.Lf().a,g.d=y.Lf().b+i.Lf().b,g.b=y.Mf().a,g.a=y.Mf().b,QD(d,g);for(O=new me(i.Xf());O.a<O.c.c.length;){if(R=v(pe(O),852),D=R.Lf().a+i.Lf().a,q=R.Lf().b+i.Lf().b,n.e&&(g.c=D,g.d=q,g.b=R.Mf().a,g.a=R.Mf().b,QD(d,g)),n.d)for(x=new me(R.Rf());x.a<x.c.c.length;)y=v(pe(x),187),g.c=y.Lf().a+D,g.d=y.Lf().b+q,g.b=y.Mf().a,g.a=y.Mf().b,QD(d,g);if(n.b){if(J=new Ct(-l,-l),v(i.of((Ei(),a3)),181).Hc((Ah(),v2)))for(x=new me(R.Rf());x.a<x.c.c.length;)y=v(pe(x),187),J.a+=y.Mf().a+l,J.b+=y.Mf().b+l;J.a=u.Math.max(J.a,0),J.b=u.Math.max(J.b,0),$jt(d,R.Wf(),R.Uf(),i,R,J,l)}}n.b&&$jt(d,i.Wf(),i.Uf(),i,null,null,l),T=new hde(i.Vf()),T.d=u.Math.max(0,i.Lf().b-d.d),T.a=u.Math.max(0,d.d+d.a-(i.Lf().b+i.Mf().b)),T.b=u.Math.max(0,i.Lf().a-d.c),T.c=u.Math.max(0,d.c+d.b-(i.Lf().a+i.Mf().a)),i.Zf(T)}function NRr(){var n=["\\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 n[34]='\\"',n[92]="\\\\",n[173]="\\u00ad",n[1536]="\\u0600",n[1537]="\\u0601",n[1538]="\\u0602",n[1539]="\\u0603",n[1757]="\\u06dd",n[1807]="\\u070f",n[6068]="\\u17b4",n[6069]="\\u17b5",n[8203]="\\u200b",n[8204]="\\u200c",n[8205]="\\u200d",n[8206]="\\u200e",n[8207]="\\u200f",n[8232]="\\u2028",n[8233]="\\u2029",n[8234]="\\u202a",n[8235]="\\u202b",n[8236]="\\u202c",n[8237]="\\u202d",n[8238]="\\u202e",n[8288]="\\u2060",n[8289]="\\u2061",n[8290]="\\u2062",n[8291]="\\u2063",n[8292]="\\u2064",n[8298]="\\u206a",n[8299]="\\u206b",n[8300]="\\u206c",n[8301]="\\u206d",n[8302]="\\u206e",n[8303]="\\u206f",n[65279]="\\ufeff",n[65529]="\\ufff9",n[65530]="\\ufffa",n[65531]="\\ufffb",n}function vKt(n){dE(n,new H_(hRe(DK(cE(sE(lE(oE(new f_,Nu),"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 e1),Nu),va((oI(),cre),Te(xe(ure,1),wt,245,0,[ore]))))),It(n,Nu,YG,Nt(1)),It(n,Nu,N4,80),It(n,Nu,xge,5),It(n,Nu,s6,kI),It(n,Nu,XJ,Nt(1)),It(n,Nu,xM,(Qn(),!0)),It(n,Nu,rx,oGe),It(n,Nu,SM,zt(iGe)),It(n,Nu,Sge,zt(lGe)),It(n,Nu,QJ,!1),It(n,Nu,TM,zt(sGe)),It(n,Nu,RI,zt(dnn)),It(n,Nu,o6,zt(fnn)),It(n,Nu,y5,zt(hnn)),It(n,Nu,II,zt(unn)),It(n,Nu,NI,zt(gnn)),It(n,Nu,KJ,zt(aGe)),It(n,Nu,wge,zt(qbe)),It(n,Nu,BBe,zt(ute)),It(n,Nu,Ege,zt(Gbe)),It(n,Nu,FBe,zt(cGe)),It(n,Nu,jG,zt(wnn)),It(n,Nu,WG,zt(Enn)),It(n,Nu,KG,zt(_nn)),It(n,Nu,XG,zt(vnn)),It(n,Nu,ix,uGe)}function Qv(n,i){zi();var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(SL(kN)==0){for(q=st(aIr,kt,122,Bhn.length,0,1),x=0;x<q.length;x++)q[x]=new Td(4);for(d=new EL,y=0;y<JKe.length;y++){if(D=new Td(4),y<84?(T=y*2,re=(sr(T,sbe.length),sbe.charCodeAt(T)),J=(sr(T+1,sbe.length),sbe.charCodeAt(T+1)),Jc(D,re,J)):(T=(y-84)*2,Jc(D,eXe[T],eXe[T+1])),R=JKe[y],An(R,"Specials")&&Jc(D,65520,65533),An(R,hen)&&(Jc(D,983040,1048573),Jc(D,1048576,1114109)),Cl(kN,R,D),Cl(aB,R,S4(D)),O=d.a.length,0<O?d.a=af(d.a,0,0):0>O&&(d.a+=YIt(st(Tf,rg,28,-O,15,1))),d.a+="Is",qp(R,Wu(32))>=0)for(g=0;g<R.length;g++)sr(g,R.length),R.charCodeAt(g)!=32&&c8(d,(sr(g,R.length),R.charCodeAt(g)));else d.a+=""+R;GLe(d.a,R,!0)}GLe(abe,"Cn",!1),GLe(VUe,"Cn",!0),l=new Td(4),Jc(l,0,GI),Cl(kN,"ALL",l),Cl(aB,"ALL",S4(l)),!p3&&(p3=new Br),Cl(p3,abe,abe),!p3&&(p3=new Br),Cl(p3,VUe,VUe),!p3&&(p3=new Br),Cl(p3,"ALL","ALL")}return ae=v(Qc(i?kN:aB,n),138),ae}function _Kt(n){dE(n,new H_(hRe(DK(cE(sE(lE(oE(new f_,Ou),"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 OEt),OQt),bn((oI(),U2e))))),It(n,Ou,rx,_Ye),It(n,Ou,N4,20),It(n,Ou,rme,3),It(n,Ou,s6,kI),It(n,Ou,YG,Nt(1)),It(n,Ou,xM,(Qn(),!0)),It(n,Ou,nq,zt(gYe)),It(n,Ou,ime,mYe),It(n,Ou,SM,zt(Fon)),It(n,Ou,bee,zt($on)),It(n,Ou,y5,zt(zon)),It(n,Ou,RI,zt(Gon)),It(n,Ou,l6,zt(qon)),It(n,Ou,o6,zt(Hon)),It(n,Ou,II,zt(Uon)),It(n,Ou,TM,zt(yYe)),It(n,Ou,NI,zt(Von)),It(n,Ou,w$e,zt(SYe)),It(n,Ou,x$e,zt(wYe)),It(n,Ou,jG,zt(Kon)),It(n,Ou,WG,zt(Xon)),It(n,Ou,KG,zt(Won)),It(n,Ou,XG,zt(jon)),It(n,Ou,ix,xYe),It(n,Ou,_$e,zt(V5)),It(n,Ou,E$e,zt(Ive)),It(n,Ou,v$e,zt(gg)),It(n,Ou,b$e,zt(pYe)),It(n,Ou,y$e,zt(bYe))}function wKt(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(O=v(v(Zi(n.r,i),21),87),x=uxr(n,i),l=n.u.Hc((Ah(),YP)),R=O.Kc();R.Ob();)if(T=v(R.Pb(),117),!(!T.c||T.c.d.c.length<=0)){switch(J=T.b.Mf(),D=T.c,q=D.i,q.b=(y=D.n,D.e.a+y.b+y.c),q.a=(g=D.n,D.e.b+g.d+g.a),i.g){case 1:T.a?(q.c=(J.a-q.b)/2,l1(D,(Th(),s2))):x||l?(q.c=-q.b-n.s,l1(D,(Th(),R0))):(q.c=J.a+n.s,l1(D,(Th(),dg))),q.d=-q.a-n.t,Yp(D,(ju(),I0));break;case 3:T.a?(q.c=(J.a-q.b)/2,l1(D,(Th(),s2))):x||l?(q.c=-q.b-n.s,l1(D,(Th(),R0))):(q.c=J.a+n.s,l1(D,(Th(),dg))),q.d=J.b+n.t,Yp(D,(ju(),g1));break;case 2:T.a?(d=n.v?q.a:v(Yt(D.d,0),187).Mf().b,q.d=(J.b-d)/2,Yp(D,(ju(),o2))):x||l?(q.d=-q.a-n.t,Yp(D,(ju(),I0))):(q.d=J.b+n.t,Yp(D,(ju(),g1))),q.c=J.a+n.s,l1(D,(Th(),dg));break;case 4:T.a?(d=n.v?q.a:v(Yt(D.d,0),187).Mf().b,q.d=(J.b-d)/2,Yp(D,(ju(),o2))):x||l?(q.d=-q.a-n.t,Yp(D,(ju(),I0))):(q.d=J.b+n.t,Yp(D,(ju(),g1))),q.c=-q.b-n.s,l1(D,(Th(),R0))}x=!1}}function ORr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;if(J=!1,q=!1,OT(v(oe(d,(qt(),Qa)),101))){x=!1,T=!1;e:for(ae=new me(d.j);ae.a<ae.c.c.length;)for(re=v(pe(ae),12),de=$g(Ad(Te(xe(Md,1),Yn,20,0,[new FR(re),new QA(re)])));zr(de);)if(le=v(Rr(de),12),!Vt(Ht(oe(le.i,uP)))){if(re.j==(Bt(),or)){x=!0;break e}if(re.j==Mr){T=!0;break e}}J=T&&!x,q=x&&!T}if(!J&&!q&&d.b.c.length!=0){for(D=0,O=new me(d.b);O.a<O.c.c.length;)R=v(pe(O),72),D+=R.n.b+R.o.b/2;D/=d.b.c.length,Me=D>=d.o.b/2}else Me=!q;Me?(Se=v(oe(d,(At(),S6)),15),Se?J?y=Se:(g=v(oe(d,v6),15),g?Se.gc()<=g.gc()?y=Se:y=g:(y=new Ot,_t(d,v6,y))):(y=new Ot,_t(d,S6,y))):(g=v(oe(d,(At(),v6)),15),g?q?y=g:(Se=v(oe(d,S6),15),Se?g.gc()<=Se.gc()?y=g:y=Se:(y=new Ot,_t(d,S6,y))):(y=new Ot,_t(d,v6,y))),y.Fc(n),_t(n,(At(),Yte),l),i.d==l?(lo(i,null),l.e.c.length+l.g.c.length==0&&rc(l,null),jbr(l)):(Uo(i,null),l.e.c.length+l.g.c.length==0&&rc(l,null)),xd(i.a)}function LRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(l.Ug("MinWidth layering",1),re=i.b,Mt=i.a,Fa=v(oe(i,(qt(),YHe)),17).a,T=v(oe(i,jHe),17).a,n.b=We(at(oe(i,O0))),n.d=ka,je=new me(Mt);je.a<je.c.c.length;)Me=v(pe(je),10),Me.k==(lr(),is)&&(Kn=Me.o.b,n.d=u.Math.min(n.d,Kn));for(n.d=u.Math.max(1,n.d),yn=Mt.c.length,n.c=st(Wr,vi,28,yn,15,1),n.f=st(Wr,vi,28,yn,15,1),n.e=st(ao,_l,28,yn,15,1),O=0,n.a=0,yt=new me(Mt);yt.a<yt.c.c.length;)Me=v(pe(yt),10),Me.p=O++,n.c[Me.p]=nzt(Hs(Me)),n.f[Me.p]=nzt(os(Me)),n.e[Me.p]=Me.o.b/n.d,n.a+=n.e[Me.p];for(n.b/=n.d,n.a/=yn,xt=x4r(Mt),us(Mt,ONe(new KCt(n))),le=ka,ae=qi,x=null,Ui=Fa,Sr=Fa,y=T,g=T,Fa<0&&(Ui=v(HVe.a.Id(),17).a,Sr=v(HVe.b.Id(),17).a),T<0&&(y=v(qVe.a.Id(),17).a,g=v(qVe.b.Id(),17).a),Xn=Ui;Xn<=Sr;Xn++)for(d=y;d<=g;d++)mn=fkr(n,Xn,d,Mt,xt),Se=We(at(mn.a)),J=v(mn.b,15),de=J.gc(),(Se<le||Se==le&&de<ae)&&(le=Se,ae=de,x=J);for(q=x.Kc();q.Ob();){for(D=v(q.Pb(),15),R=new Xc(i),Ue=D.Kc();Ue.Ob();)Me=v(Ue.Pb(),10),po(Me,R);jn(re.c,R)}dG(re),Mt.c.length=0,l.Vg()}function DRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;if(l.Ug("Spline edge routing",1),i.b.c.length==0){i.f.a=0,l.Vg();return}Me=We(at(oe(i,(qt(),z5)))),T=We(at(oe(i,dw))),x=We(at(oe(i,$5))),Se=v(oe(i,jye),350),yn=Se==(H8(),vP),Mt=We(at(oe(i,FHe))),n.d=i,n.j.c.length=0,n.a.c.length=0,xh(n.k),R=v(Yt(i.b,0),30),D=yX(R.a,(wJ(),Hq)),ae=v(Yt(i.b,i.b.c.length-1),30),q=yX(ae.a,Hq),le=new me(i.b),de=null,Sr=0;do{for(Ue=le.a<le.c.c.length?v(pe(le),30):null,pRr(n,de,Ue),zAr(n),mn=$ir(Bmr(fQ(Ki(new xn(null,new Nn(n.i,16)),new tEt),new nEt))),Xn=0,je=Sr,J=!de||D&&de==R,re=!Ue||q&&Ue==ae,mn>0?(O=0,de&&(O+=T),O+=(mn-1)*x,Ue&&(O+=T),yn&&Ue&&(O=u.Math.max(O,JTr(Ue,x,Me,Mt))),O<Me&&!J&&!re&&(Xn=(Me-O)/2,O=Me),je+=O):!J&&!re&&(je+=Me),Ue&&FPe(Ue,je),xt=new me(n.i);xt.a<xt.c.c.length;)yt=v(pe(xt),131),yt.a.c=Sr,yt.a.b=je-Sr,yt.F=Xn,yt.p=!de;xs(n.a,n.i),Sr=je,Ue&&(Sr+=Ue.c.a),de=Ue,J=re}while(Ue);for(g=new me(n.j);g.a<g.c.c.length;)d=v(pe(g),18),y=Cmr(n,d),_t(d,(At(),F5),y),Kn=h5r(n,d),_t(d,sw,Kn);i.f.a=Sr,n.d=null,l.Vg()}function MRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(n.b=i,n.a=v(oe(i,(qt(),UHe)),17).a,n.c=v(oe(i,GHe),17).a,n.c==0&&(n.c=qi),de=new go(i.b,0);de.b<de.d.gc();){for(le=(Tr(de.b<de.d.gc()),v(de.d.Xb(de.c=de.b++),30)),T=new Ot,D=-1,je=-1,Ue=new me(le.a);Ue.a<Ue.c.c.length;)Me=v(pe(Ue),10),Gm((jU(),new yr(_r(Qm(Me).a.Kc(),new S))))>=n.a&&(d=gkr(n,Me),D=u.Math.max(D,d.b),je=u.Math.max(je,d.d),Lt(T,new Ms(Me,d)));for(yn=new Ot,O=0;O<D;++O)EE(yn,0,(Tr(de.b>0),de.a.Xb(de.c=--de.b),mn=new Xc(n.b),KS(de,mn),Tr(de.b<de.d.gc()),de.d.Xb(de.c=de.b++),mn));for(x=new me(T);x.a<x.c.c.length;)if(g=v(pe(x),42),re=v(g.b,580).a,!!re)for(J=new me(re);J.a<J.c.c.length;)q=v(pe(J),10),pDe(n,q,pte,yn);for(l=new Ot,R=0;R<je;++R)Lt(l,(Kn=new Xc(n.b),KS(de,Kn),Kn));for(y=new me(T);y.a<y.c.c.length;)if(g=v(pe(y),42),Mt=v(g.b,580).c,!!Mt)for(xt=new me(Mt);xt.a<xt.c.c.length;)yt=v(pe(xt),10),pDe(n,yt,gte,l)}for(Se=new go(i.b,0);Se.b<Se.d.gc();)ae=(Tr(Se.b<Se.d.gc()),v(Se.d.Xb(Se.c=Se.b++),30)),ae.a.c.length==0&&ld(Se)}function EKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(le=n.i!=0,Ue=!1,Se=null,id(n.e)){if(D=i.gc(),D>0){for(J=D<100?null:new Av(D),O=new R9e(i),ae=O.g,Se=st(Wr,vi,28,D,15,1),d=0,je=new PE(D),g=0;g<n.i;++g){T=n.g[g],re=T;e:for(Me=0;Me<2;++Me){for(R=D;--R>=0;)if(re!=null?Yi(re,ae[R]):Ze(re)===Ze(ae[R])){Se.length<=d&&(de=Se,Se=st(Wr,vi,28,2*Se.length,15,1),Gc(de,0,Se,0,d)),Se[d++]=g,Yr(je,ae[R]);break e}if(re=re,Ze(re)===Ze(T))break}}if(O=je,ae=je.g,D=d,d>Se.length&&(de=Se,Se=st(Wr,vi,28,d,15,1),Gc(de,0,Se,0,d)),d>0){for(Ue=!0,y=0;y<d;++y)re=ae[y],J=TOt(n,v(re,76),J);for(x=d;--x>=0;)Vk(n,Se[x]);if(d!=D){for(g=D;--g>=d;)Vk(O,g);de=Se,Se=st(Wr,vi,28,d,15,1),Gc(de,0,Se,0,d)}i=O}}}else for(i=X_r(n,i),g=n.i;--g>=0;)i.Hc(n.g[g])&&(Vk(n,g),Ue=!0);if(Ue){if(Se!=null){for(l=i.gc(),q=l==1?pD(n,4,i.Kc().Pb(),null,Se[0],le):pD(n,6,i,Se,Se[0],le),J=l<100?null:new Av(l),g=i.Kc();g.Ob();)re=g.Pb(),J=yIe(n,v(re,76),J);J?(J.nj(q),J.oj()):Vi(n.e,q)}else{for(J=nlr(i.gc()),g=i.Kc();g.Ob();)re=g.Pb(),J=yIe(n,v(re,76),J);J&&J.oj()}return!0}else return!1}function PRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(l=new BGt(i),l.a||uAr(i),O=lCr(i),R=new OE,de=new $Yt,le=new me(i.a);le.a<le.c.c.length;)for(ae=v(pe(le),10),g=new yr(_r(os(ae).a.Kc(),new S));zr(g);)d=v(Rr(g),18),(d.c.i.k==(lr(),hs)||d.d.i.k==hs)&&(D=S7r(n,d,O,de),Rn(R,V0e(D.d),D.a));for(x=new Ot,Ue=v(oe(l.c,(At(),ob)),21).Kc();Ue.Ob();){switch(Me=v(Ue.Pb(),64),re=de.c[Me.g],J=de.b[Me.g],T=de.a[Me.g],y=null,Se=null,Me.g){case 4:y=new rf(n.d.a,re,O.b.a-n.d.a,J-re),Se=new rf(n.d.a,re,T,J-re),wE(O,new Ct(y.c+y.b,y.d)),wE(O,new Ct(y.c+y.b,y.d+y.a));break;case 2:y=new rf(O.a.a,re,n.c.a-O.a.a,J-re),Se=new rf(n.c.a-T,re,T,J-re),wE(O,new Ct(y.c,y.d)),wE(O,new Ct(y.c,y.d+y.a));break;case 1:y=new rf(re,n.d.b,J-re,O.b.b-n.d.b),Se=new rf(re,n.d.b,J-re,T),wE(O,new Ct(y.c,y.d+y.a)),wE(O,new Ct(y.c+y.b,y.d+y.a));break;case 3:y=new rf(re,O.a.b,J-re,n.c.b-O.a.b),Se=new rf(re,n.c.b-T,J-re,T),wE(O,new Ct(y.c,y.d)),wE(O,new Ct(y.c+y.b,y.d))}y&&(q=new o6t,q.d=Me,q.b=y,q.c=Se,q.a=yQ(v(Zi(R,V0e(Me)),21)),jn(x.c,q))}return xs(l.b,x),l.d=fyr(F6r(O)),l}function xKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le;if(l.p[i.p]==null){T=!0,l.p[i.p]=0,x=i,le=l.o==(G1(),fw)?Ss:ka;do g=n.b.e[x.p],y=x.c.a.c.length,l.o==fw&&g>0||l.o==sp&&g<y-1?(R=null,O=null,l.o==sp?R=v(Yt(x.c.a,g+1),10):R=v(Yt(x.c.a,g-1),10),O=l.g[R.p],xKt(n,O,l),le=n.e.wg(le,i,x),l.j[i.p]==i&&(l.j[i.p]=l.j[O.p]),l.j[i.p]==l.j[O.p]?(ae=PT(n.d,x,R),l.o==sp?(d=We(l.p[i.p]),q=We(l.p[O.p])+We(l.d[R.p])-R.d.d-ae-x.d.a-x.o.b-We(l.d[x.p]),T?(T=!1,l.p[i.p]=u.Math.min(q,le)):l.p[i.p]=u.Math.min(d,u.Math.min(q,le))):(d=We(l.p[i.p]),q=We(l.p[O.p])+We(l.d[R.p])+R.o.b+R.d.a+ae+x.d.d-We(l.d[x.p]),T?(T=!1,l.p[i.p]=u.Math.max(q,le)):l.p[i.p]=u.Math.max(d,u.Math.max(q,le)))):(ae=We(at(oe(n.a,(qt(),Sx)))),re=R$t(n,l.j[i.p]),D=R$t(n,l.j[O.p]),l.o==sp?(J=We(l.p[i.p])+We(l.d[x.p])+x.o.b+x.d.a+ae-(We(l.p[O.p])+We(l.d[R.p])-R.d.d),nMt(re,D,J)):(J=We(l.p[i.p])+We(l.d[x.p])-x.d.d-We(l.p[O.p])-We(l.d[R.p])-R.o.b-R.d.a-ae,nMt(re,D,J)))):le=n.e.wg(le,i,x),x=l.a[x.p];while(x!=i);dir(n.e,i)}}function BRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;if(l=We(at(oe(n.a.j,(qt(),OHe)))),l<-1||!n.a.i||yk(v(oe(n.a.o,Qa),101))||sc(n.a.o,(Bt(),gr)).gc()<2&&sc(n.a.o,cr).gc()<2)return!0;if(n.a.c.kg())return!1;for(yt=0,je=0,Ue=new Ot,R=n.a.e,O=0,D=R.length;O<D;++O){for(T=R[O],J=T,re=0,le=J.length;re<le;++re){if(q=J[re],q.k==(lr(),iu)){jn(Ue.c,q);continue}for(d=n.b[q.c.p][q.p],q.k==hs?(d.b=1,v(oe(q,(At(),Ji)),12).j==(Bt(),gr)&&(je+=d.a)):(mn=sc(q,(Bt(),cr)),mn.dc()||!qhe(mn,new gwt)?d.c=1:(g=sc(q,gr),(g.dc()||!qhe(g,new pwt))&&(yt+=d.a))),x=new yr(_r(os(q).a.Kc(),new S));zr(x);)y=v(Rr(x),18),yt+=d.c,je+=d.b,yn=y.d.i,UOe(n,d,yn);for(Se=Ad(Te(xe(Md,1),Yn,20,0,[sc(q,(Bt(),or)),sc(q,Mr)])),Mt=new yr(new L8e(Se.a.length,Se.a));zr(Mt);)xt=v(Rr(Mt),12),Me=v(oe(xt,(At(),kh)),10),Me&&(yt+=d.c,je+=d.b,UOe(n,d,Me))}for(ae=new me(Ue);ae.a<ae.c.c.length;)for(q=v(pe(ae),10),d=n.b[q.c.p][q.p],x=new yr(_r(os(q).a.Kc(),new S));zr(x);)y=v(Rr(x),18),yt+=d.c,je+=d.b,yn=y.d.i,UOe(n,d,yn);Ue.c.length=0}return i=yt+je,de=i==0?ka:(yt-je)/i,de>=l}function FRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;for(Ue=i,Me=new OE,je=new OE,D=ME(Ue,bUe),d=new YLt(n,l,Me,je),iSr(d.a,d.b,d.c,d.d,D),R=(Mt=Me.i,Mt||(Me.i=new $T(Me,Me.c))),mn=R.Kc();mn.Ob();)for(yn=v(mn.Pb(),166),g=v(Zi(Me,yn),21),le=g.Kc();le.Ob();)if(ae=le.Pb(),yt=v(jT(n.d,ae),166),yt)T=(!yn.e&&(yn.e=new Gn(xa,yn,10,9)),yn.e),Yr(T,yt);else throw x=zm(Ue,ug),J=PZt+ae+BZt+x,re=J+UI,_e(new zp(re));for(O=(xt=je.i,xt||(je.i=new $T(je,je.c))),Xn=O.Kc();Xn.Ob();)for(Kn=v(Xn.Pb(),166),y=v(Zi(je,Kn),21),Se=y.Kc();Se.Ob();)if(de=Se.Pb(),yt=v(jT(n.d,de),166),yt)q=(!Kn.g&&(Kn.g=new Gn(xa,Kn,9,10)),Kn.g),Yr(q,yt);else throw x=zm(Ue,ug),J=PZt+de+BZt+x,re=J+UI,_e(new zp(re));!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b.i!=0&&(!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c.i!=0)&&(!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b.i<=1&&(!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c.i<=1))&&(!l.a&&(l.a=new vt(xa,l,6,6)),l.a).i==1&&(Sr=v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166),!X0e(Sr)&&!Q0e(Sr)&&(lZ(Sr,v(ze((!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b),0),84)),cZ(Sr,v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84))))}function $Rr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(Ue=n.a,je=0,yt=Ue.length;je<yt;++je){for(Me=Ue[je],O=qi,D=qi,ae=new me(Me.e);ae.a<ae.c.c.length;)J=v(pe(ae),10),x=J.c?$l(J.c.a,J,0):-1,x>0?(q=v(Yt(J.c.a,x-1),10),yn=PT(n.b,J,q),de=J.n.b-J.d.d-(q.n.b+q.o.b+q.d.a+yn)):de=J.n.b-J.d.d,O=u.Math.min(de,O),x<J.c.a.c.length-1?(q=v(Yt(J.c.a,x+1),10),yn=PT(n.b,J,q),Se=q.n.b-q.d.d-(J.n.b+J.o.b+J.d.a+yn)):Se=2*J.n.b,D=u.Math.min(Se,D);for(R=qi,y=!1,g=v(Yt(Me.e,0),10),Kn=new me(g.j);Kn.a<Kn.c.c.length;)for(mn=v(pe(Kn),12),le=g.n.b+mn.n.b+mn.a.b,d=new me(mn.e);d.a<d.c.c.length;)l=v(pe(d),18),xt=l.c,i=xt.i.n.b+xt.n.b+xt.a.b-le,u.Math.abs(i)<u.Math.abs(R)&&u.Math.abs(i)<(i<0?O:D)&&(R=i,y=!0);for(T=v(Yt(Me.e,Me.e.c.length-1),10),Mt=new me(T.j);Mt.a<Mt.c.c.length;)for(xt=v(pe(Mt),12),le=T.n.b+xt.n.b+xt.a.b,d=new me(xt.g);d.a<d.c.c.length;)l=v(pe(d),18),mn=l.d,i=mn.i.n.b+mn.n.b+mn.a.b-le,u.Math.abs(i)<u.Math.abs(R)&&u.Math.abs(i)<(i<0?O:D)&&(R=i,y=!0);if(y&&R!=0)for(re=new me(Me.e);re.a<re.c.c.length;)J=v(pe(re),10),J.n.b+=R}}function URr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(d=new Ot,g=qi,y=qi,x=qi,l)for(g=n.f.a,le=new me(i.j);le.a<le.c.c.length;)for(ae=v(pe(le),12),R=new me(ae.g);R.a<R.c.c.length;)T=v(pe(R),18),T.a.b!=0&&(D=v(e8(T.a),8),D.a<g&&(y=g-D.a,x=qi,d.c.length=0,g=D.a),D.a<=g&&(jn(d.c,T),T.a.b>1&&(x=u.Math.min(x,u.Math.abs(v(gf(T.a,1),8).b-D.b)))));else for(le=new me(i.j);le.a<le.c.c.length;)for(ae=v(pe(le),12),R=new me(ae.e);R.a<R.c.c.length;)T=v(pe(R),18),T.a.b!=0&&(J=v(y0(T.a),8),J.a>g&&(y=J.a-g,x=qi,d.c.length=0,g=J.a),J.a>=g&&(jn(d.c,T),T.a.b>1&&(x=u.Math.min(x,u.Math.abs(v(gf(T.a,T.a.b-2),8).b-J.b)))));if(d.c.length!=0&&y>i.o.a/2&&x>i.o.b/2){for(re=new zc,rc(re,i),Bs(re,(Bt(),or)),re.n.a=i.o.a/2,Se=new zc,rc(Se,i),Bs(Se,Mr),Se.n.a=i.o.a/2,Se.n.b=i.o.b,R=new me(d);R.a<R.c.c.length;)T=v(pe(R),18),l?(O=v(dde(T.a),8),de=T.a.b==0?q1(T.d):v(e8(T.a),8),de.b>=O.b?Uo(T,Se):Uo(T,re)):(O=v(Iur(T.a),8),de=T.a.b==0?q1(T.c):v(y0(T.a),8),de.b>=O.b?lo(T,Se):lo(T,re)),q=v(oe(T,(qt(),Nl)),75),q&&f4(q,O,!0);i.n.a=g-i.o.a/2}}function zRr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(T=Ur(n.b,0);T.b!=T.d.c;)if(x=v(Fr(T),40),!An(x.c,_ee))for(O=d3r(x,n),i==(ys(),Ol)||i==ql?us(O,new zEt):us(O,new GEt),R=O.c.length,d=0;d<R;d++)D=($n(d,O.c.length),v(O.c[d],65)).c,An(D.c,"n11"),!(Vt(Ht(oe(x,(fa(),sYe))))&&!zUt(($n(d,O.c.length),v(O.c[d],65)),n))&&(g=R==1?.5:(d+1)/(R+1),i==Ol?(y=We(at(oe(x,b1))),J=x.e.b+x.f.b*g,IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(u.Math.min(y,x.e.a-l),J)),IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(x.e.a,J))):i==ql?(y=We(at(oe(x,L0)))+l,J=x.e.b+x.f.b*g,IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(y,J)),IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(x.e.a+x.f.a,J))):i==Ef?(y=We(at(oe(x,b1))),q=x.e.a+x.f.a*g,IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(q,u.Math.min(x.e.b-l,y))),IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(q,x.e.b))):(y=We(at(oe(x,L0)))+l,q=x.e.a+x.f.a*g,IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(q,y)),IT(($n(d,O.c.length),v(O.c[d],65)).a,new Ct(q,x.e.b+x.f.b))))}function IG(n,i,l,d,g,y,x,T,R){var O,D,q,J,re,ae,le;switch(re=l,D=new Jm(R),g_(D,(lr(),hs)),_t(D,(At(),Vqe),x),_t(D,(qt(),Qa),(co(),su)),le=We(at(n.of(X4))),_t(D,X4,le),q=new zc,rc(q,D),i!=up&&i!=y2||(d>=0?re=zk(T):re=Xz(zk(T)),n.qf(lN,re)),O=new ho,J=!1,n.pf(Ex)?(G8e(O,v(n.of(Ex),8)),J=!0):Xsr(O,x.a/2,x.b/2),re.g){case 4:_t(D,Lu,(pf(),u2)),_t(D,Wte,(F_(),O5)),D.o.b=x.b,le<0&&(D.o.a=-le),Bs(q,(Bt(),gr)),J||(O.a=x.a),O.a-=x.a;break;case 2:_t(D,Lu,(pf(),Y4)),_t(D,Wte,(F_(),tN)),D.o.b=x.b,le<0&&(D.o.a=-le),Bs(q,(Bt(),cr)),J||(O.a=0);break;case 1:_t(D,aw,(Ym(),D5)),D.o.a=x.a,le<0&&(D.o.b=-le),Bs(q,(Bt(),Mr)),J||(O.b=x.b),O.b-=x.b;break;case 3:_t(D,aw,(Ym(),y6)),D.o.a=x.a,le<0&&(D.o.b=-le),Bs(q,(Bt(),or)),J||(O.b=0)}if(G8e(q.n,O),_t(D,Ex,O),i==yw||i==sm||i==su){if(ae=0,i==yw&&n.pf(_y))switch(re.g){case 1:case 2:ae=v(n.of(_y),17).a;break;case 3:case 4:ae=-v(n.of(_y),17).a}else switch(re.g){case 4:case 2:ae=y.b,i==sm&&(ae/=g.b);break;case 1:case 3:ae=y.a,i==sm&&(ae/=g.a)}_t(D,bx,ae)}return _t(D,vc,re),D}function GRr(){fRe();function n(d){var g=this;this.dispatch=function(y){var x=y.data;switch(x.cmd){case"algorithms":var T=DLe((Fn(),new DR(new Dm(w2.b))));d.postMessage({id:x.id,data:T});break;case"categories":var R=DLe((Fn(),new DR(new Dm(w2.c))));d.postMessage({id:x.id,data:R});break;case"options":var O=DLe((Fn(),new DR(new Dm(w2.d))));d.postMessage({id:x.id,data:O});break;case"register":V6r(x.algorithms),d.postMessage({id:x.id});break;case"layout":_kr(x.graph,x.layoutOptions||{},x.options||{}),d.postMessage({id:x.id,data:x.graph});break}},this.saveDispatch=function(y){try{g.dispatch(y)}catch(x){d.postMessage({id:y.data.id,error:x})}}}function i(d){var g=this;this.dispatcher=new n({postMessage:function(y){g.onmessage({data:y})}}),this.postMessage=function(y){setTimeout(function(){g.dispatcher.saveDispatch({data:y})},0)}}if(typeof document===ige&&typeof self!==ige){var l=new n(self);self.onmessage=l.saveDispatch}else typeof a!==ige&&a.exports&&(Object.defineProperty(s,"__esModule",{value:!0}),a.exports={default:i,Worker:i})}function SKt(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=new Jm(l),Ul(D,i),_t(D,(At(),Ji),i),D.o.a=i.g,D.o.b=i.f,D.n.a=i.i,D.n.b=i.j,Lt(l.a,D),Ni(n.a,i,D),((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i!=0||Vt(Ht(Et(i,(qt(),K4)))))&&_t(D,Gqe,(Qn(),!0)),O=v(oe(l,au),21),q=v(oe(D,(qt(),Qa)),101),q==(co(),y2)?_t(D,Qa,up):q!=up&&O.Fc((cl(),iN)),J=0,d=v(oe(l,Pd),88),R=new mr((!i.c&&(i.c=new vt(Oh,i,9,9)),i.c));R.e!=R.i.gc();)T=v(wr(R),123),g=Aa(i),(Ze(Et(g,nm))!==Ze((Zp(),wy))||Ze(Et(g,ow))===Ze((ly(),eN))||Ze(Et(g,ow))===Ze((ly(),JI))||Vt(Ht(Et(g,vx)))||Ze(Et(g,j4))!==Ze((z_(),z4))||Ze(Et(g,h2))===Ze((qf(),Tx))||Ze(Et(g,h2))===Ze((qf(),e3))||Ze(Et(g,cw))===Ze((fy(),dN))||Ze(Et(g,cw))===Ze((fy(),fN)))&&!Vt(Ht(Et(i,tne)))&&sa(T,ua,Nt(J++)),Vt(Ht(Et(T,hw)))||Z7r(n,T,D,O,d,q);for(x=new mr((!i.n&&(i.n=new vt(wl,i,1,7)),i.n));x.e!=x.i.gc();)y=v(wr(x),135),!Vt(Ht(Et(y,hw)))&&y.a&&Lt(D.b,x0e(y));return Vt(Ht(oe(D,uP)))&&O.Fc((cl(),qte)),Vt(Ht(oe(D,ane)))&&(O.Fc((cl(),Hte)),O.Fc(iP),_t(D,Qa,up)),D}function vpe(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(le=0,Kn=0,O=new me(n.b);O.a<O.c.c.length;)R=v(pe(O),163),R.c&&JWt(R.c),le=u.Math.max(le,lh(R)),Kn+=lh(R)*od(R);for(de=Kn/n.b.c.length,mn=qwr(n.b,de),Kn+=n.b.c.length*mn,le=u.Math.max(le,u.Math.sqrt(Kn*x))+l.b,Ui=l.b,Fa=l.d,re=0,q=l.b+l.c,yn=new Ea,pi(yn,Nt(0)),xt=new Ea,D=new go(n.b,0),ae=null,T=new Ot;D.b<D.d.gc();)R=(Tr(D.b<D.d.gc()),v(D.d.Xb(D.c=D.b++),163)),Sr=lh(R),J=od(R),Ui+Sr>le&&(y&&(jo(xt,re),jo(yn,Nt(D.b-1)),Lt(n.d,ae),T.c.length=0),Ui=l.b,Fa+=re+i,re=0,q=u.Math.max(q,l.b+l.c+Sr)),jn(T.c,R),RGt(R,Ui,Fa),q=u.Math.max(q,Ui+Sr+l.c),re=u.Math.max(re,J),Ui+=Sr+i,ae=R;if(xs(n.a,T),Lt(n.d,v(Yt(T,T.c.length-1),163)),q=u.Math.max(q,d),Xn=Fa+re+l.a,Xn<g&&(re+=g-Xn,Xn=g),y)for(Ui=l.b,D=new go(n.b,0),jo(yn,Nt(n.b.c.length)),Mt=Ur(yn,0),Me=v(Fr(Mt),17).a,jo(xt,re),yt=Ur(xt,0),je=0;D.b<D.d.gc();)D.b==Me&&(Ui=l.b,je=We(at(Fr(yt))),Me=v(Fr(Mt),17).a),R=(Tr(D.b<D.d.gc()),v(D.d.Xb(D.c=D.b++),163)),oGt(R,je),D.b==Me&&(Se=q-Ui-l.c,Ue=lh(R),lGt(R,Se),Dzt(R,(Se-Ue)/2,0)),Ui+=lh(R)+i;return new Ct(q,Xn)}function qRr(n){n.N||(n.N=!0,n.b=fc(n,0),Ha(n.b,0),Ha(n.b,1),Ha(n.b,2),n.bb=fc(n,1),Ha(n.bb,0),Ha(n.bb,1),n.fb=fc(n,2),Ha(n.fb,3),Ha(n.fb,4),_a(n.fb,5),n.qb=fc(n,3),Ha(n.qb,0),_a(n.qb,1),_a(n.qb,2),Ha(n.qb,3),Ha(n.qb,4),_a(n.qb,5),Ha(n.qb,6),n.a=Li(n,4),n.c=Li(n,5),n.d=Li(n,6),n.e=Li(n,7),n.f=Li(n,8),n.g=Li(n,9),n.i=Li(n,10),n.j=Li(n,11),n.k=Li(n,12),n.n=Li(n,13),n.o=Li(n,14),n.p=Li(n,15),n.q=Li(n,16),n.s=Li(n,17),n.r=Li(n,18),n.t=Li(n,19),n.u=Li(n,20),n.v=Li(n,21),n.w=Li(n,22),n.B=Li(n,23),n.A=Li(n,24),n.C=Li(n,25),n.D=Li(n,26),n.F=Li(n,27),n.G=Li(n,28),n.H=Li(n,29),n.J=Li(n,30),n.I=Li(n,31),n.K=Li(n,32),n.M=Li(n,33),n.L=Li(n,34),n.P=Li(n,35),n.Q=Li(n,36),n.R=Li(n,37),n.S=Li(n,38),n.T=Li(n,39),n.U=Li(n,40),n.V=Li(n,41),n.X=Li(n,42),n.W=Li(n,43),n.Y=Li(n,44),n.Z=Li(n,45),n.$=Li(n,46),n._=Li(n,47),n.ab=Li(n,48),n.cb=Li(n,49),n.db=Li(n,50),n.eb=Li(n,51),n.gb=Li(n,52),n.hb=Li(n,53),n.ib=Li(n,54),n.jb=Li(n,55),n.kb=Li(n,56),n.lb=Li(n,57),n.mb=Li(n,58),n.nb=Li(n,59),n.ob=Li(n,60),n.pb=Li(n,61))}function HRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(Me=0,i.f.a==0)for(de=new me(n);de.a<de.c.c.length;)ae=v(pe(de),10),Me=u.Math.max(Me,ae.n.a+ae.o.a+ae.d.c);else Me=i.f.a-i.c.a;for(Me-=i.c.a,le=new me(n);le.a<le.c.c.length;){switch(ae=v(pe(le),10),gL(ae.n,Me-ae.o.a),$Ie(ae.f),sqt(ae),(ae.q?ae.q:(Fn(),Fn(),Jg))._b((qt(),Z4))&&gL(v(oe(ae,Z4),8),Me-ae.o.a),v(oe(ae,fg),255).g){case 1:_t(ae,fg,(qg(),nH));break;case 2:_t(ae,fg,(qg(),tH))}for(Se=ae.o,je=new me(ae.j);je.a<je.c.c.length;){for(Ue=v(pe(je),12),gL(Ue.n,Se.a-Ue.o.a),gL(Ue.a,Ue.o.a),Bs(Ue,G$t(Ue.j)),x=v(oe(Ue,_y),17),x&&_t(Ue,_y,Nt(-x.a)),y=new me(Ue.g);y.a<y.c.c.length;){for(g=v(pe(y),18),d=Ur(g.a,0);d.b!=d.d.c;)l=v(Fr(d),8),l.a=Me-l.a;if(O=v(oe(g,Nl),75),O)for(R=Ur(O,0);R.b!=R.d.c;)T=v(Fr(R),8),T.a=Me-T.a;for(J=new me(g.b);J.a<J.c.c.length;)D=v(pe(J),72),gL(D.n,Me-D.o.a)}for(re=new me(Ue.f);re.a<re.c.c.length;)D=v(pe(re),72),gL(D.n,Ue.o.a-D.o.a)}for(ae.k==(lr(),hs)&&(_t(ae,(At(),vc),G$t(v(oe(ae,vc),64))),Nxr(ae)),q=new me(ae.b);q.a<q.c.c.length;)D=v(pe(q),72),sqt(D),gL(D.n,Se.a-D.o.a)}}function VRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(Me=0,i.f.b==0)for(de=new me(n);de.a<de.c.c.length;)ae=v(pe(de),10),Me=u.Math.max(Me,ae.n.b+ae.o.b+ae.d.a);else Me=i.f.b-i.c.b;for(Me-=i.c.b,le=new me(n);le.a<le.c.c.length;){switch(ae=v(pe(le),10),pL(ae.n,Me-ae.o.b),UIe(ae.f),oqt(ae),(ae.q?ae.q:(Fn(),Fn(),Jg))._b((qt(),Z4))&&pL(v(oe(ae,Z4),8),Me-ae.o.b),v(oe(ae,fg),255).g){case 3:_t(ae,fg,(qg(),qne));break;case 4:_t(ae,fg,(qg(),Vne))}for(Se=ae.o,je=new me(ae.j);je.a<je.c.c.length;){for(Ue=v(pe(je),12),pL(Ue.n,Se.b-Ue.o.b),pL(Ue.a,Ue.o.b),Bs(Ue,q$t(Ue.j)),x=v(oe(Ue,_y),17),x&&_t(Ue,_y,Nt(-x.a)),y=new me(Ue.g);y.a<y.c.c.length;){for(g=v(pe(y),18),d=Ur(g.a,0);d.b!=d.d.c;)l=v(Fr(d),8),l.b=Me-l.b;if(O=v(oe(g,Nl),75),O)for(R=Ur(O,0);R.b!=R.d.c;)T=v(Fr(R),8),T.b=Me-T.b;for(J=new me(g.b);J.a<J.c.c.length;)D=v(pe(J),72),pL(D.n,Me-D.o.b)}for(re=new me(Ue.f);re.a<re.c.c.length;)D=v(pe(re),72),pL(D.n,Ue.o.b-D.o.b)}for(ae.k==(lr(),hs)&&(_t(ae,(At(),vc),q$t(v(oe(ae,vc),64))),Yyr(ae)),q=new me(ae.b);q.a<q.c.c.length;)D=v(pe(q),72),oqt(D),pL(D.n,Se.b-D.o.b)}}function YRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui;for(Me=new go(n.b,0),D=i.Kc(),ae=0,O=v(D.Pb(),17).a,yt=0,l=new fs,Mt=new Hp;Me.b<Me.d.gc();){for(Se=(Tr(Me.b<Me.d.gc()),v(Me.d.Xb(Me.c=Me.b++),30)),je=new me(Se.a);je.a<je.c.c.length;){for(Ue=v(pe(je),10),re=new yr(_r(os(Ue).a.Kc(),new S));zr(re);)q=v(Rr(re),18),Mt.a.zc(q,Mt);for(J=new yr(_r(Hs(Ue).a.Kc(),new S));zr(J);)q=v(Rr(J),18),Mt.a.Bc(q)!=null}if(ae+1==O){for(g=new Xc(n),KS(Me,g),y=new Xc(n),KS(Me,y),mn=Mt.a.ec().Kc();mn.Ob();)yn=v(mn.Pb(),18),l.a._b(yn)||(++yt,l.a.zc(yn,l)),x=new Jm(n),_t(x,(qt(),Qa),(co(),SN)),po(x,g),g_(x,(lr(),ip)),le=new zc,rc(le,x),Bs(le,(Bt(),cr)),Kn=new zc,rc(Kn,x),Bs(Kn,gr),d=new Jm(n),_t(d,Qa,SN),po(d,y),g_(d,ip),de=new zc,rc(de,d),Bs(de,cr),Xn=new zc,rc(Xn,d),Bs(Xn,gr),xt=new NE,Uo(xt,yn.c),lo(xt,le),_t(xt,(At(),ua),v(oe(yn,ua),17)),Ui=new NE,Uo(Ui,Kn),lo(Ui,de),_t(Ui,ua,v(oe(yn,ua),17)),Uo(yn,Xn),T=new dOe(x,d,xt,Ui,yn),_t(x,gx,T),_t(d,gx,T),Sr=xt.c.i,Sr.k==ip&&(R=v(oe(Sr,gx),313),R.d=T,T.g=R);if(D.Ob())O=v(D.Pb(),17).a;else break}++ae}return Nt(yt)}function jRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(le=new Ot,J=new me(n.d.b);J.a<J.c.c.length;)for(q=v(pe(J),30),ae=new me(q.a);ae.a<ae.c.c.length;){for(re=v(pe(ae),10),g=v(br(n.f,re),60),R=new yr(_r(os(re).a.Kc(),new S));zr(R);)if(x=v(Rr(R),18),d=Ur(x.a,0),O=!0,D=null,d.b!=d.d.c){for(i=v(Fr(d),8),l=null,x.c.j==(Bt(),or)&&(de=new uM(i,new Ct(i.a,g.d.d),g,x),de.f.a=!0,de.a=x.c,jn(le.c,de)),x.c.j==Mr&&(de=new uM(i,new Ct(i.a,g.d.d+g.d.a),g,x),de.f.d=!0,de.a=x.c,jn(le.c,de));d.b!=d.d.c;)l=v(Fr(d),8),t9e(i.b,l.b)||(D=new uM(i,l,null,x),jn(le.c,D),O&&(O=!1,l.b<g.d.d?D.f.a=!0:l.b>g.d.d+g.d.a?D.f.d=!0:(D.f.d=!0,D.f.a=!0))),d.b!=d.d.c&&(i=l);D&&(y=v(br(n.f,x.d.i),60),i.b<y.d.d?D.f.a=!0:i.b>y.d.d+y.d.a?D.f.d=!0:(D.f.d=!0,D.f.a=!0))}for(T=new yr(_r(Hs(re).a.Kc(),new S));zr(T);)x=v(Rr(T),18),x.a.b!=0&&(i=v(y0(x.a),8),x.d.j==(Bt(),or)&&(de=new uM(i,new Ct(i.a,g.d.d),g,x),de.f.a=!0,de.a=x.d,jn(le.c,de)),x.d.j==Mr&&(de=new uM(i,new Ct(i.a,g.d.d+g.d.a),g,x),de.f.d=!0,de.a=x.d,jn(le.c,de)))}return le}function WRr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(R=new Ot,q=i.length,x=V9e(l),O=0;O<q;++O){switch(D=D8e(i,Wu(61),O),d=Hyr(x,(mo(O,D,i.length),i.substr(O,D-O))),g=i0e(d),y=g.jk().wi(),Do(i,++D)){case 39:{T=ZR(i,39,++D),Lt(R,new gX(d,Hde((mo(D,T,i.length),i.substr(D,T-D)),y,g))),O=T+1;break}case 34:{T=ZR(i,34,++D),Lt(R,new gX(d,Hde((mo(D,T,i.length),i.substr(D,T-D)),y,g))),O=T+1;break}case 91:{J=new Ot,Lt(R,new gX(d,J));e:for(;;){switch(Do(i,++D)){case 39:{T=ZR(i,39,++D),Lt(J,Hde((mo(D,T,i.length),i.substr(D,T-D)),y,g)),D=T+1;break}case 34:{T=ZR(i,34,++D),Lt(J,Hde((mo(D,T,i.length),i.substr(D,T-D)),y,g)),D=T+1;break}case 110:{if(++D,i.indexOf("ull",D)==D)J.c.push(null);else throw _e(new tc(AZt));D+=3;break}}if(D<q)switch(sr(D,i.length),i.charCodeAt(D)){case 44:break;case 93:break e;default:throw _e(new tc("Expecting , or ]"))}else break}O=D+1;break}case 110:{if(++D,i.indexOf("ull",D)==D)Lt(R,new gX(d,null));else throw _e(new tc(AZt));O=D+3;break}}if(O<q){if(sr(O,i.length),i.charCodeAt(O)!=44)throw _e(new tc("Expecting ,"))}else break}return N5r(n,R,l)}function KRr(n){var i,l,d,g,y;switch(i=n.c,y=null,i){case 6:return n.Em();case 13:return n.Fm();case 23:return n.wm();case 22:return n.Bm();case 18:return n.ym();case 8:$i(n),y=(zi(),tXe);break;case 9:return n.em(!0);case 19:return n.fm();case 10:switch(n.a){case 100:case 68:case 119:case 87:case 115:case 83:return y=n.dm(n.a),$i(n),y;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:l=n.cm(),l<el?y=(zi(),zi(),new Fg(0,l)):y=F9t(SLe(l));break;case 99:return n.om();case 67:return n.jm();case 105:return n.rm();case 73:return n.km();case 103:return n.pm();case 88:return n.lm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n.gm();case 80:case 112:if(y=SMe(n,n.a),!y)throw _e(new oi(fi((ii(),Vme))));break;default:y=QOt(n.a)}$i(n);break;case 0:if(n.a==93||n.a==123||n.a==125)throw _e(new oi(fi((ii(),CUe))));y=QOt(n.a),d=n.a,$i(n),(d&64512)==UG&&n.c==0&&(n.a&64512)==56320&&(g=st(Tf,rg,28,2,15,1),g[0]=d&vs,g[1]=n.a&vs,y=Cde(F9t(Qp(g,0,g.length)),0),$i(n));break;default:throw _e(new oi(fi((ii(),CUe))))}return y}function XRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn;for(mn=new Ea,xt=new Ea,de=-1,R=new me(n);R.a<R.c.c.length;){for(x=v(pe(R),131),x.s=de--,D=0,Ue=0,y=new me(x.t);y.a<y.c.c.length;)d=v(pe(y),274),Ue+=d.c;for(g=new me(x.i);g.a<g.c.c.length;)d=v(pe(g),274),D+=d.c;x.n=D,x.u=Ue,Ue==0?qa(xt,x,xt.c.b,xt.c):D==0&&qa(mn,x,mn.c.b,mn.c)}for(Xn=OQ(n),q=n.c.length,le=q+1,Se=q-1,re=new Ot;Xn.a.gc()!=0;){for(;xt.b!=0;)yt=(Tr(xt.b!=0),v(cf(xt,xt.a.a),131)),Xn.a.Bc(yt)!=null,yt.s=Se--,qMe(yt,mn,xt);for(;mn.b!=0;)Mt=(Tr(mn.b!=0),v(cf(mn,mn.a.a),131)),Xn.a.Bc(Mt)!=null,Mt.s=le++,qMe(Mt,mn,xt);for(ae=Po,O=Xn.a.ec().Kc();O.Ob();)x=v(O.Pb(),131),Me=x.u-x.n,Me>=ae&&(Me>ae&&(re.c.length=0,ae=Me),jn(re.c,x));re.c.length!=0&&(J=v(Yt(re,KZ(i,re.c.length)),131),Xn.a.Bc(J)!=null,J.s=le++,qMe(J,mn,xt),re.c.length=0)}for(je=n.c.length+1,T=new me(n);T.a<T.c.c.length;)x=v(pe(T),131),x.s<q&&(x.s+=je);for(yn=new me(n);yn.a<yn.c.c.length;)for(Mt=v(pe(yn),131),l=new go(Mt.t,0);l.b<l.d.gc();)d=(Tr(l.b<l.d.gc()),v(l.d.Xb(l.c=l.b++),274)),Kn=d.b,Mt.s>Kn.s&&(ld(l),Yu(Kn.i,d),d.c>0&&(d.a=Kn,Lt(Kn.t,d),d.b=Mt,Lt(Mt.i,d)))}function TKt(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn;for(le=new gu(i.b),je=new gu(i.b),J=new gu(i.b),yn=new gu(i.b),de=new gu(i.b),Mt=Ur(i,0);Mt.b!=Mt.d.c;)for(yt=v(Fr(Mt),12),T=new me(yt.g);T.a<T.c.c.length;)if(y=v(pe(T),18),y.c.i==y.d.i){if(yt.j==y.d.j){jn(yn.c,y);continue}else if(yt.j==(Bt(),or)&&y.d.j==Mr){jn(de.c,y);continue}}for(R=new me(de);R.a<R.c.c.length;)y=v(pe(R),18),wAr(n,y,l,d,(Bt(),gr));for(x=new me(yn);x.a<x.c.c.length;)y=v(pe(x),18),mn=new Jm(n),g_(mn,(lr(),iu)),_t(mn,(qt(),Qa),(co(),su)),_t(mn,(At(),Ji),y),Kn=new zc,_t(Kn,Ji,y.d),Bs(Kn,(Bt(),cr)),rc(Kn,mn),Xn=new zc,_t(Xn,Ji,y.c),Bs(Xn,gr),rc(Xn,mn),_t(y.c,kh,mn),_t(y.d,kh,mn),Uo(y,null),lo(y,null),jn(l.c,mn),_t(mn,jte,Nt(2));for(xt=Ur(i,0);xt.b!=xt.d.c;)yt=v(Fr(xt),12),O=yt.e.c.length>0,Se=yt.g.c.length>0,O&&Se?jn(J.c,yt):O?jn(le.c,yt):Se&&jn(je.c,yt);for(ae=new me(le);ae.a<ae.c.c.length;)re=v(pe(ae),12),Lt(g,OPe(n,re,null,l));for(Ue=new me(je);Ue.a<Ue.c.c.length;)Me=v(pe(Ue),12),Lt(g,OPe(n,null,Me,l));for(q=new me(J);q.a<q.c.c.length;)D=v(pe(q),12),Lt(g,OPe(n,D,D,l))}function XPe(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(J=ka,re=ka,D=0,q=0,R=new Ot,T=new mr((!n.b&&(n.b=new vt(ss,n,12,3)),n.b));T.e!=T.i.gc();)y=v(wr(T),74),R=Ad(Te(xe(Md,1),Yn,20,0,[R,(!y.n&&(y.n=new vt(wl,y,1,7)),y.n)]));for(Ue=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!n.n&&(n.n=new vt(wl,n,1,7)),n.n),(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),R])));zr(Ue);)Me=v(Rr(Ue),422),O=v(Me.of((Ei(),vN)),140),J>Me.nh()-O.b&&(J=Me.nh()-O.b),re>Me.oh()-O.d&&(re=Me.oh()-O.d),D<Me.nh()+Me.mh()+O.c&&(D=Me.nh()+Me.mh()+O.c),q<Me.oh()+Me.lh()+O.a&&(q=Me.oh()+Me.lh()+O.a);for(x=new mr((!n.b&&(n.b=new vt(ss,n,12,3)),n.b));x.e!=x.i.gc();)for(y=v(wr(x),74),Se=new mr((!y.a&&(y.a=new vt(xa,y,6,6)),y.a));Se.e!=Se.i.gc();)for(de=v(wr(Se),166),ae=de.j,d=de.b,le=de.k,g=de.c,J=u.Math.min(J,ae),J=u.Math.min(J,d),D=u.Math.max(D,ae),D=u.Math.max(D,d),re=u.Math.min(re,le),re=u.Math.min(re,g),q=u.Math.max(q,le),q=u.Math.max(q,g),l=new mr((!de.a&&(de.a=new gs(Ud,de,5)),de.a));l.e!=l.i.gc();)i=v(wr(l),377),J=u.Math.min(J,i.a),D=u.Math.max(D,i.a),re=u.Math.min(re,i.b),q=u.Math.max(q,i.b);sa(n,(Ei(),Z5),D-J),sa(n,Q5,q-re)}function QRr(n,i,l){var d,g,y,x,T,R,O,D,q;if(l.Ug("Network simplex node placement",1),n.e=i,n.n=v(oe(i,(At(),B5)),312),u6r(n),kEr(n),ts(ic(new xn(null,new Nn(n.e.b,16)),new Ewt),new mAt(n)),ts(Ki(ic(Ki(ic(new xn(null,new Nn(n.e.b,16)),new Mwt),new Pwt),new Bwt),new Fwt),new gAt(n)),Vt(Ht(oe(n.e,(qt(),dP))))&&(x=l.eh(1),x.Ug("Straight Edges Pre-Processing",1),O7r(n),x.Vg()),c_r(n.f),y=v(oe(i,gP),17).a*n.f.a.c.length,Q1e(oRe(lRe(sde(n.f),y),!1),l.eh(1)),n.d.a.gc()!=0){for(x=l.eh(1),x.Ug("Flexible Where Space Processing",1),T=v(ad(Ek(Bl(new xn(null,new Nn(n.f.a,16)),new xwt),new mwt)),17).a,R=v(ad(QS(Bl(new xn(null,new Nn(n.f.a,16)),new Swt),new bwt)),17).a,O=R-T,D=yE(new v_,n.f),q=yE(new v_,n.f),C0(m0(g0(p0(b0(new Bf,2e4),O),D),q)),ts(Ki(Ki(fNe(n.i),new Twt),new Cwt),new ULt(T,D,O,q)),g=n.d.a.ec().Kc();g.Ob();)d=v(g.Pb(),218),d.g=1;Q1e(oRe(lRe(sde(n.f),y),!1),x.eh(1)),x.Vg()}Vt(Ht(oe(i,dP)))&&(x=l.eh(1),x.Ug("Straight Edges Post-Processing",1),vSr(n),x.Vg()),g7r(n),n.e=null,n.f=null,n.i=null,n.c=null,xh(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),l.Vg()}function ZRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(l.Ug("Depth first model order layering",1),n.d=i,de=new Ot,le=new me(n.d.a);le.a<le.c.c.length;)re=v(pe(le),10),re.k==(lr(),is)&&jn(de.c,re);for(Fn(),us(de,new lwt),x=!0,n.b=new Xc(n.d),n.a=null,Lt(n.d.b,n.b),n.b.p=0,n.c=0,n.f=new Ea,ae=new me(de);ae.a<ae.c.c.length;)if(re=v(pe(ae),10),x)po(re,n.b),x=!1;else if(dkr(n,re))if(J=n.c,J=DGt(J,re),d=J+2,D=J-n.c,n.f.b==0)rPe(n,d,re);else if(D>0){for(Ue=Ur(n.f,0);Ue.b!=Ue.d.c;)Me=v(Fr(Ue),10),Me.p+=J-n.e;lMe(n),xd(n.f),rPe(n,d,re)}else{for(pi(n.f,re),re.p=d,n.e=u.Math.max(n.e,d),y=new yr(_r(Hs(re).a.Kc(),new S));zr(y);)g=v(Rr(y),18),!g.c.i.c&&g.c.i.k==(lr(),Pc)&&(pi(n.f,g.c.i),g.c.i.p=d-1);n.c=d}else lMe(n),xd(n.f),d=0,zr(new yr(_r(Hs(re).a.Kc(),new S)))?(J=0,J=DGt(J,re),d=J+2,rPe(n,d,re)):(pi(n.f,re),re.p=0,n.e=u.Math.max(n.e,0),n.b=v(Yt(n.d.b,0),30),n.c=0);for(n.f.b==0||lMe(n),n.d.a.c.length=0,Se=new Ot,O=new me(n.d.b);O.a<O.c.c.length;)T=v(pe(O),30),T.a.c.length==0&&jn(Se.c,T);for(vLe(n.d.b,Se),q=0,R=new me(n.d.b);R.a<R.c.c.length;)T=v(pe(R),30),T.p=q,++q;l.Vg()}function JRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll;if(Kn=null,Sr=i,Xn=oPt(n,QMt(l),Sr),I8(Xn,zm(Sr,ug)),Ui=v(jT(n.g,Wk(Um(Sr,Lme))),27),J=Um(Sr,"sourcePort"),d=null,J&&(d=Wk(J)),Fa=v(jT(n.j,d),123),!Ui)throw T=Z8(Sr),ae="An edge must have a source node (edge id: '"+T,le=ae+UI,_e(new zp(le));if(Fa&&!Wp(z1(Fa),Ui))throw R=zm(Sr,ug),de="The source port of an edge must be a port of the edge's source node (edge id: '"+R,Se=de+UI,_e(new zp(Se));if(yn=(!Xn.b&&(Xn.b=new Gn(Lr,Xn,4,7)),Xn.b),y=null,Fa?y=Fa:y=Ui,Yr(yn,y),Lh=v(jT(n.g,Wk(Um(Sr,SUe))),27),re=Um(Sr,"targetPort"),g=null,re&&(g=Wk(re)),Ll=v(jT(n.j,g),123),!Lh)throw q=Z8(Sr),Me="An edge must have a target node (edge id: '"+q,Ue=Me+UI,_e(new zp(Ue));if(Ll&&!Wp(z1(Ll),Lh))throw O=zm(Sr,ug),je="The target port of an edge must be a port of the edge's target node (edge id: '"+O,yt=je+UI,_e(new zp(yt));if(mn=(!Xn.c&&(Xn.c=new Gn(Lr,Xn,5,8)),Xn.c),x=null,Ll?x=Ll:x=Lh,Yr(mn,x),(!Xn.b&&(Xn.b=new Gn(Lr,Xn,4,7)),Xn.b).i==0||(!Xn.c&&(Xn.c=new Gn(Lr,Xn,5,8)),Xn.c).i==0)throw D=zm(Sr,ug),xt=MZt+D,Mt=xt+UI,_e(new zp(Mt));return sJ(Sr,Xn),S3r(Sr,Xn),Kn=c0e(n,Sr,Xn),Kn}function CKt(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(re=v(oe(n,(Uv(),m6)),27),Ue=qi,je=qi,Se=Po,Me=Po,xt=new me(n.e);xt.a<xt.c.c.length;)yt=v(pe(xt),153),Xn=yt.d,Sr=yt.e,Ue=u.Math.min(Ue,Xn.a-Sr.a/2),je=u.Math.min(je,Xn.b-Sr.b/2),Se=u.Math.max(Se,Xn.a+Sr.a/2),Me=u.Math.max(Me,Xn.b+Sr.b/2);for(l=new me(n.b);l.a<l.c.c.length;)i=v(pe(l),250),Xn=i.d,Sr=i.e,Ue=u.Math.min(Ue,Xn.a-Sr.a/2),je=u.Math.min(je,Xn.b-Sr.b/2),Se=u.Math.max(Se,Xn.a+Sr.a/2),Me=u.Math.max(Me,Xn.b+Sr.b/2);for(Kn=v(Et(re,(A0(),pnn)),107),mn=new Ct(Kn.b-Ue,Kn.d-je),O=new me(n.e);O.a<O.c.c.length;)R=v(pe(O),153),yn=oe(R,m6),$e(yn,207)&&(le=v(yn,27),Mt=Hi(new Wo(R.d),mn),ef(le,Mt.a-le.g/2,Mt.b-le.f/2));for(y=new me(n.c);y.a<y.c.c.length;)g=v(pe(y),290),q=v(oe(g,m6),74),J=o5(q,!0,!0),Ui=new Wo(o9e(g)),Hi(Ui,mn),PU(J,Ui.a,Ui.b),Cu(g.a,new qRt(mn,J)),d=new Wo(l9e(g)),Hi(d,mn),MU(J,d.a,d.b);for(T=new me(n.d);T.a<T.c.c.length;)x=v(pe(T),454),ae=v(oe(x,m6),135),de=Hi(new Wo(x.d),mn),ef(ae,de.a,de.b);Fa=Se-Ue+(Kn.b+Kn.c),D=Me-je+(Kn.d+Kn.a),Vt(Ht(Et(re,(Ei(),i3))))||JE(re,Fa,D,!1,!0),sa(re,Z5,Fa-(Kn.b+Kn.c)),sa(re,Q5,D-(Kn.d+Kn.a))}function AKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;return q=qAr(Hu(n,(Bt(),hp)),i),ae=t5(Hu(n,F0),i),je=t5(Hu(n,Fd),i),yn=eJ(Hu(n,Zf),i),J=eJ(Hu(n,xf),i),Me=t5(Hu(n,$0),i),le=t5(Hu(n,Ih),i),xt=t5(Hu(n,$d),i),yt=t5(Hu(n,Sf),i),mn=eJ(Hu(n,Du),i),Se=t5(Hu(n,Qu),i),Ue=t5(Hu(n,Nh),i),Mt=t5(Hu(n,Xu),i),Kn=eJ(Hu(n,Zu),i),re=eJ(Hu(n,mh),i),de=t5(Hu(n,ou),i),l=YT(Te(xe(ao,1),_l,28,15,[Me.a,yn.a,xt.a,Kn.a])),d=YT(Te(xe(ao,1),_l,28,15,[ae.a,q.a,je.a,de.a])),g=Se.a,y=YT(Te(xe(ao,1),_l,28,15,[le.a,J.a,yt.a,re.a])),O=YT(Te(xe(ao,1),_l,28,15,[Me.b,ae.b,le.b,Ue.b])),R=YT(Te(xe(ao,1),_l,28,15,[yn.b,q.b,J.b,de.b])),D=mn.b,T=YT(Te(xe(ao,1),_l,28,15,[xt.b,je.b,yt.b,Mt.b])),ey(Hu(n,hp),l+g,O+D),ey(Hu(n,ou),l+g,O+D),ey(Hu(n,F0),l+g,0),ey(Hu(n,Fd),l+g,O+D+R),ey(Hu(n,Zf),0,O+D),ey(Hu(n,xf),l+g+d,O+D),ey(Hu(n,Ih),l+g+d,0),ey(Hu(n,$d),0,O+D+R),ey(Hu(n,Sf),l+g+d,O+D+R),ey(Hu(n,Du),0,O),ey(Hu(n,Qu),l,0),ey(Hu(n,Xu),0,O+D+R),ey(Hu(n,mh),l+g+d,0),x=new ho,x.a=YT(Te(xe(ao,1),_l,28,15,[l+d+g+y,mn.a,Ue.a,Mt.a])),x.b=YT(Te(xe(ao,1),_l,28,15,[O+R+D+T,Se.b,Kn.b,re.b])),x}function kKt(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(Me=new Ct(ka,ka),i=new Ct(Ss,Ss),yn=new me(n);yn.a<yn.c.c.length;)Mt=v(pe(yn),8),Me.a=u.Math.min(Me.a,Mt.a),Me.b=u.Math.min(Me.b,Mt.b),i.a=u.Math.max(i.a,Mt.a),i.b=u.Math.max(i.b,Mt.b);for(J=new Ct(i.a-Me.a,i.b-Me.b),O=new Ct(Me.a-50,Me.b-J.a-50),D=new Ct(Me.a-50,i.b+J.a+50),q=new Ct(i.a+J.b/2+50,Me.b+J.b/2),re=new IPe(O,D,q),xt=new fs,y=new Ot,l=new Ot,xt.a.zc(re,xt),Kn=new me(n);Kn.a<Kn.c.c.length;){for(mn=v(pe(Kn),8),y.c.length=0,yt=xt.a.ec().Kc();yt.Ob();)Ue=v(yt.Pb(),317),d=Ue.d,$v(d,Ue.a),HE($v(Ue.d,mn),$v(Ue.d,Ue.a))<0&&jn(y.c,Ue);for(l.c.length=0,je=new me(y);je.a<je.c.c.length;)for(Ue=v(pe(je),317),de=new me(Ue.e);de.a<de.c.c.length;){for(ae=v(pe(de),177),x=!0,R=new me(y);R.a<R.c.c.length;)T=v(pe(R),317),T!=Ue&&(Ec(ae,Yt(T.e,0))||Ec(ae,Yt(T.e,1))||Ec(ae,Yt(T.e,2)))&&(x=!1);x&&jn(l.c,ae)}for(rHt(xt,y),To(xt,new fe),le=new me(l);le.a<le.c.c.length;)ae=v(pe(le),177),Es(xt,new IPe(mn,ae.a,ae.b))}for(Se=new fs,To(xt,new V5t(Se)),g=Se.a.ec().Kc();g.Ob();)ae=v(g.Pb(),177),(YQ(re,ae.a)||YQ(re,ae.b))&&g.Qb();return To(Se,new Qe),Se}function Lc(){Lc=z,v7t(),Uun=Ks.a,v(ze(bt(Ks.a),0),19),Fun=Ks.f,v(ze(bt(Ks.f),0),19),v(ze(bt(Ks.f),1),35),$un=Ks.n,v(ze(bt(Ks.n),0),35),v(ze(bt(Ks.n),1),35),v(ze(bt(Ks.n),2),35),v(ze(bt(Ks.n),3),35),yKe=Ks.g,v(ze(bt(Ks.g),0),19),v(ze(bt(Ks.g),1),35),Bun=Ks.c,v(ze(bt(Ks.c),0),19),v(ze(bt(Ks.c),1),19),vKe=Ks.i,v(ze(bt(Ks.i),0),19),v(ze(bt(Ks.i),1),19),v(ze(bt(Ks.i),2),19),v(ze(bt(Ks.i),3),19),v(ze(bt(Ks.i),4),35),_Ke=Ks.j,v(ze(bt(Ks.j),0),19),bKe=Ks.d,v(ze(bt(Ks.d),0),19),v(ze(bt(Ks.d),1),19),v(ze(bt(Ks.d),2),19),v(ze(bt(Ks.d),3),19),v(ze(bt(Ks.d),4),35),v(ze(bt(Ks.d),5),35),v(ze(bt(Ks.d),6),35),v(ze(bt(Ks.d),7),35),Pun=Ks.b,v(ze(bt(Ks.b),0),35),v(ze(bt(Ks.b),1),35),ire=Ks.e,v(ze(bt(Ks.e),0),35),v(ze(bt(Ks.e),1),35),v(ze(bt(Ks.e),2),35),v(ze(bt(Ks.e),3),35),v(ze(bt(Ks.e),4),19),v(ze(bt(Ks.e),5),19),v(ze(bt(Ks.e),6),19),v(ze(bt(Ks.e),7),19),v(ze(bt(Ks.e),8),19),v(ze(bt(Ks.e),9),19),v(ze(bt(Ks.e),10),35),om=Ks.k,v(ze(bt(Ks.k),0),35),v(ze(bt(Ks.k),1),35)}function QPe(n){var i,l,d,g,y;switch(i=n.c,i){case 11:return n.vm();case 12:return n.xm();case 14:return n.zm();case 15:return n.Cm();case 16:return n.Am();case 17:return n.Dm();case 21:return $i(n),zi(),zi(),sB;case 10:switch(n.a){case 65:return n.hm();case 90:return n.mm();case 122:return n.tm();case 98:return n.nm();case 66:return n.im();case 60:return n.sm();case 62:return n.qm()}}switch(y=KRr(n),i=n.c,i){case 3:return n.Im(y);case 4:return n.Gm(y);case 5:return n.Hm(y);case 0:if(n.a==123&&n.d<n.j){if(g=n.d,d=0,l=-1,(i=Do(n.i,g++))>=48&&i<=57){for(d=i-48;g<n.j&&(i=Do(n.i,g++))>=48&&i<=57;)if(d=d*10+i-48,d<0)throw _e(new oi(fi((ii(),IUe))))}else throw _e(new oi(fi((ii(),cJt))));if(l=d,i==44){if(g>=n.j)throw _e(new oi(fi((ii(),hJt))));if((i=Do(n.i,g++))>=48&&i<=57){for(l=i-48;g<n.j&&(i=Do(n.i,g++))>=48&&i<=57;)if(l=l*10+i-48,l<0)throw _e(new oi(fi((ii(),IUe))));if(d>l)throw _e(new oi(fi((ii(),dJt))))}else l=-1}if(i!=125)throw _e(new oi(fi((ii(),uJt))));n.bm(g)?(y=(zi(),zi(),new r4(9,y)),n.d=g+1):(y=(zi(),zi(),new r4(3,y)),n.d=g),y.Om(d),y.Nm(l),$i(n)}}return y}function e8r(n){var i,l,d,g,y;switch(l=v(oe(n,(At(),au)),21),i=EX(Dnn),g=v(oe(n,(qt(),W4)),346),g==(Km(),Cy)&&Rd(i,Mnn),Vt(Ht(oe(n,Wye)))?yi(i,(Mo(),N0),(qo(),rye)):yi(i,(Mo(),qc),(qo(),rye)),oe(n,(UQ(),MP))!=null&&Rd(i,Pnn),(Vt(Ht(oe(n,qHe)))||Vt(Ht(oe(n,$He))))&&ch(i,(Mo(),Gl),(qo(),FGe)),v(oe(n,Pd),88).g){case 2:case 3:case 4:ch(yi(i,(Mo(),N0),(qo(),UGe)),Gl,$Ge)}switch(l.Hc((cl(),qte))&&ch(yi(yi(i,(Mo(),N0),(qo(),BGe)),ru,MGe),Gl,PGe),Ze(oe(n,h2))!==Ze((qf(),bne))&&yi(i,(Mo(),qc),(qo(),tqe)),l.Hc(Vte)&&(yi(i,(Mo(),N0),(qo(),aqe)),yi(i,em,rqe),yi(i,qc,iqe)),Ze(oe(n,Jte))!==Ze((aI(),rP))&&Ze(oe(n,lb))!==Ze((Xm(),uH))&&ch(i,(Mo(),Gl),(qo(),KGe)),Vt(Ht(oe(n,zHe)))&&yi(i,(Mo(),qc),(qo(),WGe)),Vt(Ht(oe(n,Hye)))&&yi(i,(Mo(),qc),(qo(),sqe)),fTr(n)&&(Ze(oe(n,W4))===Ze(Cy)?d=v(oe(n,Pq),299):d=v(oe(n,qye),299),y=d==(P8(),kye)?(qo(),nqe):(qo(),cqe),yi(i,(Mo(),ru),y)),v(oe(n,gVe),388).g){case 1:yi(i,(Mo(),ru),(qo(),oqe));break;case 2:ch(yi(yi(i,(Mo(),qc),(qo(),NGe)),ru,OGe),Gl,LGe)}return Ze(oe(n,nm))!==Ze((Zp(),wy))&&yi(i,(Mo(),qc),(qo(),lqe)),i}function RKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;if(Tu(n.a,i)){if(r1(v(br(n.a,i),49),l))return 1}else Ni(n.a,i,new fs);if(Tu(n.a,l)){if(r1(v(br(n.a,l),49),i))return-1}else Ni(n.a,l,new fs);if(Tu(n.e,i)){if(r1(v(br(n.e,i),49),l))return-1}else Ni(n.e,i,new fs);if(Tu(n.e,l)){if(r1(v(br(n.a,l),49),i))return 1}else Ni(n.e,l,new fs);if(n.c==(Zp(),uve)||!ya(i,(At(),ua))||!ya(l,(At(),ua))){for(q=null,O=new me(i.j);O.a<O.c.c.length;)T=v(pe(O),12),T.e.c.length==0||v(Yt(T.e,0),18).c.i.c!=i.c&&(q=v(Yt(T.e,0),18).c);for(re=null,R=new me(l.j);R.a<R.c.c.length;)T=v(pe(R),12),T.e.c.length==0||v(Yt(T.e,0),18).c.i.c!=l.c&&(re=v(Yt(T.e,0),18).c);if(q&&re){if(D=q.i,J=re.i,D&&D==J){for(le=new me(D.j);le.a<le.c.c.length;){if(ae=v(pe(le),12),ae==q)return dI(n,l,i),-1;if(ae==re)return dI(n,i,l),1}return Nc(m1e(n,i),m1e(n,l))}for(Se=n.d,Me=0,Ue=Se.length;Me<Ue;++Me){if(de=Se[Me],de==D)return dI(n,l,i),-1;if(de==J)return dI(n,i,l),1}}if(!ya(i,(At(),ua))||!ya(l,ua))return g=m1e(n,i),x=m1e(n,l),g>x?dI(n,i,l):dI(n,l,i),g<x?-1:g>x?1:0}return d=v(oe(i,(At(),ua)),17).a,y=v(oe(l,ua),17).a,d>y?dI(n,i,l):dI(n,l,i),d<y?-1:d>y?1:0}function ex(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(l==null)return null;if(n.a!=i.jk())throw _e(new ar(FI+i.xe()+lx));if($e(i,469)){if(de=V5r(v(i,685),l),!de)throw _e(new ar(Nme+l+"' is not a valid enumerator of '"+i.xe()+"'"));return de}switch(ay((dh(),ko),i).Nl()){case 2:{l=eu(l,!1);break}case 3:{l=eu(l,!0);break}}if(d=ay(ko,i).Jl(),d)return d.jk().wi().ti(d,l);if(J=ay(ko,i).Ll(),J){for(de=new Ot,O=p0e(l),D=0,q=O.length;D<q;++D)R=O[D],Lt(de,J.jk().wi().ti(J,R));return de}if(le=ay(ko,i).Ml(),!le.dc()){for(ae=le.Kc();ae.Ob();){re=v(ae.Pb(),156);try{if(de=re.jk().wi().ti(re,l),de!=null)return de}catch(Se){if(Se=Da(Se),!$e(Se,63))throw _e(Se)}}throw _e(new ar(Nme+l+"' does not match any member types of the union datatype '"+i.xe()+"'"))}if(v(i,847).ok(),g=lyr(i.kk()),!g)return null;if(g==WM){x=0;try{x=Nd(l,Po,qi)&vs}catch(Se){if(Se=Da(Se),$e(Se,130))y=jQ(l),x=y[0];else throw _e(Se)}return Lz(x)}if(g==Qee){for(T=0;T<QP.length;++T)try{return NRt(QP[T],l)}catch(Se){if(Se=Da(Se),!$e(Se,33))throw _e(Se)}throw _e(new ar(Nme+l+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw _e(new ar(Nme+l+"' is invalid. "))}function _pe(){_pe=z,da=new OE,Rn(da,(Bt(),hp),ou),Rn(da,Zf,ou),Rn(da,Zf,Zu),Rn(da,xf,mh),Rn(da,xf,ou),Rn(da,F0,ou),Rn(da,F0,Nh),Rn(da,Fd,Xu),Rn(da,Fd,ou),Rn(da,Qu,Du),Rn(da,Qu,ou),Rn(da,Qu,Nh),Rn(da,Qu,Xu),Rn(da,Du,Qu),Rn(da,Du,Zu),Rn(da,Du,mh),Rn(da,Du,ou),Rn(da,$0,$0),Rn(da,$0,Nh),Rn(da,$0,Zu),Rn(da,Ih,Ih),Rn(da,Ih,Nh),Rn(da,Ih,mh),Rn(da,$d,$d),Rn(da,$d,Xu),Rn(da,$d,Zu),Rn(da,Sf,Sf),Rn(da,Sf,Xu),Rn(da,Sf,mh),Rn(da,Nh,F0),Rn(da,Nh,Qu),Rn(da,Nh,$0),Rn(da,Nh,Ih),Rn(da,Nh,ou),Rn(da,Nh,Nh),Rn(da,Nh,Zu),Rn(da,Nh,mh),Rn(da,Xu,Fd),Rn(da,Xu,Qu),Rn(da,Xu,$d),Rn(da,Xu,Sf),Rn(da,Xu,Xu),Rn(da,Xu,Zu),Rn(da,Xu,mh),Rn(da,Xu,ou),Rn(da,Zu,Zf),Rn(da,Zu,Du),Rn(da,Zu,$0),Rn(da,Zu,$d),Rn(da,Zu,Nh),Rn(da,Zu,Xu),Rn(da,Zu,Zu),Rn(da,Zu,ou),Rn(da,mh,xf),Rn(da,mh,Du),Rn(da,mh,Ih),Rn(da,mh,Sf),Rn(da,mh,Nh),Rn(da,mh,Xu),Rn(da,mh,mh),Rn(da,mh,ou),Rn(da,ou,hp),Rn(da,ou,Zf),Rn(da,ou,xf),Rn(da,ou,F0),Rn(da,ou,Fd),Rn(da,ou,Qu),Rn(da,ou,Du),Rn(da,ou,Nh),Rn(da,ou,Xu),Rn(da,ou,Zu),Rn(da,ou,mh),Rn(da,ou,ou)}function ZPe(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn;for(n.d=new Ct(ka,ka),n.c=new Ct(Ss,Ss),J=i.Kc();J.Ob();)for(D=v(J.Pb(),36),Ue=new me(D.a);Ue.a<Ue.c.c.length;)Me=v(pe(Ue),10),n.d.a=u.Math.min(n.d.a,Me.n.a-Me.d.b),n.d.b=u.Math.min(n.d.b,Me.n.b-Me.d.d),n.c.a=u.Math.max(n.c.a,Me.n.a+Me.o.a+Me.d.c),n.c.b=u.Math.max(n.c.b,Me.n.b+Me.o.b+Me.d.a);for(T=new n6t,q=i.Kc();q.Ob();)D=v(q.Pb(),36),d=PRr(n,D),Lt(T.a,d),d.a=d.a|!v(oe(d.c,(At(),ob)),21).dc();for(n.b=(_0e(),yn=new wT,yn.f=new v$t(l),yn.b=q6r(yn.f,T),yn),t7r((ae=n.b,new tk,ae)),n.e=new ho,n.a=n.b.f.e,x=new me(T.a);x.a<x.c.c.length;)for(g=v(pe(x),855),je=Pfr(n.b,g),NCr(g.c,je.a,je.b),de=new me(g.c.a);de.a<de.c.c.length;)le=v(pe(de),10),le.k==(lr(),hs)&&(Se=HMe(n,le.n,v(oe(le,(At(),vc)),64)),Hi(i1(le.n),Se));for(y=new me(T.a);y.a<y.c.c.length;)for(g=v(pe(y),855),O=new me(Jyr(g));O.a<O.c.c.length;)for(R=v(pe(O),18),Mt=new MK(R.a),JR(Mt,0,q1(R.c)),pi(Mt,q1(R.d)),re=null,xt=Ur(Mt,0);xt.b!=xt.d.c;){if(yt=v(Fr(xt),8),!re){re=yt;continue}JOe(re.a,yt.a)?(n.e.a=u.Math.min(n.e.a,re.a),n.a.a=u.Math.max(n.a.a,re.a)):JOe(re.b,yt.b)&&(n.e.b=u.Math.min(n.e.b,re.b),n.a.b=u.Math.max(n.a.b,re.b)),re=yt}OX(n.e),Hi(n.a,n.e)}function t8r(n,i){var l,d,g,y,x,T,R,O;if(l=0,x=0,y=i.length,T=null,O=new sk,x<y&&(sr(x,i.length),i.charCodeAt(x)==43)&&(++x,++l,x<y&&(sr(x,i.length),i.charCodeAt(x)==43||(sr(x,i.length),i.charCodeAt(x)==45))))throw _e(new Gp(nx+i+'"'));for(;x<y&&(sr(x,i.length),i.charCodeAt(x)!=46)&&(sr(x,i.length),i.charCodeAt(x)!=101)&&(sr(x,i.length),i.charCodeAt(x)!=69);)++x;if(O.a+=""+af(i==null?Ku:(hr(i),i),l,x),x<y&&(sr(x,i.length),i.charCodeAt(x)==46)){for(++x,l=x;x<y&&(sr(x,i.length),i.charCodeAt(x)!=101)&&(sr(x,i.length),i.charCodeAt(x)!=69);)++x;n.e=x-l,O.a+=""+af(i==null?Ku:(hr(i),i),l,x)}else n.e=0;if(x<y&&(sr(x,i.length),i.charCodeAt(x)==101||(sr(x,i.length),i.charCodeAt(x)==69))&&(++x,l=x,x<y&&(sr(x,i.length),i.charCodeAt(x)==43)&&(++x,x<y&&(sr(x,i.length),i.charCodeAt(x)!=45)&&++l),T=(mo(l,y,i.length),i.substr(l,y-l)),n.e=n.e-Nd(T,Po,qi),n.e!=Ps(n.e)))throw _e(new Gp("Scale out of range."));if(R=O.a,R.length<16){if(n.f=(bze==null&&(bze=new RegExp("^[+-]?\\d*$","i")),bze.test(R)?parseInt(R,10):NaN),isNaN(n.f))throw _e(new Gp(nx+i+'"'));n.a=vMe(n.f)}else Byr(n,new Ov(R));for(n.d=O.a.length,g=0;g<O.a.length&&(d=Do(O.a,g),!(d!=45&&d!=48));++g)--n.d;n.d==0&&(n.d=1)}function n8r(n){Jr(n.b,Yf,Te(xe(Xt,1),kt,2,6,[cx,"ConsistentTransient"])),Jr(n.a,Yf,Te(xe(Xt,1),kt,2,6,[cx,"WellFormedSourceURI"])),Jr(n.o,Yf,Te(xe(Xt,1),kt,2,6,[cx,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Jr(n.p,Yf,Te(xe(Xt,1),kt,2,6,[cx,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Jr(n.v,Yf,Te(xe(Xt,1),kt,2,6,[cx,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Jr(n.R,Yf,Te(xe(Xt,1),kt,2,6,[cx,"WellFormedName"])),Jr(n.T,Yf,Te(xe(Xt,1),kt,2,6,[cx,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Jr(n.U,Yf,Te(xe(Xt,1),kt,2,6,[cx,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Jr(n.W,Yf,Te(xe(Xt,1),kt,2,6,[cx,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Jr(n.bb,Yf,Te(xe(Xt,1),kt,2,6,[cx,"ValidDefaultValueLiteral"])),Jr(n.eb,Yf,Te(xe(Xt,1),kt,2,6,[cx,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Jr(n.H,Yf,Te(xe(Xt,1),kt,2,6,[cx,"ConsistentType ConsistentBounds ConsistentArguments"]))}function r8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;if(!i.dc()){if(g=new ah,T=l||v(i.Xb(0),18),ae=T.c,aM(),J=ae.i.k,!(J==(lr(),is)||J==iu||J==hs||J==ip))throw _e(new ar("The target node of the edge must be a normal node or a northSouthPort."));for(jo(g,ac(Te(xe(Vs,1),kt,8,0,[ae.i.n,ae.n,ae.a]))),(Bt(),Qu).Hc(ae.j)&&(de=We(at(oe(ae,(At(),aN)))),q=new Ct(ac(Te(xe(Vs,1),kt,8,0,[ae.i.n,ae.n,ae.a])).a,de),qa(g,q,g.c.b,g.c)),D=null,d=!1,R=i.Kc();R.Ob();)x=v(R.Pb(),18),y=x.a,y.b!=0&&(d?(O=Vp(Hi(D,(Tr(y.b!=0),v(y.a.a.c,8))),.5),qa(g,O,g.c.b,g.c),d=!1):d=!0,D=Eo((Tr(y.b!=0),v(y.c.b.c,8))),bo(g,y),xd(y));le=T.d,Qu.Hc(le.j)&&(de=We(at(oe(le,(At(),aN)))),q=new Ct(ac(Te(xe(Vs,1),kt,8,0,[le.i.n,le.n,le.a])).a,de),qa(g,q,g.c.b,g.c)),jo(g,ac(Te(xe(Vs,1),kt,8,0,[le.i.n,le.n,le.a]))),n.d==(H8(),bve)&&(Se=(Tr(g.b!=0),v(g.a.a.c,8)),Me=v(gf(g,1),8),Ue=new sfe(X9e(ae.j)),Ue.a*=5,Ue.b*=5,je=$s(new Ct(Me.a,Me.b),Se),yt=new Ct(tfe(Ue.a,je.a),tfe(Ue.b,je.b)),Hi(yt,Se),xt=Ur(g,1),tz(xt,yt),Mt=(Tr(g.b!=0),v(g.c.b.c,8)),yn=v(gf(g,g.b-2),8),Ue=new sfe(X9e(le.j)),Ue.a*=5,Ue.b*=5,je=$s(new Ct(yn.a,yn.b),Mt),mn=new Ct(tfe(Ue.a,je.a),tfe(Ue.b,je.b)),Hi(mn,Mt),JR(g,g.b-1,mn)),re=new NPe(g),bo(T.a,VGt(re))}}function i8r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll,zd,cC,Ly,U0,z0;if(Ue=v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84),yt=Ue.nh(),xt=Ue.oh(),je=Ue.mh()/2,le=Ue.lh()/2,$e(Ue,193)&&(Me=v(Ue,123),yt+=z1(Me).i,yt+=z1(Me).i),yt+=je,xt+=le,Xn=v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84),Ui=Xn.nh(),Fa=Xn.oh(),Sr=Xn.mh()/2,Mt=Xn.lh()/2,$e(Xn,193)&&(Kn=v(Xn,123),Ui+=z1(Kn).i,Ui+=z1(Kn).i),Ui+=Sr,Fa+=Mt,(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i==0)T=(kv(),O=new dK,O),Yr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),T);else if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i>1)for(ae=new gk((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));ae.e!=ae.i.gc();)XD(ae);for(x=v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166),de=Ui,Ui>yt+je?de=yt+je:Ui<yt-je&&(de=yt-je),Se=Fa,Fa>xt+le?Se=xt+le:Fa<xt-le&&(Se=xt-le),de>yt-je&&de<yt+je&&Se>xt-le&&Se<xt+le&&(de=yt+je),T8(x,de),A8(x,Se),yn=yt,yt>Ui+Sr?yn=Ui+Sr:yt<Ui-Sr&&(yn=Ui-Sr),mn=xt,xt>Fa+Mt?mn=Fa+Mt:xt<Fa-Mt&&(mn=Fa-Mt),yn>Ui-Sr&&yn<Ui+Sr&&mn>Fa-Mt&&mn<Fa+Mt&&(mn=Fa+Mt),S8(x,yn),C8(x,mn),Gr((!x.a&&(x.a=new gs(Ud,x,5)),x.a)),y=KZ(i,5),Ue==Xn&&++y,zd=yn-de,U0=mn-Se,Lh=u.Math.sqrt(zd*zd+U0*U0),q=Lh*.20000000298023224,cC=zd/(y+1),z0=U0/(y+1),Ll=de,Ly=Se,D=0;D<y;D++)Ll+=cC,Ly+=z0,J=Ll+Gh(i,24)*GG*q-q/2,J<0?J=1:J>l&&(J=l-1),re=Ly+Gh(i,24)*GG*q-q/2,re<0?re=1:re>d&&(re=d-1),g=(kv(),R=new hK,R),nZ(g,J),tZ(g,re),Yr((!x.a&&(x.a=new gs(Ud,x,5)),x.a),g)}function IKt(n){dE(n,new H_(cE(sE(lE(oE(new f_,Vh),"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 _xt))),It(n,Vh,s6,1.3),It(n,Vh,RI,(Qn(),!1)),It(n,Vh,rx,cje),It(n,Vh,N4,15),It(n,Vh,gee,zt(jln)),It(n,Vh,y5,zt(Xln)),It(n,Vh,l6,zt(Zln)),It(n,Vh,o6,zt(Jln)),It(n,Vh,II,zt(Kln)),It(n,Vh,TM,zt(e2e)),It(n,Vh,NI,zt(ecn)),It(n,Vh,H$e,zt(fje)),It(n,Vh,V$e,zt(dje)),It(n,Vh,q$e,zt(n2e)),It(n,Vh,G$e,zt(pje)),It(n,Vh,Y$e,zt(lje)),It(n,Vh,j$e,zt(t2e)),It(n,Vh,W$e,zt(oje)),It(n,Vh,K$e,zt(hje)),It(n,Vh,SM,zt(sje)),It(n,Vh,bee,zt(Wln)),It(n,Vh,U$e,zt(Qq)),It(n,Vh,$$e,zt(aje)),It(n,Vh,z$e,zt(Zq)),It(n,Vh,F$e,zt(uje))}function wpe(n,i){spe();var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;if(Ue=n.e,D=n.d,g=n.a,Ue==0)switch(i){case 0:return"0";case 1:return xI;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 Se=new Cv,Se.a+="0E",Se.a+=-i,Se.a}if(le=D*10+1+7,de=st(Tf,rg,28,le+1,15,1),l=le,D==1)if(y=g[0],y<0){Mt=Us(y,ul);do q=Mt,Mt=oG(Mt,10),de[--l]=48+ti(zf(q,Go(Mt,10)))&vs;while(Oc(Mt,0)!=0)}else{Mt=y;do q=Mt,Mt=Mt/10|0,de[--l]=48+(q-Mt*10)&vs;while(Mt!=0)}else{je=st(Wr,vi,28,D,15,1),xt=D,Gc(g,0,je,0,xt);e:for(;;){for(Me=0,T=xt-1;T>=0;T--)yt=zo(w0(Me,32),Us(je[T],ul)),re=qEr(yt),je[T]=ti(re),Me=ti(xE(re,32));ae=ti(Me),J=l;do de[--l]=48+ae%10&vs;while((ae=ae/10|0)!=0&&l!=0);for(d=9-J+l,x=0;x<d&&l>0;x++)de[--l]=48;for(R=xt-1;je[R]==0;R--)if(R==0)break e;xt=R+1}for(;de[l]==48;)++l}return O=Ue<0,O&&(de[--l]=45),Qp(de,l,le-l)}function NKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;switch(n.c=i,n.g=new Br,l=(fE(),new aE(n.c)),d=new _K(l),NLe(d),Ue=ai(Et(n.c,(cG(),Lje))),R=v(Et(n.c,d2e),324),yt=v(Et(n.c,f2e),437),x=v(Et(n.c,Ije),490),je=v(Et(n.c,h2e),438),n.j=We(at(Et(n.c,pcn))),T=n.a,R.g){case 0:T=n.a;break;case 1:T=n.b;break;case 2:T=n.i;break;case 3:T=n.e;break;case 4:T=n.f;break;default:throw _e(new ar(Cee+(R.f!=null?R.f:""+R.g)))}if(n.d=new SDt(T,yt,x),_t(n.d,(L8(),ZM),Ht(Et(n.c,dcn))),n.d.c=Vt(Ht(Et(n.c,Nje))),bQ(n.c).i==0)return n.d;for(q=new mr(bQ(n.c));q.e!=q.i.gc();){for(D=v(wr(q),27),re=D.g/2,J=D.f/2,xt=new Ct(D.i+re,D.j+J);Tu(n.g,xt);)_E(xt,(u.Math.random()-.5)*sg,(u.Math.random()-.5)*sg);le=v(Et(D,(Ei(),vN)),140),de=new FDt(xt,new rf(xt.a-re-n.j/2-le.b,xt.b-J-n.j/2-le.d,D.g+n.j+(le.b+le.c),D.f+n.j+(le.d+le.a))),Lt(n.d.i,de),Ni(n.g,xt,new Ms(de,D))}switch(je.g){case 0:if(Ue==null)n.d.d=v(Yt(n.d.i,0),68);else for(Me=new me(n.d.i);Me.a<Me.c.c.length;)de=v(pe(Me),68),ae=v(v(br(n.g,de.a),42).b,27).jh(),ae!=null&&An(ae,Ue)&&(n.d.d=de);break;case 1:for(g=new Ct(n.c.g,n.c.f),g.a*=.5,g.b*=.5,_E(g,n.c.i,n.c.j),y=ka,Se=new me(n.d.i);Se.a<Se.c.c.length;)de=v(pe(Se),68),O=$v(de.a,g),O<y&&(y=O,n.d.d=de);break;default:throw _e(new ar(Cee+(je.f!=null?je.f:""+je.g)))}return n.d}function a8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(J=0,g=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));g.e!=g.i.gc();)d=v(wr(g),27),Vt(Ht(Et(d,(qt(),hw))))||(D=Aa(d),(Ze(Et(D,nm))!==Ze((Zp(),wy))||Ze(Et(D,ow))===Ze((ly(),eN))||Ze(Et(D,ow))===Ze((ly(),JI))||Vt(Ht(Et(D,vx)))||Ze(Et(D,j4))!==Ze((z_(),z4))||Ze(Et(D,h2))===Ze((qf(),Tx))||Ze(Et(D,h2))===Ze((qf(),e3))||Ze(Et(D,cw))===Ze((fy(),dN))||Ze(Et(D,cw))===Ze((fy(),fN)))&&!Vt(Ht(Et(d,tne)))&&(sa(d,(At(),ua),Nt(J)),++J),SKt(n,d,l));for(J=0,O=new mr((!i.b&&(i.b=new vt(ss,i,12,3)),i.b));O.e!=O.i.gc();)T=v(wr(O),74),(Ze(Et(i,(qt(),nm)))!==Ze((Zp(),wy))||Ze(Et(i,ow))===Ze((ly(),eN))||Ze(Et(i,ow))===Ze((ly(),JI))||Vt(Ht(Et(i,vx)))||Ze(Et(i,j4))!==Ze((z_(),z4))||Ze(Et(i,h2))===Ze((qf(),Tx))||Ze(Et(i,h2))===Ze((qf(),e3))||Ze(Et(i,cw))===Ze((fy(),dN))||Ze(Et(i,cw))===Ze((fy(),fN)))&&(sa(T,(At(),ua),Nt(J)),++J),le=Hg(T),de=jv(T),q=Vt(Ht(Et(le,K4))),ae=!Vt(Ht(Et(T,hw))),re=q&&KE(T)&&Vt(Ht(Et(T,lw))),y=Aa(le)==i&&Aa(le)==Aa(de),x=(Aa(le)==i&&de==i)^(Aa(de)==i&&le==i),ae&&!re&&(x||y)&&JPe(n,T,i,l);if(Aa(i))for(R=new mr(QLt(Aa(i)));R.e!=R.i.gc();)T=v(wr(R),74),le=Hg(T),le==i&&KE(T)&&(re=Vt(Ht(Et(le,(qt(),K4))))&&Vt(Ht(Et(T,lw))),re&&JPe(n,T,i,l))}function s8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll,zd;for(l.Ug("Greedy cycle removal",1),Ue=i.a,zd=Ue.c.length,n.a=st(Wr,vi,28,zd,15,1),n.c=st(Wr,vi,28,zd,15,1),n.b=st(Wr,vi,28,zd,15,1),O=0,Se=new me(Ue);Se.a<Se.c.c.length;){for(le=v(pe(Se),10),le.p=O,mn=new me(le.j);mn.a<mn.c.c.length;){for(xt=v(pe(mn),12),T=new me(xt.e);T.a<T.c.c.length;)d=v(pe(T),18),d.c.i!=le&&(Sr=v(oe(d,(qt(),cN)),17).a,n.a[O]+=Sr>0?Sr+1:1);for(x=new me(xt.g);x.a<x.c.c.length;)d=v(pe(x),18),d.d.i!=le&&(Sr=v(oe(d,(qt(),cN)),17).a,n.c[O]+=Sr>0?Sr+1:1)}n.c[O]==0?pi(n.e,le):n.a[O]==0&&pi(n.f,le),++O}for(ae=-1,re=1,q=new Ot,n.d=v(oe(i,(At(),x6)),234);zd>0;){for(;n.e.b!=0;)Fa=v(dde(n.e),10),n.b[Fa.p]=ae--,_Pe(n,Fa),--zd;for(;n.f.b!=0;)Lh=v(dde(n.f),10),n.b[Lh.p]=re++,_Pe(n,Lh),--zd;if(zd>0){for(J=Po,Me=new me(Ue);Me.a<Me.c.c.length;)le=v(pe(Me),10),n.b[le.p]==0&&(je=n.c[le.p]-n.a[le.p],je>=J&&(je>J&&(q.c.length=0,J=je),jn(q.c,le)));D=n.sg(q),n.b[D.p]=re++,_Pe(n,D),--zd}}for(Ui=Ue.c.length+1,O=0;O<Ue.c.length;O++)n.b[O]<0&&(n.b[O]+=Ui);for(de=new me(Ue);de.a<de.c.c.length;)for(le=v(pe(de),10),Xn=UMt(le.j),Mt=Xn,yn=0,Kn=Mt.length;yn<Kn;++yn)for(xt=Mt[yn],yt=Xp(xt.g),g=yt,y=0,R=g.length;y<R;++y)d=g[y],Ll=d.d.i.p,n.b[le.p]>n.b[Ll]&&(ZE(d,!0),_t(i,Oq,(Qn(),!0)));n.a=null,n.c=null,n.b=null,xd(n.f),xd(n.e),l.Vg()}function OKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;for(yt=v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166),D=new ah,je=new Br,xt=zjt(yt),yu(je.f,yt,xt),J=new Br,d=new Ea,ae=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!i.d&&(i.d=new Gn(ss,i,8,5)),i.d),(!i.e&&(i.e=new Gn(ss,i,7,4)),i.e)])));zr(ae);){if(re=v(Rr(ae),74),(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i!=1)throw _e(new ar(yZt+(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i));re!=n&&(de=v(ze((!re.a&&(re.a=new vt(xa,re,6,6)),re.a),0),166),qa(d,de,d.c.b,d.c),le=v(Pl(ol(je.f,de)),13),le||(le=zjt(de),yu(je.f,de,le)),q=l?$s(new Wo(v(Yt(xt,xt.c.length-1),8)),v(Yt(le,le.c.length-1),8)):$s(new Wo(($n(0,xt.c.length),v(xt.c[0],8))),($n(0,le.c.length),v(le.c[0],8))),yu(J.f,de,q))}if(d.b!=0)for(Se=v(Yt(xt,l?xt.c.length-1:0),8),O=1;O<xt.c.length;O++){for(Me=v(Yt(xt,l?xt.c.length-1-O:O),8),g=Ur(d,0);g.b!=g.d.c;)de=v(Fr(g),166),le=v(Pl(ol(je.f,de)),13),le.c.length<=O?$fe(g):(Ue=Hi(new Wo(v(Yt(le,l?le.c.length-1-O:O),8)),v(Pl(ol(J.f,de)),8)),(Me.a!=Ue.a||Me.b!=Ue.b)&&(y=Me.a-Se.a,T=Me.b-Se.b,x=Ue.a-Se.a,R=Ue.b-Se.b,x*T==R*y&&(y==0||isNaN(y)?y:y<0?-1:1)==(x==0||isNaN(x)?x:x<0?-1:1)&&(T==0||isNaN(T)?T:T<0?-1:1)==(R==0||isNaN(R)?R:R<0?-1:1)?(u.Math.abs(y)<u.Math.abs(x)||u.Math.abs(T)<u.Math.abs(R))&&qa(D,Me,D.c.b,D.c):O>1&&qa(D,Se,D.c.b,D.c),$fe(g)));Se=Me}return D}function LKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(l.Ug(LQt,1),Kn=v(Wl(Ki(new xn(null,new Nn(i,16)),new KEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),D=v(Wl(Ki(new xn(null,new Nn(i,16)),new PAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),ae=v(Wl(Ki(new xn(null,new Nn(i,16)),new MAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),le=st(Sne,wee,40,i.gc(),0,1),x=0;x<D.gc();x++)g=v(D.Xb(x),40),mn=v(oe(g,(pc(),V5)),17).a,mn>=0&&mn<D.gc()&&!le[mn]&&(le[mn]=g,D.gd(x),--x);for(T=0;T<D.gc();T++)for(g=v(D.Xb(T),40),mn=v(oe(g,(pc(),V5)),17).a,J=0;;J++){if(re=mn+J,re<le.length&&re>=0&&!le[re]){le[re]=g,D.gd(T),--T;break}if(re=mn-J,re<le.length&&re>=0&&!le[re]){le[re]=g,D.gd(T),--T;break}}for(ae.jd(new XEt),R=le.length-1;R>=0;R--)!le[R]&&!ae.dc()&&(le[R]=v(ae.Xb(0),40),ae.gd(0));for(O=0;O<le.length;O++)!le[O]&&!Kn.dc()&&(le[O]=v(Kn.Xb(0),40),Kn.gd(0));for(y=0;y<le.length;y++)_t(le[y],(fa(),kP),Nt(y));for(q=v(Wvr(Ki(new xn(null,new Nn(i,16)),new QEt)),534),xt=q,Mt=0,yn=xt.length;Mt<yn;++Mt){for(yt=xt[Mt],d=a0e(yt),LKt(n,d,l.eh(1/q.length|0)),Fn(),D_(d,new Sue((fa(),kP))),de=new Ea,je=Ur(d,0);je.b!=je.d.c;)for(Ue=v(Fr(je),40),Me=Ur(yt.d,0);Me.b!=Me.d.c;)Se=v(Fr(Me),65),Se.c==Ue&&qa(de,Se,de.c.b,de.c);xd(yt.d),bo(yt.d,de)}l.Vg()}function DKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(d=new Ot,T=new Ot,de=i/2,re=n.gc(),g=v(n.Xb(0),8),Se=v(n.Xb(1),8),ae=B1e(g.a,g.b,Se.a,Se.b,de),Lt(d,($n(0,ae.c.length),v(ae.c[0],8))),Lt(T,($n(1,ae.c.length),v(ae.c[1],8))),O=2;O<re;O++)le=g,g=Se,Se=v(n.Xb(O),8),ae=B1e(g.a,g.b,le.a,le.b,de),Lt(d,($n(1,ae.c.length),v(ae.c[1],8))),Lt(T,($n(0,ae.c.length),v(ae.c[0],8))),ae=B1e(g.a,g.b,Se.a,Se.b,de),Lt(d,($n(0,ae.c.length),v(ae.c[0],8))),Lt(T,($n(1,ae.c.length),v(ae.c[1],8)));for(ae=B1e(Se.a,Se.b,g.a,g.b,de),Lt(d,($n(1,ae.c.length),v(ae.c[1],8))),Lt(T,($n(0,ae.c.length),v(ae.c[0],8))),l=new ah,x=new Ot,pi(l,($n(0,d.c.length),v(d.c[0],8))),D=1;D<d.c.length-2;D+=2)y=($n(D,d.c.length),v(d.c[D],8)),J=$Ht(($n(D-1,d.c.length),v(d.c[D-1],8)),y,($n(D+1,d.c.length),v(d.c[D+1],8)),($n(D+2,d.c.length),v(d.c[D+2],8))),!isFinite(J.a)||!isFinite(J.b)?qa(l,y,l.c.b,l.c):qa(l,J,l.c.b,l.c);for(pi(l,v(Yt(d,d.c.length-1),8)),Lt(x,($n(0,T.c.length),v(T.c[0],8))),q=1;q<T.c.length-2;q+=2)y=($n(q,T.c.length),v(T.c[q],8)),J=$Ht(($n(q-1,T.c.length),v(T.c[q-1],8)),y,($n(q+1,T.c.length),v(T.c[q+1],8)),($n(q+2,T.c.length),v(T.c[q+2],8))),!isFinite(J.a)||!isFinite(J.b)?jn(x.c,y):jn(x.c,J);for(Lt(x,v(Yt(T,T.c.length-1),8)),R=x.c.length-1;R>=0;R--)pi(l,($n(R,x.c.length),v(x.c[R],8)));return l}function MKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(Ue=We(at(Et(i,(Vg(),r3)))),re=We(at(Et(i,IP))),J=We(at(Et(i,Dne))),x9e((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a)),Se=TWt((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),Ue,n.b),de=0;de<Se.c.length;de++)if(R=($n(de,Se.c.length),v(Se.c[de],186)),de!=0&&(ae=($n(de-1,Se.c.length),v(Se.c[de-1],186)),rzt(R,ae.f+ae.b+n.b)),le=c8r(de,Se,Ue,n.b,Vt(Ht(Et(i,(Z1(),t2e))))),Vt(Ht(le.b))){for(y=new me(R.a);y.a<y.c.c.length;)g=v(pe(y),172),g.c=!1,g.k=!1,gWt(g);R.d=new Ot,R.e=Ue,--de}else if(Cwr(n,R),de+1<Se.c.length&&(n.e=u.Math.max(R.e+n.b+v(Yt(($n(de+1,Se.c.length),v(Se.c[de+1],186)).a,0),172).r-Ue,n.c),n.f=u.Math.min(R.e+n.b+v(Yt(($n(de+1,Se.c.length),v(Se.c[de+1],186)).a,0),172).r-Ue,n.d),R.d.c.length!=0&&(n.c=u.Math.max(n.c,v(Yt(R.d,R.d.c.length-1),315).d+(R.d.c.length<=1?0:n.b)),n.d=u.Math.min(n.c,v(Yt(R.d,R.d.c.length-1),315).d+(R.d.c.length<=1?0:n.b)))),Se.c.length==1)for(q=v(Yt(R.d,R.d.c.length-1),315),D=v(Yt(q.a,q.a.c.length-1),172),T=new me(D.n);T.a<T.c.c.length;)x=v(pe(T),209),n.c=u.Math.max(n.c,D.r-x.d),n.d=u.Math.min(n.d,D.r-x.d),n.e=u.Math.max(n.e,x.d+n.b),n.f=u.Math.min(n.f,x.d+n.b);return Me=wqt(Se,n.b),je=u.Math.max(Me.a,re-(l.b+l.c)),O=u.Math.max(Me.b,J-(l.d+l.a)),d=O-Me.b,sa(i,RP,d),sa(i,Mne,Se),new YIe(n.a,je,Me.b+d,(rM(),Jq))}function o8r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;if(Mt=v(oe(n,(qt(),Qa)),101),Mt!=(co(),up)&&Mt!=y2){for(ae=n.b,re=ae.c.length,D=new gu((kd(re+2,Ape),QQ(zo(zo(5,re+2),(re+2)/10|0)))),le=new gu((kd(re+2,Ape),QQ(zo(zo(5,re+2),(re+2)/10|0)))),Lt(D,new Br),Lt(D,new Br),Lt(le,new Ot),Lt(le,new Ot),xt=new Ot,i=0;i<re;i++)for(l=($n(i,ae.c.length),v(ae.c[i],30)),yn=($n(i,D.c.length),v(D.c[i],85)),de=new Br,jn(D.c,de),Kn=($n(i,le.c.length),v(le.c[i],15)),Me=new Ot,jn(le.c,Me),g=new me(l.a);g.a<g.c.c.length;){if(d=v(pe(g),10),gLe(d)){jn(xt.c,d);continue}for(O=new yr(_r(Hs(d).a.Kc(),new S));zr(O);)T=v(Rr(O),18),Xn=T.c.i,gLe(Xn)&&(mn=v(yn.xc(oe(Xn,(At(),Ji))),10),mn||(mn=tVt(n,Xn),yn.zc(oe(Xn,Ji),mn),Kn.Fc(mn)),Uo(T,v(Yt(mn.j,1),12)));for(R=new yr(_r(os(d).a.Kc(),new S));zr(R);)T=v(Rr(R),18),Sr=T.d.i,gLe(Sr)&&(Se=v(br(de,oe(Sr,(At(),Ji))),10),Se||(Se=tVt(n,Sr),Ni(de,oe(Sr,Ji),Se),jn(Me.c,Se)),lo(T,v(Yt(Se.j,0),12)))}for(q=0;q<le.c.length;q++)if(Ue=($n(q,le.c.length),v(le.c[q],15)),!Ue.dc())for(J=null,q==0?(J=new Xc(n),n4(0,ae.c.length),OL(ae.c,0,J)):q==D.c.length-1?(J=new Xc(n),jn(ae.c,J)):J=($n(q-1,ae.c.length),v(ae.c[q-1],30)),x=Ue.Kc();x.Ob();)y=v(x.Pb(),10),po(y,J);for(yt=new me(xt);yt.a<yt.c.c.length;)je=v(pe(yt),10),po(je,null);_t(n,(At(),Oye),xt)}}function l8r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll;for(Fa=new Ot,ae=new me(i.b);ae.a<ae.c.c.length;)for(J=v(pe(ae),30),yt=new me(J.a);yt.a<yt.c.c.length;){for(je=v(pe(yt),10),je.p=-1,q=Po,yn=Po,Kn=new me(je.j);Kn.a<Kn.c.c.length;){for(mn=v(pe(Kn),12),g=new me(mn.e);g.a<g.c.c.length;)l=v(pe(g),18),Xn=v(oe(l,(qt(),T6)),17).a,q=u.Math.max(q,Xn);for(d=new me(mn.g);d.a<d.c.c.length;)l=v(pe(d),18),Xn=v(oe(l,(qt(),T6)),17).a,yn=u.Math.max(yn,Xn)}_t(je,wne,Nt(q)),_t(je,Ene,Nt(yn))}for(Se=0,re=new me(i.b);re.a<re.c.c.length;)for(J=v(pe(re),30),yt=new me(J.a);yt.a<yt.c.c.length;)je=v(pe(yt),10),je.p<0&&(Ui=new U7e,Ui.b=Se++,hjt(n,je,Ui),jn(Fa.c,Ui));for(Mt=Pg(Fa.c.length),D=Pg(Fa.c.length),x=0;x<Fa.c.length;x++)Lt(Mt,new Ot),Lt(D,Nt(0));for(C7r(i,Fa,Mt,D),Lh=v(X1(Fa,st(Qsn,CQt,261,Fa.c.length,0,1)),854),xt=v(X1(Mt,st(_f,I4,15,Mt.c.length,0,1)),198),O=st(Wr,vi,28,D.c.length,15,1),T=0;T<O.length;T++)O[T]=($n(T,D.c.length),v(D.c[T],17)).a;for(Me=0,Ue=new Ot,R=0;R<Lh.length;R++)O[R]==0&&jn(Ue.c,Lh[R]);for(de=st(Wr,vi,28,Lh.length,15,1);Ue.c.length!=0;)for(Ui=v(Jb(Ue,0),261),de[Ui.b]=Me++;!xt[Ui.b].dc();)Ll=v(xt[Ui.b].gd(0),261),--O[Ll.b],O[Ll.b]==0&&jn(Ue.c,Ll);for(n.a=st(Qsn,CQt,261,Lh.length,0,1),y=0;y<Lh.length;y++)for(le=Lh[y],Sr=de[y],n.a[Sr]=le,le.b=Sr,yt=new me(le.e);yt.a<yt.c.c.length;)je=v(pe(yt),10),je.p=Sr;return n.a}function c8r(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(le=!1,R=!1,J=n+1,ae=($n(n,i.c.length),v(i.c[n],186)),T=ae.a,O=null,x=0;x<ae.a.c.length;x++)if(y=($n(x,T.c.length),v(T.c[x],172)),!y.c){if(y.b.c.length==0){Pm(),aG(ae,y),--x,le=!0;continue}if(y.k||(O&&JZ(O),O=new YNe(O?O.e+O.d+d:0,ae.f,d),nG(y,O.e+O.d,ae.f),Lt(ae.d,O),I9e(O,y),y.k=!0),D=null,D=(Se=null,x<ae.a.c.length-1?Se=v(Yt(ae.a,x+1),172):J<i.c.length&&($n(J,i.c.length),v(i.c[J],186)).a.c.length!=0&&(Se=v(Yt(($n(J,i.c.length),v(i.c[J],186)).a,0),172)),Se),de=!1,D&&(de=!Yi(D.j,ae)),D){if(D.b.c.length!=0&&!Vt(Ht(v(Yt(D.b,0),27).of((Z1(),Zq)))))_z(y,l-y.s),JZ(y.q),le=le|Lxr(ae,y,D,l,d);else{aG(ae,D);break}if(D.b.c.length==0)for(i.c.length>J&&aG(($n(J,i.c.length),v(i.c[J],186)),D),D=null;i.c.length>J&&($n(J,i.c.length),v(i.c[J],186)).a.c.length==0;)Yu(i,($n(J,i.c.length),i.c[J]));if(!D){--x;continue}if(!Vt(Ht(v(Yt(D.b,0),27).of((Z1(),Zq))))&&xAr(i,ae,y,D,de,l,J,d)){le=!0;continue}if(de){if(re=ae.b,q=D.f,!Vt(Ht(v(Yt(D.b,0),27).of(Zq)))&&G6r(i,ae,y,D,l,J,d,g)){if(le=!0,re<q){R=!0,D.j=ae;break}continue}else if(aLe(ae,y)){y.c=!0,le=!0;continue}}else if(aLe(ae,y)){y.c=!0,le=!0;continue}if(le)continue}if(aLe(ae,y)){y.c=!0,le=!0,D&&(D.k=!1);continue}else JZ(y.q)}return new Ms((Qn(),!!le),!!R)}function qt(){qt=z,Qye=(Ei(),eun),sVe=tun,Fq=OWe,O0=nun,U5=LWe,xx=DWe,J4=MWe,uN=PWe,hN=BWe,Zye=jne,Sx=bw,Jye=run,pP=UWe,hne=I6,Bq=(eBe(),ban),$5=yan,dw=van,z5=_an,asn=new fo(lH,Nt(0)),cN=pan,aVe=gan,T6=man,gVe=Gan,lVe=xan,cVe=Can,tve=Lan,uVe=Ran,hVe=Nan,dne=Yan,nve=qan,fVe=Fan,dVe=Pan,pVe=Uan,wx=lan,fP=can,jye=Cin,FHe=kin,usn=_N,hsn=Kne,csn=cH,lsn=Wne,oVe=(Uk(),l3),new fo(N6,oVe),eVe=new bE(12),JHe=new fo(Ty,eVe),MHe=(Xm(),xN),lb=new fo(uWe,MHe),X4=new fo(jh,0),ssn=new fo(N2e,Nt(1)),Qte=new fo(X5,kI),hw=Yne,Qa=UP,lN=nC,Zan=iH,fg=Hcn,W4=J5,osn=new fo(O2e,(Qn(),!0)),K4=aH,lw=x2e,uw=mw,une=g2,Xye=i3,DHe=(ys(),cp),Pd=new fo(gw,DHe),_x=eC,lne=bWe,Q4=a3,isn=I2e,rVe=IWe,nVe=(ZT(),fH),new fo(TWe,nVe),tsn=C2e,nsn=A2e,rsn=k2e,esn=T2e,eve=Ean,cw=Xin,h2=Kin,gP=wan,Lu=Gin,ow=yin,hP=bin,vx=nin,NHe=rin,qye=oin,Pq=iin,Hye=gin,KHe=Qin,XHe=Zin,HHe=Pin,cne=dan,Kye=tan,Wye=Nin,ZHe=san,BHe=Sin,Yye=Tin,Gye=rH,QHe=Jin,Jte=Wrn,kHe=jrn,Zte=Yrn,zHe=Din,UHe=Lin,GHe=Min,sN=tC,Nl=kx,vy=dWe,pg=E2e,Vye=w2e,OHe=cin,_y=R2e,uP=jcn,ane=Kcn,Ex=AWe,tVe=Xcn,oN=Qcn,YHe=Hin,jHe=Yin,Z4=R6,Uye=Vrn,WHe=Win,ine=win,rne=_in,one=vN,VHe=$in,dP=ran,$q=FWe,LHe=vin,iVe=fan,PHe=Ein,Kan=hin,Xan=din,Jan=zin,Qan=fin,qHe=S2e,sne=qin,nne=pin,nm=tin,IHe=Zrn,ene=Xrn,RHe=Qrn,tne=Jrn,j4=Krn,zye=ein,$He=Oin}function $i(n){var i,l,d;if(n.d>=n.j){n.a=-1,n.c=1;return}if(i=Do(n.i,n.d++),n.a=i,n.b==1){switch(i){case 92:if(d=10,n.d>=n.j)throw _e(new oi(fi((ii(),Lee))));n.a=Do(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d<n.j&&Do(n.i,n.d)==91?(++n.d,d=24):d=0;break;case 91:if((n.e&512)!=512&&n.d<n.j&&Do(n.i,n.d)==58){++n.d,d=20;break}default:(i&64512)==UG&&n.d<n.j&&(l=Do(n.i,n.d),(l&64512)==56320&&(n.a=el+(i-UG<<10)+l-56320,++n.d)),d=0}n.c=d;return}switch(i){case 124:d=2;break;case 42:d=3;break;case 43:d=4;break;case 63:d=5;break;case 41:d=7;break;case 46:d=8;break;case 91:d=9;break;case 94:d=11;break;case 36:d=12;break;case 40:if(d=6,n.d>=n.j||Do(n.i,n.d)!=63)break;if(++n.d>=n.j)throw _e(new oi(fi((ii(),Hme))));switch(i=Do(n.i,n.d++),i){case 58:d=13;break;case 61:d=14;break;case 33:d=15;break;case 91:d=19;break;case 62:d=18;break;case 60:if(n.d>=n.j)throw _e(new oi(fi((ii(),Hme))));if(i=Do(n.i,n.d++),i==61)d=16;else if(i==33)d=17;else throw _e(new oi(fi((ii(),VZt))));break;case 35:for(;n.d<n.j&&(i=Do(n.i,n.d++),i!=41););if(i!=41)throw _e(new oi(fi((ii(),YZt))));d=21;break;default:if(i==45||97<=i&&i<=122||65<=i&&i<=90){--n.d,d=22;break}else if(i==40){d=23;break}throw _e(new oi(fi((ii(),Hme))))}break;case 92:if(d=10,n.d>=n.j)throw _e(new oi(fi((ii(),Lee))));n.a=Do(n.i,n.d++);break;default:d=0}n.c=d}function u8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(l.Ug("Process compaction",1),!!Vt(Ht(oe(i,(pc(),pYe))))){for(g=v(oe(i,Ax),88),re=We(at(oe(i,Nve))),Bkr(n,i,g),ARr(i,re/2/2),ae=i.b,D_(ae,new kAt(g)),O=Ur(ae,0);O.b!=O.d.c;)if(R=v(Fr(O),40),!Vt(Ht(oe(R,(fa(),p2))))){if(d=cCr(R,g),le=ikr(R,i),q=0,J=0,d)switch(de=d.e,g.g){case 2:q=de.a-re-R.f.a,le.e.a-re-R.f.a<q&&(q=le.e.a-re-R.f.a),J=q+R.f.a;break;case 1:q=de.a+d.f.a+re,le.e.a+re>q&&(q=le.e.a+le.f.a+re),J=q+R.f.a;break;case 4:q=de.b-re-R.f.b,le.e.b-re-R.f.b<q&&(q=le.e.b-re-R.f.b),J=q+R.f.b;break;case 3:q=de.b+d.f.b+re,le.e.b+re>q&&(q=le.e.b+le.f.b+re),J=q+R.f.b}else if(le)switch(g.g){case 2:q=le.e.a-re-R.f.a,J=q+R.f.a;break;case 1:q=le.e.a+le.f.a+re,J=q+R.f.a;break;case 4:q=le.e.b-re-R.f.b,J=q+R.f.b;break;case 3:q=le.e.b+le.f.b+re,J=q+R.f.b}Ze(oe(i,Ive))===Ze((OD(),Vq))?(y=q,x=J,T=U8(Ki(new xn(null,new Nn(n.a,16)),new b8t(y,x))),T.a!=null?g==(ys(),Ol)||g==ql?R.e.a=q:R.e.b=q:(g==(ys(),Ol)||g==Ef?T=U8(Ki(jFt(new xn(null,new Nn(n.a,16))),new RAt(y))):T=U8(Ki(jFt(new xn(null,new Nn(n.a,16))),new IAt(y))),T.a!=null&&(g==Ol||g==ql?R.e.a=We(at((Tr(T.a!=null),v(T.a,42)).a)):R.e.b=We(at((Tr(T.a!=null),v(T.a,42)).a)))),T.a!=null&&(D=$l(n.a,(Tr(T.a!=null),T.a),0),D>0&&D!=v(oe(R,gg),17).a&&(_t(R,sYe,(Qn(),!0)),_t(R,gg,Nt(D))))):g==(ys(),Ol)||g==ql?R.e.a=q:R.e.b=q}l.Vg()}}function PKt(n){var i,l,d,g,y,x,T,R,O;for(n.b=1,$i(n),i=null,n.c==0&&n.a==94?($i(n),i=(zi(),zi(),new Td(4)),Jc(i,0,GI),T=new Td(4)):T=(zi(),zi(),new Td(4)),g=!0;(O=n.c)!=1;){if(O==0&&n.a==93&&!g){i&&(gM(i,T),T=i);break}if(l=n.a,d=!1,O==10)switch(l){case 100:case 68:case 119:case 87:case 115:case 83:C4(T,fI(l)),d=!0;break;case 105:case 73:case 99:case 67:l=(C4(T,fI(l)),-1),l<0&&(d=!0);break;case 112:case 80:if(R=SMe(n,l),!R)throw _e(new oi(fi((ii(),Vme))));C4(T,R),d=!0;break;default:l=aPe(n)}else if(O==24&&!g){if(i&&(gM(i,T),T=i),y=PKt(n),gM(T,y),n.c!=0||n.a!=93)throw _e(new oi(fi((ii(),tJt))));break}if($i(n),!d){if(O==0){if(l==91)throw _e(new oi(fi((ii(),kUe))));if(l==93)throw _e(new oi(fi((ii(),RUe))));if(l==45&&!g&&n.a!=93)throw _e(new oi(fi((ii(),Yme))))}if(n.c!=0||n.a!=45||l==45&&g)Jc(T,l,l);else{if($i(n),(O=n.c)==1)throw _e(new oi(fi((ii(),Dee))));if(O==0&&n.a==93)Jc(T,l,l),Jc(T,45,45);else{if(O==0&&n.a==93||O==24)throw _e(new oi(fi((ii(),Yme))));if(x=n.a,O==0){if(x==91)throw _e(new oi(fi((ii(),kUe))));if(x==93)throw _e(new oi(fi((ii(),RUe))));if(x==45)throw _e(new oi(fi((ii(),Yme))))}else O==10&&(x=aPe(n));if($i(n),l>x)throw _e(new oi(fi((ii(),iJt))));Jc(T,l,x)}}}g=!1}if(n.c==1)throw _e(new oi(fi((ii(),Dee))));return a5(T),fM(T),n.b=0,$i(n),T}function h8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;if(l.Ug("Coffman-Graham Layering",1),i.a.c.length==0){l.Vg();return}for(yt=v(oe(i,(qt(),VHe)),17).a,R=0,x=0,J=new me(i.a);J.a<J.c.c.length;)for(q=v(pe(J),10),q.p=R++,y=new yr(_r(os(q).a.Kc(),new S));zr(y);)g=v(Rr(y),18),g.p=x++;for(n.d=st(Wh,Qg,28,R,16,1),n.a=st(Wh,Qg,28,x,16,1),n.b=st(Wr,vi,28,R,15,1),n.e=st(Wr,vi,28,R,15,1),n.f=st(Wr,vi,28,R,15,1),sZ(n.c),lEr(n,i),ae=new rQ(new jCt(n)),je=new me(i.a);je.a<je.c.c.length;){for(Me=v(pe(je),10),y=new yr(_r(Hs(Me).a.Kc(),new S));zr(y);)g=v(Rr(y),18),n.a[g.p]||++n.b[Me.p];n.b[Me.p]==0&&_k(iI(ae,Me),SI)}for(T=0;ae.b.c.length!=0;)for(Me=v(Bfe(ae),10),n.f[Me.p]=T++,y=new yr(_r(os(Me).a.Kc(),new S));zr(y);)g=v(Rr(y),18),!n.a[g.p]&&(de=g.d.i,--n.b[de.p],Rn(n.c,de,Nt(n.f[Me.p])),n.b[de.p]==0&&_k(iI(ae,de),SI));for(re=new rQ(new WCt(n)),Ue=new me(i.a);Ue.a<Ue.c.c.length;){for(Me=v(pe(Ue),10),y=new yr(_r(os(Me).a.Kc(),new S));zr(y);)g=v(Rr(y),18),n.a[g.p]||++n.e[Me.p];n.e[Me.p]==0&&_k(iI(re,Me),SI)}for(D=new Ot,d=DLt(i,D);re.b.c.length!=0;)for(Se=v(Bfe(re),10),(d.a.c.length>=yt||!a2r(Se,d))&&(d=DLt(i,D)),po(Se,d),y=new yr(_r(Hs(Se).a.Kc(),new S));zr(y);)g=v(Rr(y),18),!n.a[g.p]&&(le=g.c.i,--n.e[le.p],n.e[le.p]==0&&_k(iI(re,le),SI));for(O=D.c.length-1;O>=0;--O)Lt(i.b,($n(O,D.c.length),v(D.c[O],30)));i.a.c.length=0,l.Vg()}function BKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;je=!1;do for(je=!1,y=i?new m_(n.a.b).a.gc()-2:1;i?y>=0:y<new m_(n.a.b).a.gc();y+=i?-1:1)for(g=uOe(n.a,Nt(y)),re=0;re<g.b;re++)if(q=v(gf(g,re),10),!!ya(q,(At(),ua))&&!(dEr(n.a,Nt(y))&&n.r==(qf(),Tx)||fEr(n.a,Nt(y))&&n.r==(qf(),e3))){for(Ue=!0,Se=0;Se<g.b;Se++)de=v(gf(g,Se),10),ya(de,ua)&&(i&&v(oe(q,ua),17).a<v(oe(de,ua),17).a||!i&&v(oe(q,ua),17).a>v(oe(de,ua),17).a)&&(Ue=!1);if(Ue){for(R=i?y+1:y-1,T=uOe(n.a,Nt(R)),x=!1,Me=!0,d=!1,D=Ur(T,0);D.b!=D.d.c;)O=v(Fr(D),10),ya(O,ua)?O.p!=q.p&&(x=x|(i?v(oe(O,ua),17).a<v(oe(q,ua),17).a:v(oe(O,ua),17).a>v(oe(q,ua),17).a),Me=!1):!x&&Me&&O.k==(lr(),Pc)&&(d=!0,i?J=v(Rr(new yr(_r(Hs(O).a.Kc(),new S))),18).c.i:J=v(Rr(new yr(_r(os(O).a.Kc(),new S))),18).d.i,J==q&&(i?l=v(Rr(new yr(_r(os(O).a.Kc(),new S))),18).d.i:l=v(Rr(new yr(_r(Hs(O).a.Kc(),new S))),18).c.i,(i?v(YS(n.a,l),17).a-v(YS(n.a,J),17).a:v(YS(n.a,J),17).a-v(YS(n.a,l),17).a)<=2&&(Me=!1)));if(d&&Me&&(i?l=v(Rr(new yr(_r(os(q).a.Kc(),new S))),18).d.i:l=v(Rr(new yr(_r(Hs(q).a.Kc(),new S))),18).c.i,(i?v(YS(n.a,l),17).a-v(YS(n.a,q),17).a:v(YS(n.a,q),17).a-v(YS(n.a,l),17).a)<=2&&l.k==(lr(),is)&&(Me=!1)),x||Me){for(le=pYt(n,q,i);le.a.gc()!=0;)ae=v(le.a.ec().Kc().Pb(),10),le.a.Bc(ae)!=null,bo(le,pYt(n,ae,i));--re,je=!0}}}while(je)}function d8r(n){Jr(n.c,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#decimal"])),Jr(n.d,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#integer"])),Jr(n.e,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#boolean"])),Jr(n.f,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EBoolean",Mi,"EBoolean:Object"])),Jr(n.i,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#byte"])),Jr(n.g,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Jr(n.j,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EByte",Mi,"EByte:Object"])),Jr(n.n,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EChar",Mi,"EChar:Object"])),Jr(n.t,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#double"])),Jr(n.u,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EDouble",Mi,"EDouble:Object"])),Jr(n.F,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#float"])),Jr(n.G,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EFloat",Mi,"EFloat:Object"])),Jr(n.I,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#int"])),Jr(n.J,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EInt",Mi,"EInt:Object"])),Jr(n.N,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#long"])),Jr(n.O,gi,Te(xe(Xt,1),kt,2,6,[Bo,"ELong",Mi,"ELong:Object"])),Jr(n.Z,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#short"])),Jr(n.$,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EShort",Mi,"EShort:Object"])),Jr(n._,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#string"]))}function f8r(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae;return J=v(d.a,17).a,re=v(d.b,17).a,q=n.b,ae=n.c,T=0,D=0,i==(ys(),Ol)||i==ql?(D=CU(Azt(e4(Bl(new xn(null,new Nn(l.b,16)),new ZEt),new DEt))),q.e.b+q.f.b/2>D?(O=++re,T=We(at(ad(QS(Bl(new xn(null,new Nn(l.b,16)),new _8t(g,O)),new MEt))))):(R=++J,T=We(at(ad(Ek(Bl(new xn(null,new Nn(l.b,16)),new w8t(g,R)),new PEt)))))):(D=CU(Azt(e4(Bl(new xn(null,new Nn(l.b,16)),new UEt),new LEt))),q.e.a+q.f.a/2>D?(O=++re,T=We(at(ad(QS(Bl(new xn(null,new Nn(l.b,16)),new y8t(g,O)),new BEt))))):(R=++J,T=We(at(ad(Ek(Bl(new xn(null,new Nn(l.b,16)),new v8t(g,R)),new FEt)))))),i==Ol?(jo(n.a,new Ct(We(at(oe(q,(fa(),b1))))-g,T)),jo(n.a,new Ct(ae.e.a+ae.f.a+g+y,T)),jo(n.a,new Ct(ae.e.a+ae.f.a+g+y,ae.e.b+ae.f.b/2)),jo(n.a,new Ct(ae.e.a+ae.f.a,ae.e.b+ae.f.b/2))):i==ql?(jo(n.a,new Ct(We(at(oe(q,(fa(),L0))))+g,q.e.b+q.f.b/2)),jo(n.a,new Ct(q.e.a+q.f.a+g,T)),jo(n.a,new Ct(ae.e.a-g-y,T)),jo(n.a,new Ct(ae.e.a-g-y,ae.e.b+ae.f.b/2)),jo(n.a,new Ct(ae.e.a,ae.e.b+ae.f.b/2))):i==Ef?(jo(n.a,new Ct(T,We(at(oe(q,(fa(),b1))))-g)),jo(n.a,new Ct(T,ae.e.b+ae.f.b+g+y)),jo(n.a,new Ct(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+g+y)),jo(n.a,new Ct(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+g))):(n.a.b==0||(v(y0(n.a),8).b=We(at(oe(q,(fa(),L0))))+g*v(x.b,17).a),jo(n.a,new Ct(T,We(at(oe(q,(fa(),L0))))+g*v(x.b,17).a)),jo(n.a,new Ct(T,ae.e.b-g*v(x.a,17).a-y))),new Ms(Nt(J),Nt(re))}function p8r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;if(x=!0,q=null,d=null,g=null,i=!1,re=Qun,O=null,y=null,T=0,R=q0e(n,T,RKe,IKe),R<n.length&&(sr(R,n.length),n.charCodeAt(R)==58)&&(q=(mo(T,R,n.length),n.substr(T,R-T)),T=R+1),l=q!=null&&mU(dre,q.toLowerCase()),l){if(R=n.lastIndexOf("!/"),R==-1)throw _e(new ar("no archive separator"));x=!0,d=af(n,T,++R),T=R}else T>=0&&An(n.substr(T,2),"//")?(T+=2,R=q0e(n,T,ZP,JP),d=(mo(T,R,n.length),n.substr(T,R-T)),T=R):q!=null&&(T==n.length||(sr(T,n.length),n.charCodeAt(T)!=47))&&(x=!1,R=D8e(n,Wu(35),T),R==-1&&(R=n.length),d=(mo(T,R,n.length),n.substr(T,R-T)),T=R);if(!l&&T<n.length&&(sr(T,n.length),n.charCodeAt(T)==47)&&(R=q0e(n,T+1,ZP,JP),D=(mo(T+1,R,n.length),n.substr(T+1,R-(T+1))),D.length>0&&Do(D,D.length-1)==58&&(g=D,T=R)),T<n.length&&(sr(T,n.length),n.charCodeAt(T)==47)&&(++T,i=!0),T<n.length&&(sr(T,n.length),n.charCodeAt(T)!=63)&&(sr(T,n.length),n.charCodeAt(T)!=35)){for(J=new Ot;T<n.length&&(sr(T,n.length),n.charCodeAt(T)!=63)&&(sr(T,n.length),n.charCodeAt(T)!=35);)R=q0e(n,T,ZP,JP),Lt(J,(mo(T,R,n.length),n.substr(T,R-T))),T=R,T<n.length&&(sr(T,n.length),n.charCodeAt(T)==47)&&(pyr(n,++T)||J.c.push(""));re=st(Xt,kt,2,J.c.length,6,1),X1(J,re)}return T<n.length&&(sr(T,n.length),n.charCodeAt(T)==63)&&(R=ZR(n,35,++T),R==-1&&(R=n.length),O=(mo(T,R,n.length),n.substr(T,R-T)),T=R),T<n.length&&(y=SNe(n,++T)),Y6r(x,q,d,g,re,O),new H1e(x,q,d,g,i,re,O,y)}function FKt(){FKt=z,_pe(),_i=new OE,Rn(_i,(Bt(),F0),hp),Rn(_i,Zf,hp),Rn(_i,Ih,hp),Rn(_i,$0,hp),Rn(_i,Zu,hp),Rn(_i,Nh,hp),Rn(_i,$0,F0),Rn(_i,hp,xf),Rn(_i,F0,xf),Rn(_i,Zf,xf),Rn(_i,Ih,xf),Rn(_i,Qu,xf),Rn(_i,$0,xf),Rn(_i,Zu,xf),Rn(_i,Nh,xf),Rn(_i,Du,xf),Rn(_i,hp,Fd),Rn(_i,F0,Fd),Rn(_i,xf,Fd),Rn(_i,Zf,Fd),Rn(_i,Ih,Fd),Rn(_i,Qu,Fd),Rn(_i,$0,Fd),Rn(_i,Du,Fd),Rn(_i,$d,Fd),Rn(_i,Zu,Fd),Rn(_i,mh,Fd),Rn(_i,Nh,Fd),Rn(_i,F0,Zf),Rn(_i,Ih,Zf),Rn(_i,$0,Zf),Rn(_i,Nh,Zf),Rn(_i,F0,Ih),Rn(_i,Zf,Ih),Rn(_i,$0,Ih),Rn(_i,Ih,Ih),Rn(_i,Zu,Ih),Rn(_i,hp,Sf),Rn(_i,F0,Sf),Rn(_i,xf,Sf),Rn(_i,Fd,Sf),Rn(_i,Zf,Sf),Rn(_i,Ih,Sf),Rn(_i,Qu,Sf),Rn(_i,$0,Sf),Rn(_i,$d,Sf),Rn(_i,Du,Sf),Rn(_i,Nh,Sf),Rn(_i,Zu,Sf),Rn(_i,ou,Sf),Rn(_i,hp,$d),Rn(_i,F0,$d),Rn(_i,xf,$d),Rn(_i,Zf,$d),Rn(_i,Ih,$d),Rn(_i,Qu,$d),Rn(_i,$0,$d),Rn(_i,Du,$d),Rn(_i,Nh,$d),Rn(_i,mh,$d),Rn(_i,ou,$d),Rn(_i,F0,Du),Rn(_i,Zf,Du),Rn(_i,Ih,Du),Rn(_i,$0,Du),Rn(_i,$d,Du),Rn(_i,Nh,Du),Rn(_i,Zu,Du),Rn(_i,hp,Xu),Rn(_i,F0,Xu),Rn(_i,xf,Xu),Rn(_i,Zf,Xu),Rn(_i,Ih,Xu),Rn(_i,Qu,Xu),Rn(_i,$0,Xu),Rn(_i,Du,Xu),Rn(_i,Nh,Xu),Rn(_i,F0,Zu),Rn(_i,xf,Zu),Rn(_i,Fd,Zu),Rn(_i,Ih,Zu),Rn(_i,hp,mh),Rn(_i,F0,mh),Rn(_i,Fd,mh),Rn(_i,Zf,mh),Rn(_i,Ih,mh),Rn(_i,Qu,mh),Rn(_i,$0,mh),Rn(_i,$0,ou),Rn(_i,Ih,ou),Rn(_i,Du,hp),Rn(_i,Du,Zf),Rn(_i,Du,xf),Rn(_i,Qu,hp),Rn(_i,Qu,F0),Rn(_i,Qu,Fd)}function g8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;switch(l.Ug("Brandes & Koepf node placement",1),n.a=i,n.c=QAr(i),d=v(oe(i,(qt(),Kye)),281),re=Vt(Ht(oe(i,dP))),n.d=d==(lG(),Gte)&&!re||d==Cye,z6r(n,i),yt=null,xt=null,Se=null,Me=null,de=(kd(4,k4),new gu(4)),v(oe(i,Kye),281).g){case 3:Se=new c5(i,n.c.d,(G1(),fw),(Kp(),Ey)),jn(de.c,Se);break;case 1:Me=new c5(i,n.c.d,(G1(),sp),(Kp(),Ey)),jn(de.c,Me);break;case 4:yt=new c5(i,n.c.d,(G1(),fw),(Kp(),Cx)),jn(de.c,yt);break;case 2:xt=new c5(i,n.c.d,(G1(),sp),(Kp(),Cx)),jn(de.c,xt);break;default:Se=new c5(i,n.c.d,(G1(),fw),(Kp(),Ey)),Me=new c5(i,n.c.d,sp,Ey),yt=new c5(i,n.c.d,fw,Cx),xt=new c5(i,n.c.d,sp,Cx),jn(de.c,yt),jn(de.c,xt),jn(de.c,Se),jn(de.c,Me)}for(g=new l8t(i,n.c),T=new me(de);T.a<T.c.c.length;)y=v(pe(T),185),IRr(g,y,n.b),Akr(y);for(J=new vqt(i,n.c),R=new me(de);R.a<R.c.c.length;)y=v(pe(R),185),J6r(J,y);if(l._g())for(O=new me(de);O.a<O.c.c.length;)y=v(pe(O),185),l.bh(y+" size is "+F1e(y));if(q=null,n.d&&(D=wRr(n,de,n.c.d),dWt(i,D,l)&&(q=D)),!q)for(O=new me(de);O.a<O.c.c.length;)y=v(pe(O),185),dWt(i,y,l)&&(!q||F1e(q)>F1e(y))&&(q=y);for(!q&&(q=($n(0,de.c.length),v(de.c[0],185))),le=new me(i.b);le.a<le.c.c.length;)for(ae=v(pe(le),30),je=new me(ae.a);je.a<je.c.c.length;)Ue=v(pe(je),10),Ue.n.b=We(q.p[Ue.p])+We(q.d[Ue.p]);for(l._g()&&(l.bh("Chosen node placement: "+q),l.bh("Blocks: "+kVt(q)),l.bh("Classes: "+h3r(q,l)),l.bh("Marked edges: "+n.b)),x=new me(de);x.a<x.c.c.length;)y=v(pe(x),185),y.g=null,y.b=null,y.a=null,y.d=null,y.j=null,y.i=null,y.p=null;C1r(n.c),n.b.a.$b(),l.Vg()}function m8r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;if(n.c.length==1)return Pqt(($n(0,n.c.length),v(n.c[0],121))),$n(0,n.c.length),v(n.c[0],121);if(n.c.length<=0)return new mz;for(R=new me(n);R.a<R.c.c.length;){for(x=v(pe(R),121),Me=0,ae=qi,le=qi,J=Po,re=Po,Se=Ur(x.b,0);Se.b!=Se.d.c;)de=v(Fr(Se),40),Me+=v(oe(de,(pc(),Ane)),17).a,ae=u.Math.min(ae,de.e.a),le=u.Math.min(le,de.e.b),J=u.Math.max(J,de.e.a+de.f.a),re=u.Math.max(re,de.e.b+de.f.b);_t(x,(pc(),Ane),Nt(Me)),_t(x,(fa(),gN),new Ct(ae,le)),_t(x,Yq,new Ct(J,re))}for(Fn(),us(n,new aEt),yt=new mz,Ul(yt,($n(0,n.c.length),v(n.c[0],96))),q=0,Kn=0,O=new me(n);O.a<O.c.c.length;)x=v(pe(O),121),xt=$s(Eo(v(oe(x,(fa(),Yq)),8)),v(oe(x,gN),8)),q=u.Math.max(q,xt.a),Kn+=xt.a*xt.b;for(q=u.Math.max(q,u.Math.sqrt(Kn)*We(at(oe(yt,(pc(),Bon))))),Mt=We(at(oe(yt,Nve))),Xn=0,Sr=0,D=0,i=Mt,T=new me(n);T.a<T.c.c.length;)x=v(pe(T),121),xt=$s(Eo(v(oe(x,(fa(),Yq)),8)),v(oe(x,gN),8)),Xn+xt.a>q&&(Xn=0,Sr+=D+Mt,D=0),Ajt(yt,x,Xn,Sr),i=u.Math.max(i,Xn+xt.a),D=u.Math.max(D,xt.b),Xn+=xt.a+Mt;for(je=new Br,l=new Br,mn=new me(n);mn.a<mn.c.c.length;)for(yn=v(pe(mn),121),d=Vt(Ht(oe(yn,(Ei(),iH)))),Ue=yn.q?yn.q:Jg,y=Ue.vc().Kc();y.Ob();)g=v(y.Pb(),44),Tu(je,g.ld())?Ze(v(g.ld(),149).Sg())!==Ze(g.md())&&(d&&Tu(l,g.ld())?(Pm(),""+v(g.ld(),149).Pg()):(Ni(je,v(g.ld(),149),g.md()),_t(yt,v(g.ld(),149),g.md()),d&&Ni(l,v(g.ld(),149),g.md()))):(Ni(je,v(g.ld(),149),g.md()),_t(yt,v(g.ld(),149),g.md()));return Pqt(yt),yt}function BJ(n,i){switch(n.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 sDt(n.b,n.a,i,n.c);case 1:return new TX(n.a,i,Ma(i.Dh(),n.c));case 43:return new ZIt(n.a,i,Ma(i.Dh(),n.c));case 3:return new gs(n.a,i,Ma(i.Dh(),n.c));case 45:return new sh(n.a,i,Ma(i.Dh(),n.c));case 41:return new uh(v(Gf(n.c),29),n.a,i,Ma(i.Dh(),n.c));case 50:return new _$t(v(Gf(n.c),29),n.a,i,Ma(i.Dh(),n.c));case 5:return new hIe(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 47:return new hOt(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 7:return new vt(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 49:return new bk(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 9:return new QIt(n.a,i,Ma(i.Dh(),n.c));case 11:return new XIt(n.a,i,Ma(i.Dh(),n.c));case 13:return new T8e(n.a,i,Ma(i.Dh(),n.c));case 15:return new zX(n.a,i,Ma(i.Dh(),n.c));case 17:return new JIt(n.a,i,Ma(i.Dh(),n.c));case 19:return new BT(n.a,i,Ma(i.Dh(),n.c));case 21:return new C8e(n.a,i,Ma(i.Dh(),n.c));case 23:return new QU(n.a,i,Ma(i.Dh(),n.c));case 25:return new pOt(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 27:return new Gn(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 29:return new fOt(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 31:return new dOt(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 33:return new fIe(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 35:return new dIe(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 37:return new nde(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 39:return new iQ(n.a,i,Ma(i.Dh(),n.c),n.d.n);case 40:return new Xa(i,Ma(i.Dh(),n.c));default:throw _e(new tc("Unknown feature style: "+n.e))}}function $Kt(n){var i,l,d,g,y,x,T,R;for(y=0,g=n.a.b,R=Ur(n.a,0);R.b!=R.d.c;){if(T=v(Fr(R),240),x=(y+1)/(g+1),!n.c&&!n.d)return;n.c&&!n.d?(n.g=!0,n.b==(ys(),Ol)?(d=n.c.e.b+n.c.f.b+n.e*(y+1),i=new Ct(We(at(oe(n.c,(fa(),L0))))+n.e,d),l=new Ct(We(at(oe(n.c,b1)))-n.e,d)):n.b==ql?(d=n.c.e.b+n.c.f.b+n.e*(y+1),i=new Ct(We(at(oe(n.c,(fa(),b1))))-n.e,d),l=new Ct(We(at(oe(n.c,L0)))+n.e,d)):n.b==Ef?(d=n.c.e.a+n.c.f.a+n.e*(y+1),i=new Ct(d,We(at(oe(n.c,(fa(),L0))))+n.e),l=new Ct(d,We(at(oe(n.c,b1)))-n.e)):(d=n.c.e.a+n.c.f.a+n.e*(y+1),i=new Ct(d,We(at(oe(n.c,(fa(),b1))))-n.e),l=new Ct(d,We(at(oe(n.c,L0)))+n.e))):n.c&&n.d?n.b==(ys(),Ol)?(d=n.d.e.b*x+(n.c.e.b+n.c.f.b)*(1-x),i=new Ct(We(at(oe(n.c,(fa(),L0))))+n.e,d),l=new Ct(We(at(oe(n.c,b1)))-n.e,d)):n.b==ql?(d=n.d.e.b*x+(n.c.e.b+n.c.f.b)*(1-x),i=new Ct(We(at(oe(n.c,(fa(),b1))))-n.e,d),l=new Ct(We(at(oe(n.c,L0)))+n.e,d)):n.b==Ef?(d=n.d.e.a*x+(n.c.e.a+n.c.f.a)*(1-x),i=new Ct(d,We(at(oe(n.c,(fa(),L0))))+n.e),l=new Ct(d,We(at(oe(n.c,b1)))-n.e)):(d=n.d.e.a*x+(n.c.e.a+n.c.f.a)*(1-x),i=new Ct(d,We(at(oe(n.c,(fa(),b1))))-n.e),l=new Ct(d,We(at(oe(n.c,L0)))+n.e)):(n.f=!0,n.b==(ys(),Ol)?(d=n.d.e.b-n.e*(y+1),i=new Ct(We(at(oe(n.d,(fa(),L0))))+n.e,d),l=new Ct(We(at(oe(n.d,b1)))-n.e,d)):n.b==ql?(d=n.d.e.b-n.e*(y+1),i=new Ct(We(at(oe(n.d,(fa(),b1))))-n.e,d),l=new Ct(We(at(oe(n.d,L0)))+n.e,d)):n.b==Ef?(d=n.d.e.a-n.e*(y+1),i=new Ct(d,We(at(oe(n.d,(fa(),L0))))+n.e),l=new Ct(d,We(at(oe(n.d,b1)))-n.e)):(d=n.d.e.a-n.e*(y+1),i=new Ct(d,We(at(oe(n.d,(fa(),b1))))-n.e),l=new Ct(d,We(at(oe(n.d,L0)))+n.e))),v(T.a,8).a=i.a,v(T.a,8).b=i.b,T.b.a=l.a,T.b.b=l.b,++y}}function b8r(n,i,l,d,g,y){var x,T,R,O,D,q,J,re,ae,le,de,Se;switch(i){case 71:T=d.q.getFullYear()-Jv>=-1900?1:0,l>=4?bi(n,Te(xe(Xt,1),kt,2,6,[eXt,tXt])[T]):bi(n,Te(xe(Xt,1),kt,2,6,["BC","AD"])[T]);break;case 121:D2r(n,l,d);break;case 77:ZCr(n,l,d);break;case 107:R=g.q.getHours(),R==0?Gg(n,24,l):Gg(n,R,l);break;case 83:dTr(n,l,g);break;case 69:D=d.q.getDay(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["S","M","T","W","T","F","S"])[D]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe])[D]):bi(n,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[D]);break;case 97:g.q.getHours()>=12&&g.q.getHours()<24?bi(n,Te(xe(Xt,1),kt,2,6,["AM","PM"])[1]):bi(n,Te(xe(Xt,1),kt,2,6,["AM","PM"])[0]);break;case 104:q=g.q.getHours()%12,q==0?Gg(n,12,l):Gg(n,q,l);break;case 75:J=g.q.getHours()%12,Gg(n,J,l);break;case 72:re=g.q.getHours(),Gg(n,re,l);break;case 99:ae=d.q.getDay(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["S","M","T","W","T","F","S"])[ae]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe])[ae]):l==3?bi(n,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[ae]):Gg(n,ae,1);break;case 76:le=d.q.getMonth(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[le]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe])[le]):l==3?bi(n,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[le]):Gg(n,le+1,l);break;case 81:de=d.q.getMonth()/3|0,l<4?bi(n,Te(xe(Xt,1),kt,2,6,["Q1","Q2","Q3","Q4"])[de]):bi(n,Te(xe(Xt,1),kt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[de]);break;case 100:Se=d.q.getDate(),Gg(n,Se,l);break;case 109:O=g.q.getMinutes(),Gg(n,O,l);break;case 115:x=g.q.getSeconds(),Gg(n,x,l);break;case 122:l<4?bi(n,y.c[0]):bi(n,y.c[1]);break;case 118:bi(n,y.b);break;case 90:l<3?bi(n,a4r(y)):l==3?bi(n,u4r(y)):bi(n,h4r(y.a));break;default:return!1}return!0}function JPe(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui;if(mjt(i),R=v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84),D=v(ze((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c),0),84),T=zl(R),O=zl(D),x=(!i.a&&(i.a=new vt(xa,i,6,6)),i.a).i==0?null:v(ze((!i.a&&(i.a=new vt(xa,i,6,6)),i.a),0),166),Mt=v(br(n.a,T),10),Xn=v(br(n.a,O),10),yn=null,Sr=null,$e(R,193)&&(xt=v(br(n.a,R),305),$e(xt,12)?yn=v(xt,12):$e(xt,10)&&(Mt=v(xt,10),yn=v(Yt(Mt.j,0),12))),$e(D,193)&&(Kn=v(br(n.a,D),305),$e(Kn,12)?Sr=v(Kn,12):$e(Kn,10)&&(Xn=v(Kn,10),Sr=v(Yt(Xn.j,0),12))),!Mt||!Xn)throw _e(new ik("The source or the target of edge "+i+" 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(le=new NE,Ul(le,i),_t(le,(At(),Ji),i),_t(le,(qt(),Nl),null),re=v(oe(d,au),21),Mt==Xn&&re.Fc((cl(),aP)),yn||(yt=(ll(),_u),mn=null,x&&OT(v(oe(Mt,Qa),101))&&(mn=new Ct(x.j,x.k),sPt(mn,lz(i)),DPt(mn,l),l4(O,T)&&(yt=Rh,Hi(mn,Mt.n))),yn=bWt(Mt,mn,yt,d)),Sr||(yt=(ll(),Rh),Ui=null,x&&OT(v(oe(Xn,Qa),101))&&(Ui=new Ct(x.b,x.c),sPt(Ui,lz(i)),DPt(Ui,l)),Sr=bWt(Xn,Ui,yt,So(Xn))),Uo(le,yn),lo(le,Sr),(yn.e.c.length>1||yn.g.c.length>1||Sr.e.c.length>1||Sr.g.c.length>1)&&re.Fc((cl(),iP)),J=new mr((!i.n&&(i.n=new vt(wl,i,1,7)),i.n));J.e!=J.i.gc();)if(q=v(wr(J),135),!Vt(Ht(Et(q,hw)))&&q.a)switch(de=x0e(q),Lt(le.b,de),v(oe(de,pg),278).g){case 1:case 2:re.Fc((cl(),rN));break;case 0:re.Fc((cl(),nN)),_t(de,pg,(W1(),wN))}if(y=v(oe(d,hP),322),Se=v(oe(d,cne),323),g=y==(SD(),Rq)||Se==(HD(),lve),x&&(!x.a&&(x.a=new gs(Ud,x,5)),x.a).i!=0&&g){for(Me=hG(x),ae=new ah,je=Ur(Me,0);je.b!=je.d.c;)Ue=v(Fr(je),8),pi(ae,new Wo(Ue));_t(le,jqe,ae)}return le}function y8r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(mn=0,Kn=0,Mt=new Br,yt=v(ad(QS(Bl(new xn(null,new Nn(n.b,16)),new $Et),new jEt)),17).a+1,yn=st(Wr,vi,28,yt,15,1),de=st(Wr,vi,28,yt,15,1),le=0;le<yt;le++)yn[le]=0,de[le]=0;for(R=v(Wl(KNe(new xn(null,new Nn(n.a,16))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),D=R.Kc();D.Ob();)if(O=v(D.Pb(),65),Sr=v(oe(O.b,(pc(),gg)),17).a,Fa=v(oe(O.c,gg),17).a,je=Fa-Sr,je>1)for(T=Sr+1;T<Fa;T++){if(q=T,xt=v(Wl(Ki(new xn(null,new Nn(n.b,16)),new BAt(q)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),ae=0,i==(ys(),Ol)||i==ql){for(xt.jd(new VEt),ae=0;ae<xt.gc()&&(Se=(T-Sr)/(Fa-Sr),!(v(xt.Xb(ae),40).e.b>O.b.e.b*(1-Se)+O.c.e.b*Se));ae++);if(xt.gc()>0&&(Ui=O.a.b==0?Eo(O.b.e):v(y0(O.a),8),Ue=Hi(Eo(v(xt.Xb(xt.gc()-1),40).e),v(xt.Xb(xt.gc()-1),40).f),J=Hi(Eo(v(xt.Xb(0),40).e),v(xt.Xb(0),40).f),ae>=xt.gc()-1&&Ui.b>Ue.b&&O.c.e.b>Ue.b||ae<=0&&Ui.b<J.a&&O.c.e.b<J.b))continue}else{for(xt.jd(new YEt),ae=0;ae<xt.gc()&&(Se=(T-Sr)/(Fa-Sr),!(v(xt.Xb(ae),40).e.a>O.b.e.a*(1-Se)+O.c.e.a*Se));ae++);if(xt.gc()>0&&(Ui=O.a.b==0?Eo(O.b.e):v(y0(O.a),8),Ue=Hi(Eo(v(xt.Xb(xt.gc()-1),40).e),v(xt.Xb(xt.gc()-1),40).f),J=Hi(Eo(v(xt.Xb(0),40).e),v(xt.Xb(0),40).f),ae>=xt.gc()-1&&Ui.a>Ue.a&&O.c.e.a>Ue.a||ae<=0&&Ui.a<J.a&&O.c.e.a<J.a))continue}g=new ho,y=new ho,pi(O.a,g),pi(O.a,y),x=new cde(g,y,O),Me=s1(w0(T,32),Us(ae,ul)),Tu(Mt,Zm(Me))?(re=v(br(Mt,Zm(Me)),675),pi(re.a,x),Bm(re.b)?D_(re.a,new JEt):D_(re.a,new ext),$Kt(re)):(re=new JGt(ae==0?null:v(xt.Xb(ae-1),40),ae==xt.gc()?null:v(xt.Xb(ae),40),x,n),Ni(Mt,Zm(Me),re)),i==Ol||i==ql?(re.f&&re.d.e.b<=We(at(oe(n,(fa(),Ave))))&&++mn,re.g&&re.c.e.b+re.c.f.b>=We(at(oe(n,(fa(),cYe))))&&++Kn):(re.f&&re.d.e.a<=We(at(oe(n,(fa(),Cve))))&&++mn,re.g&&re.c.e.a+re.c.f.a>=We(at(oe(n,(fa(),lYe))))&&++Kn)}else je==0?wMe(O):je<0&&(++yn[Sr],++de[Fa],Xn=f8r(O,i,n,new Ms(Nt(mn),Nt(Kn)),l,d,new Ms(Nt(de[Fa]),Nt(yn[Sr]))),mn=v(Xn.a,17).a,Kn=v(Xn.b,17).a)}function v8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;if(d=i,R=l,n.b&&d.j==(Bt(),cr)&&R.j==(Bt(),cr)&&(Me=d,d=R,R=Me),Tu(n.a,d)){if(r1(v(br(n.a,d),49),R))return 1}else Ni(n.a,d,new fs);if(Tu(n.a,R)){if(r1(v(br(n.a,R),49),d))return-1}else Ni(n.a,R,new fs);if(Tu(n.d,d)){if(r1(v(br(n.d,d),49),R))return-1}else Ni(n.d,d,new fs);if(Tu(n.d,R)){if(r1(v(br(n.a,R),49),d))return 1}else Ni(n.d,R,new fs);if(d.j!=R.j)return Se=ssr(d.j,R.j),Se==-1?mf(n,R,d):mf(n,d,R),Se;if(d.e.c.length!=0&&R.e.c.length!=0){if(n.b&&(Se=tzt(d,R),Se!=0))return Se==-1?mf(n,R,d):Se==1&&mf(n,d,R),Se;if(y=v(Yt(d.e,0),18).c.i,D=v(Yt(R.e,0),18).c.i,y==D)return g=v(oe(v(Yt(d.e,0),18),(At(),ua)),17).a,O=v(oe(v(Yt(R.e,0),18),ua),17).a,g>O?mf(n,d,R):mf(n,R,d),g<O?-1:g>O?1:0;for(ae=n.c,le=0,de=ae.length;le<de;++le){if(re=ae[le],re==y)return mf(n,d,R),1;if(re==D)return mf(n,R,d),-1}}return d.g.c.length!=0&&R.g.c.length!=0?(T=v(oe(d,(At(),Mye)),10),J=v(oe(R,Mye),10),n.e==(Zp(),hve)&&T&&J&&ya(T,ua)&&ya(J,ua)?(g=v(oe(T,ua),17).a,O=v(oe(J,ua),17).a,g>O?mf(n,d,R):mf(n,R,d),g<O?-1:g>O?1:0):n.b&&(Se=tzt(d,R),Se!=0)?(Se==-1?mf(n,R,d):Se==1&&mf(n,d,R),Se):(x=0,q=0,ya(v(Yt(d.g,0),18),ua)&&(x=v(oe(v(Yt(d.g,0),18),ua),17).a),ya(v(Yt(R.g,0),18),ua)&&(q=v(oe(v(Yt(d.g,0),18),ua),17).a),T&&T==J?Vt(Ht(oe(v(Yt(d.g,0),18),ap)))&&!Vt(Ht(oe(v(Yt(R.g,0),18),ap)))?(mf(n,d,R),1):!Vt(Ht(oe(v(Yt(d.g,0),18),ap)))&&Vt(Ht(oe(v(Yt(R.g,0),18),ap)))?(mf(n,R,d),-1):(x>q?mf(n,d,R):mf(n,R,d),x<q?-1:x>q?1:0):(n.f&&(n.f._b(T)&&(x=v(n.f.xc(T),17).a),n.f._b(J)&&(q=v(n.f.xc(J),17).a)),x>q?mf(n,d,R):mf(n,R,d),x<q?-1:x>q?1:0))):d.e.c.length!=0&&R.g.c.length!=0?(mf(n,d,R),1):d.g.c.length!=0&&R.e.c.length!=0?(mf(n,R,d),-1):ya(d,(At(),ua))&&ya(R,ua)?(g=v(oe(d,ua),17).a,O=v(oe(R,ua),17).a,g>O?mf(n,d,R):mf(n,R,d),g<O?-1:g>O?1:0):(mf(n,R,d),-1)}function _8r(n){n.gb||(n.gb=!0,n.b=fc(n,0),Ha(n.b,18),_a(n.b,19),n.a=fc(n,1),Ha(n.a,1),_a(n.a,2),_a(n.a,3),_a(n.a,4),_a(n.a,5),n.o=fc(n,2),Ha(n.o,8),Ha(n.o,9),_a(n.o,10),_a(n.o,11),_a(n.o,12),_a(n.o,13),_a(n.o,14),_a(n.o,15),_a(n.o,16),_a(n.o,17),_a(n.o,18),_a(n.o,19),_a(n.o,20),_a(n.o,21),_a(n.o,22),_a(n.o,23),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),n.p=fc(n,3),Ha(n.p,2),Ha(n.p,3),Ha(n.p,4),Ha(n.p,5),_a(n.p,6),_a(n.p,7),kl(n.p),kl(n.p),n.q=fc(n,4),Ha(n.q,8),n.v=fc(n,5),_a(n.v,9),kl(n.v),kl(n.v),kl(n.v),n.w=fc(n,6),Ha(n.w,2),Ha(n.w,3),Ha(n.w,4),_a(n.w,5),n.B=fc(n,7),_a(n.B,1),kl(n.B),kl(n.B),kl(n.B),n.Q=fc(n,8),_a(n.Q,0),kl(n.Q),n.R=fc(n,9),Ha(n.R,1),n.S=fc(n,10),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),n.T=fc(n,11),_a(n.T,10),_a(n.T,11),_a(n.T,12),_a(n.T,13),_a(n.T,14),kl(n.T),kl(n.T),n.U=fc(n,12),Ha(n.U,2),Ha(n.U,3),_a(n.U,4),_a(n.U,5),_a(n.U,6),_a(n.U,7),kl(n.U),n.V=fc(n,13),_a(n.V,10),n.W=fc(n,14),Ha(n.W,18),Ha(n.W,19),Ha(n.W,20),_a(n.W,21),_a(n.W,22),_a(n.W,23),n.bb=fc(n,15),Ha(n.bb,10),Ha(n.bb,11),Ha(n.bb,12),Ha(n.bb,13),Ha(n.bb,14),Ha(n.bb,15),Ha(n.bb,16),_a(n.bb,17),kl(n.bb),kl(n.bb),n.eb=fc(n,16),Ha(n.eb,2),Ha(n.eb,3),Ha(n.eb,4),Ha(n.eb,5),Ha(n.eb,6),Ha(n.eb,7),_a(n.eb,8),_a(n.eb,9),n.ab=fc(n,17),Ha(n.ab,0),Ha(n.ab,1),n.H=fc(n,18),_a(n.H,0),_a(n.H,1),_a(n.H,2),_a(n.H,3),_a(n.H,4),_a(n.H,5),kl(n.H),n.db=fc(n,19),_a(n.db,2),n.c=Li(n,20),n.d=Li(n,21),n.e=Li(n,22),n.f=Li(n,23),n.i=Li(n,24),n.g=Li(n,25),n.j=Li(n,26),n.k=Li(n,27),n.n=Li(n,28),n.r=Li(n,29),n.s=Li(n,30),n.t=Li(n,31),n.u=Li(n,32),n.fb=Li(n,33),n.A=Li(n,34),n.C=Li(n,35),n.D=Li(n,36),n.F=Li(n,37),n.G=Li(n,38),n.I=Li(n,39),n.J=Li(n,40),n.L=Li(n,41),n.M=Li(n,42),n.N=Li(n,43),n.O=Li(n,44),n.P=Li(n,45),n.X=Li(n,46),n.Y=Li(n,47),n.Z=Li(n,48),n.$=Li(n,49),n._=Li(n,50),n.cb=Li(n,51),n.K=Li(n,52))}function w8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;for(x=new Ea,xt=v(oe(l,(qt(),Pd)),88),le=0,bo(x,(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));x.b!=0;)D=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),27),O=Aa(D),(Ze(Et(O,nm))!==Ze((Zp(),wy))||Ze(Et(O,ow))===Ze((ly(),eN))||Ze(Et(O,ow))===Ze((ly(),JI))||Vt(Ht(Et(O,vx)))||Ze(Et(O,j4))!==Ze((z_(),z4))||Ze(Et(O,h2))===Ze((qf(),Tx))||Ze(Et(O,h2))===Ze((qf(),e3))||Ze(Et(O,cw))===Ze((fy(),dN))||Ze(Et(O,cw))===Ze((fy(),fN)))&&!Vt(Ht(Et(D,tne)))&&sa(D,(At(),ua),Nt(le++)),Se=!Vt(Ht(Et(D,hw))),Se&&(J=(!D.a&&(D.a=new vt(Pi,D,10,11)),D.a).i!=0,ae=XEr(D),re=Ze(Et(D,W4))===Ze((Km(),Cy)),Sr=!Y1(D,(Ei(),yN))||GPt(ai(Et(D,yN))),je=null,Sr&&re&&(J||ae)&&(je=Qjt(D),_t(je,Pd,xt),ya(je,Bq)&&Z6t(new PLe(We(at(oe(je,Bq)))),je),v(Et(D,uw),181).gc()!=0&&(q=je,ts(new xn(null,(!D.c&&(D.c=new vt(Oh,D,9,9)),new Nn(D.c,16))),new aCt(q)),qYt(D,je))),Mt=l,yn=v(br(n.a,Aa(D)),10),yn&&(Mt=yn.e),Ue=SKt(n,D,Mt),je&&(Ue.e=je,je.e=Ue,bo(x,(!D.a&&(D.a=new vt(Pi,D,10,11)),D.a))));for(le=0,qa(x,i,x.c.b,x.c);x.b!=0;){for(y=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),27),R=new mr((!y.b&&(y.b=new vt(ss,y,12,3)),y.b));R.e!=R.i.gc();)T=v(wr(R),74),mjt(T),(Ze(Et(i,nm))!==Ze((Zp(),wy))||Ze(Et(i,ow))===Ze((ly(),eN))||Ze(Et(i,ow))===Ze((ly(),JI))||Vt(Ht(Et(i,vx)))||Ze(Et(i,j4))!==Ze((z_(),z4))||Ze(Et(i,h2))===Ze((qf(),Tx))||Ze(Et(i,h2))===Ze((qf(),e3))||Ze(Et(i,cw))===Ze((fy(),dN))||Ze(Et(i,cw))===Ze((fy(),fN)))&&sa(T,(At(),ua),Nt(le++)),Kn=zl(v(ze((!T.b&&(T.b=new Gn(Lr,T,4,7)),T.b),0),84)),Xn=zl(v(ze((!T.c&&(T.c=new Gn(Lr,T,5,8)),T.c),0),84)),!(Vt(Ht(Et(T,hw)))||Vt(Ht(Et(Kn,hw)))||Vt(Ht(Et(Xn,hw))))&&(de=KE(T)&&Vt(Ht(Et(Kn,K4)))&&Vt(Ht(Et(T,lw))),yt=y,de||l4(Xn,Kn)?yt=Kn:l4(Kn,Xn)&&(yt=Xn),Mt=l,yn=v(br(n.a,yt),10),yn&&(Mt=yn.e),Me=JPe(n,T,yt,Mt),_t(Me,(At(),qqe),w5r(n,T,i,l)));if(re=Ze(Et(y,W4))===Ze((Km(),Cy)),re)for(g=new mr((!y.a&&(y.a=new vt(Pi,y,10,11)),y.a));g.e!=g.i.gc();)d=v(wr(g),27),Sr=!Y1(d,(Ei(),yN))||GPt(ai(Et(d,yN))),mn=Ze(Et(d,W4))===Ze(Cy),Sr&&mn&&qa(x,d,x.c.b,x.c)}}function At(){At=z;var n,i;Ji=new la($Be),qqe=new la("coordinateOrigin"),Bye=new la("processors"),Gqe=new Ba("compoundNode",(Qn(),!1)),Lq=new Ba("insideConnections",!1),jqe=new la("originalBendpoints"),Wqe=new la("originalDummyNodePosition"),Kqe=new la("originalLabelEdge"),oP=new la("representedLabels"),sP=new la("endLabels"),_6=new la("endLabel.origin"),E6=new Ba("labelSide",(Id(),dH)),M5=new Ba("maxEdgeThickness",0),ap=new Ba("reversed",!1),x6=new la(zXt),m1=new Ba("longEdgeSource",null),Kf=new Ba("longEdgeTarget",null),V4=new Ba("longEdgeHasLabelDummies",!1),Dq=new Ba("longEdgeBeforeLabelDummy",!1),Wte=new Ba("edgeConstraint",(F_(),_ye)),mx=new la("inLayerLayoutUnit"),aw=new Ba("inLayerConstraint",(Ym(),Nq)),w6=new Ba("inLayerSuccessorConstraint",new Ot),Yqe=new Ba("inLayerSuccessorConstraintBetweenNonDummies",!1),kh=new la("portDummy"),jte=new Ba("crossingHint",Nt(0)),au=new Ba("graphProperties",(i=v(n1(Aye),9),new nf(i,v(v0(i,i.length),9),0))),vc=new Ba("externalPortSide",(Bt(),lc)),Vqe=new Ba("externalPortSize",new ho),Oye=new la("externalPortReplacedDummies"),Kte=new la("externalPortReplacedDummy"),ob=new Ba("externalPortConnections",(n=v(n1(tl),9),new nf(n,v(v0(n,n.length),9),0))),bx=new Ba(OXt,0),zqe=new la("barycenterAssociates"),S6=new la("TopSideComments"),v6=new la("BottomSideComments"),Yte=new la("CommentConnectionPort"),Dye=new Ba("inputCollect",!1),Pye=new Ba("outputCollect",!1),Oq=new Ba("cyclic",!1),Hqe=new la("crossHierarchyMap"),$ye=new la("targetOffset"),new Ba("splineLabelSize",new ho),B5=new la("spacings"),Xte=new Ba("partitionConstraint",!1),gx=new la("breakingPoint.info"),Zqe=new la("splines.survivingEdge"),sw=new la("splines.route.start"),F5=new la("splines.edgeChain"),Qqe=new la("originalPortConstraints"),yx=new la("selfLoopHolder"),aN=new la("splines.nsPortY"),ua=new la("modelOrder"),Mye=new la("longEdgeTargetNode"),c2=new Ba(fQt,!1),P5=new Ba(fQt,!1),Lye=new la("layerConstraints.hiddenNodes"),Xqe=new la("layerConstraints.opposidePort"),Fye=new la("targetNode.modelOrder")}function E8r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;for(q=Ur(n.b,0);q.b!=q.d.c;)if(D=v(Fr(q),40),!An(D.c,_ee))for(y=v(Wl(new xn(null,new Nn(N4r(D,n),16)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),i==(ys(),Ol)||i==ql?y.jd(new qEt):y.jd(new HEt),ae=y.gc(),g=0;g<ae;g++)x=ae==1?.5:(1+g)/(ae+1),i==Ol?(O=We(at(oe(D,(fa(),L0)))),D.e.a+D.f.a+d<O?jo(v(y.Xb(g),65).a,new Ct(O+l,D.e.b+D.f.b*x)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(R-re)/(u.Math.abs(T-J)/40)>50&&(re>R?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a+d/5.3,D.e.b+D.f.b*x-d/2)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a+d/5.3,D.e.b+D.f.b*x+d/2)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a,D.e.b+D.f.b*x))):i==ql?(O=We(at(oe(D,(fa(),b1)))),D.e.a-d>O?jo(v(y.Xb(g),65).a,new Ct(O-l,D.e.b+D.f.b*x)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(R-re)/(u.Math.abs(T-J)/40)>50&&(re>R?jo(v(y.Xb(g),65).a,new Ct(D.e.a-d/5.3,D.e.b+D.f.b*x-d/2)):jo(v(y.Xb(g),65).a,new Ct(D.e.a-d/5.3,D.e.b+D.f.b*x+d/2)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a,D.e.b+D.f.b*x))):i==Ef?(O=We(at(oe(D,(fa(),L0)))),D.e.b+D.f.b+d<O?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,O+l)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(T-J)/(u.Math.abs(R-re)/40)>50&&(J>T?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x-d/2,D.e.b+d/5.3+D.f.b)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x+d/2,D.e.b+d/5.3+D.f.b)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,D.e.b+D.f.b))):(O=We(at(oe(D,(fa(),b1)))),zUt(v(y.Xb(g),65),n)?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,v(y0(v(y.Xb(g),65).a),8).b)):D.e.b-d>O?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,O-l)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(T-J)/(u.Math.abs(R-re)/40)>50&&(J>T?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x-d/2,D.e.b-d/5.3)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x+d/2,D.e.b-d/5.3)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,D.e.b)))}function Ei(){Ei=z;var n,i;yN=new la(ZQt),rC=new la(JQt),aWe=(qg(),m2e),Hcn=new En(jFe,aWe),X5=new En(s6,null),Vcn=new la(sUe),oWe=(q_(),va(v2e,Te(xe(_2e,1),wt,298,0,[y2e]))),rH=new En(gee,oWe),iH=new En(nq,(Qn(),!1)),lWe=(ys(),cp),gw=new En(ime,lWe),hWe=(Xm(),L2e),uWe=new En(tq,hWe),Wcn=new En(iUe,!1),pWe=(Km(),Xne),J5=new En(pee,pWe),xWe=new bE(12),Ty=new En(rx,xWe),sH=new En(SM,!1),S2e=new En(bee,!1),oH=new En(TM,!1),kWe=(co(),y2),UP=new En(Sge,kWe),R6=new la(mee),lH=new la(YG),N2e=new la(XJ),O2e=new la(xM),gWe=new ah,kx=new En(i$e,gWe),jcn=new En(o$e,!1),Kcn=new En(l$e,!1),mWe=new mL,vN=new En(u$e,mWe),Yne=new En(VFe,!1),Jcn=new En(eZt,1),Z5=new la(tZt),Q5=new la(nZt),_N=new En(jG,!1),new En(rZt,!0),Nt(0),new En(iZt,Nt(100)),new En(aZt,!1),Nt(0),new En(sZt,Nt(4e3)),Nt(0),new En(oZt,Nt(400)),new En(lZt,!1),new En(cZt,!1),new En(uZt,!0),new En(hZt,!1),sWe=(LZ(),B2e),Ycn=new En(aUe,sWe),eun=new En(DFe,10),tun=new En(MFe,10),OWe=new En(bge,20),nun=new En(PFe,10),LWe=new En(xge,2),DWe=new En(rme,10),MWe=new En(BFe,0),jne=new En(UFe,5),PWe=new En(FFe,1),BWe=new En($Fe,1),bw=new En(N4,20),run=new En(zFe,10),UWe=new En(GFe,10),I6=new la(qFe),$We=new yIt,FWe=new En(h$e,$We),Qcn=new la(sme),SWe=!1,Xcn=new En(ame,SWe),yWe=new bE(5),bWe=new En(XFe,yWe),vWe=(w4(),i=v(n1(fl),9),new nf(i,v(v0(i,i.length),9),0)),eC=new En(II,vWe),CWe=(ZT(),b2),TWe=new En(JFe,CWe),C2e=new la(e$e),A2e=new la(t$e),k2e=new la(n$e),T2e=new la(r$e),_We=(n=v(n1(WP),9),new nf(n,v(v0(n,n.length),9),0)),mw=new En(y5,_We),EWe=bn((qh(),TN)),g2=new En(o6,EWe),wWe=new Ct(0,0),tC=new En(l6,wWe),i3=new En(RI,!1),cWe=(W1(),wN),E2e=new En(a$e,cWe),w2e=new En(QJ,!1),Nt(1),new En(dZt,null),AWe=new la(c$e),R2e=new la(s$e),NWe=(Bt(),lc),nC=new En(YFe,NWe),jh=new la(HFe),RWe=(Ah(),bn(v2)),a3=new En(NI,RWe),I2e=new En(QFe,!1),IWe=new En(ZFe,!0),Kne=new En(WG,1),zWe=new En(oUe,null),cH=new En(KG,150),Wne=new En(XG,1.414),N6=new En(ix,null),iun=new En(lUe,1),aH=new En(WFe,!1),x2e=new En(KFe,!1),dWe=new En(yge,1),fWe=(oJ(),M2e),new En(fZt,fWe),Zcn=!0,sun=(Uk(),l3),oun=l3,aun=l3}function qo(){qo=z,UGe=new ps("DIRECTION_PREPROCESSOR",0),BGe=new ps("COMMENT_PREPROCESSOR",1),k5=new ps("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),nye=new ps("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),aqe=new ps("PARTITION_PREPROCESSOR",4),_te=new ps("LABEL_DUMMY_INSERTER",5),Ite=new ps("SELF_LOOP_PREPROCESSOR",6),q4=new ps("LAYER_CONSTRAINT_PREPROCESSOR",7),rqe=new ps("PARTITION_MIDPROCESSOR",8),WGe=new ps("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),tqe=new ps("NODE_PROMOTION",10),G4=new ps("LAYER_CONSTRAINT_POSTPROCESSOR",11),iqe=new ps("PARTITION_POSTPROCESSOR",12),VGe=new ps("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),sqe=new ps("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),NGe=new ps("BREAKING_POINT_INSERTER",15),Ste=new ps("LONG_EDGE_SPLITTER",16),rye=new ps("PORT_SIDE_PROCESSOR",17),yte=new ps("INVERTED_PORT_PROCESSOR",18),Ate=new ps("PORT_LIST_SORTER",19),lqe=new ps("SORT_BY_INPUT_ORDER_OF_MODEL",20),Cte=new ps("NORTH_SOUTH_PORT_PREPROCESSOR",21),OGe=new ps("BREAKING_POINT_PROCESSOR",22),nqe=new ps(aQt,23),cqe=new ps(sQt,24),kte=new ps("SELF_LOOP_PORT_RESTORER",25),oqe=new ps("SINGLE_EDGE_GRAPH_WRAPPER",26),vte=new ps("IN_LAYER_CONSTRAINT_PROCESSOR",27),GGe=new ps("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),JGe=new ps("LABEL_AND_NODE_SIZE_PROCESSOR",29),ZGe=new ps("INNERMOST_NODE_MARGIN_CALCULATOR",30),Nte=new ps("SELF_LOOP_ROUTER",31),MGe=new ps("COMMENT_NODE_MARGIN_CALCULATOR",32),bte=new ps("END_LABEL_PREPROCESSOR",33),Ete=new ps("LABEL_DUMMY_SWITCHER",34),DGe=new ps("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),jI=new ps("LABEL_SIDE_SELECTOR",36),XGe=new ps("HYPEREDGE_DUMMY_MERGER",37),YGe=new ps("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),eqe=new ps("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),eP=new ps("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),FGe=new ps("CONSTRAINTS_POSTPROCESSOR",41),PGe=new ps("COMMENT_POSTPROCESSOR",42),QGe=new ps("HYPERNODE_PROCESSOR",43),jGe=new ps("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),xte=new ps("LONG_EDGE_JOINER",45),Rte=new ps("SELF_LOOP_POSTPROCESSOR",46),LGe=new ps("BREAKING_POINT_REMOVER",47),Tte=new ps("NORTH_SOUTH_PORT_POSTPROCESSOR",48),KGe=new ps("HORIZONTAL_COMPACTOR",49),wte=new ps("LABEL_DUMMY_REMOVER",50),qGe=new ps("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),zGe=new ps("END_LABEL_SORTER",52),Cq=new ps("REVERSED_EDGE_RESTORER",53),mte=new ps("END_LABEL_POSTPROCESSOR",54),HGe=new ps("HIERARCHICAL_NODE_RESIZER",55),$Ge=new ps("DIRECTION_POSTPROCESSOR",56)}function eBe(){eBe=z,cHe=(Rz(),$te),vin=new En(KBe,cHe),Nin=new En(XBe,(Qn(),!1)),gHe=(IQ(),Nye),Pin=new En(tee,gHe),Qin=new En(QBe,!1),Zin=new En(ZBe,!0),Vrn=new En(JBe,!1),xHe=(Az(),dve),fan=new En(eFe,xHe),Nt(1),wan=new En(tFe,Nt(7)),Ean=new En(nFe,!1),Oin=new En(rFe,!1),lHe=(ly(),yye),yin=new En(Nge,lHe),yHe=(fy(),ive),Xin=new En(eq,yHe),mHe=(pf(),Mq),Gin=new En(iFe,mHe),Nt(-1),zin=new En(aFe,null),Nt(-1),qin=new En(sFe,Nt(-1)),Nt(-1),Hin=new En(Oge,Nt(4)),Nt(-1),Yin=new En(Lge,Nt(2)),bHe=(qf(),bne),Kin=new En(Dge,bHe),Nt(0),Win=new En(Mge,Nt(0)),$in=new En(Pge,Nt(qi)),oHe=(SD(),nP),bin=new En(kM,oHe),nin=new En(oFe,!1),cin=new En(Bge,.1),gin=new En(Fge,!1),hin=new En(lFe,null),din=new En(cFe,null),Nt(-1),fin=new En(uFe,null),Nt(-1),pin=new En(hFe,Nt(-1)),Nt(0),rin=new En(dFe,Nt(40)),sHe=(P8(),Rye),oin=new En($ge,sHe),aHe=Iq,iin=new En(nee,aHe),EHe=(HD(),mP),dan=new En(v5,EHe),ran=new la(ree),vHe=(Ez(),zte),Jin=new En(Uge,vHe),_He=(lG(),Gte),tan=new En(zge,_He),san=new En(Gge,.3),lan=new la(qge),wHe=(g4(),mne),can=new En(Hge,wHe),dHe=(yZ(),pve),Sin=new En(fFe,dHe),fHe=(ND(),mve),Tin=new En(pFe,fHe),pHe=(H8(),vP),Cin=new En(iee,pHe),kin=new En(aee,.2),Ein=new En(Vge,2),ban=new En(gFe,null),van=new En(mFe,10),yan=new En(bFe,10),_an=new En(yFe,20),Nt(0),pan=new En(vFe,Nt(0)),Nt(0),gan=new En(_Fe,Nt(0)),Nt(0),man=new En(wFe,Nt(0)),Yrn=new En(Yge,!1),tHe=(aI(),rP),Wrn=new En(EFe,tHe),eHe=(zQ(),mye),jrn=new En(xFe,eHe),Din=new En(see,!1),Nt(0),Lin=new En(jge,Nt(16)),Nt(0),Min=new En(Wge,Nt(5)),CHe=(EZ(),vve),Gan=new En(ib,CHe),xan=new En(oee,10),Can=new En(lee,1),THe=(iZ(),Fte),Lan=new En(RM,THe),Ran=new la(Kge),SHe=Nt(1),Nt(0),Nan=new En(Xge,SHe),AHe=(rZ(),yve),Yan=new En(cee,AHe),qan=new la(uee),Fan=new En(hee,!0),Pan=new En(dee,2),Uan=new En(Qge,!0),hHe=(cJ(),Ute),win=new En(SFe,hHe),uHe=(jk(),QI),_in=new En(TFe,uHe),iHe=(Zp(),wy),tin=new En(fee,iHe),ein=new En(CFe,!1),Jrn=new En(AFe,!1),nHe=(z_(),z4),Krn=new En(Zge,nHe),rHe=(DD(),ave),Zrn=new En(kFe,rHe),Xrn=new En(Jge,0),Qrn=new En(eme,0),Fin=vye,Bin=Rq,Vin=pne,jin=pne,Uin=rve,uin=(Km(),Cy),min=nP,lin=nP,ain=nP,sin=Cy,ian=bP,aan=mP,ean=mP,nan=mP,oan=cve,han=bP,uan=bP,Ain=(Xm(),O6),Rin=O6,Iin=vP,xin=uH,San=pN,Tan=t3,Aan=pN,kan=t3,Dan=pN,Man=t3,Ian=bye,Oan=Fte,jan=pN,Wan=t3,Han=pN,Van=t3,$an=t3,Ban=t3,zan=t3}function x8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll,zd,cC,Ly,U0,z0,ww,F6,A2,$6,bg,cm,Lx,U6,uC,yg,Ew,db,Whn,uXe,Dx,oB,e_e,z6,lB,m3,cB,t_e,Khn;for(uXe=0,Ui=i,Ll=0,Ly=Ui.length;Ll<Ly;++Ll)for(Xn=Ui[Ll],cm=new me(Xn.j);cm.a<cm.c.c.length;){for(bg=v(pe(cm),12),U6=0,T=new me(bg.g);T.a<T.c.c.length;)x=v(pe(T),18),Xn.c!=x.d.i.c&&++U6;U6>0&&(n.a[bg.p]=uXe++)}for(lB=0,Fa=l,zd=0,U0=Fa.length;zd<U0;++zd){for(Xn=Fa[zd],z0=0,cm=new me(Xn.j);cm.a<cm.c.c.length&&(bg=v(pe(cm),12),bg.j==(Bt(),or));)for(T=new me(bg.e);T.a<T.c.c.length;)if(x=v(pe(T),18),Xn.c!=x.c.i.c){++z0;break}for(F6=0,uC=new go(Xn.j,Xn.j.c.length);uC.b>0;){for(bg=(Tr(uC.b>0),v(uC.a.Xb(uC.c=--uC.b),12)),U6=0,T=new me(bg.e);T.a<T.c.c.length;)x=v(pe(T),18),Xn.c!=x.c.i.c&&++U6;U6>0&&(bg.j==(Bt(),or)?(n.a[bg.p]=lB,++lB):(n.a[bg.p]=lB+z0+F6,++F6))}lB+=F6}for(Lx=new Br,ae=new Hp,Sr=i,Lh=0,cC=Sr.length;Lh<cC;++Lh)for(Xn=Sr[Lh],e_e=new me(Xn.j);e_e.a<e_e.c.c.length;)for(oB=v(pe(e_e),12),T=new me(oB.g);T.a<T.c.c.length;)if(x=v(pe(T),18),cB=x.d,Xn.c!=cB.i.c)if(Dx=v(Pl(ol(Lx.f,oB)),478),m3=v(Pl(ol(Lx.f,cB)),478),!Dx&&!m3)re=new oOt,ae.a.zc(re,ae),Lt(re.a,x),Lt(re.d,oB),yu(Lx.f,oB,re),Lt(re.d,cB),yu(Lx.f,cB,re);else if(!Dx)Lt(m3.a,x),Lt(m3.d,oB),yu(Lx.f,oB,m3);else if(!m3)Lt(Dx.a,x),Lt(Dx.d,cB),yu(Lx.f,cB,Dx);else if(Dx==m3)Lt(Dx.a,x);else{for(Lt(Dx.a,x),$6=new me(m3.d);$6.a<$6.c.c.length;)A2=v(pe($6),12),yu(Lx.f,A2,Dx);xs(Dx.a,m3.a),xs(Dx.d,m3.d),ae.a.Bc(m3)!=null}for(le=v(YD(ae,st(j8r,{3:1,4:1,5:1,2045:1},478,ae.a.gc(),0,1)),2045),Kn=i[0].c,Whn=l[0].c,D=le,q=0,J=D.length;q<J;++q)for(O=D[q],O.e=uXe,O.f=lB,cm=new me(O.d);cm.a<cm.c.c.length;)bg=v(pe(cm),12),yg=n.a[bg.p],bg.i.c==Kn?(yg<O.e&&(O.e=yg),yg>O.b&&(O.b=yg)):bg.i.c==Whn&&(yg<O.f&&(O.f=yg),yg>O.c&&(O.c=yg));for(_8(le,0,le.length,null),z6=st(Wr,vi,28,le.length,15,1),d=st(Wr,vi,28,lB+1,15,1),Se=0;Se<le.length;Se++)z6[Se]=le[Se].f,d[z6[Se]]=1;for(y=0,Me=0;Me<d.length;Me++)d[Me]==1?d[Me]=y:--y;for(Ew=0,Ue=0;Ue<z6.length;Ue++)z6[Ue]+=d[z6[Ue]],Ew=u.Math.max(Ew,z6[Ue]+1);for(R=1;R<Ew;)R*=2;for(Khn=2*R-1,R-=1,t_e=st(Wr,vi,28,Khn,15,1),g=0,yn=0;yn<z6.length;yn++)for(Mt=z6[yn]+R,++t_e[Mt];Mt>0;)Mt%2>0&&(g+=t_e[Mt+1]),Mt=(Mt-1)/2|0,++t_e[Mt];for(mn=st(Ysn,Yn,374,le.length*2,0,1),je=0;je<le.length;je++)mn[2*je]=new pQ(le[je],le[je].e,le[je].b,(yD(),EP)),mn[2*je+1]=new pQ(le[je],le[je].b,le[je].e,wP);for(_8(mn,0,mn.length,null),ww=0,yt=0;yt<mn.length;yt++)switch(mn[yt].d.g){case 0:++ww;break;case 1:--ww,g+=ww}for(db=st(Ysn,Yn,374,le.length*2,0,1),xt=0;xt<le.length;xt++)db[2*xt]=new pQ(le[xt],le[xt].f,le[xt].c,(yD(),EP)),db[2*xt+1]=new pQ(le[xt],le[xt].c,le[xt].f,wP);for(_8(db,0,db.length,null),ww=0,de=0;de<db.length;de++)switch(db[de].d.g){case 0:++ww;break;case 1:--ww,g+=ww}return g}function zi(){zi=z,sB=new rE(7),nXe=new Fg(8,94),new Fg(8,64),rXe=new Fg(8,36),$hn=new Fg(8,65),Uhn=new Fg(8,122),zhn=new Fg(8,90),qhn=new Fg(8,98),Fhn=new Fg(8,66),Ghn=new Fg(8,60),Hhn=new Fg(8,62),tXe=new rE(11),vre=new Td(4),Jc(vre,48,57),RN=new Td(4),Jc(RN,48,57),Jc(RN,65,90),Jc(RN,95,95),Jc(RN,97,122),B6=new Td(4),Jc(B6,9,9),Jc(B6,10,10),Jc(B6,12,12),Jc(B6,13,13),Jc(B6,32,32),iXe=S4(vre),sXe=S4(RN),aXe=S4(B6),kN=new Br,aB=new Br,Bhn=Te(xe(Xt,1),kt,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"]),JKe=Te(xe(Xt,1),kt,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",hen,"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"]),eXe=Te(xe(Wr,1),vi,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function FJ(){FJ=z,Ltn=new uf("OUT_T_L",0,(Th(),dg),(ju(),I0),(u1(),bc),bc,Te(xe(Wf,1),Yn,21,0,[va((w4(),P0),Te(xe(fl,1),wt,95,0,[B0,D0]))])),Otn=new uf("OUT_T_C",1,s2,I0,bc,vu,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[B0,cb])),va(P0,Te(xe(fl,1),wt,95,0,[B0,cb,Xf]))])),Dtn=new uf("OUT_T_R",2,R0,I0,bc,yc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[B0,M0]))])),Stn=new uf("OUT_B_L",3,dg,g1,yc,bc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[Qf,D0]))])),xtn=new uf("OUT_B_C",4,s2,g1,yc,vu,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[Qf,cb])),va(P0,Te(xe(fl,1),wt,95,0,[Qf,cb,Xf]))])),Ttn=new uf("OUT_B_R",5,R0,g1,yc,yc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[Qf,M0]))])),ktn=new uf("OUT_L_T",6,R0,g1,bc,bc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[D0,B0,Xf]))])),Atn=new uf("OUT_L_C",7,R0,o2,vu,bc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[D0,am])),va(P0,Te(xe(fl,1),wt,95,0,[D0,am,Xf]))])),Ctn=new uf("OUT_L_B",8,R0,I0,yc,bc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[D0,Qf,Xf]))])),Ntn=new uf("OUT_R_T",9,dg,g1,bc,yc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[M0,B0,Xf]))])),Itn=new uf("OUT_R_C",10,dg,o2,vu,yc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[M0,am])),va(P0,Te(xe(fl,1),wt,95,0,[M0,am,Xf]))])),Rtn=new uf("OUT_R_B",11,dg,I0,yc,yc,Te(xe(Wf,1),Yn,21,0,[va(P0,Te(xe(fl,1),wt,95,0,[M0,Qf,Xf]))])),wtn=new uf("IN_T_L",12,dg,g1,bc,bc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[B0,D0])),va(Bd,Te(xe(fl,1),wt,95,0,[B0,D0,Xf]))])),_tn=new uf("IN_T_C",13,s2,g1,bc,vu,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[B0,cb])),va(Bd,Te(xe(fl,1),wt,95,0,[B0,cb,Xf]))])),Etn=new uf("IN_T_R",14,R0,g1,bc,yc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[B0,M0])),va(Bd,Te(xe(fl,1),wt,95,0,[B0,M0,Xf]))])),ytn=new uf("IN_C_L",15,dg,o2,vu,bc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[am,D0])),va(Bd,Te(xe(fl,1),wt,95,0,[am,D0,Xf]))])),btn=new uf("IN_C_C",16,s2,o2,vu,vu,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[am,cb])),va(Bd,Te(xe(fl,1),wt,95,0,[am,cb,Xf]))])),vtn=new uf("IN_C_R",17,R0,o2,vu,yc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[am,M0])),va(Bd,Te(xe(fl,1),wt,95,0,[am,M0,Xf]))])),gtn=new uf("IN_B_L",18,dg,I0,yc,bc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[Qf,D0])),va(Bd,Te(xe(fl,1),wt,95,0,[Qf,D0,Xf]))])),ptn=new uf("IN_B_C",19,s2,I0,yc,vu,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[Qf,cb])),va(Bd,Te(xe(fl,1),wt,95,0,[Qf,cb,Xf]))])),mtn=new uf("IN_B_R",20,R0,I0,yc,yc,Te(xe(Wf,1),Yn,21,0,[va(Bd,Te(xe(fl,1),wt,95,0,[Qf,M0])),va(Bd,Te(xe(fl,1),wt,95,0,[Qf,M0,Xf]))])),Lbe=new uf(wM,21,null,null,null,null,Te(xe(Wf,1),Yn,21,0,[]))}function Pn(){Pn=z,d3=(Mv(),Zn).b,v(ze(bt(Zn.b),0),35),v(ze(bt(Zn.b),1),19),ky=Zn.a,v(ze(bt(Zn.a),0),35),v(ze(bt(Zn.a),1),19),v(ze(bt(Zn.a),2),19),v(ze(bt(Zn.a),3),19),v(ze(bt(Zn.a),4),19),E2=Zn.o,v(ze(bt(Zn.o),0),35),v(ze(bt(Zn.o),1),35),rhn=v(ze(bt(Zn.o),2),19),v(ze(bt(Zn.o),3),19),v(ze(bt(Zn.o),4),19),v(ze(bt(Zn.o),5),19),v(ze(bt(Zn.o),6),19),v(ze(bt(Zn.o),7),19),v(ze(bt(Zn.o),8),19),v(ze(bt(Zn.o),9),19),v(ze(bt(Zn.o),10),19),v(ze(bt(Zn.o),11),19),v(ze(bt(Zn.o),12),19),v(ze(bt(Zn.o),13),19),v(ze(bt(Zn.o),14),19),v(ze(bt(Zn.o),15),19),v(ze(ia(Zn.o),0),62),v(ze(ia(Zn.o),1),62),v(ze(ia(Zn.o),2),62),v(ze(ia(Zn.o),3),62),v(ze(ia(Zn.o),4),62),v(ze(ia(Zn.o),5),62),v(ze(ia(Zn.o),6),62),v(ze(ia(Zn.o),7),62),v(ze(ia(Zn.o),8),62),v(ze(ia(Zn.o),9),62),nhn=Zn.p,v(ze(bt(Zn.p),0),35),v(ze(bt(Zn.p),1),35),v(ze(bt(Zn.p),2),35),v(ze(bt(Zn.p),3),35),v(ze(bt(Zn.p),4),19),v(ze(bt(Zn.p),5),19),v(ze(ia(Zn.p),0),62),v(ze(ia(Zn.p),1),62),ihn=Zn.q,v(ze(bt(Zn.q),0),35),x2=Zn.v,v(ze(bt(Zn.v),0),19),v(ze(ia(Zn.v),0),62),v(ze(ia(Zn.v),1),62),v(ze(ia(Zn.v),2),62),Ry=Zn.w,v(ze(bt(Zn.w),0),35),v(ze(bt(Zn.w),1),35),v(ze(bt(Zn.w),2),35),v(ze(bt(Zn.w),3),19),S2=Zn.B,v(ze(bt(Zn.B),0),19),v(ze(ia(Zn.B),0),62),v(ze(ia(Zn.B),1),62),v(ze(ia(Zn.B),2),62),ahn=Zn.Q,v(ze(bt(Zn.Q),0),19),v(ze(ia(Zn.Q),0),62),shn=Zn.R,v(ze(bt(Zn.R),0),35),n0=Zn.S,v(ze(ia(Zn.S),0),62),v(ze(ia(Zn.S),1),62),v(ze(ia(Zn.S),2),62),v(ze(ia(Zn.S),3),62),v(ze(ia(Zn.S),4),62),v(ze(ia(Zn.S),5),62),v(ze(ia(Zn.S),6),62),v(ze(ia(Zn.S),7),62),v(ze(ia(Zn.S),8),62),v(ze(ia(Zn.S),9),62),v(ze(ia(Zn.S),10),62),v(ze(ia(Zn.S),11),62),v(ze(ia(Zn.S),12),62),v(ze(ia(Zn.S),13),62),v(ze(ia(Zn.S),14),62),Iy=Zn.T,v(ze(bt(Zn.T),0),19),v(ze(bt(Zn.T),2),19),ohn=v(ze(bt(Zn.T),3),19),v(ze(bt(Zn.T),4),19),v(ze(ia(Zn.T),0),62),v(ze(ia(Zn.T),1),62),v(ze(bt(Zn.T),1),19),Ny=Zn.U,v(ze(bt(Zn.U),0),35),v(ze(bt(Zn.U),1),35),v(ze(bt(Zn.U),2),19),v(ze(bt(Zn.U),3),19),v(ze(bt(Zn.U),4),19),v(ze(bt(Zn.U),5),19),v(ze(ia(Zn.U),0),62),f3=Zn.V,v(ze(bt(Zn.V),0),19),iC=Zn.W,v(ze(bt(Zn.W),0),35),v(ze(bt(Zn.W),1),35),v(ze(bt(Zn.W),2),35),v(ze(bt(Zn.W),3),19),v(ze(bt(Zn.W),4),19),v(ze(bt(Zn.W),5),19),lhn=Zn.bb,v(ze(bt(Zn.bb),0),35),v(ze(bt(Zn.bb),1),35),v(ze(bt(Zn.bb),2),35),v(ze(bt(Zn.bb),3),35),v(ze(bt(Zn.bb),4),35),v(ze(bt(Zn.bb),5),35),v(ze(bt(Zn.bb),6),35),v(ze(bt(Zn.bb),7),19),v(ze(ia(Zn.bb),0),62),v(ze(ia(Zn.bb),1),62),chn=Zn.eb,v(ze(bt(Zn.eb),0),35),v(ze(bt(Zn.eb),1),35),v(ze(bt(Zn.eb),2),35),v(ze(bt(Zn.eb),3),35),v(ze(bt(Zn.eb),4),35),v(ze(bt(Zn.eb),5),35),v(ze(bt(Zn.eb),6),19),v(ze(bt(Zn.eb),7),19),nl=Zn.ab,v(ze(bt(Zn.ab),0),35),v(ze(bt(Zn.ab),1),35),Ix=Zn.H,v(ze(bt(Zn.H),0),19),v(ze(bt(Zn.H),1),19),v(ze(bt(Zn.H),2),19),v(ze(bt(Zn.H),3),19),v(ze(bt(Zn.H),4),19),v(ze(bt(Zn.H),5),19),v(ze(ia(Zn.H),0),62),Nx=Zn.db,v(ze(bt(Zn.db),0),19),dp=Zn.M}function S8r(n){var i;n.O||(n.O=!0,mu(n,"type"),pZ(n,"ecore.xml.type"),gZ(n,nw),i=v(lI((Rv(),t0),nw),2044),Yr(Fl(n.fb),n.b),dc(n.b,CH,"AnyType",!1,!1,!0),ns(v(ze(bt(n.b),0),35),n.wb.D,lq,null,0,-1,CH,!1,!1,!0,!1,!1,!1),ns(v(ze(bt(n.b),1),35),n.wb.D,"any",null,0,-1,CH,!0,!0,!0,!1,!1,!0),ns(v(ze(bt(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,CH,!1,!1,!0,!1,!1,!1),dc(n.bb,bre,YJt,!1,!1,!0),ns(v(ze(bt(n.bb),0),35),n.gb,"data",null,0,1,bre,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),1),35),n.gb,SUe,null,1,1,bre,!1,!1,!0,!1,!0,!1),dc(n.fb,AH,jJt,!1,!1,!0),ns(v(ze(bt(n.fb),0),35),i.gb,"rawValue",null,0,1,AH,!0,!0,!0,!1,!0,!0),ns(v(ze(bt(n.fb),1),35),i.a,BM,null,0,1,AH,!0,!0,!0,!1,!0,!0),wa(v(ze(bt(n.fb),2),19),n.wb.q,null,"instanceType",1,1,AH,!1,!1,!0,!1,!1,!1,!1),dc(n.qb,KKe,WJt,!1,!1,!0),ns(v(ze(bt(n.qb),0),35),n.wb.D,lq,null,0,-1,null,!1,!1,!0,!1,!1,!1),wa(v(ze(bt(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),ns(v(ze(bt(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),ns(v(ze(bt(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),wa(v(ze(bt(n.qb),5),19),n.bb,null,oen,0,-2,null,!0,!0,!0,!0,!1,!1,!0),ns(v(ze(bt(n.qb),6),35),n.gb,Bme,null,0,-2,null,!0,!0,!0,!1,!1,!0),Oi(n.a,zs,"AnySimpleType",!0),Oi(n.c,Xt,"AnyURI",!0),Oi(n.d,xe(bh,1),"Base64Binary",!0),Oi(n.e,Wh,"Boolean",!0),Oi(n.f,rs,"BooleanObject",!0),Oi(n.g,bh,"Byte",!0),Oi(n.i,d6,"ByteObject",!0),Oi(n.j,Xt,"Date",!0),Oi(n.k,Xt,"DateTime",!0),Oi(n.n,vbe,"Decimal",!0),Oi(n.o,ao,"Double",!0),Oi(n.p,ws,"DoubleObject",!0),Oi(n.q,Xt,"Duration",!0),Oi(n.s,_f,"ENTITIES",!0),Oi(n.r,_f,"ENTITIESBase",!0),Oi(n.t,Xt,UUe,!0),Oi(n.u,g3,"Float",!0),Oi(n.v,VI,"FloatObject",!0),Oi(n.w,Xt,"GDay",!0),Oi(n.B,Xt,"GMonth",!0),Oi(n.A,Xt,"GMonthDay",!0),Oi(n.C,Xt,"GYear",!0),Oi(n.D,Xt,"GYearMonth",!0),Oi(n.F,xe(bh,1),"HexBinary",!0),Oi(n.G,Xt,"ID",!0),Oi(n.H,Xt,"IDREF",!0),Oi(n.J,_f,"IDREFS",!0),Oi(n.I,_f,"IDREFSBase",!0),Oi(n.K,Wr,"Int",!0),Oi(n.M,T5,"Integer",!0),Oi(n.L,Ao,"IntObject",!0),Oi(n.P,Xt,"Language",!0),Oi(n.Q,C2,"Long",!0),Oi(n.R,ux,"LongObject",!0),Oi(n.S,Xt,"Name",!0),Oi(n.T,Xt,Yee,!0),Oi(n.U,T5,"NegativeInteger",!0),Oi(n.V,Xt,qUe,!0),Oi(n.X,_f,"NMTOKENS",!0),Oi(n.W,_f,"NMTOKENSBase",!0),Oi(n.Y,T5,"NonNegativeInteger",!0),Oi(n.Z,T5,"NonPositiveInteger",!0),Oi(n.$,Xt,"NormalizedString",!0),Oi(n._,Xt,"NOTATION",!0),Oi(n.ab,Xt,"PositiveInteger",!0),Oi(n.cb,Xt,"QName",!0),Oi(n.db,lC,"Short",!0),Oi(n.eb,hx,"ShortObject",!0),Oi(n.gb,Xt,oBe,!0),Oi(n.hb,Xt,"Time",!0),Oi(n.ib,Xt,"Token",!0),Oi(n.jb,lC,"UnsignedByte",!0),Oi(n.kb,hx,"UnsignedByteObject",!0),Oi(n.lb,C2,"UnsignedInt",!0),Oi(n.mb,ux,"UnsignedIntObject",!0),Oi(n.nb,T5,"UnsignedLong",!0),Oi(n.ob,Wr,"UnsignedShort",!0),Oi(n.pb,Ao,"UnsignedShortObject",!0),sLe(n,nw),T8r(n))}function tBe(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll,zd,cC,Ly,U0,z0,ww,F6,A2,$6,bg,cm,Lx,U6,uC,yg,Ew,db;if(d.$g()||Vt(Ht(Et(i,(Ei(),Yne)))))return Fn(),Fn(),Zo;if(Mt=(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i!=0,mn=USr(i),yn=!mn.dc(),Mt||yn){if(g=v(Et(i,rC),143),!g)throw _e(new Gb("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(uC=r8e(g,(oI(),lre)),bGt(i),!Mt&&yn&&!uC)return Fn(),Fn(),Zo;if(Ue=new Ot,Ze(Et(i,J5))===Ze((Km(),Cy))&&(r8e(g,sre)||r8e(g,are))){if(Vt(Ht(Et(i,_N))))throw _e(new Gb("Topdown layout cannot be used together with hierarchy handling."));for(cC=ljt(n,i),Ly=new Ea,bo(Ly,(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Ly.b!=0;)Ll=v(Ly.b==0?null:(Tr(Ly.b!=0),cf(Ly,Ly.a.a)),27),bGt(Ll),U6=Ze(Et(Ll,J5))===Ze(qP),U6||Y1(Ll,yN)&&!vOe(g,Et(Ll,rC))?(de=tBe(n,Ll,l,d),xs(Ue,de),sa(Ll,J5,qP),Tjt(Ll)):bo(Ly,(!Ll.a&&(Ll.a=new vt(Pi,Ll,10,11)),Ll.a))}else{if(cC=(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i,Vt(Ht(Et(i,_N)))){if(yg=d.eh(1),yg.Ug(jQt,1),Et(i,N6)==null)throw _e(new Gb(i.k+" has not been assigned a top-down node type."));if(v(Et(i,N6),280)==(Uk(),l3)||v(Et(i,N6),280)==nre)for(Me=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Me.e!=Me.i.gc();)Se=v(wr(Me),27),Lh=v(Et(Se,rC),143),(!Se.a&&(Se.a=new vt(Pi,Se,10,11)),Se.a).i>0&&sz(Lh.f),Et(Se,zWe)!=null&&(T=v(Et(Se,zWe),347),Lx=T.Tg(Se),DT(Se,u.Math.max(Se.g,Lx.a),u.Math.max(Se.f,Lx.b)));if(U0=v(Et(i,Ty),107),re=i.g-(U0.b+U0.c),J=i.f-(U0.d+U0.a),yg.bh("Available Child Area: ("+re+"|"+J+")"),sa(i,X5,re/J),wGt(i,g,d.eh(cC)),v(Et(i,N6),280)==nre&&(XPe(i),DT(i,U0.b+We(at(Et(i,Z5)))+U0.c,U0.d+We(at(Et(i,Q5)))+U0.a)),yg.bh("Executed layout algorithm: "+ai(Et(i,yN))+" on node "+i.k),v(Et(i,N6),280)==l3){if(re<0||J<0)throw _e(new Gb("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+i.k));for(Y1(i,Z5)||Y1(i,Q5)||XPe(i),le=We(at(Et(i,Z5))),ae=We(at(Et(i,Q5))),yg.bh("Desired Child Area: ("+le+"|"+ae+")"),ww=re/le,F6=J/ae,z0=u.Math.min(ww,u.Math.min(F6,We(at(Et(i,iun))))),sa(i,Kne,z0),yg.bh(i.k+" -- Local Scale Factor (X|Y): ("+ww+"|"+F6+")"),je=v(Et(i,rH),21),y=0,x=0,z0<ww&&(je.Hc((q_(),PP))?y=(re/2-le*z0/2)/z0:je.Hc(BP)&&(y=(re-le*z0)/z0)),z0<F6&&(je.Hc((q_(),$P))?x=(J/2-ae*z0/2)/z0:je.Hc(FP)&&(x=(J-ae*z0)/z0)),Ew=y+(U0.b/z0-U0.b),db=x+(U0.d/z0-U0.d),yg.bh("Shift: ("+Ew+"|"+db+")"),zd=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));zd.e!=zd.i.gc();)Ll=v(wr(zd),27),Au(Ll,Ll.i+Ew),ku(Ll,Ll.j+db);for(xt=new mr((!i.b&&(i.b=new vt(ss,i,12,3)),i.b));xt.e!=xt.i.gc();){for(yt=v(wr(xt),74),$6=new mr((!yt.a&&(yt.a=new vt(xa,yt,6,6)),yt.a));$6.e!=$6.i.gc();)for(A2=v(wr($6),166),PU(A2,A2.j+Ew,A2.k+db),MU(A2,A2.b+Ew,A2.c+db),O=new mr((!A2.a&&(A2.a=new gs(Ud,A2,5)),A2.a));O.e!=O.i.gc();)R=v(wr(O),377),Fhe(R,R.a+Ew,R.b+db);for(Fa=new mr((!yt.n&&(yt.n=new vt(wl,yt,1,7)),yt.n));Fa.e!=Fa.i.gc();)Ui=v(wr(Fa),135),ef(Ui,Ui.i+Ew,Ui.j+db);for(Sr=v(Et(yt,kx),75),Xn=Ur(Sr,0);Xn.b!=Xn.d.c;)Kn=v(Fr(Xn),8),Kn.a+=Ew,Kn.b+=db;sa(yt,kx,Sr)}}yg.Vg()}for(q=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));q.e!=q.i.gc();)D=v(wr(q),27),de=tBe(n,D,l,d),xs(Ue,de),Tjt(D)}if(d.$g())return Fn(),Fn(),Zo;for(cm=new me(Ue);cm.a<cm.c.c.length;)bg=v(pe(cm),74),sa(bg,Yne,(Qn(),!0));return Vt(Ht(Et(i,_N)))||wGt(i,g,d.eh(cC)),cAr(Ue),yn&&uC?mn:(Fn(),Fn(),Zo)}else return Fn(),Fn(),Zo}function f5(n,i){var l,d;return oC||(oC=new Br,AN=new Br,d=(zi(),zi(),new Td(4)),Jz(d,`	
\r\r  `),Cl(oC,nbe,d),Cl(AN,nbe,S4(d)),d=new Td(4),Jz(d,cen),Cl(oC,YM,d),Cl(AN,YM,S4(d)),d=new Td(4),Jz(d,cen),Cl(oC,YM,d),Cl(AN,YM,S4(d)),d=new Td(4),Jz(d,uen),C4(d,v(Qc(oC,YM),122)),Cl(oC,tbe,d),Cl(AN,tbe,S4(d)),d=new Td(4),Jz(d,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Cl(oC,rbe,d),Cl(AN,rbe,S4(d)),d=new Td(4),Jz(d,uen),Jc(d,95,95),Jc(d,58,58),Cl(oC,ibe,d),Cl(AN,ibe,S4(d))),l=v(Qc(i?oC:AN,n),138),l}function UKt(n){dE(n,new H_(hRe(DK(cE(sE(lE(oE(new f_,fr),"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 swt),fr),va((oI(),G2e),Te(xe(ure,1),wt,245,0,[lre,cre,ore,z2e,sre,are]))))),It(n,fr,DFe,zt(Qye)),It(n,fr,MFe,zt(sVe)),It(n,fr,bge,zt(Fq)),It(n,fr,PFe,zt(O0)),It(n,fr,xge,zt(U5)),It(n,fr,rme,zt(xx)),It(n,fr,BFe,zt(J4)),It(n,fr,FFe,zt(uN)),It(n,fr,$Fe,zt(hN)),It(n,fr,UFe,zt(Zye)),It(n,fr,N4,zt(Sx)),It(n,fr,zFe,zt(Jye)),It(n,fr,GFe,zt(pP)),It(n,fr,qFe,zt(hne)),It(n,fr,gFe,zt(Bq)),It(n,fr,bFe,zt($5)),It(n,fr,mFe,zt(dw)),It(n,fr,yFe,zt(z5)),It(n,fr,YG,Nt(0)),It(n,fr,vFe,zt(cN)),It(n,fr,_Fe,zt(aVe)),It(n,fr,wFe,zt(T6)),It(n,fr,ib,zt(gVe)),It(n,fr,oee,zt(lVe)),It(n,fr,lee,zt(cVe)),It(n,fr,RM,zt(tve)),It(n,fr,Kge,zt(uVe)),It(n,fr,Xge,zt(hVe)),It(n,fr,cee,zt(dne)),It(n,fr,uee,zt(nve)),It(n,fr,hee,zt(fVe)),It(n,fr,dee,zt(dVe)),It(n,fr,Qge,zt(pVe)),It(n,fr,qge,zt(wx)),It(n,fr,Hge,zt(fP)),It(n,fr,iee,zt(jye)),It(n,fr,aee,zt(FHe)),It(n,fr,jG,zt(usn)),It(n,fr,WG,zt(hsn)),It(n,fr,KG,zt(csn)),It(n,fr,XG,zt(lsn)),It(n,fr,ix,oVe),It(n,fr,rx,eVe),It(n,fr,tq,MHe),It(n,fr,HFe,0),It(n,fr,XJ,Nt(1)),It(n,fr,s6,kI),It(n,fr,VFe,zt(hw)),It(n,fr,Sge,zt(Qa)),It(n,fr,YFe,zt(lN)),It(n,fr,nq,zt(Zan)),It(n,fr,jFe,zt(fg)),It(n,fr,pee,zt(W4)),It(n,fr,xM,(Qn(),!0)),It(n,fr,WFe,zt(K4)),It(n,fr,KFe,zt(lw)),It(n,fr,y5,zt(uw)),It(n,fr,o6,zt(une)),It(n,fr,RI,zt(Xye)),It(n,fr,ime,DHe),It(n,fr,II,zt(_x)),It(n,fr,XFe,zt(lne)),It(n,fr,NI,zt(Q4)),It(n,fr,QFe,zt(isn)),It(n,fr,ZFe,zt(rVe)),It(n,fr,JFe,nVe),It(n,fr,e$e,zt(tsn)),It(n,fr,t$e,zt(nsn)),It(n,fr,n$e,zt(rsn)),It(n,fr,r$e,zt(esn)),It(n,fr,nFe,zt(eve)),It(n,fr,eq,zt(cw)),It(n,fr,Dge,zt(h2)),It(n,fr,tFe,zt(gP)),It(n,fr,iFe,zt(Lu)),It(n,fr,Nge,zt(ow)),It(n,fr,kM,zt(hP)),It(n,fr,oFe,zt(vx)),It(n,fr,dFe,zt(NHe)),It(n,fr,$ge,zt(qye)),It(n,fr,nee,zt(Pq)),It(n,fr,Fge,zt(Hye)),It(n,fr,QBe,zt(KHe)),It(n,fr,ZBe,zt(XHe)),It(n,fr,tee,zt(HHe)),It(n,fr,v5,zt(cne)),It(n,fr,zge,zt(Kye)),It(n,fr,XBe,zt(Wye)),It(n,fr,Gge,zt(ZHe)),It(n,fr,fFe,zt(BHe)),It(n,fr,pFe,zt(Yye)),It(n,fr,gee,zt(Gye)),It(n,fr,Uge,zt(QHe)),It(n,fr,EFe,zt(Jte)),It(n,fr,xFe,zt(kHe)),It(n,fr,Yge,zt(Zte)),It(n,fr,see,zt(zHe)),It(n,fr,jge,zt(UHe)),It(n,fr,Wge,zt(GHe)),It(n,fr,l6,zt(sN)),It(n,fr,i$e,zt(Nl)),It(n,fr,yge,zt(vy)),It(n,fr,a$e,zt(pg)),It(n,fr,QJ,zt(Vye)),It(n,fr,Bge,zt(OHe)),It(n,fr,s$e,zt(_y)),It(n,fr,o$e,zt(uP)),It(n,fr,l$e,zt(ane)),It(n,fr,c$e,zt(Ex)),It(n,fr,ame,zt(tVe)),It(n,fr,sme,zt(oN)),It(n,fr,Oge,zt(YHe)),It(n,fr,Lge,zt(jHe)),It(n,fr,mee,zt(Z4)),It(n,fr,JBe,zt(Uye)),It(n,fr,Mge,zt(WHe)),It(n,fr,SFe,zt(ine)),It(n,fr,TFe,zt(rne)),It(n,fr,u$e,zt(one)),It(n,fr,Pge,zt(VHe)),It(n,fr,ree,zt(dP)),It(n,fr,h$e,zt($q)),It(n,fr,KBe,zt(LHe)),It(n,fr,eFe,zt(iVe)),It(n,fr,Vge,zt(PHe)),It(n,fr,lFe,zt(Kan)),It(n,fr,cFe,zt(Xan)),It(n,fr,aFe,zt(Jan)),It(n,fr,uFe,zt(Qan)),It(n,fr,bee,zt(qHe)),It(n,fr,sFe,zt(sne)),It(n,fr,hFe,zt(nne)),It(n,fr,fee,zt(nm)),It(n,fr,kFe,zt(IHe)),It(n,fr,Jge,zt(ene)),It(n,fr,eme,zt(RHe)),It(n,fr,AFe,zt(tne)),It(n,fr,Zge,zt(j4)),It(n,fr,CFe,zt(zye)),It(n,fr,rFe,zt($He))}function T8r(n){Jr(n.a,gi,Te(xe(Xt,1),kt,2,6,[Mi,"anySimpleType"])),Jr(n.b,gi,Te(xe(Xt,1),kt,2,6,[Mi,"anyType",Vf,lq])),Jr(v(ze(bt(n.b),0),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,Xme,Mi,":mixed"])),Jr(v(ze(bt(n.b),1),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,Xme,FUe,Zme,Mi,":1",KJt,"lax"])),Jr(v(ze(bt(n.b),2),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,VJt,FUe,Zme,Mi,":2",KJt,"lax"])),Jr(n.c,gi,Te(xe(Xt,1),kt,2,6,[Mi,"anyURI",jf,p1])),Jr(n.d,gi,Te(xe(Xt,1),kt,2,6,[Mi,"base64Binary",jf,p1])),Jr(n.e,gi,Te(xe(Xt,1),kt,2,6,[Mi,Zk,jf,p1])),Jr(n.f,gi,Te(xe(Xt,1),kt,2,6,[Mi,"boolean:Object",Bo,Zk])),Jr(n.g,gi,Te(xe(Xt,1),kt,2,6,[Mi,$M])),Jr(n.i,gi,Te(xe(Xt,1),kt,2,6,[Mi,"byte:Object",Bo,$M])),Jr(n.j,gi,Te(xe(Xt,1),kt,2,6,[Mi,"date",jf,p1])),Jr(n.k,gi,Te(xe(Xt,1),kt,2,6,[Mi,"dateTime",jf,p1])),Jr(n.n,gi,Te(xe(Xt,1),kt,2,6,[Mi,"decimal",jf,p1])),Jr(n.o,gi,Te(xe(Xt,1),kt,2,6,[Mi,UM,jf,p1])),Jr(n.p,gi,Te(xe(Xt,1),kt,2,6,[Mi,"double:Object",Bo,UM])),Jr(n.q,gi,Te(xe(Xt,1),kt,2,6,[Mi,"duration",jf,p1])),Jr(n.s,gi,Te(xe(Xt,1),kt,2,6,[Mi,"ENTITIES",Bo,XJt,$Ue,"1"])),Jr(n.r,gi,Te(xe(Xt,1),kt,2,6,[Mi,XJt,Qme,UUe])),Jr(n.t,gi,Te(xe(Xt,1),kt,2,6,[Mi,UUe,Bo,Yee])),Jr(n.u,gi,Te(xe(Xt,1),kt,2,6,[Mi,zM,jf,p1])),Jr(n.v,gi,Te(xe(Xt,1),kt,2,6,[Mi,"float:Object",Bo,zM])),Jr(n.w,gi,Te(xe(Xt,1),kt,2,6,[Mi,"gDay",jf,p1])),Jr(n.B,gi,Te(xe(Xt,1),kt,2,6,[Mi,"gMonth",jf,p1])),Jr(n.A,gi,Te(xe(Xt,1),kt,2,6,[Mi,"gMonthDay",jf,p1])),Jr(n.C,gi,Te(xe(Xt,1),kt,2,6,[Mi,"gYear",jf,p1])),Jr(n.D,gi,Te(xe(Xt,1),kt,2,6,[Mi,"gYearMonth",jf,p1])),Jr(n.F,gi,Te(xe(Xt,1),kt,2,6,[Mi,"hexBinary",jf,p1])),Jr(n.G,gi,Te(xe(Xt,1),kt,2,6,[Mi,"ID",Bo,Yee])),Jr(n.H,gi,Te(xe(Xt,1),kt,2,6,[Mi,"IDREF",Bo,Yee])),Jr(n.J,gi,Te(xe(Xt,1),kt,2,6,[Mi,"IDREFS",Bo,QJt,$Ue,"1"])),Jr(n.I,gi,Te(xe(Xt,1),kt,2,6,[Mi,QJt,Qme,"IDREF"])),Jr(n.K,gi,Te(xe(Xt,1),kt,2,6,[Mi,GM])),Jr(n.M,gi,Te(xe(Xt,1),kt,2,6,[Mi,zUe])),Jr(n.L,gi,Te(xe(Xt,1),kt,2,6,[Mi,"int:Object",Bo,GM])),Jr(n.P,gi,Te(xe(Xt,1),kt,2,6,[Mi,"language",Bo,Jme,ebe,ZJt])),Jr(n.Q,gi,Te(xe(Xt,1),kt,2,6,[Mi,qM])),Jr(n.R,gi,Te(xe(Xt,1),kt,2,6,[Mi,"long:Object",Bo,qM])),Jr(n.S,gi,Te(xe(Xt,1),kt,2,6,[Mi,"Name",Bo,Jme,ebe,GUe])),Jr(n.T,gi,Te(xe(Xt,1),kt,2,6,[Mi,Yee,Bo,"Name",ebe,JJt])),Jr(n.U,gi,Te(xe(Xt,1),kt,2,6,[Mi,"negativeInteger",Bo,een,fq,"-1"])),Jr(n.V,gi,Te(xe(Xt,1),kt,2,6,[Mi,qUe,Bo,Jme,ebe,"\\c+"])),Jr(n.X,gi,Te(xe(Xt,1),kt,2,6,[Mi,"NMTOKENS",Bo,ten,$Ue,"1"])),Jr(n.W,gi,Te(xe(Xt,1),kt,2,6,[Mi,ten,Qme,qUe])),Jr(n.Y,gi,Te(xe(Xt,1),kt,2,6,[Mi,HUe,Bo,zUe,pq,"0"])),Jr(n.Z,gi,Te(xe(Xt,1),kt,2,6,[Mi,een,Bo,zUe,fq,"0"])),Jr(n.$,gi,Te(xe(Xt,1),kt,2,6,[Mi,nen,Bo,Epe,jf,"replace"])),Jr(n._,gi,Te(xe(Xt,1),kt,2,6,[Mi,"NOTATION",jf,p1])),Jr(n.ab,gi,Te(xe(Xt,1),kt,2,6,[Mi,"positiveInteger",Bo,HUe,pq,"1"])),Jr(n.bb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"processingInstruction_._type",Vf,"empty"])),Jr(v(ze(bt(n.bb),0),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,Gee,Mi,"data"])),Jr(v(ze(bt(n.bb),1),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,Gee,Mi,SUe])),Jr(n.cb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"QName",jf,p1])),Jr(n.db,gi,Te(xe(Xt,1),kt,2,6,[Mi,HM])),Jr(n.eb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"short:Object",Bo,HM])),Jr(n.fb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"simpleAnyType",Vf,cq])),Jr(v(ze(bt(n.fb),0),35),gi,Te(xe(Xt,1),kt,2,6,[Mi,":3",Vf,cq])),Jr(v(ze(bt(n.fb),1),35),gi,Te(xe(Xt,1),kt,2,6,[Mi,":4",Vf,cq])),Jr(v(ze(bt(n.fb),2),19),gi,Te(xe(Xt,1),kt,2,6,[Mi,":5",Vf,cq])),Jr(n.gb,gi,Te(xe(Xt,1),kt,2,6,[Mi,Epe,jf,"preserve"])),Jr(n.hb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"time",jf,p1])),Jr(n.ib,gi,Te(xe(Xt,1),kt,2,6,[Mi,Jme,Bo,nen,jf,p1])),Jr(n.jb,gi,Te(xe(Xt,1),kt,2,6,[Mi,ren,fq,"255",pq,"0"])),Jr(n.kb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"unsignedByte:Object",Bo,ren])),Jr(n.lb,gi,Te(xe(Xt,1),kt,2,6,[Mi,ien,fq,"4294967295",pq,"0"])),Jr(n.mb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"unsignedInt:Object",Bo,ien])),Jr(n.nb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"unsignedLong",Bo,HUe,fq,aen,pq,"0"])),Jr(n.ob,gi,Te(xe(Xt,1),kt,2,6,[Mi,sen,fq,"65535",pq,"0"])),Jr(n.pb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"unsignedShort:Object",Bo,sen])),Jr(n.qb,gi,Te(xe(Xt,1),kt,2,6,[Mi,"",Vf,lq])),Jr(v(ze(bt(n.qb),0),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,Xme,Mi,":mixed"])),Jr(v(ze(bt(n.qb),1),19),gi,Te(xe(Xt,1),kt,2,6,[Vf,Gee,Mi,"xmlns:prefix"])),Jr(v(ze(bt(n.qb),2),19),gi,Te(xe(Xt,1),kt,2,6,[Vf,Gee,Mi,"xsi:schemaLocation"])),Jr(v(ze(bt(n.qb),3),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,qee,Mi,"cDATA",Hee,uq])),Jr(v(ze(bt(n.qb),4),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,qee,Mi,"comment",Hee,uq])),Jr(v(ze(bt(n.qb),5),19),gi,Te(xe(Xt,1),kt,2,6,[Vf,qee,Mi,oen,Hee,uq])),Jr(v(ze(bt(n.qb),6),35),gi,Te(xe(Xt,1),kt,2,6,[Vf,qee,Mi,Bme,Hee,uq]))}function fi(n){return An("_UI_EMFDiagnostic_marker",n)?"EMF Problem":An("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":An(qZt,n)?"Wrong character.":An(HZt,n)?"Invalid reference number.":An(Lee,n)?"A character is required after \\.":An(Hme,n)?"'?' is not expected.  '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":An(VZt,n)?"'(?<' or '(?<!' is expected.":An(YZt,n)?"A comment is not terminated.":An(tw,n)?"')' is expected.":An(TUe,n)?"Unexpected end of the pattern in a modifier group.":An(jZt,n)?"':' is expected.":An(WZt,n)?"Unexpected end of the pattern in a conditional group.":An(KZt,n)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":An(XZt,n)?"There are more than three choices in a conditional group.":An(QZt,n)?"A character in U+0040-U+005f must follow \\c.":An(ZZt,n)?"A '{' is required before a character category.":An(JZt,n)?"A property name is not closed by '}'.":An(CUe,n)?"Unexpected meta character.":An(Vme,n)?"Unknown property.":An(AUe,n)?"A POSIX character class must be closed by ':]'.":An(Dee,n)?"Unexpected end of the pattern in a character class.":An(eJt,n)?"Unknown name for a POSIX character class.":An("parser.cc.4",n)?"'-' is invalid here.":An(tJt,n)?"']' is expected.":An(kUe,n)?"'[' is invalid in a character class.  Write '\\['.":An(RUe,n)?"']' is invalid in a character class.  Write '\\]'.":An(Yme,n)?"'-' is an invalid character range. Write '\\-'.":An(nJt,n)?"'[' is expected.":An(rJt,n)?"')' or '-[' or '+[' or '&[' is expected.":An(iJt,n)?"The range end code point is less than the start code point.":An(by,n)?"Invalid Unicode hex notation.":An(aJt,n)?"Overflow in a hex notation.":An(sJt,n)?"'\\x{' must be closed by '}'.":An(oJt,n)?"Invalid Unicode code point.":An(lJt,n)?"An anchor must not be here.":An(vf,n)?"This expression is not supported in the current option setting.":An(cJt,n)?"Invalid quantifier. A digit is expected.":An(uJt,n)?"Invalid quantifier. Invalid quantity or a '}' is missing.":An(hJt,n)?"Invalid quantifier. A digit or '}' is expected.":An(dJt,n)?"Invalid quantifier. A min quantity must be <= a max quantity.":An(IUe,n)?"Invalid quantifier. A quantity value overflow.":An("_UI_PackageRegistry_extensionpoint",n)?"Ecore Package Registry for Generated Packages":An("_UI_DynamicPackageRegistry_extensionpoint",n)?"Ecore Package Registry for Dynamic Packages":An("_UI_FactoryRegistry_extensionpoint",n)?"Ecore Factory Override Registry":An("_UI_URIExtensionParserRegistry_extensionpoint",n)?"URI Extension Parser Registry":An("_UI_URIProtocolParserRegistry_extensionpoint",n)?"URI Protocol Parser Registry":An("_UI_URIContentParserRegistry_extensionpoint",n)?"URI Content Parser Registry":An("_UI_ContentHandlerRegistry_extensionpoint",n)?"Content Handler Registry":An("_UI_URIMappingRegistry_extensionpoint",n)?"URI Converter Mapping Registry":An("_UI_PackageRegistryImplementation_extensionpoint",n)?"Ecore Package Registry Implementation":An("_UI_ValidationDelegateRegistry_extensionpoint",n)?"Validation Delegate Registry":An("_UI_SettingDelegateRegistry_extensionpoint",n)?"Feature Setting Delegate Factory Registry":An("_UI_InvocationDelegateRegistry_extensionpoint",n)?"Operation Invocation Delegate Factory Registry":An("_UI_EClassInterfaceNotAbstract_diagnostic",n)?"A class that is an interface must also be abstract":An("_UI_EClassNoCircularSuperTypes_diagnostic",n)?"A class may not be a super type of itself":An("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",n)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":An("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",n)?"The opposite of the opposite may not be a reference different from this one":An("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",n)?"The opposite must be a feature of the reference's type":An("_UI_EReferenceTransientOppositeNotTransient_diagnostic",n)?"The opposite of a transient reference must be transient if it is proxy resolving":An("_UI_EReferenceOppositeBothContainment_diagnostic",n)?"The opposite of a containment reference must not be a containment reference":An("_UI_EReferenceConsistentUnique_diagnostic",n)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":An("_UI_ETypedElementNoType_diagnostic",n)?"The typed element must have a type":An("_UI_EAttributeNoDataType_diagnostic",n)?"The generic attribute type must not refer to a class":An("_UI_EReferenceNoClass_diagnostic",n)?"The generic reference type must not refer to a data type":An("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",n)?"A generic type can't refer to both a type parameter and a classifier":An("_UI_EGenericTypeNoClass_diagnostic",n)?"A generic super type must refer to a class":An("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",n)?"A generic type in this context must refer to a classifier or a type parameter":An("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",n)?"A generic type may have bounds only when used as a type argument":An("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",n)?"A generic type must not have both a lower and an upper bound":An("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",n)?"A generic type with bounds must not also refer to a type parameter or classifier":An("_UI_EGenericTypeNoArguments_diagnostic",n)?"A generic type may have arguments only if it refers to a classifier":An("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",n)?"A generic type may only refer to a type parameter that is in scope":n}function C8r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le;n.r||(n.r=!0,mu(n,"graph"),pZ(n,"graph"),gZ(n,$I),Pz(n.o,"T"),Yr(Fl(n.a),n.p),Yr(Fl(n.f),n.a),Yr(Fl(n.n),n.f),Yr(Fl(n.g),n.n),Yr(Fl(n.c),n.n),Yr(Fl(n.i),n.c),Yr(Fl(n.j),n.c),Yr(Fl(n.d),n.f),Yr(Fl(n.e),n.a),dc(n.p,G8r,LXt,!0,!0,!1),ae=KT(n.p,n.p,"setProperty"),le=_Ut(ae),O=$m(n.o),D=(l=(d=new iE,d),l),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),q=Vde(le),LDe(D,q),rJ(ae,O,gUe),O=Vde(le),rJ(ae,O,BM),ae=KT(n.p,null,"getProperty"),le=_Ut(ae),O=$m(n.o),D=Vde(le),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),rJ(ae,O,gUe),O=Vde(le),re=Q1(ae,O,null),re&&re.oj(),ae=KT(n.p,n.wb.e,"hasProperty"),O=$m(n.o),D=(g=(y=new iE,y),g),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),rJ(ae,O,gUe),ae=KT(n.p,n.p,"copyProperties"),Rl(ae,n.p,Lme),ae=KT(n.p,null,"getAllProperties"),O=$m(n.wb.P),D=$m(n.o),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),q=(x=(T=new iE,T),x),Yr((!D.d&&(D.d=new gs(pl,D,1)),D.d),q),D=$m(n.wb.M),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),J=Q1(ae,O,null),J&&J.oj(),dc(n.a,CN,vZt,!0,!1,!0),wa(v(ze(bt(n.a),0),19),n.k,null,NZt,0,-1,CN,!1,!1,!0,!0,!1,!1,!1),dc(n.f,vH,wZt,!0,!1,!0),wa(v(ze(bt(n.f),0),19),n.g,v(ze(bt(n.g),0),19),"labels",0,-1,vH,!1,!1,!0,!0,!1,!1,!1),ns(v(ze(bt(n.f),1),35),n.wb._,OZt,null,0,1,vH,!1,!1,!0,!1,!0,!1),dc(n.n,_H,"ElkShape",!0,!1,!0),ns(v(ze(bt(n.n),0),35),n.wb.t,Dme,xI,1,1,_H,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.n),1),35),n.wb.t,Mme,xI,1,1,_H,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.n),2),35),n.wb.t,"x",xI,1,1,_H,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.n),3),35),n.wb.t,"y",xI,1,1,_H,!1,!1,!0,!1,!0,!1),ae=KT(n.n,null,"setDimensions"),Rl(ae,n.wb.t,Mme),Rl(ae,n.wb.t,Dme),ae=KT(n.n,null,"setLocation"),Rl(ae,n.wb.t,"x"),Rl(ae,n.wb.t,"y"),dc(n.g,wl,dUe,!1,!1,!0),wa(v(ze(bt(n.g),0),19),n.f,v(ze(bt(n.f),0),19),Pme,0,1,wl,!1,!1,!0,!1,!1,!1,!1),ns(v(ze(bt(n.g),1),35),n.wb._,Bme,"",0,1,wl,!1,!1,!0,!1,!0,!1),dc(n.c,Lr,EZt,!0,!1,!0),wa(v(ze(bt(n.c),0),19),n.d,v(ze(bt(n.d),1),19),"outgoingEdges",0,-1,Lr,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.c),1),19),n.d,v(ze(bt(n.d),2),19),"incomingEdges",0,-1,Lr,!1,!1,!0,!1,!0,!1,!1),dc(n.i,Pi,fUe,!1,!1,!0),wa(v(ze(bt(n.i),0),19),n.j,v(ze(bt(n.j),0),19),"ports",0,-1,Pi,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.i),1),19),n.i,v(ze(bt(n.i),2),19),Fme,0,-1,Pi,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.i),2),19),n.i,v(ze(bt(n.i),1),19),Pme,0,1,Pi,!1,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.i),3),19),n.d,v(ze(bt(n.d),0),19),"containedEdges",0,-1,Pi,!1,!1,!0,!0,!1,!1,!1),ns(v(ze(bt(n.i),4),35),n.wb.e,LZt,null,0,1,Pi,!0,!0,!1,!1,!0,!0),dc(n.j,Oh,pUe,!1,!1,!0),wa(v(ze(bt(n.j),0),19),n.i,v(ze(bt(n.i),0),19),Pme,0,1,Oh,!1,!1,!0,!1,!1,!1,!1),dc(n.d,ss,hUe,!1,!1,!0),wa(v(ze(bt(n.d),0),19),n.i,v(ze(bt(n.i),3),19),"containingNode",0,1,ss,!1,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.d),1),19),n.c,v(ze(bt(n.c),0),19),mUe,0,-1,ss,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.d),2),19),n.c,v(ze(bt(n.c),1),19),$me,0,-1,ss,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.d),3),19),n.e,v(ze(bt(n.e),5),19),bUe,0,-1,ss,!1,!1,!0,!0,!1,!1,!1),ns(v(ze(bt(n.d),4),35),n.wb.e,"hyperedge",null,0,1,ss,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.d),5),35),n.wb.e,LZt,null,0,1,ss,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.d),6),35),n.wb.e,"selfloop",null,0,1,ss,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.d),7),35),n.wb.e,"connected",null,0,1,ss,!0,!0,!1,!1,!0,!0),dc(n.b,Ud,_Zt,!1,!1,!0),ns(v(ze(bt(n.b),0),35),n.wb.t,"x",xI,1,1,Ud,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.b),1),35),n.wb.t,"y",xI,1,1,Ud,!1,!1,!0,!1,!0,!1),ae=KT(n.b,null,"set"),Rl(ae,n.wb.t,"x"),Rl(ae,n.wb.t,"y"),dc(n.e,xa,xZt,!1,!1,!0),ns(v(ze(bt(n.e),0),35),n.wb.t,"startX",null,0,1,xa,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.e),1),35),n.wb.t,"startY",null,0,1,xa,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.e),2),35),n.wb.t,"endX",null,0,1,xa,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.e),3),35),n.wb.t,"endY",null,0,1,xa,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.e),4),19),n.b,null,Ree,0,-1,xa,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.e),5),19),n.d,v(ze(bt(n.d),3),19),Pme,0,1,xa,!1,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.e),6),19),n.c,null,yUe,0,1,xa,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.e),7),19),n.c,null,vUe,0,1,xa,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.e),8),19),n.e,v(ze(bt(n.e),9),19),_Ue,0,-1,xa,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.e),9),19),n.e,v(ze(bt(n.e),8),19),wUe,0,-1,xa,!1,!1,!0,!1,!0,!1,!1),ns(v(ze(bt(n.e),10),35),n.wb._,OZt,null,0,1,xa,!1,!1,!0,!1,!0,!1),ae=KT(n.e,null,"setStartLocation"),Rl(ae,n.wb.t,"x"),Rl(ae,n.wb.t,"y"),ae=KT(n.e,null,"setEndLocation"),Rl(ae,n.wb.t,"x"),Rl(ae,n.wb.t,"y"),dc(n.k,rw,"ElkPropertyToValueMapEntry",!1,!1,!1),O=$m(n.o),D=(R=(i=new iE,i),R),Yr((!O.d&&(O.d=new gs(pl,O,1)),O.d),D),IVt(v(ze(bt(n.k),0),35),O,"key",rw,!1,!1,!0,!1),ns(v(ze(bt(n.k),1),35),n.s,BM,null,0,1,rw,!1,!1,!0,!1,!0,!1),Oi(n.o,g2e,"IProperty",!0),Oi(n.s,zs,"PropertyValue",!0),sLe(n,$I))}function zKt(){zKt=z,Ne=st(bh,E5,28,el,15,1),Ne[9]=35,Ne[10]=19,Ne[13]=19,Ne[32]=51,Ne[33]=49,Ne[34]=33,tt(Ne,35,38,49),Ne[38]=1,tt(Ne,39,45,49),tt(Ne,45,47,-71),Ne[47]=49,tt(Ne,48,58,-71),Ne[58]=61,Ne[59]=49,Ne[60]=1,Ne[61]=49,Ne[62]=33,tt(Ne,63,65,49),tt(Ne,65,91,-3),tt(Ne,91,93,33),Ne[93]=1,Ne[94]=33,Ne[95]=-3,Ne[96]=33,tt(Ne,97,123,-3),tt(Ne,123,183,33),Ne[183]=-87,tt(Ne,184,192,33),tt(Ne,192,215,-19),Ne[215]=33,tt(Ne,216,247,-19),Ne[247]=33,tt(Ne,248,306,-19),tt(Ne,306,308,33),tt(Ne,308,319,-19),tt(Ne,319,321,33),tt(Ne,321,329,-19),Ne[329]=33,tt(Ne,330,383,-19),Ne[383]=33,tt(Ne,384,452,-19),tt(Ne,452,461,33),tt(Ne,461,497,-19),tt(Ne,497,500,33),tt(Ne,500,502,-19),tt(Ne,502,506,33),tt(Ne,506,536,-19),tt(Ne,536,592,33),tt(Ne,592,681,-19),tt(Ne,681,699,33),tt(Ne,699,706,-19),tt(Ne,706,720,33),tt(Ne,720,722,-87),tt(Ne,722,768,33),tt(Ne,768,838,-87),tt(Ne,838,864,33),tt(Ne,864,866,-87),tt(Ne,866,902,33),Ne[902]=-19,Ne[903]=-87,tt(Ne,904,907,-19),Ne[907]=33,Ne[908]=-19,Ne[909]=33,tt(Ne,910,930,-19),Ne[930]=33,tt(Ne,931,975,-19),Ne[975]=33,tt(Ne,976,983,-19),tt(Ne,983,986,33),Ne[986]=-19,Ne[987]=33,Ne[988]=-19,Ne[989]=33,Ne[990]=-19,Ne[991]=33,Ne[992]=-19,Ne[993]=33,tt(Ne,994,1012,-19),tt(Ne,1012,1025,33),tt(Ne,1025,1037,-19),Ne[1037]=33,tt(Ne,1038,1104,-19),Ne[1104]=33,tt(Ne,1105,1117,-19),Ne[1117]=33,tt(Ne,1118,1154,-19),Ne[1154]=33,tt(Ne,1155,1159,-87),tt(Ne,1159,1168,33),tt(Ne,1168,1221,-19),tt(Ne,1221,1223,33),tt(Ne,1223,1225,-19),tt(Ne,1225,1227,33),tt(Ne,1227,1229,-19),tt(Ne,1229,1232,33),tt(Ne,1232,1260,-19),tt(Ne,1260,1262,33),tt(Ne,1262,1270,-19),tt(Ne,1270,1272,33),tt(Ne,1272,1274,-19),tt(Ne,1274,1329,33),tt(Ne,1329,1367,-19),tt(Ne,1367,1369,33),Ne[1369]=-19,tt(Ne,1370,1377,33),tt(Ne,1377,1415,-19),tt(Ne,1415,1425,33),tt(Ne,1425,1442,-87),Ne[1442]=33,tt(Ne,1443,1466,-87),Ne[1466]=33,tt(Ne,1467,1470,-87),Ne[1470]=33,Ne[1471]=-87,Ne[1472]=33,tt(Ne,1473,1475,-87),Ne[1475]=33,Ne[1476]=-87,tt(Ne,1477,1488,33),tt(Ne,1488,1515,-19),tt(Ne,1515,1520,33),tt(Ne,1520,1523,-19),tt(Ne,1523,1569,33),tt(Ne,1569,1595,-19),tt(Ne,1595,1600,33),Ne[1600]=-87,tt(Ne,1601,1611,-19),tt(Ne,1611,1619,-87),tt(Ne,1619,1632,33),tt(Ne,1632,1642,-87),tt(Ne,1642,1648,33),Ne[1648]=-87,tt(Ne,1649,1720,-19),tt(Ne,1720,1722,33),tt(Ne,1722,1727,-19),Ne[1727]=33,tt(Ne,1728,1743,-19),Ne[1743]=33,tt(Ne,1744,1748,-19),Ne[1748]=33,Ne[1749]=-19,tt(Ne,1750,1765,-87),tt(Ne,1765,1767,-19),tt(Ne,1767,1769,-87),Ne[1769]=33,tt(Ne,1770,1774,-87),tt(Ne,1774,1776,33),tt(Ne,1776,1786,-87),tt(Ne,1786,2305,33),tt(Ne,2305,2308,-87),Ne[2308]=33,tt(Ne,2309,2362,-19),tt(Ne,2362,2364,33),Ne[2364]=-87,Ne[2365]=-19,tt(Ne,2366,2382,-87),tt(Ne,2382,2385,33),tt(Ne,2385,2389,-87),tt(Ne,2389,2392,33),tt(Ne,2392,2402,-19),tt(Ne,2402,2404,-87),tt(Ne,2404,2406,33),tt(Ne,2406,2416,-87),tt(Ne,2416,2433,33),tt(Ne,2433,2436,-87),Ne[2436]=33,tt(Ne,2437,2445,-19),tt(Ne,2445,2447,33),tt(Ne,2447,2449,-19),tt(Ne,2449,2451,33),tt(Ne,2451,2473,-19),Ne[2473]=33,tt(Ne,2474,2481,-19),Ne[2481]=33,Ne[2482]=-19,tt(Ne,2483,2486,33),tt(Ne,2486,2490,-19),tt(Ne,2490,2492,33),Ne[2492]=-87,Ne[2493]=33,tt(Ne,2494,2501,-87),tt(Ne,2501,2503,33),tt(Ne,2503,2505,-87),tt(Ne,2505,2507,33),tt(Ne,2507,2510,-87),tt(Ne,2510,2519,33),Ne[2519]=-87,tt(Ne,2520,2524,33),tt(Ne,2524,2526,-19),Ne[2526]=33,tt(Ne,2527,2530,-19),tt(Ne,2530,2532,-87),tt(Ne,2532,2534,33),tt(Ne,2534,2544,-87),tt(Ne,2544,2546,-19),tt(Ne,2546,2562,33),Ne[2562]=-87,tt(Ne,2563,2565,33),tt(Ne,2565,2571,-19),tt(Ne,2571,2575,33),tt(Ne,2575,2577,-19),tt(Ne,2577,2579,33),tt(Ne,2579,2601,-19),Ne[2601]=33,tt(Ne,2602,2609,-19),Ne[2609]=33,tt(Ne,2610,2612,-19),Ne[2612]=33,tt(Ne,2613,2615,-19),Ne[2615]=33,tt(Ne,2616,2618,-19),tt(Ne,2618,2620,33),Ne[2620]=-87,Ne[2621]=33,tt(Ne,2622,2627,-87),tt(Ne,2627,2631,33),tt(Ne,2631,2633,-87),tt(Ne,2633,2635,33),tt(Ne,2635,2638,-87),tt(Ne,2638,2649,33),tt(Ne,2649,2653,-19),Ne[2653]=33,Ne[2654]=-19,tt(Ne,2655,2662,33),tt(Ne,2662,2674,-87),tt(Ne,2674,2677,-19),tt(Ne,2677,2689,33),tt(Ne,2689,2692,-87),Ne[2692]=33,tt(Ne,2693,2700,-19),Ne[2700]=33,Ne[2701]=-19,Ne[2702]=33,tt(Ne,2703,2706,-19),Ne[2706]=33,tt(Ne,2707,2729,-19),Ne[2729]=33,tt(Ne,2730,2737,-19),Ne[2737]=33,tt(Ne,2738,2740,-19),Ne[2740]=33,tt(Ne,2741,2746,-19),tt(Ne,2746,2748,33),Ne[2748]=-87,Ne[2749]=-19,tt(Ne,2750,2758,-87),Ne[2758]=33,tt(Ne,2759,2762,-87),Ne[2762]=33,tt(Ne,2763,2766,-87),tt(Ne,2766,2784,33),Ne[2784]=-19,tt(Ne,2785,2790,33),tt(Ne,2790,2800,-87),tt(Ne,2800,2817,33),tt(Ne,2817,2820,-87),Ne[2820]=33,tt(Ne,2821,2829,-19),tt(Ne,2829,2831,33),tt(Ne,2831,2833,-19),tt(Ne,2833,2835,33),tt(Ne,2835,2857,-19),Ne[2857]=33,tt(Ne,2858,2865,-19),Ne[2865]=33,tt(Ne,2866,2868,-19),tt(Ne,2868,2870,33),tt(Ne,2870,2874,-19),tt(Ne,2874,2876,33),Ne[2876]=-87,Ne[2877]=-19,tt(Ne,2878,2884,-87),tt(Ne,2884,2887,33),tt(Ne,2887,2889,-87),tt(Ne,2889,2891,33),tt(Ne,2891,2894,-87),tt(Ne,2894,2902,33),tt(Ne,2902,2904,-87),tt(Ne,2904,2908,33),tt(Ne,2908,2910,-19),Ne[2910]=33,tt(Ne,2911,2914,-19),tt(Ne,2914,2918,33),tt(Ne,2918,2928,-87),tt(Ne,2928,2946,33),tt(Ne,2946,2948,-87),Ne[2948]=33,tt(Ne,2949,2955,-19),tt(Ne,2955,2958,33),tt(Ne,2958,2961,-19),Ne[2961]=33,tt(Ne,2962,2966,-19),tt(Ne,2966,2969,33),tt(Ne,2969,2971,-19),Ne[2971]=33,Ne[2972]=-19,Ne[2973]=33,tt(Ne,2974,2976,-19),tt(Ne,2976,2979,33),tt(Ne,2979,2981,-19),tt(Ne,2981,2984,33),tt(Ne,2984,2987,-19),tt(Ne,2987,2990,33),tt(Ne,2990,2998,-19),Ne[2998]=33,tt(Ne,2999,3002,-19),tt(Ne,3002,3006,33),tt(Ne,3006,3011,-87),tt(Ne,3011,3014,33),tt(Ne,3014,3017,-87),Ne[3017]=33,tt(Ne,3018,3022,-87),tt(Ne,3022,3031,33),Ne[3031]=-87,tt(Ne,3032,3047,33),tt(Ne,3047,3056,-87),tt(Ne,3056,3073,33),tt(Ne,3073,3076,-87),Ne[3076]=33,tt(Ne,3077,3085,-19),Ne[3085]=33,tt(Ne,3086,3089,-19),Ne[3089]=33,tt(Ne,3090,3113,-19),Ne[3113]=33,tt(Ne,3114,3124,-19),Ne[3124]=33,tt(Ne,3125,3130,-19),tt(Ne,3130,3134,33),tt(Ne,3134,3141,-87),Ne[3141]=33,tt(Ne,3142,3145,-87),Ne[3145]=33,tt(Ne,3146,3150,-87),tt(Ne,3150,3157,33),tt(Ne,3157,3159,-87),tt(Ne,3159,3168,33),tt(Ne,3168,3170,-19),tt(Ne,3170,3174,33),tt(Ne,3174,3184,-87),tt(Ne,3184,3202,33),tt(Ne,3202,3204,-87),Ne[3204]=33,tt(Ne,3205,3213,-19),Ne[3213]=33,tt(Ne,3214,3217,-19),Ne[3217]=33,tt(Ne,3218,3241,-19),Ne[3241]=33,tt(Ne,3242,3252,-19),Ne[3252]=33,tt(Ne,3253,3258,-19),tt(Ne,3258,3262,33),tt(Ne,3262,3269,-87),Ne[3269]=33,tt(Ne,3270,3273,-87),Ne[3273]=33,tt(Ne,3274,3278,-87),tt(Ne,3278,3285,33),tt(Ne,3285,3287,-87),tt(Ne,3287,3294,33),Ne[3294]=-19,Ne[3295]=33,tt(Ne,3296,3298,-19),tt(Ne,3298,3302,33),tt(Ne,3302,3312,-87),tt(Ne,3312,3330,33),tt(Ne,3330,3332,-87),Ne[3332]=33,tt(Ne,3333,3341,-19),Ne[3341]=33,tt(Ne,3342,3345,-19),Ne[3345]=33,tt(Ne,3346,3369,-19),Ne[3369]=33,tt(Ne,3370,3386,-19),tt(Ne,3386,3390,33),tt(Ne,3390,3396,-87),tt(Ne,3396,3398,33),tt(Ne,3398,3401,-87),Ne[3401]=33,tt(Ne,3402,3406,-87),tt(Ne,3406,3415,33),Ne[3415]=-87,tt(Ne,3416,3424,33),tt(Ne,3424,3426,-19),tt(Ne,3426,3430,33),tt(Ne,3430,3440,-87),tt(Ne,3440,3585,33),tt(Ne,3585,3631,-19),Ne[3631]=33,Ne[3632]=-19,Ne[3633]=-87,tt(Ne,3634,3636,-19),tt(Ne,3636,3643,-87),tt(Ne,3643,3648,33),tt(Ne,3648,3654,-19),tt(Ne,3654,3663,-87),Ne[3663]=33,tt(Ne,3664,3674,-87),tt(Ne,3674,3713,33),tt(Ne,3713,3715,-19),Ne[3715]=33,Ne[3716]=-19,tt(Ne,3717,3719,33),tt(Ne,3719,3721,-19),Ne[3721]=33,Ne[3722]=-19,tt(Ne,3723,3725,33),Ne[3725]=-19,tt(Ne,3726,3732,33),tt(Ne,3732,3736,-19),Ne[3736]=33,tt(Ne,3737,3744,-19),Ne[3744]=33,tt(Ne,3745,3748,-19),Ne[3748]=33,Ne[3749]=-19,Ne[3750]=33,Ne[3751]=-19,tt(Ne,3752,3754,33),tt(Ne,3754,3756,-19),Ne[3756]=33,tt(Ne,3757,3759,-19),Ne[3759]=33,Ne[3760]=-19,Ne[3761]=-87,tt(Ne,3762,3764,-19),tt(Ne,3764,3770,-87),Ne[3770]=33,tt(Ne,3771,3773,-87),Ne[3773]=-19,tt(Ne,3774,3776,33),tt(Ne,3776,3781,-19),Ne[3781]=33,Ne[3782]=-87,Ne[3783]=33,tt(Ne,3784,3790,-87),tt(Ne,3790,3792,33),tt(Ne,3792,3802,-87),tt(Ne,3802,3864,33),tt(Ne,3864,3866,-87),tt(Ne,3866,3872,33),tt(Ne,3872,3882,-87),tt(Ne,3882,3893,33),Ne[3893]=-87,Ne[3894]=33,Ne[3895]=-87,Ne[3896]=33,Ne[3897]=-87,tt(Ne,3898,3902,33),tt(Ne,3902,3904,-87),tt(Ne,3904,3912,-19),Ne[3912]=33,tt(Ne,3913,3946,-19),tt(Ne,3946,3953,33),tt(Ne,3953,3973,-87),Ne[3973]=33,tt(Ne,3974,3980,-87),tt(Ne,3980,3984,33),tt(Ne,3984,3990,-87),Ne[3990]=33,Ne[3991]=-87,Ne[3992]=33,tt(Ne,3993,4014,-87),tt(Ne,4014,4017,33),tt(Ne,4017,4024,-87),Ne[4024]=33,Ne[4025]=-87,tt(Ne,4026,4256,33),tt(Ne,4256,4294,-19),tt(Ne,4294,4304,33),tt(Ne,4304,4343,-19),tt(Ne,4343,4352,33),Ne[4352]=-19,Ne[4353]=33,tt(Ne,4354,4356,-19),Ne[4356]=33,tt(Ne,4357,4360,-19),Ne[4360]=33,Ne[4361]=-19,Ne[4362]=33,tt(Ne,4363,4365,-19),Ne[4365]=33,tt(Ne,4366,4371,-19),tt(Ne,4371,4412,33),Ne[4412]=-19,Ne[4413]=33,Ne[4414]=-19,Ne[4415]=33,Ne[4416]=-19,tt(Ne,4417,4428,33),Ne[4428]=-19,Ne[4429]=33,Ne[4430]=-19,Ne[4431]=33,Ne[4432]=-19,tt(Ne,4433,4436,33),tt(Ne,4436,4438,-19),tt(Ne,4438,4441,33),Ne[4441]=-19,tt(Ne,4442,4447,33),tt(Ne,4447,4450,-19),Ne[4450]=33,Ne[4451]=-19,Ne[4452]=33,Ne[4453]=-19,Ne[4454]=33,Ne[4455]=-19,Ne[4456]=33,Ne[4457]=-19,tt(Ne,4458,4461,33),tt(Ne,4461,4463,-19),tt(Ne,4463,4466,33),tt(Ne,4466,4468,-19),Ne[4468]=33,Ne[4469]=-19,tt(Ne,4470,4510,33),Ne[4510]=-19,tt(Ne,4511,4520,33),Ne[4520]=-19,tt(Ne,4521,4523,33),Ne[4523]=-19,tt(Ne,4524,4526,33),tt(Ne,4526,4528,-19),tt(Ne,4528,4535,33),tt(Ne,4535,4537,-19),Ne[4537]=33,Ne[4538]=-19,Ne[4539]=33,tt(Ne,4540,4547,-19),tt(Ne,4547,4587,33),Ne[4587]=-19,tt(Ne,4588,4592,33),Ne[4592]=-19,tt(Ne,4593,4601,33),Ne[4601]=-19,tt(Ne,4602,7680,33),tt(Ne,7680,7836,-19),tt(Ne,7836,7840,33),tt(Ne,7840,7930,-19),tt(Ne,7930,7936,33),tt(Ne,7936,7958,-19),tt(Ne,7958,7960,33),tt(Ne,7960,7966,-19),tt(Ne,7966,7968,33),tt(Ne,7968,8006,-19),tt(Ne,8006,8008,33),tt(Ne,8008,8014,-19),tt(Ne,8014,8016,33),tt(Ne,8016,8024,-19),Ne[8024]=33,Ne[8025]=-19,Ne[8026]=33,Ne[8027]=-19,Ne[8028]=33,Ne[8029]=-19,Ne[8030]=33,tt(Ne,8031,8062,-19),tt(Ne,8062,8064,33),tt(Ne,8064,8117,-19),Ne[8117]=33,tt(Ne,8118,8125,-19),Ne[8125]=33,Ne[8126]=-19,tt(Ne,8127,8130,33),tt(Ne,8130,8133,-19),Ne[8133]=33,tt(Ne,8134,8141,-19),tt(Ne,8141,8144,33),tt(Ne,8144,8148,-19),tt(Ne,8148,8150,33),tt(Ne,8150,8156,-19),tt(Ne,8156,8160,33),tt(Ne,8160,8173,-19),tt(Ne,8173,8178,33),tt(Ne,8178,8181,-19),Ne[8181]=33,tt(Ne,8182,8189,-19),tt(Ne,8189,8400,33),tt(Ne,8400,8413,-87),tt(Ne,8413,8417,33),Ne[8417]=-87,tt(Ne,8418,8486,33),Ne[8486]=-19,tt(Ne,8487,8490,33),tt(Ne,8490,8492,-19),tt(Ne,8492,8494,33),Ne[8494]=-19,tt(Ne,8495,8576,33),tt(Ne,8576,8579,-19),tt(Ne,8579,12293,33),Ne[12293]=-87,Ne[12294]=33,Ne[12295]=-19,tt(Ne,12296,12321,33),tt(Ne,12321,12330,-19),tt(Ne,12330,12336,-87),Ne[12336]=33,tt(Ne,12337,12342,-87),tt(Ne,12342,12353,33),tt(Ne,12353,12437,-19),tt(Ne,12437,12441,33),tt(Ne,12441,12443,-87),tt(Ne,12443,12445,33),tt(Ne,12445,12447,-87),tt(Ne,12447,12449,33),tt(Ne,12449,12539,-19),Ne[12539]=33,tt(Ne,12540,12543,-87),tt(Ne,12543,12549,33),tt(Ne,12549,12589,-19),tt(Ne,12589,19968,33),tt(Ne,19968,40870,-19),tt(Ne,40870,44032,33),tt(Ne,44032,55204,-19),tt(Ne,55204,UG,33),tt(Ne,57344,65534,33)}function A8r(n){var i,l,d,g,y,x,T;n.hb||(n.hb=!0,mu(n,"ecore"),pZ(n,"ecore"),gZ(n,Yf),Pz(n.fb,"E"),Pz(n.L,"T"),Pz(n.P,"K"),Pz(n.P,"V"),Pz(n.cb,"E"),Yr(Fl(n.b),n.bb),Yr(Fl(n.a),n.Q),Yr(Fl(n.o),n.p),Yr(Fl(n.p),n.R),Yr(Fl(n.q),n.p),Yr(Fl(n.v),n.q),Yr(Fl(n.w),n.R),Yr(Fl(n.B),n.Q),Yr(Fl(n.R),n.Q),Yr(Fl(n.T),n.eb),Yr(Fl(n.U),n.R),Yr(Fl(n.V),n.eb),Yr(Fl(n.W),n.bb),Yr(Fl(n.bb),n.eb),Yr(Fl(n.eb),n.R),Yr(Fl(n.db),n.R),dc(n.b,u3,EJt,!1,!1,!0),ns(v(ze(bt(n.b),0),35),n.e,"iD",null,0,1,u3,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.b),1),19),n.q,null,"eAttributeType",1,1,u3,!0,!0,!1,!1,!0,!1,!0),dc(n.a,wi,vJt,!1,!1,!0),ns(v(ze(bt(n.a),0),35),n._,Lme,null,0,1,wi,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.a),1),19),n.ab,null,"details",0,-1,wi,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.a),2),19),n.Q,v(ze(bt(n.Q),0),19),"eModelElement",0,1,wi,!0,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.a),3),19),n.S,null,"contents",0,-1,wi,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.a),4),19),n.S,null,"references",0,-1,wi,!1,!1,!0,!1,!0,!1,!1),dc(n.o,Jf,"EClass",!1,!1,!0),ns(v(ze(bt(n.o),0),35),n.e,"abstract",null,0,1,Jf,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.o),1),35),n.e,"interface",null,0,1,Jf,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.o),2),19),n.o,null,"eSuperTypes",0,-1,Jf,!1,!1,!0,!1,!0,!0,!1),wa(v(ze(bt(n.o),3),19),n.T,v(ze(bt(n.T),0),19),"eOperations",0,-1,Jf,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.o),4),19),n.b,null,"eAllAttributes",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),5),19),n.W,null,"eAllReferences",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),6),19),n.W,null,"eReferences",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),7),19),n.b,null,"eAttributes",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),8),19),n.W,null,"eAllContainments",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),9),19),n.T,null,"eAllOperations",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),10),19),n.bb,null,"eAllStructuralFeatures",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),11),19),n.o,null,"eAllSuperTypes",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.o),12),19),n.b,null,"eIDAttribute",0,1,Jf,!0,!0,!1,!1,!1,!1,!0),wa(v(ze(bt(n.o),13),19),n.bb,v(ze(bt(n.bb),7),19),"eStructuralFeatures",0,-1,Jf,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.o),14),19),n.H,null,"eGenericSuperTypes",0,-1,Jf,!1,!1,!0,!0,!1,!0,!1),wa(v(ze(bt(n.o),15),19),n.H,null,"eAllGenericSuperTypes",0,-1,Jf,!0,!0,!1,!1,!0,!1,!0),T=vl(v(ze(ia(n.o),0),62),n.e,"isSuperTypeOf"),Rl(T,n.o,"someClass"),vl(v(ze(ia(n.o),1),62),n.I,"getFeatureCount"),T=vl(v(ze(ia(n.o),2),62),n.bb,DJt),Rl(T,n.I,"featureID"),T=vl(v(ze(ia(n.o),3),62),n.I,MJt),Rl(T,n.bb,VM),T=vl(v(ze(ia(n.o),4),62),n.bb,DJt),Rl(T,n._,"featureName"),vl(v(ze(ia(n.o),5),62),n.I,"getOperationCount"),T=vl(v(ze(ia(n.o),6),62),n.T,"getEOperation"),Rl(T,n.I,"operationID"),T=vl(v(ze(ia(n.o),7),62),n.I,PJt),Rl(T,n.T,PUe),T=vl(v(ze(ia(n.o),8),62),n.T,"getOverride"),Rl(T,n.T,PUe),T=vl(v(ze(ia(n.o),9),62),n.H,"getFeatureType"),Rl(T,n.bb,VM),dc(n.p,v1,xJt,!0,!1,!0),ns(v(ze(bt(n.p),0),35),n._,"instanceClassName",null,0,1,v1,!1,!0,!0,!0,!0,!1),i=$m(n.L),l=sOe(),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),IVt(v(ze(bt(n.p),1),35),i,"instanceClass",v1,!0,!0,!1,!0),ns(v(ze(bt(n.p),2),35),n.M,BJt,null,0,1,v1,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.p),3),35),n._,"instanceTypeName",null,0,1,v1,!1,!0,!0,!0,!0,!1),wa(v(ze(bt(n.p),4),19),n.U,v(ze(bt(n.U),3),19),"ePackage",0,1,v1,!0,!1,!1,!1,!0,!1,!1),wa(v(ze(bt(n.p),5),19),n.db,null,FJt,0,-1,v1,!1,!1,!0,!0,!0,!1,!1),T=vl(v(ze(ia(n.p),0),62),n.e,$Jt),Rl(T,n.M,NG),vl(v(ze(ia(n.p),1),62),n.I,"getClassifierID"),dc(n.q,V2e,"EDataType",!1,!1,!0),ns(v(ze(bt(n.q),0),35),n.e,"serializable",BI,0,1,V2e,!1,!1,!0,!1,!0,!1),dc(n.v,fre,"EEnum",!1,!1,!0),wa(v(ze(bt(n.v),0),19),n.w,v(ze(bt(n.w),3),19),"eLiterals",0,-1,fre,!1,!1,!0,!0,!1,!1,!1),T=vl(v(ze(ia(n.v),0),62),n.w,UJt),Rl(T,n._,Mi),T=vl(v(ze(ia(n.v),1),62),n.w,UJt),Rl(T,n.I,BM),T=vl(v(ze(ia(n.v),2),62),n.w,"getEEnumLiteralByLiteral"),Rl(T,n._,"literal"),dc(n.w,hb,SJt,!1,!1,!0),ns(v(ze(bt(n.w),0),35),n.I,BM,null,0,1,hb,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.w),1),35),n.A,"instance",null,0,1,hb,!0,!1,!0,!1,!0,!1),ns(v(ze(bt(n.w),2),35),n._,"literal",null,0,1,hb,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.w),3),19),n.v,v(ze(bt(n.v),0),19),"eEnum",0,1,hb,!0,!1,!1,!1,!1,!1,!1),dc(n.B,XP,"EFactory",!1,!1,!0),wa(v(ze(bt(n.B),0),19),n.U,v(ze(bt(n.U),2),19),"ePackage",1,1,XP,!0,!1,!0,!1,!1,!1,!1),T=vl(v(ze(ia(n.B),0),62),n.S,"create"),Rl(T,n.o,"eClass"),T=vl(v(ze(ia(n.B),1),62),n.M,"createFromString"),Rl(T,n.q,"eDataType"),Rl(T,n._,"literalValue"),T=vl(v(ze(ia(n.B),2),62),n._,"convertToString"),Rl(T,n.q,"eDataType"),Rl(T,n.M,"instanceValue"),dc(n.Q,wH,SZt,!0,!1,!0),wa(v(ze(bt(n.Q),0),19),n.a,v(ze(bt(n.a),2),19),"eAnnotations",0,-1,wH,!1,!1,!0,!0,!1,!1,!1),T=vl(v(ze(ia(n.Q),0),62),n.a,"getEAnnotation"),Rl(T,n._,Lme),dc(n.R,$2e,TZt,!0,!1,!0),ns(v(ze(bt(n.R),0),35),n._,Mi,null,0,1,$2e,!1,!1,!0,!1,!0,!1),dc(n.S,_2,"EObject",!1,!1,!0),vl(v(ze(ia(n.S),0),62),n.o,"eClass"),vl(v(ze(ia(n.S),1),62),n.e,"eIsProxy"),vl(v(ze(ia(n.S),2),62),n.X,"eResource"),vl(v(ze(ia(n.S),3),62),n.S,"eContainer"),vl(v(ze(ia(n.S),4),62),n.bb,"eContainingFeature"),vl(v(ze(ia(n.S),5),62),n.W,"eContainmentFeature"),T=vl(v(ze(ia(n.S),6),62),null,"eContents"),i=$m(n.fb),l=$m(n.S),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),g=Q1(T,i,null),g&&g.oj(),T=vl(v(ze(ia(n.S),7),62),null,"eAllContents"),i=$m(n.cb),l=$m(n.S),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),y=Q1(T,i,null),y&&y.oj(),T=vl(v(ze(ia(n.S),8),62),null,"eCrossReferences"),i=$m(n.fb),l=$m(n.S),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),x=Q1(T,i,null),x&&x.oj(),T=vl(v(ze(ia(n.S),9),62),n.M,"eGet"),Rl(T,n.bb,VM),T=vl(v(ze(ia(n.S),10),62),n.M,"eGet"),Rl(T,n.bb,VM),Rl(T,n.e,"resolve"),T=vl(v(ze(ia(n.S),11),62),null,"eSet"),Rl(T,n.bb,VM),Rl(T,n.M,"newValue"),T=vl(v(ze(ia(n.S),12),62),n.e,"eIsSet"),Rl(T,n.bb,VM),T=vl(v(ze(ia(n.S),13),62),null,"eUnset"),Rl(T,n.bb,VM),T=vl(v(ze(ia(n.S),14),62),n.M,"eInvoke"),Rl(T,n.T,PUe),i=$m(n.fb),l=sOe(),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),rJ(T,i,"arguments"),fdr(T,n.K),dc(n.T,e0,CJt,!1,!1,!0),wa(v(ze(bt(n.T),0),19),n.o,v(ze(bt(n.o),3),19),zJt,0,1,e0,!0,!1,!1,!1,!1,!1,!1),wa(v(ze(bt(n.T),1),19),n.db,null,FJt,0,-1,e0,!1,!1,!0,!0,!0,!1,!1),wa(v(ze(bt(n.T),2),19),n.V,v(ze(bt(n.V),0),19),"eParameters",0,-1,e0,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.T),3),19),n.p,null,"eExceptions",0,-1,e0,!1,!1,!0,!1,!0,!0,!1),wa(v(ze(bt(n.T),4),19),n.H,null,"eGenericExceptions",0,-1,e0,!1,!1,!0,!0,!1,!0,!1),vl(v(ze(ia(n.T),0),62),n.I,PJt),T=vl(v(ze(ia(n.T),1),62),n.e,"isOverrideOf"),Rl(T,n.T,"someOperation"),dc(n.U,y1,"EPackage",!1,!1,!0),ns(v(ze(bt(n.U),0),35),n._,"nsURI",null,0,1,y1,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.U),1),35),n._,"nsPrefix",null,0,1,y1,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.U),2),19),n.B,v(ze(bt(n.B),0),19),"eFactoryInstance",1,1,y1,!0,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.U),3),19),n.p,v(ze(bt(n.p),4),19),"eClassifiers",0,-1,y1,!1,!1,!0,!0,!0,!1,!1),wa(v(ze(bt(n.U),4),19),n.U,v(ze(bt(n.U),5),19),"eSubpackages",0,-1,y1,!1,!1,!0,!0,!0,!1,!1),wa(v(ze(bt(n.U),5),19),n.U,v(ze(bt(n.U),4),19),"eSuperPackage",0,1,y1,!0,!1,!1,!1,!0,!1,!1),T=vl(v(ze(ia(n.U),0),62),n.p,"getEClassifier"),Rl(T,n._,Mi),dc(n.V,Rx,AJt,!1,!1,!0),wa(v(ze(bt(n.V),0),19),n.T,v(ze(bt(n.T),2),19),"eOperation",0,1,Rx,!0,!1,!1,!1,!1,!1,!1),dc(n.W,h3,kJt,!1,!1,!0),ns(v(ze(bt(n.W),0),35),n.e,"containment",null,0,1,h3,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.W),1),35),n.e,"container",null,0,1,h3,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.W),2),35),n.e,"resolveProxies",BI,0,1,h3,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.W),3),19),n.W,null,"eOpposite",0,1,h3,!1,!1,!0,!1,!0,!1,!1),wa(v(ze(bt(n.W),4),19),n.o,null,"eReferenceType",1,1,h3,!0,!0,!1,!1,!0,!1,!0),wa(v(ze(bt(n.W),5),19),n.b,null,"eKeys",0,-1,h3,!1,!1,!0,!1,!0,!1,!1),dc(n.bb,Ju,wJt,!0,!1,!0),ns(v(ze(bt(n.bb),0),35),n.e,"changeable",BI,0,1,Ju,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),1),35),n.e,"volatile",null,0,1,Ju,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),2),35),n.e,"transient",null,0,1,Ju,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),3),35),n._,"defaultValueLiteral",null,0,1,Ju,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),4),35),n.M,BJt,null,0,1,Ju,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.bb),5),35),n.e,"unsettable",null,0,1,Ju,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.bb),6),35),n.e,"derived",null,0,1,Ju,!1,!1,!0,!1,!0,!1),wa(v(ze(bt(n.bb),7),19),n.o,v(ze(bt(n.o),13),19),zJt,0,1,Ju,!0,!1,!1,!1,!1,!1,!1),vl(v(ze(ia(n.bb),0),62),n.I,MJt),T=vl(v(ze(ia(n.bb),1),62),null,"getContainerClass"),i=$m(n.L),l=sOe(),Yr((!i.d&&(i.d=new gs(pl,i,1)),i.d),l),d=Q1(T,i,null),d&&d.oj(),dc(n.eb,c3,_Jt,!0,!1,!0),ns(v(ze(bt(n.eb),0),35),n.e,"ordered",BI,0,1,c3,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.eb),1),35),n.e,"unique",BI,0,1,c3,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.eb),2),35),n.I,"lowerBound",null,0,1,c3,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.eb),3),35),n.I,"upperBound","1",0,1,c3,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.eb),4),35),n.e,"many",null,0,1,c3,!0,!0,!1,!1,!0,!0),ns(v(ze(bt(n.eb),5),35),n.e,"required",null,0,1,c3,!0,!0,!1,!1,!0,!0),wa(v(ze(bt(n.eb),6),19),n.p,null,"eType",0,1,c3,!1,!0,!0,!1,!0,!0,!1),wa(v(ze(bt(n.eb),7),19),n.H,null,"eGenericType",0,1,c3,!1,!0,!0,!0,!1,!0,!1),dc(n.ab,rw,"EStringToStringMapEntry",!1,!1,!1),ns(v(ze(bt(n.ab),0),35),n._,"key",null,0,1,rw,!1,!1,!0,!1,!0,!1),ns(v(ze(bt(n.ab),1),35),n._,BM,null,0,1,rw,!1,!1,!0,!1,!0,!1),dc(n.H,pl,TJt,!1,!1,!0),wa(v(ze(bt(n.H),0),19),n.H,null,"eUpperBound",0,1,pl,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.H),1),19),n.H,null,"eTypeArguments",0,-1,pl,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.H),2),19),n.p,null,"eRawType",1,1,pl,!0,!1,!1,!1,!0,!1,!0),wa(v(ze(bt(n.H),3),19),n.H,null,"eLowerBound",0,1,pl,!1,!1,!0,!0,!1,!1,!1),wa(v(ze(bt(n.H),4),19),n.db,null,"eTypeParameter",0,1,pl,!1,!1,!0,!1,!1,!1,!1),wa(v(ze(bt(n.H),5),19),n.p,null,"eClassifier",0,1,pl,!1,!1,!0,!1,!0,!1,!1),T=vl(v(ze(ia(n.H),0),62),n.e,$Jt),Rl(T,n.M,NG),dc(n.db,Mu,RJt,!1,!1,!0),wa(v(ze(bt(n.db),0),19),n.H,null,"eBounds",0,-1,Mu,!1,!1,!0,!0,!1,!1,!1),Oi(n.c,vbe,"EBigDecimal",!0),Oi(n.d,T5,"EBigInteger",!0),Oi(n.e,Wh,"EBoolean",!0),Oi(n.f,rs,"EBooleanObject",!0),Oi(n.i,bh,"EByte",!0),Oi(n.g,xe(bh,1),"EByteArray",!0),Oi(n.j,d6,"EByteObject",!0),Oi(n.k,Tf,"EChar",!0),Oi(n.n,WM,"ECharacterObject",!0),Oi(n.r,Qee,"EDate",!0),Oi(n.s,oXe,"EDiagnosticChain",!1),Oi(n.t,ao,"EDouble",!0),Oi(n.u,ws,"EDoubleObject",!0),Oi(n.fb,EKe,"EEList",!1),Oi(n.A,TKe,"EEnumerator",!1),Oi(n.C,WKe,"EFeatureMap",!1),Oi(n.D,pre,"EFeatureMapEntry",!1),Oi(n.F,g3,"EFloat",!0),Oi(n.G,VI,"EFloatObject",!0),Oi(n.I,Wr,"EInt",!0),Oi(n.J,Ao,"EIntegerObject",!0),Oi(n.L,jUe,"EJavaClass",!0),Oi(n.M,zs,"EJavaObject",!0),Oi(n.N,C2,"ELong",!0),Oi(n.O,ux,"ELongObject",!0),Oi(n.P,WUe,"EMap",!1),Oi(n.X,HKe,"EResource",!1),Oi(n.Y,lXe,"EResourceSet",!1),Oi(n.Z,lC,"EShort",!0),Oi(n.$,hx,"EShortObject",!0),Oi(n._,Xt,"EString",!0),Oi(n.cb,SKe,"ETreeIterator",!1),Oi(n.K,cXe,"EInvocationTargetException",!1),sLe(n,Yf))}var NG="object",Zk="boolean",nBe="number",Epe="string",xpe="function",qi=2147483647,gc="java.lang",OG={3:1},LG="com.google.common.base",Xo=", ",GKt="%s (%s) must not be negative",Yn={3:1,4:1,5:1},qKt="negative size: ",rBe="no calls to next() since the last call to remove()",HKt="Optional.of(",Ku="null",yI={204:1,51:1},_n="com.google.common.collect",vI={204:1,51:1,128:1},Y_={229:1,3:1},io={51:1},Dr="java.util",tx={85:1},A4={20:1,31:1,16:1},J1=2063,fh={20:1,31:1,16:1,21:1},iBe={85:1,139:1,133:1},VKt={20:1,31:1,16:1,21:1,87:1},aBe={20:1,31:1,16:1,277:1,21:1,87:1},Yg={51:1,128:1},Spe={358:1,44:1},YKt="AbstractMapEntry",jKt="expectedValuesPerKey",kt={3:1,6:1,4:1,5:1},ng=16384,Ld={159:1},vr={41:1},DG={202:1},MG={l:4194303,m:4194303,h:524287},Tpe={253:1,3:1,34:1},WKt="range unbounded on this side",jg={20:1},KKt={20:1,16:1},sBe={3:1,20:1,31:1,16:1},_I={307:1,3:1,20:1,31:1,16:1,15:1,59:1},$J={3:1,4:1,5:1,173:1},wI={3:1,85:1},Cpe={20:1,16:1,21:1},Jk={3:1,20:1,31:1,16:1,21:1},XKt={20:1,16:1,21:1,87:1},Wg=461845907,Kg=-862048943,PG={3:1,6:1,4:1,5:1,173:1},QKt="expectedSize",k0=1024,mM=1073741824,k4="initialArraySize",wt={3:1,6:1,4:1,9:1,5:1},EI={20:1,31:1,56:1,16:1,15:1},Ape="arraySize",ZKt={20:1,31:1,56:1,16:1,15:1,59:1},si={46:1},UJ={380:1},Zv=1e-4,Po=-2147483648,JKt="__noinit__",nb={3:1,103:1,63:1,82:1},BG="com.google.gwt.core.client.impl",oBe="String",lBe="com.google.gwt.core.client",kpe="anonymous",Rpe="fnStack",cBe="Unknown",rg={201:1,3:1,4:1},py=1e3,vs=65535,Ipe="January",Npe="February",Ope="March",Lpe="April",e6="May",Dpe="June",Mpe="July",Ppe="August",Bpe="September",Fpe="October",$pe="November",Upe="December",Jv=1900,vi={53:1,3:1,4:1},eXt="Before Christ",tXt="Anno Domini",zpe="Sunday",Gpe="Monday",qpe="Tuesday",Hpe="Wednesday",Vpe="Thursday",Ype="Friday",jpe="Saturday",uBe="com.google.gwt.i18n.shared",nXt="DateTimeFormat",Wpe="com.google.gwt.i18n.client",rXt="DefaultDateTimeFormatInfo",iXt={3:1,4:1,34:1,206:1},t6="com.google.gwt.json.client",Hh=4194303,rb=1048575,FG=524288,n6=4194304,j_=17592186044416,zJ=1e9,$G=-17592186044416,hBe="java.io",Kpe={3:1,103:1,77:1,63:1,82:1},aXt={3:1,296:1,82:1},nx='For input string: "',ka=1/0,Ss=-1/0,R4=4096,Xpe={3:1,4:1,376:1},fr="org.eclipse.elk.layered",el=65536,UG=55296,_l={109:1,3:1,4:1},Qpe=1e5,sXt=.3010299956639812,ul=4294967295,xI="0.0",Zpe={44:1},SI="Unable to add element to queue",oXt={3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1},lXt={3:1,20:1,31:1,56:1,16:1,15:1,59:1},cXt={20:1,16:1,15:1},Jpe={3:1,50:1},zG={189:1},p5={3:1,4:1,85:1},dBe={3:1,4:1,20:1,31:1,16:1,49:1,21:1},ege="delete",bM=14901161193847656e-24,yM=11102230246251565e-32,tge=15525485,GG=5960464477539063e-23,fBe=16777216,GJ=16777215,pBe=", length: ",uXt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1},gBe="subMap: ",hXt=" less than ",nge={3:1,34:1,22:1,304:1},rge="java.util.function",vM="java.util.logging",dXt={3:1,4:1,5:1,856:1},ige="undefined",Ts="java.util.stream",mBe={533:1,687:1},qJ="fromIndex: ",fXt=" > toIndex: ",bBe=", toIndex: ",yBe="Index: ",vBe=", Size: ",TI="org.eclipse.elk.alg.common",ui={50:1},pXt="org.eclipse.elk.alg.common.compaction",gXt="Scanline/EventHandler",Xg="org.eclipse.elk.alg.common.compaction.oned",mXt="CNode belongs to another CGroup.",bXt="ISpacingsHandler/1",age="The ",sge=" instance has been finished already.",yXt="The direction ",vXt=" is not supported by the CGraph instance.",_Xt="OneDimensionalCompactor",wXt="OneDimensionalCompactor/lambda$0$Type",EXt="Quadruplet",xXt="ScanlineConstraintCalculator",SXt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",TXt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",CXt="ScanlineConstraintCalculator/Timestamp",AXt="ScanlineConstraintCalculator/lambda$0$Type",ig={178:1,46:1},oge="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",_Be="org.eclipse.elk.polyomino.traversalStrategy",wBe="org.eclipse.elk.polyomino.lowLevelSort",EBe="org.eclipse.elk.polyomino.highLevelSort",xBe="org.eclipse.elk.polyomino.fill",Hf={134:1},lge="polyomino",_M="org.eclipse.elk.alg.common.networksimplex",Qg={183:1,3:1,4:1},kXt="org.eclipse.elk.alg.common.nodespacing",W_="org.eclipse.elk.alg.common.nodespacing.cellsystem",CI="CENTER",RXt={217:1,336:1},SBe={3:1,4:1,5:1,603:1},r6="LEFT",i6="RIGHT",TBe="Vertical alignment cannot be null",CBe="BOTTOM",HJ="org.eclipse.elk.alg.common.nodespacing.internal",wM="UNDEFINED",ep=.01,qG="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",IXt="LabelPlacer/lambda$0$Type",NXt="LabelPlacer/lambda$1$Type",OXt="portRatioOrPosition",AI="org.eclipse.elk.alg.common.overlaps",cge="DOWN",ag="org.eclipse.elk.alg.common.polyomino",VJ="NORTH",uge="EAST",hge="SOUTH",dge="WEST",YJ="org.eclipse.elk.alg.common.polyomino.structures",ABe="Direction",fge="Grid is only of size ",pge=". Requested point (",gge=") is out of bounds.",jJ=" Given center based coordinates were (",HG="org.eclipse.elk.graph.properties",LXt="IPropertyHolder",kBe={3:1,96:1,137:1},a6="org.eclipse.elk.alg.common.spore",DXt="org.eclipse.elk.alg.common.utils",K_={205:1},g5="org.eclipse.elk.core",MXt="Connected Components Compaction",PXt="org.eclipse.elk.alg.disco",WJ="org.eclipse.elk.alg.disco.graph",mge="org.eclipse.elk.alg.disco.options",RBe="CompactionStrategy",IBe="org.eclipse.elk.disco.componentCompaction.strategy",NBe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",OBe="org.eclipse.elk.disco.debug.discoGraph",LBe="org.eclipse.elk.disco.debug.discoPolys",BXt="componentCompaction",X_="org.eclipse.elk.disco",bge="org.eclipse.elk.spacing.componentComponent",yge="org.eclipse.elk.edge.thickness",s6="org.eclipse.elk.aspectRatio",rx="org.eclipse.elk.padding",m5="org.eclipse.elk.alg.disco.transform",vge=1.5707963267948966,b5=17976931348623157e292,I4={3:1,4:1,5:1,198:1},FXt={3:1,6:1,4:1,5:1,100:1,115:1},_ge="org.eclipse.elk.alg.force",DBe="ComponentsProcessor",$Xt="ComponentsProcessor/1",MBe="ElkGraphImporter/lambda$0$Type",VG="org.eclipse.elk.alg.force.graph",UXt="Component Layout",PBe="org.eclipse.elk.alg.force.model",KJ="org.eclipse.elk.force.model",BBe="org.eclipse.elk.force.iterations",FBe="org.eclipse.elk.force.repulsivePower",wge="org.eclipse.elk.force.temperature",sg=.001,Ege="org.eclipse.elk.force.repulsion",EM="org.eclipse.elk.alg.force.options",kI=1.600000023841858,Nu="org.eclipse.elk.force",YG="org.eclipse.elk.priority",N4="org.eclipse.elk.spacing.nodeNode",xge="org.eclipse.elk.spacing.edgeLabel",XJ="org.eclipse.elk.randomSeed",xM="org.eclipse.elk.separateConnectedComponents",SM="org.eclipse.elk.interactive",Sge="org.eclipse.elk.portConstraints",QJ="org.eclipse.elk.edgeLabels.inline",TM="org.eclipse.elk.omitNodeMicroLayout",RI="org.eclipse.elk.nodeSize.fixedGraphSize",o6="org.eclipse.elk.nodeSize.options",y5="org.eclipse.elk.nodeSize.constraints",II="org.eclipse.elk.nodeLabels.placement",NI="org.eclipse.elk.portLabels.placement",jG="org.eclipse.elk.topdownLayout",WG="org.eclipse.elk.topdown.scaleFactor",KG="org.eclipse.elk.topdown.hierarchicalNodeWidth",XG="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",ix="org.eclipse.elk.topdown.nodeType",$Be="origin",zXt="random",GXt="boundingBox.upLeft",qXt="boundingBox.lowRight",UBe="org.eclipse.elk.stress.fixed",zBe="org.eclipse.elk.stress.desiredEdgeLength",GBe="org.eclipse.elk.stress.dimension",qBe="org.eclipse.elk.stress.epsilon",HBe="org.eclipse.elk.stress.iterationLimit",e2="org.eclipse.elk.stress",HXt="ELK Stress",l6="org.eclipse.elk.nodeSize.minimum",ZJ="org.eclipse.elk.alg.force.stress",VXt="Layered layout",c6="org.eclipse.elk.alg.layered",QG="org.eclipse.elk.alg.layered.compaction.components",CM="org.eclipse.elk.alg.layered.compaction.oned",JJ="org.eclipse.elk.alg.layered.compaction.oned.algs",Q_="org.eclipse.elk.alg.layered.compaction.recthull",tp="org.eclipse.elk.alg.layered.components",og="NONE",VBe="MODEL_ORDER",Dc={3:1,6:1,4:1,9:1,5:1,126:1},YXt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},eee="org.eclipse.elk.alg.layered.compound",ba={47:1},tu="org.eclipse.elk.alg.layered.graph",Tge=" -> ",jXt="Not supported by LGraph",YBe="Port side is undefined",Cge={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},gy={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},WXt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},KXt=`([{"' 	\r
`,XXt=`)]}"' 	\r
`,QXt="The given string contains parts that cannot be parsed as numbers.",ZG="org.eclipse.elk.core.math",ZXt={3:1,4:1,140:1,214:1,423:1},JXt={3:1,4:1,107:1,214:1,423:1},my="org.eclipse.elk.alg.layered.graph.transform",eQt="ElkGraphImporter",tQt="ElkGraphImporter/lambda$1$Type",nQt="ElkGraphImporter/lambda$2$Type",rQt="ElkGraphImporter/lambda$4$Type",dr="org.eclipse.elk.alg.layered.intermediate",iQt="Node margin calculation",aQt="ONE_SIDED_GREEDY_SWITCH",sQt="TWO_SIDED_GREEDY_SWITCH",Age="No implementation is available for the layout processor ",kge="IntermediateProcessorStrategy",Rge="Node '",oQt="FIRST_SEPARATE",lQt="LAST_SEPARATE",cQt="Odd port side processing",Cs="org.eclipse.elk.alg.layered.intermediate.compaction",AM="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Zg="org.eclipse.elk.alg.layered.p3order.counting",JG={230:1},u6="org.eclipse.elk.alg.layered.intermediate.loops",Dd="org.eclipse.elk.alg.layered.intermediate.loops.ordering",t2="org.eclipse.elk.alg.layered.intermediate.loops.routing",jBe="org.eclipse.elk.alg.layered.intermediate.preserveorder",lg="org.eclipse.elk.alg.layered.intermediate.wrapping",Mc="org.eclipse.elk.alg.layered.options",Ige="INTERACTIVE",WBe="GREEDY",uQt="DEPTH_FIRST",hQt="EDGE_LENGTH",dQt="SELF_LOOPS",fQt="firstTryWithInitialOrder",KBe="org.eclipse.elk.layered.directionCongruency",XBe="org.eclipse.elk.layered.feedbackEdges",tee="org.eclipse.elk.layered.interactiveReferencePoint",QBe="org.eclipse.elk.layered.mergeEdges",ZBe="org.eclipse.elk.layered.mergeHierarchyEdges",JBe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",eFe="org.eclipse.elk.layered.portSortingStrategy",tFe="org.eclipse.elk.layered.thoroughness",nFe="org.eclipse.elk.layered.unnecessaryBendpoints",rFe="org.eclipse.elk.layered.generatePositionAndLayerIds",Nge="org.eclipse.elk.layered.cycleBreaking.strategy",eq="org.eclipse.elk.layered.layering.strategy",iFe="org.eclipse.elk.layered.layering.layerConstraint",aFe="org.eclipse.elk.layered.layering.layerChoiceConstraint",sFe="org.eclipse.elk.layered.layering.layerId",Oge="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Lge="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Dge="org.eclipse.elk.layered.layering.nodePromotion.strategy",Mge="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Pge="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",kM="org.eclipse.elk.layered.crossingMinimization.strategy",oFe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Bge="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Fge="org.eclipse.elk.layered.crossingMinimization.semiInteractive",lFe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",cFe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",uFe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",hFe="org.eclipse.elk.layered.crossingMinimization.positionId",dFe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",$ge="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",nee="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",v5="org.eclipse.elk.layered.nodePlacement.strategy",ree="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Uge="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",zge="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Gge="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",qge="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Hge="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",fFe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",pFe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",iee="org.eclipse.elk.layered.edgeRouting.splines.mode",aee="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Vge="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",gFe="org.eclipse.elk.layered.spacing.baseValue",mFe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",bFe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",yFe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",vFe="org.eclipse.elk.layered.priority.direction",_Fe="org.eclipse.elk.layered.priority.shortness",wFe="org.eclipse.elk.layered.priority.straightness",Yge="org.eclipse.elk.layered.compaction.connectedComponents",EFe="org.eclipse.elk.layered.compaction.postCompaction.strategy",xFe="org.eclipse.elk.layered.compaction.postCompaction.constraints",see="org.eclipse.elk.layered.highDegreeNodes.treatment",jge="org.eclipse.elk.layered.highDegreeNodes.threshold",Wge="org.eclipse.elk.layered.highDegreeNodes.treeHeight",ib="org.eclipse.elk.layered.wrapping.strategy",oee="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",lee="org.eclipse.elk.layered.wrapping.correctionFactor",RM="org.eclipse.elk.layered.wrapping.cutting.strategy",Kge="org.eclipse.elk.layered.wrapping.cutting.cuts",Xge="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",cee="org.eclipse.elk.layered.wrapping.validify.strategy",uee="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",hee="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",dee="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Qge="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",SFe="org.eclipse.elk.layered.edgeLabels.sideSelection",TFe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",fee="org.eclipse.elk.layered.considerModelOrder.strategy",CFe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",AFe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Zge="org.eclipse.elk.layered.considerModelOrder.components",kFe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Jge="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",eme="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",tme="layering",pQt="layering.minWidth",gQt="layering.nodePromotion",OI="crossingMinimization",pee="org.eclipse.elk.hierarchyHandling",mQt="crossingMinimization.greedySwitch",bQt="nodePlacement",yQt="nodePlacement.bk",vQt="edgeRouting",tq="org.eclipse.elk.edgeRouting",np="spacing",RFe="priority",IFe="compaction",_Qt="compaction.postCompaction",wQt="Specifies whether and how post-process compaction is applied.",NFe="highDegreeNodes",OFe="wrapping",EQt="wrapping.cutting",xQt="wrapping.validify",LFe="wrapping.multiEdge",nme="edgeLabels",IM="considerModelOrder",DFe="org.eclipse.elk.spacing.commentComment",MFe="org.eclipse.elk.spacing.commentNode",PFe="org.eclipse.elk.spacing.edgeEdge",rme="org.eclipse.elk.spacing.edgeNode",BFe="org.eclipse.elk.spacing.labelLabel",FFe="org.eclipse.elk.spacing.labelPortHorizontal",$Fe="org.eclipse.elk.spacing.labelPortVertical",UFe="org.eclipse.elk.spacing.labelNode",zFe="org.eclipse.elk.spacing.nodeSelfLoop",GFe="org.eclipse.elk.spacing.portPort",qFe="org.eclipse.elk.spacing.individual",HFe="org.eclipse.elk.port.borderOffset",VFe="org.eclipse.elk.noLayout",YFe="org.eclipse.elk.port.side",nq="org.eclipse.elk.debugMode",jFe="org.eclipse.elk.alignment",WFe="org.eclipse.elk.insideSelfLoops.activate",KFe="org.eclipse.elk.insideSelfLoops.yo",ime="org.eclipse.elk.direction",XFe="org.eclipse.elk.nodeLabels.padding",QFe="org.eclipse.elk.portLabels.nextToPortIfPossible",ZFe="org.eclipse.elk.portLabels.treatAsGroup",JFe="org.eclipse.elk.portAlignment.default",e$e="org.eclipse.elk.portAlignment.north",t$e="org.eclipse.elk.portAlignment.south",n$e="org.eclipse.elk.portAlignment.west",r$e="org.eclipse.elk.portAlignment.east",gee="org.eclipse.elk.contentAlignment",i$e="org.eclipse.elk.junctionPoints",a$e="org.eclipse.elk.edgeLabels.placement",s$e="org.eclipse.elk.port.index",o$e="org.eclipse.elk.commentBox",l$e="org.eclipse.elk.hypernode",c$e="org.eclipse.elk.port.anchor",ame="org.eclipse.elk.partitioning.activate",sme="org.eclipse.elk.partitioning.partition",mee="org.eclipse.elk.position",u$e="org.eclipse.elk.margins",h$e="org.eclipse.elk.spacing.portsSurrounding",bee="org.eclipse.elk.interactiveLayout",mc="org.eclipse.elk.core.util",d$e={3:1,4:1,5:1,601:1},SQt="NETWORK_SIMPLEX",f$e="SIMPLE",hl={106:1,47:1},yee="org.eclipse.elk.alg.layered.p1cycles",ab="org.eclipse.elk.alg.layered.p2layers",p$e={413:1,230:1},TQt={846:1,3:1,4:1},ph="org.eclipse.elk.alg.layered.p3order",dl="org.eclipse.elk.alg.layered.p4nodes",CQt={3:1,4:1,5:1,854:1},cg=1e-5,n2="org.eclipse.elk.alg.layered.p4nodes.bk",ome="org.eclipse.elk.alg.layered.p5edges",f1="org.eclipse.elk.alg.layered.p5edges.orthogonal",lme="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",cme=1e-6,O4="org.eclipse.elk.alg.layered.p5edges.splines",ume=.09999999999999998,vee=1e-8,AQt=4.71238898038469,g$e=3.141592653589793,sb="org.eclipse.elk.alg.mrtree",hme=.10000000149011612,_ee="SUPER_ROOT",NM="org.eclipse.elk.alg.mrtree.graph",m$e=-17976931348623157e292,nu="org.eclipse.elk.alg.mrtree.intermediate",kQt="Processor compute fanout",wee={3:1,6:1,4:1,5:1,534:1,100:1,115:1},RQt="Set neighbors in level",rq="org.eclipse.elk.alg.mrtree.options",IQt="DESCENDANTS",b$e="org.eclipse.elk.mrtree.compaction",y$e="org.eclipse.elk.mrtree.edgeEndTextureLength",v$e="org.eclipse.elk.mrtree.treeLevel",_$e="org.eclipse.elk.mrtree.positionConstraint",w$e="org.eclipse.elk.mrtree.weighting",E$e="org.eclipse.elk.mrtree.edgeRoutingMode",x$e="org.eclipse.elk.mrtree.searchOrder",NQt="Position Constraint",Ou="org.eclipse.elk.mrtree",OQt="org.eclipse.elk.tree",LQt="Processor arrange level",LI="org.eclipse.elk.alg.mrtree.p2order",hd="org.eclipse.elk.alg.mrtree.p4route",S$e="org.eclipse.elk.alg.radial",Z_=6.283185307179586,T$e="Before",C$e=5e-324,Eee="After",A$e="org.eclipse.elk.alg.radial.intermediate",DQt="COMPACTION",dme="org.eclipse.elk.alg.radial.intermediate.compaction",MQt={3:1,4:1,5:1,100:1},k$e="org.eclipse.elk.alg.radial.intermediate.optimization",fme="No implementation is available for the layout option ",OM="org.eclipse.elk.alg.radial.options",R$e="org.eclipse.elk.radial.centerOnRoot",I$e="org.eclipse.elk.radial.orderId",N$e="org.eclipse.elk.radial.radius",xee="org.eclipse.elk.radial.rotate",pme="org.eclipse.elk.radial.compactor",gme="org.eclipse.elk.radial.compactionStepSize",O$e="org.eclipse.elk.radial.sorter",L$e="org.eclipse.elk.radial.wedgeCriteria",D$e="org.eclipse.elk.radial.optimizationCriteria",mme="org.eclipse.elk.radial.rotation.targetAngle",bme="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",M$e="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",PQt="Compaction",P$e="rotation",bf="org.eclipse.elk.radial",BQt="org.eclipse.elk.alg.radial.p1position.wedge",B$e="org.eclipse.elk.alg.radial.sorting",FQt=5.497787143782138,$Qt=3.9269908169872414,UQt=2.356194490192345,zQt="org.eclipse.elk.alg.rectpacking",See="org.eclipse.elk.alg.rectpacking.intermediate",yme="org.eclipse.elk.alg.rectpacking.options",F$e="org.eclipse.elk.rectpacking.trybox",$$e="org.eclipse.elk.rectpacking.currentPosition",U$e="org.eclipse.elk.rectpacking.desiredPosition",z$e="org.eclipse.elk.rectpacking.inNewRow",G$e="org.eclipse.elk.rectpacking.widthApproximation.strategy",q$e="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",H$e="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",V$e="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Y$e="org.eclipse.elk.rectpacking.packing.strategy",j$e="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",W$e="org.eclipse.elk.rectpacking.packing.compaction.iterations",K$e="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",vme="widthApproximation",GQt="Compaction Strategy",qQt="packing.compaction",Vh="org.eclipse.elk.rectpacking",DI="org.eclipse.elk.alg.rectpacking.p1widthapproximation",Tee="org.eclipse.elk.alg.rectpacking.p2packing",HQt="No Compaction",X$e="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",iq="org.eclipse.elk.alg.rectpacking.util",Cee="No implementation available for ",L4="org.eclipse.elk.alg.spore",D4="org.eclipse.elk.alg.spore.options",ax="org.eclipse.elk.sporeCompaction",_me="org.eclipse.elk.underlyingLayoutAlgorithm",Q$e="org.eclipse.elk.processingOrder.treeConstruction",Z$e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",wme="org.eclipse.elk.processingOrder.preferredRoot",Eme="org.eclipse.elk.processingOrder.rootSelection",xme="org.eclipse.elk.structure.structureExtractionStrategy",J$e="org.eclipse.elk.compaction.compactionStrategy",eUe="org.eclipse.elk.compaction.orthogonal",tUe="org.eclipse.elk.overlapRemoval.maxIterations",nUe="org.eclipse.elk.overlapRemoval.runScanline",Sme="processingOrder",VQt="overlapRemoval",MI="org.eclipse.elk.sporeOverlap",YQt="org.eclipse.elk.alg.spore.p1structure",Tme="org.eclipse.elk.alg.spore.p2processingorder",Cme="org.eclipse.elk.alg.spore.p3execution",jQt="Topdown Layout",WQt="Invalid index: ",PI="org.eclipse.elk.core.alg",_5={341:1},M4={295:1},KQt="Make sure its type is registered with the ",rUe=" utility class.",BI="true",Ame="false",XQt="Couldn't clone property '",sx=.05,Yh="org.eclipse.elk.core.options",QQt=1.2999999523162842,ox="org.eclipse.elk.box",iUe="org.eclipse.elk.expandNodes",aUe="org.eclipse.elk.box.packingMode",ZQt="org.eclipse.elk.algorithm",JQt="org.eclipse.elk.resolvedAlgorithm",sUe="org.eclipse.elk.bendPoints",k8r="org.eclipse.elk.labelManager",eZt="org.eclipse.elk.scaleFactor",tZt="org.eclipse.elk.childAreaWidth",nZt="org.eclipse.elk.childAreaHeight",rZt="org.eclipse.elk.animate",iZt="org.eclipse.elk.animTimeFactor",aZt="org.eclipse.elk.layoutAncestors",sZt="org.eclipse.elk.maxAnimTime",oZt="org.eclipse.elk.minAnimTime",lZt="org.eclipse.elk.progressBar",cZt="org.eclipse.elk.validateGraph",uZt="org.eclipse.elk.validateOptions",hZt="org.eclipse.elk.zoomToFit",R8r="org.eclipse.elk.font.name",dZt="org.eclipse.elk.font.size",oUe="org.eclipse.elk.topdown.sizeApproximator",lUe="org.eclipse.elk.topdown.scaleCap",fZt="org.eclipse.elk.edge.type",pZt="partitioning",gZt="nodeLabels",Aee="portAlignment",kme="nodeSize",Rme="port",cUe="portLabels",aq="topdown",mZt="insideSelfLoops",LM="org.eclipse.elk.fixed",kee="org.eclipse.elk.random",uUe={3:1,34:1,22:1,347:1},bZt="port must have a parent node to calculate the port side",yZt="The edge needs to have exactly one edge section. Found: ",DM="org.eclipse.elk.core.util.adapters",yf="org.eclipse.emf.ecore",w5="org.eclipse.elk.graph",vZt="EMapPropertyHolder",_Zt="ElkBendPoint",wZt="ElkGraphElement",EZt="ElkConnectableShape",hUe="ElkEdge",xZt="ElkEdgeSection",SZt="EModelElement",TZt="ENamedElement",dUe="ElkLabel",fUe="ElkNode",pUe="ElkPort",CZt={94:1,93:1},h6="org.eclipse.emf.common.notify.impl",r2="The feature '",MM="' is not a valid changeable feature",AZt="Expecting null",Ime="' is not a valid feature",kZt="The feature ID",RZt=" is not a valid feature ID",Sc=32768,IZt={110:1,94:1,93:1,58:1,54:1,99:1},tr="org.eclipse.emf.ecore.impl",J_="org.eclipse.elk.graph.impl",PM="Recursive containment not allowed for ",FI="The datatype '",lx="' is not a valid classifier",Nme="The value '",E5={195:1,3:1,4:1},Ome="The class '",$I="http://www.eclipse.org/elk/ElkGraph",gUe="property",BM="value",Lme="source",NZt="properties",OZt="identifier",Dme="height",Mme="width",Pme="parent",Bme="text",Fme="children",LZt="hierarchical",mUe="sources",$me="targets",bUe="sections",Ree="bendPoints",yUe="outgoingShape",vUe="incomingShape",_Ue="outgoingSections",wUe="incomingSections",Qo="org.eclipse.emf.common.util",EUe="Severe implementation error in the Json to ElkGraph importer.",ug="id",Co="org.eclipse.elk.graph.json",xUe="Unhandled parameter types: ",DZt="startPoint",MZt="An edge must have at least one source and one target (edge id: '",UI="').",PZt="Referenced edge section does not exist: ",BZt=" (edge id: '",SUe="target",FZt="sourcePoint",$Zt="targetPoint",Iee="group",Mi="name",UZt="connectableShape cannot be null",zZt="edge cannot be null",Ume="Passed edge is not 'simple'.",Nee="org.eclipse.elk.graph.util",sq="The 'no duplicates' constraint is violated",zme="targetIndex=",ew=", size=",Gme="sourceIndex=",hg={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},qme={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},Oee="logging",GZt="measureExecutionTime",qZt="parser.parse.1",HZt="parser.parse.2",Lee="parser.next.1",Hme="parser.next.2",VZt="parser.next.3",YZt="parser.next.4",tw="parser.factor.1",TUe="parser.factor.2",jZt="parser.factor.3",WZt="parser.factor.4",KZt="parser.factor.5",XZt="parser.factor.6",QZt="parser.atom.1",ZZt="parser.atom.2",JZt="parser.atom.3",CUe="parser.atom.4",Vme="parser.atom.5",AUe="parser.cc.1",Dee="parser.cc.2",eJt="parser.cc.3",tJt="parser.cc.5",kUe="parser.cc.6",RUe="parser.cc.7",Yme="parser.cc.8",nJt="parser.ope.1",rJt="parser.ope.2",iJt="parser.ope.3",by="parser.descape.1",aJt="parser.descape.2",sJt="parser.descape.3",oJt="parser.descape.4",lJt="parser.descape.5",vf="parser.process.1",cJt="parser.quantifier.1",uJt="parser.quantifier.2",hJt="parser.quantifier.3",dJt="parser.quantifier.4",IUe="parser.quantifier.5",fJt="org.eclipse.emf.common.notify",NUe={424:1,686:1},pJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},oq={378:1,152:1},FM="index=",jme={3:1,4:1,5:1,129:1},gJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},OUe={3:1,6:1,4:1,5:1,198:1},mJt={3:1,4:1,5:1,173:1,379:1},bJt=";/?:@&=+$,",yJt="invalid authority: ",vJt="EAnnotation",_Jt="ETypedElement",wJt="EStructuralFeature",EJt="EAttribute",xJt="EClassifier",SJt="EEnumLiteral",TJt="EGenericType",CJt="EOperation",AJt="EParameter",kJt="EReference",RJt="ETypeParameter",Ca="org.eclipse.emf.ecore.util",Wme={79:1},LUe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},IJt="org.eclipse.emf.ecore.util.FeatureMap$Entry",gh=8192,P4=2048,$M="byte",Mee="char",UM="double",zM="float",GM="int",qM="long",HM="short",NJt="java.lang.Object",x5={3:1,4:1,5:1,254:1},DUe={3:1,4:1,5:1,688:1},OJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Xl={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},lq="mixed",gi="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Vf="kind",LJt={3:1,4:1,5:1,689:1},MUe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},Pee={20:1,31:1,56:1,16:1,15:1,61:1,71:1},Bee={51:1,128:1,287:1},Fee={76:1,343:1},$ee="The value of type '",Uee="' must be of type '",S5=1352,Yf="http://www.eclipse.org/emf/2002/Ecore",zee=-32768,cx="constraints",Bo="baseType",DJt="getEStructuralFeature",MJt="getFeatureID",VM="feature",PJt="getOperationID",PUe="operation",BJt="defaultValue",FJt="eTypeParameters",$Jt="isInstance",UJt="getEEnumLiteral",zJt="eContainingClass",ki={57:1},GJt={3:1,4:1,5:1,124:1},qJt="org.eclipse.emf.ecore.resource",HJt={94:1,93:1,599:1,2034:1},Kme="org.eclipse.emf.ecore.resource.impl",BUe="unspecified",cq="simple",Gee="attribute",VJt="attributeWildcard",qee="element",Xme="elementWildcard",p1="collapse",Qme="itemType",Hee="namespace",uq="##targetNamespace",jf="whiteSpace",FUe="wildcards",nw="http://www.eclipse.org/emf/2003/XMLType",Zme="##any",zI="uninitialized",hq="The multiplicity constraint is violated",Vee="org.eclipse.emf.ecore.xml.type",YJt="ProcessingInstruction",jJt="SimpleAnyType",WJt="XMLTypeDocumentRoot",_s="org.eclipse.emf.ecore.xml.type.impl",dq="INF",KJt="processing",XJt="ENTITIES_._base",$Ue="minLength",UUe="ENTITY",Yee="NCName",QJt="IDREFS_._base",zUe="integer",Jme="token",ebe="pattern",ZJt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",GUe="\\i\\c*",JJt="[\\i-[:]][\\c-[:]]*",een="nonPositiveInteger",fq="maxInclusive",qUe="NMTOKEN",ten="NMTOKENS_._base",HUe="nonNegativeInteger",pq="minInclusive",nen="normalizedString",ren="unsignedByte",ien="unsignedInt",aen="18446744073709551615",sen="unsignedShort",oen="processingInstruction",yy="org.eclipse.emf.ecore.xml.type.internal",GI=1114111,len="Internal Error: shorthands: \\u",YM="xml:isDigit",tbe="xml:isWord",nbe="xml:isSpace",rbe="xml:isNameChar",ibe="xml:isInitialNameChar",cen="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",uen="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",hen="Private Use",abe="ASSIGNED",sbe="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁯⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿　〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ﬀﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",VUe="UNASSIGNED",qI={3:1,122:1},den="org.eclipse.emf.ecore.xml.type.util",jee={3:1,4:1,5:1,381:1},YUe="org.eclipse.xtext.xbase.lib",fen="Cannot add elements to a Range",pen="Cannot set elements in a Range",gen="Cannot remove elements from a Range",men="user.agent",E,Wee,obe;u.goog=u.goog||{},u.goog.global=u.goog.global||u,Wee={},H(1,null,{},f),E.Fb=function(i){return pIt(this,i)},E.Gb=function(){return this.Rm},E.Hb=function(){return vE(this)},E.Ib=function(){var i;return __(cd(this))+"@"+(i=ma(this)>>>0,i.toString(16))},E.equals=function(n){return this.Fb(n)},E.hashCode=function(){return this.Hb()},E.toString=function(){return this.Ib()};var ben,yen,ven;H(297,1,{297:1,2124:1},z9e),E.ve=function(i){var l;return l=new z9e,l.i=4,i>1?l.c=PDt(this,i-1):l.c=this,l},E.we=function(){return Fm(this),this.b},E.xe=function(){return __(this)},E.ye=function(){return Fm(this),this.k},E.ze=function(){return(this.i&4)!=0},E.Ae=function(){return(this.i&1)!=0},E.Ib=function(){return ZOe(this)},E.i=0;var zs=K(gc,"Object",1),jUe=K(gc,"Class",297);H(2096,1,OG),K(LG,"Optional",2096),H(1191,2096,OG,p),E.Fb=function(i){return i===this},E.Hb=function(){return 2040732332},E.Ib=function(){return"Optional.absent()"},E.Jb=function(i){return ni(i),yL(),lbe};var lbe;K(LG,"Absent",1191),H(636,1,{},que),K(LG,"Joiner",636);var I8r=$a(LG,"Predicate");H(589,1,{178:1,589:1,3:1,46:1},qTt),E.Mb=function(i){return PUt(this,i)},E.Lb=function(i){return PUt(this,i)},E.Fb=function(i){var l;return $e(i,589)?(l=v(i,589),FMe(this.a,l.a)):!1},E.Hb=function(){return j9e(this.a)+306654252},E.Ib=function(){return mSr(this.a)},K(LG,"Predicates/AndPredicate",589),H(419,2096,{419:1,3:1},mK),E.Fb=function(i){var l;return $e(i,419)?(l=v(i,419),Yi(this.a,l.a)):!1},E.Hb=function(){return 1502476572+ma(this.a)},E.Ib=function(){return HKt+this.a+")"},E.Jb=function(i){return new mK(mQ(i.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},K(LG,"Present",419),H(204,1,yI),E.Nb=function(i){xo(this,i)},E.Qb=function(){r7t()},K(_n,"UnmodifiableIterator",204),H(2076,204,vI),E.Qb=function(){r7t()},E.Rb=function(i){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(_n,"UnmodifiableListIterator",2076),H(399,2076,vI),E.Ob=function(){return this.c<this.d},E.Sb=function(){return this.c>0},E.Pb=function(){if(this.c>=this.d)throw _e(new ec);return this.Xb(this.c++)},E.Tb=function(){return this.c},E.Ub=function(){if(this.c<=0)throw _e(new ec);return this.Xb(--this.c)},E.Vb=function(){return this.c-1},E.c=0,E.d=0,K(_n,"AbstractIndexedListIterator",399),H(713,204,yI),E.Ob=function(){return Vfe(this)},E.Pb=function(){return YOe(this)},E.e=1,K(_n,"AbstractIterator",713),H(2084,1,{229:1}),E.Zb=function(){var i;return i=this.f,i||(this.f=this.ac())},E.Fb=function(i){return f0e(this,i)},E.Hb=function(){return ma(this.Zb())},E.dc=function(){return this.gc()==0},E.ec=function(){return wk(this)},E.Ib=function(){return Kl(this.Zb())},K(_n,"AbstractMultimap",2084),H(742,2084,Y_),E.$b=function(){sZ(this)},E._b=function(i){return E7t(this,i)},E.ac=function(){return new jR(this,this.c)},E.ic=function(i){return this.hc()},E.bc=function(){return new $T(this,this.c)},E.jc=function(){return this.mc(this.hc())},E.kc=function(){return new z6t(this)},E.lc=function(){return E1e(this.c.vc().Nc(),new b,64,this.d)},E.cc=function(i){return Zi(this,i)},E.fc=function(i){return Vz(this,i)},E.gc=function(){return this.d},E.mc=function(i){return Fn(),new DR(i)},E.nc=function(){return new U6t(this)},E.oc=function(){return E1e(this.c.Cc().Nc(),new m,64,this.d)},E.pc=function(i,l){return new FQ(this,i,l,null)},E.d=0,K(_n,"AbstractMapBasedMultimap",742),H(1696,742,Y_),E.hc=function(){return new gu(this.a)},E.jc=function(){return Fn(),Fn(),Zo},E.cc=function(i){return v(Zi(this,i),15)},E.fc=function(i){return v(Vz(this,i),15)},E.Zb=function(){return Ak(this)},E.Fb=function(i){return f0e(this,i)},E.qc=function(i){return v(Zi(this,i),15)},E.rc=function(i){return v(Vz(this,i),15)},E.mc=function(i){return Wde(v(i,15))},E.pc=function(i,l){return qMt(this,i,v(l,15),null)},K(_n,"AbstractListMultimap",1696),H(748,1,io),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.c.Ob()||this.e.Ob()},E.Pb=function(){var i;return this.e.Ob()||(i=v(this.c.Pb(),44),this.b=i.ld(),this.a=v(i.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},E.Qb=function(){this.e.Qb(),v($f(this.a),16).dc()&&this.c.Qb(),--this.d.d},K(_n,"AbstractMapBasedMultimap/Itr",748),H(1129,748,io,U6t),E.sc=function(i,l){return l},K(_n,"AbstractMapBasedMultimap/1",1129),H(1130,1,{},m),E.Kb=function(i){return v(i,16).Nc()},K(_n,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),H(1131,748,io,z6t),E.sc=function(i,l){return new hE(i,l)},K(_n,"AbstractMapBasedMultimap/2",1131);var WUe=$a(Dr,"Map");H(2065,1,tx),E.wc=function(i){kD(this,i)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.$b=function(){this.vc().$b()},E.tc=function(i){return i1e(this,i)},E._b=function(i){return!!PDe(this,i,!1)},E.uc=function(i){var l,d,g;for(d=this.vc().Kc();d.Ob();)if(l=v(d.Pb(),44),g=l.md(),Ze(i)===Ze(g)||i!=null&&Yi(i,g))return!0;return!1},E.Fb=function(i){var l,d,g;if(i===this)return!0;if(!$e(i,85)||(g=v(i,85),this.gc()!=g.gc()))return!1;for(d=g.vc().Kc();d.Ob();)if(l=v(d.Pb(),44),!this.tc(l))return!1;return!0},E.xc=function(i){return Pl(PDe(this,i,!1))},E.Hb=function(){return B9e(this.vc())},E.dc=function(){return this.gc()==0},E.ec=function(){return new m_(this)},E.zc=function(i,l){throw _e(new zb("Put not supported on this map"))},E.Ac=function(i){AD(this,i)},E.Bc=function(i){return Pl(PDe(this,i,!0))},E.gc=function(){return this.vc().gc()},E.Ib=function(){return Wqt(this)},E.Cc=function(){return new Dm(this)},K(Dr,"AbstractMap",2065),H(2085,2065,tx),E.bc=function(){return new FK(this)},E.vc=function(){return $9t(this)},E.ec=function(){var i;return i=this.g,i||(this.g=this.bc())},E.Cc=function(){var i;return i=this.i,i||(this.i=new dRt(this))},K(_n,"Maps/ViewCachingAbstractMap",2085),H(402,2085,tx,jR),E.xc=function(i){return Mgr(this,i)},E.Bc=function(i){return iyr(this,i)},E.$b=function(){this.d==this.e.c?this.e.$b():jX(new KIe(this))},E._b=function(i){return _zt(this.d,i)},E.Ec=function(){return new HTt(this)},E.Dc=function(){return this.Ec()},E.Fb=function(i){return this===i||Yi(this.d,i)},E.Hb=function(){return ma(this.d)},E.ec=function(){return this.e.ec()},E.gc=function(){return this.d.gc()},E.Ib=function(){return Kl(this.d)},K(_n,"AbstractMapBasedMultimap/AsMap",402);var Md=$a(gc,"Iterable");H(31,1,A4),E.Jc=function(i){To(this,i)},E.Lc=function(){return this.Oc()},E.Nc=function(){return new Nn(this,0)},E.Oc=function(){return new xn(null,this.Nc())},E.Fc=function(i){throw _e(new zb("Add not supported on this collection"))},E.Gc=function(i){return bo(this,i)},E.$b=function(){MNe(this)},E.Hc=function(i){return f4(this,i,!1)},E.Ic=function(i){return Bz(this,i)},E.dc=function(){return this.gc()==0},E.Mc=function(i){return f4(this,i,!0)},E.Pc=function(){return aNe(this)},E.Qc=function(i){return YD(this,i)},E.Ib=function(){return Wv(this)},K(Dr,"AbstractCollection",31);var Wf=$a(Dr,"Set");H(J1,31,fh),E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return hGt(this,i)},E.Hb=function(){return B9e(this)},K(Dr,"AbstractSet",J1),H(2068,J1,fh),K(_n,"Sets/ImprovedAbstractSet",2068),H(2069,2068,fh),E.$b=function(){this.Rc().$b()},E.Hc=function(i){return Kzt(this,i)},E.dc=function(){return this.Rc().dc()},E.Mc=function(i){var l;return this.Hc(i)&&$e(i,44)?(l=v(i,44),this.Rc().ec().Mc(l.ld())):!1},E.gc=function(){return this.Rc().gc()},K(_n,"Maps/EntrySet",2069),H(1127,2069,fh,HTt),E.Hc=function(i){return uLe(this.a.d.vc(),i)},E.Kc=function(){return new KIe(this.a)},E.Rc=function(){return this.a},E.Mc=function(i){var l;return uLe(this.a.d.vc(),i)?(l=v($f(v(i,44)),44),xpr(this.a.e,l.ld()),!0):!1},E.Nc=function(){return WU(this.a.d.vc().Nc(),new VTt(this.a))},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),H(1128,1,{},VTt),E.Kb=function(i){return zPt(this.a,v(i,44))},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),H(746,1,io,KIe),E.Nb=function(i){xo(this,i)},E.Pb=function(){var i;return i=v(this.b.Pb(),44),this.a=v(i.md(),16),zPt(this.c,i)},E.Ob=function(){return this.b.Ob()},E.Qb=function(){n8(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),H(542,2068,fh,FK),E.$b=function(){this.b.$b()},E.Hc=function(i){return this.b._b(i)},E.Jc=function(i){ni(i),this.b.wc(new l5t(i))},E.dc=function(){return this.b.dc()},E.Kc=function(){return new vL(this.b.vc().Kc())},E.Mc=function(i){return this.b._b(i)?(this.b.Bc(i),!0):!1},E.gc=function(){return this.b.gc()},K(_n,"Maps/KeySet",542),H(327,542,fh,$T),E.$b=function(){var i;jX((i=this.b.vc().Kc(),new vRe(this,i)))},E.Ic=function(i){return this.b.ec().Ic(i)},E.Fb=function(i){return this===i||Yi(this.b.ec(),i)},E.Hb=function(){return ma(this.b.ec())},E.Kc=function(){var i;return i=this.b.vc().Kc(),new vRe(this,i)},E.Mc=function(i){var l,d;return d=0,l=v(this.b.Bc(i),16),l&&(d=l.gc(),l.$b(),this.a.d-=d),d>0},E.Nc=function(){return this.b.ec().Nc()},K(_n,"AbstractMapBasedMultimap/KeySet",327),H(747,1,io,vRe),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.c.Ob()},E.Pb=function(){return this.a=v(this.c.Pb(),44),this.a.ld()},E.Qb=function(){var i;n8(!!this.a),i=v(this.a.md(),16),this.c.Qb(),this.b.a.d-=i.gc(),i.$b(),this.a=null},K(_n,"AbstractMapBasedMultimap/KeySet/1",747),H(503,402,{85:1,133:1},zU),E.bc=function(){return this.Sc()},E.ec=function(){return this.Uc()},E.Sc=function(){return new gU(this.c,this.Wc())},E.Tc=function(){return this.Wc().Tc()},E.Uc=function(){var i;return i=this.b,i||(this.b=this.Sc())},E.Vc=function(){return this.Wc().Vc()},E.Wc=function(){return v(this.d,133)},K(_n,"AbstractMapBasedMultimap/SortedAsMap",503),H(446,503,iBe,JL),E.bc=function(){return new YR(this.a,v(v(this.d,133),139))},E.Sc=function(){return new YR(this.a,v(v(this.d,133),139))},E.ec=function(){var i;return i=this.b,v(i||(this.b=new YR(this.a,v(v(this.d,133),139))),277)},E.Uc=function(){var i;return i=this.b,v(i||(this.b=new YR(this.a,v(v(this.d,133),139))),277)},E.Wc=function(){return v(v(this.d,133),139)},E.Xc=function(i){return v(v(this.d,133),139).Xc(i)},E.Yc=function(i){return v(v(this.d,133),139).Yc(i)},E.Zc=function(i,l){return new JL(this.a,v(v(this.d,133),139).Zc(i,l))},E.$c=function(i){return v(v(this.d,133),139).$c(i)},E._c=function(i){return v(v(this.d,133),139)._c(i)},E.ad=function(i,l){return new JL(this.a,v(v(this.d,133),139).ad(i,l))},K(_n,"AbstractMapBasedMultimap/NavigableAsMap",446),H(502,327,VKt,gU),E.Nc=function(){return this.b.ec().Nc()},K(_n,"AbstractMapBasedMultimap/SortedKeySet",502),H(401,502,aBe,YR),K(_n,"AbstractMapBasedMultimap/NavigableKeySet",401),H(551,31,A4,FQ),E.Fc=function(i){var l,d;return zh(this),d=this.d.dc(),l=this.d.Fc(i),l&&(++this.f.d,d&&VU(this)),l},E.Gc=function(i){var l,d,g;return i.dc()?!1:(g=(zh(this),this.d.gc()),l=this.d.Gc(i),l&&(d=this.d.gc(),this.f.d+=d-g,g==0&&VU(this)),l)},E.$b=function(){var i;i=(zh(this),this.d.gc()),i!=0&&(this.d.$b(),this.f.d-=i,JX(this))},E.Hc=function(i){return zh(this),this.d.Hc(i)},E.Ic=function(i){return zh(this),this.d.Ic(i)},E.Fb=function(i){return i===this?!0:(zh(this),Yi(this.d,i))},E.Hb=function(){return zh(this),ma(this.d)},E.Kc=function(){return zh(this),new OIe(this)},E.Mc=function(i){var l;return zh(this),l=this.d.Mc(i),l&&(--this.f.d,JX(this)),l},E.gc=function(){return eIt(this)},E.Nc=function(){return zh(this),this.d.Nc()},E.Ib=function(){return zh(this),Kl(this.d)},K(_n,"AbstractMapBasedMultimap/WrappedCollection",551);var _f=$a(Dr,"List");H(744,551,{20:1,31:1,16:1,15:1},lNe),E.jd=function(i){D_(this,i)},E.Nc=function(){return zh(this),this.d.Nc()},E.bd=function(i,l){var d;zh(this),d=this.d.dc(),v(this.d,15).bd(i,l),++this.a.d,d&&VU(this)},E.cd=function(i,l){var d,g,y;return l.dc()?!1:(y=(zh(this),this.d.gc()),d=v(this.d,15).cd(i,l),d&&(g=this.d.gc(),this.a.d+=g-y,y==0&&VU(this)),d)},E.Xb=function(i){return zh(this),v(this.d,15).Xb(i)},E.dd=function(i){return zh(this),v(this.d,15).dd(i)},E.ed=function(){return zh(this),new IIt(this)},E.fd=function(i){return zh(this),new JLt(this,i)},E.gd=function(i){var l;return zh(this),l=v(this.d,15).gd(i),--this.a.d,JX(this),l},E.hd=function(i,l){return zh(this),v(this.d,15).hd(i,l)},E.kd=function(i,l){return zh(this),qMt(this.a,this.e,v(this.d,15).kd(i,l),this.b?this.b:this)},K(_n,"AbstractMapBasedMultimap/WrappedList",744),H(1126,744,{20:1,31:1,16:1,15:1,59:1},vNt),K(_n,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),H(628,1,io,OIe),E.Nb=function(i){xo(this,i)},E.Ob=function(){return f8(this),this.b.Ob()},E.Pb=function(){return f8(this),this.b.Pb()},E.Qb=function(){rNt(this)},K(_n,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),H(745,628,Yg,IIt,JLt),E.Qb=function(){rNt(this)},E.Rb=function(i){var l;l=eIt(this.a)==0,(f8(this),v(this.b,128)).Rb(i),++this.a.a.d,l&&VU(this.a)},E.Sb=function(){return(f8(this),v(this.b,128)).Sb()},E.Tb=function(){return(f8(this),v(this.b,128)).Tb()},E.Ub=function(){return(f8(this),v(this.b,128)).Ub()},E.Vb=function(){return(f8(this),v(this.b,128)).Vb()},E.Wb=function(i){(f8(this),v(this.b,128)).Wb(i)},K(_n,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),H(743,551,VKt,Q8e),E.Nc=function(){return zh(this),this.d.Nc()},K(_n,"AbstractMapBasedMultimap/WrappedSortedSet",743),H(1125,743,aBe,TIt),K(_n,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),H(1124,551,fh,UNt),E.Nc=function(){return zh(this),this.d.Nc()},K(_n,"AbstractMapBasedMultimap/WrappedSet",1124),H(1133,1,{},b),E.Kb=function(i){return Lpr(v(i,44))},K(_n,"AbstractMapBasedMultimap/lambda$1$Type",1133),H(1132,1,{},KTt),E.Kb=function(i){return new hE(this.a,i)},K(_n,"AbstractMapBasedMultimap/lambda$2$Type",1132);var rw=$a(Dr,"Map/Entry");H(358,1,Spe),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Wp(this.ld(),l.ld())&&Wp(this.md(),l.md())):!1},E.Hb=function(){var i,l;return i=this.ld(),l=this.md(),(i==null?0:ma(i))^(l==null?0:ma(l))},E.nd=function(i){throw _e(new ri)},E.Ib=function(){return this.ld()+"="+this.md()},K(_n,YKt,358),H(2086,31,A4),E.$b=function(){this.od().$b()},E.Hc=function(i){var l;return $e(i,44)?(l=v(i,44),e1r(this.od(),l.ld(),l.md())):!1},E.Mc=function(i){var l;return $e(i,44)?(l=v(i,44),SMt(this.od(),l.ld(),l.md())):!1},E.gc=function(){return this.od().d},K(_n,"Multimaps/Entries",2086),H(749,2086,A4,Z6e),E.Kc=function(){return this.a.kc()},E.od=function(){return this.a},E.Nc=function(){return this.a.lc()},K(_n,"AbstractMultimap/Entries",749),H(750,749,fh,X7e),E.Nc=function(){return this.a.lc()},E.Fb=function(i){return nMe(this,i)},E.Hb=function(){return M$t(this)},K(_n,"AbstractMultimap/EntrySet",750),H(751,31,A4,J6e),E.$b=function(){this.a.$b()},E.Hc=function(i){return Zbr(this.a,i)},E.Kc=function(){return this.a.nc()},E.gc=function(){return this.a.d},E.Nc=function(){return this.a.oc()},K(_n,"AbstractMultimap/Values",751),H(2087,31,{849:1,20:1,31:1,16:1}),E.Jc=function(i){ni(i),zT(this).Jc(new p5t(i))},E.Nc=function(){var i;return i=zT(this).Nc(),E1e(i,new N,64|i.yd()&1296,this.a.d)},E.Fc=function(i){return iRe(),!0},E.Gc=function(i){return ni(this),ni(i),$e(i,552)?r1r(v(i,849)):!i.dc()&&Pfe(this,i.Kc())},E.Hc=function(i){var l;return l=v(d4(Ak(this.a),i),16),(l?l.gc():0)>0},E.Fb=function(i){return T3r(this,i)},E.Hb=function(){return ma(zT(this))},E.dc=function(){return zT(this).dc()},E.Mc=function(i){return oVt(this,i,1)>0},E.Ib=function(){return Kl(zT(this))},K(_n,"AbstractMultiset",2087),H(2089,2068,fh),E.$b=function(){sZ(this.a.a)},E.Hc=function(i){var l,d;return $e(i,504)?(d=v(i,425),v(d.a.md(),16).gc()<=0?!1:(l=QDt(this.a,d.a.ld()),l==v(d.a.md(),16).gc())):!1},E.Mc=function(i){var l,d,g,y;return $e(i,504)&&(d=v(i,425),l=d.a.ld(),g=v(d.a.md(),16).gc(),g!=0)?(y=this.a,g4r(y,l,g)):!1},K(_n,"Multisets/EntrySet",2089),H(1139,2089,fh,XTt),E.Kc=function(){return new Y6t($9t(Ak(this.a.a)).Kc())},E.gc=function(){return Ak(this.a.a).gc()},K(_n,"AbstractMultiset/EntrySet",1139),H(627,742,Y_),E.hc=function(){return this.pd()},E.jc=function(){return this.qd()},E.cc=function(i){return this.rd(i)},E.fc=function(i){return this.sd(i)},E.Zb=function(){var i;return i=this.f,i||(this.f=this.ac())},E.qd=function(){return Fn(),Fn(),ete},E.Fb=function(i){return f0e(this,i)},E.rd=function(i){return v(Zi(this,i),21)},E.sd=function(i){return v(Vz(this,i),21)},E.mc=function(i){return Fn(),new zR(v(i,21))},E.pc=function(i,l){return new UNt(this,i,v(l,21))},K(_n,"AbstractSetMultimap",627),H(1723,627,Y_),E.hc=function(){return new Vb(this.b)},E.pd=function(){return new Vb(this.b)},E.jc=function(){return RNe(new Vb(this.b))},E.qd=function(){return RNe(new Vb(this.b))},E.cc=function(i){return v(v(Zi(this,i),21),87)},E.rd=function(i){return v(v(Zi(this,i),21),87)},E.fc=function(i){return v(v(Vz(this,i),21),87)},E.sd=function(i){return v(v(Vz(this,i),21),87)},E.mc=function(i){return $e(i,277)?RNe(v(i,277)):(Fn(),new P8e(v(i,87)))},E.Zb=function(){var i;return i=this.f,i||(this.f=$e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c))},E.pc=function(i,l){return $e(l,277)?new TIt(this,i,v(l,277)):new Q8e(this,i,v(l,87))},K(_n,"AbstractSortedSetMultimap",1723),H(1724,1723,Y_),E.Zb=function(){var i;return i=this.f,v(v(i||(this.f=$e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c)),133),139)},E.ec=function(){var i;return i=this.i,v(v(i||(this.i=$e(this.c,139)?new YR(this,v(this.c,139)):$e(this.c,133)?new gU(this,v(this.c,133)):new $T(this,this.c)),87),277)},E.bc=function(){return $e(this.c,139)?new YR(this,v(this.c,139)):$e(this.c,133)?new gU(this,v(this.c,133)):new $T(this,this.c)},K(_n,"AbstractSortedKeySortedSetMultimap",1724),H(2109,1,{2046:1}),E.Fb=function(i){return Xwr(this,i)},E.Hb=function(){var i;return B9e((i=this.g,i||(this.g=new pue(this))))},E.Ib=function(){var i;return Wqt((i=this.f,i||(this.f=new O8e(this))))},K(_n,"AbstractTable",2109),H(679,J1,fh,pue),E.$b=function(){i7t()},E.Hc=function(i){var l,d;return $e(i,479)?(l=v(i,697),d=v(d4(cLt(this.a),Nv(l.c.e,l.b)),85),!!d&&uLe(d.vc(),new hE(Nv(l.c.c,l.a),Dk(l.c,l.b,l.a)))):!1},E.Kc=function(){return efr(this.a)},E.Mc=function(i){var l,d;return $e(i,479)?(l=v(i,697),d=v(d4(cLt(this.a),Nv(l.c.e,l.b)),85),!!d&&Nyr(d.vc(),new hE(Nv(l.c.c,l.a),Dk(l.c,l.b,l.a)))):!1},E.gc=function(){return d9t(this.a)},E.Nc=function(){return s1r(this.a)},K(_n,"AbstractTable/CellSet",679),H(2025,31,A4,ZTt),E.$b=function(){i7t()},E.Hc=function(i){return GEr(this.a,i)},E.Kc=function(){return tfr(this.a)},E.gc=function(){return d9t(this.a)},E.Nc=function(){return xMt(this.a)},K(_n,"AbstractTable/Values",2025),H(1697,1696,Y_),K(_n,"ArrayListMultimapGwtSerializationDependencies",1697),H(520,1697,Y_,Yue,QNe),E.hc=function(){return new gu(this.a)},E.a=0,K(_n,"ArrayListMultimap",520),H(678,2109,{678:1,2046:1,3:1},_Vt),K(_n,"ArrayTable",678),H(2021,399,vI,iNt),E.Xb=function(i){return new G9e(this.a,i)},K(_n,"ArrayTable/1",2021),H(2022,1,{},YTt),E.td=function(i){return new G9e(this.a,i)},K(_n,"ArrayTable/1methodref$getCell$Type",2022),H(2110,1,{697:1}),E.Fb=function(i){var l;return i===this?!0:$e(i,479)?(l=v(i,697),Wp(Nv(this.c.e,this.b),Nv(l.c.e,l.b))&&Wp(Nv(this.c.c,this.a),Nv(l.c.c,l.a))&&Wp(Dk(this.c,this.b,this.a),Dk(l.c,l.b,l.a))):!1},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[Nv(this.c.e,this.b),Nv(this.c.c,this.a),Dk(this.c,this.b,this.a)]))},E.Ib=function(){return"("+Nv(this.c.e,this.b)+","+Nv(this.c.c,this.a)+")="+Dk(this.c,this.b,this.a)},K(_n,"Tables/AbstractCell",2110),H(479,2110,{479:1,697:1},G9e),E.a=0,E.b=0,E.d=0,K(_n,"ArrayTable/2",479),H(2024,1,{},jTt),E.td=function(i){return WBt(this.a,i)},K(_n,"ArrayTable/2methodref$getValue$Type",2024),H(2023,399,vI,aNt),E.Xb=function(i){return WBt(this.a,i)},K(_n,"ArrayTable/3",2023),H(2077,2065,tx),E.$b=function(){jX(this.kc())},E.vc=function(){return new o5t(this)},E.lc=function(){return new qLt(this.kc(),this.gc())},K(_n,"Maps/IteratorBasedAbstractMap",2077),H(842,2077,tx),E.$b=function(){throw _e(new ri)},E._b=function(i){return x7t(this.c,i)},E.kc=function(){return new sNt(this,this.c.b.c.gc())},E.lc=function(){return gde(this.c.b.c.gc(),16,new WTt(this))},E.xc=function(i){var l;return l=v(eD(this.c,i),17),l?this.vd(l.a):null},E.dc=function(){return this.c.b.c.dc()},E.ec=function(){return xde(this.c)},E.zc=function(i,l){var d;if(d=v(eD(this.c,i),17),!d)throw _e(new ar(this.ud()+" "+i+" not in "+xde(this.c)));return this.wd(d.a,l)},E.Bc=function(i){throw _e(new ri)},E.gc=function(){return this.c.b.c.gc()},K(_n,"ArrayTable/ArrayMap",842),H(2020,1,{},WTt),E.td=function(i){return hLt(this.a,i)},K(_n,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),H(2018,358,Spe,K7t),E.ld=function(){return por(this.a,this.b)},E.md=function(){return this.a.vd(this.b)},E.nd=function(i){return this.a.wd(this.b,i)},E.b=0,K(_n,"ArrayTable/ArrayMap/1",2018),H(2019,399,vI,sNt),E.Xb=function(i){return hLt(this.a,i)},K(_n,"ArrayTable/ArrayMap/2",2019),H(2017,842,tx,Z9t),E.ud=function(){return"Column"},E.vd=function(i){return Dk(this.b,this.a,i)},E.wd=function(i,l){return wUt(this.b,this.a,i,l)},E.a=0,K(_n,"ArrayTable/Row",2017),H(843,842,tx,O8e),E.vd=function(i){return new Z9t(this.a,i)},E.zc=function(i,l){return v(l,85),Lir()},E.wd=function(i,l){return v(l,85),Dir()},E.ud=function(){return"Row"},K(_n,"ArrayTable/RowMap",843),H(1157,1,Ld,X7t),E.Ad=function(i){return(this.a.yd()&-262&i)!=0},E.yd=function(){return this.a.yd()&-262},E.zd=function(){return this.a.zd()},E.Nb=function(i){this.a.Nb(new Z7t(i,this.b))},E.Bd=function(i){return this.a.Bd(new Q7t(i,this.b))},K(_n,"CollectSpliterators/1",1157),H(1158,1,vr,Q7t),E.Cd=function(i){this.a.Cd(this.b.Kb(i))},K(_n,"CollectSpliterators/1/lambda$0$Type",1158),H(1159,1,vr,Z7t),E.Cd=function(i){this.a.Cd(this.b.Kb(i))},K(_n,"CollectSpliterators/1/lambda$1$Type",1159),H(1154,1,Ld,wOt),E.Ad=function(i){return((16464|this.b)&i)!=0},E.yd=function(){return 16464|this.b},E.zd=function(){return this.a.zd()},E.Nb=function(i){this.a.Qe(new eRt(i,this.c))},E.Bd=function(i){return this.a.Re(new J7t(i,this.c))},E.b=0,K(_n,"CollectSpliterators/1WithCharacteristics",1154),H(1155,1,DG,J7t),E.Dd=function(i){this.a.Cd(this.b.td(i))},K(_n,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),H(1156,1,DG,eRt),E.Dd=function(i){this.a.Cd(this.b.td(i))},K(_n,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),H(1150,1,Ld),E.Ad=function(i){return(this.a&i)!=0},E.yd=function(){return this.a},E.zd=function(){return this.e&&(this.b=_8e(this.b,this.e.zd())),_8e(this.b,0)},E.Nb=function(i){this.e&&(this.e.Nb(i),this.e=null),this.c.Nb(new tRt(this,i)),this.b=0},E.Bd=function(i){for(;;){if(this.e&&this.e.Bd(i))return qL(this.b,MG)&&(this.b=zf(this.b,1)),!0;if(this.e=null,!this.c.Bd(new JTt(this)))return!1}},E.a=0,E.b=0,K(_n,"CollectSpliterators/FlatMapSpliterator",1150),H(1152,1,vr,JTt),E.Cd=function(i){dlr(this.a,i)},K(_n,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),H(1153,1,vr,tRt),E.Cd=function(i){Bdr(this.a,this.b,i)},K(_n,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),H(1151,1150,Ld,zMt),K(_n,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),H(253,1,Tpe),E.Fd=function(i){return this.Ed(v(i,253))},E.Ed=function(i){var l;return i==(Pue(),ube)?1:i==(Mue(),cbe)?-1:(l=(GX(),Oz(this.a,i.a)),l!=0?l:$e(this,526)==$e(i,526)?0:$e(this,526)?1:-1)},E.Id=function(){return this.a},E.Fb=function(i){return lDe(this,i)},K(_n,"Cut",253),H(1823,253,Tpe,$6t),E.Ed=function(i){return i==this?0:1},E.Gd=function(i){throw _e(new N7e)},E.Hd=function(i){i.a+="+∞)"},E.Id=function(){throw _e(new Tl(WKt))},E.Hb=function(){return Pm(),jLe(this)},E.Jd=function(i){return!1},E.Ib=function(){return"+∞"};var cbe;K(_n,"Cut/AboveAll",1823),H(526,253,{253:1,526:1,3:1,34:1},dNt),E.Gd=function(i){Kc((i.a+="(",i),this.a)},E.Hd=function(i){C_(Kc(i,this.a),93)},E.Hb=function(){return~ma(this.a)},E.Jd=function(i){return GX(),Oz(this.a,i)<0},E.Ib=function(){return"/"+this.a+"\\"},K(_n,"Cut/AboveValue",526),H(1822,253,Tpe,F6t),E.Ed=function(i){return i==this?0:-1},E.Gd=function(i){i.a+="(-∞"},E.Hd=function(i){throw _e(new N7e)},E.Id=function(){throw _e(new Tl(WKt))},E.Hb=function(){return Pm(),jLe(this)},E.Jd=function(i){return!0},E.Ib=function(){return"-∞"};var ube;K(_n,"Cut/BelowAll",1822),H(1824,253,Tpe,fNt),E.Gd=function(i){Kc((i.a+="[",i),this.a)},E.Hd=function(i){C_(Kc(i,this.a),41)},E.Hb=function(){return ma(this.a)},E.Jd=function(i){return GX(),Oz(this.a,i)<=0},E.Ib=function(){return"\\"+this.a+"/"},K(_n,"Cut/BelowValue",1824),H(547,1,jg),E.Jc=function(i){To(this,i)},E.Ib=function(){return Zyr(v(mQ(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},K(_n,"FluentIterable",547),H(442,547,jg,YL),E.Kc=function(){return new yr(_r(this.a.Kc(),new S))},K(_n,"FluentIterable/2",442),H(1059,547,jg,wIt),E.Kc=function(){return $g(this)},K(_n,"FluentIterable/3",1059),H(724,399,vI,L8e),E.Xb=function(i){return this.a[i].Kc()},K(_n,"FluentIterable/3/1",724),H(2070,1,{}),E.Ib=function(){return Kl(this.Kd().b)},K(_n,"ForwardingObject",2070),H(2071,2070,KKt),E.Kd=function(){return this.Ld()},E.Jc=function(i){To(this,i)},E.Lc=function(){return this.Oc()},E.Nc=function(){return new Nn(this,0)},E.Oc=function(){return new xn(null,this.Nc())},E.Fc=function(i){return this.Ld(),T7t()},E.Gc=function(i){return this.Ld(),C7t()},E.$b=function(){this.Ld(),A7t()},E.Hc=function(i){return this.Ld().Hc(i)},E.Ic=function(i){return this.Ld().Ic(i)},E.dc=function(){return this.Ld().b.dc()},E.Kc=function(){return this.Ld().Kc()},E.Mc=function(i){return this.Ld(),k7t()},E.gc=function(){return this.Ld().b.gc()},E.Pc=function(){return this.Ld().Pc()},E.Qc=function(i){return this.Ld().Qc(i)},K(_n,"ForwardingCollection",2071),H(2078,31,sBe),E.Kc=function(){return this.Od()},E.Fc=function(i){throw _e(new ri)},E.Gc=function(i){throw _e(new ri)},E.Md=function(){var i;return i=this.c,i||(this.c=this.Nd())},E.$b=function(){throw _e(new ri)},E.Hc=function(i){return i!=null&&f4(this,i,!1)},E.Nd=function(){switch(this.gc()){case 0:return CE(),CE(),hbe;case 1:return CE(),new mde(ni(this.Od().Pb()));default:return new dNe(this,this.Pc())}},E.Mc=function(i){throw _e(new ri)},K(_n,"ImmutableCollection",2078),H(727,2078,sBe,R7e),E.Kc=function(){return Mk(this.a.Kc())},E.Hc=function(i){return i!=null&&this.a.Hc(i)},E.Ic=function(i){return this.a.Ic(i)},E.dc=function(){return this.a.dc()},E.Od=function(){return Mk(this.a.Kc())},E.gc=function(){return this.a.gc()},E.Pc=function(){return this.a.Pc()},E.Qc=function(i){return this.a.Qc(i)},E.Ib=function(){return Kl(this.a)},K(_n,"ForwardingImmutableCollection",727),H(307,2078,_I),E.Kc=function(){return this.Od()},E.ed=function(){return this.Pd(0)},E.fd=function(i){return this.Pd(i)},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.kd=function(i,l){return this.Qd(i,l)},E.bd=function(i,l){throw _e(new ri)},E.cd=function(i,l){throw _e(new ri)},E.Md=function(){return this},E.Fb=function(i){return f3r(this,i)},E.Hb=function(){return obr(this)},E.dd=function(i){return i==null?-1:I_r(this,i)},E.Od=function(){return this.Pd(0)},E.Pd=function(i){return Whe(this,i)},E.gd=function(i){throw _e(new ri)},E.hd=function(i,l){throw _e(new ri)},E.Qd=function(i,l){var d;return AZ((d=new hRt(this),new Qb(d,i,l)))};var hbe;K(_n,"ImmutableList",307),H(2105,307,_I),E.Kc=function(){return Mk(this.Rd().Kc())},E.kd=function(i,l){return AZ(this.Rd().kd(i,l))},E.Hc=function(i){return i!=null&&this.Rd().Hc(i)},E.Ic=function(i){return this.Rd().Ic(i)},E.Fb=function(i){return Yi(this.Rd(),i)},E.Xb=function(i){return Nv(this,i)},E.Hb=function(){return ma(this.Rd())},E.dd=function(i){return this.Rd().dd(i)},E.dc=function(){return this.Rd().dc()},E.Od=function(){return Mk(this.Rd().Kc())},E.gc=function(){return this.Rd().gc()},E.Qd=function(i,l){return AZ(this.Rd().kd(i,l))},E.Pc=function(){return this.Rd().Qc(st(zs,Yn,1,this.Rd().gc(),5,1))},E.Qc=function(i){return this.Rd().Qc(i)},E.Ib=function(){return Kl(this.Rd())},K(_n,"ForwardingImmutableList",2105),H(729,1,wI),E.vc=function(){return x_(this)},E.wc=function(i){kD(this,i)},E.ec=function(){return xde(this)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.Cc=function(){return this.Vd()},E.$b=function(){throw _e(new ri)},E._b=function(i){return this.xc(i)!=null},E.uc=function(i){return this.Vd().Hc(i)},E.Td=function(){return new jkt(this)},E.Ud=function(){return new Wkt(this)},E.Fb=function(i){return Jbr(this,i)},E.Hb=function(){return x_(this).Hb()},E.dc=function(){return this.gc()==0},E.zc=function(i,l){return Oir()},E.Bc=function(i){throw _e(new ri)},E.Ib=function(){return Uxr(this)},E.Vd=function(){return this.e?this.e:this.e=this.Ud()},E.c=null,E.d=null,E.e=null;var _en;K(_n,"ImmutableMap",729),H(730,729,wI),E._b=function(i){return x7t(this,i)},E.uc=function(i){return bRt(this.b,i)},E.Sd=function(){return bzt(new QTt(this))},E.Td=function(){return bzt(LLt(this.b))},E.Ud=function(){return jp(),new R7e(OLt(this.b))},E.Fb=function(i){return yRt(this.b,i)},E.xc=function(i){return eD(this,i)},E.Hb=function(){return ma(this.b.c)},E.dc=function(){return this.b.c.dc()},E.gc=function(){return this.b.c.gc()},E.Ib=function(){return Kl(this.b.c)},K(_n,"ForwardingImmutableMap",730),H(2072,2071,Cpe),E.Kd=function(){return this.Wd()},E.Ld=function(){return this.Wd()},E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return i===this||this.Wd().Fb(i)},E.Hb=function(){return this.Wd().Hb()},K(_n,"ForwardingSet",2072),H(1085,2072,Cpe,QTt),E.Kd=function(){return h8(this.a.b)},E.Ld=function(){return h8(this.a.b)},E.Hc=function(i){if($e(i,44)&&v(i,44).ld()==null)return!1;try{return mRt(h8(this.a.b),i)}catch(l){if(l=Da(l),$e(l,212))return!1;throw _e(l)}},E.Wd=function(){return h8(this.a.b)},E.Qc=function(i){var l;return l=bDt(h8(this.a.b),i),h8(this.a.b).b.gc()<l.length&&Ga(l,h8(this.a.b).b.gc(),null),l},K(_n,"ForwardingImmutableMap/1",1085),H(2079,2078,Jk),E.Kc=function(){return this.Od()},E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return nMe(this,i)},E.Hb=function(){return M$t(this)},K(_n,"ImmutableSet",2079),H(719,2079,Jk),E.Kc=function(){return Mk(new LR(this.a.b.Kc()))},E.Hc=function(i){return i!=null&&mU(this.a,i)},E.Ic=function(i){return pRt(this.a,i)},E.Hb=function(){return ma(this.a.b)},E.dc=function(){return this.a.b.dc()},E.Od=function(){return Mk(new LR(this.a.b.Kc()))},E.gc=function(){return this.a.b.gc()},E.Pc=function(){return this.a.b.Pc()},E.Qc=function(i){return gRt(this.a,i)},E.Ib=function(){return Kl(this.a.b)},K(_n,"ForwardingImmutableSet",719),H(2073,2072,XKt),E.Kd=function(){return this.b},E.Ld=function(){return this.b},E.Wd=function(){return this.b},E.Nc=function(){return new KK(this)},K(_n,"ForwardingSortedSet",2073),H(543,2077,wI,QZ),E.Ac=function(i){AD(this,i)},E.Cc=function(){var i;return i=this.d,new zhe(i||(this.d=new mue(this)))},E.$b=function(){pz(this)},E._b=function(i){return!!TD(this,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))))},E.uc=function(i){return FFt(this,i)},E.kc=function(){return new oNt(this,this)},E.wc=function(i){NDt(this,i)},E.xc=function(i){return jT(this,i)},E.ec=function(){return new Ghe(this)},E.zc=function(i,l){return AJ(this,i,l)},E.Bc=function(i){var l;return l=TD(this,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))),l?(s5(this,l),l.e=null,l.c=null,l.i):null},E.gc=function(){return this.i},E.xd=function(){var i;return i=this.d,new zhe(i||(this.d=new mue(this)))},E.f=0,E.g=0,E.i=0,K(_n,"HashBiMap",543),H(544,1,io),E.Nb=function(i){xo(this,i)},E.Ob=function(){return HMt(this)},E.Pb=function(){var i;if(!HMt(this))throw _e(new ec);return i=v($f(this.c),303),this.c=i.c,this.f=i,--this.d,this.Xd(i)},E.Qb=function(){if(this.e.g!=this.b)throw _e(new Jd);if(!this.f)throw _e(new Tl(rBe));s5(this.e,this.f),this.b=this.e.g,this.f=null},E.b=0,E.d=0,E.f=null,K(_n,"HashBiMap/Itr",544),H(1023,544,io,oNt),E.Xd=function(i){return new nRt(this,i)},K(_n,"HashBiMap/1",1023),H(k0,358,Spe,nRt),E.ld=function(){return this.a.g},E.md=function(){return this.a.i},E.nd=function(i){var l,d,g;return d=this.a.i,g=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),g==this.a.f&&(Ze(i)===Ze(d)||i!=null&&Yi(i,d))?i:(yUt(!CD(this.b.a,i,g),i),s5(this.b.a,this.a),l=new uQ(this.a.g,this.a.a,i,g),pG(this.b.a,l,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=l),this.a=l,d)},K(_n,"HashBiMap/1/MapEntry",k0),H(246,358,{358:1,246:1,3:1,44:1},hE),E.ld=function(){return this.g},E.md=function(){return this.i},E.nd=function(i){throw _e(new ri)},K(_n,"ImmutableEntry",246),H(303,246,{358:1,303:1,246:1,3:1,44:1},uQ),E.a=0,E.f=0;var dbe=K(_n,"HashBiMap/BiEntry",303);H(619,2077,wI,mue),E.Ac=function(i){AD(this,i)},E.Cc=function(){return new Ghe(this.a)},E.$b=function(){pz(this.a)},E._b=function(i){return FFt(this.a,i)},E.kc=function(){return new lNt(this,this.a)},E.wc=function(i){ni(i),NDt(this.a,new e5t(i))},E.xc=function(i){return oZ(this,i)},E.ec=function(){return new zhe(this)},E.zc=function(i,l){return EAr(this.a,i,l)},E.Bc=function(i){var l;return l=CD(this.a,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))),l?(s5(this.a,l),l.e=null,l.c=null,l.g):null},E.gc=function(){return this.a.i},E.xd=function(){return new Ghe(this.a)},K(_n,"HashBiMap/Inverse",619),H(1020,544,io,lNt),E.Xd=function(i){return new rRt(this,i)},K(_n,"HashBiMap/Inverse/1",1020),H(1021,358,Spe,rRt),E.ld=function(){return this.a.i},E.md=function(){return this.a.g},E.nd=function(i){var l,d,g;return g=this.a.g,l=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),l==this.a.a&&(Ze(i)===Ze(g)||i!=null&&Yi(i,g))?i:(yUt(!TD(this.b.a.a,i,l),i),s5(this.b.a.a,this.a),d=new uQ(i,l,this.a.i,this.a.f),this.a=d,pG(this.b.a.a,d,null),this.b.b=this.b.a.a.g,g)},K(_n,"HashBiMap/Inverse/1/InverseEntry",1021),H(620,542,fh,zhe),E.Kc=function(){return new G6t(this.a.a)},E.Mc=function(i){var l;return l=CD(this.a.a,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))),l?(s5(this.a.a,l),!0):!1},K(_n,"HashBiMap/Inverse/InverseKeySet",620),H(1019,544,io,G6t),E.Xd=function(i){return i.i},K(_n,"HashBiMap/Inverse/InverseKeySet/1",1019),H(1022,1,{},e5t),E.Yd=function(i,l){uir(this.a,i,l)},K(_n,"HashBiMap/Inverse/lambda$0$Type",1022),H(618,542,fh,Ghe),E.Kc=function(){return new q6t(this.a)},E.Mc=function(i){var l;return l=TD(this.a,i,ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15)))),l?(s5(this.a,l),l.e=null,l.c=null,!0):!1},K(_n,"HashBiMap/KeySet",618),H(1018,544,io,q6t),E.Xd=function(i){return i.g},K(_n,"HashBiMap/KeySet/1",1018),H(1123,627,Y_),K(_n,"HashMultimapGwtSerializationDependencies",1123),H(271,1123,Y_,OE),E.hc=function(){return new PK(o4(this.a))},E.pd=function(){return new PK(o4(this.a))},E.a=2,K(_n,"HashMultimap",271),H(2097,307,_I),E.Hc=function(i){return this.Zd().Hc(i)},E.dc=function(){return this.Zd().dc()},E.gc=function(){return this.Zd().gc()},K(_n,"ImmutableAsList",2097),H(2030,730,wI),E.Vd=function(){return jp(),new ak(this.a)},E.Cc=function(){return jp(),new ak(this.a)},E.xd=function(){return jp(),new ak(this.a)},K(_n,"ImmutableBiMap",2030),H(2075,1,{}),K(_n,"ImmutableCollection/Builder",2075),H(1035,719,Jk,H6t),K(_n,"ImmutableEnumSet",1035),H(980,399,vI,vOt),E.Xb=function(i){return this.a.Xb(i)},K(_n,"ImmutableList/1",980),H(979,2075,{},lOt),K(_n,"ImmutableList/Builder",979),H(623,204,yI,bue),E.Ob=function(){return this.a.Ob()},E.Pb=function(){return v(this.a.Pb(),44).ld()},K(_n,"ImmutableMap/1",623),H(1054,1,{},_),E.Kb=function(i){return v(i,44).ld()},K(_n,"ImmutableMap/2methodref$getKey$Type",1054),H(1053,1,{},cOt),K(_n,"ImmutableMap/Builder",1053),H(2098,2079,Jk),E.Md=function(){var i;return i=this.b,i||(this.b=new Aue(this))},E.Nd=function(){return new dNe(this,YD(this,st(zs,Yn,1,this.gc(),5,1)))},K(_n,"ImmutableSet/CachingAsList",2098),H(2099,2098,Jk),E.Kc=function(){var i;return i=x_(this.a).Od(),new bue(i)},E.Nd=function(){return new Aue(this)},E.Jc=function(i){var l,d;for(ni(i),d=this.gc(),l=0;l<d;l++)i.Cd(v(x_(this.a).Md().Xb(l),44).ld())},E.Od=function(){var i;return i=this.b,Whe(i||(this.b=new Aue(this)),0)},E.Nc=function(){return gde(this.gc(),1296,new n5t(this))},K(_n,"IndexedImmutableSet",2099),H(1230,2099,Jk,jkt),E.Kc=function(){var i;return i=x_(this.a).Od(),new bue(i)},E.Hc=function(i){return this.a._b(i)},E.Jc=function(i){ni(i),kD(this.a,new t5t(i))},E.Od=function(){var i;return i=x_(this.a).Od(),new bue(i)},E.gc=function(){return this.a.gc()},E.Nc=function(){return WU(x_(this.a).Nc(),new _)},K(_n,"ImmutableMapKeySet",1230),H(1231,1,{},t5t),E.Yd=function(i,l){jp(),this.a.Cd(i)},K(_n,"ImmutableMapKeySet/lambda$0$Type",1231),H(1227,2078,sBe,Wkt),E.Kc=function(){return new fde(this)},E.Md=function(){var i;return i=x_(this.a).Md(),new LIt(this,i)},E.Hc=function(i){return i!=null&&Kwr(new fde(this),i)},E.Od=function(){return new fde(this)},E.gc=function(){return this.a.gc()},E.Nc=function(){return WU(x_(this.a).Nc(),new w)},K(_n,"ImmutableMapValues",1227),H(1228,1,{},w),E.Kb=function(i){return v(i,44).md()},K(_n,"ImmutableMapValues/0methodref$getValue$Type",1228),H(637,204,yI,fde),E.Ob=function(){return this.a.Ob()},E.Pb=function(){return v(this.a.Pb(),44).md()},K(_n,"ImmutableMapValues/1",637),H(1229,2097,_I,LIt),E.Zd=function(){return this.a},E.Xb=function(i){return v(this.b.Xb(i),44).md()},K(_n,"ImmutableMapValues/2",1229),H(1232,1,{},n5t),E.td=function(i){return fLt(this.a,i)},K(_n,"IndexedImmutableSet/0methodref$get$Type",1232),H(638,2097,_I,Aue),E.Zd=function(){return this.a},E.Xb=function(i){return fLt(this.a,i)},E.gc=function(){return this.a.a.gc()},K(_n,"IndexedImmutableSet/1",638),H(43,1,{},S),E.Kb=function(i){return v(i,20).Kc()},E.Fb=function(i){return this===i},K(_n,"Iterables/10",43),H(1055,547,jg,t9t),E.Jc=function(i){ni(i),this.b.Jc(new iRt(this.a,i))},E.Kc=function(){return g8e(this)},K(_n,"Iterables/4",1055),H(1056,1,vr,iRt),E.Cd=function(i){Oar(this.b,this.a,i)},K(_n,"Iterables/4/lambda$0$Type",1056),H(1057,547,jg,n9t),E.Jc=function(i){ni(i),To(this.a,new sRt(i,this.b))},E.Kc=function(){return _r(new mr(this.a),this.b)},K(_n,"Iterables/5",1057),H(1058,1,vr,sRt),E.Cd=function(i){this.a.Cd(EIt(i))},K(_n,"Iterables/5/lambda$0$Type",1058),H(1087,204,yI,r5t),E.Ob=function(){return this.a.Ob()},E.Pb=function(){return this.a.Pb()},K(_n,"Iterators/1",1087),H(1088,713,yI,aRt),E.Yb=function(){for(var i;this.b.Ob();)if(i=this.b.Pb(),this.a.Lb(i))return i;return this.e=2,null},K(_n,"Iterators/5",1088),H(497,1,io),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.b.Ob()},E.Pb=function(){return this.$d(this.b.Pb())},E.Qb=function(){this.b.Qb()},K(_n,"TransformedIterator",497),H(1089,497,io,cNt),E.$d=function(i){return this.a.Kb(i)},K(_n,"Iterators/6",1089),H(732,204,yI,e7e),E.Ob=function(){return!this.a},E.Pb=function(){if(this.a)throw _e(new ec);return this.a=!0,this.b},E.a=!1,K(_n,"Iterators/9",732),H(1086,399,vI,A9t),E.Xb=function(i){return this.a[this.b+i]},E.b=0;var wen;K(_n,"Iterators/ArrayItr",1086),H(38,1,{38:1,51:1},yr),E.Nb=function(i){xo(this,i)},E.Ob=function(){return zr(this)},E.Pb=function(){return Rr(this)},E.Qb=function(){if(!this.c)throw _e(new Tl(rBe));this.c.Qb(),this.c=null},K(_n,"Iterators/ConcatenatedIterator",38),H(22,1,{3:1,34:1,22:1}),E.Fd=function(i){return J6t(this,v(i,22))},E.Fb=function(i){return this===i},E.Hb=function(){return vE(this)},E.Ib=function(){return Xhe(this)},E.g=0;var jr=K(gc,"Enum",22);H(549,22,{549:1,3:1,34:1,22:1,51:1},HIt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return!1},E.Pb=function(){throw _e(new ec)},E.Qb=function(){n8(!1)};var fbe,Een=$r(_n,"Iterators/EmptyModifiableIterator",549,jr,Vhr,dor),xen;H(1907,627,Y_),K(_n,"LinkedHashMultimapGwtSerializationDependencies",1907),H(1908,1907,Y_,lzt),E.hc=function(){return new Yhe(o4(this.b))},E.$b=function(){sZ(this),lU(this.a,this.a)},E.pd=function(){return new Yhe(o4(this.b))},E.ic=function(i){return new HUt(this,i,this.b)},E.kc=function(){return new xNe(this)},E.lc=function(){var i;return new Nn((i=this.g,v(i||(this.g=new X7e(this)),21)),17)},E.ec=function(){var i;return i=this.i,i||(this.i=new $T(this,this.c))},E.nc=function(){return new Z7e(new xNe(this))},E.oc=function(){var i;return WU(new Nn((i=this.g,v(i||(this.g=new X7e(this)),21)),17),new C)},E.b=2,K(_n,"LinkedHashMultimap",1908),H(1911,1,{},C),E.Kb=function(i){return v(i,44).md()},K(_n,"LinkedHashMultimap/0methodref$getValue$Type",1911),H(834,1,io,xNe),E.Nb=function(i){xo(this,i)},E.Pb=function(){return ibr(this)},E.Ob=function(){return this.a!=this.b.a},E.Qb=function(){n8(!!this.c),SMt(this.b,this.c.g,this.c.i),this.c=null},K(_n,"LinkedHashMultimap/1",834),H(227,246,{358:1,246:1,227:1,604:1,3:1,44:1},NNe),E._d=function(){return v($f(this.f),604)},E.ae=function(i){this.c=i},E.be=function(i){this.f=i},E.d=0;var Sen=K(_n,"LinkedHashMultimap/ValueEntry",227);H(1909,2068,{604:1,20:1,31:1,16:1,21:1},HUt),E.Fc=function(i){var l,d,g,y,x;for(x=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),l=x&this.b.length-1,y=this.b[l],d=y;d;d=d.a)if(d.d==x&&Wp(d.i,i))return!1;return g=new NNe(this.c,i,x,y),n7t(this.d,g),g.f=this,this.d=g,lU(v($f(this.g.a.b),227),g),lU(g,this.g.a),this.b[l]=g,++this.f,++this.e,jwr(this),!0},E.$b=function(){var i,l;for(_U(this.b,null),this.f=0,i=this.a;i!=this;i=i._d())l=v(i,227),lU(v($f(l.b),227),v($f(l.e),227));this.a=this,this.d=this,++this.e},E.Hc=function(i){var l,d;for(d=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),l=this.b[d&this.b.length-1];l;l=l.a)if(l.d==d&&Wp(l.i,i))return!0;return!1},E.Jc=function(i){var l;for(ni(i),l=this.a;l!=this;l=l._d())i.Cd(v(l,227).i)},E._d=function(){return this.a},E.Kc=function(){return new vLt(this)},E.Mc=function(i){return TYt(this,i)},E.ae=function(i){this.d=i},E.be=function(i){this.a=i},E.gc=function(){return this.f},E.e=0,E.f=0,K(_n,"LinkedHashMultimap/ValueSet",1909),H(1910,1,io,vLt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return jIe(this),this.b!=this.c},E.Pb=function(){var i,l;if(jIe(this),this.b==this.c)throw _e(new ec);return i=v(this.b,227),l=i.i,this.d=i,this.b=v($f(i.f),604),l},E.Qb=function(){jIe(this),n8(!!this.d),TYt(this.c,this.d.i),this.a=this.c.e,this.d=null},E.a=0,K(_n,"LinkedHashMultimap/ValueSet/1",1910),H(780,2084,Y_,oIt),E.Zb=function(){var i;return i=this.f,i||(this.f=new IRe(this))},E.Fb=function(i){return f0e(this,i)},E.cc=function(i){return new Kue(this,i)},E.fc=function(i){return MOe(this,i)},E.$b=function(){tLt(this)},E._b=function(i){return fRt(this,i)},E.ac=function(){return new IRe(this)},E.bc=function(){return new a5t(this)},E.qc=function(i){return new Kue(this,i)},E.dc=function(){return!this.a},E.rc=function(i){return MOe(this,i)},E.gc=function(){return this.d},E.c=0,E.d=0,K(_n,"LinkedListMultimap",780),H(56,31,EI),E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.bd=function(i,l){throw _e(new zb("Add not supported on this list"))},E.Fc=function(i){return this.bd(this.gc(),i),!0},E.cd=function(i,l){var d,g,y;for(hr(l),d=!1,y=l.Kc();y.Ob();)g=y.Pb(),this.bd(i++,g),d=!0;return d},E.$b=function(){this.ce(0,this.gc())},E.Fb=function(i){return FMe(this,i)},E.Hb=function(){return j9e(this)},E.dd=function(i){return d$t(this,i)},E.Kc=function(){return new hL(this)},E.ed=function(){return this.fd(0)},E.fd=function(i){return new go(this,i)},E.gd=function(i){throw _e(new zb("Remove not supported on this list"))},E.ce=function(i,l){var d,g;for(g=this.fd(i),d=i;d<l;++d)g.Pb(),g.Qb()},E.hd=function(i,l){throw _e(new zb("Set not supported on this list"))},E.kd=function(i,l){return new Qb(this,i,l)},E.j=0,K(Dr,"AbstractList",56),H(2062,56,EI),E.bd=function(i,l){JR(this,i,l)},E.cd=function(i,l){return VUt(this,i,l)},E.Xb=function(i){return gf(this,i)},E.Kc=function(){return this.fd(0)},E.gd=function(i){return d1e(this,i)},E.hd=function(i,l){var d,g;d=this.fd(i);try{return g=d.Pb(),d.Wb(l),g}catch(y){throw y=Da(y),$e(y,112)?_e(new Sl("Can't set element "+i)):_e(y)}},K(Dr,"AbstractSequentialList",2062),H(646,2062,EI,Kue),E.fd=function(i){return hNt(this,i)},E.gc=function(){var i;return i=v(br(this.a.b,this.b),260),i?i.a:0},K(_n,"LinkedListMultimap/1",646),H(1316,2068,fh,a5t),E.Hc=function(i){return fRt(this.a,i)},E.Kc=function(){return new I$t(this.a)},E.Mc=function(i){return!MOe(this.a,i).a.dc()},E.gc=function(){return SL(this.a.b)},K(_n,"LinkedListMultimap/1KeySetImpl",1316),H(1315,1,io,I$t),E.Nb=function(i){xo(this,i)},E.Ob=function(){return WIe(this),!!this.c},E.Pb=function(){if(WIe(this),!this.c)throw _e(new ec);this.a=this.c,Es(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!Es(this.d,this.c.a));return this.a.a},E.Qb=function(){WIe(this),n8(!!this.a),jX(new Nfe(this.e,this.a.a)),this.a=null,this.b=this.e.c},E.b=0,K(_n,"LinkedListMultimap/DistinctKeyIterator",1315),H(260,1,{260:1},zNe),E.a=0,K(_n,"LinkedListMultimap/KeyList",260),H(511,358,{358:1,511:1,44:1},oRt),E.ld=function(){return this.a},E.md=function(){return this.f},E.nd=function(i){var l;return l=this.f,this.f=i,l},K(_n,"LinkedListMultimap/Node",511),H(566,1,Yg,Nfe,PHt),E.Nb=function(i){xo(this,i)},E.Rb=function(i){this.e=yPe(this.f,this.b,i,this.c),++this.d,this.a=null},E.Ob=function(){return!!this.c},E.Sb=function(){return!!this.e},E.Pb=function(){return QOe(this)},E.Tb=function(){return this.d},E.Ub=function(){return yFt(this)},E.Vb=function(){return this.d-1},E.Qb=function(){n8(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,uTr(this.f,this.a),this.a=null},E.Wb=function(i){I8e(!!this.a),this.a.f=i},E.d=0,K(_n,"LinkedListMultimap/ValueForKeyIterator",566),H(1031,56,EI),E.bd=function(i,l){this.a.bd(i,l)},E.cd=function(i,l){return this.a.cd(i,l)},E.Hc=function(i){return this.a.Hc(i)},E.Xb=function(i){return this.a.Xb(i)},E.gd=function(i){return this.a.gd(i)},E.hd=function(i,l){return this.a.hd(i,l)},E.gc=function(){return this.a.gc()},K(_n,"Lists/AbstractListWrapper",1031),H(1032,1031,ZKt),K(_n,"Lists/RandomAccessListWrapper",1032),H(1034,1032,ZKt,hRt),E.fd=function(i){return this.a.fd(i)},K(_n,"Lists/1",1034),H(441,56,{441:1,20:1,31:1,56:1,16:1,15:1},_Re),E.bd=function(i,l){this.a.bd(o8(this,i),l)},E.$b=function(){this.a.$b()},E.Xb=function(i){return this.a.Xb(ENe(this,i))},E.Kc=function(){return rMt(this,0)},E.fd=function(i){return rMt(this,i)},E.gd=function(i){return this.a.gd(ENe(this,i))},E.ce=function(i,l){(LMt(i,l,this.a.gc()),ff(this.a.kd(o8(this,l),o8(this,i)))).$b()},E.hd=function(i,l){return this.a.hd(ENe(this,i),l)},E.gc=function(){return this.a.gc()},E.kd=function(i,l){return LMt(i,l,this.a.gc()),ff(this.a.kd(o8(this,l),o8(this,i)))},K(_n,"Lists/ReverseList",441),H(1030,441,{441:1,20:1,31:1,56:1,16:1,15:1,59:1},V6t),K(_n,"Lists/RandomAccessReverseList",1030),H(1033,1,Yg,lRt),E.Nb=function(i){xo(this,i)},E.Rb=function(i){this.c.Rb(i),this.c.Ub(),this.a=!1},E.Ob=function(){return this.c.Sb()},E.Sb=function(){return this.c.Ob()},E.Pb=function(){if(!this.c.Sb())throw _e(new ec);return this.a=!0,this.c.Ub()},E.Tb=function(){return o8(this.b,this.c.Tb())},E.Ub=function(){if(!this.c.Ob())throw _e(new ec);return this.a=!0,this.c.Pb()},E.Vb=function(){return o8(this.b,this.c.Tb())-1},E.Qb=function(){n8(this.a),this.c.Qb(),this.a=!1},E.Wb=function(i){I8e(this.a),this.c.Wb(i)},E.a=!1,K(_n,"Lists/ReverseList/1",1033),H(440,497,io,vL),E.$d=function(i){return WK(i)},K(_n,"Maps/1",440),H(712,497,io,Z7e),E.$d=function(i){return v(i,44).md()},K(_n,"Maps/2",712),H(975,497,io,uNt),E.$d=function(i){return new hE(i,gIt(this.a,i))},K(_n,"Maps/3",975),H(972,2069,fh,o5t),E.Jc=function(i){gir(this.a,i)},E.Kc=function(){return this.a.kc()},E.Rc=function(){return this.a},E.Nc=function(){return this.a.lc()},K(_n,"Maps/IteratorBasedAbstractMap/1",972),H(973,1,{},l5t),E.Yd=function(i,l){this.a.Cd(i)},K(_n,"Maps/KeySet/lambda$0$Type",973),H(971,31,A4,dRt),E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a.uc(i)},E.Jc=function(i){ni(i),this.a.wc(new s5t(i))},E.dc=function(){return this.a.dc()},E.Kc=function(){return new Z7e(this.a.vc().Kc())},E.Mc=function(i){var l,d;try{return f4(this,i,!0)}catch(g){if(g=Da(g),$e(g,48)){for(d=this.a.vc().Kc();d.Ob();)if(l=v(d.Pb(),44),Wp(i,l.md()))return this.a.Bc(l.ld()),!0;return!1}else throw _e(g)}},E.gc=function(){return this.a.gc()},K(_n,"Maps/Values",971),H(974,1,{},s5t),E.Yd=function(i,l){this.a.Cd(l)},K(_n,"Maps/Values/lambda$0$Type",974),H(752,2085,tx,IRe),E.xc=function(i){return this.a._b(i)?this.a.cc(i):null},E.Bc=function(i){return this.a._b(i)?this.a.fc(i):null},E.$b=function(){this.a.$b()},E._b=function(i){return this.a._b(i)},E.Ec=function(){return new c5t(this)},E.Dc=function(){return this.Ec()},E.dc=function(){return this.a.dc()},E.ec=function(){return this.a.ec()},E.gc=function(){return this.a.ec().gc()},K(_n,"Multimaps/AsMap",752),H(1134,2069,fh,c5t),E.Kc=function(){return Msr(this.a.a.ec(),new u5t(this))},E.Rc=function(){return this.a},E.Mc=function(i){var l;return Kzt(this,i)?(l=v($f(v(i,44)),44),Sir(this.a,l.ld()),!0):!1},K(_n,"Multimaps/AsMap/EntrySet",1134),H(1138,1,{},u5t),E.Kb=function(i){return gIt(this,i)},E.Fb=function(i){return this===i},K(_n,"Multimaps/AsMap/EntrySet/1",1138),H(552,2087,{552:1,849:1,20:1,31:1,16:1},h5t),E.$b=function(){sZ(this.a)},E.Hc=function(i){return E7t(this.a,i)},E.Jc=function(i){ni(i),To(uD(this.a),new f5t(i))},E.Kc=function(){return new vL(uD(this.a).a.kc())},E.gc=function(){return this.a.d},E.Nc=function(){return WU(uD(this.a).Nc(),new A)},K(_n,"Multimaps/Keys",552),H(1136,1,{},A),E.Kb=function(i){return v(i,44).ld()},K(_n,"Multimaps/Keys/0methodref$getKey$Type",1136),H(1135,497,io,Y6t),E.$d=function(i){return new d5t(v(i,44))},K(_n,"Multimaps/Keys/1",1135),H(2088,1,{425:1}),E.Fb=function(i){var l;return $e(i,504)?(l=v(i,425),v(this.a.md(),16).gc()==v(l.a.md(),16).gc()&&Wp(this.a.ld(),l.a.ld())):!1},E.Hb=function(){var i;return i=this.a.ld(),(i==null?0:ma(i))^v(this.a.md(),16).gc()},E.Ib=function(){var i,l;return l=XL(this.a.ld()),i=v(this.a.md(),16).gc(),i==1?l:l+" x "+i},K(_n,"Multisets/AbstractEntry",2088),H(504,2088,{504:1,425:1},d5t),K(_n,"Multimaps/Keys/1/1",504),H(1137,1,vr,f5t),E.Cd=function(i){this.a.Cd(v(i,44).ld())},K(_n,"Multimaps/Keys/lambda$1$Type",1137),H(1140,1,vr,k),E.Cd=function(i){ahr(v(i,425))},K(_n,"Multiset/lambda$0$Type",1140),H(753,1,vr,p5t),E.Cd=function(i){Hgr(this.a,v(i,425))},K(_n,"Multiset/lambda$1$Type",753),H(1141,1,{},I),K(_n,"Multisets/0methodref$add$Type",1141),H(754,1,{},N),E.Kb=function(i){return f1r(v(i,425))},K(_n,"Multisets/lambda$1$Type",754),H(2106,1,OG),K(_n,"RangeGwtSerializationDependencies",2106),H(521,2106,{178:1,521:1,3:1,46:1},JLe),E.Lb=function(i){return z9t(this,v(i,34))},E.Mb=function(i){return z9t(this,v(i,34))},E.Fb=function(i){var l;return $e(i,521)?(l=v(i,521),lDe(this.a,l.a)&&lDe(this.b,l.b)):!1},E.Hb=function(){return this.a.Hb()*31+this.b.Hb()},E.Ib=function(){return aPt(this.a,this.b)},K(_n,"Range",521),H(654,2097,_I,dNe),E.fd=function(i){return Whe(this.b,i)},E.Zd=function(){return this.a},E.Xb=function(i){return Nv(this.b,i)},E.Pd=function(i){return Whe(this.b,i)},K(_n,"RegularImmutableAsList",654),H(656,2105,_I,Qde),E.Rd=function(){return this.a},K(_n,"RegularImmutableList",656),H(548,730,wI,J7e,eRe),K(_n,"RegularImmutableMap",548),H(731,719,Jk,ARe);var KUe;K(_n,"RegularImmutableSet",731),H(2074,J1,fh),E.Kc=function(){return new DNe(this.a,this.b)},E.Fc=function(i){throw _e(new ri)},E.Gc=function(i){throw _e(new ri)},E.$b=function(){throw _e(new ri)},E.Mc=function(i){throw _e(new ri)},K(_n,"Sets/SetView",2074),H(976,2074,fh,uRt),E.Kc=function(){return new DNe(this.a,this.b)},E.Hc=function(i){return yde(this.a,i)&&this.b.Hc(i)},E.Ic=function(i){return Bz(this.a,i)&&this.b.Ic(i)},E.dc=function(){return LGt(this.b,this.a)},E.Lc=function(){return Ki(new xn(null,new Nn(this.a,1)),new m5t(this.b))},E.gc=function(){return Dz(this)},E.Oc=function(){return Ki(new xn(null,new Nn(this.a,1)),new g5t(this.b))},K(_n,"Sets/2",976),H(977,1,si,g5t),E.Mb=function(i){return this.a.Hc(i)},K(_n,"Sets/2/0methodref$contains$Type",977),H(714,713,yI,DNe),E.Yb=function(){for(var i;v8e(this.a);)if(i=vD(this.a),this.c.Hc(i))return i;return this.e=2,null},K(_n,"Sets/2/1",714),H(978,1,si,m5t),E.Mb=function(i){return this.a.Hc(i)},K(_n,"Sets/2/1methodref$contains$Type",978),H(616,2073,{616:1,3:1,20:1,16:1,277:1,21:1,87:1},xDt),E.Kd=function(){return this.b},E.Ld=function(){return this.b},E.Wd=function(){return this.b},E.Jc=function(i){this.a.Jc(i)},E.Lc=function(){return this.a.Lc()},E.Oc=function(){return this.a.Oc()},K(_n,"Sets/UnmodifiableNavigableSet",616),H(2031,2030,wI,ALt),E.Vd=function(){return jp(),new ak(this.a)},E.Cc=function(){return jp(),new ak(this.a)},E.xd=function(){return jp(),new ak(this.a)},K(_n,"SingletonImmutableBiMap",2031),H(657,2105,_I,mde),E.Rd=function(){return this.a},K(_n,"SingletonImmutableList",657),H(363,2079,Jk,ak),E.Kc=function(){return new e7e(this.a)},E.Hc=function(i){return Yi(this.a,i)},E.Od=function(){return new e7e(this.a)},E.gc=function(){return 1},K(_n,"SingletonImmutableSet",363),H(1148,1,{},L),E.Kb=function(i){return v(i,159)},K(_n,"Streams/lambda$0$Type",1148),H(1149,1,UJ,b5t),E.de=function(){Epr(this.a)},K(_n,"Streams/lambda$1$Type",1149),H(1725,1724,Y_,oDt),E.Zb=function(){var i;return i=this.f,v(v(i||(this.f=$e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c)),133),139)},E.hc=function(){return new Vb(this.b)},E.pd=function(){return new Vb(this.b)},E.ec=function(){var i;return i=this.i,v(v(i||(this.i=$e(this.c,139)?new YR(this,v(this.c,139)):$e(this.c,133)?new gU(this,v(this.c,133)):new $T(this,this.c)),87),277)},E.ac=function(){return $e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c)},E.ic=function(i){return i==null&&this.a.Ne(i,i),new Vb(this.b)},K(_n,"TreeMultimap",1725),H(82,1,{3:1,82:1}),E.ee=function(i){return new Error(i)},E.fe=function(){return this.e},E.ge=function(){var i,l,d;for(d=(this.k==null&&(this.k=st(pbe,kt,82,0,0,1)),this.k),l=st(zs,Yn,1,d.length,5,1),i=0;i<d.length;i++)l[i]=d[i].e;return l},E.he=function(){return this.f},E.ie=function(){return this.g},E.je=function(){_ir(this,n1r(this.ee(_Q(this,this.g)))),Kkt(this)},E.Ib=function(){return _Q(this,this.ie())},E.e=JKt,E.i=!1,E.n=!0;var pbe=K(gc,"Throwable",82);H(103,82,{3:1,103:1,82:1}),K(gc,"Exception",103),H(63,103,nb,y_,tc),K(gc,"RuntimeException",63),H(607,63,nb),K(gc,"JsException",607),H(875,607,nb),K(BG,"JavaScriptExceptionBase",875),H(486,875,{486:1,3:1,103:1,63:1,82:1},ozt),E.ie=function(){return bEr(this),this.c},E.ke=function(){return Ze(this.b)===Ze(XUe)?null:this.b};var XUe;K(lBe,"JavaScriptException",486);var Ten=K(lBe,"JavaScriptObject$",0),gbe;H(2047,1,{}),K(lBe,"Scheduler",2047);var Kee=0,Cen=0,Xee=-1;H(902,2047,{},P);var QUe;K(BG,"SchedulerImpl",902);var mbe;H(2058,1,{}),K(BG,"StackTraceCreator/Collector",2058),H(876,2058,{},M),E.le=function(i){var l={},d=[];i[Rpe]=d;for(var g=arguments.callee.caller;g;){var y=(p8(),g.name||(g.name=rmr(g.toString())));d.push(y);var x=":"+y,T=l[x];if(T){var R,O;for(R=0,O=T.length;R<O;R++)if(T[R]===g)return}(T||(l[x]=[])).push(g),g=g.caller}},E.me=function(i){var l,d,g,y;for(g=(p8(),i&&i[Rpe]?i[Rpe]:[]),d=g.length,y=st(hze,kt,319,d,0,1),l=0;l<d;l++)y[l]=new qde(g[l],null,-1);return y},K(BG,"StackTraceCreator/CollectorLegacy",876),H(2059,2058,{}),E.le=function(i){},E.ne=function(i,l,d,g){return new qde(l,i+"@"+g,d<0?-1:d)},E.me=function(i){var l,d,g,y,x,T;if(y=H_r(i),x=st(hze,kt,319,0,0,1),l=0,g=y.length,g==0)return x;for(T=rKt(this,y[0]),An(T.d,kpe)||(x[l++]=T),d=1;d<g;d++)x[l++]=rKt(this,y[d]);return x},K(BG,"StackTraceCreator/CollectorModern",2059),H(877,2059,{},F),E.ne=function(i,l,d,g){return new qde(l,i,-1)},K(BG,"StackTraceCreator/CollectorModernNoSourceMap",877),H(1064,1,{}),K(uBe,nXt,1064),H(624,1064,{624:1},dLt);var ZUe;K(Wpe,nXt,624),H(2101,1,{}),K(uBe,rXt,2101),H(2102,2101,{}),K(Wpe,rXt,2102),H(1120,1,{},U);var jM;K(Wpe,"LocaleInfo",1120),H(2027,1,{},$),E.a=0,K(Wpe,"TimeZone",2027),H(1293,2102,{},G),K("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1293),H(443,1,{443:1},HOt),E.a=!1,E.b=0,K(uBe,"DateTimeFormat/PatternPart",443),H(206,1,iXt,UK,q9e,Z8e),E.Fd=function(i){return Q0r(this,v(i,206))},E.Fb=function(i){return $e(i,206)&&gE(xc(this.q.getTime()),xc(v(i,206).q.getTime()))},E.Hb=function(){var i;return i=xc(this.q.getTime()),ti(ofe(i,Dv(i,32)))},E.Ib=function(){var i,l,d;return d=-this.q.getTimezoneOffset(),i=(d>=0?"+":"")+(d/60|0),l=wX(u.Math.abs(d)%60),(sHt(),$en)[this.q.getDay()]+" "+Uen[this.q.getMonth()]+" "+wX(this.q.getDate())+" "+wX(this.q.getHours())+":"+wX(this.q.getMinutes())+":"+wX(this.q.getSeconds())+" GMT"+i+l+" "+this.q.getFullYear()};var Qee=K(Dr,"Date",206);H(2015,206,iXt,Rqt),E.a=!1,E.b=0,E.c=0,E.d=0,E.e=0,E.f=0,E.g=!1,E.i=0,E.j=0,E.k=0,E.n=0,E.o=0,E.p=0,K("com.google.gwt.i18n.shared.impl","DateRecord",2015),H(2064,1,{}),E.pe=function(){return null},E.qe=function(){return null},E.re=function(){return null},E.se=function(){return null},E.te=function(){return null},K(t6,"JSONValue",2064),H(221,2064,{221:1},p_,t7e),E.Fb=function(i){return $e(i,221)?JNe(this.a,v(i,221).a):!1},E.oe=function(){return rir},E.Hb=function(){return GNe(this.a)},E.pe=function(){return this},E.Ib=function(){var i,l,d;for(d=new Ed("["),l=0,i=this.a.length;l<i;l++)l>0&&(d.a+=","),Kc(d,s4(this,l));return d.a+="]",d.a},K(t6,"JSONArray",221),H(493,2064,{493:1},n7e),E.oe=function(){return iir},E.qe=function(){return this},E.Ib=function(){return Qn(),""+this.a},E.a=!1;var Aen,ken;K(t6,"JSONBoolean",493),H(997,63,nb,j6t),K(t6,"JSONException",997),H(1036,2064,{},B),E.oe=function(){return air},E.Ib=function(){return Ku};var Ren;K(t6,"JSONNull",1036),H(263,2064,{263:1},bK),E.Fb=function(i){return $e(i,263)?this.a==v(i,263).a:!1},E.oe=function(){return tir},E.Hb=function(){return dk(this.a)},E.re=function(){return this},E.Ib=function(){return this.a+""},E.a=0,K(t6,"JSONNumber",263),H(190,2064,{190:1},nk,iU),E.Fb=function(i){return $e(i,190)?JNe(this.a,v(i,190).a):!1},E.oe=function(){return nir},E.Hb=function(){return GNe(this.a)},E.se=function(){return this},E.Ib=function(){var i,l,d,g,y,x,T;for(T=new Ed("{"),i=!0,x=Xfe(this,st(Xt,kt,2,0,6,1)),d=x,g=0,y=d.length;g<y;++g)l=d[g],i?i=!1:T.a+=Xo,bi(T,wVt(l)),T.a+=":",Kc(T,Um(this,l));return T.a+="}",T.a},K(t6,"JSONObject",190),H(605,J1,fh,Xue),E.Hc=function(i){return ro(i)&&Fir(this.a,ai(i))},E.Kc=function(){return new hL(new wh(this.b))},E.gc=function(){return this.b.length},K(t6,"JSONObject/1",605);var bbe;H(211,2064,{211:1},JS),E.Fb=function(i){return $e(i,211)?An(this.a,v(i,211).a):!1},E.oe=function(){return eir},E.Hb=function(){return ry(this.a)},E.te=function(){return this},E.Ib=function(){return wVt(this.a)},K(t6,"JSONString",211);var i2,JUe,Ien,eze,tze;H(2060,1,{533:1}),K(hBe,"OutputStream",2060),H(2061,2060,{533:1}),K(hBe,"FilterOutputStream",2061),H(878,2061,{533:1},Y),K(hBe,"PrintStream",878),H(427,1,{484:1}),E.Ib=function(){return this.a},K(gc,"AbstractStringBuilder",427),H(538,63,nb,NK),K(gc,"ArithmeticException",538),H(77,63,Kpe,O7e,Sl),K(gc,"IndexOutOfBoundsException",77),H(333,77,{3:1,333:1,103:1,77:1,63:1,82:1},z7e,sRe),K(gc,"ArrayIndexOutOfBoundsException",333),H(537,63,nb,kue,e7t),K(gc,"ArrayStoreException",537),H(296,82,aXt,zue),K(gc,"Error",296),H(200,296,aXt,N7e,SOe),K(gc,"AssertionError",200),ben={3:1,485:1,34:1};var a2,HI,rs=K(gc,"Boolean",485);H(242,1,{3:1,242:1});var nze;K(gc,"Number",242),H(222,242,{3:1,222:1,34:1,242:1},E5t),E.Fd=function(i){return Mir(this,v(i,222))},E.ue=function(){return this.a},E.Fb=function(i){return $e(i,222)&&v(i,222).a==this.a},E.Hb=function(){return this.a},E.Ib=function(){return""+this.a},E.a=0;var d6=K(gc,"Byte",222),rze;H(180,1,{3:1,180:1,34:1},h7e),E.Fd=function(i){return Pir(this,v(i,180))},E.Fb=function(i){return $e(i,180)&&v(i,180).a==this.a},E.Hb=function(){return this.a},E.Ib=function(){return String.fromCharCode(this.a)},E.a=0;var ize,WM=K(gc,"Character",180),aze;H(212,63,{3:1,212:1,103:1,63:1,82:1},Xkt,UR),K(gc,"ClassCastException",212),yen={3:1,34:1,345:1,242:1};var ws=K(gc,"Double",345);H(161,242,{3:1,34:1,161:1,242:1},sU,L7e),E.Fd=function(i){return Qar(this,v(i,161))},E.ue=function(){return this.a},E.Fb=function(i){return $e(i,161)&&mOt(this.a,v(i,161).a)},E.Hb=function(){return Ps(this.a)},E.Ib=function(){return""+this.a},E.a=0;var VI=K(gc,"Float",161);H(33,63,{3:1,103:1,33:1,63:1,82:1},cU,ar,XUt),K(gc,"IllegalArgumentException",33),H(73,63,nb,ih,Tl),K(gc,"IllegalStateException",73),H(17,242,{3:1,34:1,17:1,242:1},l7e),E.Fd=function(i){return h8e(this,v(i,17))},E.ue=function(){return this.a},E.Fb=function(i){return $e(i,17)&&v(i,17).a==this.a},E.Hb=function(){return this.a},E.Ib=function(){return""+this.a},E.a=0;var Ao=K(gc,"Integer",17),sze,Nen;H(168,242,{3:1,34:1,168:1,242:1},c7e),E.Fd=function(i){return Xar(this,v(i,168))},E.ue=function(){return N_(this.a)},E.Fb=function(i){return $e(i,168)&&gE(v(i,168).a,this.a)},E.Hb=function(){return Xor(this.a)},E.Ib=function(){return""+sD(this.a)},E.a=0;var ux=K(gc,"Long",168),oze;H(2140,1,{}),H(1904,63,nb,t7t),K(gc,"NegativeArraySizeException",1904),H(169,607,{3:1,103:1,169:1,63:1,82:1},ZA,rk),E.ee=function(i){return new TypeError(i)},K(gc,"NullPointerException",169);var lze,ybe,Oen,cze;H(130,33,{3:1,103:1,33:1,130:1,63:1,82:1},Gp),K(gc,"NumberFormatException",130),H(191,242,{3:1,34:1,242:1,191:1},u7e),E.Fd=function(i){return Bir(this,v(i,191))},E.ue=function(){return this.a},E.Fb=function(i){return $e(i,191)&&v(i,191).a==this.a},E.Hb=function(){return this.a},E.Ib=function(){return""+this.a},E.a=0;var hx=K(gc,"Short",191),uze;H(319,1,{3:1,319:1},qde),E.Fb=function(i){var l;return $e(i,319)?(l=v(i,319),this.c==l.c&&this.d==l.d&&this.a==l.a&&this.b==l.b):!1},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[Nt(this.c),this.a,this.d,this.b]))},E.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},E.c=0;var hze=K(gc,"StackTraceElement",319);ven={3:1,484:1,34:1,2:1};var Xt=K(gc,oBe,2);H(111,427,{484:1},qb,EL,Ff),K(gc,"StringBuffer",111),H(104,427,{484:1},Cv,sk,Ed),K(gc,"StringBuilder",104),H(702,77,Kpe,aRe),K(gc,"StringIndexOutOfBoundsException",702),H(2145,1,{});var Len;H(48,63,{3:1,103:1,63:1,82:1,48:1},ri,zb),K(gc,"UnsupportedOperationException",48),H(247,242,{3:1,34:1,242:1,247:1},Wz,mRe),E.Fd=function(i){return Jjt(this,v(i,247))},E.ue=function(){return y4(AWt(this))},E.Fb=function(i){var l;return this===i?!0:$e(i,247)?(l=v(i,247),this.e==l.e&&Jjt(this,l)==0):!1},E.Hb=function(){var i;return this.b!=0?this.b:this.a<54?(i=xc(this.f),this.b=ti(Us(i,-1)),this.b=33*this.b+ti(Us(xE(i,32),-1)),this.b=17*this.b+Ps(this.e),this.b):(this.b=17*dzt(this.c)+Ps(this.e),this.b)},E.Ib=function(){return AWt(this)},E.a=0,E.b=0,E.d=0,E.e=0,E.f=0;var Den,iw,dze,fze,pze,gze,mze,bze,vbe=K("java.math","BigDecimal",247);H(92,242,{3:1,34:1,242:1,92:1},qm,iMt,T_,fGt,Ov),E.Fd=function(i){return cGt(this,v(i,92))},E.ue=function(){return y4(wpe(this,0))},E.Fb=function(i){return ILe(this,i)},E.Hb=function(){return dzt(this)},E.Ib=function(){return wpe(this,0)},E.b=-2,E.c=0,E.d=0,E.e=0;var Men,Zee,Pen,_be,Jee,KM,T5=K("java.math","BigInteger",92),Ben,Fen,f6,XM;H(498,2065,tx),E.$b=function(){xh(this)},E._b=function(i){return Tu(this,i)},E.uc=function(i){return jUt(this,i,this.i)||jUt(this,i,this.f)},E.vc=function(){return new b_(this)},E.xc=function(i){return br(this,i)},E.zc=function(i,l){return Ni(this,i,l)},E.Bc=function(i){return Lk(this,i)},E.gc=function(){return SL(this)},E.g=0,K(Dr,"AbstractHashMap",498),H(267,J1,fh,b_),E.$b=function(){this.a.$b()},E.Hc=function(i){return DMt(this,i)},E.Kc=function(){return new P_(this.a)},E.Mc=function(i){var l;return DMt(this,i)?(l=v(i,44).ld(),this.a.Bc(l),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractHashMap/EntrySet",267),H(268,1,io,P_),E.Nb=function(i){xo(this,i)},E.Pb=function(){return zE(this)},E.Ob=function(){return this.b},E.Qb=function(){cFt(this)},E.b=!1,E.d=0,K(Dr,"AbstractHashMap/EntrySetIterator",268),H(426,1,io,hL),E.Nb=function(i){xo(this,i)},E.Ob=function(){return ehe(this)},E.Pb=function(){return BNe(this)},E.Qb=function(){ld(this)},E.b=0,E.c=-1,K(Dr,"AbstractList/IteratorImpl",426),H(98,426,Yg,go),E.Qb=function(){ld(this)},E.Rb=function(i){KS(this,i)},E.Sb=function(){return this.b>0},E.Tb=function(){return this.b},E.Ub=function(){return Tr(this.b>0),this.a.Xb(this.c=--this.b)},E.Vb=function(){return this.b-1},E.Wb=function(i){jS(this.c!=-1),this.a.hd(this.c,i)},K(Dr,"AbstractList/ListIteratorImpl",98),H(244,56,EI,Qb),E.bd=function(i,l){n4(i,this.b),this.c.bd(this.a+i,l),++this.b},E.Xb=function(i){return $n(i,this.b),this.c.Xb(this.a+i)},E.gd=function(i){var l;return $n(i,this.b),l=this.c.gd(this.a+i),--this.b,l},E.hd=function(i,l){return $n(i,this.b),this.c.hd(this.a+i,l)},E.gc=function(){return this.b},E.a=0,E.b=0,K(Dr,"AbstractList/SubList",244),H(266,J1,fh,m_),E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a._b(i)},E.Kc=function(){var i;return i=this.a.vc().Kc(),new vK(i)},E.Mc=function(i){return this.a._b(i)?(this.a.Bc(i),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractMap/1",266),H(541,1,io,vK),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a.Ob()},E.Pb=function(){var i;return i=v(this.a.Pb(),44),i.ld()},E.Qb=function(){this.a.Qb()},K(Dr,"AbstractMap/1/1",541),H(231,31,A4,Dm),E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a.uc(i)},E.Kc=function(){var i;return i=this.a.vc().Kc(),new FS(i)},E.gc=function(){return this.a.gc()},K(Dr,"AbstractMap/2",231),H(301,1,io,FS),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a.Ob()},E.Pb=function(){var i;return i=v(this.a.Pb(),44),i.md()},E.Qb=function(){this.a.Qb()},K(Dr,"AbstractMap/2/1",301),H(494,1,{494:1,44:1}),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Ec(this.d,l.ld())&&Ec(this.e,l.md())):!1},E.ld=function(){return this.d},E.md=function(){return this.e},E.Hb=function(){return MT(this.d)^MT(this.e)},E.nd=function(i){return iIe(this,i)},E.Ib=function(){return this.d+"="+this.e},K(Dr,"AbstractMap/AbstractEntry",494),H(397,494,{494:1,397:1,44:1},QK),K(Dr,"AbstractMap/SimpleEntry",397),H(2082,1,Zpe),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Ec(this.ld(),l.ld())&&Ec(this.md(),l.md())):!1},E.Hb=function(){return MT(this.ld())^MT(this.md())},E.Ib=function(){return this.ld()+"="+this.md()},K(Dr,YKt,2082),H(2090,2065,iBe),E.Xc=function(i){return jue(this.Ee(i))},E.tc=function(i){return UPt(this,i)},E._b=function(i){return aIe(this,i)},E.vc=function(){return new wue(this)},E.Tc=function(){return eLt(this.Ge())},E.Yc=function(i){return jue(this.He(i))},E.xc=function(i){var l;return l=i,Pl(this.Fe(l))},E.$c=function(i){return jue(this.Ie(i))},E.ec=function(){return new x5t(this)},E.Vc=function(){return eLt(this.Je())},E._c=function(i){return jue(this.Ke(i))},K(Dr,"AbstractNavigableMap",2090),H(629,J1,fh,wue),E.Hc=function(i){return $e(i,44)&&UPt(this.b,v(i,44))},E.Kc=function(){return this.b.De()},E.Mc=function(i){var l;return $e(i,44)?(l=v(i,44),this.b.Le(l)):!1},E.gc=function(){return this.b.gc()},K(Dr,"AbstractNavigableMap/EntrySet",629),H(1146,J1,aBe,x5t),E.Nc=function(){return new KK(this)},E.$b=function(){this.a.$b()},E.Hc=function(i){return aIe(this.a,i)},E.Kc=function(){var i;return i=this.a.vc().b.De(),new S5t(i)},E.Mc=function(i){return aIe(this.a,i)?(this.a.Bc(i),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractNavigableMap/NavigableKeySet",1146),H(1147,1,io,S5t),E.Nb=function(i){xo(this,i)},E.Ob=function(){return ehe(this.a.a)},E.Pb=function(){var i;return i=xNt(this.a),i.ld()},E.Qb=function(){ROt(this.a)},K(Dr,"AbstractNavigableMap/NavigableKeySet/1",1147),H(2103,31,A4),E.Fc=function(i){return _k(iI(this,i),SI),!0},E.Gc=function(i){return hr(i),XU(i!=this,"Can't add a queue to itself"),bo(this,i)},E.$b=function(){for(;Bfe(this)!=null;);},K(Dr,"AbstractQueue",2103),H(310,31,{4:1,20:1,31:1,16:1},FT,RMt),E.Fc=function(i){return cOe(this,i),!0},E.$b=function(){gOe(this)},E.Hc=function(i){return gUt(new fD(this),i)},E.dc=function(){return wL(this)},E.Kc=function(){return new fD(this)},E.Mc=function(i){return Gfr(new fD(this),i)},E.gc=function(){return this.c-this.b&this.a.length-1},E.Nc=function(){return new Nn(this,272)},E.Qc=function(i){var l;return l=this.c-this.b&this.a.length-1,i.length<l&&(i=LK(new Array(l),i)),k$t(this,i,l),i.length>l&&Ga(i,l,null),i},E.b=0,E.c=0,K(Dr,"ArrayDeque",310),H(459,1,io,fD),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a!=this.b},E.Pb=function(){return CZ(this)},E.Qb=function(){h$t(this)},E.a=0,E.b=0,E.c=-1,K(Dr,"ArrayDeque/IteratorImpl",459),H(13,56,oXt,Ot,gu,Eh),E.bd=function(i,l){EE(this,i,l)},E.Fc=function(i){return Lt(this,i)},E.cd=function(i,l){return nLe(this,i,l)},E.Gc=function(i){return xs(this,i)},E.$b=function(){$S(this.c,0)},E.Hc=function(i){return $l(this,i,0)!=-1},E.Jc=function(i){Cu(this,i)},E.Xb=function(i){return Yt(this,i)},E.dd=function(i){return $l(this,i,0)},E.dc=function(){return this.c.length==0},E.Kc=function(){return new me(this)},E.gd=function(i){return Jb(this,i)},E.Mc=function(i){return Yu(this,i)},E.ce=function(i,l){ZDt(this,i,l)},E.hd=function(i,l){return of(this,i,l)},E.gc=function(){return this.c.length},E.jd=function(i){us(this,i)},E.Pc=function(){return qX(this.c)},E.Qc=function(i){return X1(this,i)};var N8r=K(Dr,"ArrayList",13);H(7,1,io,me),E.Nb=function(i){xo(this,i)},E.Ob=function(){return nc(this)},E.Pb=function(){return pe(this)},E.Qb=function(){lD(this)},E.a=0,E.b=-1,K(Dr,"ArrayList/1",7),H(2112,u.Function,{},W),E.Me=function(i,l){return ha(i,l)},H(151,56,lXt,wh),E.Hc=function(i){return d$t(this,i)!=-1},E.Jc=function(i){var l,d,g,y;for(hr(i),d=this.a,g=0,y=d.length;g<y;++g)l=d[g],i.Cd(l)},E.Xb=function(i){return p9t(this,i)},E.hd=function(i,l){var d;return d=($n(i,this.a.length),this.a[i]),Ga(this.a,i,l),d},E.gc=function(){return this.a.length},E.jd=function(i){vde(this.a,this.a.length,i)},E.Pc=function(){return xGt(this,st(zs,Yn,1,this.a.length,5,1))},E.Qc=function(i){return xGt(this,i)},K(Dr,"Arrays/ArrayList",151);var Zo,Jg,ete;H(953,56,lXt,Q),E.Hc=function(i){return!1},E.Xb=function(i){return l8e(i)},E.Kc=function(){return Fn(),WR(),YI},E.ed=function(){return Fn(),WR(),YI},E.gc=function(){return 0},K(Dr,"Collections/EmptyList",953),H(954,1,Yg,V),E.Nb=function(i){xo(this,i)},E.Rb=function(i){throw _e(new ri)},E.Ob=function(){return!1},E.Sb=function(){return!1},E.Pb=function(){throw _e(new ec)},E.Tb=function(){return 0},E.Ub=function(){throw _e(new ec)},E.Vb=function(){return-1},E.Qb=function(){throw _e(new ih)},E.Wb=function(i){throw _e(new ih)};var YI;K(Dr,"Collections/EmptyListIterator",954),H(956,2065,wI,j),E._b=function(i){return!1},E.uc=function(i){return!1},E.vc=function(){return Fn(),ete},E.xc=function(i){return null},E.ec=function(){return Fn(),ete},E.gc=function(){return 0},E.Cc=function(){return Fn(),Zo},K(Dr,"Collections/EmptyMap",956),H(955,J1,Jk,ee),E.Hc=function(i){return!1},E.Kc=function(){return Fn(),WR(),YI},E.gc=function(){return 0},K(Dr,"Collections/EmptySet",955),H(608,56,{3:1,20:1,31:1,56:1,16:1,15:1},Eue),E.Hc=function(i){return Ec(this.a,i)},E.Xb=function(i){return $n(i,1),this.a},E.gc=function(){return 1},K(Dr,"Collections/SingletonList",608),H(384,1,KKt,DR),E.Jc=function(i){To(this,i)},E.Lc=function(){return new xn(null,this.Nc())},E.Nc=function(){return new Nn(this,0)},E.Oc=function(){return new xn(null,this.Nc())},E.Fc=function(i){return T7t()},E.Gc=function(i){return C7t()},E.$b=function(){A7t()},E.Hc=function(i){return mU(this,i)},E.Ic=function(i){return pRt(this,i)},E.dc=function(){return this.b.dc()},E.Kc=function(){return new LR(this.b.Kc())},E.Mc=function(i){return k7t()},E.gc=function(){return this.b.gc()},E.Pc=function(){return this.b.Pc()},E.Qc=function(i){return gRt(this,i)},E.Ib=function(){return Kl(this.b)},K(Dr,"Collections/UnmodifiableCollection",384),H(383,1,io,LR),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.b.Ob()},E.Pb=function(){return this.b.Pb()},E.Qb=function(){R7t()},K(Dr,"Collections/UnmodifiableCollectionIterator",383),H(540,384,cXt,kX),E.Nc=function(){return new Nn(this,16)},E.bd=function(i,l){throw _e(new ri)},E.cd=function(i,l){throw _e(new ri)},E.Fb=function(i){return Yi(this.a,i)},E.Xb=function(i){return this.a.Xb(i)},E.Hb=function(){return ma(this.a)},E.dd=function(i){return this.a.dd(i)},E.dc=function(){return this.a.dc()},E.ed=function(){return new M8e(this.a.fd(0))},E.fd=function(i){return new M8e(this.a.fd(i))},E.gd=function(i){throw _e(new ri)},E.hd=function(i,l){throw _e(new ri)},E.jd=function(i){throw _e(new ri)},E.kd=function(i,l){return new kX(this.a.kd(i,l))},K(Dr,"Collections/UnmodifiableList",540),H(705,383,Yg,M8e),E.Qb=function(){R7t()},E.Rb=function(i){throw _e(new ri)},E.Sb=function(){return this.a.Sb()},E.Tb=function(){return this.a.Tb()},E.Ub=function(){return this.a.Ub()},E.Vb=function(){return this.a.Vb()},E.Wb=function(i){throw _e(new ri)},K(Dr,"Collections/UnmodifiableListIterator",705),H(609,1,tx,xue),E.wc=function(i){kD(this,i)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.$b=function(){throw _e(new ri)},E._b=function(i){return this.c._b(i)},E.uc=function(i){return bRt(this,i)},E.vc=function(){return h8(this)},E.Fb=function(i){return yRt(this,i)},E.xc=function(i){return this.c.xc(i)},E.Hb=function(){return ma(this.c)},E.dc=function(){return this.c.dc()},E.ec=function(){return LLt(this)},E.zc=function(i,l){throw _e(new ri)},E.Bc=function(i){throw _e(new ri)},E.gc=function(){return this.c.gc()},E.Ib=function(){return Kl(this.c)},E.Cc=function(){return OLt(this)},K(Dr,"Collections/UnmodifiableMap",609),H(396,384,Cpe,zR),E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return Yi(this.b,i)},E.Hb=function(){return ma(this.b)},K(Dr,"Collections/UnmodifiableSet",396),H(957,396,Cpe,a7t),E.Hc=function(i){return mRt(this,i)},E.Ic=function(i){return this.b.Ic(i)},E.Kc=function(){var i;return i=this.b.Kc(),new T5t(i)},E.Pc=function(){var i;return i=this.b.Pc(),hPt(i,i.length),i},E.Qc=function(i){return bDt(this,i)},K(Dr,"Collections/UnmodifiableMap/UnmodifiableEntrySet",957),H(958,1,io,T5t),E.Nb=function(i){xo(this,i)},E.Pb=function(){return new d7e(v(this.a.Pb(),44))},E.Ob=function(){return this.a.Ob()},E.Qb=function(){throw _e(new ri)},K(Dr,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",958),H(703,1,Zpe,d7e),E.Fb=function(i){return this.a.Fb(i)},E.ld=function(){return this.a.ld()},E.md=function(){return this.a.md()},E.Hb=function(){return this.a.Hb()},E.nd=function(i){throw _e(new ri)},E.Ib=function(){return Kl(this.a)},K(Dr,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",703),H(610,540,{20:1,16:1,15:1,59:1},Hue),K(Dr,"Collections/UnmodifiableRandomAccessList",610),H(704,396,XKt,P8e),E.Nc=function(){return new KK(this)},E.Fb=function(i){return Yi(this.a,i)},E.Hb=function(){return ma(this.a)},K(Dr,"Collections/UnmodifiableSortedSet",704),H(858,1,Jpe,te),E.Ne=function(i,l){var d;return d=cPt(v(i,12),v(l,12)),d!=0?d:Gjt(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Dr,"Comparator/lambda$0$Type",858);var yze,wbe,vze;H(769,1,Jpe,ne),E.Ne=function(i,l){return ohr(v(i,34),v(l,34))},E.Fb=function(i){return this===i},E.Oe=function(){return IE(),vze},K(Dr,"Comparators/NaturalOrderComparator",769),H(1226,1,Jpe,se),E.Ne=function(i,l){return shr(v(i,34),v(l,34))},E.Fb=function(i){return this===i},E.Oe=function(){return IE(),wbe},K(Dr,"Comparators/ReverseNaturalOrderComparator",1226),H(52,1,Jpe,ei),E.Fb=function(i){return this===i},E.Ne=function(i,l){return this.a.Ne(l,i)},E.Oe=function(){return this.a},K(Dr,"Comparators/ReversedComparator",52),H(175,63,nb,Jd),K(Dr,"ConcurrentModificationException",175);var $en,Uen;H(1948,1,zG,ie),E.Pe=function(i){Yzt(this,i)},E.Ib=function(){return"DoubleSummaryStatistics[count = "+sD(this.a)+", avg = "+(the(this.a,0)?ROe(this)/N_(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+ROe(this)+"]"},E.a=0,E.b=Ss,E.c=ka,E.d=0,E.e=0,E.f=0,K(Dr,"DoubleSummaryStatistics",1948),H(1868,63,nb,Qkt),K(Dr,"EmptyStackException",1868),H(461,2065,tx,UD),E.zc=function(i,l){return sIe(this,i,l)},E.$b=function(){_Lt(this)},E._b=function(i){return MRt(this,i)},E.uc=function(i){var l,d;for(d=new lk(this.a);d.a<d.c.a.length;)if(l=vD(d),Ec(i,this.b[l.g]))return!0;return!1},E.vc=function(){return new A5t(this)},E.xc=function(i){return yl(this,i)},E.Bc=function(i){return eOe(this,i)},E.gc=function(){return this.a.c},K(Dr,"EnumMap",461),H(1340,J1,fh,A5t),E.$b=function(){_Lt(this.a)},E.Hc=function(i){return MMt(this,i)},E.Kc=function(){return new v9t(this.a)},E.Mc=function(i){var l;return MMt(this,i)?(l=v(i,44).ld(),eOe(this.a,l),!0):!1},E.gc=function(){return this.a.a.c},K(Dr,"EnumMap/EntrySet",1340),H(1341,1,io,v9t),E.Nb=function(i){xo(this,i)},E.Pb=function(){return this.b=vD(this.a),new BRt(this.c,this.b)},E.Ob=function(){return v8e(this.a)},E.Qb=function(){jS(!!this.b),eOe(this.c,this.b),this.b=null},K(Dr,"EnumMap/EntrySetIterator",1341),H(1342,2082,Zpe,BRt),E.ld=function(){return this.a},E.md=function(){return this.b.b[this.a.g]},E.nd=function(i){return qIe(this.b.b,this.a.g,i)},K(Dr,"EnumMap/MapEntry",1342),H(181,J1,{20:1,31:1,16:1,181:1,21:1});var zen=K(Dr,"EnumSet",181);H(162,181,{20:1,31:1,16:1,181:1,162:1,21:1},nf),E.Fc=function(i){return S0(this,v(i,22))},E.Hc=function(i){return yde(this,i)},E.Kc=function(){return new lk(this)},E.Mc=function(i){return k9t(this,i)},E.gc=function(){return this.c},E.c=0,K(Dr,"EnumSet/EnumSetImpl",162),H(356,1,io,lk),E.Nb=function(i){xo(this,i)},E.Pb=function(){return vD(this)},E.Ob=function(){return v8e(this)},E.Qb=function(){jS(this.b!=-1),Ga(this.c.b,this.b,null),--this.c.c,this.b=-1},E.a=-1,E.b=-1,K(Dr,"EnumSet/EnumSetImpl/IteratorImpl",356),H(45,498,p5,Br,ok,tIt),E.Be=function(i,l){return Ze(i)===Ze(l)||i!=null&&Yi(i,l)},E.Ce=function(i){var l;return i==null?0:(l=ma(i),l|0)},K(Dr,"HashMap",45),H(49,J1,dBe,fs,PK,nD),E.Fc=function(i){return Es(this,i)},E.$b=function(){this.a.$b()},E.Hc=function(i){return r1(this,i)},E.dc=function(){return this.a.gc()==0},E.Kc=function(){return this.a.ec().Kc()},E.Mc=function(i){return S8e(this,i)},E.gc=function(){return this.a.gc()};var O8r=K(Dr,"HashSet",49);H(1897,1,DG,ge),E.Dd=function(i){nUt(this,i)},E.Ib=function(){return"IntSummaryStatistics[count = "+sD(this.a)+", avg = "+(the(this.a,0)?N_(this.d)/N_(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+sD(this.d)+"]"},E.a=0,E.b=Po,E.c=qi,E.d=0,K(Dr,"IntSummaryStatistics",1897),H(1062,1,jg,vIt),E.Jc=function(i){To(this,i)},E.Kc=function(){return new FOe(this)},E.c=0,K(Dr,"InternalHashCodeMap",1062),H(726,1,io,FOe),E.Nb=function(i){xo(this,i)},E.Pb=function(){return this.d=this.a[this.c++],this.d},E.Ob=function(){var i;return this.c<this.a.length?!0:(i=this.b.next(),i.done?!1:(this.a=i.value[1],this.c=0,!0))},E.Qb=function(){NMe(this.e,this.d.ld()),this.c!=0&&--this.c},E.c=0,E.d=null,K(Dr,"InternalHashCodeMap/1",726);var Gen;H(1060,1,jg,_It),E.Jc=function(i){To(this,i)},E.Kc=function(){return new mOe(this)},E.c=0,E.d=0,K(Dr,"InternalStringMap",1060),H(725,1,io,mOe),E.Nb=function(i){xo(this,i)},E.Pb=function(){return this.c=this.a,this.a=this.b.next(),new COt(this.d,this.c,this.d.d)},E.Ob=function(){return!this.a.done},E.Qb=function(){oUt(this.d,this.c.value[0])},K(Dr,"InternalStringMap/1",725),H(1061,2082,Zpe,COt),E.ld=function(){return this.b.value[0]},E.md=function(){return this.a.d!=this.c?NL(this.a,this.b.value[0]):this.b.value[1]},E.nd=function(i){return qE(this.a,this.b.value[0],i)},E.c=0,K(Dr,"InternalStringMap/2",1061),H(215,45,p5,Zb,BOe),E.$b=function(){ZNt(this)},E._b=function(i){return PRt(this,i)},E.uc=function(i){var l;for(l=this.d.a;l!=this.d;){if(Ec(l.e,i))return!0;l=l.a}return!1},E.vc=function(){return new y7e(this)},E.xc=function(i){return j1(this,i)},E.zc=function(i,l){return cy(this,i,l)},E.Bc=function(i){return sFt(this,i)},E.gc=function(){return SL(this.e)},E.c=!1,K(Dr,"LinkedHashMap",215),H(400,397,{494:1,397:1,400:1,44:1},wNt,LIe),K(Dr,"LinkedHashMap/ChainEntry",400),H(715,J1,fh,y7e),E.$b=function(){ZNt(this.a)},E.Hc=function(i){return PMt(this,i)},E.Kc=function(){return new TNe(this)},E.Mc=function(i){var l;return PMt(this,i)?(l=v(i,44).ld(),sFt(this.a,l),!0):!1},E.gc=function(){return SL(this.a.e)},K(Dr,"LinkedHashMap/EntrySet",715),H(716,1,io,TNe),E.Nb=function(i){xo(this,i)},E.Pb=function(){return hFt(this)},E.Ob=function(){return this.c!=this.d.a.d},E.Qb=function(){jS(!!this.a),ade(this.d.a.e.g,this.b),VIe(this.a),Lk(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},E.b=0,K(Dr,"LinkedHashMap/EntrySet/EntryIterator",716),H(174,49,dBe,Hp,Yhe,ZIe);var L8r=K(Dr,"LinkedHashSet",174);H(67,2062,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1},Ea,rde),E.Fc=function(i){return pi(this,i)},E.$b=function(){xd(this)},E.fd=function(i){return Ur(this,i)},E.gc=function(){return this.b},E.b=0;var D8r=K(Dr,"LinkedList",67);H(981,1,Yg,AOt),E.Nb=function(i){xo(this,i)},E.Rb=function(i){tz(this,i)},E.Ob=function(){return hU(this)},E.Sb=function(){return this.b.b!=this.d.a},E.Pb=function(){return Fr(this)},E.Tb=function(){return this.a},E.Ub=function(){return NMt(this)},E.Vb=function(){return this.a-1},E.Qb=function(){$fe(this)},E.Wb=function(i){jS(!!this.c),this.c.c=i},E.a=0,E.c=null,K(Dr,"LinkedList/ListIteratorImpl",981),H(617,1,{},ce),K(Dr,"LinkedList/Node",617),H(2057,1,{});var _ze,qen;K(Dr,"Locale",2057),H(873,2057,{},be),E.Ib=function(){return""},K(Dr,"Locale/1",873),H(874,2057,{},ve),E.Ib=function(){return"unknown"},K(Dr,"Locale/4",874),H(112,63,{3:1,103:1,63:1,82:1,112:1},ec,VLt),K(Dr,"NoSuchElementException",112),H(475,1,{475:1},Bue),E.Fb=function(i){var l;return i===this?!0:$e(i,475)?(l=v(i,475),Ec(this.a,l.a)):!1},E.Hb=function(){return MT(this.a)},E.Ib=function(){return this.a!=null?HKt+XL(this.a)+")":"Optional.empty()"};var wze;K(Dr,"Optional",475),H(414,1,{414:1},aIt,Khe),E.Fb=function(i){var l;return i===this?!0:$e(i,414)?(l=v(i,414),this.a==l.a&&ha(this.b,l.b)==0):!1},E.Hb=function(){return this.a?Ps(this.b):0},E.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},E.a=!1,E.b=0;var Ebe;K(Dr,"OptionalDouble",414),H(524,1,{524:1},sIt,ENt),E.Fb=function(i){var l;return i===this?!0:$e(i,524)?(l=v(i,524),this.a==l.a&&Nc(this.b,l.b)==0):!1},E.Hb=function(){return this.a?this.b:0},E.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},E.a=!1,E.b=0;var Hen;K(Dr,"OptionalInt",524),H(510,2103,A4,rQ),E.Gc=function(i){return fDe(this,i)},E.$b=function(){$S(this.b.c,0)},E.Hc=function(i){return(i==null?-1:$l(this.b,i,0))!=-1},E.Kc=function(){return new C5t(this)},E.Mc=function(i){return A$t(this,i)},E.gc=function(){return this.b.c.length},E.Nc=function(){return new Nn(this,256)},E.Pc=function(){return qX(this.b.c)},E.Qc=function(i){return X1(this.b,i)},K(Dr,"PriorityQueue",510),H(1296,1,io,C5t),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a<this.c.b.c.length},E.Pb=function(){return Tr(this.a<this.c.b.c.length),this.b=this.a++,Yt(this.c.b,this.b)},E.Qb=function(){jS(this.b!=-1),jfe(this.c,this.a=this.b),this.b=-1},E.a=0,E.b=-1,K(Dr,"PriorityQueue/1",1296),H(234,1,{234:1},M0e,LQ),E.a=0,E.b=0;var Eze,xze,M8r=0;K(Dr,"Random",234),H(25,1,Ld,Nn,TE,qLt),E.Ad=function(i){return(this.a&i)!=0},E.yd=function(){return this.a},E.zd=function(){return cNe(this),this.c},E.Nb=function(i){cNe(this),this.d.Nb(i)},E.Bd=function(i){return BFt(this,i)},E.a=0,E.c=0,K(Dr,"Spliterators/IteratorSpliterator",25),H(495,25,Ld,KK),K(Dr,"SortedSet/1",495),H(611,1,zG,g7e),E.Pe=function(i){this.a.Cd(i)},K(Dr,"Spliterator/OfDouble/0methodref$accept$Type",611),H(612,1,zG,p7e),E.Pe=function(i){this.a.Cd(i)},K(Dr,"Spliterator/OfDouble/1methodref$accept$Type",612),H(613,1,DG,m7e),E.Dd=function(i){this.a.Cd(Nt(i))},K(Dr,"Spliterator/OfInt/2methodref$accept$Type",613),H(614,1,DG,b7e),E.Dd=function(i){this.a.Cd(Nt(i))},K(Dr,"Spliterator/OfInt/3methodref$accept$Type",614),H(625,1,Ld),E.Nb=function(i){gRe(this,i)},E.Ad=function(i){return(this.d&i)!=0},E.yd=function(){return this.d},E.zd=function(){return this.e},E.d=0,E.e=0,K(Dr,"Spliterators/BaseSpliterator",625),H(736,625,Ld),E.Qe=function(i){TT(this,i)},E.Nb=function(i){$e(i,189)?TT(this,v(i,189)):TT(this,new p7e(i))},E.Bd=function(i){return $e(i,189)?this.Re(v(i,189)):this.Re(new g7e(i))},K(Dr,"Spliterators/AbstractDoubleSpliterator",736),H(735,625,Ld),E.Qe=function(i){TT(this,i)},E.Nb=function(i){$e(i,202)?TT(this,v(i,202)):TT(this,new b7e(i))},E.Bd=function(i){return $e(i,202)?this.Re(v(i,202)):this.Re(new m7e(i))},K(Dr,"Spliterators/AbstractIntSpliterator",735),H(500,625,Ld),K(Dr,"Spliterators/AbstractSpliterator",500),H(706,1,Ld),E.Nb=function(i){gRe(this,i)},E.Ad=function(i){return(this.b&i)!=0},E.yd=function(){return this.b},E.zd=function(){return this.d-this.c},E.b=0,E.c=0,E.d=0,K(Dr,"Spliterators/BaseArraySpliterator",706),H(960,706,Ld,c9t),E.Se=function(i,l){Uir(this,v(i,41),l)},E.Nb=function(i){Fde(this,i)},E.Bd=function(i){return $Q(this,i)},K(Dr,"Spliterators/ArraySpliterator",960),H(707,706,Ld,xOt),E.Se=function(i,l){zir(this,v(i,189),l)},E.Qe=function(i){Fde(this,i)},E.Nb=function(i){$e(i,189)?Fde(this,v(i,189)):Fde(this,new p7e(i))},E.Re=function(i){return $Q(this,i)},E.Bd=function(i){return $e(i,189)?$Q(this,v(i,189)):$Q(this,new g7e(i))},K(Dr,"Spliterators/DoubleArraySpliterator",707),H(2066,1,Ld),E.Nb=function(i){gRe(this,i)},E.Ad=function(i){return(16448&i)!=0},E.yd=function(){return 16448},E.zd=function(){return 0};var Ven;K(Dr,"Spliterators/EmptySpliterator",2066),H(959,2066,Ld,De),E.Qe=function(i){Q6e(i)},E.Nb=function(i){$e(i,202)?Q6e(v(i,202)):Q6e(new b7e(i))},E.Re=function(i){return RRe(i)},E.Bd=function(i){return $e(i,202)?RRe(v(i,202)):RRe(new m7e(i))},K(Dr,"Spliterators/EmptySpliterator/OfInt",959),H(588,56,uXt,kK),E.bd=function(i,l){s8(i,this.a.c.length+1),EE(this.a,i,l)},E.Fc=function(i){return Lt(this.a,i)},E.cd=function(i,l){return s8(i,this.a.c.length+1),nLe(this.a,i,l)},E.Gc=function(i){return xs(this.a,i)},E.$b=function(){$S(this.a.c,0)},E.Hc=function(i){return $l(this.a,i,0)!=-1},E.Ic=function(i){return Bz(this.a,i)},E.Jc=function(i){Cu(this.a,i)},E.Xb=function(i){return s8(i,this.a.c.length),Yt(this.a,i)},E.dd=function(i){return $l(this.a,i,0)},E.dc=function(){return this.a.c.length==0},E.Kc=function(){return new me(this.a)},E.gd=function(i){return s8(i,this.a.c.length),Jb(this.a,i)},E.ce=function(i,l){ZDt(this.a,i,l)},E.hd=function(i,l){return s8(i,this.a.c.length),of(this.a,i,l)},E.gc=function(){return this.a.c.length},E.jd=function(i){us(this.a,i)},E.kd=function(i,l){return new Qb(this.a,i,l)},E.Pc=function(){return qX(this.a.c)},E.Qc=function(i){return X1(this.a,i)},E.Ib=function(){return Wv(this.a)},K(Dr,"Vector",588),H(824,588,uXt,G7e),K(Dr,"Stack",824),H(213,1,{213:1},B_),E.Ib=function(){return IMt(this)},K(Dr,"StringJoiner",213),H(553,2090,{3:1,85:1,139:1,133:1},_Rt,Tde),E.$b=function(){Q6t(this)},E.De=function(){return new BMt(this)},E.vc=function(){return new gNt(this)},E.Ee=function(i){return Q8(this,i,!0)},E.Fe=function(i){return GUt(this,i)},E.Ge=function(){return HOe(this)},E.He=function(i){return eG(this,i,!0)},E.Ie=function(i){return Q8(this,i,!1)},E.Je=function(){return XBt(this)},E.Ke=function(i){return eG(this,i,!1)},E.Zc=function(i,l){return JDt(this,i,l)},E.zc=function(i,l){return OUt(this,i,l)},E.Bc=function(i){return EDt(this,i)},E.Le=function(i){return DOe(this,i)},E.gc=function(){return this.c},E.ad=function(i,l){return eMt(this,i,l)},E.c=0,K(Dr,"TreeMap",553),H(554,1,io,BMt,Qfe),E.Nb=function(i){xo(this,i)},E.Pb=function(){return xNt(this)},E.Ob=function(){return ehe(this.a)},E.Qb=function(){ROt(this)},K(Dr,"TreeMap/EntryIterator",554),H(1142,629,fh,gNt),E.$b=function(){Q6t(this.a)},K(Dr,"TreeMap/EntrySet",1142),H(447,397,{494:1,397:1,44:1,447:1},Cfe),E.b=!1;var P8r=K(Dr,"TreeMap/Node",447);H(630,1,{},ye),E.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},E.a=!1,E.b=!1,E.c=!1,K(Dr,"TreeMap/State",630),H(631,2090,iBe,C1e),E.De=function(){return new Qfe(this.c,this.f,this.b,this.a,this.e,this.d)},E.vc=function(){return new wue(this)},E.Ee=function(i){return $X(this,Q8(this.c,i,!0))},E.Fe=function(i){return $X(this,GUt(this.c,i))},E.Ge=function(){var i;return this.f.Te()?this.a?i=Q8(this.c,this.b,!0):i=Q8(this.c,this.b,!1):i=HOe(this.c),i&&cQ(this,i.d)?i:null},E.He=function(i){return $X(this,eG(this.c,i,!0))},E.Ie=function(i){return $X(this,Q8(this.c,i,!1))},E.Je=function(){var i;return this.f.Ue()?this.d?i=eG(this.c,this.e,!0):i=eG(this.c,this.e,!1):i=XBt(this.c),i&&cQ(this,i.d)?i:null},E.Ke=function(i){return $X(this,eG(this.c,i,!1))},E.Zc=function(i,l){if(this.f.Ue()&&this.c.a.Ne(i,this.e)>0)throw _e(new ar(gBe+i+" greater than "+this.e));return this.f.Te()?wDt(this.c,this.b,this.a,i,l):JDt(this.c,i,l)},E.zc=function(i,l){if(!h1e(this.c,this.f,i,this.b,this.a,this.e,this.d))throw _e(new ar(i+" outside the range "+this.b+" to "+this.e));return OUt(this.c,i,l)},E.Bc=function(i){var l;return l=i,h1e(this.c,this.f,l,this.b,this.a,this.e,this.d)?EDt(this.c,l):null},E.Le=function(i){return cQ(this,i.ld())&&DOe(this.c,i)},E.gc=function(){var i,l,d;if(this.f.Te()?this.a?l=Q8(this.c,this.b,!0):l=Q8(this.c,this.b,!1):l=HOe(this.c),!(l&&cQ(this,l.d)&&l))return 0;for(i=0,d=new Qfe(this.c,this.f,this.b,this.a,this.e,this.d);ehe(d.a);d.b=v(BNe(d.a),44))++i;return i},E.ad=function(i,l){if(this.f.Te()&&this.c.a.Ne(i,this.b)<0)throw _e(new ar(gBe+i+hXt+this.b));return this.f.Ue()?wDt(this.c,i,l,this.e,this.d):eMt(this.c,i,l)},E.a=!1,E.d=!1,K(Dr,"TreeMap/SubMap",631),H(304,22,nge,XK),E.Te=function(){return!1},E.Ue=function(){return!1};var xbe,Sbe,Tbe,Cbe,tte=$r(Dr,"TreeMap/SubMapType",304,jr,g1r,Tlr);H(1143,304,nge,AIt),E.Ue=function(){return!0},$r(Dr,"TreeMap/SubMapType/1",1143,tte,null,null),H(1144,304,nge,PIt),E.Te=function(){return!0},E.Ue=function(){return!0},$r(Dr,"TreeMap/SubMapType/2",1144,tte,null,null),H(1145,304,nge,CIt),E.Te=function(){return!0},$r(Dr,"TreeMap/SubMapType/3",1145,tte,null,null);var Yen;H(157,J1,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},D7e,Vb,MR),E.Nc=function(){return new KK(this)},E.Fc=function(i){return JU(this,i)},E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a._b(i)},E.Kc=function(){return this.a.ec().Kc()},E.Mc=function(i){return Vhe(this,i)},E.gc=function(){return this.a.gc()};var B8r=K(Dr,"TreeSet",157);H(1082,1,{},k5t),E.Ve=function(i,l){return Gor(this.a,i,l)},K(rge,"BinaryOperator/lambda$0$Type",1082),H(1083,1,{},R5t),E.Ve=function(i,l){return qor(this.a,i,l)},K(rge,"BinaryOperator/lambda$1$Type",1083),H(952,1,{},Ee),E.Kb=function(i){return i},K(rge,"Function/lambda$0$Type",952),H(395,1,si,PR),E.Mb=function(i){return!this.a.Mb(i)},K(rge,"Predicate/lambda$2$Type",395),H(581,1,{581:1});var jen=K(vM,"Handler",581);H(2107,1,OG),E.xe=function(){return"DUMMY"},E.Ib=function(){return this.xe()};var Sze;K(vM,"Level",2107),H(1706,2107,OG,he),E.xe=function(){return"INFO"},K(vM,"Level/LevelInfo",1706),H(1843,1,{},t6t);var Abe;K(vM,"LogManager",1843),H(1896,1,OG,kOt),E.b=null,K(vM,"LogRecord",1896),H(525,1,{525:1},mfe),E.e=!1;var Wen=!1,Ken=!1,rp=!1,Xen=!1,Qen=!1;K(vM,"Logger",525),H(835,581,{581:1},we),K(vM,"SimpleConsoleLogHandler",835),H(108,22,{3:1,34:1,22:1,108:1},rhe);var Tze,Ql,B4,Il=$r(Ts,"Collector/Characteristics",108,jr,n0r,Clr),Zen;H(758,1,{},mNe),K(Ts,"CollectorImpl",758),H(1074,1,{},Ce),E.Ve=function(i,l){return Pyr(v(i,213),v(l,213))},K(Ts,"Collectors/10methodref$merge$Type",1074),H(1075,1,{},Ie),E.Kb=function(i){return IMt(v(i,213))},K(Ts,"Collectors/11methodref$toString$Type",1075),H(1076,1,{},I5t),E.Kb=function(i){return Qn(),!!u8e(i)},K(Ts,"Collectors/12methodref$test$Type",1076),H(144,1,{},Le),E.Yd=function(i,l){v(i,16).Fc(l)},K(Ts,"Collectors/20methodref$add$Type",144),H(146,1,{},Fe),E.Xe=function(){return new Ot},K(Ts,"Collectors/21methodref$ctor$Type",146),H(359,1,{},Ve),E.Xe=function(){return new fs},K(Ts,"Collectors/23methodref$ctor$Type",359),H(360,1,{},Oe),E.Yd=function(i,l){Es(v(i,49),l)},K(Ts,"Collectors/24methodref$add$Type",360),H(1069,1,{},Dt),E.Ve=function(i,l){return wRt(v(i,15),v(l,16))},K(Ts,"Collectors/4methodref$addAll$Type",1069),H(1073,1,{},ot),E.Yd=function(i,l){Hm(v(i,213),v(l,484))},K(Ts,"Collectors/9methodref$add$Type",1073),H(1072,1,{},VOt),E.Xe=function(){return new B_(this.a,this.b,this.c)},K(Ts,"Collectors/lambda$15$Type",1072),H(1077,1,{},sn),E.Xe=function(){var i;return i=new Zb,cy(i,(Qn(),!1),new Ot),cy(i,!0,new Ot),i},K(Ts,"Collectors/lambda$22$Type",1077),H(1078,1,{},N5t),E.Xe=function(){return Te(xe(zs,1),Yn,1,5,[this.a])},K(Ts,"Collectors/lambda$25$Type",1078),H(1079,1,{},O5t),E.Yd=function(i,l){lhr(this.a,L_(i))},K(Ts,"Collectors/lambda$26$Type",1079),H(1080,1,{},L5t),E.Ve=function(i,l){return Phr(this.a,L_(i),L_(l))},K(Ts,"Collectors/lambda$27$Type",1080),H(1081,1,{},Kt),E.Kb=function(i){return L_(i)[0]},K(Ts,"Collectors/lambda$28$Type",1081),H(728,1,{},Ft),E.Ve=function(i,l){return XIe(i,l)},K(Ts,"Collectors/lambda$4$Type",728),H(145,1,{},Je),E.Ve=function(i,l){return gar(v(i,16),v(l,16))},K(Ts,"Collectors/lambda$42$Type",145),H(361,1,{},ht),E.Ve=function(i,l){return mar(v(i,49),v(l,49))},K(Ts,"Collectors/lambda$50$Type",361),H(362,1,{},et),E.Kb=function(i){return v(i,49)},K(Ts,"Collectors/lambda$51$Type",362),H(1068,1,{},D5t),E.Yd=function(i,l){Gbr(this.a,v(i,85),l)},K(Ts,"Collectors/lambda$7$Type",1068),H(1070,1,{},qe),E.Ve=function(i,l){return ybr(v(i,85),v(l,85),new Dt)},K(Ts,"Collectors/lambda$8$Type",1070),H(1071,1,{},M5t),E.Kb=function(i){return gvr(this.a,v(i,85))},K(Ts,"Collectors/lambda$9$Type",1071),H(550,1,{}),E.$e=function(){dD(this)},E.d=!1,K(Ts,"TerminatableStream",550),H(827,550,mBe,K8e),E.$e=function(){dD(this)},K(Ts,"DoubleStreamImpl",827),H(1847,736,Ld,YOt),E.Re=function(i){return y_r(this,v(i,189))},E.a=null,K(Ts,"DoubleStreamImpl/2",1847),H(1848,1,zG,P5t),E.Pe=function(i){usr(this.a,i)},K(Ts,"DoubleStreamImpl/2/lambda$0$Type",1848),H(1845,1,zG,B5t),E.Pe=function(i){csr(this.a,i)},K(Ts,"DoubleStreamImpl/lambda$0$Type",1845),H(1846,1,zG,F5t),E.Pe=function(i){Yzt(this.a,i)},K(Ts,"DoubleStreamImpl/lambda$2$Type",1846),H(1397,735,Ld,MPt),E.Re=function(i){return i1r(this,v(i,202))},E.a=0,E.b=0,E.c=0,K(Ts,"IntStream/5",1397),H(806,550,mBe,X8e),E.$e=function(){dD(this)},E._e=function(){return Pv(this),this.a},K(Ts,"IntStreamImpl",806),H(807,550,mBe,wRe),E.$e=function(){dD(this)},E._e=function(){return Pv(this),N8e(),Ven},K(Ts,"IntStreamImpl/Empty",807),H(1687,1,DG,$5t),E.Dd=function(i){nUt(this.a,i)},K(Ts,"IntStreamImpl/lambda$4$Type",1687);var F8r=$a(Ts,"Stream");H(26,550,{533:1,687:1,848:1},xn),E.$e=function(){dD(this)};var p6;K(Ts,"StreamImpl",26),H(1102,500,Ld,_Ot),E.Bd=function(i){for(;ogr(this);){if(this.a.Bd(i))return!0;dD(this.b),this.b=null,this.a=null}return!1},K(Ts,"StreamImpl/1",1102),H(1103,1,vr,U5t),E.Cd=function(i){Dur(this.a,v(i,848))},K(Ts,"StreamImpl/1/lambda$0$Type",1103),H(1104,1,si,z5t),E.Mb=function(i){return Es(this.a,i)},K(Ts,"StreamImpl/1methodref$add$Type",1104),H(1105,500,Ld,eDt),E.Bd=function(i){var l;return this.a||(l=new Ot,this.b.a.Nb(new G5t(l)),Fn(),us(l,this.c),this.a=new Nn(l,16)),BFt(this.a,i)},E.a=null,K(Ts,"StreamImpl/5",1105),H(1106,1,vr,G5t),E.Cd=function(i){Lt(this.a,i)},K(Ts,"StreamImpl/5/2methodref$add$Type",1106),H(737,500,Ld,VOe),E.Bd=function(i){for(this.b=!1;!this.b&&this.c.Bd(new FRt(this,i)););return this.b},E.b=!1,K(Ts,"StreamImpl/FilterSpliterator",737),H(1096,1,vr,FRt),E.Cd=function(i){Ihr(this.a,this.b,i)},K(Ts,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),H(1091,736,Ld,YPt),E.Re=function(i){return ulr(this,v(i,189))},K(Ts,"StreamImpl/MapToDoubleSpliterator",1091),H(1095,1,vr,$Rt),E.Cd=function(i){Lar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),H(1090,735,Ld,jPt),E.Re=function(i){return hlr(this,v(i,202))},K(Ts,"StreamImpl/MapToIntSpliterator",1090),H(1094,1,vr,URt),E.Cd=function(i){Dar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),H(734,500,Ld,IOe),E.Bd=function(i){return bOt(this,i)},K(Ts,"StreamImpl/MapToObjSpliterator",734),H(1093,1,vr,zRt),E.Cd=function(i){Mar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),H(1092,500,Ld,E$t),E.Bd=function(i){for(;the(this.b,0);){if(!this.a.Bd(new He))return!1;this.b=zf(this.b,1)}return this.a.Bd(i)},E.b=0,K(Ts,"StreamImpl/SkipSpliterator",1092),H(1097,1,vr,He),E.Cd=function(i){},K(Ts,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),H(626,1,vr,Ge),E.Cd=function(i){y5t(this,i)},K(Ts,"StreamImpl/ValueConsumer",626),H(1098,1,vr,Ye),E.Cd=function(i){w_()},K(Ts,"StreamImpl/lambda$0$Type",1098),H(1099,1,vr,Ae),E.Cd=function(i){w_()},K(Ts,"StreamImpl/lambda$1$Type",1099),H(1100,1,{},q5t),E.Ve=function(i,l){return qlr(this.a,i,l)},K(Ts,"StreamImpl/lambda$4$Type",1100),H(1101,1,vr,GRt),E.Cd=function(i){Kor(this.b,this.a,i)},K(Ts,"StreamImpl/lambda$5$Type",1101),H(1107,1,vr,H5t),E.Cd=function(i){sbr(this.a,v(i,380))},K(Ts,"TerminatableStream/lambda$0$Type",1107),H(2142,1,{}),H(2014,1,{},Xe),K("javaemul.internal","ConsoleLogger",2014);var $8r=0;H(2134,1,{}),H(1830,1,vr,fe),E.Cd=function(i){v(i,317)},K(TI,"BowyerWatsonTriangulation/lambda$0$Type",1830),H(1831,1,vr,V5t),E.Cd=function(i){bo(this.a,v(i,317).e)},K(TI,"BowyerWatsonTriangulation/lambda$1$Type",1831),H(1832,1,vr,Qe),E.Cd=function(i){v(i,177)},K(TI,"BowyerWatsonTriangulation/lambda$2$Type",1832),H(1827,1,ui,Y5t),E.Ne=function(i,l){return q1r(this.a,v(i,177),v(l,177))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(TI,"NaiveMinST/lambda$0$Type",1827),H(449,1,{},dL),K(TI,"NodeMicroLayout",449),H(177,1,{177:1},ck),E.Fb=function(i){var l;return $e(i,177)?(l=v(i,177),Ec(this.a,l.a)&&Ec(this.b,l.b)||Ec(this.a,l.b)&&Ec(this.b,l.a)):!1},E.Hb=function(){return MT(this.a)+MT(this.b)};var U8r=K(TI,"TEdge",177);H(317,1,{317:1},IPe),E.Fb=function(i){var l;return $e(i,317)?(l=v(i,317),YQ(this,l.a)&&YQ(this,l.b)&&YQ(this,l.c)):!1},E.Hb=function(){return MT(this.a)+MT(this.b)+MT(this.c)},K(TI,"TTriangle",317),H(225,1,{225:1},xX),K(TI,"Tree",225),H(1218,1,{},$Dt),K(pXt,"Scanline",1218);var Jen=$a(pXt,gXt);H(1758,1,{},DFt),K(Xg,"CGraph",1758),H(316,1,{316:1},GDt),E.b=0,E.c=0,E.d=0,E.g=0,E.i=0,E.k=Ss,K(Xg,"CGroup",316),H(830,1,{},B7e),K(Xg,"CGroup/CGroupBuilder",830),H(60,1,{60:1},eOt),E.Ib=function(){var i;return this.j?ai(this.j.Kb(this)):(Fm(nte),nte.o+"@"+(i=vE(this)>>>0,i.toString(16)))},E.f=0,E.i=Ss;var nte=K(Xg,"CNode",60);H(829,1,{},F7e),K(Xg,"CNode/CNodeBuilder",829);var etn;H(1590,1,{},Ke),E.ff=function(i,l){return 0},E.gf=function(i,l){return 0},K(Xg,bXt,1590),H(1853,1,{},mt),E.cf=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(D=ka,g=new me(i.a.b);g.a<g.c.c.length;)l=v(pe(g),60),D=u.Math.min(D,l.a.j.d.c+l.b.a);for(ae=new Ea,T=new me(i.a.a);T.a<T.c.c.length;)x=v(pe(T),316),x.k=D,x.g==0&&qa(ae,x,ae.c.b,ae.c);for(;ae.b!=0;){for(x=v(ae.b==0?null:(Tr(ae.b!=0),cf(ae,ae.a.a)),316),y=x.j.d.c,re=x.a.a.ec().Kc();re.Ob();)q=v(re.Pb(),60),de=x.k+q.b.a,!wyr(i,x,i.d)||q.d.c<de?q.i=de:q.i=q.d.c;for(y-=x.j.i,x.b+=y,i.d==(ys(),ql)||i.d==lp?x.c+=y:x.c-=y,J=x.a.a.ec().Kc();J.Ob();)for(q=v(J.Pb(),60),O=q.c.Kc();O.Ob();)R=v(O.Pb(),60),Bm(i.d)?le=i.g.ff(q,R):le=i.g.gf(q,R),R.a.k=u.Math.max(R.a.k,q.i+q.d.b+le-R.b.a),lDt(i,R,i.d)&&(R.a.k=u.Math.max(R.a.k,R.d.c-R.b.a)),--R.a.g,R.a.g==0&&pi(ae,R.a)}for(d=new me(i.a.b);d.a<d.c.c.length;)l=v(pe(d),60),l.d.c=l.i},K(Xg,"LongestPathCompaction",1853),H(1756,1,{},EVt),E.e=!1;var ttn,ntn,rtn,kbe=K(Xg,_Xt,1756);H(1757,1,vr,j5t),E.Cd=function(i){Ebr(this.a,v(i,42))},K(Xg,wXt,1757),H(1854,1,{},lt),E.df=function(i){var l,d,g,y,x,T,R;for(d=new me(i.a.b);d.a<d.c.c.length;)l=v(pe(d),60),l.c.$b();for(y=new me(i.a.b);y.a<y.c.c.length;)for(g=v(pe(y),60),T=new me(i.a.b);T.a<T.c.c.length;)x=v(pe(T),60),g!=x&&(g.a&&g.a==x.a||(Bm(i.d)?R=i.g.gf(g,x):R=i.g.ff(g,x),(x.d.c>g.d.c||g.d.c==x.d.c&&g.d.b<x.d.b)&&o2r(x.d.d+x.d.a+R,g.d.d)&&HLe(x.d.d,g.d.d+g.d.a+R)&&g.c.Fc(x)))},K(Xg,"QuadraticConstraintCalculation",1854),H(529,1,{529:1},Cue),E.a=!1,E.b=!1,E.c=!1,E.d=!1,K(Xg,EXt,529),H(817,1,{},tNe),E.df=function(i){this.c=i,fG(this,new Jt)},K(Xg,xXt,817),H(1784,1,{693:1},uDt),E.bf=function(i){ESr(this,v(i,473))},K(Xg,SXt,1784),H(1785,1,ui,$t),E.Ne=function(i,l){return Ldr(v(i,60),v(l,60))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Xg,TXt,1785),H(473,1,{473:1},NRe),E.a=!1,K(Xg,CXt,473),H(1786,1,ui,Ut),E.Ne=function(i,l){return Lwr(v(i,473),v(l,473))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Xg,AXt,1786),H(1787,1,ig,Jt),E.Lb=function(i){return v(i,60),!0},E.Fb=function(i){return this===i},E.Mb=function(i){return v(i,60),!0},K(Xg,"ScanlineConstraintCalculator/lambda$1$Type",1787),H(436,22,{3:1,34:1,22:1,436:1},ORe);var Cze,Rbe,Aze=$r(oge,"HighLevelSortingCriterion",436,jr,lfr,Alr),itn;H(435,22,{3:1,34:1,22:1,435:1},LRe);var kze,Ibe,Rze=$r(oge,"LowLevelSortingCriterion",435,jr,cfr,klr),atn,C5=$a(oc,"ILayoutMetaDataProvider");H(864,1,Hf,j3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,_Be),lge),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Pze),(dy(),Ra)),Vze),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wBe),lge),"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."),Dze),Ra),Rze),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,EBe),lge),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),Oze),Ra),Aze),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xBe),lge),"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."),(Qn(),!0)),Gs),rs),bn(Hn))))};var Ize,Nze,Oze,Lze,Dze,Mze,Pze;K(oge,"PolyominoOptions",864),H(257,22,{3:1,34:1,22:1,257:1},CT);var Bze,Fze,$ze,Uze,zze,Gze,Nbe,qze,Hze,Vze=$r(oge,"TraversalStrategy",257,jr,smr,Rlr),stn;H(218,1,{218:1},wn),E.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},E.a=1,E.b=0,E.c=0,E.f=!1,E.g=0;var otn=K(_M,"NEdge",218);H(182,1,{},Bf),K(_M,"NEdge/NEdgeBuilder",182),H(662,1,{},Rue),K(_M,"NGraph",662),H(125,1,{125:1},XPt),E.c=-1,E.d=0,E.e=0,E.i=-1,E.j=!1;var Yze=K(_M,"NNode",125);H(808,1,cXt,M7e),E.Jc=function(i){To(this,i)},E.Lc=function(){return new xn(null,new Nn(this,16))},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.bd=function(i,l){++this.b,EE(this.a,i,l)},E.Fc=function(i){return RX(this,i)},E.cd=function(i,l){return++this.b,nLe(this.a,i,l)},E.Gc=function(i){return++this.b,xs(this.a,i)},E.$b=function(){++this.b,$S(this.a.c,0)},E.Hc=function(i){return $l(this.a,i,0)!=-1},E.Ic=function(i){return Bz(this.a,i)},E.Xb=function(i){return Yt(this.a,i)},E.dd=function(i){return $l(this.a,i,0)},E.dc=function(){return this.a.c.length==0},E.Kc=function(){return Mk(new me(this.a))},E.ed=function(){throw _e(new ri)},E.fd=function(i){throw _e(new ri)},E.gd=function(i){return++this.b,Jb(this.a,i)},E.Mc=function(i){return B8e(this,i)},E.hd=function(i,l){return++this.b,of(this.a,i,l)},E.gc=function(){return this.a.c.length},E.kd=function(i,l){return new Qb(this.a,i,l)},E.Pc=function(){return qX(this.a.c)},E.Qc=function(i){return X1(this.a,i)},E.b=0,K(_M,"NNode/ChangeAwareArrayList",808),H(275,1,{},v_),K(_M,"NNode/NNodeBuilder",275),H(1695,1,{},Vn),E.a=!1,E.f=qi,E.j=0,K(_M,"NetworkSimplex",1695),H(1314,1,vr,W5t),E.Cd=function(i){iKt(this.a,v(i,695),!0,!1)},K(kXt,"NodeLabelAndSizeCalculator/lambda$0$Type",1314),H(565,1,{},_K),E.b=!0,E.c=!0,E.d=!0,E.e=!0,K(kXt,"NodeMarginCalculator",565),H(217,1,{217:1}),E.j=!1,E.k=!1;var ltn=K(W_,"Cell",217);H(127,217,{127:1,217:1},JNt),E.jf=function(){return HX(this)},E.kf=function(){var i;return i=this.n,this.a.a+i.b+i.c},K(W_,"AtomicCell",127),H(237,22,{3:1,34:1,22:1,237:1},ihe);var bc,vu,yc,F4=$r(W_,"ContainerArea",237,jr,a0r,Ilr),ctn;H(336,217,RXt),K(W_,"ContainerCell",336),H(1538,336,RXt,qzt),E.jf=function(){var i;return i=0,this.e?this.b?i=this.b.b:this.a[1][1]&&(i=this.a[1][1].jf()):i=kLe(this,aqt(this,!0)),i>0?i+this.n.d+this.n.a:0},E.kf=function(){var i,l,d,g,y;if(y=0,this.e)this.b?y=this.b.a:this.a[1][1]&&(y=this.a[1][1].kf());else if(this.g)y=kLe(this,f1e(this,null,!0));else for(l=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),d=0,g=l.length;d<g;++d)i=l[d],y=u.Math.max(y,kLe(this,f1e(this,i,!0)));return y>0?y+this.n.b+this.n.c:0},E.lf=function(){var i,l,d,g,y;if(this.g)for(i=f1e(this,null,!1),d=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),g=0,y=d.length;g<y;++g)l=d[g],FYt(this,l,i);else for(d=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),g=0,y=d.length;g<y;++g)l=d[g],i=f1e(this,l,!1),FYt(this,l,i)},E.mf=function(){var i,l,d,g;l=this.i,i=this.n,g=aqt(this,!1),COe(this,(u1(),bc),l.d+i.d,g),COe(this,yc,l.d+l.a-i.a-g[2],g),d=l.a-i.d-i.a,g[0]>0&&(g[0]+=this.d,d-=g[0]),g[2]>0&&(g[2]+=this.d,d-=g[2]),this.c.a=u.Math.max(0,d),this.c.d=l.d+i.d+(this.c.a-d)/2,g[1]=u.Math.max(g[1],d),COe(this,vu,l.d+i.d+g[0]-(g[1]-d)/2,g)},E.b=null,E.d=0,E.e=!1,E.f=!1,E.g=!1;var Obe=0,rte=0;K(W_,"GridContainerCell",1538),H(471,22,{3:1,34:1,22:1,471:1},ahe);var s2,dg,R0,utn=$r(W_,"HorizontalLabelAlignment",471,jr,i0r,Nlr),htn;H(314,217,{217:1,314:1},TDt,PFt,yDt),E.jf=function(){return a9t(this)},E.kf=function(){return HIe(this)},E.a=0,E.c=!1;var z8r=K(W_,"LabelCell",314);H(252,336,{217:1,336:1,252:1},GD),E.jf=function(){return ZD(this)},E.kf=function(){return JD(this)},E.lf=function(){tpe(this)},E.mf=function(){npe(this)},E.b=0,E.c=0,E.d=!1,K(W_,"StripContainerCell",252),H(1691,1,si,Wn),E.Mb=function(i){return Rir(v(i,217))},K(W_,"StripContainerCell/lambda$0$Type",1691),H(1692,1,{},Dn),E.Ye=function(i){return v(i,217).kf()},K(W_,"StripContainerCell/lambda$1$Type",1692),H(1693,1,si,zn),E.Mb=function(i){return Iir(v(i,217))},K(W_,"StripContainerCell/lambda$2$Type",1693),H(1694,1,{},vn),E.Ye=function(i){return v(i,217).jf()},K(W_,"StripContainerCell/lambda$3$Type",1694),H(472,22,{3:1,34:1,22:1,472:1},she);var I0,o2,g1,dtn=$r(W_,"VerticalLabelAlignment",472,jr,r0r,Olr),ftn;H(800,1,{},jPe),E.c=0,E.d=0,E.k=0,E.s=0,E.t=0,E.v=!1,E.w=0,E.D=!1,E.F=!1,K(HJ,"NodeContext",800),H(1536,1,ui,Cn),E.Ne=function(i,l){return bIt(v(i,64),v(l,64))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HJ,"NodeContext/0methodref$comparePortSides$Type",1536),H(1537,1,ui,Ar),E.Ne=function(i,l){return oxr(v(i,117),v(l,117))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HJ,"NodeContext/1methodref$comparePortContexts$Type",1537),H(164,22,{3:1,34:1,22:1,164:1},uf);var ptn,gtn,mtn,btn,ytn,vtn,_tn,wtn,Etn,xtn,Stn,Ttn,Ctn,Atn,ktn,Rtn,Itn,Ntn,Otn,Ltn,Dtn,Lbe,Mtn=$r(HJ,"NodeLabelLocation",164,jr,H0e,Llr),Ptn;H(117,1,{117:1},SVt),E.a=!1,K(HJ,"PortContext",117),H(1541,1,vr,ur),E.Cd=function(i){P7t(v(i,314))},K(qG,IXt,1541),H(1542,1,si,On),E.Mb=function(i){return!!v(i,117).c},K(qG,NXt,1542),H(1543,1,vr,Ir),E.Cd=function(i){P7t(v(i,117).c)},K(qG,"LabelPlacer/lambda$2$Type",1543);var jze;H(1540,1,vr,Ln),E.Cd=function(i){WS(),lir(v(i,117))},K(qG,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),H(801,1,vr,xIe),E.Cd=function(i){xar(this.b,this.c,this.a,v(i,187))},E.a=!1,E.c=!1,K(qG,"NodeLabelCellCreator/lambda$0$Type",801),H(1539,1,vr,K5t),E.Cd=function(i){hir(this.a,v(i,187))},K(qG,"PortContextCreator/lambda$0$Type",1539);var ite;H(1902,1,{},pr),K(AI,"GreedyRectangleStripOverlapRemover",1902),H(1903,1,ui,Cr),E.Ne=function(i,l){return tor(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),H(1849,1,{},a6t),E.a=5,E.e=0,K(AI,"RectangleStripOverlapRemover",1849),H(1850,1,ui,Zr),E.Ne=function(i,l){return nor(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),H(1852,1,ui,Pr),E.Ne=function(i,l){return Yhr(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),H(417,22,{3:1,34:1,22:1,417:1},ZK);var gq,Dbe,Mbe,mq,Btn=$r(AI,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,jr,y1r,Dlr),Ftn;H(226,1,{226:1},wde),K(AI,"RectangleStripOverlapRemover/RectangleNode",226),H(1851,1,vr,X5t),E.Cd=function(i){L_r(this.a,v(i,226))},K(AI,"RectangleStripOverlapRemover/lambda$1$Type",1851),H(1323,1,ui,Ci),E.Ne=function(i,l){return Zkr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),H(1326,1,{},ds),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),H(1327,1,si,ta),E.Mb=function(i){return v(i,332).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),H(1328,1,si,Os),E.Mb=function(i){return v(i,332).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),H(1321,1,ui,uo),E.Ne=function(i,l){return RCr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),H(1324,1,{},Ls),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),H(781,1,ui,La),E.Ne=function(i,l){return hbr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinNumOfExtensionsComparator",781),H(1319,1,ui,to),E.Ne=function(i,l){return vmr(v(i,330),v(l,330))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinPerimeterComparator",1319),H(1320,1,ui,Fi),E.Ne=function(i,l){return r_r(v(i,330),v(l,330))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),H(1322,1,ui,Pt),E.Ne=function(i,l){return KCr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),H(1325,1,{},St),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),H(782,1,{},DRe),E.Ve=function(i,l){return u1r(this,v(i,42),v(l,176))},K(ag,"SuccessorCombination",782),H(649,1,{},Un),E.Ve=function(i,l){var d;return C4r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorJitter",649),H(648,1,{},Hr),E.Ve=function(i,l){var d;return d5r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorLineByLine",648),H(573,1,{},za),E.Ve=function(i,l){var d;return C3r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorManhattan",573),H(1344,1,{},Rs),E.Ve=function(i,l){var d;return PTr((d=v(i,42),v(l,176),d))},K(ag,"SuccessorMaxNormWindingInMathPosSense",1344),H(409,1,{},BR),E.Ve=function(i,l){return pNe(this,i,l)},E.c=!1,E.d=!1,E.e=!1,E.f=!1,K(ag,"SuccessorQuadrantsGeneric",409),H(1345,1,{},Vr),E.Kb=function(i){return v(i,334).a},K(ag,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),H(332,22,{3:1,34:1,22:1,332:1},JK),E.a=!1;var bq,yq,vq,_q,$tn=$r(YJ,ABe,332,jr,m1r,Mlr),Utn;H(1317,1,{}),E.Ib=function(){var i,l,d,g,y,x;for(d=" ",i=Nt(0),y=0;y<this.o;y++)d+=""+i.a,i=Nt(zNt(i.a));for(d+=`
`,i=Nt(0),x=0;x<this.p;x++){for(d+=""+i.a,i=Nt(zNt(i.a)),g=0;g<this.o;g++)l=Yfe(this,g,x),Oc(l,0)==0?d+="_":Oc(l,1)==0?d+="X":d+="0";d+=`
`}return af(d,0,d.length-1)},E.o=0,E.p=0,K(YJ,"TwoBitGrid",1317),H(330,1317,{330:1},BLe),E.j=0,E.k=0,K(YJ,"PlanarGrid",330),H(176,330,{330:1,176:1}),E.g=0,E.i=0,K(YJ,"Polyomino",176);var G8r=$a(HG,LXt);H(137,1,kBe,Ii),E.qf=function(i,l){return zz(this,i,l)},E.nf=function(){return x9t(this)},E.of=function(i){return oe(this,i)},E.pf=function(i){return ya(this,i)},K(HG,"MapPropertyHolder",137),H(1318,137,kBe,CYt),K(YJ,"Polyominoes",1318);var ztn=!1,QM,Wze;H(1828,1,vr,Pa),E.Cd=function(i){kWt(v(i,225))},K(a6,"DepthFirstCompaction/0methodref$compactTree$Type",1828),H(825,1,vr,v7e),E.Cd=function(i){pdr(this.a,v(i,225))},K(a6,"DepthFirstCompaction/lambda$1$Type",825),H(1829,1,vr,OOt),E.Cd=function(i){b2r(this.a,this.b,this.c,v(i,225))},K(a6,"DepthFirstCompaction/lambda$2$Type",1829);var ZM,Kze;H(68,1,{68:1},FDt),K(a6,"Node",68),H(1214,1,{},BIt),K(a6,"ScanlineOverlapCheck",1214),H(1215,1,{693:1},dDt),E.bf=function(i){Yor(this,v(i,451))},K(a6,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),H(1216,1,ui,Or),E.Ne=function(i,l){return evr(v(i,68),v(l,68))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(a6,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),H(451,1,{451:1},MRe),E.a=!1,K(a6,"ScanlineOverlapCheck/Timestamp",451),H(1217,1,ui,no),E.Ne=function(i,l){return Dwr(v(i,451),v(l,451))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(a6,"ScanlineOverlapCheck/lambda$0$Type",1217),H(557,1,{},dt),K(DXt,"SVGImage",557),H(334,1,{334:1},EIe),E.Ib=function(){return"("+this.a+Xo+this.b+Xo+this.c+")"},K(DXt,"UniqueTriple",334),H(205,1,K_),K(g5,"AbstractLayoutProvider",205),H(1114,205,K_,Wi),E.rf=function(i,l){var d,g,y,x;switch(l.Ug(MXt,1),this.a=We(at(Et(i,(qD(),tGe)))),Y1(i,Bbe)&&(y=ai(Et(i,Bbe)),d=W1e(R8(),y),d&&(g=v(sz(d.f),205),g.rf(i,l.eh(1)))),x=new iPt(this.a),this.b=R7r(x,i),v(Et(i,(v0e(),Qze)),489).g){case 0:V4r(new Tt,this.b),sa(i,ote,oe(this.b,ote));break;default:Pm()}H7r(x),sa(i,Jze,this.b),l.Vg()},E.a=0,K(PXt,"DisCoLayoutProvider",1114),H(1208,1,{},Tt),E.c=!1,E.e=0,E.f=0,K(PXt,"DisCoPolyominoCompactor",1208),H(567,1,{567:1},w9t),E.b=!0,K(WJ,"DCComponent",567),H(406,22,{3:1,34:1,22:1,406:1},eX),E.a=!1;var ate,wq,ste,Eq,Gtn=$r(WJ,"DCDirection",406,jr,b1r,Plr),qtn;H(272,137,{3:1,272:1,96:1,137:1},P1e),K(WJ,"DCElement",272),H(407,1,{407:1},oDe),E.c=0,K(WJ,"DCExtension",407),H(762,137,kBe,u7t),K(WJ,"DCGraph",762),H(489,22,{3:1,34:1,22:1,489:1},INt);var Pbe,Xze=$r(mge,RBe,489,jr,Tdr,Blr),Htn;H(865,1,Hf,W3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,IBe),BXt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),Zze),(dy(),Ra)),Xze),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,NBe),BXt),"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."),K5),Xt),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,OBe),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),op),zs),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,LBe),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),op),zs),bn(Hn)))),fWt((new K3t,i))};var Vtn,Qze,Zze,Ytn,jtn;K(mge,"DisCoMetaDataProvider",865),H(1010,1,Hf,K3t),E.hf=function(i){fWt(i)};var Wtn,Bbe,Ktn,Jze,ote,Fbe,eGe,Xtn,Qtn,Ztn,Jtn,tGe;K(mge,"DisCoOptions",1010),H(1011,1,{},xr),E.sf=function(){var i;return i=new Wi,i},E.tf=function(i){},K(mge,"DisCoOptions/DiscoFactory",1011),H(568,176,{330:1,176:1,568:1},lYt),E.a=0,E.b=0,E.c=0,E.d=0,K("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var $be,Ube,lte;H(1286,1,si,qs),E.Mb=function(i){return u8e(i)},K(m5,"ElkGraphComponentsProcessor/lambda$0$Type",1286),H(1287,1,{},Rt),E.Kb=function(i){return kk(),Hg(v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$1$Type",1287),H(1288,1,si,Bb),E.Mb=function(i){return Hur(v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$2$Type",1288),H(1289,1,{},Gt),E.Kb=function(i){return kk(),jv(v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$3$Type",1289),H(1290,1,si,Ds),E.Mb=function(i){return Vur(v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$4$Type",1290),H(1291,1,si,Q5t),E.Mb=function(i){return Ffr(this.a,v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$5$Type",1291),H(1292,1,{},Z5t),E.Kb=function(i){return idr(this.a,v(i,74))},K(m5,"ElkGraphComponentsProcessor/lambda$6$Type",1292),H(1205,1,{},iPt),E.a=0,K(m5,"ElkGraphTransformer",1205),H(1206,1,{},Lm),E.Yd=function(i,l){I4r(this,v(i,167),v(l,272))},K(m5,"ElkGraphTransformer/OffsetApplier",1206),H(1207,1,vr,J5t),E.Cd=function(i){$sr(this,v(i,8))},K(m5,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),H(760,1,{},BS),K(_ge,DBe,760),H(1195,1,ui,eE),E.Ne=function(i,l){return y4r(v(i,235),v(l,235))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(_ge,$Xt,1195),H(1196,1,vr,qRt),E.Cd=function(i){E0r(this.b,this.a,v(i,250))},K(_ge,MBe,1196),H(738,205,K_,P7e),E.rf=function(i,l){uYt(this,i,l)},K(_ge,"ForceLayoutProvider",738),H(309,137,{3:1,309:1,96:1,137:1}),K(VG,"FParticle",309),H(250,309,{3:1,250:1,309:1,96:1,137:1},sLt),E.Ib=function(){var i;return this.a?(i=$l(this.a.a,this,0),i>=0?"b"+i+"["+gfe(this.a)+"]":"b["+gfe(this.a)+"]"):"b_"+vE(this)},K(VG,"FBendpoint",250),H(290,137,{3:1,290:1,96:1,137:1},tOt),E.Ib=function(){return gfe(this)},K(VG,"FEdge",290),H(235,137,{3:1,235:1,96:1,137:1},PQ);var q8r=K(VG,"FGraph",235);H(454,309,{3:1,454:1,309:1,96:1,137:1},rPt),E.Ib=function(){return this.b==null||this.b.length==0?"l["+gfe(this.a)+"]":"l_"+this.b},K(VG,"FLabel",454),H(153,309,{3:1,153:1,309:1,96:1,137:1},MIt),E.Ib=function(){return tOe(this)},E.a=0,K(VG,"FNode",153),H(2100,1,{}),E.vf=function(i){TPe(this,i)},E.wf=function(){iqt(this)},E.d=0,K(PBe,"AbstractForceModel",2100),H(641,2100,{641:1},tUt),E.uf=function(i,l){var d,g,y,x,T;return NWt(this.f,i,l),y=$s(Eo(l.d),i.d),T=u.Math.sqrt(y.a*y.a+y.b*y.b),g=u.Math.max(0,T-hD(i.e)/2-hD(l.e)/2),d=fVt(this.e,i,l),d>0?x=-qhr(g,this.c)*d:x=yor(g,this.b)*v(oe(i,(A0(),g6)),17).a,Vp(y,x/T),y},E.vf=function(i){TPe(this,i),this.a=v(oe(i,(A0(),ute)),17).a,this.c=We(at(oe(i,hte))),this.b=We(at(oe(i,Gbe)))},E.xf=function(i){return i<this.a},E.a=0,E.b=0,E.c=0,K(PBe,"EadesModel",641),H(642,2100,{642:1},e9t),E.uf=function(i,l){var d,g,y,x,T;return NWt(this.f,i,l),y=$s(Eo(l.d),i.d),T=u.Math.sqrt(y.a*y.a+y.b*y.b),g=u.Math.max(0,T-hD(i.e)/2-hD(l.e)/2),x=vor(g,this.a)*v(oe(i,(A0(),g6)),17).a,d=fVt(this.e,i,l),d>0&&(x-=Tir(g,this.a)*d),Vp(y,x*this.b/T),y},E.vf=function(i){var l,d,g,y,x,T,R;for(TPe(this,i),this.b=We(at(oe(i,(A0(),qbe)))),this.c=this.b/v(oe(i,ute),17).a,g=i.e.c.length,x=0,y=0,R=new me(i.e);R.a<R.c.c.length;)T=v(pe(R),153),x+=T.e.a,y+=T.e.b;l=x*y,d=We(at(oe(i,hte)))*ep,this.a=u.Math.sqrt(l/(2*g))*d},E.wf=function(){iqt(this),this.b-=this.c},E.xf=function(i){return this.b>0},E.a=0,E.b=0,E.c=0,K(PBe,"FruchtermanReingoldModel",642),H(860,1,Hf,X3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KJ),""),"Force Model"),"Determines the model for force calculation."),nGe),(dy(),Ra)),rGe),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,BBe),""),"Iterations"),"The number of iterations on the force model."),Nt(300)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,FBe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wge),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),sg),Fo),ws),bn(Hn)))),bs(i,wge,KJ,snn),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Ege),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Fo),ws),bn(Hn)))),bs(i,Ege,KJ,rnn),vKt((new Q3t,i))};var enn,tnn,nGe,nnn,rnn,inn,ann,snn;K(EM,"ForceMetaDataProvider",860),H(432,22,{3:1,34:1,22:1,432:1},PRe);var zbe,cte,rGe=$r(EM,"ForceModelStrategy",432,jr,ufr,Flr),onn;H(py,1,Hf,Q3t),E.hf=function(i){vKt(i)};var lnn,cnn,iGe,ute,aGe,unn,hnn,dnn,fnn,sGe,pnn,oGe,lGe,gnn,g6,mnn,Gbe,cGe,bnn,ynn,hte,qbe,vnn,_nn,wnn,uGe,Enn;K(EM,"ForceOptions",py),H(1001,1,{},e1),E.sf=function(){var i;return i=new P7e,i},E.tf=function(i){},K(EM,"ForceOptions/ForceFactory",1001);var xq,JM,m6,dte;H(861,1,Hf,Z3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,UBe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Fs))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zBe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[mg]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,GBe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),hGe),Ra),yGe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,qBe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),sg),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,HBe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Nt(qi)),Zl),Ao),bn(Hn)))),jWt((new J3t,i))};var xnn,Snn,hGe,Tnn,Cnn,Ann;K(EM,"StressMetaDataProvider",861),H(1004,1,Hf,J3t),E.hf=function(i){jWt(i)};var fte,dGe,fGe,pGe,gGe,mGe,knn,Rnn,Inn,Nnn,bGe,Onn;K(EM,"StressOptions",1004),H(1005,1,{},Fh),E.sf=function(){var i;return i=new nOt,i},E.tf=function(i){},K(EM,"StressOptions/StressFactory",1005),H(1110,205,K_,nOt),E.rf=function(i,l){var d,g,y,x,T;for(l.Ug(HXt,1),Vt(Ht(Et(i,(iG(),gGe))))?Vt(Ht(Et(i,bGe)))||oz((d=new dL((fE(),new aE(i))),d)):uYt(new P7e,i,l.eh(1)),y=TUt(i),g=nWt(this.a,y),T=g.Kc();T.Ob();)x=v(T.Pb(),235),!(x.e.c.length<=1)&&(Kkr(this.b,x),w3r(this.b),Cu(x.d,new Fb));y=mKt(g),CKt(y),l.Vg()},K(ZJ,"StressLayoutProvider",1110),H(1111,1,vr,Fb),E.Cd=function(i){LPe(v(i,454))},K(ZJ,"StressLayoutProvider/lambda$0$Type",1111),H(1002,1,{},e6t),E.c=0,E.e=0,E.g=0,K(ZJ,"StressMajorization",1002),H(391,22,{3:1,34:1,22:1,391:1},ohe);var Hbe,Vbe,Ybe,yGe=$r(ZJ,"StressMajorization/Dimension",391,jr,s0r,$lr),Lnn;H(1003,1,ui,eCt),E.Ne=function(i,l){return flr(this.a,v(i,153),v(l,153))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ZJ,"StressMajorization/lambda$0$Type",1003),H(1192,1,{},lMt),K(c6,"ElkLayered",1192),H(1193,1,vr,tCt),E.Cd=function(i){XSr(this.a,v(i,36))},K(c6,"ElkLayered/lambda$0$Type",1193),H(1194,1,vr,nCt),E.Cd=function(i){plr(this.a,v(i,36))},K(c6,"ElkLayered/lambda$1$Type",1194),H(1281,1,{},VIt);var Dnn,Mnn,Pnn;K(c6,"GraphConfigurator",1281),H(770,1,vr,_7e),E.Cd=function(i){bHt(this.a,v(i,10))},K(c6,"GraphConfigurator/lambda$0$Type",770),H(771,1,{},rd),E.Kb=function(i){return EDe(),new xn(null,new Nn(v(i,30).a,16))},K(c6,"GraphConfigurator/lambda$1$Type",771),H(772,1,vr,w7e),E.Cd=function(i){bHt(this.a,v(i,10))},K(c6,"GraphConfigurator/lambda$2$Type",772),H(1109,205,K_,s6t),E.rf=function(i,l){var d;d=Ikr(new l6t,i),Ze(Et(i,(qt(),W4)))===Ze((Km(),Cy))?lvr(this.a,d,l):b3r(this.a,d,l),l.$g()||cKt(new eTt,d)},K(c6,"LayeredLayoutProvider",1109),H(367,22,{3:1,34:1,22:1,367:1},wU);var N0,em,qc,ru,Gl,vGe=$r(c6,"LayeredPhases",367,jr,upr,Ulr),Bnn;H(1717,1,{},v$t),E.i=0;var Fnn;K(QG,"ComponentsToCGraphTransformer",1717);var $nn;H(1718,1,{},uL),E.yf=function(i,l){return u.Math.min(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},E.zf=function(i,l){return u.Math.min(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},K(QG,"ComponentsToCGraphTransformer/1",1718),H(86,1,{86:1}),E.i=0,E.k=!0,E.o=Ss;var jbe=K(CM,"CNode",86);H(470,86,{470:1,86:1},U8e,XLe),E.Ib=function(){return""},K(QG,"ComponentsToCGraphTransformer/CRectNode",470),H(1688,1,{},wT);var Wbe,Kbe;K(QG,"OneDimensionalComponentsCompaction",1688),H(1689,1,{},d_),E.Kb=function(i){return Qfr(v(i,42))},E.Fb=function(i){return this===i},K(QG,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),H(1690,1,{},tE),E.Kb=function(i){return uvr(v(i,42))},E.Fb=function(i){return this===i},K(QG,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),H(1720,1,{},gLt),K(CM,"CGraph",1720),H(194,1,{194:1},z0e),E.b=0,E.c=0,E.e=0,E.g=!0,E.i=Ss,K(CM,"CGroup",194),H(1719,1,{},qu),E.yf=function(i,l){return u.Math.max(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},E.zf=function(i,l){return u.Math.max(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},K(CM,bXt,1719),H(1721,1,{},gVt),E.d=!1;var Unn,Xbe=K(CM,_Xt,1721);H(1722,1,{},$b),E.Kb=function(i){return xRe(),Qn(),v(v(i,42).a,86).d.e!=0},E.Fb=function(i){return this===i},K(CM,wXt,1722),H(833,1,{},QIe),E.a=!1,E.b=!1,E.c=!1,E.d=!1,K(CM,EXt,833),H(1898,1,{},N9t),K(JJ,xXt,1898);var Sq=$a(Q_,gXt);H(1899,1,{382:1},hDt),E.bf=function(i){T5r(this,v(i,476))},K(JJ,SXt,1899),H(Jv,1,ui,Mf),E.Ne=function(i,l){return Ddr(v(i,86),v(l,86))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(JJ,TXt,Jv),H(476,1,{476:1},FRe),E.a=!1,K(JJ,CXt,476),H(1901,1,ui,nE),E.Ne=function(i,l){return Mwr(v(i,476),v(l,476))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(JJ,AXt,1901),H(148,1,{148:1},XR,DIe),E.Fb=function(i){var l;return i==null||H8r!=cd(i)?!1:(l=v(i,148),Ec(this.c,l.c)&&Ec(this.d,l.d))},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.c,this.d]))},E.Ib=function(){return"("+this.c+Xo+this.d+(this.a?"cx":"")+this.b+")"},E.a=!0,E.c=0,E.d=0;var H8r=K(Q_,"Point",148);H(416,22,{3:1,34:1,22:1,416:1},tX);var dx,$4,A5,U4,znn=$r(Q_,"Point/Quadrant",416,jr,v1r,zlr),Gnn;H(1708,1,{},i6t),E.b=null,E.c=null,E.d=null,E.e=null,E.f=null;var qnn,Hnn,Vnn,Ynn,jnn;K(Q_,"RectilinearConvexHull",1708),H(583,1,{382:1},VZ),E.bf=function(i){cgr(this,v(i,148))},E.b=0;var _Ge;K(Q_,"RectilinearConvexHull/MaximalElementsEventHandler",583),H(1710,1,ui,Pf),E.Ne=function(i,l){return Mdr(at(i),at(l))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),H(1709,1,{382:1},MFt),E.bf=function(i){UTr(this,v(i,148))},E.a=0,E.b=null,E.c=null,E.d=null,E.e=null,K(Q_,"RectilinearConvexHull/RectangleEventHandler",1709),H(1711,1,ui,ET),E.Ne=function(i,l){return q0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$0$Type",1711),H(1712,1,ui,KA),E.Ne=function(i,l){return H0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$1$Type",1712),H(1713,1,ui,f0),E.Ne=function(i,l){return G0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$2$Type",1713),H(1714,1,ui,WA),E.Ne=function(i,l){return V0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$3$Type",1714),H(1715,1,ui,rU),E.Ne=function(i,l){return Exr(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$4$Type",1715),H(1716,1,{},UDt),K(Q_,"Scanline",1716),H(2104,1,{}),K(tp,"AbstractGraphPlacer",2104),H(335,1,{335:1},ANt),E.Ff=function(i){return this.Gf(i)?(Rn(this.b,v(oe(i,(At(),ob)),21),i),!0):!1},E.Gf=function(i){var l,d,g,y;for(l=v(oe(i,(At(),ob)),21),y=v(Zi(da,l),21),g=y.Kc();g.Ob();)if(d=v(g.Pb(),21),!v(Zi(this.b,d),15).dc())return!1;return!0};var da;K(tp,"ComponentGroup",335),H(779,2104,{},$7e),E.Hf=function(i){var l,d;for(d=new me(this.a);d.a<d.c.c.length;)if(l=v(pe(d),335),l.Ff(i))return;Lt(this.a,new ANt(i))},E.Ef=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le;if(this.a.c.length=0,l.a.c.length=0,i.dc()){l.f.a=0,l.f.b=0;return}for(T=v(i.Xb(0),36),Ul(l,T),y=i.Kc();y.Ob();)g=v(y.Pb(),36),this.Hf(g);for(le=new ho,x=We(at(oe(T,(qt(),Fq)))),D=new me(this.a);D.a<D.c.c.length;)R=v(pe(D),335),q=AKt(R,x),ey(oQ(R.b),le.a,le.b),le.a+=q.a,le.b+=q.b;if(l.f.a=le.a-x,l.f.b=le.b-x,Vt(Ht(oe(T,Zte)))&&Ze(oe(T,lb))===Ze((Xm(),xN))){for(ae=i.Kc();ae.Ob();)J=v(ae.Pb(),36),hI(J,J.c.a,J.c.b);for(d=new jA,ZPe(d,i,x),re=i.Kc();re.Ob();)J=v(re.Pb(),36),Hi(i1(J.c),d.e);Hi(i1(l.f),d.a)}for(O=new me(this.a);O.a<O.c.c.length;)R=v(pe(O),335),GOe(l,oQ(R.b))},K(tp,"ComponentGroupGraphPlacer",779),H(1312,779,{},b6t),E.Hf=function(i){yzt(this,i)},E.Ef=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(this.a.c.length=0,l.a.c.length=0,i.dc()){l.f.a=0,l.f.b=0;return}for(T=v(i.Xb(0),36),Ul(l,T),y=i.Kc();y.Ob();)g=v(y.Pb(),36),yzt(this,g);for(je=new ho,Ue=new ho,de=new ho,le=new ho,x=We(at(oe(T,(qt(),Fq)))),D=new me(this.a);D.a<D.c.c.length;){if(R=v(pe(D),335),Bm(v(oe(l,(Ei(),gw)),88))){for(de.a=je.a,Me=new vL(uD(Dde(R.b).a).a.kc());Me.b.Ob();)if(Se=v(WK(Me.b.Pb()),21),Se.Hc((Bt(),or))){de.a=Ue.a;break}}else if(LT(v(oe(l,gw),88))){for(de.b=je.b,Me=new vL(uD(Dde(R.b).a).a.kc());Me.b.Ob();)if(Se=v(WK(Me.b.Pb()),21),Se.Hc((Bt(),cr))){de.b=Ue.b;break}}if(q=AKt(v(R,579),x),ey(oQ(R.b),de.a,de.b),Bm(v(oe(l,gw),88))){for(Ue.a=de.a+q.a,le.a=u.Math.max(le.a,Ue.a),Me=new vL(uD(Dde(R.b).a).a.kc());Me.b.Ob();)if(Se=v(WK(Me.b.Pb()),21),Se.Hc((Bt(),Mr))){je.a=de.a+q.a;break}Ue.b=de.b+q.b,de.b=Ue.b,le.b=u.Math.max(le.b,de.b)}else if(LT(v(oe(l,gw),88))){for(Ue.b=de.b+q.b,le.b=u.Math.max(le.b,Ue.b),Me=new vL(uD(Dde(R.b).a).a.kc());Me.b.Ob();)if(Se=v(WK(Me.b.Pb()),21),Se.Hc((Bt(),gr))){je.b=de.b+q.b;break}Ue.a=de.a+q.a,de.a=Ue.a,le.a=u.Math.max(le.a,de.a)}}if(l.f.a=le.a-x,l.f.b=le.b-x,Vt(Ht(oe(T,Zte)))&&Ze(oe(T,lb))===Ze((Xm(),xN))){for(ae=i.Kc();ae.Ob();)J=v(ae.Pb(),36),hI(J,J.c.a,J.c.b);for(d=new jA,ZPe(d,i,x),re=i.Kc();re.Ob();)J=v(re.Pb(),36),Hi(i1(J.c),d.e);Hi(i1(l.f),d.a)}for(O=new me(this.a);O.a<O.c.c.length;)R=v(pe(O),335),GOe(l,oQ(R.b))},K(tp,"ComponentGroupModelOrderGraphPlacer",1312),H(389,22,{3:1,34:1,22:1,389:1},nX);var Qbe,wGe,Zbe,z4,EGe=$r(tp,"ComponentOrderingStrategy",389,jr,p1r,Glr),Wnn;H(659,1,{},jA),K(tp,"ComponentsCompactor",659),H(1533,13,oXt,BPt),E.Fc=function(i){return KD(this,v(i,148))},K(tp,"ComponentsCompactor/Hullpoints",1533),H(1530,1,{855:1},BGt),E.a=!1,K(tp,"ComponentsCompactor/InternalComponent",1530),H(1529,1,jg,n6t),E.Jc=function(i){To(this,i)},E.Kc=function(){return new me(this.a)},K(tp,"ComponentsCompactor/InternalConnectedComponents",1529),H(1532,1,{602:1},yVt),E.Bf=function(){return null},E.Cf=function(){return this.a},E.Af=function(){return V0e(this.d)},E.Df=function(){return this.b},K(tp,"ComponentsCompactor/InternalExternalExtension",1532),H(1531,1,{602:1},o6t),E.Cf=function(){return this.a},E.Af=function(){return V0e(this.d)},E.Bf=function(){return this.c},E.Df=function(){return this.b},K(tp,"ComponentsCompactor/InternalUnionExternalExtension",1531),H(1535,1,{},$Yt),K(tp,"ComponentsCompactor/OuterSegments",1535),H(1534,1,{},r6t),K(tp,"ComponentsCompactor/Segments",1534),H(1282,1,{},QPt),K(tp,DBe,1282),H(1283,1,ui,lK),E.Ne=function(i,l){return W0r(v(i,36),v(l,36))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(tp,"ComponentsProcessor/lambda$0$Type",1283),H(579,335,{335:1,579:1},PPt),E.Ff=function(i){return Q9e(this,i)},E.Gf=function(i){return yYt(this,i)};var _i;K(tp,"ModelOrderComponentGroup",579),H(1310,2104,{},cK),E.Ef=function(i,l){var d,g,y,x,T,R,O,D,q,J,re;if(i.gc()==1){J=v(i.Xb(0),36),J!=l&&(l.a.c.length=0,Sjt(l,J,0,0),Ul(l,J),FNe(l.d,J.d),l.f.a=J.f.a,l.f.b=J.f.b);return}else if(i.dc()){l.a.c.length=0,l.f.a=0,l.f.b=0;return}for(this.Jf(i,l),y=v(i.Xb(0),36),l.a.c.length=0,Ul(l,y),D=0,re=0,T=i.Kc();T.Ob();)x=v(T.Pb(),36),q=x.f,D=u.Math.max(D,q.a),re+=q.a*q.b;if(D=u.Math.max(D,u.Math.sqrt(re)*We(at(oe(l,(qt(),Qte))))),g=We(at(oe(l,Fq))),this.If(i,l,D,g),Vt(Ht(oe(y,Zte)))){for(d=new jA,ZPe(d,i,g),O=i.Kc();O.Ob();)R=v(O.Pb(),36),Hi(i1(R.c),d.e);Hi(i1(l.f),d.a)}GOe(l,i)},E.If=function(i,l,d,g){var y,x,T,R,O,D,q,J;for(q=0,J=0,R=0,y=g,T=i.Kc();T.Ob();)x=v(T.Pb(),36),D=x.f,q+D.a>d&&(q=0,J+=R+g,R=0),O=x.c,hI(x,q+O.a,J+O.b),i1(O),y=u.Math.max(y,q+D.a),R=u.Math.max(R,D.b),q+=D.a+g;l.f.a=y,l.f.b=J+R},E.Jf=function(i,l){var d,g,y,x,T;if(Ze(oe(l,(qt(),j4)))===Ze((z_(),z4))){for(g=i.Kc();g.Ob();){for(d=v(g.Pb(),36),T=0,x=new me(d.a);x.a<x.c.c.length;)y=v(pe(x),10),T+=v(oe(y,asn),17).a;d.p=T}Fn(),i.jd(new uK)}},K(tp,"SimpleRowGraphPlacer",1310),H(1313,1310,{},Ub),E.If=function(i,l,d,g){var y,x,T,R,O,D,q,J,re,ae;for(re=0,ae=0,R=0,y=g,O=null,J=0,T=i.Kc();T.Ob();)x=v(T.Pb(),36),q=x.f,(re+q.a>d&&!v(oe(x,(At(),ob)),21).Hc((Bt(),or))||O&&v(oe(O,(At(),ob)),21).Hc((Bt(),gr))||v(oe(x,(At(),ob)),21).Hc((Bt(),cr)))&&(re=J,ae+=R+g,R=0),D=x.c,v(oe(x,(At(),ob)),21).Hc((Bt(),or))&&(re=y+g),hI(x,re+D.a,ae+D.b),y=u.Math.max(y,re+q.a),v(oe(x,ob),21).Hc(Mr)&&(J=u.Math.max(J,re+q.a+g)),i1(D),R=u.Math.max(R,q.b),re+=q.a+g,O=x;l.f.a=y,l.f.b=ae+R},E.Jf=function(i,l){},K(tp,"ModelOrderRowGraphPlacer",1313),H(1311,1,ui,uK),E.Ne=function(i,l){return lbr(v(i,36),v(l,36))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(tp,"SimpleRowGraphPlacer/1",1311);var Knn;H(1280,1,ig,I6e),E.Lb=function(i){var l;return l=v(oe(v(i,249).b,(qt(),Nl)),75),!!l&&l.b!=0},E.Fb=function(i){return this===i},E.Mb=function(i){var l;return l=v(oe(v(i,249).b,(qt(),Nl)),75),!!l&&l.b!=0},K(eee,"CompoundGraphPostprocessor/1",1280),H(1279,1,ba,c6t),E.Kf=function(i,l){FGt(this,v(i,36),l)},K(eee,"CompoundGraphPreprocessor",1279),H(453,1,{453:1},kzt),E.c=!1,K(eee,"CompoundGraphPreprocessor/ExternalPort",453),H(249,1,{249:1},PX),E.Ib=function(){return Xhe(this.c)+":"+cVt(this.b)},K(eee,"CrossHierarchyEdge",249),H(777,1,ui,E7e),E.Ne=function(i,l){return cwr(this,v(i,249),v(l,249))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(eee,"CrossHierarchyEdgeComparator",777),H(305,137,{3:1,305:1,96:1,137:1}),E.p=0,K(tu,"LGraphElement",305),H(18,305,{3:1,18:1,305:1,96:1,137:1},NE),E.Ib=function(){return cVt(this)};var Jbe=K(tu,"LEdge",18);H(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},d9e),E.Jc=function(i){To(this,i)},E.Kc=function(){return new me(this.b)},E.Ib=function(){return this.b.c.length==0?"G-unlayered"+Wv(this.a):this.a.c.length==0?"G-layered"+Wv(this.b):"G[layerless"+Wv(this.a)+", layers"+Wv(this.b)+"]"};var Xnn=K(tu,"LGraph",36),Qnn;H(666,1,{}),E.Lf=function(){return this.e.n},E.of=function(i){return oe(this.e,i)},E.Mf=function(){return this.e.o},E.Nf=function(){return this.e.p},E.pf=function(i){return ya(this.e,i)},E.Of=function(i){this.e.n.a=i.a,this.e.n.b=i.b},E.Pf=function(i){this.e.o.a=i.a,this.e.o.b=i.b},E.Qf=function(i){this.e.p=i},K(tu,"LGraphAdapters/AbstractLShapeAdapter",666),H(474,1,{853:1},fL),E.Rf=function(){var i,l;if(!this.b)for(this.b=Pg(this.a.b.c.length),l=new me(this.a.b);l.a<l.c.c.length;)i=v(pe(l),72),Lt(this.b,new wK(i));return this.b},E.b=null,K(tu,"LGraphAdapters/LEdgeAdapter",474),H(665,1,{},Gde),E.Sf=function(){var i,l,d,g,y,x;if(!this.b){for(this.b=new Ot,g=new me(this.a.b);g.a<g.c.c.length;)for(d=v(pe(g),30),x=new me(d.a);x.a<x.c.c.length;)if(y=v(pe(x),10),this.c.Mb(y)&&(Lt(this.b,new BX(this,y,this.e)),this.d)){if(ya(y,(At(),S6)))for(l=v(oe(y,S6),15).Kc();l.Ob();)i=v(l.Pb(),10),Lt(this.b,new BX(this,i,!1));if(ya(y,v6))for(l=v(oe(y,v6),15).Kc();l.Ob();)i=v(l.Pb(),10),Lt(this.b,new BX(this,i,!1))}}return this.b},E.Lf=function(){throw _e(new zb(jXt))},E.of=function(i){return oe(this.a,i)},E.Mf=function(){return this.a.f},E.Nf=function(){return this.a.p},E.pf=function(i){return ya(this.a,i)},E.Of=function(i){throw _e(new zb(jXt))},E.Pf=function(i){this.a.f.a=i.a,this.a.f.b=i.b},E.Qf=function(i){this.a.p=i},E.b=null,E.d=!1,E.e=!1,K(tu,"LGraphAdapters/LGraphAdapter",665),H(585,666,{187:1},wK),K(tu,"LGraphAdapters/LLabelAdapter",585),H(584,666,{695:1},BX),E.Tf=function(){return this.b},E.Uf=function(){return Fn(),Fn(),Zo},E.Rf=function(){var i,l;if(!this.a)for(this.a=Pg(v(this.e,10).b.c.length),l=new me(v(this.e,10).b);l.a<l.c.c.length;)i=v(pe(l),72),Lt(this.a,new wK(i));return this.a},E.Vf=function(){var i;return i=v(this.e,10).d,new oIe(i.d,i.c,i.a,i.b)},E.Wf=function(){return Fn(),Fn(),Zo},E.Xf=function(){var i,l;if(!this.c)for(this.c=Pg(v(this.e,10).j.c.length),l=new me(v(this.e,10).j);l.a<l.c.c.length;)i=v(pe(l),12),Lt(this.c,new ZRt(i,this.d));return this.c},E.Yf=function(){return Vt(Ht(oe(v(this.e,10),(At(),Gqe))))},E.Zf=function(i){v(this.e,10).d.b=i.b,v(this.e,10).d.d=i.d,v(this.e,10).d.c=i.c,v(this.e,10).d.a=i.a},E.$f=function(i){v(this.e,10).f.b=i.b,v(this.e,10).f.d=i.d,v(this.e,10).f.c=i.c,v(this.e,10).f.a=i.a},E._f=function(){amr(this,(TL(),Qnn))},E.a=null,E.b=null,E.c=null,E.d=!1,K(tu,"LGraphAdapters/LNodeAdapter",584),H(1788,666,{852:1},ZRt),E.Uf=function(){var i,l,d,g,y,x,T,R;if(this.d&&v(this.e,12).i.k==(lr(),iu))return Fn(),Fn(),Zo;if(!this.a){for(this.a=new Ot,d=new me(v(this.e,12).e);d.a<d.c.c.length;)i=v(pe(d),18),Lt(this.a,new fL(i));if(this.d&&(g=v(oe(v(this.e,12),(At(),kh)),10),g))for(l=new yr(_r(Hs(g).a.Kc(),new S));zr(l);)i=v(Rr(l),18),Lt(this.a,new fL(i));if(ya(v(this.e,12).i,(At(),yx))&&(T=v(oe(v(this.e,12).i,yx),337),R=v(j1(T.e,this.e),113),R))for(x=new me(R.b);x.a<x.c.c.length;)y=v(pe(x),340),Lt(this.a,new fL(y.a))}return this.a},E.Rf=function(){var i,l;if(!this.b)for(this.b=Pg(v(this.e,12).f.c.length),l=new me(v(this.e,12).f);l.a<l.c.c.length;)i=v(pe(l),72),Lt(this.b,new wK(i));return this.b},E.Wf=function(){var i,l,d,g,y,x,T,R;if(this.d&&v(this.e,12).i.k==(lr(),iu))return Fn(),Fn(),Zo;if(!this.c){for(this.c=new Ot,d=new me(v(this.e,12).g);d.a<d.c.c.length;)i=v(pe(d),18),Lt(this.c,new fL(i));if(this.d&&(g=v(oe(v(this.e,12),(At(),kh)),10),g))for(l=new yr(_r(os(g).a.Kc(),new S));zr(l);)i=v(Rr(l),18),Lt(this.c,new fL(i));if(ya(v(this.e,12).i,(At(),yx))&&(T=v(oe(v(this.e,12).i,yx),337),R=v(j1(T.e,this.e),113),R))for(x=new me(R.e);x.a<x.c.c.length;)y=v(pe(x),340),Lt(this.c,new fL(y.a))}return this.c},E.ag=function(){return v(this.e,12).j},E.bg=function(){return Vt(Ht(oe(v(this.e,12),(At(),Lq))))},E.a=null,E.b=null,E.c=null,E.d=!1,K(tu,"LGraphAdapters/LPortAdapter",1788),H(1789,1,ui,N6e),E.Ne=function(i,l){return eCr(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(tu,"LGraphAdapters/PortComparator",1789),H(818,1,si,O6e),E.Mb=function(i){return v(i,10),TL(),!0},K(tu,"LGraphAdapters/lambda$0$Type",818),H(404,305,{3:1,305:1,404:1,96:1,137:1}),K(tu,"LShape",404),H(72,404,{3:1,305:1,72:1,404:1,96:1,137:1},p7t,w8e),E.Ib=function(){var i;return i=qur(this),i==null?"label":"l_"+i},K(tu,"LLabel",72),H(214,1,{3:1,4:1,214:1,423:1}),E.Fb=function(i){var l;return $e(i,214)?(l=v(i,214),this.d==l.d&&this.a==l.a&&this.b==l.b&&this.c==l.c):!1},E.Hb=function(){var i,l;return i=dk(this.b)<<16,i|=dk(this.a)&vs,l=dk(this.c)<<16,l|=dk(this.d)&vs,i^l},E.cg=function(i){var l,d,g,y,x,T,R,O,D,q,J;for(x=0;x<i.length&&azt((sr(x,i.length),i.charCodeAt(x)),KXt);)++x;for(l=i.length;l>0&&azt((sr(l-1,i.length),i.charCodeAt(l-1)),XXt);)--l;if(x<l){q=T4((mo(x,l,i.length),i.substr(x,l-x)),",|;");try{for(R=q,O=0,D=R.length;O<D;++O){if(T=R[O],y=T4(T,"="),y.length!=2)throw _e(new ar("Expecting a list of key-value pairs."));g=v4(y[0]),J=y4(v4(y[1])),An(g,"top")?this.d=J:An(g,"left")?this.b=J:An(g,"bottom")?this.a=J:An(g,"right")&&(this.c=J)}}catch(re){throw re=Da(re),$e(re,130)?(d=re,_e(new ar(QXt+d))):_e(re)}}},E.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},E.a=0,E.b=0,E.c=0,E.d=0,K(ZG,"Spacing",214),H(140,214,ZXt,mL,yIt,oIe,hde);var xGe=K(ZG,"ElkMargin",140);H(660,140,ZXt,Iue),K(tu,"LMargin",660),H(10,404,{3:1,305:1,10:1,404:1,96:1,137:1},Jm),E.Ib=function(){return NGt(this)},E.i=!1;var tm=K(tu,"LNode",10);H(273,22,{3:1,34:1,22:1,273:1},LL);var ip,hs,Pc,Ws,is,iu,eye=$r(tu,"LNode/NodeType",273,jr,Kpr,jcr),Znn;H(775,1,si,L6e),E.Mb=function(i){return Vt(Ht(oe(v(i,72),(qt(),Vye))))},K(tu,"LNode/lambda$0$Type",775),H(107,214,JXt,ek,bE,NIe);var SGe=K(ZG,"ElkPadding",107);H(778,107,JXt,q7e),K(tu,"LPadding",778),H(12,404,{3:1,305:1,12:1,404:1,96:1,137:1},zc),E.Ib=function(){var i,l,d;return i=new Cv,bi((i.a+="p_",i),tJ(this)),this.i&&bi(Kc((i.a+="[",i),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&v(Yt(this.e,0),18).c!=this&&(l=v(Yt(this.e,0),18).c,bi((i.a+=" << ",i),tJ(l)),bi(Kc((i.a+="[",i),l.i),"]")),this.e.c.length==0&&this.g.c.length==1&&v(Yt(this.g,0),18).d!=this&&(d=v(Yt(this.g,0),18).d,bi((i.a+=" >> ",i),tJ(d)),bi(Kc((i.a+="[",i),d.i),"]")),i.a},E.c=!0,E.d=!1;var TGe,CGe,AGe,kGe,RGe,IGe,Jnn=K(tu,"LPort",12);H(408,1,jg,FR),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=new me(this.a.e),new rCt(i)},K(tu,"LPort/1",408),H(1309,1,io,rCt),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(pe(this.a),18).c},E.Ob=function(){return nc(this.a)},E.Qb=function(){lD(this.a)},K(tu,"LPort/1/1",1309),H(369,1,jg,QA),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=new me(this.a.g),new x7e(i)},K(tu,"LPort/2",369),H(776,1,io,x7e),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(pe(this.a),18).d},E.Ob=function(){return nc(this.a)},E.Qb=function(){lD(this.a)},K(tu,"LPort/2/1",776),H(1302,1,jg,YRt),E.Jc=function(i){To(this,i)},E.Kc=function(){return new V1(this)},K(tu,"LPort/CombineIter",1302),H(208,1,io,V1),E.Nb=function(i){xo(this,i)},E.Qb=function(){S7t()},E.Ob=function(){return QL(this)},E.Pb=function(){return nc(this.a)?pe(this.a):pe(this.b)},K(tu,"LPort/CombineIter/1",208),H(1303,1,ig,Nyt),E.Lb=function(i){return V9t(i)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).g.c.length!=0},K(tu,"LPort/lambda$0$Type",1303),H(1304,1,ig,Oyt),E.Lb=function(i){return Y9t(i)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).e.c.length!=0},K(tu,"LPort/lambda$1$Type",1304),H(1305,1,ig,Lyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),or)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),or)},K(tu,"LPort/lambda$2$Type",1305),H(1306,1,ig,Dyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),gr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),gr)},K(tu,"LPort/lambda$3$Type",1306),H(1307,1,ig,Myt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),Mr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),Mr)},K(tu,"LPort/lambda$4$Type",1307),H(1308,1,ig,Pyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),cr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),cr)},K(tu,"LPort/lambda$5$Type",1308),H(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Xc),E.Jc=function(i){To(this,i)},E.Kc=function(){return new me(this.a)},E.Ib=function(){return"L_"+$l(this.b.b,this,0)+Wv(this.a)},K(tu,"Layer",30),H(1330,1,{},l6t),K(my,eQt,1330),H(1334,1,{},Byt),E.Kb=function(i){return zl(v(i,84))},K(my,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),H(1337,1,{},Fyt),E.Kb=function(i){return zl(v(i,84))},K(my,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),H(1331,1,vr,iCt),E.Cd=function(i){CVt(this.a,v(i,123))},K(my,MBe,1331),H(1332,1,vr,aCt),E.Cd=function(i){CVt(this.a,v(i,123))},K(my,tQt,1332),H(1333,1,{},$yt),E.Kb=function(i){return new xn(null,new Nn(LNe(v(i,74)),16))},K(my,nQt,1333),H(1335,1,si,sCt),E.Mb=function(i){return hsr(this.a,v(i,27))},K(my,rQt,1335),H(1336,1,{},Uyt),E.Kb=function(i){return new xn(null,new Nn(Rdr(v(i,74)),16))},K(my,"ElkGraphImporter/lambda$5$Type",1336),H(1338,1,si,oCt),E.Mb=function(i){return dsr(this.a,v(i,27))},K(my,"ElkGraphImporter/lambda$7$Type",1338),H(1339,1,si,zyt),E.Mb=function(i){return qdr(v(i,74))},K(my,"ElkGraphImporter/lambda$8$Type",1339),H(1297,1,{},eTt);var ern;K(my,"ElkGraphLayoutTransferrer",1297),H(1298,1,si,lCt),E.Mb=function(i){return tlr(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),H(1299,1,vr,cCt),E.Cd=function(i){vU(),Lt(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),H(1300,1,si,uCt),E.Mb=function(i){return Uor(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),H(1301,1,vr,hCt),E.Cd=function(i){vU(),Lt(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),H(819,1,{},cIe),K(dr,"BiLinkedHashMultiMap",819),H(1550,1,ba,Gyt),E.Kf=function(i,l){kmr(v(i,36),l)},K(dr,"CommentNodeMarginCalculator",1550),H(1551,1,{},qyt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"CommentNodeMarginCalculator/lambda$0$Type",1551),H(1552,1,vr,Hyt),E.Cd=function(i){kkr(v(i,10))},K(dr,"CommentNodeMarginCalculator/lambda$1$Type",1552),H(1553,1,ba,Vyt),E.Kf=function(i,l){O5r(v(i,36),l)},K(dr,"CommentPostprocessor",1553),H(1554,1,ba,Yyt),E.Kf=function(i,l){eRr(v(i,36),l)},K(dr,"CommentPreprocessor",1554),H(1555,1,ba,jyt),E.Kf=function(i,l){KTr(v(i,36),l)},K(dr,"ConstraintsPostprocessor",1555),H(1556,1,ba,Wyt),E.Kf=function(i,l){nbr(v(i,36),l)},K(dr,"EdgeAndLayerConstraintEdgeReverser",1556),H(1557,1,ba,Kyt),E.Kf=function(i,l){Yvr(v(i,36),l)},K(dr,"EndLabelPostprocessor",1557),H(1558,1,{},Xyt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelPostprocessor/lambda$0$Type",1558),H(1559,1,si,Qyt),E.Mb=function(i){return opr(v(i,10))},K(dr,"EndLabelPostprocessor/lambda$1$Type",1559),H(1560,1,vr,Zyt),E.Cd=function(i){Pwr(v(i,10))},K(dr,"EndLabelPostprocessor/lambda$2$Type",1560),H(1561,1,ba,Jyt),E.Kf=function(i,l){SSr(v(i,36),l)},K(dr,"EndLabelPreprocessor",1561),H(1562,1,{},evt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelPreprocessor/lambda$0$Type",1562),H(1563,1,vr,LOt),E.Cd=function(i){Sar(this.a,this.b,this.c,v(i,10))},E.a=0,E.b=0,E.c=!1,K(dr,"EndLabelPreprocessor/lambda$1$Type",1563),H(1564,1,si,tvt),E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),EN))},K(dr,"EndLabelPreprocessor/lambda$2$Type",1564),H(1565,1,vr,dCt),E.Cd=function(i){pi(this.a,v(i,72))},K(dr,"EndLabelPreprocessor/lambda$3$Type",1565),H(1566,1,si,nvt),E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),s3))},K(dr,"EndLabelPreprocessor/lambda$4$Type",1566),H(1567,1,vr,fCt),E.Cd=function(i){pi(this.a,v(i,72))},K(dr,"EndLabelPreprocessor/lambda$5$Type",1567),H(1615,1,ba,Y3t),E.Kf=function(i,l){Vyr(v(i,36),l)};var trn;K(dr,"EndLabelSorter",1615),H(1616,1,ui,rvt),E.Ne=function(i,l){return S2r(v(i,466),v(l,466))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"EndLabelSorter/1",1616),H(466,1,{466:1},aDt),K(dr,"EndLabelSorter/LabelGroup",466),H(1617,1,{},ivt),E.Kb=function(i){return yU(),new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelSorter/lambda$0$Type",1617),H(1618,1,si,avt),E.Mb=function(i){return yU(),v(i,10).k==(lr(),is)},K(dr,"EndLabelSorter/lambda$1$Type",1618),H(1619,1,vr,svt),E.Cd=function(i){Fxr(v(i,10))},K(dr,"EndLabelSorter/lambda$2$Type",1619),H(1620,1,si,ovt),E.Mb=function(i){return yU(),Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),s3))},K(dr,"EndLabelSorter/lambda$3$Type",1620),H(1621,1,si,lvt),E.Mb=function(i){return yU(),Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),EN))},K(dr,"EndLabelSorter/lambda$4$Type",1621),H(1568,1,ba,cvt),E.Kf=function(i,l){Gkr(this,v(i,36))},E.b=0,E.c=0,K(dr,"FinalSplineBendpointsCalculator",1568),H(1569,1,{},uvt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),H(1570,1,{},hvt),E.Kb=function(i){return new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dr,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),H(1571,1,si,dvt),E.Mb=function(i){return!Jo(v(i,18))},K(dr,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),H(1572,1,si,fvt),E.Mb=function(i){return ya(v(i,18),(At(),sw))},K(dr,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),H(1573,1,vr,pCt),E.Cd=function(i){QCr(this.a,v(i,131))},K(dr,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),H(1574,1,vr,pvt),E.Cd=function(i){dG(v(i,18).a)},K(dr,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),H(803,1,ba,S7e),E.Kf=function(i,l){P6r(this,v(i,36),l)},K(dr,"GraphTransformer",803),H(517,22,{3:1,34:1,22:1,517:1},BRe);var tye,Tq,nrn=$r(dr,"GraphTransformer/Mode",517,jr,hfr,Ycr),rrn;H(1575,1,ba,gvt),E.Kf=function(i,l){iTr(v(i,36),l)},K(dr,"HierarchicalNodeResizingProcessor",1575),H(1576,1,ba,mvt),E.Kf=function(i,l){xmr(v(i,36),l)},K(dr,"HierarchicalPortConstraintProcessor",1576),H(1577,1,ui,bvt),E.Ne=function(i,l){return V2r(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortConstraintProcessor/NodeComparator",1577),H(1578,1,ba,yvt),E.Kf=function(i,l){YAr(v(i,36),l)},K(dr,"HierarchicalPortDummySizeProcessor",1578),H(1579,1,ba,vvt),E.Kf=function(i,l){nCr(this,v(i,36),l)},E.a=0,K(dr,"HierarchicalPortOrthogonalEdgeRouter",1579),H(1580,1,ui,_vt),E.Ne=function(i,l){return ror(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortOrthogonalEdgeRouter/1",1580),H(1581,1,ui,wvt),E.Ne=function(i,l){return ugr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortOrthogonalEdgeRouter/2",1581),H(1582,1,ba,Evt),E.Kf=function(i,l){vxr(v(i,36),l)},K(dr,"HierarchicalPortPositionProcessor",1582),H(1583,1,ba,tTt),E.Kf=function(i,l){MRr(this,v(i,36))},E.a=0,E.c=0;var pte,gte;K(dr,"HighDegreeNodeLayeringProcessor",1583),H(580,1,{580:1},xvt),E.b=-1,E.d=-1,K(dr,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),H(1584,1,{},Svt),E.Kb=function(i){return jU(),Hs(v(i,10))},E.Fb=function(i){return this===i},K(dr,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),H(1585,1,{},Tvt),E.Kb=function(i){return jU(),os(v(i,10))},E.Fb=function(i){return this===i},K(dr,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),H(1591,1,ba,Cvt),E.Kf=function(i,l){FAr(this,v(i,36),l)},K(dr,"HyperedgeDummyMerger",1591),H(804,1,{},SIe),E.a=!1,E.b=!1,E.c=!1,K(dr,"HyperedgeDummyMerger/MergeState",804),H(1592,1,{},Avt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"HyperedgeDummyMerger/lambda$0$Type",1592),H(1593,1,{},kvt),E.Kb=function(i){return new xn(null,new Nn(v(i,10).j,16))},K(dr,"HyperedgeDummyMerger/lambda$1$Type",1593),H(1594,1,vr,Rvt),E.Cd=function(i){v(i,12).p=-1},K(dr,"HyperedgeDummyMerger/lambda$2$Type",1594),H(1595,1,ba,Ivt),E.Kf=function(i,l){PAr(v(i,36),l)},K(dr,"HypernodesProcessor",1595),H(1596,1,ba,Nvt),E.Kf=function(i,l){VAr(v(i,36),l)},K(dr,"InLayerConstraintProcessor",1596),H(1597,1,ba,Ovt),E.Kf=function(i,l){Fmr(v(i,36),l)},K(dr,"InnermostNodeMarginCalculator",1597),H(1598,1,ba,Lvt),E.Kf=function(i,l){X7r(this,v(i,36))},E.a=Ss,E.b=Ss,E.c=ka,E.d=ka;var V8r=K(dr,"InteractiveExternalPortPositioner",1598);H(1599,1,{},Dvt),E.Kb=function(i){return v(i,18).d.i},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$0$Type",1599),H(1600,1,{},gCt),E.Kb=function(i){return ior(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$1$Type",1600),H(1601,1,{},Mvt),E.Kb=function(i){return v(i,18).c.i},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$2$Type",1601),H(1602,1,{},mCt),E.Kb=function(i){return aor(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$3$Type",1602),H(1603,1,{},bCt),E.Kb=function(i){return rlr(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$4$Type",1603),H(1604,1,{},yCt),E.Kb=function(i){return ilr(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$5$Type",1604),H(81,22,{3:1,34:1,22:1,81:1,196:1},ps),E.dg=function(){switch(this.g){case 15:return new Z_t;case 22:return new J_t;case 47:return new nwt;case 28:case 35:return new Yvt;case 32:return new Gyt;case 42:return new Vyt;case 1:return new Yyt;case 41:return new jyt;case 56:return new S7e((N8(),Tq));case 0:return new S7e((N8(),tye));case 2:return new Wyt;case 54:return new Kyt;case 33:return new Jyt;case 51:return new cvt;case 55:return new gvt;case 13:return new mvt;case 38:return new yvt;case 44:return new vvt;case 40:return new Evt;case 9:return new tTt;case 49:return new yNt;case 37:return new Cvt;case 43:return new Ivt;case 27:return new Nvt;case 30:return new Ovt;case 3:return new Lvt;case 18:return new Bvt;case 29:return new Fvt;case 5:return new nTt;case 50:return new Pvt;case 34:return new rTt;case 36:return new jvt;case 52:return new Y3t;case 11:return new Wvt;case 7:return new iTt;case 39:return new Kvt;case 45:return new Xvt;case 16:return new Qvt;case 10:return new u8t;case 48:return new t2t;case 21:return new n2t;case 23:return new Fue(($E(),_P));case 8:return new i2t;case 12:return new s2t;case 4:return new o2t;case 19:return new uTt;case 17:return new b2t;case 53:return new y2t;case 6:return new I2t;case 25:return new h6t;case 46:return new x2t;case 31:return new sOt;case 14:return new F2t;case 26:return new awt;case 20:return new q2t;case 24:return new Fue(($E(),vne));default:throw _e(new ar(Age+(this.f!=null?this.f:""+this.g)))}};var NGe,OGe,LGe,DGe,MGe,PGe,BGe,FGe,$Ge,UGe,k5,mte,bte,zGe,GGe,qGe,HGe,VGe,YGe,jGe,eP,WGe,KGe,XGe,QGe,ZGe,nye,yte,vte,JGe,_te,wte,Ete,jI,G4,q4,eqe,xte,Ste,tqe,Tte,Cte,nqe,rqe,iqe,aqe,Ate,rye,Cq,kte,Rte,Ite,Nte,sqe,oqe,lqe,cqe,Y8r=$r(dr,kge,81,jr,vYt,Vlr),irn;H(1605,1,ba,Bvt),E.Kf=function(i,l){W7r(v(i,36),l)},K(dr,"InvertedPortProcessor",1605),H(1606,1,ba,Fvt),E.Kf=function(i,l){qCr(v(i,36),l)},K(dr,"LabelAndNodeSizeProcessor",1606),H(1607,1,si,$vt),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),H(1608,1,si,Uvt),E.Mb=function(i){return v(i,10).k==(lr(),hs)},K(dr,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),H(1609,1,vr,DOt),E.Cd=function(i){Tar(this.b,this.a,this.c,v(i,10))},E.a=!1,E.c=!1,K(dr,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),H(1610,1,ba,nTt),E.Kf=function(i,l){_7r(v(i,36),l)};var arn;K(dr,"LabelDummyInserter",1610),H(1611,1,ig,zvt),E.Lb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),wN))},E.Fb=function(i){return this===i},E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),wN))},K(dr,"LabelDummyInserter/1",1611),H(1612,1,ba,Pvt),E.Kf=function(i,l){l7r(v(i,36),l)},K(dr,"LabelDummyRemover",1612),H(1613,1,si,Gvt),E.Mb=function(i){return Vt(Ht(oe(v(i,72),(qt(),Vye))))},K(dr,"LabelDummyRemover/lambda$0$Type",1613),H(1378,1,ba,rTt),E.Kf=function(i,l){e7r(this,v(i,36),l)},E.a=null;var iye;K(dr,"LabelDummySwitcher",1378),H(293,1,{293:1},yjt),E.c=0,E.d=null,E.f=0,K(dr,"LabelDummySwitcher/LabelDummyInfo",293),H(1379,1,{},qvt),E.Kb=function(i){return Bk(),new xn(null,new Nn(v(i,30).a,16))},K(dr,"LabelDummySwitcher/lambda$0$Type",1379),H(1380,1,si,Hvt),E.Mb=function(i){return Bk(),v(i,10).k==(lr(),Pc)},K(dr,"LabelDummySwitcher/lambda$1$Type",1380),H(1381,1,{},vCt),E.Kb=function(i){return zor(this.a,v(i,10))},K(dr,"LabelDummySwitcher/lambda$2$Type",1381),H(1382,1,vr,_Ct),E.Cd=function(i){odr(this.a,v(i,293))},K(dr,"LabelDummySwitcher/lambda$3$Type",1382),H(1383,1,ui,Vvt),E.Ne=function(i,l){return Nhr(v(i,293),v(l,293))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"LabelDummySwitcher/lambda$4$Type",1383),H(802,1,ba,Yvt),E.Kf=function(i,l){qpr(v(i,36),l)},K(dr,"LabelManagementProcessor",802),H(1614,1,ba,jvt),E.Kf=function(i,l){_5r(v(i,36),l)},K(dr,"LabelSideSelector",1614),H(1622,1,ba,Wvt),E.Kf=function(i,l){okr(v(i,36),l)},K(dr,"LayerConstraintPostprocessor",1622),H(1623,1,ba,iTt),E.Kf=function(i,l){n3r(v(i,36),l)};var uqe;K(dr,"LayerConstraintPreprocessor",1623),H(371,22,{3:1,34:1,22:1,371:1},rX);var Aq,Ote,Lte,aye,srn=$r(dr,"LayerConstraintPreprocessor/HiddenNodeConnections",371,jr,w1r,Ylr),orn;H(1624,1,ba,Kvt),E.Kf=function(i,l){S6r(v(i,36),l)},K(dr,"LayerSizeAndGraphHeightCalculator",1624),H(1625,1,ba,Xvt),E.Kf=function(i,l){aTr(v(i,36),l)},K(dr,"LongEdgeJoiner",1625),H(1626,1,ba,Qvt),E.Kf=function(i,l){Jkr(v(i,36),l)},K(dr,"LongEdgeSplitter",1626),H(1627,1,ba,u8t),E.Kf=function(i,l){M7r(this,v(i,36),l)},E.e=0,E.f=0,E.j=0,E.k=0,E.n=0,E.o=0;var lrn,crn;K(dr,"NodePromotion",1627),H(1628,1,ui,Zvt),E.Ne=function(i,l){return Wbr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NodePromotion/1",1628),H(1629,1,ui,Jvt),E.Ne=function(i,l){return Kbr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NodePromotion/2",1629),H(1630,1,{},e2t),E.Kb=function(i){return v(i,42),FX(),Qn(),!0},E.Fb=function(i){return this===i},K(dr,"NodePromotion/lambda$0$Type",1630),H(1631,1,{},SCt),E.Kb=function(i){return Hfr(this.a,v(i,42))},E.Fb=function(i){return this===i},E.a=0,K(dr,"NodePromotion/lambda$1$Type",1631),H(1632,1,{},TCt),E.Kb=function(i){return qfr(this.a,v(i,42))},E.Fb=function(i){return this===i},E.a=0,K(dr,"NodePromotion/lambda$2$Type",1632),H(1633,1,ba,t2t),E.Kf=function(i,l){RRr(v(i,36),l)},K(dr,"NorthSouthPortPostprocessor",1633),H(1634,1,ba,n2t),E.Kf=function(i,l){cRr(v(i,36),l)},K(dr,"NorthSouthPortPreprocessor",1634),H(1635,1,ui,r2t),E.Ne=function(i,l){return cbr(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NorthSouthPortPreprocessor/lambda$0$Type",1635),H(1636,1,ba,i2t),E.Kf=function(i,l){SAr(v(i,36),l)},K(dr,"PartitionMidprocessor",1636),H(1637,1,si,a2t),E.Mb=function(i){return ya(v(i,10),(qt(),oN))},K(dr,"PartitionMidprocessor/lambda$0$Type",1637),H(1638,1,vr,CCt),E.Cd=function(i){Hdr(this.a,v(i,10))},K(dr,"PartitionMidprocessor/lambda$1$Type",1638),H(1639,1,ba,s2t),E.Kf=function(i,l){CTr(v(i,36),l)},K(dr,"PartitionPostprocessor",1639),H(1640,1,ba,o2t),E.Kf=function(i,l){U4r(v(i,36),l)},K(dr,"PartitionPreprocessor",1640),H(1641,1,si,l2t),E.Mb=function(i){return ya(v(i,10),(qt(),oN))},K(dr,"PartitionPreprocessor/lambda$0$Type",1641),H(1642,1,{},c2t),E.Kb=function(i){return new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dr,"PartitionPreprocessor/lambda$1$Type",1642),H(1643,1,si,u2t),E.Mb=function(i){return I2r(v(i,18))},K(dr,"PartitionPreprocessor/lambda$2$Type",1643),H(1644,1,vr,h2t),E.Cd=function(i){Cbr(v(i,18))},K(dr,"PartitionPreprocessor/lambda$3$Type",1644),H(1645,1,ba,uTt),E.Kf=function(i,l){iAr(v(i,36),l)};var hqe,urn,hrn,drn,dqe,fqe;K(dr,"PortListSorter",1645),H(1648,1,ui,d2t),E.Ne=function(i,l){return cPt(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$0$Type",1648),H(1650,1,ui,f2t),E.Ne=function(i,l){return Gjt(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$1$Type",1650),H(1646,1,{},p2t),E.Kb=function(i){return G8(),v(i,12).e},K(dr,"PortListSorter/lambda$2$Type",1646),H(1647,1,{},g2t),E.Kb=function(i){return G8(),v(i,12).g},K(dr,"PortListSorter/lambda$3$Type",1647),H(1649,1,ui,m2t),E.Ne=function(i,l){return ewr(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$4$Type",1649),H(1651,1,ba,b2t),E.Kf=function(i,l){g3r(v(i,36),l)},K(dr,"PortSideProcessor",1651),H(1652,1,ba,y2t),E.Kf=function(i,l){mCr(v(i,36),l)},K(dr,"ReversedEdgeRestorer",1652),H(1657,1,ba,h6t),E.Kf=function(i,l){P_r(this,v(i,36),l)},K(dr,"SelfLoopPortRestorer",1657),H(1658,1,{},v2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopPortRestorer/lambda$0$Type",1658),H(1659,1,si,_2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopPortRestorer/lambda$1$Type",1659),H(1660,1,si,w2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopPortRestorer/lambda$2$Type",1660),H(1661,1,{},E2t),E.Kb=function(i){return v(oe(v(i,10),(At(),yx)),337)},K(dr,"SelfLoopPortRestorer/lambda$3$Type",1661),H(1662,1,vr,ECt),E.Cd=function(i){Qxr(this.a,v(i,337))},K(dr,"SelfLoopPortRestorer/lambda$4$Type",1662),H(805,1,vr,D6e),E.Cd=function(i){uSr(v(i,105))},K(dr,"SelfLoopPortRestorer/lambda$5$Type",805),H(1663,1,ba,x2t),E.Kf=function(i,l){G2r(v(i,36),l)},K(dr,"SelfLoopPostProcessor",1663),H(1664,1,{},S2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopPostProcessor/lambda$0$Type",1664),H(1665,1,si,T2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopPostProcessor/lambda$1$Type",1665),H(1666,1,si,C2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopPostProcessor/lambda$2$Type",1666),H(1667,1,vr,A2t),E.Cd=function(i){Jwr(v(i,10))},K(dr,"SelfLoopPostProcessor/lambda$3$Type",1667),H(1668,1,{},k2t),E.Kb=function(i){return new xn(null,new Nn(v(i,105).f,1))},K(dr,"SelfLoopPostProcessor/lambda$4$Type",1668),H(1669,1,vr,wCt),E.Cd=function(i){T1r(this.a,v(i,340))},K(dr,"SelfLoopPostProcessor/lambda$5$Type",1669),H(1670,1,si,R2t),E.Mb=function(i){return!!v(i,105).i},K(dr,"SelfLoopPostProcessor/lambda$6$Type",1670),H(1671,1,vr,xCt),E.Cd=function(i){xir(this.a,v(i,105))},K(dr,"SelfLoopPostProcessor/lambda$7$Type",1671),H(1653,1,ba,I2t),E.Kf=function(i,l){H3r(v(i,36),l)},K(dr,"SelfLoopPreProcessor",1653),H(1654,1,{},N2t),E.Kb=function(i){return new xn(null,new Nn(v(i,105).f,1))},K(dr,"SelfLoopPreProcessor/lambda$0$Type",1654),H(1655,1,{},O2t),E.Kb=function(i){return v(i,340).a},K(dr,"SelfLoopPreProcessor/lambda$1$Type",1655),H(1656,1,vr,L2t),E.Cd=function(i){Asr(v(i,18))},K(dr,"SelfLoopPreProcessor/lambda$2$Type",1656),H(1672,1,ba,sOt),E.Kf=function(i,l){Oxr(this,v(i,36),l)},K(dr,"SelfLoopRouter",1672),H(1673,1,{},D2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopRouter/lambda$0$Type",1673),H(1674,1,si,M2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopRouter/lambda$1$Type",1674),H(1675,1,si,P2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopRouter/lambda$2$Type",1675),H(1676,1,{},B2t),E.Kb=function(i){return v(oe(v(i,10),(At(),yx)),337)},K(dr,"SelfLoopRouter/lambda$3$Type",1676),H(1677,1,vr,HRt),E.Cd=function(i){Fdr(this.a,this.b,v(i,337))},K(dr,"SelfLoopRouter/lambda$4$Type",1677),H(1678,1,ba,F2t),E.Kf=function(i,l){l5r(v(i,36),l)},K(dr,"SemiInteractiveCrossMinProcessor",1678),H(1679,1,si,$2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),H(1680,1,si,U2t),E.Mb=function(i){return x9t(v(i,10))._b((qt(),Z4))},K(dr,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),H(1681,1,ui,z2t),E.Ne=function(i,l){return Tmr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),H(1682,1,{},G2t),E.Ve=function(i,l){return Vdr(v(i,10),v(l,10))},K(dr,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),H(1684,1,ba,q2t),E.Kf=function(i,l){Okr(v(i,36),l)},K(dr,"SortByInputModelProcessor",1684),H(1685,1,si,H2t),E.Mb=function(i){return v(i,12).g.c.length!=0},K(dr,"SortByInputModelProcessor/lambda$0$Type",1685),H(1686,1,vr,ACt),E.Cd=function(i){gSr(this.a,v(i,12))},K(dr,"SortByInputModelProcessor/lambda$1$Type",1686),H(1759,817,{},L$t),E.df=function(i){var l,d,g,y;switch(this.c=i,this.a.g){case 2:l=new Ot,ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new i_t),new JRt(this,l)),fG(this,new Y2t),Cu(l,new j2t),l.c.length=0,ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new W2t),new RCt(l)),fG(this,new K2t),Cu(l,new X2t),l.c.length=0,d=DIt(Jfe(e4(new xn(null,new Nn(this.c.a.b,16)),new ICt(this))),new Q2t),ts(new xn(null,new Nn(this.c.a.a,16)),new jRt(d,l)),fG(this,new J2t),Cu(l,new e_t),l.c.length=0;break;case 3:g=new Ot,fG(this,new V2t),y=DIt(Jfe(e4(new xn(null,new Nn(this.c.a.b,16)),new kCt(this))),new Z2t),ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new t_t),new KRt(y,g)),fG(this,new n_t),Cu(g,new r_t),g.c.length=0;break;default:throw _e(new Zkt)}},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation",1759),H(1760,1,ig,V2t),E.Lb=function(i){return $e(v(i,60).g,154)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),H(1761,1,{},kCt),E.Ye=function(i){return ZSr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),H(1769,1,UJ,VRt),E.de=function(){WD(this.a,this.b,-1)},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),H(1771,1,ig,Y2t),E.Lb=function(i){return $e(v(i,60).g,154)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),H(1772,1,vr,j2t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),H(1773,1,si,W2t),E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),H(1775,1,vr,RCt),E.Cd=function(i){yvr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),H(1774,1,UJ,XRt),E.de=function(){WD(this.b,this.a,-1)},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),H(1776,1,ig,K2t),E.Lb=function(i){return $e(v(i,60).g,10)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),H(1777,1,vr,X2t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),H(1778,1,{},ICt),E.Ye=function(i){return JSr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),H(1779,1,{},Q2t),E.We=function(){return 0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),H(1762,1,{},Z2t),E.We=function(){return 0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),H(1781,1,vr,jRt),E.Cd=function(i){xhr(this.a,this.b,v(i,316))},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),H(1780,1,UJ,WRt),E.de=function(){WVt(this.a,this.b,-1)},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),H(1782,1,ig,J2t),E.Lb=function(i){return v(i,60),!0},E.Fb=function(i){return this===i},E.Mb=function(i){return v(i,60),!0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),H(1783,1,vr,e_t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),H(1763,1,si,t_t),E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),H(1765,1,vr,KRt),E.Cd=function(i){Shr(this.a,this.b,v(i,60))},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),H(1764,1,UJ,QRt),E.de=function(){WD(this.b,this.a,-1)},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),H(1766,1,ig,n_t),E.Lb=function(i){return v(i,60),!0},E.Fb=function(i){return this===i},E.Mb=function(i){return v(i,60),!0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),H(1767,1,vr,r_t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),H(1768,1,si,i_t),E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),H(1770,1,vr,JRt),E.Cd=function(i){Ggr(this.a,this.b,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),H(1586,1,ba,yNt),E.Kf=function(i,l){a6r(this,v(i,36),l)};var frn;K(Cs,"HorizontalGraphCompactor",1586),H(1587,1,{},NCt),E.ff=function(i,l){var d,g,y;return jOe(i,l)||(d=qT(i),g=qT(l),d&&d.k==(lr(),hs)||g&&g.k==(lr(),hs))?0:(y=v(oe(this.a.a,(At(),B5)),312),cor(y,d?d.k:(lr(),Ws),g?g.k:(lr(),Ws)))},E.gf=function(i,l){var d,g,y;return jOe(i,l)?1:(d=qT(i),g=qT(l),y=v(oe(this.a.a,(At(),B5)),312),F8e(y,d?d.k:(lr(),Ws),g?g.k:(lr(),Ws)))},K(Cs,"HorizontalGraphCompactor/1",1587),H(1588,1,{},a_t),E.ef=function(i,l){return CL(),i.a.i==0},K(Cs,"HorizontalGraphCompactor/lambda$0$Type",1588),H(1589,1,{},OCt),E.ef=function(i,l){return Wdr(this.a,i,l)},K(Cs,"HorizontalGraphCompactor/lambda$1$Type",1589),H(1730,1,{},lFt);var prn,grn;K(Cs,"LGraphToCGraphTransformer",1730),H(1738,1,si,s_t),E.Mb=function(i){return i!=null},K(Cs,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),H(1731,1,{},o_t),E.Kb=function(i){return _0(),Kl(oe(v(v(i,60).g,10),(At(),Ji)))},K(Cs,"LGraphToCGraphTransformer/lambda$0$Type",1731),H(1732,1,{},l_t),E.Kb=function(i){return _0(),vzt(v(v(i,60).g,154))},K(Cs,"LGraphToCGraphTransformer/lambda$1$Type",1732),H(1741,1,si,c_t),E.Mb=function(i){return _0(),$e(v(i,60).g,10)},K(Cs,"LGraphToCGraphTransformer/lambda$10$Type",1741),H(1742,1,vr,u_t),E.Cd=function(i){Jdr(v(i,60))},K(Cs,"LGraphToCGraphTransformer/lambda$11$Type",1742),H(1743,1,si,h_t),E.Mb=function(i){return _0(),$e(v(i,60).g,154)},K(Cs,"LGraphToCGraphTransformer/lambda$12$Type",1743),H(1747,1,vr,d_t),E.Cd=function(i){Iyr(v(i,60))},K(Cs,"LGraphToCGraphTransformer/lambda$13$Type",1747),H(1744,1,vr,LCt),E.Cd=function(i){nsr(this.a,v(i,8))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$14$Type",1744),H(1745,1,vr,DCt),E.Cd=function(i){isr(this.a,v(i,116))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$15$Type",1745),H(1746,1,vr,MCt),E.Cd=function(i){rsr(this.a,v(i,8))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$16$Type",1746),H(1748,1,{},f_t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$17$Type",1748),H(1749,1,si,p_t),E.Mb=function(i){return _0(),Jo(v(i,18))},K(Cs,"LGraphToCGraphTransformer/lambda$18$Type",1749),H(1750,1,vr,PCt),E.Cd=function(i){_gr(this.a,v(i,18))},K(Cs,"LGraphToCGraphTransformer/lambda$19$Type",1750),H(1734,1,vr,BCt),E.Cd=function(i){j0r(this.a,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$2$Type",1734),H(1751,1,{},g_t),E.Kb=function(i){return _0(),new xn(null,new Nn(v(i,30).a,16))},K(Cs,"LGraphToCGraphTransformer/lambda$20$Type",1751),H(1752,1,{},m_t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$21$Type",1752),H(1753,1,{},b_t),E.Kb=function(i){return _0(),v(oe(v(i,18),(At(),sw)),15)},K(Cs,"LGraphToCGraphTransformer/lambda$22$Type",1753),H(1754,1,si,y_t),E.Mb=function(i){return uor(v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$23$Type",1754),H(1755,1,vr,FCt),E.Cd=function(i){zSr(this.a,v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$24$Type",1755),H(1733,1,vr,e8t),E.Cd=function(i){H1r(this.a,this.b,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$3$Type",1733),H(1735,1,{},v_t),E.Kb=function(i){return _0(),new xn(null,new Nn(v(i,30).a,16))},K(Cs,"LGraphToCGraphTransformer/lambda$4$Type",1735),H(1736,1,{},__t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$5$Type",1736),H(1737,1,{},w_t),E.Kb=function(i){return _0(),v(oe(v(i,18),(At(),sw)),15)},K(Cs,"LGraphToCGraphTransformer/lambda$6$Type",1737),H(1739,1,vr,$Ct),E.Cd=function(i){e4r(this.a,v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$8$Type",1739),H(1740,1,vr,t8t),E.Cd=function(i){ksr(this.a,this.b,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$9$Type",1740),H(1729,1,{},E_t),E.cf=function(i){var l,d,g,y,x;for(this.a=i,this.d=new Rue,this.c=st(Yze,Yn,125,this.a.a.a.c.length,0,1),this.b=0,d=new me(this.a.a.a);d.a<d.c.c.length;)l=v(pe(d),316),l.d=this.b,x=yE(bU(new v_,l),this.d),this.c[this.b]=x,++this.b;for(b7r(this),bRr(this),_Tr(this),Q1e(sde(this.d),new tk),y=new me(this.a.a.b);y.a<y.c.c.length;)g=v(pe(y),60),g.d.c=this.c[g.a.d].e+g.b.a},E.b=0,K(Cs,"NetworkSimplexCompaction",1729),H(154,1,{34:1,154:1},uM),E.Fd=function(i){return Ngr(this,v(i,154))},E.Ib=function(){return vzt(this)},K(Cs,"VerticalSegment",154),H(841,1,{},$De),E.c=0,E.e=0,E.i=0,K(AM,"BetweenLayerEdgeTwoNodeCrossingsCounter",841),H(677,1,{677:1},j$t),E.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},E.b=0,E.c=0,E.f=0,K(AM,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",677),H(294,1,{34:1,294:1},CNt),E.Fd=function(i){return jur(this,v(i,294))},E.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},E.a=0,E.b=0,E.c=0,K(AM,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",294),H(2026,1,{},SHt),E.b=0,E.e=!1,K(AM,"CrossingMatrixFiller",2026);var mrn=$a(Zg,"IInitializable");H(1867,1,JG,r8t),E.gg=function(i,l,d,g,y,x){},E.ig=function(i,l,d){},E.eg=function(){return this.c!=($E(),_P)},E.fg=function(){this.e=st(Wr,vi,28,this.d,15,1)},E.hg=function(i,l){l[i][0].c.p=i},E.jg=function(i,l,d,g){++this.d},E.kg=function(){return!0},E.lg=function(i,l,d,g){return hzt(this,i,l,d),npr(this,l)},E.mg=function(i,l){var d;return d=Qir(l,i.length),hzt(this,i,d,l),AUt(this,d)},E.d=0,K(AM,"GreedySwitchHeuristic",1867),H(2029,1,{},_9t),E.b=0,E.d=0,K(AM,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2029),H(2016,1,{},njt),E.a=!1,K(AM,"SwitchDecider",2016),H(105,1,{105:1},OHt),E.a=null,E.c=null,E.i=null,K(u6,"SelfHyperLoop",105),H(2013,1,{},vGt),E.c=0,E.e=0,K(u6,"SelfHyperLoopLabels",2013),H(421,22,{3:1,34:1,22:1,421:1},iX);var b6,WI,KI,sye,brn=$r(u6,"SelfHyperLoopLabels/Alignment",421,jr,_1r,jlr),yrn;H(340,1,{340:1},ZPt),K(u6,"SelfLoopEdge",340),H(337,1,{337:1},_Gt),E.a=!1,K(u6,"SelfLoopHolder",337),H(1790,1,si,D_t),E.Mb=function(i){return Jo(v(i,18))},K(u6,"SelfLoopHolder/lambda$0$Type",1790),H(113,1,{113:1},TGt),E.a=!1,E.c=!1,K(u6,"SelfLoopPort",113),H(1855,1,si,M_t),E.Mb=function(i){return Jo(v(i,18))},K(u6,"SelfLoopPort/lambda$0$Type",1855),H(375,22,{3:1,34:1,22:1,375:1},EU);var Dte,kq,Mte,Pte,Bte,vrn=$r(u6,"SelfLoopType",375,jr,hpr,Wlr),_rn;H(1798,1,{},gTt);var wrn,Ern,xrn,Srn;K(Dd,"PortRestorer",1798),H(372,22,{3:1,34:1,22:1,372:1},lhe);var fx,l2,px,oye=$r(Dd,"PortRestorer/PortSideArea",372,jr,o0r,Hlr),Trn;H(1799,1,{},S_t),E.Kb=function(i){return Kv(),v(i,15).Oc()},K(Dd,"PortRestorer/lambda$0$Type",1799),H(1800,1,vr,T_t),E.Cd=function(i){Kv(),v(i,113).c=!1},K(Dd,"PortRestorer/lambda$1$Type",1800),H(1809,1,si,C_t),E.Mb=function(i){return Kv(),v(i,12).j==(Bt(),cr)},K(Dd,"PortRestorer/lambda$10$Type",1809),H(1810,1,{},A_t),E.Kb=function(i){return Kv(),v(i,113).d},K(Dd,"PortRestorer/lambda$11$Type",1810),H(1811,1,vr,UCt),E.Cd=function(i){nar(this.a,v(i,12))},K(Dd,"PortRestorer/lambda$12$Type",1811),H(1801,1,vr,zCt),E.Cd=function(i){_or(this.a,v(i,105))},K(Dd,"PortRestorer/lambda$2$Type",1801),H(1802,1,ui,k_t),E.Ne=function(i,l){return emr(v(i,113),v(l,113))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Dd,"PortRestorer/lambda$3$Type",1802),H(1803,1,si,R_t),E.Mb=function(i){return Kv(),v(i,113).c},K(Dd,"PortRestorer/lambda$4$Type",1803),H(1804,1,si,I_t),E.Mb=function(i){return Vmr(v(i,12))},K(Dd,"PortRestorer/lambda$5$Type",1804),H(1805,1,si,x_t),E.Mb=function(i){return Kv(),v(i,12).j==(Bt(),or)},K(Dd,"PortRestorer/lambda$6$Type",1805),H(1806,1,si,N_t),E.Mb=function(i){return Kv(),v(i,12).j==(Bt(),gr)},K(Dd,"PortRestorer/lambda$7$Type",1806),H(1807,1,si,O_t),E.Mb=function(i){return S1r(v(i,12))},K(Dd,"PortRestorer/lambda$8$Type",1807),H(1808,1,si,L_t),E.Mb=function(i){return Kv(),v(i,12).j==(Bt(),Mr)},K(Dd,"PortRestorer/lambda$9$Type",1808),H(276,22,{3:1,34:1,22:1,276:1},Ck);var lye,cye,uye,hye,dye,fye,pye,gye,pqe=$r(Dd,"PortSideAssigner/Target",276,jr,Ugr,Klr),Crn;H(1791,1,{},B_t),E.Kb=function(i){return Ki(new xn(null,new Nn(v(i,105).j,16)),new M6e)},K(Dd,"PortSideAssigner/lambda$1$Type",1791),H(1792,1,{},F_t),E.Kb=function(i){return v(i,113).d},K(Dd,"PortSideAssigner/lambda$2$Type",1792),H(1793,1,vr,$_t),E.Cd=function(i){Bs(v(i,12),(Bt(),or))},K(Dd,"PortSideAssigner/lambda$3$Type",1793),H(1794,1,{},U_t),E.Kb=function(i){return v(i,113).d},K(Dd,"PortSideAssigner/lambda$4$Type",1794),H(1795,1,vr,GCt),E.Cd=function(i){cir(this.a,v(i,12))},K(Dd,"PortSideAssigner/lambda$5$Type",1795),H(1796,1,ui,P_t),E.Ne=function(i,l){return gdr(v(i,105),v(l,105))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Dd,"PortSideAssigner/lambda$6$Type",1796),H(1797,1,ui,z_t),E.Ne=function(i,l){return Fur(v(i,113),v(l,113))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Dd,"PortSideAssigner/lambda$7$Type",1797),H(820,1,si,M6e),E.Mb=function(i){return v(i,113).c},K(Dd,"PortSideAssigner/lambda$8$Type",820),H(2108,1,{}),K(t2,"AbstractSelfLoopRouter",2108),H(1816,1,ui,G_t),E.Ne=function(i,l){return mlr(v(i,105),v(l,105))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(t2,IXt,1816),H(1817,1,ui,q_t),E.Ne=function(i,l){return glr(v(i,105),v(l,105))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(t2,NXt,1817),H(1856,2108,{},H_t),E.ng=function(i,l,d){return d},K(t2,"OrthogonalSelfLoopRouter",1856),H(1858,1,vr,n8t),E.Cd=function(i){KLe(this.b,this.a,v(i,8))},K(t2,"OrthogonalSelfLoopRouter/lambda$0$Type",1858),H(1857,1856,{},V_t),E.ng=function(i,l,d){var g,y;return g=i.c.d,JR(d,0,Hi(Eo(g.n),g.a)),y=i.d.d,pi(d,Hi(Eo(y.n),y.a)),yAr(d)},K(t2,"PolylineSelfLoopRouter",1857),H(1812,1,{},mTt),E.a=null;var R5;K(t2,"RoutingDirector",1812),H(1813,1,ui,Y_t),E.Ne=function(i,l){return Mur(v(i,113),v(l,113))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(t2,"RoutingDirector/lambda$0$Type",1813),H(1814,1,{},j_t),E.Kb=function(i){return qK(),v(i,105).j},K(t2,"RoutingDirector/lambda$1$Type",1814),H(1815,1,vr,W_t),E.Cd=function(i){qK(),v(i,15).jd(R5)},K(t2,"RoutingDirector/lambda$2$Type",1815),H(1818,1,{},K_t),K(t2,"RoutingSlotAssigner",1818),H(1819,1,si,qCt),E.Mb=function(i){return $ar(this.a,v(i,105))},K(t2,"RoutingSlotAssigner/lambda$0$Type",1819),H(1820,1,ui,HCt),E.Ne=function(i,l){return uhr(this.a,v(i,105),v(l,105))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(t2,"RoutingSlotAssigner/lambda$1$Type",1820),H(1859,1856,{},X_t),E.ng=function(i,l,d){var g,y,x,T;return g=We(at(HZ(i.b.g.b,(qt(),U5)))),T=new kNt(Te(xe(Vs,1),kt,8,0,[(x=i.c.d,Hi(new Wo(x.n),x.a))])),W3r(i,l,d,T,g),pi(T,(y=i.d.d,Hi(new Wo(y.n),y.a))),VGt(new NPe(T))},K(t2,"SplineSelfLoopRouter",1859),H(586,1,ui,N$t,KOt),E.Ne=function(i,l){return RKt(this,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(jBe,"ModelOrderNodeComparator",586),H(1821,1,si,Q_t),E.Mb=function(i){return v(i,12).e.c.length!=0},K(jBe,"ModelOrderNodeComparator/lambda$0$Type",1821),H(821,1,ui,szt,GMt),E.Ne=function(i,l){return H9t(this,i,l)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},E.b=!1,K(jBe,"ModelOrderPortComparator",821),H(815,1,{},P6e),E.og=function(i,l){var d,g,y,x;for(y=_Ht(l),d=new Ot,x=l.f/y,g=1;g<y;++g)Lt(d,Nt(ti(xc(u.Math.round(g*x)))));return d},E.pg=function(){return!1},K(lg,"ARDCutIndexHeuristic",815),H(1544,1,ba,Z_t),E.Kf=function(i,l){BCr(v(i,36),l)},K(lg,"BreakingPointInserter",1544),H(313,1,{313:1},dOe),E.Ib=function(){var i;return i=new Cv,i.a+="BPInfo[",i.a+=`
	start=`,Kc(i,this.i),i.a+=`
	end=`,Kc(i,this.a),i.a+=`
	nodeStartEdge=`,Kc(i,this.e),i.a+=`
	startEndEdge=`,Kc(i,this.j),i.a+=`
	originalEdge=`,Kc(i,this.f),i.a+=`
	startInLayerDummy=`,Kc(i,this.k),i.a+=`
	startInLayerEdge=`,Kc(i,this.n),i.a+=`
	endInLayerDummy=`,Kc(i,this.b),i.a+=`
	endInLayerEdge=`,Kc(i,this.c),i.a},K(lg,"BreakingPointInserter/BPInfo",313),H(661,1,{661:1},eAt),E.a=!1,E.b=0,E.c=0,K(lg,"BreakingPointInserter/Cut",661),H(1545,1,ba,J_t),E.Kf=function(i,l){J3r(v(i,36),l)},K(lg,"BreakingPointProcessor",1545),H(1546,1,si,ewt),E.Mb=function(i){return _Ft(v(i,10))},K(lg,"BreakingPointProcessor/0methodref$isEnd$Type",1546),H(1547,1,si,twt),E.Mb=function(i){return wFt(v(i,10))},K(lg,"BreakingPointProcessor/1methodref$isStart$Type",1547),H(1548,1,ba,nwt),E.Kf=function(i,l){wTr(this,v(i,36),l)},K(lg,"BreakingPointRemover",1548),H(1549,1,vr,rwt),E.Cd=function(i){v(i,131).k=!0},K(lg,"BreakingPointRemover/lambda$0$Type",1549),H(811,1,{},MMe),E.b=0,E.e=0,E.f=0,E.j=0,K(lg,"GraphStats",811),H(812,1,{},B6e),E.Ve=function(i,l){return u.Math.max(We(at(i)),We(at(l)))},K(lg,"GraphStats/0methodref$max$Type",812),H(813,1,{},F6e),E.Ve=function(i,l){return u.Math.max(We(at(i)),We(at(l)))},K(lg,"GraphStats/2methodref$max$Type",813),H(1726,1,{},iwt),E.Ve=function(i,l){return Eur(at(i),at(l))},K(lg,"GraphStats/lambda$1$Type",1726),H(1727,1,{},VCt),E.Kb=function(i){return CGt(this.a,v(i,30))},K(lg,"GraphStats/lambda$2$Type",1727),H(1728,1,{},YCt),E.Kb=function(i){return bYt(this.a,v(i,30))},K(lg,"GraphStats/lambda$6$Type",1728),H(814,1,{},$6e),E.og=function(i,l){var d;return d=v(oe(i,(qt(),uVe)),15),d||(Fn(),Fn(),Zo)},E.pg=function(){return!1},K(lg,"ICutIndexCalculator/ManualCutIndexCalculator",814),H(816,1,{},U6e),E.og=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;for(yt=(l.n==null&&eqt(l),l.n),O=(l.d==null&&eqt(l),l.d),je=st(ao,_l,28,yt.length,15,1),je[0]=yt[0],Me=yt[0],D=1;D<yt.length;D++)je[D]=je[D-1]+yt[D],Me+=yt[D];for(y=_Ht(l)-1,T=v(oe(i,(qt(),hVe)),17).a,g=Ss,d=new Ot,re=u.Math.max(0,y-T);re<=u.Math.min(l.f-1,y+T);re++){if(de=Me/(re+1),Se=0,q=1,x=new Ot,Ue=Ss,J=0,R=0,le=O[0],re==0)Ue=Me,R=(l.g==null&&(l.g=$$t(l,new F6e)),We(l.g));else{for(;q<l.f;)je[q-1]-Se>=de&&(Lt(x,Nt(q)),Ue=u.Math.max(Ue,je[q-1]-J),R+=le,Se+=je[q-1]-Se,J=je[q-1],le=O[q]),le=u.Math.max(le,O[q]),++q;R+=le}ae=u.Math.min(1/Ue,1/l.b/R),ae>g&&(g=ae,d=x)}return d},E.pg=function(){return!1},K(lg,"MSDCutIndexHeuristic",816),H(1683,1,ba,awt),E.Kf=function(i,l){ckr(v(i,36),l)},K(lg,"SingleEdgeGraphWrapper",1683),H(232,22,{3:1,34:1,22:1,232:1},DL);var I5,XI,QI,H4,tP,N5,ZI=$r(Mc,"CenterEdgeLabelPlacementStrategy",232,jr,Wpr,Xlr),Arn;H(431,22,{3:1,34:1,22:1,431:1},$Re);var gqe,mye,mqe=$r(Mc,"ConstraintCalculationStrategy",431,jr,pfr,Qlr),krn;H(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},che),E.dg=function(){return nVt(this)},E.qg=function(){return nVt(this)};var Rq,nP,bqe,yqe=$r(Mc,"CrossingMinimizationStrategy",322,jr,l0r,Zlr),Rrn;H(351,22,{3:1,34:1,22:1,351:1},uhe);var vqe,bye,Fte,_qe=$r(Mc,"CuttingStrategy",351,jr,c0r,Jlr),Irn;H(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},xU),E.dg=function(){return YVt(this)},E.qg=function(){return YVt(this)};var wqe,yye,JI,vye,eN,Eqe=$r(Mc,"CycleBreakingStrategy",348,jr,dpr,ecr),Nrn;H(428,22,{3:1,34:1,22:1,428:1},URe);var $te,xqe,Sqe=$r(Mc,"DirectionCongruency",428,jr,ffr,tcr),Orn;H(460,22,{3:1,34:1,22:1,460:1},hhe);var tN,_ye,O5,Lrn=$r(Mc,"EdgeConstraint",460,jr,u0r,lcr),Drn;H(283,22,{3:1,34:1,22:1,283:1},ML);var wye,Eye,xye,Sye,Ute,Tye,Tqe=$r(Mc,"EdgeLabelSideSelection",283,jr,Vpr,ccr),Mrn;H(488,22,{3:1,34:1,22:1,488:1},zRe);var zte,Cqe,Aqe=$r(Mc,"EdgeStraighteningStrategy",488,jr,wfr,ucr),Prn;H(281,22,{3:1,34:1,22:1,281:1},PL);var Cye,kqe,Rqe,Gte,Iqe,Nqe,Oqe=$r(Mc,"FixedAlignment",281,jr,Ypr,ocr),Brn;H(282,22,{3:1,34:1,22:1,282:1},BL);var Lqe,Dqe,Mqe,Pqe,rP,Bqe,Fqe=$r(Mc,"GraphCompactionStrategy",282,jr,jpr,ncr),Frn;H(259,22,{3:1,34:1,22:1,259:1},GS);var nN,qte,rN,wf,iP,Hte,iN,L5,Vte,aP,Aye=$r(Mc,"GraphProperties",259,jr,Nmr,rcr),$rn;H(299,22,{3:1,34:1,22:1,299:1},dhe);var Iq,kye,Rye,Iye=$r(Mc,"GreedySwitchType",299,jr,h0r,icr),Urn;H(311,22,{3:1,34:1,22:1,311:1},fhe);var y6,Nq,D5,zrn=$r(Mc,"InLayerConstraint",311,jr,d0r,acr),Grn;H(429,22,{3:1,34:1,22:1,429:1},GRe);var Nye,$qe,Uqe=$r(Mc,"InteractiveReferencePoint",429,jr,dfr,scr),qrn,zqe,v6,gx,Yte,Gqe,qqe,jte,Hqe,Oq,Wte,sP,_6,ob,Oye,Kte,vc,Vqe,c2,au,Lye,Dye,Lq,aw,mx,w6,Yqe,E6,Dq,V4,m1,Kf,Mye,M5,ua,Ji,jqe,Wqe,Kqe,Xqe,Qqe,Pye,Xte,kh,bx,Bye,x6,oP,ap,P5,yx,B5,F5,aN,sw,Zqe,Fye,$ye,S6;H(171,22,{3:1,34:1,22:1,171:1},SU);var lP,u2,cP,Y4,Mq,Jqe=$r(Mc,"LayerConstraint",171,jr,ppr,hcr),Hrn;H(859,1,Hf,bTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KBe),""),"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."),cHe),(dy(),Ra)),Sqe),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XBe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Qn(),!1)),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tee),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),gHe),Ra),Uqe),bn(Hn)))),bs(i,tee,Nge,Fin),bs(i,tee,kM,Bin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QBe),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ZBe),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(tar(dn(hn(fn(kn(on(un(ln(cn(new rn,JBe),""),"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),Gs),rs),bn(pw)),Te(xe(Xt,1),kt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eFe),""),"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."),xHe),Ra),OVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tFe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Nt(7)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nFe),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rFe),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Nge),"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)."),lHe),Ra),Eqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eq),tme),"Node Layering Strategy"),"Strategy for node layering."),yHe),Ra),_Ve),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iFe),tme),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),mHe),Ra),Jqe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aFe),tme),"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."),null),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,sFe),tme),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Oge),pQt),"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."),Nt(4)),Zl),Ao),bn(Hn)))),bs(i,Oge,eq,Vin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Lge),pQt),"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."),Nt(2)),Zl),Ao),bn(Hn)))),bs(i,Lge,eq,jin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Dge),gQt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),bHe),Ra),RVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Mge),gQt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Nt(0)),Zl),Ao),bn(Hn)))),bs(i,Mge,Dge,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Pge),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Nt(qi)),Zl),Ao),bn(Hn)))),bs(i,Pge,eq,Uin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,kM),OI),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),oHe),Ra),yqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oFe),OI),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Bge),OI),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Fo),ws),bn(Hn)))),bs(i,Bge,pee,uin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Fge),OI),"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),Gs),rs),bn(Hn)))),bs(i,Fge,kM,min),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lFe),OI),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),K5),Xt),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cFe),OI),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),K5),Xt),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,uFe),OI),"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."),null),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hFe),OI),"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."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,dFe),mQt),"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."),Nt(40)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,$ge),mQt),"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."),sHe),Ra),Iye),bn(Hn)))),bs(i,$ge,kM,lin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nee),"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."),aHe),Ra),Iye),bn(Hn)))),bs(i,nee,kM,ain),bs(i,nee,pee,sin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,v5),bQt),"Node Placement Strategy"),"Strategy for node placement."),EHe),Ra),SVe),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,ree),bQt),"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."),Gs),rs),bn(Hn)))),bs(i,ree,v5,ian),bs(i,ree,v5,aan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Uge),yQt),"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."),vHe),Ra),Aqe),bn(Hn)))),bs(i,Uge,v5,ean),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zge),yQt),"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."),_He),Ra),Oqe),bn(Hn)))),bs(i,zge,v5,nan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Gge),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Fo),ws),bn(Hn)))),bs(i,Gge,v5,oan),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,qge),"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."),Ra),ove),bn(Fs)))),bs(i,qge,v5,han),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Hge),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),wHe),Ra),ove),bn(Hn)))),bs(i,Hge,v5,uan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fFe),vQt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),dHe),Ra),MVe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,pFe),vQt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),fHe),Ra),PVe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iee),"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."),pHe),Ra),FVe),bn(Hn)))),bs(i,iee,tq,Ain),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aee),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Fo),ws),bn(Hn)))),bs(i,aee,tq,Rin),bs(i,aee,iee,Iin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Vge),"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),Fo),ws),bn(Hn)))),bs(i,Vge,tq,xin),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,gFe),np),"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."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,mFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,yFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,vFe),RFe),"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."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,_Fe),RFe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wFe),RFe),"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."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Yge),IFe),MXt),"Tries to further compact components (disconnected sub-graphs)."),!1),Gs),rs),bn(Hn)))),bs(i,Yge,xM,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,EFe),_Qt),"Post Compaction Strategy"),wQt),tHe),Ra),Fqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xFe),_Qt),"Post Compaction Constraint Calculation"),wQt),eHe),Ra),mqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,see),NFe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jge),NFe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Nt(16)),Zl),Ao),bn(Hn)))),bs(i,jge,see,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Wge),NFe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Nt(5)),Zl),Ao),bn(Hn)))),bs(i,Wge,see,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ib),OFe),"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'."),CHe),Ra),GVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oee),OFe),"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),Fo),ws),bn(Hn)))),bs(i,oee,ib,San),bs(i,oee,ib,Tan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lee),OFe),"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),Fo),ws),bn(Hn)))),bs(i,lee,ib,Aan),bs(i,lee,ib,kan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,RM),EQt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),THe),Ra),_qe),bn(Hn)))),bs(i,RM,ib,Dan),bs(i,RM,ib,Man),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,Kge),EQt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),op),_f),bn(Hn)))),bs(i,Kge,RM,Ian),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Xge),"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."),SHe),Zl),Ao),bn(Hn)))),bs(i,Xge,RM,Oan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cee),xQt),"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."),AHe),Ra),zVe),bn(Hn)))),bs(i,cee,ib,jan),bs(i,cee,ib,Wan),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,uee),xQt),"Valid Indices for Wrapping"),null),op),_f),bn(Hn)))),bs(i,uee,ib,Han),bs(i,uee,ib,Van),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hee),LFe),"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),Gs),rs),bn(Hn)))),bs(i,hee,ib,$an),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,dee),LFe),"Distance Penalty When Improving Cuts"),null),2),Fo),ws),bn(Hn)))),bs(i,dee,ib,Ban),bs(i,dee,hee,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Qge),LFe),"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),Gs),rs),bn(Hn)))),bs(i,Qge,ib,zan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,SFe),nme),"Edge Label Side Selection"),"Method to decide on edge label sides."),hHe),Ra),Tqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,TFe),nme),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),uHe),Ra),ZI),va(Hn,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fee),IM),"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."),iHe),Ra),NVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,CFe),IM),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,AFe),IM),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Zge),IM),"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."),nHe),Ra),EGe),bn(Hn)))),bs(i,Zge,xM,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,kFe),IM),"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."),rHe),Ra),EVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Jge),IM),"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),Fo),ws),bn(Hn)))),bs(i,Jge,fee,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eme),IM),"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),Fo),ws),bn(Hn)))),bs(i,eme,fee,null),UKt((new yTt,i))};var Vrn,Yrn,jrn,eHe,Wrn,tHe,Krn,nHe,Xrn,Qrn,Zrn,rHe,Jrn,ein,tin,iHe,nin,rin,iin,aHe,ain,sin,oin,sHe,lin,cin,uin,hin,din,fin,pin,gin,min,bin,oHe,yin,lHe,vin,cHe,_in,uHe,win,hHe,Ein,xin,Sin,dHe,Tin,fHe,Cin,pHe,Ain,kin,Rin,Iin,Nin,Oin,Lin,Din,Min,Pin,gHe,Bin,Fin,$in,Uin,zin,Gin,mHe,qin,Hin,Vin,Yin,jin,Win,Kin,bHe,Xin,yHe,Qin,Zin,Jin,vHe,ean,tan,_He,nan,ran,ian,aan,san,oan,lan,can,wHe,uan,han,dan,EHe,fan,xHe,pan,gan,man,ban,yan,van,_an,wan,Ean,xan,San,Tan,Can,Aan,kan,Ran,Ian,Nan,SHe,Oan,Lan,THe,Dan,Man,Pan,Ban,Fan,$an,Uan,zan,Gan,CHe,qan,Han,Van,Yan,AHe,jan,Wan;K(Mc,"LayeredMetaDataProvider",859),H(998,1,Hf,yTt),E.hf=function(i){UKt(i)};var fg,Uye,Qte,uP,Zte,kHe,Jte,j4,ene,RHe,IHe,tne,zye,nm,Gye,vx,NHe,Pq,qye,OHe,Kan,Xan,Qan,nne,Hye,hP,ow,Zan,Pd,LHe,DHe,rne,Vye,pg,ine,lb,MHe,PHe,BHe,Yye,jye,FHe,vy,Wye,$He,W4,UHe,zHe,GHe,ane,K4,lw,qHe,HHe,Nl,VHe,Jan,Lu,sne,YHe,jHe,WHe,h2,cw,one,KHe,XHe,lne,_x,QHe,Kye,dP,ZHe,wx,fP,cne,uw,Xye,sN,une,hw,JHe,eVe,tVe,oN,nVe,esn,tsn,nsn,rsn,Ex,X4,Qa,_y,isn,Q4,rVe,lN,iVe,Z4,asn,cN,aVe,T6,ssn,osn,Bq,Qye,sVe,Fq,O0,$5,U5,xx,dw,hne,J4,Zye,uN,hN,Sx,z5,Jye,$q,pP,gP,lsn,csn,usn,oVe,hsn,eve,lVe,cVe,uVe,hVe,tve,dVe,fVe,pVe,gVe,nve,dne;K(Mc,"LayeredOptions",998),H(999,1,{},swt),E.sf=function(){var i;return i=new s6t,i},E.tf=function(i){},K(Mc,"LayeredOptions/LayeredFactory",999),H(1391,1,{}),E.a=0;var dsn;K(mc,"ElkSpacings/AbstractSpacingsBuilder",1391),H(792,1391,{},PLe);var fne,fsn;K(Mc,"LayeredSpacings/LayeredSpacingsBuilder",792),H(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},AT),E.dg=function(){return tjt(this)},E.qg=function(){return tjt(this)};var dN,rve,fN,mVe,bVe,yVe,pne,ive,vVe,_Ve=$r(Mc,"LayeringStrategy",265,jr,omr,dcr),psn;H(390,22,{3:1,34:1,22:1,390:1},phe);var ave,wVe,gne,EVe=$r(Mc,"LongEdgeOrderingStrategy",390,jr,f0r,fcr),gsn;H(203,22,{3:1,34:1,22:1,203:1},aX);var G5,q5,mne,sve,ove=$r(Mc,"NodeFlexibility",203,jr,E1r,pcr),msn;H(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},TU),E.dg=function(){return VVt(this)},E.qg=function(){return VVt(this)};var mP,lve,cve,bP,xVe,SVe=$r(Mc,"NodePlacementStrategy",323,jr,fpr,gcr),bsn;H(243,22,{3:1,34:1,22:1,243:1},qS);var TVe,Tx,e3,Uq,CVe,AVe,zq,kVe,bne,yne,RVe=$r(Mc,"NodePromotionStrategy",243,jr,Omr,mcr),ysn;H(284,22,{3:1,34:1,22:1,284:1},sX);var IVe,wy,uve,hve,NVe=$r(Mc,"OrderingStrategy",284,jr,x1r,bcr),vsn;H(430,22,{3:1,34:1,22:1,430:1},qRe);var dve,fve,OVe=$r(Mc,"PortSortingStrategy",430,jr,gfr,ycr),_sn;H(463,22,{3:1,34:1,22:1,463:1},ghe);var Rh,_u,yP,wsn=$r(Mc,"PortType",463,jr,p0r,vcr),Esn;H(387,22,{3:1,34:1,22:1,387:1},mhe);var LVe,pve,DVe,MVe=$r(Mc,"SelfLoopDistributionStrategy",387,jr,g0r,_cr),xsn;H(349,22,{3:1,34:1,22:1,349:1},bhe);var gve,Gq,mve,PVe=$r(Mc,"SelfLoopOrderingStrategy",349,jr,m0r,wcr),Ssn;H(312,1,{312:1},BWt),K(Mc,"Spacings",312),H(350,22,{3:1,34:1,22:1,350:1},yhe);var bve,BVe,vP,FVe=$r(Mc,"SplineRoutingMode",350,jr,b0r,Ecr),Tsn;H(352,22,{3:1,34:1,22:1,352:1},vhe);var yve,$Ve,UVe,zVe=$r(Mc,"ValidifyStrategy",352,jr,y0r,xcr),Csn;H(388,22,{3:1,34:1,22:1,388:1},_he);var t3,vve,pN,GVe=$r(Mc,"WrappingStrategy",388,jr,v0r,Scr),Asn;H(1398,1,hl,cTt),E.rg=function(i){return v(i,36),ksn},E.Kf=function(i,l){n6r(this,v(i,36),l)};var ksn;K(yee,"DepthFirstCycleBreaker",1398),H(793,1,hl,nNe),E.rg=function(i){return v(i,36),Rsn},E.Kf=function(i,l){s8r(this,v(i,36),l)},E.sg=function(i){return v(Yt(i,KZ(this.d,i.c.length)),10)};var Rsn;K(yee,"GreedyCycleBreaker",793),H(1401,793,hl,nIt),E.sg=function(i){var l,d,g,y;for(y=null,l=qi,g=new me(i);g.a<g.c.c.length;)d=v(pe(g),10),ya(d,(At(),ua))&&v(oe(d,ua),17).a<l&&(l=v(oe(d,ua),17).a,y=d);return y||v(Yt(i,KZ(this.d,i.c.length)),10)},K(yee,"GreedyModelOrderCycleBreaker",1401),H(1399,1,hl,lTt),E.rg=function(i){return v(i,36),Isn},E.Kf=function(i,l){d6r(this,v(i,36),l)};var Isn;K(yee,"InteractiveCycleBreaker",1399),H(1400,1,hl,sTt),E.rg=function(i){return v(i,36),Nsn},E.Kf=function(i,l){E6r(this,v(i,36),l)},E.a=0,E.b=0;var Nsn;K(yee,"ModelOrderCycleBreaker",1400),H(1413,1,hl,aTt),E.rg=function(i){return v(i,36),Osn},E.Kf=function(i,l){hRr(this,v(i,36),l)};var Osn;K(ab,"BreadthFirstModelOrderLayerer",1413),H(1414,1,ui,owt),E.Ne=function(i,l){return PSr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),H(1404,1,hl,RRt),E.rg=function(i){return v(i,36),Lsn},E.Kf=function(i,l){h8r(this,v(i,36),l)};var Lsn;K(ab,"CoffmanGrahamLayerer",1404),H(1405,1,ui,jCt),E.Ne=function(i,l){return E4r(this.a,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),H(1406,1,ui,WCt),E.Ne=function(i,l){return Ehr(this.a,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"CoffmanGrahamLayerer/lambda$1$Type",1406),H(1415,1,hl,oTt),E.rg=function(i){return v(i,36),Dsn},E.Kf=function(i,l){ZRr(this,v(i,36),l)},E.c=0,E.e=0;var Dsn;K(ab,"DepthFirstModelOrderLayerer",1415),H(1416,1,ui,lwt),E.Ne=function(i,l){return BSr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),H(1407,1,hl,cwt),E.rg=function(i){return v(i,36),yi(yi(yi(new ms,(Mo(),N0),(qo(),nye)),em,q4),qc,G4)},E.Kf=function(i,l){SRr(v(i,36),l)},K(ab,"InteractiveLayerer",1407),H(578,1,{578:1},u6t),E.a=0,E.c=0,K(ab,"InteractiveLayerer/LayerSpan",578),H(1403,1,hl,dTt),E.rg=function(i){return v(i,36),Msn},E.Kf=function(i,l){ZTr(this,v(i,36),l)};var Msn;K(ab,"LongestPathLayerer",1403),H(1412,1,hl,hTt),E.rg=function(i){return v(i,36),Psn},E.Kf=function(i,l){E5r(this,v(i,36),l)};var Psn;K(ab,"LongestPathSourceLayerer",1412),H(1410,1,hl,fTt),E.rg=function(i){return v(i,36),yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)},E.Kf=function(i,l){LRr(this,v(i,36),l)},E.a=0,E.b=0,E.d=0;var qVe,HVe;K(ab,"MinWidthLayerer",1410),H(1411,1,ui,KCt),E.Ne=function(i,l){return ebr(this,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),H(1402,1,hl,pTt),E.rg=function(i){return v(i,36),Bsn},E.Kf=function(i,l){j6r(this,v(i,36),l)};var Bsn;K(ab,"NetworkSimplexLayerer",1402),H(1408,1,hl,rOt),E.rg=function(i){return v(i,36),yi(yi(yi(new ms,(Mo(),N0),(qo(),k5)),em,q4),qc,G4)},E.Kf=function(i,l){N7r(this,v(i,36),l)},E.d=0,E.f=0,E.g=0,E.i=0,E.s=0,E.t=0,E.u=0,K(ab,"StretchWidthLayerer",1408),H(1409,1,ui,uwt),E.Ne=function(i,l){return Npr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ab,"StretchWidthLayerer/1",1409),H(413,1,p$e),E.gg=function(i,l,d,g,y,x){},E.ug=function(i,l,d){return kjt(this,i,l,d)},E.fg=function(){this.g=st(g3,TQt,28,this.d,15,1),this.f=st(g3,TQt,28,this.d,15,1)},E.hg=function(i,l){this.e[i]=st(Wr,vi,28,l[i].length,15,1)},E.ig=function(i,l,d){var g;g=d[i][l],g.p=l,this.e[i][l]=l},E.jg=function(i,l,d,g){v(Yt(g[i][l].j,d),12).p=this.d++},E.b=0,E.c=0,E.d=0,K(ph,"AbstractBarycenterPortDistributor",413),H(1698,1,ui,XCt),E.Ne=function(i,l){return A2r(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ph,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),H(832,1,JG,oOe),E.gg=function(i,l,d,g,y,x){},E.ig=function(i,l,d){},E.jg=function(i,l,d,g){},E.eg=function(){return!1},E.fg=function(){this.c=this.e.a,this.g=this.f.g},E.hg=function(i,l){l[i][0].c.p=i},E.kg=function(){return!1},E.vg=function(i,l,d,g){d?Nqt(this,i):(Mqt(this,i,g),XWt(this,i,l)),i.c.length>1&&(Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),(qt(),vx))))?iYt(i,this.d,v(this,669)):(Fn(),us(i,this.d)),aUt(this.e,i))},E.lg=function(i,l,d,g){var y,x,T,R,O,D,q;for(l!=E9t(d,i.length)&&(x=i[l-(d?1:-1)],NOe(this.f,x,d?(ll(),_u):(ll(),Rh))),y=i[l][0],q=!g||y.k==(lr(),hs),D=H1(i[l]),this.vg(D,q,!1,d),T=0,O=new me(D);O.a<O.c.c.length;)R=v(pe(O),10),i[l][T++]=R;return!1},E.mg=function(i,l){var d,g,y,x,T;for(T=E9t(l,i.length),x=H1(i[T]),this.vg(x,!1,!0,l),d=0,y=new me(x);y.a<y.c.c.length;)g=v(pe(y),10),i[T][d++]=g;return!1},K(ph,"BarycenterHeuristic",832),H(667,1,{667:1},JCt),E.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},E.b=0,E.d=0,E.e=!1;var Fsn=K(ph,"BarycenterHeuristic/BarycenterState",667);H(1865,1,ui,QCt),E.Ne=function(i,l){return wEr(this.a,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ph,"BarycenterHeuristic/lambda$0$Type",1865),H(831,1,JG,UDe),E.fg=function(){},E.gg=function(i,l,d,g,y,x){},E.jg=function(i,l,d,g){},E.hg=function(i,l){this.a[i]=st(Fsn,{3:1,4:1,5:1,2117:1},667,l[i].length,0,1),this.b[i]=st($sn,{3:1,4:1,5:1,2118:1},239,l[i].length,0,1)},E.ig=function(i,l,d){mGt(this,d[i][l],!0)},E.c=!1,K(ph,"ForsterConstraintResolver",831),H(239,1,{239:1},cDt,PWt),E.Ib=function(){var i,l;for(l=new Cv,l.a+="[",i=0;i<this.d.length;i++)bi(l,NGt(this.d[i])),U1(this.g,this.d[0]).a!=null&&bi(bi((l.a+="<",l),Yar(U1(this.g,this.d[0]).a)),">"),i<this.d.length-1&&(l.a+=Xo);return(l.a+="]",l).a},E.a=0,E.c=0,E.f=0;var $sn=K(ph,"ForsterConstraintResolver/ConstraintGroup",239);H(1860,1,vr,ZCt),E.Cd=function(i){mGt(this.a,v(i,10),!1)},K(ph,"ForsterConstraintResolver/lambda$0$Type",1860),H(219,1,{219:1,230:1},$Wt),E.gg=function(i,l,d,g,y,x){},E.hg=function(i,l){},E.fg=function(){this.r=st(Wr,vi,28,this.n,15,1)},E.ig=function(i,l,d){var g,y;y=d[i][l],g=y.e,g&&Lt(this.b,g)},E.jg=function(i,l,d,g){++this.n},E.Ib=function(){return QWt(this.e,new fs)},E.g=!1,E.i=!1,E.n=0,E.s=!1,K(ph,"GraphInfoHolder",219),H(1905,1,JG,hwt),E.gg=function(i,l,d,g,y,x){},E.hg=function(i,l){},E.jg=function(i,l,d,g){},E.ug=function(i,l,d){return d&&l>0?efe(this.a,i[l-1],i[l]):!d&&l<i.length-1?efe(this.a,i[l],i[l+1]):Wfe(this.a,i[l],d?(Bt(),cr):(Bt(),gr)),eTr(this,i,l,d)},E.fg=function(){this.d=st(Wr,vi,28,this.c,15,1),this.a=new YU(this.d)},E.ig=function(i,l,d){var g;g=d[i][l],this.c+=g.j.c.length},E.c=0,K(ph,"GreedyPortDistributor",1905),H(1421,1,hl,vTt),E.rg=function(i){return yyr(v(i,36))},E.Kf=function(i,l){f7r(v(i,36),l)};var Usn;K(ph,"InteractiveCrossingMinimizer",1421),H(1422,1,ui,tAt),E.Ne=function(i,l){return nEr(this,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ph,"InteractiveCrossingMinimizer/1",1422),H(514,1,{514:1,106:1,47:1},Fue),E.rg=function(i){var l;return v(i,36),l=EX(zsn),yi(l,(Mo(),qc),(qo(),Ate)),l},E.Kf=function(i,l){vAr(this,v(i,36),l)},E.e=0;var zsn;K(ph,"LayerSweepCrossingMinimizer",514),H(1418,1,vr,nAt),E.Cd=function(i){ukr(this.a,v(i,219))},K(ph,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),H(1419,1,vr,rAt),E.Cd=function(i){myr(this.a,v(i,219))},K(ph,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),H(1420,1,vr,iAt),E.Cd=function(i){pWt(this.a,v(i,219))},K(ph,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),H(464,22,{3:1,34:1,22:1,464:1},whe);var qq,_P,vne,Gsn=$r(ph,"LayerSweepCrossingMinimizer/CrossMinType",464,jr,_0r,Tcr),qsn;H(1417,1,si,dwt),E.Mb=function(i){return k9e(),v(i,30).a.c.length==0},K(ph,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),H(1862,1,JG,zDt),E.fg=function(){},E.gg=function(i,l,d,g,y,x){},E.jg=function(i,l,d,g){},E.hg=function(i,l){l[i][0].c.p=i,this.b[i]=st(Hsn,{3:1,4:1,5:1,2043:1},668,l[i].length,0,1)},E.ig=function(i,l,d){var g;g=d[i][l],g.p=l,Ga(this.b[i],l,new fwt)},K(ph,"LayerSweepTypeDecider",1862),H(668,1,{668:1},fwt),E.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},E.a=0,E.b=0,E.c=0;var Hsn=K(ph,"LayerSweepTypeDecider/NodeInfo",668);H(1863,1,ig,pwt),E.Lb=function(i){return QL(new V1(v(i,12).b))},E.Fb=function(i){return this===i},E.Mb=function(i){return QL(new V1(v(i,12).b))},K(ph,"LayerSweepTypeDecider/lambda$0$Type",1863),H(1864,1,ig,gwt),E.Lb=function(i){return QL(new V1(v(i,12).b))},E.Fb=function(i){return this===i},E.Mb=function(i){return QL(new V1(v(i,12).b))},K(ph,"LayerSweepTypeDecider/lambda$1$Type",1864),H(1906,413,p$e,h7t),E.tg=function(i,l,d){var g,y,x,T,R,O,D,q,J;switch(D=this.g,d.g){case 1:{for(g=0,y=0,O=new me(i.j);O.a<O.c.c.length;)T=v(pe(O),12),T.e.c.length!=0&&(++g,T.j==(Bt(),or)&&++y);for(x=l+y,J=l+g,R=VE(i,(ll(),Rh)).Kc();R.Ob();)T=v(R.Pb(),12),T.j==(Bt(),or)?(D[T.p]=x,--x):(D[T.p]=J,--J);return g}case 2:{for(q=0,R=VE(i,(ll(),_u)).Kc();R.Ob();)T=v(R.Pb(),12),++q,D[T.p]=l+q;return q}default:throw _e(new cU)}},K(ph,"LayerTotalPortDistributor",1906),H(669,832,{669:1,230:1},O$t),E.vg=function(i,l,d,g){d?Nqt(this,i):(Mqt(this,i,g),XWt(this,i,l)),i.c.length>1&&(Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),(qt(),vx))))?iYt(i,this.d,this):(Fn(),us(i,this.d)),Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),vx)))||aUt(this.e,i))},K(ph,"ModelOrderBarycenterHeuristic",669),H(1866,1,ui,aAt),E.Ne=function(i,l){return nSr(this.a,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ph,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),H(1423,1,hl,_Tt),E.rg=function(i){var l;return v(i,36),l=EX(Vsn),yi(l,(Mo(),qc),(qo(),Ate)),l},E.Kf=function(i,l){$dr((v(i,36),l))};var Vsn;K(ph,"NoCrossingMinimizer",1423),H(809,413,p$e,dRe),E.tg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;switch(J=this.g,d.g){case 1:{for(y=0,x=0,q=new me(i.j);q.a<q.c.c.length;)O=v(pe(q),12),O.e.c.length!=0&&(++y,O.j==(Bt(),or)&&++x);for(g=1/(y+1),T=l+x*g,ae=l+1-g,D=VE(i,(ll(),Rh)).Kc();D.Ob();)O=v(D.Pb(),12),O.j==(Bt(),or)?(J[O.p]=T,T-=g):(J[O.p]=ae,ae-=g);break}case 2:{for(R=0,q=new me(i.j);q.a<q.c.c.length;)O=v(pe(q),12),O.g.c.length==0||++R;for(g=1/(R+1),re=l+g,D=VE(i,(ll(),_u)).Kc();D.Ob();)O=v(D.Pb(),12),J[O.p]=re,re+=g;break}default:throw _e(new ar("Port type is undefined"))}return 1},K(ph,"NodeRelativePortDistributor",809),H(822,1,{},J9t,fHt),K(ph,"SweepCopy",822),H(1861,1,JG,Qzt),E.hg=function(i,l){},E.fg=function(){var i;i=st(Wr,vi,28,this.f,15,1),this.d=new fAt(i),this.a=new YU(i)},E.gg=function(i,l,d,g,y,x){var T;T=v(Yt(x[i][l].j,d),12),y.c==T&&y.c.i.c==y.d.i.c&&++this.e[i]},E.ig=function(i,l,d){var g;g=d[i][l],this.c[i]=this.c[i]|g.k==(lr(),iu)},E.jg=function(i,l,d,g){var y;y=v(Yt(g[i][l].j,d),12),y.p=this.f++,y.g.c.length+y.e.c.length>1&&(y.j==(Bt(),gr)?this.b[i]=!0:y.j==cr&&i>0&&(this.b[i-1]=!0))},E.f=0,K(Zg,"AllCrossingsCounter",1861),H(595,1,{},fZ),E.b=0,E.d=0,K(Zg,"BinaryIndexedTree",595),H(532,1,{},YU);var VVe,_ne;K(Zg,"CrossingsCounter",532),H(1950,1,ui,sAt),E.Ne=function(i,l){return hhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$0$Type",1950),H(1951,1,ui,oAt),E.Ne=function(i,l){return dhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$1$Type",1951),H(1952,1,ui,lAt),E.Ne=function(i,l){return fhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$2$Type",1952),H(1953,1,ui,cAt),E.Ne=function(i,l){return phr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$3$Type",1953),H(1954,1,vr,uAt),E.Cd=function(i){pgr(this.a,v(i,12))},K(Zg,"CrossingsCounter/lambda$4$Type",1954),H(1955,1,si,hAt),E.Mb=function(i){return Far(this.a,v(i,12))},K(Zg,"CrossingsCounter/lambda$5$Type",1955),H(1956,1,vr,dAt),E.Cd=function(i){j8t(this,i)},K(Zg,"CrossingsCounter/lambda$6$Type",1956),H(1957,1,vr,i8t),E.Cd=function(i){var l;r8(),Fv(this.b,(l=this.a,v(i,12),l))},K(Zg,"CrossingsCounter/lambda$7$Type",1957),H(839,1,ig,z6e),E.Lb=function(i){return r8(),ya(v(i,12),(At(),kh))},E.Fb=function(i){return this===i},E.Mb=function(i){return r8(),ya(v(i,12),(At(),kh))},K(Zg,"CrossingsCounter/lambda$8$Type",839),H(1949,1,{},fAt),K(Zg,"HyperedgeCrossingsCounter",1949),H(478,1,{34:1,478:1},oOt),E.Fd=function(i){return f2r(this,v(i,478))},E.b=0,E.c=0,E.e=0,E.f=0;var j8r=K(Zg,"HyperedgeCrossingsCounter/Hyperedge",478);H(374,1,{34:1,374:1},pQ),E.Fd=function(i){return A3r(this,v(i,374))},E.b=0,E.c=0;var Ysn=K(Zg,"HyperedgeCrossingsCounter/HyperedgeCorner",374);H(531,22,{3:1,34:1,22:1,531:1},HRe);var wP,EP,jsn=$r(Zg,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,jr,mfr,Ccr),Wsn;H(1425,1,hl,wTt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Ksn:null},E.Kf=function(i,l){Fwr(this,v(i,36),l)};var Ksn;K(dl,"InteractiveNodePlacer",1425),H(1426,1,hl,ETt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Xsn:null},E.Kf=function(i,l){E_r(this,v(i,36),l)};var Xsn,wne,Ene;K(dl,"LinearSegmentsNodePlacer",1426),H(261,1,{34:1,261:1},U7e),E.Fd=function(i){return Kir(this,v(i,261))},E.Fb=function(i){var l;return $e(i,261)?(l=v(i,261),this.b==l.b):!1},E.Hb=function(){return this.b},E.Ib=function(){return"ls"+Wv(this.e)},E.a=0,E.b=0,E.c=-1,E.d=-1,E.g=0;var Qsn=K(dl,"LinearSegmentsNodePlacer/LinearSegment",261);H(1428,1,hl,O9t),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Zsn:null},E.Kf=function(i,l){QRr(this,v(i,36),l)},E.b=0,E.g=0;var Zsn;K(dl,"NetworkSimplexPlacer",1428),H(1447,1,ui,mwt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dl,"NetworkSimplexPlacer/0methodref$compare$Type",1447),H(1449,1,ui,bwt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dl,"NetworkSimplexPlacer/1methodref$compare$Type",1449),H(655,1,{655:1},a8t);var W8r=K(dl,"NetworkSimplexPlacer/EdgeRep",655);H(412,1,{412:1},PNe),E.b=!1;var K8r=K(dl,"NetworkSimplexPlacer/NodeRep",412);H(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},g6t),K(dl,"NetworkSimplexPlacer/Path",515),H(1429,1,{},ywt),E.Kb=function(i){return v(i,18).d.i.k},K(dl,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),H(1430,1,si,vwt),E.Mb=function(i){return v(i,273)==(lr(),Ws)},K(dl,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),H(1431,1,{},_wt),E.Kb=function(i){return v(i,18).d.i},K(dl,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),H(1432,1,si,pAt),E.Mb=function(i){return VNt(Wzt(v(i,10)))},K(dl,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),H(1433,1,si,wwt),E.Mb=function(i){return Kur(v(i,12))},K(dl,"NetworkSimplexPlacer/lambda$0$Type",1433),H(1434,1,vr,s8t),E.Cd=function(i){Rsr(this.a,this.b,v(i,12))},K(dl,"NetworkSimplexPlacer/lambda$1$Type",1434),H(1443,1,vr,gAt),E.Cd=function(i){n4r(this.a,v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$10$Type",1443),H(1444,1,{},Ewt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$11$Type",1444),H(1445,1,vr,mAt),E.Cd=function(i){X5r(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$12$Type",1445),H(1446,1,{},xwt),E.Kb=function(i){return Sd(),Nt(v(i,125).e)},K(dl,"NetworkSimplexPlacer/lambda$13$Type",1446),H(1448,1,{},Swt),E.Kb=function(i){return Sd(),Nt(v(i,125).e)},K(dl,"NetworkSimplexPlacer/lambda$15$Type",1448),H(1450,1,si,Twt),E.Mb=function(i){return Sd(),v(i,412).c.k==(lr(),is)},K(dl,"NetworkSimplexPlacer/lambda$17$Type",1450),H(1451,1,si,Cwt),E.Mb=function(i){return Sd(),v(i,412).c.j.c.length>1},K(dl,"NetworkSimplexPlacer/lambda$18$Type",1451),H(1452,1,vr,ULt),E.Cd=function(i){Mvr(this.c,this.b,this.d,this.a,v(i,412))},E.c=0,E.d=0,K(dl,"NetworkSimplexPlacer/lambda$19$Type",1452),H(1435,1,{},Awt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$2$Type",1435),H(1453,1,vr,bAt),E.Cd=function(i){Nsr(this.a,v(i,12))},E.a=0,K(dl,"NetworkSimplexPlacer/lambda$20$Type",1453),H(1454,1,{},kwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$21$Type",1454),H(1455,1,vr,yAt),E.Cd=function(i){qsr(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$22$Type",1455),H(1456,1,si,Rwt),E.Mb=function(i){return VNt(i)},K(dl,"NetworkSimplexPlacer/lambda$23$Type",1456),H(1457,1,{},Iwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$24$Type",1457),H(1458,1,si,vAt),E.Mb=function(i){return Zar(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$25$Type",1458),H(1459,1,vr,o8t),E.Cd=function(i){sSr(this.a,this.b,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$26$Type",1459),H(1460,1,si,Nwt),E.Mb=function(i){return Sd(),!Jo(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$27$Type",1460),H(1461,1,si,Owt),E.Mb=function(i){return Sd(),!Jo(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$28$Type",1461),H(1462,1,{},_At),E.Ve=function(i,l){return Isr(this.a,v(i,30),v(l,30))},K(dl,"NetworkSimplexPlacer/lambda$29$Type",1462),H(1436,1,{},Lwt),E.Kb=function(i){return Sd(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dl,"NetworkSimplexPlacer/lambda$3$Type",1436),H(1437,1,si,Dwt),E.Mb=function(i){return Sd(),o1r(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$4$Type",1437),H(1438,1,vr,wAt),E.Cd=function(i){akr(this.a,v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$5$Type",1438),H(1439,1,{},Mwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$6$Type",1439),H(1440,1,si,Pwt),E.Mb=function(i){return Sd(),v(i,10).k==(lr(),is)},K(dl,"NetworkSimplexPlacer/lambda$7$Type",1440),H(1441,1,{},Bwt),E.Kb=function(i){return Sd(),new xn(null,new TE(new yr(_r(Qm(v(i,10)).a.Kc(),new S))))},K(dl,"NetworkSimplexPlacer/lambda$8$Type",1441),H(1442,1,si,Fwt),E.Mb=function(i){return Sd(),Wur(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$9$Type",1442),H(1424,1,hl,xTt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Jsn:null},E.Kf=function(i,l){$kr(v(i,36),l)};var Jsn;K(dl,"SimpleNodePlacer",1424),H(185,1,{185:1},c5),E.Ib=function(){var i;return i="",this.c==(Kp(),Cx)?i+=i6:this.c==Ey&&(i+=r6),this.o==(G1(),fw)?i+=cge:this.o==sp?i+="UP":i+="BALANCED",i},K(n2,"BKAlignedLayout",185),H(523,22,{3:1,34:1,22:1,523:1},VRe);var Ey,Cx,eon=$r(n2,"BKAlignedLayout/HDirection",523,jr,yfr,Acr),ton;H(522,22,{3:1,34:1,22:1,522:1},YRe);var fw,sp,non=$r(n2,"BKAlignedLayout/VDirection",522,jr,vfr,kcr),ron;H(1699,1,{},l8t),K(n2,"BKAligner",1699),H(1702,1,{},vqt),K(n2,"BKCompactor",1702),H(663,1,{663:1},$wt),E.a=0,K(n2,"BKCompactor/ClassEdge",663),H(467,1,{467:1},d6t),E.a=null,E.b=0,K(n2,"BKCompactor/ClassNode",467),H(1427,1,hl,d8t),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?ion:null},E.Kf=function(i,l){g8r(this,v(i,36),l)},E.d=!1;var ion;K(n2,"BKNodePlacer",1427),H(1700,1,{},Uwt),E.d=0,K(n2,"NeighborhoodInformation",1700),H(1701,1,ui,EAt),E.Ne=function(i,l){return qgr(this,v(i,42),v(l,42))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(n2,"NeighborhoodInformation/NeighborComparator",1701),H(823,1,{}),K(n2,"ThresholdStrategy",823),H(1825,823,{},f6t),E.wg=function(i,l,d){return this.a.o==(G1(),sp)?ka:Ss},E.xg=function(){},K(n2,"ThresholdStrategy/NullThresholdStrategy",1825),H(587,1,{587:1},f8t),E.c=!1,E.d=!1,K(n2,"ThresholdStrategy/Postprocessable",587),H(1826,823,{},p6t),E.wg=function(i,l,d){var g,y,x;return y=l==d,g=this.a.a[d.p]==l,y||g?(x=i,this.a.c==(Kp(),Cx)?(y&&(x=lpe(this,l,!0)),!isNaN(x)&&!isFinite(x)&&g&&(x=lpe(this,d,!1))):(y&&(x=lpe(this,l,!0)),!isNaN(x)&&!isFinite(x)&&g&&(x=lpe(this,d,!1))),x):i},E.xg=function(){for(var i,l,d,g,y;this.d.b!=0;)y=v(Dfr(this.d),587),g=Vjt(this,y),g.a&&(i=g.a,d=Vt(this.a.f[this.a.g[y.b.p].p]),!(!d&&!Jo(i)&&i.c.i.c==i.d.i.c)&&(l=XVt(this,y),l||tsr(this.e,y)));for(;this.e.a.c.length!=0;)XVt(this,v(QUt(this.e),587))},K(n2,"ThresholdStrategy/SimpleThresholdStrategy",1826),H(645,1,{645:1,188:1,196:1},zwt),E.dg=function(){return sUt(this)},E.qg=function(){return sUt(this)};var _ve;K(ome,"EdgeRouterFactory",645),H(1485,1,hl,STt),E.rg=function(i){return C5r(v(i,36))},E.Kf=function(i,l){Vkr(v(i,36),l)};var aon,son,oon,lon,con,YVe,uon,hon;K(ome,"OrthogonalEdgeRouter",1485),H(1478,1,hl,h8t),E.rg=function(i){return Wwr(v(i,36))},E.Kf=function(i,l){gRr(this,v(i,36),l)};var don,fon,pon,gon,Hq,mon;K(ome,"PolylineEdgeRouter",1478),H(1479,1,ig,qwt),E.Lb=function(i){return L9e(v(i,10))},E.Fb=function(i){return this===i},E.Mb=function(i){return L9e(v(i,10))},K(ome,"PolylineEdgeRouter/1",1479),H(1872,1,si,Hwt),E.Mb=function(i){return v(i,132).c==(o1(),d2)},K(f1,"HyperEdgeCycleDetector/lambda$0$Type",1872),H(1873,1,{},Vwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$1$Type",1873),H(1874,1,si,Ywt),E.Mb=function(i){return v(i,132).c==(o1(),d2)},K(f1,"HyperEdgeCycleDetector/lambda$2$Type",1874),H(1875,1,{},jwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$3$Type",1875),H(1876,1,{},Wwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$4$Type",1876),H(1877,1,{},Gwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$5$Type",1877),H(118,1,{34:1,118:1},Mz),E.Fd=function(i){return Xir(this,v(i,118))},E.Fb=function(i){var l;return $e(i,118)?(l=v(i,118),this.g==l.g):!1},E.Hb=function(){return this.g},E.Ib=function(){var i,l,d,g;for(i=new Ed("{"),g=new me(this.n);g.a<g.c.c.length;)d=v(pe(g),12),l=rG(d.i),l==null&&(l="n"+yOt(d.i)),i.a+=""+l,g.a<g.c.c.length&&(i.a+=",");return i.a+="}",i.a},E.a=0,E.b=0,E.c=NaN,E.d=0,E.g=0,E.i=0,E.o=0,E.s=NaN,K(f1,"HyperEdgeSegment",118),H(132,1,{132:1},R_),E.Ib=function(){return this.a+"->"+this.b+" ("+bor(this.c)+")"},E.d=0,K(f1,"HyperEdgeSegmentDependency",132),H(528,22,{3:1,34:1,22:1,528:1},jRe);var d2,n3,bon=$r(f1,"HyperEdgeSegmentDependency/DependencyType",528,jr,_fr,Rcr),yon;H(1878,1,{},xAt),K(f1,"HyperEdgeSegmentSplitter",1878),H(1879,1,{},g7t),E.a=0,E.b=0,K(f1,"HyperEdgeSegmentSplitter/AreaRating",1879),H(339,1,{339:1},lde),E.a=0,E.b=0,E.c=0,K(f1,"HyperEdgeSegmentSplitter/FreeArea",339),H(1880,1,ui,Kwt),E.Ne=function(i,l){return blr(v(i,118),v(l,118))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(f1,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),H(1881,1,vr,zLt),E.Cd=function(i){V1r(this.a,this.d,this.c,this.b,v(i,118))},E.b=0,K(f1,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),H(1882,1,{},Xwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).e,16))},K(f1,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),H(1883,1,{},Qwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).j,16))},K(f1,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),H(1884,1,{},Zwt),E.Ye=function(i){return We(at(i))},K(f1,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),H(664,1,{},Lde),E.a=0,E.b=0,E.c=0,K(f1,"OrthogonalRoutingGenerator",664),H(1703,1,{},Jwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).e,16))},K(f1,"OrthogonalRoutingGenerator/lambda$0$Type",1703),H(1704,1,{},eEt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).j,16))},K(f1,"OrthogonalRoutingGenerator/lambda$1$Type",1704),H(670,1,{}),K(lme,"BaseRoutingDirectionStrategy",670),H(1870,670,{},y6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l+i.o*d,D=new me(i.n);D.a<D.c.c.length;)for(O=v(pe(D),12),J=ac(Te(xe(Vs,1),kt,8,0,[O.i.n,O.n,O.a])).a,R=new me(O.g);R.a<R.c.c.length;)T=v(pe(R),18),Jo(T)||(le=T.d,de=ac(Te(xe(Vs,1),kt,8,0,[le.i.n,le.n,le.a])).a,u.Math.abs(J-de)>sg&&(x=q,y=i,g=new Ct(J,x),pi(T.a,g),QE(this,T,y,g,!1),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1),x=l+re.o*d,y=re,g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1)),g=new Ct(de,x),pi(T.a,g),QE(this,T,y,g,!1)))},E.zg=function(i){return i.i.n.a+i.n.a+i.a.a},E.Ag=function(){return Bt(),Mr},E.Bg=function(){return Bt(),or},K(lme,"NorthToSouthRoutingStrategy",1870),H(1871,670,{},v6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l-i.o*d,D=new me(i.n);D.a<D.c.c.length;)for(O=v(pe(D),12),J=ac(Te(xe(Vs,1),kt,8,0,[O.i.n,O.n,O.a])).a,R=new me(O.g);R.a<R.c.c.length;)T=v(pe(R),18),Jo(T)||(le=T.d,de=ac(Te(xe(Vs,1),kt,8,0,[le.i.n,le.n,le.a])).a,u.Math.abs(J-de)>sg&&(x=q,y=i,g=new Ct(J,x),pi(T.a,g),QE(this,T,y,g,!1),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1),x=l-re.o*d,y=re,g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1)),g=new Ct(de,x),pi(T.a,g),QE(this,T,y,g,!1)))},E.zg=function(i){return i.i.n.a+i.n.a+i.a.a},E.Ag=function(){return Bt(),or},E.Bg=function(){return Bt(),Mr},K(lme,"SouthToNorthRoutingStrategy",1871),H(1869,670,{},_6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l+i.o*d,D=new me(i.n);D.a<D.c.c.length;)for(O=v(pe(D),12),J=ac(Te(xe(Vs,1),kt,8,0,[O.i.n,O.n,O.a])).b,R=new me(O.g);R.a<R.c.c.length;)T=v(pe(R),18),Jo(T)||(le=T.d,de=ac(Te(xe(Vs,1),kt,8,0,[le.i.n,le.n,le.a])).b,u.Math.abs(J-de)>sg&&(x=q,y=i,g=new Ct(x,J),pi(T.a,g),QE(this,T,y,g,!0),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(x,ae),pi(T.a,g),QE(this,T,y,g,!0),x=l+re.o*d,y=re,g=new Ct(x,ae),pi(T.a,g),QE(this,T,y,g,!0)),g=new Ct(x,de),pi(T.a,g),QE(this,T,y,g,!0)))},E.zg=function(i){return i.i.n.b+i.n.b+i.a.b},E.Ag=function(){return Bt(),gr},E.Bg=function(){return Bt(),cr},K(lme,"WestToEastRoutingStrategy",1869),H(828,1,{},NPe),E.Ib=function(){return Wv(this.a)},E.b=0,E.c=!1,E.d=!1,E.f=0,K(O4,"NubSpline",828),H(418,1,{418:1},RYt,vDt),K(O4,"NubSpline/PolarCP",418),H(1480,1,hl,hqt),E.rg=function(i){return BEr(v(i,36))},E.Kf=function(i,l){DRr(this,v(i,36),l)};var von,_on,won,Eon,xon;K(O4,"SplineEdgeRouter",1480),H(274,1,{274:1},BQ),E.Ib=function(){return this.a+" ->("+this.c+") "+this.b},E.c=0,K(O4,"SplineEdgeRouter/Dependency",274),H(465,22,{3:1,34:1,22:1,465:1},WRe);var f2,H5,Son=$r(O4,"SplineEdgeRouter/SideToProcess",465,jr,Cfr,Icr),Ton;H(1481,1,si,tEt),E.Mb=function(i){return aM(),!v(i,131).o},K(O4,"SplineEdgeRouter/lambda$0$Type",1481),H(1482,1,{},nEt),E.Ze=function(i){return aM(),v(i,131).v+1},K(O4,"SplineEdgeRouter/lambda$1$Type",1482),H(1483,1,vr,p8t),E.Cd=function(i){Zur(this.a,this.b,v(i,42))},K(O4,"SplineEdgeRouter/lambda$2$Type",1483),H(1484,1,vr,g8t),E.Cd=function(i){Jur(this.a,this.b,v(i,42))},K(O4,"SplineEdgeRouter/lambda$3$Type",1484),H(131,1,{34:1,131:1},qHt,BPe),E.Fd=function(i){return Jir(this,v(i,131))},E.b=0,E.e=!1,E.f=0,E.g=0,E.j=!1,E.k=!1,E.n=0,E.o=!1,E.p=!1,E.q=!1,E.s=0,E.u=0,E.v=0,E.F=0,K(O4,"SplineSegment",131),H(468,1,{468:1},rEt),E.a=0,E.b=!1,E.c=!1,E.d=!1,E.e=!1,E.f=0,K(O4,"SplineSegment/EdgeInformation",468),H(1198,1,{},iEt),K(sb,DBe,1198),H(1199,1,ui,aEt),E.Ne=function(i,l){return v4r(v(i,121),v(l,121))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(sb,$Xt,1199),H(1197,1,{},N7t),K(sb,"MrTree",1197),H(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},oX),E.dg=function(){return uVt(this)},E.qg=function(){return uVt(this)};var xne,xP,SP,TP,jVe=$r(sb,"TreeLayoutPhases",405,jr,k1r,Ncr),Con;H(1112,205,K_,aOt),E.rf=function(i,l){var d,g,y,x,T,R,O,D;for(Vt(Ht(Et(i,(pc(),yYe))))||oz((d=new dL((fE(),new aE(i))),d)),T=l.eh(hme),T.Ug("build tGraph",1),R=(O=new mz,Ul(O,i),_t(O,(fa(),AP),i),D=new Br,hAr(i,O,D),IAr(i,O,D),O),T.Vg(),T=l.eh(hme),T.Ug("Split graph",1),x=bAr(this.a,R),T.Vg(),y=new me(x);y.a<y.c.c.length;)g=v(pe(y),121),EEr(this.b,g,l.eh(.5999999940395355/x.c.length));T=l.eh(hme),T.Ug("Pack components",1),R=m8r(x),T.Vg(),T=l.eh(hme),T.Ug("Apply layout results",1),a7r(R),T.Vg()},K(sb,"TreeLayoutProvider",1112),H(1894,1,jg,oEt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(sb,"TreeUtil/1",1894),H(1895,1,jg,lEt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(sb,"TreeUtil/2",1895),H(1885,1,si,cEt),E.Mb=function(i){return Vt(Ht(oe(v(i,40),(fa(),p2))))},K(sb,"TreeUtil/lambda$0$Type",1885),H(1891,1,si,SAt),E.Mb=function(i){return this.a.Hc(v(i,40))},K(sb,"TreeUtil/lambda$10$Type",1891),H(1892,1,{},TAt),E.Kb=function(i){return A1r(this.a,v(i,40))},K(sb,"TreeUtil/lambda$11$Type",1892),H(1893,1,si,m8t),E.Mb=function(i){return Tgr(this.a,this.b,v(i,40))},K(sb,"TreeUtil/lambda$12$Type",1893),H(1886,1,si,CAt),E.Mb=function(i){return hvr(this.a,v(i,65))},K(sb,"TreeUtil/lambda$3$Type",1886),H(1887,1,ui,sEt),E.Ne=function(i,l){return ylr(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(sb,"TreeUtil/lambda$4$Type",1887),H(1888,1,si,AAt),E.Mb=function(i){return dvr(this.a,v(i,65))},K(sb,"TreeUtil/lambda$7$Type",1888),H(1889,1,ui,uEt),E.Ne=function(i,l){return vlr(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(sb,"TreeUtil/lambda$8$Type",1889),H(1890,1,{},hEt),E.Kb=function(i){return v(i,65).b},K(sb,"TreeUtil/lambda$9$Type",1890),H(508,137,{3:1,508:1,96:1,137:1}),E.g=0,K(NM,"TGraphElement",508),H(65,508,{3:1,65:1,508:1,96:1,137:1},$Ne),E.Ib=function(){return this.b&&this.c?I_(this.b)+"->"+I_(this.c):"e_"+ma(this)},K(NM,"TEdge",65),H(121,137,{3:1,121:1,96:1,137:1},mz),E.Ib=function(){var i,l,d,g,y;for(y=null,g=Ur(this.b,0);g.b!=g.d.c;)d=v(Fr(g),40),y+=(d.c==null||d.c.length==0?"n_"+d.g:"n_"+d.c)+`
`;for(l=Ur(this.a,0);l.b!=l.d.c;)i=v(Fr(l),65),y+=(i.b&&i.c?I_(i.b)+"->"+I_(i.c):"e_"+ma(i))+`
`;return y};var X8r=K(NM,"TGraph",121);H(643,508,{3:1,508:1,643:1,96:1,137:1}),K(NM,"TShape",643),H(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},h0e),E.Ib=function(){return I_(this)};var Sne=K(NM,"TNode",40);H(236,1,jg,Mm),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=Ur(this.a.d,0),new xT(i)},K(NM,"TNode/2",236),H(329,1,io,xT),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(Fr(this.a),65).c},E.Ob=function(){return hU(this.a)},E.Qb=function(){$fe(this.a)},K(NM,"TNode/2/1",329),H(1923,1,ba,dEt),E.Kf=function(i,l){u8r(this,v(i,121),l)},K(nu,"CompactionProcessor",1923),H(1924,1,ui,kAt),E.Ne=function(i,l){return Qmr(this.a,v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$0$Type",1924),H(1925,1,si,b8t),E.Mb=function(i){return rfr(this.b,this.a,v(i,42))},E.a=0,E.b=0,K(nu,"CompactionProcessor/lambda$1$Type",1925),H(1934,1,ui,fEt),E.Ne=function(i,l){return Whr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$10$Type",1934),H(1935,1,ui,pEt),E.Ne=function(i,l){return oor(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$11$Type",1935),H(1936,1,ui,gEt),E.Ne=function(i,l){return Khr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$12$Type",1936),H(1926,1,si,RAt),E.Mb=function(i){return Hsr(this.a,v(i,42))},E.a=0,K(nu,"CompactionProcessor/lambda$2$Type",1926),H(1927,1,si,IAt),E.Mb=function(i){return Vsr(this.a,v(i,42))},E.a=0,K(nu,"CompactionProcessor/lambda$3$Type",1927),H(1928,1,si,mEt),E.Mb=function(i){return v(i,40).c.indexOf(_ee)==-1},K(nu,"CompactionProcessor/lambda$4$Type",1928),H(1929,1,{},NAt),E.Kb=function(i){return a1r(this.a,v(i,40))},E.a=0,K(nu,"CompactionProcessor/lambda$5$Type",1929),H(1930,1,{},OAt),E.Kb=function(i){return fgr(this.a,v(i,40))},E.a=0,K(nu,"CompactionProcessor/lambda$6$Type",1930),H(1931,1,ui,LAt),E.Ne=function(i,l){return Spr(this.a,v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$7$Type",1931),H(1932,1,ui,DAt),E.Ne=function(i,l){return Tpr(this.a,v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$8$Type",1932),H(1933,1,ui,bEt),E.Ne=function(i,l){return lor(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$9$Type",1933),H(1921,1,ba,yEt),E.Kf=function(i,l){sCr(v(i,121),l)},K(nu,"DirectionProcessor",1921),H(1913,1,ba,iOt),E.Kf=function(i,l){kAr(this,v(i,121),l)},K(nu,"FanProcessor",1913),H(1937,1,ba,vEt),E.Kf=function(i,l){W5r(v(i,121),l)},K(nu,"GraphBoundsProcessor",1937),H(1938,1,{},_Et),E.Ye=function(i){return v(i,40).e.a},K(nu,"GraphBoundsProcessor/lambda$0$Type",1938),H(1939,1,{},wEt),E.Ye=function(i){return v(i,40).e.b},K(nu,"GraphBoundsProcessor/lambda$1$Type",1939),H(1940,1,{},EEt),E.Ye=function(i){return Aar(v(i,40))},K(nu,"GraphBoundsProcessor/lambda$2$Type",1940),H(1941,1,{},xEt),E.Ye=function(i){return Car(v(i,40))},K(nu,"GraphBoundsProcessor/lambda$3$Type",1941),H(262,22,{3:1,34:1,22:1,262:1,196:1},pE),E.dg=function(){switch(this.g){case 0:return new D6t;case 1:return new iOt;case 2:return new L6t;case 3:return new kEt;case 4:return new TEt;case 8:return new SEt;case 5:return new yEt;case 6:return new IEt;case 7:return new dEt;case 9:return new vEt;case 10:return new NEt;default:throw _e(new ar(Age+(this.f!=null?this.f:""+this.g)))}};var WVe,KVe,XVe,QVe,ZVe,JVe,eYe,tYe,nYe,rYe,wve,Q8r=$r(nu,kge,262,jr,Z$t,Ocr),Aon;H(1920,1,ba,SEt),E.Kf=function(i,l){oRr(v(i,121),l)},K(nu,"LevelCoordinatesProcessor",1920),H(1918,1,ba,TEt),E.Kf=function(i,l){kTr(this,v(i,121),l)},E.a=0,K(nu,"LevelHeightProcessor",1918),H(1919,1,jg,CEt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(nu,"LevelHeightProcessor/1",1919),H(1914,1,ba,L6t),E.Kf=function(i,l){G5r(this,v(i,121),l)},K(nu,"LevelProcessor",1914),H(1915,1,si,AEt),E.Mb=function(i){return Vt(Ht(oe(v(i,40),(fa(),p2))))},K(nu,"LevelProcessor/lambda$0$Type",1915),H(1916,1,ba,kEt),E.Kf=function(i,l){TSr(this,v(i,121),l)},E.a=0,K(nu,"NeighborsProcessor",1916),H(1917,1,jg,REt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(nu,"NeighborsProcessor/1",1917),H(1922,1,ba,IEt),E.Kf=function(i,l){AAr(this,v(i,121),l)},E.a=0,K(nu,"NodePositionProcessor",1922),H(1912,1,ba,D6t),E.Kf=function(i,l){c6r(this,v(i,121),l)},K(nu,"RootProcessor",1912),H(1942,1,ba,NEt),E.Kf=function(i,l){a_r(v(i,121),l)},K(nu,"Untreeifyer",1942),H(392,22,{3:1,34:1,22:1,392:1},xhe);var Vq,Eve,iYe,aYe=$r(rq,"EdgeRoutingMode",392,jr,w0r,Lcr),kon,Yq,gN,xve,sYe,oYe,Sve,Tve,lYe,Cve,cYe,Ave,CP,kve,Tne,Cne,L0,b1,mN,AP,kP,xy,uYe,Ron,Rve,p2,jq,Wq;H(862,1,Hf,TTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,b$e),""),NQt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,y$e),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,v$e),""),"Tree Level"),"The index for the tree level the node is in"),Nt(0)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,_$e),""),NQt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,w$e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),fYe),Ra),TYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,E$e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),hYe),Ra),aYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,x$e),""),"Search Order"),"Which search order to use when computing a spanning tree."),dYe),Ra),AYe),bn(Hn)))),_Kt((new kTt,i))};var Ion,Non,Oon,hYe,Lon,Don,dYe,Mon,Pon,fYe;K(rq,"MrTreeMetaDataProvider",862),H(1006,1,Hf,kTt),E.hf=function(i){_Kt(i)};var Bon,pYe,gYe,Ax,mYe,bYe,Ive,Fon,$on,Uon,zon,Gon,qon,Hon,yYe,vYe,_Ye,Von,V5,Ane,wYe,Yon,EYe,Nve,jon,Won,Kon,xYe,Xon,gg,SYe;K(rq,"MrTreeOptions",1006),H(1007,1,{},OEt),E.sf=function(){var i;return i=new aOt,i},E.tf=function(i){},K(rq,"MrTreeOptions/MrtreeFactory",1007),H(353,22,{3:1,34:1,22:1,353:1},lX);var Ove,kne,Lve,Dve,TYe=$r(rq,"OrderWeighting",353,jr,R1r,Dcr),Qon;H(433,22,{3:1,34:1,22:1,433:1},KRe);var CYe,Mve,AYe=$r(rq,"TreeifyingOrder",433,jr,Sfr,Mcr),Zon;H(1486,1,hl,RTt),E.rg=function(i){return v(i,121),Jon},E.Kf=function(i,l){$mr(this,v(i,121),l)};var Jon;K("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),H(1487,1,hl,ITt),E.rg=function(i){return v(i,121),eln},E.Kf=function(i,l){Y5r(this,v(i,121),l)};var eln;K(LI,"NodeOrderer",1487),H(1494,1,{},urr),E.td=function(i){return h9t(i)},K(LI,"NodeOrderer/0methodref$lambda$6$Type",1494),H(1488,1,si,WEt),E.Mb=function(i){return Pk(),Vt(Ht(oe(v(i,40),(fa(),p2))))},K(LI,"NodeOrderer/lambda$0$Type",1488),H(1489,1,si,KEt),E.Mb=function(i){return Pk(),v(oe(v(i,40),(pc(),V5)),17).a<0},K(LI,"NodeOrderer/lambda$1$Type",1489),H(1490,1,si,PAt),E.Mb=function(i){return pmr(this.a,v(i,40))},K(LI,"NodeOrderer/lambda$2$Type",1490),H(1491,1,si,MAt),E.Mb=function(i){return l1r(this.a,v(i,40))},K(LI,"NodeOrderer/lambda$3$Type",1491),H(1492,1,ui,XEt),E.Ne=function(i,l){return Bgr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(LI,"NodeOrderer/lambda$4$Type",1492),H(1493,1,si,QEt),E.Mb=function(i){return Pk(),v(oe(v(i,40),(fa(),Tve)),17).a!=0},K(LI,"NodeOrderer/lambda$5$Type",1493),H(1495,1,hl,ATt),E.rg=function(i){return v(i,121),tln},E.Kf=function(i,l){eAr(this,v(i,121),l)},E.b=0;var tln;K("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),H(1496,1,hl,CTt),E.rg=function(i){return v(i,121),nln},E.Kf=function(i,l){PCr(v(i,121),l)};var nln,Z8r=K(hd,"EdgeRouter",1496);H(1498,1,ui,jEt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/0methodref$compare$Type",1498),H(1503,1,{},DEt),E.Ye=function(i){return We(at(i))},K(hd,"EdgeRouter/1methodref$doubleValue$Type",1503),H(1505,1,ui,MEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/2methodref$compare$Type",1505),H(1507,1,ui,PEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/3methodref$compare$Type",1507),H(1509,1,{},LEt),E.Ye=function(i){return We(at(i))},K(hd,"EdgeRouter/4methodref$doubleValue$Type",1509),H(1511,1,ui,BEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/5methodref$compare$Type",1511),H(1513,1,ui,FEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/6methodref$compare$Type",1513),H(1497,1,{},$Et),E.Kb=function(i){return jm(),v(oe(v(i,40),(pc(),gg)),17)},K(hd,"EdgeRouter/lambda$0$Type",1497),H(1508,1,{},UEt),E.Kb=function(i){return Eor(v(i,40))},K(hd,"EdgeRouter/lambda$11$Type",1508),H(1510,1,{},y8t),E.Kb=function(i){return Xur(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$13$Type",1510),H(1512,1,{},v8t),E.Kb=function(i){return xor(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$15$Type",1512),H(1514,1,ui,zEt),E.Ne=function(i,l){return M2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$17$Type",1514),H(1515,1,ui,GEt),E.Ne=function(i,l){return P2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$18$Type",1515),H(1516,1,ui,qEt),E.Ne=function(i,l){return F2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$19$Type",1516),H(1499,1,si,BAt),E.Mb=function(i){return $fr(this.a,v(i,40))},E.a=0,K(hd,"EdgeRouter/lambda$2$Type",1499),H(1517,1,ui,HEt),E.Ne=function(i,l){return B2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$20$Type",1517),H(1500,1,ui,VEt),E.Ne=function(i,l){return Pur(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$3$Type",1500),H(1501,1,ui,YEt),E.Ne=function(i,l){return Bur(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$4$Type",1501),H(1502,1,{},ZEt),E.Kb=function(i){return Sor(v(i,40))},K(hd,"EdgeRouter/lambda$5$Type",1502),H(1504,1,{},_8t),E.Kb=function(i){return Qur(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$7$Type",1504),H(1506,1,{},w8t),E.Kb=function(i){return Tor(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$9$Type",1506),H(675,1,{675:1},JGt),E.e=0,E.f=!1,E.g=!1,K(hd,"MultiLevelEdgeNodeNodeGap",675),H(1943,1,ui,JEt),E.Ne=function(i,l){return Kfr(v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),H(1944,1,ui,ext),E.Ne=function(i,l){return Xfr(v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var Y5;H(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},XRe),E.dg=function(){return $zt(this)},E.qg=function(){return $zt(this)};var Rne,j5,kYe=$r(S$e,"RadialLayoutPhases",501,jr,bfr,Pcr),rln;H(1113,205,K_,I7t),E.rf=function(i,l){var d,g,y,x,T,R;if(d=SYt(this,i),l.Ug("Radial layout",d.c.length),Vt(Ht(Et(i,(Xv(),$Ye))))||oz((g=new dL((fE(),new aE(i))),g)),R=UEr(i),sa(i,(UT(),Y5),R),!R)throw _e(new ar("The given graph is not a tree!"));for(y=We(at(Et(i,One))),y==0&&(y=iVt(i)),sa(i,One,y),T=new me(SYt(this,i));T.a<T.c.c.length;)x=v(pe(T),47),x.Kf(i,l.eh(1));l.Vg()},K(S$e,"RadialLayoutProvider",1113),H(556,1,ui,BK),E.Ne=function(i,l){return ECr(this.a,this.b,v(i,27),v(l,27))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},E.a=0,E.b=0,K(S$e,"RadialUtil/lambda$0$Type",556),H(1395,1,ba,txt),E.Kf=function(i,l){fRr(v(i,27),l)},K(A$e,"CalculateGraphSize",1395),H(1396,1,ba,nxt),E.Kf=function(i,l){Mkr(v(i,27))},K(A$e,"EdgeAngleCalculator",1396),H(368,22,{3:1,34:1,22:1,368:1,196:1},AU),E.dg=function(){switch(this.g){case 0:return new lxt;case 1:return new rxt;case 2:return new cxt;case 3:return new txt;case 4:return new nxt;default:throw _e(new ar(Age+(this.f!=null?this.f:""+this.g)))}};var Pve,Bve,Fve,$ve,Uve,iln=$r(A$e,kge,368,jr,gpr,Bcr),aln;H(653,1,{}),E.e=1,E.g=0,K(dme,"AbstractRadiusExtensionCompaction",653),H(1834,653,{},TNt),E.Cg=function(i){var l,d,g,y,x,T,R,O,D;for(this.c=v(Et(i,(UT(),Y5)),27),Nrr(this,this.c),this.d=K0e(v(Et(i,(Xv(),Kq)),300)),O=v(Et(i,Gve),17),O&&v5t(this,O.a),R=at(Et(i,(Ei(),bw))),o7e(this,(hr(R),R)),D=E4(this.c),this.d&&this.d.Gg(D),UCr(this,D),T=new wh(Te(xe(Pi,1),MQt,27,0,[this.c])),d=0;d<2;d++)for(l=0;l<D.c.length;l++)y=new wh(Te(xe(Pi,1),MQt,27,0,[($n(l,D.c.length),v(D.c[l],27))])),x=l<D.c.length-1?($n(l+1,D.c.length),v(D.c[l+1],27)):($n(0,D.c.length),v(D.c[0],27)),g=l==0?v(Yt(D,D.c.length-1),27):($n(l-1,D.c.length),v(D.c[l-1],27)),tHt(this,($n(l,D.c.length),v(D.c[l],27),T),g,x,y)},K(dme,"AnnulusWedgeCompaction",1834),H(1393,1,ba,rxt),E.Kf=function(i,l){Lmr(v(i,27),l)},K(dme,"GeneralCompactor",1393),H(1833,653,{},ixt),E.Cg=function(i){var l,d,g,y;d=v(Et(i,(UT(),Y5)),27),this.f=d,this.b=K0e(v(Et(i,(Xv(),Kq)),300)),y=v(Et(i,Gve),17),y&&v5t(this,y.a),g=at(Et(i,(Ei(),bw))),o7e(this,(hr(g),g)),l=E4(d),this.b&&this.b.Gg(l),LHt(this,l)},E.a=0,K(dme,"RadialCompaction",1833),H(1842,1,{},axt),E.Dg=function(i){var l,d,g,y,x,T;for(this.a=i,l=0,T=E4(i),g=0,x=new me(T);x.a<x.c.c.length;)for(y=v(pe(x),27),++g,d=g;d<T.c.length;d++)nkr(this,y,($n(d,T.c.length),v(T.c[d],27)))&&(l+=1);return l},K(k$e,"CrossingMinimizationPosition",1842),H(1840,1,{},sxt),E.Dg=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;for(g=0,d=new yr(_r(eb(i).a.Kc(),new S));zr(d);)l=v(Rr(d),74),R=zl(v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84)),D=R.i+R.g/2,q=R.j+R.f/2,y=i.i+i.g/2,x=i.j+i.f/2,J=new ho,J.a=D-y,J.b=q-x,T=new Ct(J.a,J.b),nI(T,i.g,i.f),J.a-=T.a,J.b-=T.b,y=D-J.a,x=q-J.b,O=new Ct(J.a,J.b),nI(O,R.g,R.f),J.a-=O.a,J.b-=O.b,D=y+J.a,q=x+J.b,re=D-y,ae=q-x,g+=u.Math.sqrt(re*re+ae*ae);return g},K(k$e,"EdgeLengthOptimization",1840),H(1841,1,{},oxt),E.Dg=function(i){var l,d,g,y,x,T,R,O,D,q,J;for(g=0,d=new yr(_r(eb(i).a.Kc(),new S));zr(d);)l=v(Rr(d),74),R=zl(v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84)),O=R.i+R.g/2,D=R.j+R.f/2,y=v(Et(R,(Ei(),R6)),8),x=i.i+y.a+i.g/2,T=i.j+y.b+i.f,q=O-x,J=D-T,g+=u.Math.sqrt(q*q+J*J);return g},K(k$e,"EdgeLengthPositionOptimization",1841),H(1392,653,ba,lxt),E.Kf=function(i,l){$Sr(this,v(i,27),l)},K("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1392),H(1394,1,ba,cxt),E.Kf=function(i,l){Lhr(v(i,27),l)},K("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1394),H(434,22,{3:1,34:1,22:1,434:1},QRe);var RYe,zve,IYe=$r(OM,"AnnulusWedgeCriteria",434,jr,Tfr,$cr),sln;H(393,22,{3:1,34:1,22:1,393:1},She);var Ine,NYe,OYe,LYe=$r(OM,RBe,393,jr,R0r,Fcr),oln;H(863,1,Hf,NTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,R$e),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,I$e),""),"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."),Nt(0)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,N$e),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xee),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,pme),""),PQt),"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."),DYe),Ra),LYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,gme),""),"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."),Nt(1)),Zl),Ao),bn(Hn)))),bs(i,gme,pme,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,O$e),""),"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."),PYe),Ra),QYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,L$e),""),"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."),BYe),Ra),IYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,D$e),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),MYe),Ra),WYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,mme),P$e),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Fo),ws),bn(Hn)))),bs(i,mme,xee,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bme),P$e),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),Gs),rs),bn(Hn)))),bs(i,bme,xee,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,M$e),P$e),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),Gs),rs),bn(Hn)))),fKt((new OTt,i))};var lln,cln,uln,DYe,hln,MYe,dln,fln,pln,gln,mln,bln,yln,PYe,vln,BYe;K(OM,"RadialMetaDataProvider",863),H(1008,1,Hf,OTt),E.hf=function(i){fKt(i)};var FYe,Gve,qve,_ln,wln,Eln,xln,$Ye,UYe,Nne,Sln,Tln,One,zYe,GYe,qYe,Hve,Kq,Cln,HYe;K(OM,"RadialOptions",1008),H(1009,1,{},uxt),E.sf=function(){var i;return i=new I7t,i},E.tf=function(i){},K(OM,"RadialOptions/RadialFactory",1009),H(354,22,{3:1,34:1,22:1,354:1},cX);var VYe,YYe,jYe,Vve,WYe=$r(OM,"RadialTranslationStrategy",354,jr,I1r,Ucr),Aln;H(300,22,{3:1,34:1,22:1,300:1},The);var KYe,Yve,XYe,QYe=$r(OM,"SortingStrategy",300,jr,I0r,zcr),kln;H(1476,1,hl,hxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){l4r(this,v(i,27),l)},E.c=0,K("org.eclipse.elk.alg.radial.p1position","EadesRadial",1476),H(1838,1,{},dxt),E.Eg=function(i){return MGt(i)},K(BQt,"AnnulusWedgeByLeafs",1838),H(1839,1,{},fxt),E.Eg=function(i){return jqt(this,i)},K(BQt,"AnnulusWedgeByNodeSpace",1839),H(1477,1,hl,pxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){vvr(this,v(i,27),l)},K("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1477),H(826,1,{},K7e),E.Fg=function(i){},E.Gg=function(i){Ykt(this,i)},K(B$e,"IDSorter",826),H(1837,1,ui,gxt),E.Ne=function(i,l){return Dmr(v(i,27),v(l,27))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(B$e,"IDSorter/lambda$0$Type",1837),H(1836,1,{},U$t),E.Fg=function(i){OMt(this,i)},E.Gg=function(i){var l;i.dc()||(this.e||(l=T9t(v(i.Xb(0),27)),OMt(this,l)),Ykt(this.e,i))},K(B$e,"PolarCoordinateSorter",1836),H(445,22,{3:1,34:1,22:1,445:1},Che);var Xq,Lne,jve,ZYe=$r(zQt,"RectPackingLayoutPhases",445,jr,A0r,Gcr),Rln;H(1118,205,K_,O7t),E.rf=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;if(l.Ug("Rectangle Packing",1),J=v(Et(i,(Z1(),NP)),107),O=Vt(Ht(Et(i,Qln))),q=We(at(Et(i,OP))),mn=Vt(Ht(Et(i,uje))),je=(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),Vt(Ht(Et(i,e2e)))||oz((y=new dL((fE(),new aE(i))),y)),yn=!1,mn&&je.i>=3)for(xt=v(ze(je,0),27),Mt=v(ze(je,1),27),x=0;x+2<je.i;)if(yt=xt,xt=Mt,Mt=v(ze(je,x+2),27),yt.f>=xt.f+Mt.f+q||Mt.f>=yt.f+xt.f+q){yn=!0;break}else++x;else yn=!0;if(!yn){for(re=je.i,R=new mr(je);R.e!=R.i.gc();)T=v(wr(R),27),sa(T,(Ei(),lH),Nt(re)),--re;eWt(i,new tk),l.Vg();return}for(d=(nz(this.a),a1(this.a,(BZ(),Xq),v(Et(i,pje),188)),a1(this.a,Lne,v(Et(i,lje),188)),a1(this.a,jve,v(Et(i,hje),188)),p8e(this.a,(Kn=new ms,yi(Kn,Xq,(WZ(),Xve)),yi(Kn,Lne,Kve),Vt(Ht(Et(i,sje)))&&yi(Kn,Xq,Wve),Kn)),kG(this.a,i)),D=1/d.c.length,le=new me(d);le.a<le.c.c.length;){if(ae=v(pe(le),47),l.$g())return;ae.Kf(i,l.eh(D))}for(Se=0,de=0,Ue=new mr(je);Ue.e!=Ue.i.gc();)Me=v(wr(Ue),27),Se=u.Math.max(Se,Me.i+Me.g),de=u.Math.max(de,Me.j+Me.f);fMe(i,new Ct(We(at(Et(i,(Vg(),C6)))),We(at(Et(i,bN)))),new Ct(Se,de)),rbr(je,J),O||JE(i,We(at(Et(i,C6)))+(J.b+J.c),We(at(Et(i,bN)))+(J.d+J.a),!1,!0),Vt(Ht(Et(i,e2e)))||oz((g=new dL((fE(),new aE(i))),g)),l.Vg()},K(zQt,"RectPackingLayoutProvider",1118),H(1518,1,ba,mxt),E.Kf=function(i,l){Pkr(v(i,27),l)},K(See,"InteractiveNodeReorderer",1518),H(1519,1,ui,bxt),E.Ne=function(i,l){return qbr(v(i,27),v(l,27))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(See,"InteractiveNodeReorderer/lambda$0$Type",1519),H(456,22,{3:1,34:1,22:1,456:1,196:1},Ahe),E.dg=function(){switch(this.g){case 0:return new mxt;case 1:return new vxt;case 2:return new yxt}return null};var Wve,Kve,Xve,Iln=$r(See,kge,456,jr,k0r,qcr),Nln;H(1521,1,ba,yxt),E.Kf=function(i,l){r2r(v(i,27),l)},K(See,"MinSizePostProcessor",1521),H(1520,1,ba,vxt),E.Kf=function(i,l){tyr(v(i,27),l)},K(See,"MinSizePreProcessor",1520);var RP,bN,C6,Oln,Lln,Dne,Qve,Zve,IP,Mne,r3;H(394,22,{3:1,34:1,22:1,394:1},khe);var JYe,eje,Jve,tje=$r(yme,"OptimizationGoal",394,jr,C0r,Hcr),Dln;H(867,1,Hf,LTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,F$e),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,$$e),""),"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."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,U$e),""),"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."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,z$e),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,G$e),vme),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),ije),Ra),bje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,q$e),vme),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,H$e),vme),"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."),rje),Ra),tje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,V$e),vme),"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."),!0),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Y$e),"packing"),GQt),"Strategy for finding an initial placement on nodes."),nje),Ra),_je),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,j$e),qQt),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,W$e),qQt),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Nt(1)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,K$e),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),Ra),xje),bn(Hn)))),IKt((new DTt,i))};var Mln,Pln,Bln,Fln,$ln,Uln,nje,zln,Gln,qln,Hln,rje,Vln,ije,Yln;K(yme,"RectPackingMetaDataProvider",867),H(1016,1,Hf,DTt),E.hf=function(i){IKt(i)};var Pne,jln,aje,Qq,sje,Wln,Zq,Kln,Xln,Qln,Zln,Jln,e2e,oje,t2e,lje,NP,cje,ecn,OP,uje,hje,dje,fje,pje,n2e;K(yme,"RectPackingOptions",1016),H(1017,1,{},_xt),E.sf=function(){var i;return i=new O7t,i},E.tf=function(i){},K(yme,"RectPackingOptions/RectpackingFactory",1017),H(1705,1,{},MOt),E.a=0,E.c=!1,K(DI,"AreaApproximation",1705);var gje=$a(DI,"BestCandidateFilter");H(673,1,{535:1},sue),E.Hg=function(i,l,d){var g,y,x,T,R,O;for(O=new Ot,x=ka,R=new me(i);R.a<R.c.c.length;)T=v(pe(R),238),x=u.Math.min(x,(T.c+(d.b+d.c))*(T.b+(d.d+d.a)));for(y=new me(i);y.a<y.c.c.length;)g=v(pe(y),238),(g.c+(d.b+d.c))*(g.b+(d.d+d.a))==x&&jn(O.c,g);return O},K(DI,"AreaFilter",673),H(674,1,{535:1},oue),E.Hg=function(i,l,d){var g,y,x,T,R,O;for(R=new Ot,O=ka,T=new me(i);T.a<T.c.c.length;)x=v(pe(T),238),O=u.Math.min(O,u.Math.abs((x.c+(d.b+d.c))/(x.b+(d.d+d.a))-l));for(y=new me(i);y.a<y.c.c.length;)g=v(pe(y),238),u.Math.abs((g.c+(d.b+d.c))/(g.b+(d.d+d.a))-l)==O&&jn(R.c,g);return R},K(DI,"AspectRatioFilter",674),H(1469,1,hl,wxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){x5r(v(i,27),l)},K(DI,"GreedyWidthApproximator",1469),H(672,1,{535:1},lue),E.Hg=function(i,l,d){var g,y,x,T,R,O;for(O=new Ot,x=Ss,R=new me(i);R.a<R.c.c.length;)T=v(pe(R),238),x=u.Math.max(x,KX(T.c+(d.b+d.c),T.b+(d.d+d.a),T.a));for(y=new me(i);y.a<y.c.c.length;)g=v(pe(y),238),KX(g.c+(d.b+d.c),g.b+(d.d+d.a),g.a)==x&&jn(O.c,g);return O},K(DI,"ScaleMeasureFilter",672),H(1470,1,hl,Ext),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){c4r(v(i,27),l)},K(DI,"TargetWidthWidthApproximator",1470),H(491,22,{3:1,34:1,22:1,491:1,188:1,196:1},ZRe),E.dg=function(){return nHt(this)},E.qg=function(){return nHt(this)};var r2e,mje,bje=$r(DI,"WidthApproximationStrategy",491,jr,Efr,Vcr),tcn;H(1471,1,hl,xxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){xRr(this,v(i,27),l)},K(Tee,"Compactor",1471),H(1473,1,hl,Sxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){t5r(v(i,27),l)},K(Tee,"NoPlacement",1473),H(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},Rhe),E.dg=function(){return mzt(this)},E.qg=function(){return mzt(this)};var i2e,yje,vje,_je=$r(Tee,"PackingStrategy",439,jr,T0r,Wcr),ncn;H(810,1,{},n8e),E.a=0,E.b=0,E.c=0,E.d=ka,E.e=0,E.f=ka,K(Tee,"RowFillingAndCompaction",810),H(1472,1,hl,Txt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){$6r(v(i,27),l)},K(Tee,"SimplePlacement",1472),H(1474,1,hl,Cxt),E.rg=function(i){return v(i,27),null},E.Kf=function(i,l){this.Ig(v(i,27),l)},E.Ig=function(i,l){KVt(i,l)},K(X$e,"EqualWhitespaceEliminator",1474),H(1475,1474,hl,Axt),E.Ig=function(i,l){var d,g,y,x,T;l.Ug("To Aspect Ratio Whitesapce Eliminator",1),T=We(at(Et(i,(Vg(),C6)))),x=We(at(Et(i,bN))),y=We(at(Et(i,(Z1(),Pne)))),d=We(at(Et(i,RP))),g=T/x,g<y?(T=x*y,sa(i,C6,T)):(d+=T/y-x,sa(i,RP,d),sa(i,bN,x+d)),KVt(i,l),l.Vg()},K(X$e,"ToAspectratioNodeExpander",1475),H(492,22,{3:1,34:1,22:1,492:1,188:1,196:1},JRe),E.dg=function(){return H$t(this)},E.qg=function(){return H$t(this)};var wje,Eje,xje=$r(X$e,"WhiteSpaceEliminationStrategy",492,jr,xfr,Kcr),rcn;H(172,1,{172:1},d0e),E.a=0,E.c=!1,E.d=0,E.e=0,E.f=0,E.g=0,E.i=0,E.k=!1,E.o=ka,E.p=ka,E.r=0,E.s=0,E.t=0,K(iq,"Block",172),H(209,1,{209:1},SQ),E.a=0,E.b=0,E.d=0,E.e=0,E.f=0,K(iq,"BlockRow",209),H(315,1,{315:1},YNe),E.b=0,E.c=0,E.d=0,E.e=0,E.f=0,K(iq,"BlockStack",315),H(238,1,{238:1},YIe,YLe),E.a=0,E.b=0,E.c=0,E.d=0,E.e=0,E.g=0;var J8r=K(iq,"DrawingData",238);H(373,22,{3:1,34:1,22:1,373:1},kU);var A6,W5,LP,DP,Jq,icn=$r(iq,"DrawingDataDescriptor",373,jr,mpr,Xcr),acn;H(186,1,{186:1},nOe),E.b=0,E.c=0,E.e=0,E.f=0,K(iq,"RectRow",186),H(763,1,{},rLe),E.j=0,K(L4,eQt,763),H(1209,1,{},kxt),E.af=function(i){return $v(i.a,i.b)},K(L4,MBe,1209),H(1210,1,{},FAt),E.af=function(i){return Cpr(this.a,i)},K(L4,tQt,1210),H(1211,1,{},$At),E.af=function(i){return Y2r(this.a,i)},K(L4,nQt,1211),H(1212,1,{},UAt),E.af=function(i){return Ibr(this.a,i)},K(L4,"ElkGraphImporter/lambda$3$Type",1212),H(1213,1,{},zAt),E.af=function(i){return O4r(this.a,i)},K(L4,rQt,1213),H(1115,205,K_,L7t),E.rf=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;for(Y1(i,(cG(),zne))&&(ae=ai(Et(i,(e1e(),Hje))),x=W1e(R8(),ae),x&&(T=v(sz(x.f),205),T.rf(i,l.eh(1)))),sa(i,h2e,(bz(),Une)),sa(i,d2e,(uG(),u2e)),sa(i,f2e,($z(),Gne)),R=v(Et(i,(e1e(),zje)),17).a,l.Ug("Overlap removal",1),Vt(Ht(Et(i,Tcn))),O=new fs,D=new GAt(O),g=new rLe,d=NKt(g,i),q=!0,y=0;y<R&&q;){if(Vt(Ht(Et(i,Gje)))){if(O.a.$b(),xSr(new BIt(D),d.i),O.a.gc()==0)break;d.e=O}for(nz(this.b),a1(this.b,(Kz(),Bne),(AL(),eH)),a1(this.b,Fne,d.g),a1(this.b,$ne,(YK(),o2e)),this.a=kG(this.b,d),re=new me(this.a);re.a<re.c.c.length;)J=v(pe(re),47),J.Kf(d,l.eh(1));Uwr(g,d),q=Vt(Ht(oe(d,(L8(),Kze)))),++y}HWt(g,d),l.Vg()},K(L4,"OverlapRemovalLayoutProvider",1115),H(1116,1,{},GAt),K(L4,"OverlapRemovalLayoutProvider/lambda$0$Type",1116),H(444,22,{3:1,34:1,22:1,444:1},Ihe);var Bne,Fne,$ne,a2e=$r(L4,"SPOrEPhases",444,jr,O0r,Zcr),scn;H(1219,1,{},D7t),K(L4,"ShrinkTree",1219),H(1117,205,K_,P6t),E.rf=function(i,l){var d,g,y,x,T;Y1(i,(cG(),zne))&&(T=ai(Et(i,zne)),y=W1e(R8(),T),y&&(x=v(sz(y.f),205),x.rf(i,l.eh(1)))),g=new rLe,d=NKt(g,i),rTr(this.a,d,l.eh(1)),HWt(g,d)},K(L4,"ShrinkTreeLayoutProvider",1117),H(306,137,{3:1,306:1,96:1,137:1},SDt),E.c=!1,K("org.eclipse.elk.alg.spore.graph","Graph",306),H(490,22,{3:1,34:1,22:1,490:1,188:1,196:1},IRt),E.dg=function(){return $Ut(this)},E.qg=function(){return $Ut(this)};var s2e,Sje=$r(D4,RBe,490,jr,Cdr,Qcr),ocn;H(558,22,{3:1,34:1,22:1,558:1,188:1,196:1},RNt),E.dg=function(){return new G6e},E.qg=function(){return new G6e};var o2e,lcn=$r(D4,"OverlapRemovalStrategy",558,jr,Adr,Jcr),ccn;H(438,22,{3:1,34:1,22:1,438:1},e8e);var Une,l2e,Tje=$r(D4,"RootSelection",438,jr,Afr,eur),ucn;H(324,22,{3:1,34:1,22:1,324:1},RU);var Cje,c2e,u2e,Aje,kje,Rje=$r(D4,"SpanningTreeCostFunction",324,jr,bpr,tur),hcn;H(1014,1,Hf,MTt),E.hf=function(i){_Wt(i)};var Ije,Nje,dcn,fcn,Oje,Lje,h2e,d2e,f2e,pcn,gcn,zne;K(D4,"SporeCompactionOptions",1014),H(1015,1,{},Rxt),E.sf=function(){var i;return i=new P6t,i},E.tf=function(i){},K(D4,"SporeCompactionOptions/SporeCompactionFactory",1015),H(866,1,Hf,PTt),E.hf=function(i){pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,_me),""),"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."),(dy(),K5)),Xt),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xme),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),$je),Ra),Vje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Q$e),Sme),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),Bje),Ra),jje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Z$e),Sme),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),Pje),Ra),Rje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wme),Sme),"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),K5),Xt),bn(Hn)))),bs(i,wme,Eme,wcn),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Eme),Sme),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),Mje),Ra),Tje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,J$e),IFe),GQt),"This option defines how the compaction is applied."),Dje),Ra),Sje),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eUe),IFe),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(Qn(),!1)),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tUe),VQt),"Upper limit for iterations of overlap removal"),null),Nt(64)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nUe),VQt),"Whether to run a supplementary scanline overlap check."),null),!0),Gs),rs),bn(Hn)))),xjt((new BTt,i)),_Wt((new MTt,i))};var mcn,Dje,bcn,ycn,vcn,_cn,wcn,Ecn,Mje,xcn,Pje,Scn,Bje,Fje,$je,Uje;K(D4,"SporeMetaDataProvider",866),H(1012,1,Hf,BTt),E.hf=function(i){xjt(i)};var Tcn,zje,Gje,qje,Ccn,Hje;K(D4,"SporeOverlapRemovalOptions",1012),H(1013,1,{},Ixt),E.sf=function(){var i;return i=new L7t,i},E.tf=function(i){},K(D4,"SporeOverlapRemovalOptions/SporeOverlapFactory",1013),H(539,22,{3:1,34:1,22:1,539:1,188:1,196:1},ILt),E.dg=function(){return UUt(this)},E.qg=function(){return UUt(this)};var eH,Vje=$r(D4,"StructureExtractionStrategy",539,jr,kdr,nur),Acn;H(437,22,{3:1,34:1,22:1,437:1,188:1,196:1},t8e),E.dg=function(){return Uzt(this)},E.qg=function(){return Uzt(this)};var Yje,Gne,jje=$r(D4,"TreeConstructionStrategy",437,jr,kfr,rur),kcn;H(1463,1,hl,Nxt),E.rg=function(i){return v(i,306),new ms},E.Kf=function(i,l){Hwr(v(i,306),l)},K(YQt,"DelaunayTriangulationPhase",1463),H(1464,1,vr,qAt),E.Cd=function(i){Lt(this.a,v(i,68).a)},K(YQt,"DelaunayTriangulationPhase/lambda$0$Type",1464),H(794,1,hl,W7e),E.rg=function(i){return v(i,306),new ms},E.Kf=function(i,l){this.Jg(v(i,306),l)},E.Jg=function(i,l){var d,g,y;l.Ug("Minimum spanning tree construction",1),i.d?g=i.d.a:g=v(Yt(i.i,0),68).a,Vt(Ht(oe(i,(L8(),ZM))))?y=fpe(i.e,g,(d=i.b,d)):y=fpe(i.e,g,i.b),EUt(this,y,i),l.Vg()},K(Tme,"MinSTPhase",794),H(1466,794,hl,w6t),E.Jg=function(i,l){var d,g,y,x;l.Ug("Maximum spanning tree construction",1),d=new HAt(i),i.d?y=i.d.c:y=v(Yt(i.i,0),68).c,Vt(Ht(oe(i,(L8(),ZM))))?x=fpe(i.e,y,(g=d,g)):x=fpe(i.e,y,d),EUt(this,x,i),l.Vg()},K(Tme,"MaxSTPhase",1466),H(1467,1,{},HAt),E.af=function(i){return Uar(this.a,i)},K(Tme,"MaxSTPhase/lambda$0$Type",1467),H(1465,1,vr,VAt),E.Cd=function(i){Osr(this.a,v(i,68))},K(Tme,"MinSTPhase/lambda$0$Type",1465),H(796,1,hl,G6e),E.rg=function(i){return v(i,306),new ms},E.Kf=function(i,l){axr(this,v(i,306),l)},E.a=!1,K(Cme,"GrowTreePhase",796),H(797,1,vr,CIe),E.Cd=function(i){wbr(this.a,this.b,this.c,v(i,225))},K(Cme,"GrowTreePhase/lambda$0$Type",797),H(1468,1,hl,Oxt),E.rg=function(i){return v(i,306),new ms},E.Kf=function(i,l){f_r(this,v(i,306),l)},K(Cme,"ShrinkTreeCompactionPhase",1468),H(795,1,vr,AIe),E.Cd=function(i){e3r(this.a,this.b,this.c,v(i,225))},K(Cme,"ShrinkTreeCompactionPhase/lambda$0$Type",795);var Wje=$a(mc,"IGraphElementVisitor");H(872,1,{536:1},cMt),E.Kg=function(i){var l;l=oCr(this,i),Ul(l,v(br(this.b,i),96)),nTr(this,i,l)};var Rcn,Icn;K(g5,"LayoutConfigurator",872);var eIr=$a(g5,"LayoutConfigurator/IPropertyHolderOptionFilter");H(944,1,{2032:1},Lxt),E.Lg=function(i,l){return Fk(),!i.pf(l)},K(g5,"LayoutConfigurator/lambda$0$Type",944),H(943,1,{845:1},Dxt),E.Mg=function(i,l){return Fk(),!i.pf(l)},K(g5,"LayoutConfigurator/lambda$1$Type",943),H(945,1,{2032:1},hrr),E.Lg=function(i,l){return M7t(i,l)},K(g5,"LayoutConfigurator/lambda$2$Type",945),H(946,1,si,E8t),E.Mb=function(i){return mdr(this.a,this.b,v(i,2032))},K(g5,"LayoutConfigurator/lambda$3$Type",946),H(869,1,{},Mxt),K(g5,"RecursiveGraphLayoutEngine",869),H(224,63,nb,Zkt,Gb),K(g5,"UnsupportedConfigurationException",224),H(370,63,nb,ik),K(g5,"UnsupportedGraphException",370),H(761,1,{}),K(mc,"AbstractRandomListAccessor",761),H(450,761,{},iM),E.Ng=function(){return null},E.d=!0,E.e=!0,E.f=0,K(PI,"AlgorithmAssembler",450),H(1200,1,si,Pxt),E.Mb=function(i){return!!v(i,106)},K(PI,"AlgorithmAssembler/lambda$0$Type",1200),H(1201,1,{},YAt),E.Kb=function(i){return ear(this.a,v(i,106))},K(PI,"AlgorithmAssembler/lambda$1$Type",1201),H(1202,1,si,Bxt),E.Mb=function(i){return!!v(i,80)},K(PI,"AlgorithmAssembler/lambda$2$Type",1202),H(1203,1,vr,jAt),E.Cd=function(i){Rd(this.a,v(i,80))},K(PI,"AlgorithmAssembler/lambda$3$Type",1203),H(1204,1,vr,x8t),E.Cd=function(i){Aor(this.a,this.b,v(i,196))},K(PI,"AlgorithmAssembler/lambda$4$Type",1204),H(1343,1,ui,Fxt),E.Ne=function(i,l){return Zdr(v(i,196),v(l,196))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(PI,"EnumBasedFactoryComparator",1343),H(80,761,{80:1},ms),E.Ng=function(){return new fs},E.a=0,K(PI,"LayoutProcessorConfiguration",80),H(1025,1,{536:1},FTt),E.Kg=function(i){kD(Ocn,new WAt(i))};var Ncn,Ocn,Lcn;K(oc,"DeprecatedLayoutOptionReplacer",1025),H(1026,1,vr,$xt),E.Cd=function(i){lgr(v(i,167))},K(oc,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1026),H(1027,1,vr,Uxt),E.Cd=function(i){jvr(v(i,167))},K(oc,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1027),H(1028,1,{},WAt),E.Yd=function(i,l){Cor(this.a,v(i,149),v(l,41))},K(oc,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1028),H(143,1,{701:1,143:1},H_),E.Fb=function(i){return vOe(this,i)},E.Og=function(){return this.b},E.Pg=function(){return this.c},E.xe=function(){return this.e},E.Hb=function(){return ry(this.c)},E.Ib=function(){return"Layout Algorithm: "+this.c};var tIr=K(oc,"LayoutAlgorithmData",143);H(269,1,{},f_),K(oc,"LayoutAlgorithmData/Builder",269),H(1029,1,{536:1},Gxt),E.Kg=function(i){$e(i,207)&&!Vt(Ht(i.of((Ei(),Yne))))&&XAr(v(i,27))},K(oc,"LayoutAlgorithmResolver",1029),H(233,1,{701:1,233:1},Rk),E.Fb=function(i){return $e(i,233)?An(this.b,v(i,233).b):!1},E.Og=function(){return this.a},E.Pg=function(){return this.b},E.xe=function(){return this.d},E.Hb=function(){return ry(this.b)},E.Ib=function(){return"Layout Type: "+this.b},K(oc,"LayoutCategoryData",233),H(357,1,{},XA),K(oc,"LayoutCategoryData/Builder",357),H(879,1,{},djt);var p2e;K(oc,"LayoutMetaDataService",879),H(880,1,{},pLt),K(oc,"LayoutMetaDataService/Registry",880),H(487,1,{487:1},q6e),K(oc,"LayoutMetaDataService/Registry/Triple",487),H(881,1,_5,zxt),E.Qg=function(){return new ho},K(oc,"LayoutMetaDataService/lambda$0$Type",881),H(882,1,M4,qxt),E.Rg=function(i){return Eo(v(i,8))},K(oc,"LayoutMetaDataService/lambda$1$Type",882),H(891,1,_5,Hxt),E.Qg=function(){return new Ot},K(oc,"LayoutMetaDataService/lambda$10$Type",891),H(892,1,M4,Vxt),E.Rg=function(i){return new Eh(v(i,13))},K(oc,"LayoutMetaDataService/lambda$11$Type",892),H(893,1,_5,Yxt),E.Qg=function(){return new Ea},K(oc,"LayoutMetaDataService/lambda$12$Type",893),H(894,1,M4,jxt),E.Rg=function(i){return KU(v(i,67))},K(oc,"LayoutMetaDataService/lambda$13$Type",894),H(895,1,_5,Wxt),E.Qg=function(){return new fs},K(oc,"LayoutMetaDataService/lambda$14$Type",895),H(896,1,M4,Kxt),E.Rg=function(i){return yQ(v(i,49))},K(oc,"LayoutMetaDataService/lambda$15$Type",896),H(897,1,_5,Xxt),E.Qg=function(){return new Hp},K(oc,"LayoutMetaDataService/lambda$16$Type",897),H(898,1,M4,Qxt),E.Rg=function(i){return OQ(v(i,49))},K(oc,"LayoutMetaDataService/lambda$17$Type",898),H(899,1,_5,Zxt),E.Qg=function(){return new D7e},K(oc,"LayoutMetaDataService/lambda$18$Type",899),H(900,1,M4,Jxt),E.Rg=function(i){return qOt(v(i,157))},K(oc,"LayoutMetaDataService/lambda$19$Type",900),H(883,1,_5,eSt),E.Qg=function(){return new ah},K(oc,"LayoutMetaDataService/lambda$2$Type",883),H(884,1,M4,tSt),E.Rg=function(i){return new MK(v(i,75))},K(oc,"LayoutMetaDataService/lambda$3$Type",884),H(885,1,_5,nSt),E.Qg=function(){return new mL},K(oc,"LayoutMetaDataService/lambda$4$Type",885),H(886,1,M4,rSt),E.Rg=function(i){return new hde(v(i,140))},K(oc,"LayoutMetaDataService/lambda$5$Type",886),H(887,1,_5,iSt),E.Qg=function(){return new ek},K(oc,"LayoutMetaDataService/lambda$6$Type",887),H(888,1,M4,aSt),E.Rg=function(i){return new NIe(v(i,107))},K(oc,"LayoutMetaDataService/lambda$7$Type",888),H(889,1,_5,sSt),E.Qg=function(){return new cue},K(oc,"LayoutMetaDataService/lambda$8$Type",889),H(890,1,M4,oSt),E.Rg=function(i){return new dFt(v(i,385))},K(oc,"LayoutMetaDataService/lambda$9$Type",890);var g2e=$a(HG,"IProperty");H(23,1,{34:1,701:1,23:1,149:1},an),E.Fd=function(i){return Ysr(this,v(i,149))},E.Fb=function(i){return $e(i,23)?An(this.f,v(i,23).f):$e(i,149)&&An(this.f,v(i,149).Pg())},E.Sg=function(){var i;if($e(this.b,4)){if(i=WLe(this.b),i==null)throw _e(new Tl(XQt+this.f+"'. Make sure it's type is registered with the "+(Fm(xH),xH.k)+rUe));return i}else return this.b},E.Og=function(){return this.d},E.Pg=function(){return this.f},E.xe=function(){return this.i},E.Hb=function(){return ry(this.f)},E.Ib=function(){return"Layout Option: "+this.f},K(oc,"LayoutOptionData",23),H(24,1,{},rn),K(oc,"LayoutOptionData/Builder",24),H(170,22,{3:1,34:1,22:1,170:1},IU);var mg,Sy,Fs,Hn,pw,rm=$r(oc,"LayoutOptionData/Target",170,jr,ypr,iur),Dcn;H(285,22,{3:1,34:1,22:1,285:1},uk);var Gs,Fo,Ra,k6,Zl,op,K5,Kje,Mcn=$r(oc,"LayoutOptionData/Type",285,jr,$gr,aur),Pcn,MP,Xje;H(116,1,{116:1},fk,rf,vQ),E.Fb=function(i){var l;return i==null||!$e(i,116)?!1:(l=v(i,116),Ec(this.c,l.c)&&Ec(this.d,l.d)&&Ec(this.b,l.b)&&Ec(this.a,l.a))},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.c,this.d,this.b,this.a]))},E.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},E.a=0,E.b=0,E.c=0,E.d=0,K(ZG,"ElkRectangle",116),H(8,1,{3:1,4:1,8:1,423:1},ho,sfe,Ct,Wo),E.Fb=function(i){return T$t(this,i)},E.Hb=function(){return dk(this.a)+V_r(dk(this.b))},E.cg=function(i){var l,d,g,y;for(g=0;g<i.length&&czt((sr(g,i.length),i.charCodeAt(g)),KXt);)++g;for(l=i.length;l>0&&czt((sr(l-1,i.length),i.charCodeAt(l-1)),XXt);)--l;if(g>=l)throw _e(new ar("The given string does not contain any numbers."));if(y=T4((mo(g,l,i.length),i.substr(g,l-g)),`,|;|\r|
`),y.length!=2)throw _e(new ar("Exactly two numbers are expected, "+y.length+" were found."));try{this.a=y4(v4(y[0])),this.b=y4(v4(y[1]))}catch(x){throw x=Da(x),$e(x,130)?(d=x,_e(new ar(QXt+d))):_e(x)}},E.Ib=function(){return"("+this.a+","+this.b+")"},E.a=0,E.b=0;var Vs=K(ZG,"KVector",8);H(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},ah,MK,kNt),E.Pc=function(){return nyr(this)},E.cg=function(i){var l,d,g,y,x,T;g=T4(i,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| |	|
`),xd(this);try{for(d=0,x=0,y=0,T=0;d<g.length;)g[d]!=null&&v4(g[d]).length>0&&(x%2==0?y=y4(g[d]):T=y4(g[d]),x>0&&x%2!=0&&pi(this,new Ct(y,T)),++x),++d}catch(R){throw R=Da(R),$e(R,130)?(l=R,_e(new ar("The given string does not match the expected format for vectors."+l))):_e(R)}},E.Ib=function(){var i,l,d;for(i=new Ed("("),l=Ur(this,0);l.b!=l.d.c;)d=v(Fr(l),8),bi(i,d.a+","+d.b),l.b!=l.d.c&&(i.a+="; ");return(i.a+=")",i).a};var Qje=K(ZG,"KVectorChain",75);H(255,22,{3:1,34:1,22:1,255:1},FL);var m2e,qne,Hne,tH,nH,Vne,Zje=$r(Yh,"Alignment",255,jr,Jpr,sur),Bcn;H(991,1,Hf,$Tt),E.hf=function(i){Bjt(i)};var Jje,b2e,Fcn,eWe,tWe,$cn,nWe,Ucn,zcn,rWe,iWe,Gcn;K(Yh,"BoxLayouterOptions",991),H(992,1,{},lSt),E.sf=function(){var i;return i=new hSt,i},E.tf=function(i){},K(Yh,"BoxLayouterOptions/BoxFactory",992),H(298,22,{3:1,34:1,22:1,298:1},$L);var PP,y2e,BP,FP,$P,v2e,_2e=$r(Yh,"ContentAlignment",298,jr,egr,our),qcn;H(699,1,Hf,W6e),E.hf=function(i){pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,ZQt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(dy(),K5)),Xt),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,JQt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),op),tIr),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jFe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),aWe),Ra),Zje),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,s6),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,sUe),""),"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."),op),Qje),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,gee),""),"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."),oWe),k6),_2e),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nq),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Qn(),!1)),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ime),""),ABe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),lWe),Ra),zP),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tq),""),"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."),hWe),Ra),D2e),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iUe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,pee),""),"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`."),pWe),Ra),eKe),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rx),""),"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."),xWe),op),SGe),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,SM),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bee),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,TM),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Sge),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),kWe),Ra),rKe),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,mee),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),op),Vs),va(Fs,Te(xe(rm,1),wt,170,0,[pw,Sy]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,YG),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zl),Ao),va(Fs,Te(xe(rm,1),wt,170,0,[mg]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,XJ),""),"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)."),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,xM),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,i$e),""),"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."),gWe),op),Qje),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,o$e),""),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,l$e),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,k8r),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),op),sIr),va(Hn,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,u$e),""),"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."),mWe),op),xGe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,VFe),""),"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),Gs),rs),va(Fs,Te(xe(rm,1),wt,170,0,[mg,pw,Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eZt),""),"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),Fo),ws),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,tZt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,nZt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jG),""),jQt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),Gs),rs),bn(Hn)))),bs(i,jG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rZt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iZt),""),"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'."),Nt(100)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,sZt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Nt(4e3)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oZt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Nt(400)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lZt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,uZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hZt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aUe),"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."),sWe),Ra),fKe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,DFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,MFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bge),np),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,PFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xge),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rme),np),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,BFe),np),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,UFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,FFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,$Fe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,N4),np),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zFe),np),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,GFe),np),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,qFe),np),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),op),Iun),va(Fs,Te(xe(rm,1),wt,170,0,[mg,pw,Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,h$e),np),"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."),$We),op),xGe),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,sme),pZt),"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)."),Zl),Ao),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,sme,ame,Zcn),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ame),pZt),"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."),SWe),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XFe),gZt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),yWe),op),SGe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,II),gZt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),vWe),k6),fl),va(Fs,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,JFe),Aee),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),CWe),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,e$e),Aee),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,t$e),Aee),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,n$e),Aee),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,r$e),Aee),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,y5),kme),"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."),_We),k6),WP),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,o6),kme),"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."),EWe),k6),aKe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,l6),kme),"Node Size Minimum"),"The minimal size to which a node can be reduced."),wWe),op),Vs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,RI),kme),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,a$e),nme),"Edge Label Placement"),"Gives a hint on where to put edge labels."),cWe),Ra),GWe),bn(Sy)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QJ),nme),"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),Gs),rs),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,R8r),"font"),"Font Name"),"Font name used for a label."),K5),Xt),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,dZt),"font"),"Font Size"),"Font size used for a label."),Zl),Ao),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,c$e),Rme),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),op),Vs),bn(pw)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,s$e),Rme),"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."),Zl),Ao),bn(pw)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,YFe),Rme),"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."),NWe),Ra),tl),bn(pw)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,HFe),Rme),"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."),Fo),ws),bn(pw)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,NI),cUe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),RWe),k6),Qne),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QFe),cUe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ZFe),cUe),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,WG),aq),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Fo),ws),bn(Hn)))),bs(i,WG,ix,sun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oUe),aq),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Ra),rre),bn(Fs)))),bs(i,oUe,ix,oun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KG),aq),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,KG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XG),aq),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,XG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ix),aq),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Ra),oKe),bn(Fs)))),bs(i,ix,RI,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lUe),aq),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Fo),ws),bn(Hn)))),bs(i,lUe,ix,aun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,WFe),mZt),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KFe),mZt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Gs),rs),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,yge),"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),Fo),ws),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fZt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),fWe),Ra),WWe),bn(mg)))),kL(i,new Rk(xL(qR(GR(new XA,fr),"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.'))),kL(i,new Rk(xL(qR(GR(new XA,"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.`))),kL(i,new Rk(xL(qR(GR(new XA,Nu),"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."))),kL(i,new Rk(xL(qR(GR(new XA,"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."))),kL(i,new Rk(xL(qR(GR(new XA,OQt),"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."))),kL(i,new Rk(xL(qR(GR(new XA,"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."))),kL(i,new Rk(xL(qR(GR(new XA,bf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Ejt((new UTt,i)),Bjt((new $Tt,i)),XYt((new zTt,i))};var yN,Hcn,aWe,X5,Vcn,Ycn,sWe,Q5,Z5,jcn,rH,oWe,iH,gw,lWe,w2e,E2e,cWe,uWe,hWe,dWe,fWe,Wcn,J5,pWe,Kcn,aH,x2e,sH,S2e,kx,gWe,vN,mWe,bWe,yWe,eC,vWe,mw,_We,i3,tC,wWe,g2,EWe,Yne,oH,Ty,xWe,Xcn,SWe,Qcn,Zcn,TWe,CWe,T2e,C2e,A2e,k2e,AWe,jh,UP,kWe,R2e,I2e,a3,RWe,IWe,nC,NWe,R6,lH,N2e,rC,Jcn,O2e,eun,tun,OWe,nun,LWe,DWe,I6,MWe,jne,PWe,BWe,bw,run,FWe,$We,UWe,Wne,cH,_N,N6,iun,aun,Kne,sun,zWe,oun;K(Yh,"CoreOptions",699),H(88,22,{3:1,34:1,22:1,88:1},NU);var lp,Ol,ql,cp,Ef,zP=$r(Yh,ABe,88,jr,ipr,lur),lun;H(278,22,{3:1,34:1,22:1,278:1},Nhe);var wN,s3,EN,GWe=$r(Yh,"EdgeLabelPlacement",278,jr,L0r,cur),cun;H(223,22,{3:1,34:1,22:1,223:1},uX);var xN,uH,O6,L2e,D2e=$r(Yh,"EdgeRouting",223,jr,L1r,uur),uun;H(321,22,{3:1,34:1,22:1,321:1},UL);var qWe,HWe,VWe,YWe,M2e,jWe,WWe=$r(Yh,"EdgeType",321,jr,Zpr,hur),hun;H(989,1,Hf,UTt),E.hf=function(i){Ejt(i)};var KWe,XWe,QWe,ZWe,dun,JWe,GP;K(Yh,"FixedLayouterOptions",989),H(990,1,{},cSt),E.sf=function(){var i;return i=new _St,i},E.tf=function(i){},K(Yh,"FixedLayouterOptions/FixedFactory",990),H(346,22,{3:1,34:1,22:1,346:1},Ohe);var Cy,Xne,qP,eKe=$r(Yh,"HierarchyHandling",346,jr,N0r,dur),fun;H(291,22,{3:1,34:1,22:1,291:1},hX);var im,m2,hH,dH,pun=$r(Yh,"LabelSide",291,jr,O1r,fur),gun;H(95,22,{3:1,34:1,22:1,95:1},kT);var cb,D0,Xf,M0,Bd,P0,Qf,am,B0,fl=$r(Yh,"NodeLabelPlacement",95,jr,Jgr,pur),mun;H(256,22,{3:1,34:1,22:1,256:1},OU);var tKe,HP,b2,nKe,fH,VP=$r(Yh,"PortAlignment",256,jr,vpr,gur),bun;H(101,22,{3:1,34:1,22:1,101:1},zL);var yw,su,sm,SN,up,y2,rKe=$r(Yh,"PortConstraints",101,jr,Qpr,mur),yun;H(279,22,{3:1,34:1,22:1,279:1},GL);var YP,jP,ub,pH,v2,L6,Qne=$r(Yh,"PortLabelPlacement",279,jr,Xpr,bur),vun;H(64,22,{3:1,34:1,22:1,64:1},LU);var gr,or,xf,Sf,Xu,Du,hp,F0,Ih,mh,ou,Nh,Qu,Zu,$0,Fd,$d,Zf,Mr,lc,cr,tl=$r(Yh,"PortSide",64,jr,apr,yur),_un;H(993,1,Hf,zTt),E.hf=function(i){XYt(i)};var wun,Eun,iKe,xun,Sun;K(Yh,"RandomLayouterOptions",993),H(994,1,{},uSt),E.sf=function(){var i;return i=new bSt,i},E.tf=function(i){},K(Yh,"RandomLayouterOptions/RandomFactory",994),H(386,22,{3:1,34:1,22:1,386:1},dX);var o3,gH,mH,vw,WP=$r(Yh,"SizeConstraint",386,jr,N1r,vur),Tun;H(264,22,{3:1,34:1,22:1,264:1},RT);var bH,Zne,TN,P2e,yH,KP,Jne,ere,tre,aKe=$r(Yh,"SizeOptions",264,jr,hmr,_ur),Cun;H(280,22,{3:1,34:1,22:1,280:1},Lhe);var l3,sKe,nre,oKe=$r(Yh,"TopdownNodeTypes",280,jr,D0r,wur),Aun;H(347,22,uUe);var lKe,cKe,rre=$r(Yh,"TopdownSizeApproximator",347,jr,Rfr,xur);H(987,347,uUe,u9t),E.Tg=function(i){return UGt(i)},$r(Yh,"TopdownSizeApproximator/1",987,rre,null,null),H(988,347,uUe,K9t),E.Tg=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(l=v(Et(i,(Ei(),rC)),143),Mt=(kv(),ae=new bL,ae),yG(Mt,i),yn=new Br,x=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));x.e!=x.i.gc();)g=v(wr(x),27),Ue=(re=new bL,re),yJ(Ue,Mt),yG(Ue,g),Kn=UGt(g),DT(Ue,u.Math.max(g.g,Kn.a),u.Math.max(g.f,Kn.b)),yu(yn.f,g,Ue);for(y=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));y.e!=y.i.gc();)for(g=v(wr(y),27),q=new mr((!g.e&&(g.e=new Gn(ss,g,7,4)),g.e));q.e!=q.i.gc();)D=v(wr(q),74),yt=v(Pl(ol(yn.f,g)),27),xt=v(br(yn,ze((!D.c&&(D.c=new Gn(Lr,D,5,8)),D.c),0)),27),je=(J=new uue,J),Yr((!je.b&&(je.b=new Gn(Lr,je,4,7)),je.b),yt),Yr((!je.c&&(je.c=new Gn(Lr,je,5,8)),je.c),xt),bJ(je,Aa(yt)),yG(je,D);de=v(sz(l.f),205);try{de.rf(Mt,new xSt),CLt(l.f,de)}catch(Xn){throw Xn=Da(Xn),$e(Xn,103)?(le=Xn,_e(le)):_e(Xn)}return Y1(Mt,Z5)||Y1(Mt,Q5)||XPe(Mt),O=We(at(Et(Mt,Z5))),R=We(at(Et(Mt,Q5))),T=O/R,d=We(at(Et(Mt,cH)))*u.Math.sqrt((!Mt.a&&(Mt.a=new vt(Pi,Mt,10,11)),Mt.a).i),mn=v(Et(Mt,Ty),107),Me=mn.b+mn.c+1,Se=mn.d+mn.a+1,new Ct(u.Math.max(Me,d),u.Math.max(Se,d/T))},$r(Yh,"TopdownSizeApproximator/2",988,rre,null,null);var kun;H(344,1,{871:1},tk),E.Ug=function(i,l){return Jqt(this,i,l)},E.Vg=function(){EHt(this)},E.Wg=function(){return this.q},E.Xg=function(){return this.f?Wde(this.f):null},E.Yg=function(){return Wde(this.a)},E.Zg=function(){return this.p},E.$g=function(){return!1},E._g=function(){return this.n},E.ah=function(){return this.p!=null&&!this.b},E.bh=function(i){var l;this.n&&(l=i,Lt(this.f,l))},E.dh=function(i,l){var d,g;this.n&&i&&K0r(this,(d=new oLt,g=Z1e(d,i),I7r(d),g),(xZ(),F2e))},E.eh=function(i){var l;return this.b?null:(l=Dgr(this,this.g),pi(this.a,l),l.i=this,this.d=i,l)},E.fh=function(i){i>0&&!this.b&&f9e(this,i)},E.b=!1,E.c=0,E.d=-1,E.e=null,E.f=null,E.g=-1,E.j=!1,E.k=!1,E.n=!1,E.o=0,E.q=0,E.r=0,K(mc,"BasicProgressMonitor",344),H(717,205,K_,hSt),E.rf=function(i,l){eWt(i,l)},K(mc,"BoxLayoutProvider",717),H(983,1,ui,KAt),E.Ne=function(i,l){return ITr(this,v(i,27),v(l,27))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},E.a=!1,K(mc,"BoxLayoutProvider/1",983),H(163,1,{163:1},eZ,DNt),E.Ib=function(){return this.c?dPe(this.c):Wv(this.b)},K(mc,"BoxLayoutProvider/Group",163),H(320,22,{3:1,34:1,22:1,320:1},fX);var uKe,hKe,dKe,B2e,fKe=$r(mc,"BoxLayoutProvider/PackingMode",320,jr,D1r,Sur),Run;H(984,1,ui,dSt),E.Ne=function(i,l){return Kdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$0$Type",984),H(985,1,ui,fSt),E.Ne=function(i,l){return zdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$1$Type",985),H(986,1,ui,pSt),E.Ne=function(i,l){return Gdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$2$Type",986),H(1384,1,{845:1},gSt),E.Mg=function(i,l){return HK(),!$e(l,167)||M7t((Fk(),v(i,167)),l)},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),H(1385,1,vr,XAt),E.Cd=function(i){ayr(this.a,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),H(1386,1,vr,ySt),E.Cd=function(i){v(i,96),HK()},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),H(1390,1,vr,QAt),E.Cd=function(i){Amr(this.a,v(i,96))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),H(1388,1,si,T8t),E.Mb=function(i){return Ubr(this.a,this.b,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),H(1387,1,si,C8t),E.Mb=function(i){return wor(this.a,this.b,v(i,845))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),H(1389,1,vr,A8t),E.Cd=function(i){Dhr(this.a,this.b,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),H(947,1,{},vSt),E.Kb=function(i){return EIt(i)},E.Fb=function(i){return this===i},K(mc,"ElkUtil/lambda$0$Type",947),H(948,1,vr,k8t),E.Cd=function(i){L4r(this.a,this.b,v(i,74))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$1$Type",948),H(949,1,vr,R8t),E.Cd=function(i){Eir(this.a,this.b,v(i,166))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$2$Type",949),H(950,1,vr,I8t),E.Cd=function(i){ysr(this.a,this.b,v(i,135))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$3$Type",950),H(951,1,vr,ZAt),E.Cd=function(i){thr(this.a,v(i,377))},K(mc,"ElkUtil/lambda$4$Type",951),H(325,1,{34:1,325:1},Zrr),E.Fd=function(i){return jsr(this,v(i,242))},E.Fb=function(i){var l;return $e(i,325)?(l=v(i,325),this.a==l.a):!1},E.Hb=function(){return Ps(this.a)},E.Ib=function(){return this.a+" (exclusive)"},E.a=0,K(mc,"ExclusiveBounds/ExclusiveLowerBound",325),H(1119,205,K_,_St),E.rf=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;for(l.Ug("Fixed Layout",1),x=v(Et(i,(Ei(),uWe)),223),J=0,re=0,Ue=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Ue.e!=Ue.i.gc();){for(Se=v(wr(Ue),27),mn=v(Et(Se,(SZ(),GP)),8),mn&&(ef(Se,mn.a,mn.b),v(Et(Se,XWe),181).Hc((ud(),o3))&&(ae=v(Et(Se,ZWe),8),ae.a>0&&ae.b>0&&JE(Se,ae.a,ae.b,!0,!0))),J=u.Math.max(J,Se.i+Se.g),re=u.Math.max(re,Se.j+Se.f),D=new mr((!Se.n&&(Se.n=new vt(wl,Se,1,7)),Se.n));D.e!=D.i.gc();)R=v(wr(D),135),mn=v(Et(R,GP),8),mn&&ef(R,mn.a,mn.b),J=u.Math.max(J,Se.i+R.i+R.g),re=u.Math.max(re,Se.j+R.j+R.f);for(xt=new mr((!Se.c&&(Se.c=new vt(Oh,Se,9,9)),Se.c));xt.e!=xt.i.gc();)for(yt=v(wr(xt),123),mn=v(Et(yt,GP),8),mn&&ef(yt,mn.a,mn.b),Mt=Se.i+yt.i,yn=Se.j+yt.j,J=u.Math.max(J,Mt+yt.g),re=u.Math.max(re,yn+yt.f),O=new mr((!yt.n&&(yt.n=new vt(wl,yt,1,7)),yt.n));O.e!=O.i.gc();)R=v(wr(O),135),mn=v(Et(R,GP),8),mn&&ef(R,mn.a,mn.b),J=u.Math.max(J,Mt+R.i+R.g),re=u.Math.max(re,yn+R.j+R.f);for(y=new yr(_r(eb(Se).a.Kc(),new S));zr(y);)d=v(Rr(y),74),q=pKt(d),J=u.Math.max(J,q.a),re=u.Math.max(re,q.b);for(g=new yr(_r(bG(Se).a.Kc(),new S));zr(g);)d=v(Rr(g),74),Aa(Hg(d))!=i&&(q=pKt(d),J=u.Math.max(J,q.a),re=u.Math.max(re,q.b))}if(x==(Xm(),xN))for(Me=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Me.e!=Me.i.gc();)for(Se=v(wr(Me),27),g=new yr(_r(eb(Se).a.Kc(),new S));zr(g);)d=v(Rr(g),74),T=MAr(d),T.b==0?sa(d,kx,null):sa(d,kx,T);Vt(Ht(Et(i,(SZ(),QWe))))||(je=v(Et(i,dun),107),de=J+je.b+je.c,le=re+je.d+je.a,JE(i,de,le,!0,!0)),l.Vg()},K(mc,"FixedLayoutProvider",1119),H(385,137,{3:1,423:1,385:1,96:1,137:1},cue,dFt),E.cg=function(i){var l,d,g,y,x,T,R,O,D;if(i)try{for(O=T4(i,";,;"),x=O,T=0,R=x.length;T<R;++T){if(y=x[T],d=T4(y,"\\:"),g=GPe(R8(),d[0]),!g)throw _e(new ar("Invalid option id: "+d[0]));if(D=UPe(g,d[1]),D==null)throw _e(new ar("Invalid option value: "+d[1]));D==null?(!this.q&&(this.q=new Br),Lk(this.q,g)):(!this.q&&(this.q=new Br),Ni(this.q,g,D))}}catch(q){throw q=Da(q),$e(q,103)?(l=q,_e(new XUt(l))):_e(q)}},E.Ib=function(){var i;return i=ai(Wl(Bl((this.q?this.q:(Fn(),Fn(),Jg)).vc().Oc(),new wSt),a4(new VOt,new ot,new Ce,new Ie,Te(xe(Il,1),wt,108,0,[])))),i};var Iun=K(mc,"IndividualSpacings",385);H(982,1,{},wSt),E.Kb=function(i){return Xdr(v(i,44))},K(mc,"IndividualSpacings/lambda$0$Type",982),H(718,1,{},C9t),E.c=0,K(mc,"InstancePool",718),H(1835,1,{},ESt),K(mc,"LoggedGraph",1835),H(415,22,{3:1,34:1,22:1,415:1},pX);var pKe,F2e,gKe,mKe,Nun=$r(mc,"LoggedGraph/Type",415,jr,M1r,Tur),Oun;H(1063,1,{871:1},xSt),E.Ug=function(i,l){return!1},E.Vg=function(){},E.Wg=function(){return 0},E.Xg=function(){return null},E.Yg=function(){return null},E.Zg=function(){return null},E.$g=function(){return!1},E._g=function(){return!1},E.ah=function(){return!1},E.bh=function(i){},E.dh=function(i,l){},E.eh=function(i){return this},E.fh=function(i){},K(mc,"NullElkProgressMonitor",1063),H(42,1,{20:1,42:1},Ms),E.Jc=function(i){To(this,i)},E.Fb=function(i){var l,d,g;return $e(i,42)?(d=v(i,42),l=this.a==null?d.a==null:Yi(this.a,d.a),g=this.b==null?d.b==null:Yi(this.b,d.b),l&&g):!1},E.Hb=function(){var i,l,d,g,y,x;return d=this.a==null?0:ma(this.a),i=d&vs,l=d&-65536,x=this.b==null?0:ma(this.b),g=x&vs,y=x&-65536,i^y>>16&vs|l^g<<16},E.Kc=function(){return new JAt(this)},E.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Kl(this.b)+")":this.b==null?"pair("+Kl(this.a)+",null)":"pair("+Kl(this.a)+","+Kl(this.b)+")"},K(mc,"Pair",42),H(995,1,io,JAt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},E.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw _e(new ec)},E.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),_e(new ih)},E.b=!1,E.c=!1,K(mc,"Pair/1",995),H(455,1,{455:1},GLt),E.Fb=function(i){return Ec(this.a,v(i,455).a)&&Ec(this.c,v(i,455).c)&&Ec(this.d,v(i,455).d)&&Ec(this.b,v(i,455).b)},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.a,this.c,this.d,this.b]))},E.Ib=function(){return"("+this.a+Xo+this.c+Xo+this.d+Xo+this.b+")"},K(mc,"Quadruple",455),H(1108,205,K_,bSt),E.rf=function(i,l){var d,g,y,x,T;if(l.Ug("Random Layout",1),(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i==0){l.Vg();return}x=v(Et(i,(zLe(),xun)),17),x&&x.a!=0?y=new LQ(x.a):y=new M0e,d=uU(at(Et(i,wun))),T=uU(at(Et(i,Sun))),g=v(Et(i,Eun),107),J7r(i,y,d,T,g),l.Vg()},K(mc,"RandomLayoutProvider",1108),H(240,1,{240:1},cde),E.Fb=function(i){return Ec(this.a,v(i,240).a)&&Ec(this.b,v(i,240).b)&&Ec(this.c,v(i,240).c)},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.a,this.b,this.c]))},E.Ib=function(){return"("+this.a+Xo+this.b+Xo+this.c+")"},K(mc,"Triple",240);var Lun;H(562,1,{}),E.Lf=function(){return new Ct(this.f.i,this.f.j)},E.of=function(i){return mDt(i,(Ei(),jh))?Et(this.f,Dun):Et(this.f,i)},E.Mf=function(){return new Ct(this.f.g,this.f.f)},E.Nf=function(){return this.g},E.pf=function(i){return Y1(this.f,i)},E.Of=function(i){Au(this.f,i.a),ku(this.f,i.b)},E.Pf=function(i){FE(this.f,i.a),BE(this.f,i.b)},E.Qf=function(i){this.g=i},E.g=0;var Dun;K(DM,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),H(563,1,{853:1},EK),E.Rf=function(){var i,l;if(!this.b)for(this.b=RQ(dQ(this.a).i),l=new mr(dQ(this.a));l.e!=l.i.gc();)i=v(wr(l),135),Lt(this.b,new $ue(i));return this.b},E.b=null,K(DM,"ElkGraphAdapters/ElkEdgeAdapter",563),H(289,562,{},aE),E.Sf=function(){return lqt(this)},E.a=null,K(DM,"ElkGraphAdapters/ElkGraphAdapter",289),H(640,562,{187:1},$ue),K(DM,"ElkGraphAdapters/ElkLabelAdapter",640),H(639,562,{695:1},jhe),E.Rf=function(){return U_r(this)},E.Vf=function(){var i;return i=v(Et(this.f,(Ei(),vN)),140),!i&&(i=new mL),i},E.Xf=function(){return z_r(this)},E.Zf=function(i){var l;l=new hde(i),sa(this.f,(Ei(),vN),l)},E.$f=function(i){sa(this.f,(Ei(),Ty),new NIe(i))},E.Tf=function(){return this.d},E.Uf=function(){var i,l;if(!this.a)for(this.a=new Ot,l=new yr(_r(bG(v(this.f,27)).a.Kc(),new S));zr(l);)i=v(Rr(l),74),Lt(this.a,new EK(i));return this.a},E.Wf=function(){var i,l;if(!this.c)for(this.c=new Ot,l=new yr(_r(eb(v(this.f,27)).a.Kc(),new S));zr(l);)i=v(Rr(l),74),Lt(this.c,new EK(i));return this.c},E.Yf=function(){return bQ(v(this.f,27)).i!=0||Vt(Ht(v(this.f,27).of((Ei(),aH))))},E._f=function(){vgr(this,(fE(),Lun))},E.a=null,E.b=null,E.c=null,E.d=null,E.e=null,K(DM,"ElkGraphAdapters/ElkNodeAdapter",639),H(1284,562,{852:1},ekt),E.Rf=function(){return K_r(this)},E.Uf=function(){var i,l;if(!this.a)for(this.a=Pg(v(this.f,123).hh().i),l=new mr(v(this.f,123).hh());l.e!=l.i.gc();)i=v(wr(l),74),Lt(this.a,new EK(i));return this.a},E.Wf=function(){var i,l;if(!this.c)for(this.c=Pg(v(this.f,123).ih().i),l=new mr(v(this.f,123).ih());l.e!=l.i.gc();)i=v(wr(l),74),Lt(this.c,new EK(i));return this.c},E.ag=function(){return v(v(this.f,123).of((Ei(),nC)),64)},E.bg=function(){var i,l,d,g,y,x,T,R;for(g=z1(v(this.f,123)),d=new mr(v(this.f,123).ih());d.e!=d.i.gc();)for(i=v(wr(d),74),R=new mr((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c));R.e!=R.i.gc();){if(T=v(wr(R),84),l4(zl(T),g))return!0;if(zl(T)==g&&Vt(Ht(Et(i,(Ei(),x2e)))))return!0}for(l=new mr(v(this.f,123).hh());l.e!=l.i.gc();)for(i=v(wr(l),74),x=new mr((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b));x.e!=x.i.gc();)if(y=v(wr(x),84),l4(zl(y),g))return!0;return!1},E.a=null,E.b=null,E.c=null,K(DM,"ElkGraphAdapters/ElkPortAdapter",1284),H(1285,1,ui,mSt),E.Ne=function(i,l){return ACr(v(i,123),v(l,123))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(DM,"ElkGraphAdapters/PortComparator",1285);var _2=$a(yf,"EObject"),CN=$a(w5,vZt),Ud=$a(w5,_Zt),vH=$a(w5,wZt),_H=$a(w5,"ElkShape"),Lr=$a(w5,EZt),ss=$a(w5,hUe),xa=$a(w5,xZt),wH=$a(yf,SZt),XP=$a(yf,"EFactory"),Mun,$2e=$a(yf,TZt),y1=$a(yf,"EPackage"),Ks,Pun,Bun,bKe,ire,Fun,yKe,vKe,_Ke,om,$un,Uun,wl=$a(w5,dUe),Pi=$a(w5,fUe),Oh=$a(w5,pUe);H(93,1,CZt),E.th=function(){return this.uh(),null},E.uh=function(){return null},E.vh=function(){return this.uh(),!1},E.wh=function(){return!1},E.xh=function(i){Vi(this,i)},K(h6,"BasicNotifierImpl",93),H(99,93,IZt),E.Yh=function(){return id(this)},E.yh=function(i,l){return i},E.zh=function(){throw _e(new ri)},E.Ah=function(i){var l;return l=sl(v(qn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,l.n,l.f,i)},E.Bh=function(i,l){throw _e(new ri)},E.Ch=function(i,l,d){return Od(this,i,l,d)},E.Dh=function(){var i;return this.zh()&&(i=this.zh().Nk(),i)?i:this.ii()},E.Eh=function(){return M1e(this)},E.Fh=function(){throw _e(new ri)},E.Gh=function(){var i,l;return l=this.$h().Ok(),!l&&this.zh().Tk(l=(IL(),i=HNe(tg(this.Dh())),i==null?j2e:new FU(this,i))),l},E.Hh=function(i,l){return i},E.Ih=function(i){var l;return l=i.pk(),l?i.Lj():Ma(this.Dh(),i)},E.Jh=function(){var i;return i=this.zh(),i?i.Qk():null},E.Kh=function(){return this.zh()?this.zh().Nk():null},E.Lh=function(i,l,d){return YZ(this,i,l,d)},E.Mh=function(i){return v8(this,i)},E.Nh=function(i,l){return _fe(this,i,l)},E.Oh=function(){var i;return i=this.zh(),!!i&&i.Rk()},E.Ph=function(){throw _e(new ri)},E.Qh=function(){return $Z(this)},E.Rh=function(i,l,d,g){return Hk(this,i,l,g)},E.Sh=function(i,l,d){var g;return g=v(qn(this.Dh(),l),69),g.wk().zk(this,this.hi(),l-this.ji(),i,d)},E.Th=function(i,l,d,g){return wQ(this,i,l,g)},E.Uh=function(i,l,d){var g;return g=v(qn(this.Dh(),l),69),g.wk().Ak(this,this.hi(),l-this.ji(),i,d)},E.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},E.Wh=function(i){return Y0e(this,i)},E.Xh=function(i){return IDt(this,i)},E.Zh=function(i){return ZWt(this,i)},E.$h=function(){throw _e(new ri)},E._h=function(){return this.zh()?this.zh().Pk():null},E.ai=function(){return $Z(this)},E.bi=function(i,l){I1e(this,i,l)},E.ci=function(i){this.$h().Sk(i)},E.di=function(i){this.$h().Vk(i)},E.ei=function(i){this.$h().Uk(i)},E.fi=function(i,l){var d,g,y,x;return x=this.Jh(),x&&i&&(l=Ko(x.El(),this,l),x.Il(this)),g=this.Ph(),g&&(K1e(this,this.Ph(),this.Fh()).Bb&el?(y=g.Qh(),y&&(i?!x&&y.Il(this):y.Hl(this))):(l=(d=this.Fh(),d>=0?this.Ah(l):this.Ph().Th(this,-1-d,null,l)),l=this.Ch(null,-1,l))),this.di(i),l},E.gi=function(i){var l,d,g,y,x,T,R,O;if(d=this.Dh(),x=Ma(d,i),l=this.ji(),x>=l)return v(i,69).wk().Dk(this,this.hi(),x-l);if(x<=-1)if(T=h5((dh(),ko),d,i),T){if(al(),v(T,69).xk()||(T=Ik(Al(ko,T))),y=(g=this.Ih(T),v(g>=0?this.Lh(g,!0,!0):XE(this,T,!0),160)),O=T.Ik(),O>1||O==-1)return v(v(y,220).Sl(i,!1),79)}else throw _e(new ar(r2+i.xe()+Ime));else if(i.Jk())return g=this.Ih(i),v(g>=0?this.Lh(g,!1,!0):XE(this,i,!1),79);return R=new W8t(this,i),R},E.hi=function(){return KOe(this)},E.ii=function(){return(Mv(),Zn).S},E.ji=function(){return kr(this.ii())},E.ki=function(i){A1e(this,i)},E.Ib=function(){return T0(this)},K(tr,"BasicEObjectImpl",99);var zun;H(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),E.li=function(i){var l;return l=WOe(this),l[i]},E.mi=function(i,l){var d;d=WOe(this),Ga(d,i,l)},E.ni=function(i){var l;l=WOe(this),Ga(l,i,null)},E.th=function(){return v(rr(this,4),129)},E.uh=function(){throw _e(new ri)},E.vh=function(){return(this.Db&4)!=0},E.zh=function(){throw _e(new ri)},E.oi=function(i){Gk(this,2,i)},E.Bh=function(i,l){this.Db=l<<16|this.Db&255,this.oi(i)},E.Dh=function(){return Vu(this)},E.Fh=function(){return this.Db>>16},E.Gh=function(){var i,l;return IL(),l=HNe(tg((i=v(rr(this,16),29),i||this.ii()))),l==null?j2e:new FU(this,l)},E.wh=function(){return(this.Db&1)==0},E.Jh=function(){return v(rr(this,128),2034)},E.Kh=function(){return v(rr(this,16),29)},E.Oh=function(){return(this.Db&32)!=0},E.Ph=function(){return v(rr(this,2),54)},E.Vh=function(){return(this.Db&64)!=0},E.$h=function(){throw _e(new ri)},E._h=function(){return v(rr(this,64),288)},E.ci=function(i){Gk(this,16,i)},E.di=function(i){Gk(this,128,i)},E.ei=function(i){Gk(this,64,i)},E.hi=function(){return Ru(this)},E.Db=0,K(tr,"MinimalEObjectImpl",119),H(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.oi=function(i){this.Cb=i},E.Ph=function(){return this.Cb},K(tr,"MinimalEObjectImpl/Container",120),H(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return uDe(this,i,l,d)},E.Uh=function(i,l,d){return JDe(this,i,l,d)},E.Wh=function(i){return iOe(this,i)},E.bi=function(i,l){K9e(this,i,l)},E.ii=function(){return Lc(),Uun},E.ki=function(i){F9e(this,i)},E.nf=function(){return kGt(this)},E.gh=function(){return!this.o&&(this.o=new uh((Lc(),om),Ay,this,0)),this.o},E.of=function(i){return Et(this,i)},E.pf=function(i){return Y1(this,i)},E.qf=function(i,l){return sa(this,i,l)},K(J_,"EMapPropertyHolderImpl",2083),H(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},hK),E.Lh=function(i,l,d){switch(i){case 0:return this.a;case 1:return this.b}return YZ(this,i,l,d)},E.Wh=function(i){switch(i){case 0:return this.a!=0;case 1:return this.b!=0}return Y0e(this,i)},E.bi=function(i,l){switch(i){case 0:nZ(this,We(at(l)));return;case 1:tZ(this,We(at(l)));return}I1e(this,i,l)},E.ii=function(){return Lc(),Pun},E.ki=function(i){switch(i){case 0:nZ(this,0);return;case 1:tZ(this,0);return}A1e(this,i)},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Ff(T0(this)),i.a+=" (x: ",ST(i,this.a),i.a+=", y: ",ST(i,this.b),i.a+=")",i.a)},E.a=0,E.b=0,K(J_,"ElkBendPointImpl",572),H(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return yLe(this,i,l,d)},E.Sh=function(i,l,d){return _1e(this,i,l,d)},E.Uh=function(i,l,d){return r0e(this,i,l,d)},E.Wh=function(i){return O9e(this,i)},E.bi=function(i,l){RDe(this,i,l)},E.ii=function(){return Lc(),Fun},E.ki=function(i){cLe(this,i)},E.jh=function(){return this.k},E.kh=function(){return dQ(this)},E.Ib=function(){return R0e(this)},E.k=null,K(J_,"ElkGraphElementImpl",739),H(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return CLe(this,i,l,d)},E.Wh=function(i){return OLe(this,i)},E.bi=function(i,l){IDe(this,i,l)},E.ii=function(){return Lc(),$un},E.ki=function(i){$Le(this,i)},E.lh=function(){return this.f},E.mh=function(){return this.g},E.nh=function(){return this.i},E.oh=function(){return this.j},E.ph=function(i,l){DT(this,i,l)},E.qh=function(i,l){ef(this,i,l)},E.rh=function(i){Au(this,i)},E.sh=function(i){ku(this,i)},E.Ib=function(){return T1e(this)},E.f=0,E.g=0,E.i=0,E.j=0,K(J_,"ElkShapeImpl",740),H(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return rDe(this,i,l,d)},E.Sh=function(i,l,d){return xDe(this,i,l,d)},E.Uh=function(i,l,d){return SDe(this,i,l,d)},E.Wh=function(i){return W9e(this,i)},E.bi=function(i,l){BMe(this,i,l)},E.ii=function(){return Lc(),Bun},E.ki=function(i){ZLe(this,i)},E.hh=function(){return!this.d&&(this.d=new Gn(ss,this,8,5)),this.d},E.ih=function(){return!this.e&&(this.e=new Gn(ss,this,7,4)),this.e},K(J_,"ElkConnectableShapeImpl",741),H(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},uue),E.Ah=function(i){return vDe(this,i)},E.Lh=function(i,l,d){switch(i){case 3:return lz(this);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c;case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),this.a;case 7:return Qn(),!this.b&&(this.b=new Gn(Lr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i<=1));case 8:return Qn(),!!tM(this);case 9:return Qn(),!!KE(this);case 10:return Qn(),!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i!=0)}return yLe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 3:return this.Cb&&(d=(g=this.Db>>16,g>=0?vDe(this,d):this.Cb.Th(this,-1-g,null,d))),eIe(this,v(i,27),d);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),bu(this.b,i,d);case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),bu(this.c,i,d);case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),bu(this.a,i,d)}return _1e(this,i,l,d)},E.Uh=function(i,l,d){switch(l){case 3:return eIe(this,null,d);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),Ko(this.b,i,d);case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),Ko(this.c,i,d);case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),Ko(this.a,i,d)}return r0e(this,i,l,d)},E.Wh=function(i){switch(i){case 3:return!!lz(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Gn(Lr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i<=1));case 8:return tM(this);case 9:return KE(this);case 10:return!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i!=0)}return O9e(this,i)},E.bi=function(i,l){switch(i){case 3:bJ(this,v(l,27));return;case 4:!this.b&&(this.b=new Gn(Lr,this,4,7)),Gr(this.b),!this.b&&(this.b=new Gn(Lr,this,4,7)),Ka(this.b,v(l,16));return;case 5:!this.c&&(this.c=new Gn(Lr,this,5,8)),Gr(this.c),!this.c&&(this.c=new Gn(Lr,this,5,8)),Ka(this.c,v(l,16));return;case 6:!this.a&&(this.a=new vt(xa,this,6,6)),Gr(this.a),!this.a&&(this.a=new vt(xa,this,6,6)),Ka(this.a,v(l,16));return}RDe(this,i,l)},E.ii=function(){return Lc(),bKe},E.ki=function(i){switch(i){case 3:bJ(this,null);return;case 4:!this.b&&(this.b=new Gn(Lr,this,4,7)),Gr(this.b);return;case 5:!this.c&&(this.c=new Gn(Lr,this,5,8)),Gr(this.c);return;case 6:!this.a&&(this.a=new vt(xa,this,6,6)),Gr(this.a);return}cLe(this,i)},E.Ib=function(){return mWt(this)},K(J_,"ElkEdgeImpl",326),H(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},dK),E.Ah=function(i){return gDe(this,i)},E.Lh=function(i,l,d){switch(i){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 gs(Ud,this,5)),this.a;case 6:return CDt(this);case 7:return l?Q0e(this):this.i;case 8:return l?X0e(this):this.f;case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),this.e;case 11:return this.d}return uDe(this,i,l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?gDe(this,d):this.Cb.Th(this,-1-y,null,d))),J8e(this,v(i,74),d);case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),bu(this.g,i,d);case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),bu(this.e,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Lc(),ire)),l),69),x.wk().zk(this,Ru(this),l-kr((Lc(),ire)),i,d)},E.Uh=function(i,l,d){switch(l){case 5:return!this.a&&(this.a=new gs(Ud,this,5)),Ko(this.a,i,d);case 6:return J8e(this,null,d);case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),Ko(this.g,i,d);case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),Ko(this.e,i,d)}return JDe(this,i,l,d)},E.Wh=function(i){switch(i){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!CDt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return iOe(this,i)},E.bi=function(i,l){switch(i){case 1:T8(this,We(at(l)));return;case 2:A8(this,We(at(l)));return;case 3:S8(this,We(at(l)));return;case 4:C8(this,We(at(l)));return;case 5:!this.a&&(this.a=new gs(Ud,this,5)),Gr(this.a),!this.a&&(this.a=new gs(Ud,this,5)),Ka(this.a,v(l,16));return;case 6:gYt(this,v(l,74));return;case 7:cZ(this,v(l,84));return;case 8:lZ(this,v(l,84));return;case 9:!this.g&&(this.g=new Gn(xa,this,9,10)),Gr(this.g),!this.g&&(this.g=new Gn(xa,this,9,10)),Ka(this.g,v(l,16));return;case 10:!this.e&&(this.e=new Gn(xa,this,10,9)),Gr(this.e),!this.e&&(this.e=new Gn(xa,this,10,9)),Ka(this.e,v(l,16));return;case 11:_9e(this,ai(l));return}K9e(this,i,l)},E.ii=function(){return Lc(),ire},E.ki=function(i){switch(i){case 1:T8(this,0);return;case 2:A8(this,0);return;case 3:S8(this,0);return;case 4:C8(this,0);return;case 5:!this.a&&(this.a=new gs(Ud,this,5)),Gr(this.a);return;case 6:gYt(this,null);return;case 7:cZ(this,null);return;case 8:lZ(this,null);return;case 9:!this.g&&(this.g=new Gn(xa,this,9,10)),Gr(this.g);return;case 10:!this.e&&(this.e=new Gn(xa,this,10,9)),Gr(this.e);return;case 11:_9e(this,null);return}F9e(this,i)},E.Ib=function(){return RVt(this)},E.b=0,E.c=0,E.d=null,E.j=0,E.k=0,K(J_,"ElkEdgeSectionImpl",452),H(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),E.Lh=function(i,l,d){var g;return i==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab):lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y;return l==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d)):(y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().zk(this,Ru(this),l-kr(this.ii()),i,d))},E.Uh=function(i,l,d){var g,y;return l==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d)):(y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d))},E.Wh=function(i){var l;return i==0?!!this.Ab&&this.Ab.i!=0:sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.Zh=function(i){return WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.di=function(i){Gk(this,128,i)},E.ii=function(){return Pn(),ahn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){this.Bb|=1},E.qi=function(i){return lM(this,i)},E.Bb=0,K(tr,"EModelElementImpl",158),H(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},X6e),E.ri=function(i,l){return VWt(this,i,l)},E.si=function(i){var l,d,g,y,x;if(this.a!=Cd(i)||i.Bb&256)throw _e(new ar(Ome+i.zb+lx));for(g=Fl(i);Uc(g.a).i!=0;){if(d=v(RG(g,0,(l=v(ze(Uc(g.a),0),89),x=l.c,$e(x,90)?v(x,29):(Pn(),n0))),29),WE(d))return y=Cd(d).wi().si(d),v(y,54).ci(i),y;g=Fl(d)}return(i.D!=null?i.D:i.B)=="java.util.Map$Entry"?new l9t(i):new GIe(i)},E.ti=function(i,l){return ex(this,i,l)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.a}return lf(this,i-kr((Pn(),S2)),qn((g=v(rr(this,16),29),g||S2),i),l,d)},E.Sh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 1:return this.a&&(d=v(this.a,54).Th(this,4,y1,d)),lLe(this,v(i,241),d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),S2)),l),69),y.wk().zk(this,Ru(this),l-kr((Pn(),S2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 1:return lLe(this,null,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),S2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),S2)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return sf(this,i-kr((Pn(),S2)),qn((l=v(rr(this,16),29),l||S2),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:dHt(this,v(l,241));return}df(this,i-kr((Pn(),S2)),qn((d=v(rr(this,16),29),d||S2),i),l)},E.ii=function(){return Pn(),S2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:dHt(this,null);return}hf(this,i-kr((Pn(),S2)),qn((l=v(rr(this,16),29),l||S2),i))};var QP,wKe,Gun;K(tr,"EFactoryImpl",720),H(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},TSt),E.ri=function(i,l){switch(i.hk()){case 12:return v(l,149).Pg();case 13:return Kl(l);default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x,T,R,O;switch(i.G==-1&&(i.G=(l=Cd(i),l?uy(l.vi(),i):-1)),i.G){case 4:return x=new H6e,x;case 6:return T=new bL,T;case 7:return R=new H7e,R;case 8:return g=new uue,g;case 9:return d=new hK,d;case 10:return y=new dK,y;case 11:return O=new CSt,O;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){switch(i.hk()){case 13:case 12:return null;default:throw _e(new ar(FI+i.xe()+lx))}},K(J_,"ElkGraphFactoryImpl",1037),H(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),E.Gh=function(){var i,l;return l=(i=v(rr(this,16),29),HNe(tg(i||this.ii()))),l==null?(IL(),IL(),j2e):new NNt(this,l)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.xe()}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:this.ui(ai(l));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),shn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:this.ui(null);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.xe=function(){return this.zb},E.ui=function(i){mu(this,i)},E.Ib=function(){return PD(this)},E.zb=null,K(tr,"ENamedElementImpl",448),H(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},iDt),E.Ah=function(i){return xqt(this,i)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,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 ZS(this,v1,this)),this.rb;case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),this.vb;case 7:return l?this.Db>>16==7?v(this.Cb,241):null:LDt(this)}return lf(this,i-kr((Pn(),Ny)),qn((g=v(rr(this,16),29),g||Ny),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 4:return this.sb&&(d=v(this.sb,54).Th(this,1,XP,d)),hLe(this,v(i,480),d);case 5:return!this.rb&&(this.rb=new ZS(this,v1,this)),bu(this.rb,i,d);case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),bu(this.vb,i,d);case 7:return this.Cb&&(d=(y=this.Db>>16,y>=0?xqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,7,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Ny)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Ny)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 4:return hLe(this,null,d);case 5:return!this.rb&&(this.rb=new ZS(this,v1,this)),Ko(this.rb,i,d);case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),Ko(this.vb,i,d);case 7:return Od(this,null,7,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ny)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ny)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!LDt(this)}return sf(this,i-kr((Pn(),Ny)),qn((l=v(rr(this,16),29),l||Ny),i))},E.Zh=function(i){var l;return l=GTr(this,i),l||WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:gZ(this,ai(l));return;case 3:pZ(this,ai(l));return;case 4:S1e(this,v(l,480));return;case 5:!this.rb&&(this.rb=new ZS(this,v1,this)),Gr(this.rb),!this.rb&&(this.rb=new ZS(this,v1,this)),Ka(this.rb,v(l,16));return;case 6:!this.vb&&(this.vb=new bk(y1,this,6,7)),Gr(this.vb),!this.vb&&(this.vb=new bk(y1,this,6,7)),Ka(this.vb,v(l,16));return}df(this,i-kr((Pn(),Ny)),qn((d=v(rr(this,16),29),d||Ny),i),l)},E.ei=function(i){var l,d;if(i&&this.rb)for(d=new mr(this.rb);d.e!=d.i.gc();)l=wr(d),$e(l,364)&&(v(l,364).w=null);Gk(this,64,i)},E.ii=function(){return Pn(),Ny},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:gZ(this,null);return;case 3:pZ(this,null);return;case 4:S1e(this,null);return;case 5:!this.rb&&(this.rb=new ZS(this,v1,this)),Gr(this.rb);return;case 6:!this.vb&&(this.vb=new bk(y1,this,6,7)),Gr(this.vb);return}hf(this,i-kr((Pn(),Ny)),qn((l=v(rr(this,16),29),l||Ny),i))},E.pi=function(){u1e(this)},E.vi=function(){return!this.rb&&(this.rb=new ZS(this,v1,this)),this.rb},E.wi=function(){return this.sb},E.xi=function(){return this.ub},E.yi=function(){return this.xb},E.zi=function(){return this.yb},E.Ai=function(i){this.ub=i},E.Ib=function(){var i;return this.Db&64?PD(this):(i=new Ff(PD(this)),i.a+=" (nsURI: ",bl(i,this.yb),i.a+=", nsPrefix: ",bl(i,this.xb),i.a+=")",i.a)},E.xb=null,E.yb=null,K(tr,"EPackageImpl",184),H(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},FVt),E.q=!1,E.r=!1;var qun=!1;K(J_,"ElkGraphPackageImpl",569),H(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},H6e),E.Ah=function(i){return mDe(this,i)},E.Lh=function(i,l,d){switch(i){case 7:return DDt(this);case 8:return this.a}return CLe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 7:return this.Cb&&(d=(g=this.Db>>16,g>=0?mDe(this,d):this.Cb.Th(this,-1-g,null,d))),rNe(this,v(i,167),d)}return _1e(this,i,l,d)},E.Uh=function(i,l,d){return l==7?rNe(this,null,d):r0e(this,i,l,d)},E.Wh=function(i){switch(i){case 7:return!!DDt(this);case 8:return!An("",this.a)}return OLe(this,i)},E.bi=function(i,l){switch(i){case 7:XMe(this,v(l,167));return;case 8:g9e(this,ai(l));return}IDe(this,i,l)},E.ii=function(){return Lc(),yKe},E.ki=function(i){switch(i){case 7:XMe(this,null);return;case 8:g9e(this,"");return}$Le(this,i)},E.Ib=function(){return CHt(this)},E.a="",K(J_,"ElkLabelImpl",366),H(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},bL),E.Ah=function(i){return _De(this,i)},E.Lh=function(i,l,d){switch(i){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),this.c;case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),this.a;case 11:return Aa(this);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),this.b;case 13:return Qn(),!this.a&&(this.a=new vt(Pi,this,10,11)),this.a.i>0}return rDe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),bu(this.c,i,d);case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),bu(this.a,i,d);case 11:return this.Cb&&(d=(g=this.Db>>16,g>=0?_De(this,d):this.Cb.Th(this,-1-g,null,d))),uIe(this,v(i,27),d);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),bu(this.b,i,d)}return xDe(this,i,l,d)},E.Uh=function(i,l,d){switch(l){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),Ko(this.c,i,d);case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),Ko(this.a,i,d);case 11:return uIe(this,null,d);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),Ko(this.b,i,d)}return SDe(this,i,l,d)},E.Wh=function(i){switch(i){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Aa(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new vt(Pi,this,10,11)),this.a.i>0}return W9e(this,i)},E.bi=function(i,l){switch(i){case 9:!this.c&&(this.c=new vt(Oh,this,9,9)),Gr(this.c),!this.c&&(this.c=new vt(Oh,this,9,9)),Ka(this.c,v(l,16));return;case 10:!this.a&&(this.a=new vt(Pi,this,10,11)),Gr(this.a),!this.a&&(this.a=new vt(Pi,this,10,11)),Ka(this.a,v(l,16));return;case 11:yJ(this,v(l,27));return;case 12:!this.b&&(this.b=new vt(ss,this,12,3)),Gr(this.b),!this.b&&(this.b=new vt(ss,this,12,3)),Ka(this.b,v(l,16));return}BMe(this,i,l)},E.ii=function(){return Lc(),vKe},E.ki=function(i){switch(i){case 9:!this.c&&(this.c=new vt(Oh,this,9,9)),Gr(this.c);return;case 10:!this.a&&(this.a=new vt(Pi,this,10,11)),Gr(this.a);return;case 11:yJ(this,null);return;case 12:!this.b&&(this.b=new vt(ss,this,12,3)),Gr(this.b);return}ZLe(this,i)},E.Ib=function(){return dPe(this)},K(J_,"ElkNodeImpl",207),H(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},H7e),E.Ah=function(i){return bDe(this,i)},E.Lh=function(i,l,d){return i==9?z1(this):rDe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 9:return this.Cb&&(d=(g=this.Db>>16,g>=0?bDe(this,d):this.Cb.Th(this,-1-g,null,d))),tIe(this,v(i,27),d)}return xDe(this,i,l,d)},E.Uh=function(i,l,d){return l==9?tIe(this,null,d):SDe(this,i,l,d)},E.Wh=function(i){return i==9?!!z1(this):W9e(this,i)},E.bi=function(i,l){switch(i){case 9:YMe(this,v(l,27));return}BMe(this,i,l)},E.ii=function(){return Lc(),_Ke},E.ki=function(i){switch(i){case 9:YMe(this,null);return}ZLe(this,i)},E.Ib=function(){return pjt(this)},K(J_,"ElkPortImpl",193);var Hun=$a(Qo,"BasicEMap/Entry");H(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},CSt),E.Fb=function(i){return this===i},E.ld=function(){return this.b},E.Hb=function(){return vE(this)},E.Di=function(i){m9e(this,v(i,149))},E.Lh=function(i,l,d){switch(i){case 0:return this.b;case 1:return this.c}return YZ(this,i,l,d)},E.Wh=function(i){switch(i){case 0:return!!this.b;case 1:return this.c!=null}return Y0e(this,i)},E.bi=function(i,l){switch(i){case 0:m9e(this,v(l,149));return;case 1:p9e(this,l);return}I1e(this,i,l)},E.ii=function(){return Lc(),om},E.ki=function(i){switch(i){case 0:m9e(this,null);return;case 1:p9e(this,null);return}A1e(this,i)},E.Bi=function(){var i;return this.a==-1&&(i=this.b,this.a=i?ma(i):0),this.a},E.md=function(){return this.c},E.Ci=function(i){this.a=i},E.nd=function(i){var l;return l=this.c,p9e(this,i),l},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Cv,bi(bi(bi(i,this.b?this.b.Pg():Ku),Tge),XL(this.c)),i.a)},E.a=-1,E.c=null;var Ay=K(J_,"ElkPropertyToValueMapEntryImpl",1122);H(996,1,{},RSt),K(Co,"JsonAdapter",996),H(216,63,nb,zp),K(Co,"JsonImportException",216),H(868,1,{},Sqt),K(Co,"JsonImporter",868),H(903,1,{},N8t),K(Co,"JsonImporter/lambda$0$Type",903),H(904,1,{},O8t),K(Co,"JsonImporter/lambda$1$Type",904),H(912,1,{},tkt),K(Co,"JsonImporter/lambda$10$Type",912),H(914,1,{},L8t),K(Co,"JsonImporter/lambda$11$Type",914),H(915,1,{},D8t),K(Co,"JsonImporter/lambda$12$Type",915),H(921,1,{},YLt),K(Co,"JsonImporter/lambda$13$Type",921),H(920,1,{},jLt),K(Co,"JsonImporter/lambda$14$Type",920),H(916,1,{},M8t),K(Co,"JsonImporter/lambda$15$Type",916),H(917,1,{},P8t),K(Co,"JsonImporter/lambda$16$Type",917),H(918,1,{},B8t),K(Co,"JsonImporter/lambda$17$Type",918),H(919,1,{},F8t),K(Co,"JsonImporter/lambda$18$Type",919),H(924,1,{},nkt),K(Co,"JsonImporter/lambda$19$Type",924),H(905,1,{},rkt),K(Co,"JsonImporter/lambda$2$Type",905),H(922,1,{},ikt),K(Co,"JsonImporter/lambda$20$Type",922),H(923,1,{},akt),K(Co,"JsonImporter/lambda$21$Type",923),H(927,1,{},skt),K(Co,"JsonImporter/lambda$22$Type",927),H(925,1,{},okt),K(Co,"JsonImporter/lambda$23$Type",925),H(926,1,{},lkt),K(Co,"JsonImporter/lambda$24$Type",926),H(929,1,{},ckt),K(Co,"JsonImporter/lambda$25$Type",929),H(928,1,{},ukt),K(Co,"JsonImporter/lambda$26$Type",928),H(930,1,vr,$8t),E.Cd=function(i){ngr(this.b,this.a,ai(i))},K(Co,"JsonImporter/lambda$27$Type",930),H(931,1,vr,U8t),E.Cd=function(i){rgr(this.b,this.a,ai(i))},K(Co,"JsonImporter/lambda$28$Type",931),H(932,1,{},z8t),K(Co,"JsonImporter/lambda$29$Type",932),H(908,1,{},hkt),K(Co,"JsonImporter/lambda$3$Type",908),H(933,1,{},G8t),K(Co,"JsonImporter/lambda$30$Type",933),H(934,1,{},dkt),K(Co,"JsonImporter/lambda$31$Type",934),H(935,1,{},fkt),K(Co,"JsonImporter/lambda$32$Type",935),H(936,1,{},pkt),K(Co,"JsonImporter/lambda$33$Type",936),H(937,1,{},gkt),K(Co,"JsonImporter/lambda$34$Type",937),H(870,1,{},mkt),K(Co,"JsonImporter/lambda$35$Type",870),H(941,1,{},POt),K(Co,"JsonImporter/lambda$36$Type",941),H(938,1,vr,bkt),E.Cd=function(i){lpr(this.a,v(i,377))},K(Co,"JsonImporter/lambda$37$Type",938),H(939,1,vr,q8t),E.Cd=function(i){Gar(this.a,this.b,v(i,166))},K(Co,"JsonImporter/lambda$38$Type",939),H(940,1,vr,H8t),E.Cd=function(i){qar(this.a,this.b,v(i,166))},K(Co,"JsonImporter/lambda$39$Type",940),H(906,1,{},ykt),K(Co,"JsonImporter/lambda$4$Type",906),H(942,1,vr,vkt),E.Cd=function(i){cpr(this.a,v(i,8))},K(Co,"JsonImporter/lambda$40$Type",942),H(907,1,{},_kt),K(Co,"JsonImporter/lambda$5$Type",907),H(911,1,{},wkt),K(Co,"JsonImporter/lambda$6$Type",911),H(909,1,{},Ekt),K(Co,"JsonImporter/lambda$7$Type",909),H(910,1,{},xkt),K(Co,"JsonImporter/lambda$8$Type",910),H(913,1,{},Skt),K(Co,"JsonImporter/lambda$9$Type",913),H(961,1,vr,Tkt),E.Cd=function(i){Tk(this.a,new JS(ai(i)))},K(Co,"JsonMetaDataConverter/lambda$0$Type",961),H(962,1,vr,Ckt),E.Cd=function(i){edr(this.a,v(i,245))},K(Co,"JsonMetaDataConverter/lambda$1$Type",962),H(963,1,vr,Akt),E.Cd=function(i){Jfr(this.a,v(i,143))},K(Co,"JsonMetaDataConverter/lambda$2$Type",963),H(964,1,vr,kkt),E.Cd=function(i){tdr(this.a,v(i,170))},K(Co,"JsonMetaDataConverter/lambda$3$Type",964),H(245,22,{3:1,34:1,22:1,245:1},hk);var are,sre,U2e,ore,lre,cre,z2e,G2e,ure=$r(HG,"GraphFeature",245,jr,Fgr,Aur),Vun;H(11,1,{34:1,149:1},la,Ba,En,fo),E.Fd=function(i){return Wsr(this,v(i,149))},E.Fb=function(i){return mDt(this,i)},E.Sg=function(){return zt(this)},E.Pg=function(){return this.b},E.Hb=function(){return ry(this.b)},E.Ib=function(){return this.b},K(HG,"Property",11),H(671,1,ui,Sue),E.Ne=function(i,l){return avr(this,v(i,96),v(l,96))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HG,"PropertyHolderComparator",671),H(709,1,io,T7e),E.Nb=function(i){xo(this,i)},E.Pb=function(){return sgr(this)},E.Qb=function(){S7t()},E.Ob=function(){return!!this.a},K(Nee,"ElkGraphUtil/AncestorIterator",709);var EKe=$a(Qo,"EList");H(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),E.bd=function(i,l){FD(this,i,l)},E.Fc=function(i){return Yr(this,i)},E.cd=function(i,l){return $9e(this,i,l)},E.Gc=function(i){return Ka(this,i)},E.Ii=function(){return new mk(this)},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},E.Li=function(){return!0},E.Mi=function(i,l){},E.Ni=function(){},E.Oi=function(i,l){Sfe(this,i,l)},E.Pi=function(i,l,d){},E.Qi=function(i,l){},E.Ri=function(i,l,d){},E.Fb=function(i){return ZYt(this,i)},E.Hb=function(){return M9e(this)},E.Si=function(){return!1},E.Kc=function(){return new mr(this)},E.ed=function(){return new gk(this)},E.fd=function(i){var l;if(l=this.gc(),i<0||i>l)throw _e(new XS(i,l));return new Rde(this,i)},E.Ui=function(i,l){this.Ti(i,this.dd(l))},E.Mc=function(i){return WQ(this,i)},E.Wi=function(i,l){return l},E.hd=function(i,l){return JT(this,i,l)},E.Ib=function(){return RLe(this)},E.Yi=function(){return!0},E.Zi=function(i,l){return z8(this,l)},K(Qo,"AbstractEList",70),H(66,70,hg,fK,PE,R9e),E.Ei=function(i,l){return w1e(this,i,l)},E.Fi=function(i){return KGt(this,i)},E.Gi=function(i,l){Yz(this,i,l)},E.Hi=function(i){gz(this,i)},E.$i=function(i){return qOe(this,i)},E.$b=function(){_D(this)},E.Hc=function(i){return rI(this,i)},E.Xb=function(i){return ze(this,i)},E._i=function(i){var l,d,g;++this.j,d=this.g==null?0:this.g.length,i>d&&(g=this.g,l=d+(d/2|0)+4,l<i&&(l=i),this.g=this.aj(l),g!=null&&Gc(g,0,this.g,0,this.i))},E.dd=function(i){return bqt(this,i)},E.dc=function(){return this.i==0},E.Ti=function(i,l){return L1e(this,i,l)},E.aj=function(i){return st(zs,Yn,1,i,5,1)},E.Vi=function(i){return this.g[i]},E.gd=function(i){return Vk(this,i)},E.Xi=function(i,l){return Mfe(this,i,l)},E.gc=function(){return this.i},E.Pc=function(){return hOe(this)},E.Qc=function(i){return FLe(this,i)},E.i=0;var xKe=K(Qo,"BasicEList",66),SKe=$a(Qo,"TreeIterator");H(708,66,qme),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.g==null&&!this.c?WNe(this):this.g==null||this.i!=0&&v(this.g[this.i-1],51).Ob()},E.Pb=function(){return pJ(this)},E.Qb=function(){if(!this.e)throw _e(new Tl("There is no valid object to remove."));this.e.Qb()},E.c=!1,K(Qo,"AbstractTreeIterator",708),H(700,708,qme,m8e),E.bj=function(i){var l;return l=v(i,58).Gh().Kc(),$e(l,287)&&v(l,287).wl(new ISt),l},K(Nee,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),H(965,1,{},ISt),K(Nee,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var EH,q2e,xH=K(Nee,"ElkReflect",null);H(901,1,M4,NSt),E.Rg=function(i){return TQ(),t0r(v(i,181))},K(Nee,"ElkReflect/lambda$0$Type",901);var w2;$a(Qo,"ResourceLocator"),H(1065,1,{}),K(Qo,"DelegatingResourceLocator",1065),H(1066,1065,{}),K("org.eclipse.emf.common","EMFPlugin",1066);var H2e=$a(fJt,"Adapter"),nIr=$a(fJt,"Notification");H(1174,1,NUe),E.cj=function(){return this.d},E.dj=function(i){},E.ej=function(i){this.d=i},E.fj=function(i){this.d==i&&(this.d=null)},E.d=null,K(h6,"AdapterImpl",1174),H(2093,70,pJt),E.Ei=function(i,l){return LLe(this,i,l)},E.Fi=function(i){var l,d,g;if(++this.j,i.dc())return!1;for(l=this.Ej(),g=i.Kc();g.Ob();)d=g.Pb(),this.rj(this.Zi(l,d)),++l;return!0},E.Gi=function(i,l){YNt(this,i,l)},E.Hi=function(i){bLt(this,i)},E.pj=function(){return this.sj()},E.$b=function(){GU(this,this.Ej(),this.Fj())},E.Hc=function(i){return this.uj(i)},E.Ic=function(i){return this.vj(i)},E.qj=function(i,l){this.Bj().Um()},E.rj=function(i){this.Bj().Um()},E.sj=function(){return this.Bj()},E.tj=function(){this.Bj().Um()},E.uj=function(i){return this.Bj().Um()},E.vj=function(i){return this.Bj().Um()},E.wj=function(i){return this.Bj().Um()},E.xj=function(i){return this.Bj().Um()},E.yj=function(){return this.Bj().Um()},E.zj=function(i){return this.Bj().Um()},E.Aj=function(){return this.Bj().Um()},E.Cj=function(i){return this.Bj().Um()},E.Dj=function(i,l){return this.Bj().Um()},E.Ej=function(){return this.Bj().Um()},E.Fj=function(){return this.Bj().Um()},E.Gj=function(i){return this.Bj().Um()},E.Hj=function(){return this.Bj().Um()},E.Fb=function(i){return this.wj(i)},E.Xb=function(i){return this.Wi(i,this.xj(i))},E.Hb=function(){return this.yj()},E.dd=function(i){return this.zj(i)},E.dc=function(){return this.Aj()},E.Ti=function(i,l){return XDe(this,i,l)},E.Vi=function(i){return this.xj(i)},E.gd=function(i){return YX(this,i)},E.Mc=function(i){var l;return l=this.dd(i),l>=0?(this.gd(l),!0):!1},E.Xi=function(i,l){return this.Dj(i,this.Zi(i,l))},E.gc=function(){return this.Ej()},E.Pc=function(){return this.Fj()},E.Qc=function(i){return this.Gj(i)},E.Ib=function(){return this.Hj()},K(Qo,"DelegatingEList",2093),H(2094,2093,pJt),E.Ei=function(i,l){return SPe(this,i,l)},E.Fi=function(i){return this.Ei(this.Ej(),i)},E.Gi=function(i,l){$Vt(this,i,l)},E.Hi=function(i){AVt(this,i)},E.Li=function(){return!this.Mj()},E.$b=function(){pM(this)},E.Ij=function(i,l,d,g,y){return new gDt(this,i,l,d,g,y)},E.Jj=function(i){Vi(this.jj(),i)},E.Kj=function(){return null},E.Lj=function(){return-1},E.jj=function(){return null},E.Mj=function(){return!1},E.Nj=function(i,l){return l},E.Oj=function(i,l){return l},E.Pj=function(){return!1},E.Qj=function(){return!this.Aj()},E.Ti=function(i,l){var d,g;return this.Pj()?(g=this.Qj(),d=XDe(this,i,l),this.Jj(this.Ij(7,Nt(l),d,i,g)),d):XDe(this,i,l)},E.gd=function(i){var l,d,g,y;return this.Pj()?(d=null,g=this.Qj(),l=this.Ij(4,y=YX(this,i),null,i,g),this.Mj()&&y?(d=this.Oj(y,d),d?(d.nj(l),d.oj()):this.Jj(l)):d?(d.nj(l),d.oj()):this.Jj(l),y):(y=YX(this,i),this.Mj()&&y&&(d=this.Oj(y,null),d&&d.oj()),y)},E.Xi=function(i,l){return Yjt(this,i,l)},K(h6,"DelegatingNotifyingListImpl",2094),H(152,1,oq),E.nj=function(i){return MDe(this,i)},E.oj=function(){Ofe(this)},E.gj=function(){return this.d},E.Kj=function(){return null},E.Rj=function(){return null},E.hj=function(i){return-1},E.ij=function(){return LYt(this)},E.jj=function(){return null},E.kj=function(){return tPe(this)},E.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},E.Sj=function(){return!1},E.mj=function(i){var l,d,g,y,x,T,R,O,D,q,J;switch(this.d){case 1:case 2:switch(y=i.gj(),y){case 1:case 2:if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null))return this.g=i.ij(),i.gj()==1&&(this.d=1),!0}case 4:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null))return D=zPe(this),O=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,T=i.lj(),this.d=6,J=new PE(2),O<=T?(Yr(J,this.n),Yr(J,i.kj()),this.g=Te(xe(Wr,1),vi,28,15,[this.o=O,T+1])):(Yr(J,i.kj()),Yr(J,this.n),this.g=Te(xe(Wr,1),vi,28,15,[this.o=T,O])),this.n=J,D||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null)){for(D=zPe(this),T=i.lj(),q=v(this.g,53),g=st(Wr,vi,28,q.length+1,15,1),l=0;l<q.length&&(R=q[l],R<=T);)g[l++]=R,++T;for(d=v(this.n,15),d.bd(l,i.kj()),g[l]=T;++l<g.length;)g[l]=q[l-1];return this.g=g,D||(this.o=-2-g[0]),!0}break}}break}}return!1},E.Ib=function(){var i,l,d,g;switch(g=new Ff(__(this.Rm)+"@"+(l=ma(this)>>>0,l.toString(16))),g.a+=" (eventType: ",this.d){case 1:{g.a+="SET";break}case 2:{g.a+="UNSET";break}case 3:{g.a+="ADD";break}case 5:{g.a+="ADD_MANY";break}case 4:{g.a+="REMOVE";break}case 6:{g.a+="REMOVE_MANY";break}case 7:{g.a+="MOVE";break}case 8:{g.a+="REMOVING_ADAPTER";break}case 9:{g.a+="RESOLVE";break}default:{Wue(g,this.d);break}}if(_jt(this)&&(g.a+=", touch: true"),g.a+=", position: ",Wue(g,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),g.a+=", notifier: ",HL(g,this.jj()),g.a+=", feature: ",HL(g,this.Kj()),g.a+=", oldValue: ",HL(g,tPe(this)),g.a+=", newValue: ",this.d==6&&$e(this.g,53)){for(d=v(this.g,53),g.a+="[",i=0;i<d.length;)g.a+=d[i],++i<d.length&&(g.a+=Xo);g.a+="]"}else HL(g,LYt(this));return g.a+=", isTouch: ",Hb(g,_jt(this)),g.a+=", wasSet: ",Hb(g,zPe(this)),g.a+=")",g.a},E.d=0,E.e=0,E.f=0,E.j=0,E.k=0,E.o=0,E.p=0,K(h6,"NotificationImpl",152),H(1188,152,oq,gDt),E.Kj=function(){return this.a.Kj()},E.hj=function(i){return this.a.Lj()},E.jj=function(){return this.a.jj()},K(h6,"DelegatingNotifyingListImpl/1",1188),H(251,66,hg,OSt,Av),E.Fc=function(i){return Gzt(this,v(i,378))},E.nj=function(i){return Gzt(this,i)},E.oj=function(){var i,l,d;for(i=0;i<this.i;++i)l=v(this.g[i],378),d=l.jj(),d!=null&&l.gj()!=-1&&v(d,94).xh(l)},E.aj=function(i){return st(nIr,Yn,378,i,0,1)},K(h6,"NotificationChainImpl",251),H(1524,93,CZt),E.uh=function(){return this.e},E.wh=function(){return(this.f&1)!=0},E.f=1,K(h6,"NotifierImpl",1524),H(2091,66,hg),E.Ei=function(i,l){return epe(this,i,l)},E.Fi=function(i){return this.Ei(this.i,i)},E.Gi=function(i,l){kMe(this,i,l)},E.Hi=function(i){D1e(this,i)},E.Li=function(){return!this.Mj()},E.$b=function(){Gr(this)},E.Ij=function(i,l,d,g,y){return new pDt(this,i,l,d,g,y)},E.Jj=function(i){Vi(this.jj(),i)},E.Kj=function(){return null},E.Lj=function(){return-1},E.jj=function(){return null},E.Mj=function(){return!1},E.Tj=function(){return!1},E.Nj=function(i,l){return l},E.Oj=function(i,l){return l},E.Pj=function(){return!1},E.Qj=function(){return this.i!=0},E.Ti=function(i,l){return $D(this,i,l)},E.gd=function(i){return x4(this,i)},E.Xi=function(i,l){return cWt(this,i,l)},E.Uj=function(i,l){return l},E.Vj=function(i,l){return l},E.Wj=function(i,l,d){return d},K(h6,"NotifyingListImpl",2091),H(1187,152,oq,pDt),E.Kj=function(){return this.a.Kj()},E.hj=function(i){return this.a.Lj()},E.jj=function(){return this.a.jj()},K(h6,"NotifyingListImpl/1",1187),H(966,66,hg,KNt),E.Hc=function(i){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new nD(this),this.a=this.j),r1(this.b,i)):rI(this,i)},E.Yi=function(){return!0},E.a=0,K(Qo,"AbstractEList/1",966),H(302,77,Kpe,XS),K(Qo,"AbstractEList/BasicIndexOutOfBoundsException",302),H(37,1,io,mr),E.Nb=function(i){xo(this,i)},E.Xj=function(){if(this.i.j!=this.f)throw _e(new Jd)},E.Yj=function(){return wr(this)},E.Ob=function(){return this.e!=this.i.gc()},E.Pb=function(){return this.Yj()},E.Qb=function(){XD(this)},E.e=0,E.f=0,E.g=-1,K(Qo,"AbstractEList/EIterator",37),H(286,37,Yg,gk,Rde),E.Qb=function(){XD(this)},E.Rb=function(i){jzt(this,i)},E.Zj=function(){var i;try{return i=this.d.Xb(--this.e),this.Xj(),this.g=this.e,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.$j=function(i){ZGt(this,i)},E.Sb=function(){return this.e!=0},E.Tb=function(){return this.e},E.Ub=function(){return this.Zj()},E.Vb=function(){return this.e-1},E.Wb=function(i){this.$j(i)},K(Qo,"AbstractEList/EListIterator",286),H(355,37,io,mk),E.Yj=function(){return j0e(this)},E.Qb=function(){throw _e(new ri)},K(Qo,"AbstractEList/NonResolvingEIterator",355),H(398,286,Yg,$U,bIe),E.Rb=function(i){throw _e(new ri)},E.Yj=function(){var i;try{return i=this.c.Vi(this.e),this.Xj(),this.g=this.e++,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.Zj=function(){var i;try{return i=this.c.Vi(--this.e),this.Xj(),this.g=this.e,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.Qb=function(){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(Qo,"AbstractEList/NonResolvingEListIterator",398),H(2080,70,gJt),E.Ei=function(i,l){var d,g,y,x,T,R,O,D,q,J,re;if(y=l.gc(),y!=0){for(D=v(rr(this.a,4),129),q=D==null?0:D.length,re=q+y,g=m0e(this,re),J=q-i,J>0&&Gc(D,i,g,i+y,J),O=l.Kc(),T=0;T<y;++T)R=O.Pb(),d=i+T,Uhe(g,d,z8(this,R));for(J8(this,g),x=0;x<y;++x)R=g[i],this.Mi(i,R),++i;return!0}else return++this.j,!1},E.Fi=function(i){var l,d,g,y,x,T,R,O,D;if(g=i.gc(),g!=0){for(O=(d=v(rr(this.a,4),129),d==null?0:d.length),D=O+g,l=m0e(this,D),R=i.Kc(),x=O;x<D;++x)T=R.Pb(),Uhe(l,x,z8(this,T));for(J8(this,l),y=O;y<D;++y)T=l[y],this.Mi(y,T);return!0}else return++this.j,!1},E.Gi=function(i,l){var d,g,y,x;g=v(rr(this.a,4),129),y=g==null?0:g.length,d=m0e(this,y+1),x=z8(this,l),i!=y&&Gc(g,i,d,i+1,y-i),Ga(d,i,x),J8(this,d),this.Mi(i,l)},E.Hi=function(i){var l,d,g;g=(d=v(rr(this.a,4),129),d==null?0:d.length),l=m0e(this,g+1),Uhe(l,g,z8(this,i)),J8(this,l),this.Mi(g,i)},E.Ii=function(){return new $Pt(this)},E.Ji=function(){return new Q9t(this)},E.Ki=function(i){var l,d;if(d=(l=v(rr(this.a,4),129),l==null?0:l.length),i<0||i>d)throw _e(new XS(i,d));return new BLt(this,i)},E.$b=function(){var i,l;++this.j,i=v(rr(this.a,4),129),l=i==null?0:i.length,J8(this,null),Sfe(this,l,i)},E.Hc=function(i){var l,d,g,y,x;if(l=v(rr(this.a,4),129),l!=null){if(i!=null){for(g=l,y=0,x=g.length;y<x;++y)if(d=g[y],Yi(i,d))return!0}else for(g=l,y=0,x=g.length;y<x;++y)if(d=g[y],Ze(d)===Ze(i))return!0}return!1},E.Xb=function(i){var l,d;if(l=v(rr(this.a,4),129),d=l==null?0:l.length,i>=d)throw _e(new XS(i,d));return l[i]},E.dd=function(i){var l,d,g;if(l=v(rr(this.a,4),129),l!=null){if(i!=null){for(d=0,g=l.length;d<g;++d)if(Yi(i,l[d]))return d}else for(d=0,g=l.length;d<g;++d)if(Ze(l[d])===Ze(i))return d}return-1},E.dc=function(){return v(rr(this.a,4),129)==null},E.Kc=function(){return new FPt(this)},E.ed=function(){return new X9t(this)},E.fd=function(i){var l,d;if(d=(l=v(rr(this.a,4),129),l==null?0:l.length),i<0||i>d)throw _e(new XS(i,d));return new PLt(this,i)},E.Ti=function(i,l){var d,g,y;if(d=rGt(this),y=d==null?0:d.length,i>=y)throw _e(new Sl(zme+i+ew+y));if(l>=y)throw _e(new Sl(Gme+l+ew+y));return g=d[l],i!=l&&(i<l?Gc(d,i,d,i+1,l-i):Gc(d,l+1,d,l,i-l),Ga(d,i,g),J8(this,d)),g},E.Vi=function(i){return v(rr(this.a,4),129)[i]},E.gd=function(i){return $4r(this,i)},E.Xi=function(i,l){var d,g;return d=rGt(this),g=d[i],Uhe(d,i,z8(this,l)),J8(this,d),g},E.gc=function(){var i;return i=v(rr(this.a,4),129),i==null?0:i.length},E.Pc=function(){var i,l,d;return i=v(rr(this.a,4),129),d=i==null?0:i.length,l=st(H2e,jme,424,d,0,1),d>0&&Gc(i,0,l,0,d),l},E.Qc=function(i){var l,d,g;return l=v(rr(this.a,4),129),g=l==null?0:l.length,g>0&&(i.length<g&&(d=Iz(cd(i).c,g),i=d),Gc(l,0,i,0,g)),i.length>g&&Ga(i,g,null),i};var Yun;K(Qo,"ArrayDelegatingEList",2080),H(1051,37,io,FPt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},E.Qb=function(){XD(this),this.a=v(rr(this.b.a,4),129)},K(Qo,"ArrayDelegatingEList/EIterator",1051),H(722,286,Yg,X9t,PLt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},E.$j=function(i){ZGt(this,i),this.a=v(rr(this.b.a,4),129)},E.Qb=function(){XD(this),this.a=v(rr(this.b.a,4),129)},K(Qo,"ArrayDelegatingEList/EListIterator",722),H(1052,355,io,$Pt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},K(Qo,"ArrayDelegatingEList/NonResolvingEIterator",1052),H(723,398,Yg,Q9t,BLt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},K(Qo,"ArrayDelegatingEList/NonResolvingEListIterator",723),H(615,302,Kpe,Dhe),K(Qo,"BasicEList/BasicIndexOutOfBoundsException",615),H(710,66,hg,a8e),E.bd=function(i,l){throw _e(new ri)},E.Fc=function(i){throw _e(new ri)},E.cd=function(i,l){throw _e(new ri)},E.Gc=function(i){throw _e(new ri)},E.$b=function(){throw _e(new ri)},E._i=function(i){throw _e(new ri)},E.Kc=function(){return this.Ii()},E.ed=function(){return this.Ji()},E.fd=function(i){return this.Ki(i)},E.Ti=function(i,l){throw _e(new ri)},E.Ui=function(i,l){throw _e(new ri)},E.gd=function(i){throw _e(new ri)},E.Mc=function(i){throw _e(new ri)},E.hd=function(i,l){throw _e(new ri)},K(Qo,"BasicEList/UnmodifiableEList",710),H(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),E.bd=function(i,l){Psr(this,i,v(l,44))},E.Fc=function(i){return Ior(this,v(i,44))},E.Jc=function(i){To(this,i)},E.Xb=function(i){return v(ze(this.c,i),136)},E.Ti=function(i,l){return v(this.c.Ti(i,l),44)},E.Ui=function(i,l){Bsr(this,i,v(l,44))},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return v(this.c.gd(i),44)},E.hd=function(i,l){return Jhr(this,i,v(l,44))},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.cd=function(i,l){return this.c.cd(i,l)},E.Gc=function(i){return this.c.Gc(i)},E.$b=function(){this.c.$b()},E.Hc=function(i){return this.c.Hc(i)},E.Ic=function(i){return Bz(this.c,i)},E._j=function(){var i,l,d;if(this.d==null){for(this.d=st(xKe,OUe,66,2*this.f+1,0,1),d=this.e,this.f=0,l=this.c.Kc();l.e!=l.i.gc();)i=v(l.Yj(),136),XZ(this,i);this.e=d}},E.Fb=function(i){return SOt(this,i)},E.Hb=function(){return M9e(this.c)},E.dd=function(i){return this.c.dd(i)},E.ak=function(){this.c=new Rkt(this)},E.dc=function(){return this.f==0},E.Kc=function(){return this.c.Kc()},E.ed=function(){return this.c.ed()},E.fd=function(i){return this.c.fd(i)},E.bk=function(){return yz(this)},E.ck=function(i,l,d){return new BOt(i,l,d)},E.dk=function(){return new LSt},E.Mc=function(i){return u$t(this,i)},E.gc=function(){return this.f},E.kd=function(i,l){return new Qb(this.c,i,l)},E.Pc=function(){return this.c.Pc()},E.Qc=function(i){return this.c.Qc(i)},E.Ib=function(){return RLe(this.c)},E.e=0,E.f=0,K(Qo,"BasicEMap",721),H(1046,66,hg,Rkt),E.Mi=function(i,l){fir(this,v(l,136))},E.Pi=function(i,l,d){var g;++(g=this,v(l,136),g).a.e},E.Qi=function(i,l){pir(this,v(l,136))},E.Ri=function(i,l,d){gor(this,v(l,136),v(d,136))},E.Oi=function(i,l){rUt(this.a)},K(Qo,"BasicEMap/1",1046),H(1047,66,hg,LSt),E.aj=function(i){return st(rIr,mJt,621,i,0,1)},K(Qo,"BasicEMap/2",1047),H(1048,J1,fh,Ikt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){return B0e(this.a,i)},E.Kc=function(){return this.a.f==0?(t8(),SH.a):new d7t(this.a)},E.Mc=function(i){var l;return l=this.a.f,FZ(this.a,i),this.a.f!=l},E.gc=function(){return this.a.f},K(Qo,"BasicEMap/3",1048),H(1049,31,A4,Nkt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){return JYt(this.a,i)},E.Kc=function(){return this.a.f==0?(t8(),SH.a):new f7t(this.a)},E.gc=function(){return this.a.f},K(Qo,"BasicEMap/4",1049),H(1050,J1,fh,Okt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){var l,d,g,y,x,T,R,O,D;if(this.a.f>0&&$e(i,44)&&(this.a._j(),O=v(i,44),R=O.ld(),y=R==null?0:ma(R),x=nIe(this.a,y),l=this.a.d[x],l)){for(d=v(l.g,379),D=l.i,T=0;T<D;++T)if(g=d[T],g.Bi()==y&&g.Fb(O))return!0}return!1},E.Kc=function(){return this.a.f==0?(t8(),SH.a):new Yde(this.a)},E.Mc=function(i){return HVt(this,i)},E.gc=function(){return this.a.f},K(Qo,"BasicEMap/5",1050),H(622,1,io,Yde),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.b!=-1},E.Pb=function(){var i;if(this.f.e!=this.c)throw _e(new Jd);if(this.b==-1)throw _e(new ec);return this.d=this.a,this.e=this.b,Iqt(this),i=v(this.f.d[this.d].g[this.e],136),this.ek(i)},E.Qb=function(){if(this.f.e!=this.c)throw _e(new Jd);if(this.e==-1)throw _e(new ih);this.f.c.Mc(ze(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},E.ek=function(i){return i},E.a=0,E.b=-1,E.c=0,E.d=0,E.e=0,K(Qo,"BasicEMap/BasicEMapIterator",622),H(1044,622,io,d7t),E.ek=function(i){return i.ld()},K(Qo,"BasicEMap/BasicEMapKeyIterator",1044),H(1045,622,io,f7t),E.ek=function(i){return i.md()},K(Qo,"BasicEMap/BasicEMapValueIterator",1045),H(1043,1,tx,Lkt),E.wc=function(i){kD(this,i)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.$b=function(){this.a.c.$b()},E._b=function(i){return Y8t(this,i)},E.uc=function(i){return JYt(this.a,i)},E.vc=function(){return Fpr(this.a)},E.Fb=function(i){return SOt(this.a,i)},E.xc=function(i){return h1(this.a,i)},E.Hb=function(){return M9e(this.a.c)},E.dc=function(){return this.a.f==0},E.ec=function(){return Ppr(this.a)},E.zc=function(i,l){return sG(this.a,i,l)},E.Bc=function(i){return FZ(this.a,i)},E.gc=function(){return this.a.f},E.Ib=function(){return RLe(this.a.c)},E.Cc=function(){return Bpr(this.a)},K(Qo,"BasicEMap/DelegatingMap",1043),H(621,1,{44:1,136:1,621:1},BOt),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),(this.b!=null?Yi(this.b,l.ld()):Ze(this.b)===Ze(l.ld()))&&(this.c!=null?Yi(this.c,l.md()):Ze(this.c)===Ze(l.md()))):!1},E.Bi=function(){return this.a},E.ld=function(){return this.b},E.md=function(){return this.c},E.Hb=function(){return this.a^(this.c==null?0:ma(this.c))},E.Ci=function(i){this.a=i},E.Di=function(i){throw _e(new y_)},E.nd=function(i){var l;return l=this.c,this.c=i,l},E.Ib=function(){return this.b+"->"+this.c},E.a=0;var rIr=K(Qo,"BasicEMap/EntryImpl",621);H(546,1,{},pK),K(Qo,"BasicEMap/View",546);var SH;H(783,1,{}),E.Fb=function(i){return FMe((Fn(),Zo),i)},E.Hb=function(){return j9e((Fn(),Zo))},E.Ib=function(){return Wv((Fn(),Zo))},K(Qo,"ECollections/BasicEmptyUnmodifiableEList",783),H(1348,1,Yg,DSt),E.Nb=function(i){xo(this,i)},E.Rb=function(i){throw _e(new ri)},E.Ob=function(){return!1},E.Sb=function(){return!1},E.Pb=function(){throw _e(new ec)},E.Tb=function(){return 0},E.Ub=function(){throw _e(new ec)},E.Vb=function(){return-1},E.Qb=function(){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(Qo,"ECollections/BasicEmptyUnmodifiableEList/1",1348),H(1346,783,{20:1,16:1,15:1,61:1},E6t),E.bd=function(i,l){B7t()},E.Fc=function(i){return F7t()},E.cd=function(i,l){return $7t()},E.Gc=function(i){return U7t()},E.$b=function(){z7t()},E.Hc=function(i){return!1},E.Ic=function(i){return!1},E.Jc=function(i){To(this,i)},E.Xb=function(i){return l8e((Fn(),i)),null},E.dd=function(i){return-1},E.dc=function(){return!0},E.Kc=function(){return this.a},E.ed=function(){return this.a},E.fd=function(i){return this.a},E.Ti=function(i,l){return G7t()},E.Ui=function(i,l){q7t()},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return H7t()},E.Mc=function(i){return V7t()},E.hd=function(i,l){return Y7t()},E.gc=function(){return 0},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.kd=function(i,l){return Fn(),new Qb(Zo,i,l)},E.Pc=function(){return aNe((Fn(),Zo))},E.Qc=function(i){return Fn(),YD(Zo,i)},K(Qo,"ECollections/EmptyUnmodifiableEList",1346),H(1347,783,{20:1,16:1,15:1,61:1,597:1},x6t),E.bd=function(i,l){B7t()},E.Fc=function(i){return F7t()},E.cd=function(i,l){return $7t()},E.Gc=function(i){return U7t()},E.$b=function(){z7t()},E.Hc=function(i){return!1},E.Ic=function(i){return!1},E.Jc=function(i){To(this,i)},E.Xb=function(i){return l8e((Fn(),i)),null},E.dd=function(i){return-1},E.dc=function(){return!0},E.Kc=function(){return this.a},E.ed=function(){return this.a},E.fd=function(i){return this.a},E.Ti=function(i,l){return G7t()},E.Ui=function(i,l){q7t()},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return H7t()},E.Mc=function(i){return V7t()},E.hd=function(i,l){return Y7t()},E.gc=function(){return 0},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.kd=function(i,l){return Fn(),new Qb(Zo,i,l)},E.Pc=function(){return aNe((Fn(),Zo))},E.Qc=function(i){return Fn(),YD(Zo,i)},E.bk=function(){return Fn(),Fn(),Jg},K(Qo,"ECollections/EmptyUnmodifiableEMap",1347);var TKe=$a(Qo,"Enumerator"),hre;H(288,1,{288:1},H1e),E.Fb=function(i){var l;return this===i?!0:$e(i,288)?(l=v(i,288),this.f==l.f&&ghr(this.i,l.i)&&bde(this.a,this.f&256?l.f&256?l.a:null:l.f&256?null:l.a)&&bde(this.d,l.d)&&bde(this.g,l.g)&&bde(this.e,l.e)&&$2r(this,l)):!1},E.Hb=function(){return this.f},E.Ib=function(){return Ojt(this)},E.f=0;var jun=0,Wun=0,Kun=0,Xun=0,CKe=0,AKe=0,kKe=0,RKe=0,IKe=0,Qun,ZP=0,JP=0,Zun=0,Jun=0,dre,NKe;K(Qo,"URI",288),H(1121,45,p5,S6t),E.zc=function(i,l){return v(Cl(this,ai(i),v(l,288)),288)},K(Qo,"URI/URICache",1121),H(506,66,hg,kSt,ZX),E.Si=function(){return!0},K(Qo,"UniqueEList",506),H(590,63,nb,VQ),K(Qo,"WrappedException",590);var wi=$a(yf,vJt),c3=$a(yf,_Jt),Ju=$a(yf,wJt),u3=$a(yf,EJt),v1=$a(yf,xJt),Jf=$a(yf,"EClass"),V2e=$a(yf,"EDataType"),ehn;H(1233,45,p5,T6t),E.xc=function(i){return ro(i)?Qc(this,i):Pl(ol(this.f,i))},K(yf,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var fre=$a(yf,"EEnum"),hb=$a(yf,SJt),pl=$a(yf,TJt),e0=$a(yf,CJt),t0,Rx=$a(yf,AJt),h3=$a(yf,kJt);H(1042,1,{},ASt),E.Ib=function(){return"NIL"},K(yf,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var thn;H(1041,45,p5,C6t),E.xc=function(i){return ro(i)?Qc(this,i):Pl(ol(this.f,i))},K(yf,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Mu=$a(yf,RJt),D6=$a(yf,"EValidator/PatternMatcher"),OKe,LKe,Zn,ky,d3,E2,nhn,rhn,ihn,x2,Ry,S2,Ix,dp,ahn,shn,n0,Iy,ohn,Ny,f3,iC,nl,lhn,chn,Nx,pre=$a(Ca,"FeatureMap/Entry");H(545,1,{76:1},gX),E.Lk=function(){return this.a},E.md=function(){return this.b},K(tr,"BasicEObjectImpl/1",545),H(1040,1,Wme,W8t),E.Fk=function(i){return _fe(this.a,this.b,i)},E.Qj=function(){return IDt(this.a,this.b)},E.Wb=function(i){jNe(this.a,this.b,i)},E.Gk=function(){ddr(this.a,this.b)},K(tr,"BasicEObjectImpl/4",1040),H(2081,1,{114:1}),E.Mk=function(i){this.e=i==0?uhn:st(zs,Yn,1,i,5,1)},E.li=function(i){return this.e[i]},E.mi=function(i,l){this.e[i]=l},E.ni=function(i){this.e[i]=null},E.Nk=function(){return this.c},E.Ok=function(){throw _e(new ri)},E.Pk=function(){throw _e(new ri)},E.Qk=function(){return this.d},E.Rk=function(){return this.e!=null},E.Sk=function(i){this.c=i},E.Tk=function(i){throw _e(new ri)},E.Uk=function(i){throw _e(new ri)},E.Vk=function(i){this.d=i};var uhn;K(tr,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),H(192,2081,{114:1},t1),E.Ok=function(){return this.a},E.Pk=function(){return this.b},E.Tk=function(i){this.a=i},E.Uk=function(i){this.b=i},K(tr,"BasicEObjectImpl/EPropertiesHolderImpl",192),H(516,99,IZt,gK),E.uh=function(){return this.f},E.zh=function(){return this.k},E.Bh=function(i,l){this.g=i,this.i=l},E.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},E.Fh=function(){return this.i},E.wh=function(){return(this.j&1)!=0},E.Ph=function(){return this.g},E.Vh=function(){return(this.j&4)!=0},E.$h=function(){return!this.k&&(this.k=new t1),this.k},E.ci=function(i){this.$h().Sk(i),i?this.j|=2:this.j&=-3},E.ei=function(i){this.$h().Uk(i),i?this.j|=4:this.j&=-5},E.ii=function(){return(Mv(),Zn).S},E.i=0,E.j=1,K(tr,"EObjectImpl",516),H(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},GIe),E.li=function(i){return this.e[i]},E.mi=function(i,l){this.e[i]=l},E.ni=function(i){this.e[i]=null},E.Dh=function(){return this.d},E.Ih=function(i){return Ma(this.d,i)},E.Kh=function(){return this.d},E.Oh=function(){return this.e!=null},E.$h=function(){return!this.k&&(this.k=new MSt),this.k},E.ci=function(i){this.d=i},E.hi=function(){var i;return this.e==null&&(i=kr(this.d),this.e=i==0?hhn:st(zs,Yn,1,i,5,1)),this},E.ji=function(){return 0};var hhn;K(tr,"DynamicEObjectImpl",798),H(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},l9t),E.Fb=function(i){return this===i},E.Hb=function(){return vE(this)},E.ci=function(i){this.d=i,this.b=vG(i,"key"),this.c=vG(i,BM)},E.Bi=function(){var i;return this.a==-1&&(i=Lfe(this,this.b),this.a=i==null?0:ma(i)),this.a},E.ld=function(){return Lfe(this,this.b)},E.md=function(){return Lfe(this,this.c)},E.Ci=function(i){this.a=i},E.Di=function(i){jNe(this,this.b,i)},E.nd=function(i){var l;return l=Lfe(this,this.c),jNe(this,this.c,i),l},E.a=0,K(tr,"DynamicEObjectImpl/BasicEMapEntry",1522),H(1523,1,{114:1},MSt),E.Mk=function(i){throw _e(new ri)},E.li=function(i){throw _e(new ri)},E.mi=function(i,l){throw _e(new ri)},E.ni=function(i){throw _e(new ri)},E.Nk=function(){throw _e(new ri)},E.Ok=function(){return this.a},E.Pk=function(){return this.b},E.Qk=function(){return this.c},E.Rk=function(){throw _e(new ri)},E.Sk=function(i){throw _e(new ri)},E.Tk=function(i){this.a=i},E.Uk=function(i){this.b=i},E.Vk=function(i){this.c=i},K(tr,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),H(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},V6e),E.Ah=function(i){return yDe(this,i)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.d;case 2:return d?(!this.b&&(this.b=new sd((Pn(),nl),_c,this)),this.b):(!this.b&&(this.b=new sd((Pn(),nl),_c,this)),yz(this.b));case 3:return MDt(this);case 4:return!this.a&&(this.a=new gs(_2,this,4)),this.a;case 5:return!this.c&&(this.c=new BT(_2,this,5)),this.c}return lf(this,i-kr((Pn(),ky)),qn((g=v(rr(this,16),29),g||ky),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 3:return this.Cb&&(d=(y=this.Db>>16,y>=0?yDe(this,d):this.Cb.Th(this,-1-y,null,d))),iNe(this,v(i,155),d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),ky)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),ky)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 2:return!this.b&&(this.b=new sd((Pn(),nl),_c,this)),DX(this.b,i,d);case 3:return iNe(this,null,d);case 4:return!this.a&&(this.a=new gs(_2,this,4)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),ky)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),ky)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!MDt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return sf(this,i-kr((Pn(),ky)),qn((l=v(rr(this,16),29),l||ky),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:nhr(this,ai(l));return;case 2:!this.b&&(this.b=new sd((Pn(),nl),_c,this)),mZ(this.b,l);return;case 3:_Yt(this,v(l,155));return;case 4:!this.a&&(this.a=new gs(_2,this,4)),Gr(this.a),!this.a&&(this.a=new gs(_2,this,4)),Ka(this.a,v(l,16));return;case 5:!this.c&&(this.c=new BT(_2,this,5)),Gr(this.c),!this.c&&(this.c=new BT(_2,this,5)),Ka(this.c,v(l,16));return}df(this,i-kr((Pn(),ky)),qn((d=v(rr(this,16),29),d||ky),i),l)},E.ii=function(){return Pn(),ky},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:v9e(this,null);return;case 2:!this.b&&(this.b=new sd((Pn(),nl),_c,this)),this.b.c.$b();return;case 3:_Yt(this,null);return;case 4:!this.a&&(this.a=new gs(_2,this,4)),Gr(this.a);return;case 5:!this.c&&(this.c=new BT(_2,this,5)),Gr(this.c);return}hf(this,i-kr((Pn(),ky)),qn((l=v(rr(this,16),29),l||ky),i))},E.Ib=function(){return Szt(this)},E.d=null,K(tr,"EAnnotationImpl",519),H(141,721,LUe,uh),E.Gi=function(i,l){vsr(this,i,v(l,44))},E.Wk=function(i,l){return Elr(this,v(i,44),l)},E.$i=function(i){return v(v(this.c,71).$i(i),136)},E.Ii=function(){return v(this.c,71).Ii()},E.Ji=function(){return v(this.c,71).Ji()},E.Ki=function(i){return v(this.c,71).Ki(i)},E.Xk=function(i,l){return DX(this,i,l)},E.Fk=function(i){return v(this.c,79).Fk(i)},E.ak=function(){},E.Qj=function(){return v(this.c,79).Qj()},E.ck=function(i,l,d){var g;return g=v(Cd(this.b).wi().si(this.b),136),g.Ci(i),g.Di(l),g.nd(d),g},E.dk=function(){return new A7e(this)},E.Wb=function(i){mZ(this,i)},E.Gk=function(){v(this.c,79).Gk()},K(Ca,"EcoreEMap",141),H(165,141,LUe,sd),E._j=function(){var i,l,d,g,y,x;if(this.d==null){for(x=st(xKe,OUe,66,2*this.f+1,0,1),d=this.c.Kc();d.e!=d.i.gc();)l=v(d.Yj(),136),g=l.Bi(),y=(g&qi)%x.length,i=x[y],!i&&(i=x[y]=new A7e(this)),i.Fc(l);this.d=x}},K(tr,"EAnnotationImpl/1",165),H(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!this.Jk();case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l,d;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0)}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:this.ui(ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:this.Zk(v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),chn},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:this.ui(null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.Zk(1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){Gf(this),this.Bb|=1},E.Hk=function(){return Gf(this)},E.Ik=function(){return this.t},E.Jk=function(){var i;return i=this.t,i>1||i==-1},E.Si=function(){return(this.Bb&512)!=0},E.Yk=function(i,l){return dLe(this,i,l)},E.Zk=function(i){c4(this,i)},E.Ib=function(){return RMe(this)},E.s=0,E.t=1,K(tr,"ETypedElementImpl",292),H(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),E.Ah=function(i){return fqt(this,i)},E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!this.Jk();case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this)}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 17:return this.Cb&&(d=(y=this.Db>>16,y>=0?fqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,17,d)}return x=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),x.wk().zk(this,Ru(this),l-kr(this.ii()),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 17:return Od(this,null,17,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l,d;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this)}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:this.Zk(v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),lhn},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.Zk(1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.pk=function(){return this.f},E.ik=function(){return cI(this)},E.qk=function(){return t4(this)},E.uk=function(){return null},E.$k=function(){return this.k},E.Lj=function(){return this.n},E.vk=function(){return iJ(this)},E.wk=function(){var i,l,d,g,y,x,T,R,O;return this.p||(d=t4(this),(d.i==null&&tg(d),d.i).length,g=this.uk(),g&&kr(t4(g)),y=Gf(this),T=y.kk(),i=T?T.i&1?T==Wh?rs:T==Wr?Ao:T==g3?VI:T==ao?ws:T==C2?ux:T==lC?hx:T==bh?d6:WM:T:null,l=cI(this),R=y.ik(),mvr(this),this.Bb&ng&&((x=TDe((dh(),ko),d))&&x!=this||(x=Ik(Al(ko,this))))?this.p=new X8t(this,x):this.Jk()?this.al()?g?this.Bb&gh?i?this.bl()?this.p=new A_(47,i,this,g):this.p=new A_(5,i,this,g):this.bl()?this.p=new O_(46,this,g):this.p=new O_(4,this,g):i?this.bl()?this.p=new A_(49,i,this,g):this.p=new A_(7,i,this,g):this.bl()?this.p=new O_(48,this,g):this.p=new O_(6,this,g):this.Bb&gh?i?i==rw?this.p=new Wb(50,Hun,this):this.bl()?this.p=new Wb(43,i,this):this.p=new Wb(1,i,this):this.bl()?this.p=new Xb(42,this):this.p=new Xb(0,this):i?i==rw?this.p=new Wb(41,Hun,this):this.bl()?this.p=new Wb(45,i,this):this.p=new Wb(3,i,this):this.bl()?this.p=new Xb(44,this):this.p=new Xb(2,this):$e(y,156)?i==pre?this.p=new Xb(40,this):this.Bb&512?this.Bb&gh?i?this.p=new Wb(9,i,this):this.p=new Xb(8,this):i?this.p=new Wb(11,i,this):this.p=new Xb(10,this):this.Bb&gh?i?this.p=new Wb(13,i,this):this.p=new Xb(12,this):i?this.p=new Wb(15,i,this):this.p=new Xb(14,this):g?(O=g.t,O>1||O==-1?this.bl()?this.Bb&gh?i?this.p=new A_(25,i,this,g):this.p=new O_(24,this,g):i?this.p=new A_(27,i,this,g):this.p=new O_(26,this,g):this.Bb&gh?i?this.p=new A_(29,i,this,g):this.p=new O_(28,this,g):i?this.p=new A_(31,i,this,g):this.p=new O_(30,this,g):this.bl()?this.Bb&gh?i?this.p=new A_(33,i,this,g):this.p=new O_(32,this,g):i?this.p=new A_(35,i,this,g):this.p=new O_(34,this,g):this.Bb&gh?i?this.p=new A_(37,i,this,g):this.p=new O_(36,this,g):i?this.p=new A_(39,i,this,g):this.p=new O_(38,this,g)):this.bl()?this.Bb&gh?i?this.p=new Wb(17,i,this):this.p=new Xb(16,this):i?this.p=new Wb(19,i,this):this.p=new Xb(18,this):this.Bb&gh?i?this.p=new Wb(21,i,this):this.p=new Xb(20,this):i?this.p=new Wb(23,i,this):this.p=new Xb(22,this):this._k()?this.bl()?this.p=new FOt(v(y,29),this,g):this.p=new VNe(v(y,29),this,g):$e(y,156)?i==pre?this.p=new Xb(40,this):this.Bb&gh?i?this.p=new B9t(l,R,this,(F0e(),T==Wr?UKe:T==Wh?MKe:T==C2?zKe:T==g3?$Ke:T==ao?FKe:T==lC?GKe:T==bh?PKe:T==Tf?BKe:W2e)):this.p=new XLt(v(y,156),l,R,this):i?this.p=new P9t(l,R,this,(F0e(),T==Wr?UKe:T==Wh?MKe:T==C2?zKe:T==g3?$Ke:T==ao?FKe:T==lC?GKe:T==bh?PKe:T==Tf?BKe:W2e)):this.p=new KLt(v(y,156),l,R,this):this.al()?g?this.Bb&gh?this.bl()?this.p=new UOt(v(y,29),this,g):this.p=new IIe(v(y,29),this,g):this.bl()?this.p=new $Ot(v(y,29),this,g):this.p=new ude(v(y,29),this,g):this.Bb&gh?this.bl()?this.p=new PNt(v(y,29),this):this.p=new H8e(v(y,29),this):this.bl()?this.p=new MNt(v(y,29),this):this.p=new Qhe(v(y,29),this):this.bl()?g?this.Bb&gh?this.p=new zOt(v(y,29),this,g):this.p=new kIe(v(y,29),this,g):this.Bb&gh?this.p=new BNt(v(y,29),this):this.p=new V8e(v(y,29),this):g?this.Bb&gh?this.p=new GOt(v(y,29),this,g):this.p=new RIe(v(y,29),this,g):this.Bb&gh?this.p=new FNt(v(y,29),this):this.p=new QX(v(y,29),this)),this.p},E.rk=function(){return(this.Bb&k0)!=0},E._k=function(){return!1},E.al=function(){return!1},E.sk=function(){return(this.Bb&ng)!=0},E.xk=function(){return Dfe(this)},E.bl=function(){return!1},E.tk=function(){return(this.Bb&gh)!=0},E.cl=function(i){this.k=i},E.ui=function(i){afe(this,i)},E.Ib=function(){return TJ(this)},E.e=!1,E.n=0,K(tr,"EStructuralFeatureImpl",462),H(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},Nue),E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!xMe(this);case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this);case 18:return Qn(),!!(this.Bb&Sc);case 19:return l?i0e(this):JPt(this)}return lf(this,i-kr((Pn(),d3)),qn((g=v(rr(this,16),29),g||d3),i),l,d)},E.Wh=function(i){var l,d;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return xMe(this);case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this);case 18:return(this.Bb&Sc)!=0;case 19:return!!JPt(this)}return sf(this,i-kr((Pn(),d3)),qn((l=v(rr(this,16),29),l||d3),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:m7t(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return;case 18:I0e(this,Vt(Ht(l)));return}df(this,i-kr((Pn(),d3)),qn((d=v(rr(this,16),29),d||d3),i),l)},E.ii=function(){return Pn(),d3},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.b=0,c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return;case 18:I0e(this,!1);return}hf(this,i-kr((Pn(),d3)),qn((l=v(rr(this,16),29),l||d3),i))},E.pi=function(){i0e(this),d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.Jk=function(){return xMe(this)},E.Yk=function(i,l){return this.b=0,this.a=null,dLe(this,i,l)},E.Zk=function(i){m7t(this,i)},E.Ib=function(){var i;return this.Db&64?TJ(this):(i=new Ff(TJ(this)),i.a+=" (iD: ",Hb(i,(this.Bb&Sc)!=0),i.a+=")",i.a)},E.b=0,K(tr,"EAttributeImpl",331),H(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),E.dl=function(i){return i.Dh()==this},E.Ah=function(i){return c1e(this,i)},E.Bh=function(i,l){this.w=null,this.Db=l<<16|this.Db&255,this.Cb=i},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return this.ik();case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d)}return x=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),x.wk().zk(this,Ru(this),l-kr(this.ii()),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!WE(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(this);case 7:return!!this.A&&this.A.i!=0}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),nhn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.hk=function(){var i;return this.G==-1&&(this.G=(i=Cd(this),i?uy(i.vi(),this):-1)),this.G},E.ik=function(){return null},E.jk=function(){return Cd(this)},E.el=function(){return this.v},E.kk=function(){return WE(this)},E.lk=function(){return this.D!=null?this.D:this.B},E.mk=function(){return this.F},E.fk=function(i){return J1e(this,i)},E.fl=function(i){this.v=i},E.gl=function(i){B$t(this,i)},E.hl=function(i){this.C=i},E.ui=function(i){CQ(this,i)},E.Ib=function(){return DZ(this)},E.C=null,E.D=null,E.G=-1,K(tr,"EClassifierImpl",364),H(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},K6e),E.dl=function(i){return alr(this,i.Dh())},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return null;case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A;case 8:return Qn(),!!(this.Bb&256);case 9:return Qn(),!!(this.Bb&512);case 10:return Fl(this);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),this.q;case 12:return u5(this);case 13:return hM(this);case 14:return hM(this),this.r;case 15:return u5(this),this.k;case 16:return dMe(this);case 17:return rpe(this);case 18:return tg(this);case 19:return mJ(this);case 20:return u5(this),this.o;case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),this.s;case 22:return Uc(this);case 23:return q1e(this)}return lf(this,i-kr((Pn(),E2)),qn((g=v(rr(this,16),29),g||E2),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),bu(this.q,i,d);case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),bu(this.s,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),E2)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),E2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),Ko(this.q,i,d);case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),Ko(this.s,i,d);case 22:return Ko(Uc(this),i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),E2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),E2)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!WE(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Uc(this.u.a).i!=0&&!(this.n&&Z0e(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return u5(this).i!=0;case 13:return hM(this).i!=0;case 14:return hM(this),this.r.i!=0;case 15:return u5(this),this.k.i!=0;case 16:return dMe(this).i!=0;case 17:return rpe(this).i!=0;case 18:return tg(this).i!=0;case 19:return mJ(this).i!=0;case 20:return u5(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Z0e(this.n);case 23:return q1e(this).i!=0}return sf(this,i-kr((Pn(),E2)),qn((l=v(rr(this,16),29),l||E2),i))},E.Zh=function(i){var l;return l=this.i==null||this.q&&this.q.i!=0?null:vG(this,i),l||WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return;case 8:fLe(this,Vt(Ht(l)));return;case 9:pLe(this,Vt(Ht(l)));return;case 10:pM(Fl(this)),Ka(Fl(this),v(l,16));return;case 11:!this.q&&(this.q=new vt(e0,this,11,10)),Gr(this.q),!this.q&&(this.q=new vt(e0,this,11,10)),Ka(this.q,v(l,16));return;case 21:!this.s&&(this.s=new vt(Ju,this,21,17)),Gr(this.s),!this.s&&(this.s=new vt(Ju,this,21,17)),Ka(this.s,v(l,16));return;case 22:Gr(Uc(this)),Ka(Uc(this),v(l,16));return}df(this,i-kr((Pn(),E2)),qn((d=v(rr(this,16),29),d||E2),i),l)},E.ii=function(){return Pn(),E2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return;case 8:fLe(this,!1);return;case 9:pLe(this,!1);return;case 10:this.u&&pM(this.u);return;case 11:!this.q&&(this.q=new vt(e0,this,11,10)),Gr(this.q);return;case 21:!this.s&&(this.s=new vt(Ju,this,21,17)),Gr(this.s);return;case 22:this.n&&Gr(this.n);return}hf(this,i-kr((Pn(),E2)),qn((l=v(rr(this,16),29),l||E2),i))},E.pi=function(){var i,l;if(u5(this),hM(this),dMe(this),rpe(this),tg(this),mJ(this),q1e(this),_D(Nur($h(this))),this.s)for(i=0,l=this.s.i;i<l;++i)UU(ze(this.s,i));if(this.q)for(i=0,l=this.q.i;i<l;++i)UU(ze(this.q,i));ay((dh(),ko),this).xe(),this.Bb|=1},E.Ib=function(){return ODe(this)},E.k=null,E.r=null;var eB,dhn,Y2e;K(tr,"EClassImpl",90),H(2092,2091,OJt),E.Ei=function(i,l){return epe(this,i,l)},E.Fi=function(i){return epe(this,this.i,i)},E.Gi=function(i,l){kMe(this,i,l)},E.Hi=function(i){D1e(this,i)},E.Wk=function(i,l){return bu(this,i,l)},E.$i=function(i){return qOe(this,i)},E.Xk=function(i,l){return Ko(this,i,l)},E.Xi=function(i,l){return cWt(this,i,l)},E.Ii=function(){return new mk(this)},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},K(Ca,"NotifyingInternalEListImpl",2092),H(632,2092,Xl),E.Hc=function(i){return IWt(this,i)},E.Ij=function(i,l,d,g,y){return pD(this,i,l,d,g,y)},E.Jj=function(i){$R(this,i)},E.Fk=function(i){return this},E.Lk=function(){return qn(this.e.Dh(),this.Lj())},E.Kj=function(){return this.Lk()},E.Lj=function(){return Ma(this.e.Dh(),this.Lk())},E.il=function(){return v(this.Lk().Hk(),29).kk()},E.jl=function(){return sl(v(this.Lk(),19)).n},E.jj=function(){return this.e},E.kl=function(){return!0},E.ll=function(){return!1},E.ml=function(){return!1},E.nl=function(){return!1},E.dd=function(i){return uy(this,i)},E.Nj=function(i,l){var d;return d=v(i,54),this.ml()?this.kl()?d.Rh(this.e,this.jl(),this.il(),l):d.Rh(this.e,Ma(d.Dh(),sl(v(this.Lk(),19))),null,l):d.Rh(this.e,-1-this.Lj(),null,l)},E.Oj=function(i,l){var d;return d=v(i,54),this.ml()?this.kl()?d.Th(this.e,this.jl(),this.il(),l):d.Th(this.e,Ma(d.Dh(),sl(v(this.Lk(),19))),null,l):d.Th(this.e,-1-this.Lj(),null,l)},E.al=function(){return!1},E.ol=function(){return!0},E.fk=function(i){return ePt(this.d,i)},E.Pj=function(){return id(this.e)},E.Qj=function(){return this.i!=0},E.aj=function(i){return Iz(this.d,i)},E.Wi=function(i,l){return this.ol()&&this.nl()?Xk(this,i,v(l,58)):l},E.pl=function(i){return i.Vh()?Hv(this.e,v(i,54)):i},E.Wb=function(i){jIt(this,i)},E.Pc=function(){return KBt(this)},E.Qc=function(i){var l;if(this.nl())for(l=this.i-1;l>=0;--l)ze(this,l);return FLe(this,i)},E.Gk=function(){Gr(this)},E.Zi=function(i,l){return a$t(this,i,l)},K(Ca,"EcoreEList",632),H(505,632,Xl,QU),E.Li=function(){return!1},E.Lj=function(){return this.c},E.Mj=function(){return!1},E.ol=function(){return!0},E.Si=function(){return!0},E.Wi=function(i,l){return l},E.Yi=function(){return!1},E.c=0,K(Ca,"EObjectEList",505),H(83,505,Xl,gs),E.Mj=function(){return!0},E.ml=function(){return!1},E.al=function(){return!0},K(Ca,"EObjectContainmentEList",83),H(555,83,Xl,TX),E.Ni=function(){this.b=!0},E.Qj=function(){return this.b},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.b,this.b=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.b=!1},E.b=!1,K(Ca,"EObjectContainmentEList/Unsettable",555),H(1161,555,Xl,D9t),E.Ti=function(i,l){var d,g;return d=v($D(this,i,l),89),id(this.e)&&$R(this,new vz(this.a,7,(Pn(),rhn),Nt(l),(g=d.c,$e(g,90)?v(g,29):n0),i)),d},E.Uj=function(i,l){return Zvr(this,v(i,89),l)},E.Vj=function(i,l){return Qvr(this,v(i,89),l)},E.Wj=function(i,l,d){return tEr(this,v(i,89),v(l,89),d)},E.Ij=function(i,l,d,g,y){switch(i){case 3:return pD(this,i,l,d,g,this.i>1);case 5:return pD(this,i,l,d,g,this.i-v(d,15).gc()>0);default:return new Vm(this.e,i,this.c,l,d,g,!0)}},E.Tj=function(){return!0},E.Qj=function(){return Z0e(this)},E.Gk=function(){Gr(this)},K(tr,"EClassImpl/1",1161),H(1175,1174,NUe),E.dj=function(i){var l,d,g,y,x,T,R;if(d=i.gj(),d!=8){if(g=L2r(i),g==0)switch(d){case 1:case 9:{R=i.kj(),R!=null&&(l=$h(v(R,482)),!l.c&&(l.c=new OR),WQ(l.c,i.jj())),T=i.ij(),T!=null&&(y=v(T,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29))));break}case 3:{T=i.ij(),T!=null&&(y=v(T,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29))));break}case 5:{if(T=i.ij(),T!=null)for(x=v(T,16).Kc();x.Ob();)y=v(x.Pb(),482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29)));break}case 4:{R=i.kj(),R!=null&&(y=v(R,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),WQ(l.c,i.jj())));break}case 6:{if(R=i.kj(),R!=null)for(x=v(R,16).Kc();x.Ob();)y=v(x.Pb(),482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),WQ(l.c,i.jj()));break}}this.ql(g)}},E.ql=function(i){sjt(this,i)},E.b=63,K(tr,"ESuperAdapter",1175),H(1176,1175,NUe,Dkt),E.ql=function(i){_4(this,i)},K(tr,"EClassImpl/10",1176),H(1165,710,Xl),E.Ei=function(i,l){return w1e(this,i,l)},E.Fi=function(i){return KGt(this,i)},E.Gi=function(i,l){Yz(this,i,l)},E.Hi=function(i){gz(this,i)},E.$i=function(i){return qOe(this,i)},E.Xi=function(i,l){return Mfe(this,i,l)},E.Wk=function(i,l){throw _e(new ri)},E.Ii=function(){return new mk(this)},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},E.Xk=function(i,l){throw _e(new ri)},E.Fk=function(i){return this},E.Qj=function(){return this.i!=0},E.Wb=function(i){throw _e(new ri)},E.Gk=function(){throw _e(new ri)},K(Ca,"EcoreEList/UnmodifiableEList",1165),H(328,1165,Xl,NT),E.Yi=function(){return!1},K(Ca,"EcoreEList/UnmodifiableEList/FastCompare",328),H(1168,328,Xl,IUt),E.dd=function(i){var l,d,g;if($e(i,179)&&(l=v(i,179),d=l.Lj(),d!=-1)){for(g=this.i;d<g;++d)if(Ze(this.g[d])===Ze(i))return d}return-1},K(tr,"EClassImpl/1EAllStructuralFeaturesList",1168),H(1162,506,hg,PSt),E.aj=function(i){return st(pl,LJt,89,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/1EGenericSuperTypeEList",1162),H(633,506,hg,hue),E.aj=function(i){return st(Ju,x5,179,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/1EStructuralFeatureUniqueEList",633),H(755,506,hg,Y6e),E.aj=function(i){return st(h3,x5,19,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/1ReferenceList",755),H(1163,506,hg,Mkt),E.Mi=function(i,l){Ohr(this,v(l,35))},E.aj=function(i){return st(u3,x5,35,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/2",1163),H(1164,506,hg,BSt),E.aj=function(i){return st(u3,x5,35,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/3",1164),H(1166,328,Xl,i9t),E.Fc=function(i){return X1r(this,v(i,35))},E.Hi=function(i){bar(this,v(i,35))},K(tr,"EClassImpl/4",1166),H(1167,328,Xl,r9t),E.Fc=function(i){return Q1r(this,v(i,19))},E.Hi=function(i){yar(this,v(i,19))},K(tr,"EClassImpl/5",1167),H(1169,506,hg,FSt),E.aj=function(i){return st(e0,DUe,62,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/6",1169),H(1170,506,hg,$St),E.aj=function(i){return st(h3,x5,19,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/7",1170),H(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),E.Ei=function(i,l){return SPe(this,i,l)},E.Fi=function(i){return SPe(this,this.Ej(),i)},E.Gi=function(i,l){$Vt(this,i,l)},E.Hi=function(i){AVt(this,i)},E.Wk=function(i,l){return T_r(this,i,l)},E.Xk=function(i,l){return Z2r(this,i,l)},E.Xi=function(i,l){return Yjt(this,i,l)},E.$i=function(i){return this.xj(i)},E.Ii=function(){return new mk(this)},E.pj=function(){return this.sj()},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},K(Ca,"DelegatingNotifyingInternalEListImpl",2095),H(756,2095,MUe),E.Li=function(){var i;return i=qn(Vu(this.b),this.Lj()).Hk(),$e(i,156)&&!$e(i,469)&&(i.kk().i&1)==0},E.Hc=function(i){var l,d,g,y,x,T,R,O;if(this.ol()){if(O=this.Ej(),O>4)if(this.fk(i)){if(this.al()){if(g=v(i,54),d=g.Eh(),R=d==this.b&&(this.ml()?g.yh(g.Fh(),v(qn(Vu(this.b),this.Lj()).Hk(),29).kk())==sl(v(qn(Vu(this.b),this.Lj()),19)).n:-1-g.Fh()==this.Lj()),this.nl()&&!R&&!d&&g.Jh()){for(y=0;y<O;++y)if(l=Ade(this,this.xj(y)),Ze(l)===Ze(i))return!0}return R}else if(this.ml()&&!this.ll()){if(x=v(i,58).Mh(sl(v(qn(Vu(this.b),this.Lj()),19))),Ze(x)===Ze(this.b))return!0;if(x==null||!v(x,58).Vh())return!1}}else return!1;if(T=this.uj(i),this.nl()&&!T){for(y=0;y<O;++y)if(g=Ade(this,this.xj(y)),Ze(g)===Ze(i))return!0}return T}else return this.uj(i)},E.Ij=function(i,l,d,g,y){return new Vm(this.b,i,this.Lj(),l,d,g,y)},E.Jj=function(i){Vi(this.b,i)},E.Fk=function(i){return this},E.Kj=function(){return qn(Vu(this.b),this.Lj())},E.Lj=function(){return Ma(Vu(this.b),qn(Vu(this.b),this.Lj()))},E.jj=function(){return this.b},E.kl=function(){return!!qn(Vu(this.b),this.Lj()).Hk().kk()},E.Mj=function(){var i,l;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),(i.Bb&Sc)!=0||!!sl(v(l,19))):!1},E.ll=function(){var i,l,d,g;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),d=sl(i),!!d&&(g=d.t,g>1||g==-1)):!1},E.ml=function(){var i,l,d;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),d=sl(i),!!d):!1},E.nl=function(){var i,l;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),(i.Bb&el)!=0):!1},E.dd=function(i){var l,d,g,y;if(g=this.zj(i),g>=0)return g;if(this.ol()){for(d=0,y=this.Ej();d<y;++d)if(l=Ade(this,this.xj(d)),Ze(l)===Ze(i))return d}return-1},E.Nj=function(i,l){var d;return d=v(i,54),this.ml()?this.kl()?d.Rh(this.b,sl(v(qn(Vu(this.b),this.Lj()),19)).n,v(qn(Vu(this.b),this.Lj()).Hk(),29).kk(),l):d.Rh(this.b,Ma(d.Dh(),sl(v(qn(Vu(this.b),this.Lj()),19))),null,l):d.Rh(this.b,-1-this.Lj(),null,l)},E.Oj=function(i,l){var d;return d=v(i,54),this.ml()?this.kl()?d.Th(this.b,sl(v(qn(Vu(this.b),this.Lj()),19)).n,v(qn(Vu(this.b),this.Lj()).Hk(),29).kk(),l):d.Th(this.b,Ma(d.Dh(),sl(v(qn(Vu(this.b),this.Lj()),19))),null,l):d.Th(this.b,-1-this.Lj(),null,l)},E.al=function(){var i,l;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),(i.Bb&Sc)!=0):!1},E.ol=function(){return $e(qn(Vu(this.b),this.Lj()).Hk(),90)},E.fk=function(i){return qn(Vu(this.b),this.Lj()).Hk().fk(i)},E.Pj=function(){return id(this.b)},E.Qj=function(){return!this.Aj()},E.Si=function(){return qn(Vu(this.b),this.Lj()).Si()},E.Wi=function(i,l){return RG(this,i,l)},E.Wb=function(i){pM(this),Ka(this,v(i,15))},E.Pc=function(){var i;if(this.nl())for(i=this.Ej()-1;i>=0;--i)RG(this,i,this.xj(i));return this.Fj()},E.Qc=function(i){var l;if(this.nl())for(l=this.Ej()-1;l>=0;--l)RG(this,l,this.xj(l));return this.Gj(i)},E.Gk=function(){pM(this)},E.Zi=function(i,l){return PBt(this,i,l)},K(Ca,"DelegatingEcoreEList",756),H(1171,756,MUe,XNt),E.qj=function(i,l){Ror(this,i,v(l,29))},E.rj=function(i){msr(this,v(i,29))},E.xj=function(i){var l,d;return l=v(ze(Uc(this.a),i),89),d=l.c,$e(d,90)?v(d,29):(Pn(),n0)},E.Cj=function(i){var l,d;return l=v(x4(Uc(this.a),i),89),d=l.c,$e(d,90)?v(d,29):(Pn(),n0)},E.Dj=function(i,l){return C_r(this,i,v(l,29))},E.Li=function(){return!1},E.Ij=function(i,l,d,g,y){return null},E.sj=function(){return new Bkt(this)},E.tj=function(){Gr(Uc(this.a))},E.uj=function(i){return Czt(this,i)},E.vj=function(i){var l,d;for(d=i.Kc();d.Ob();)if(l=d.Pb(),!Czt(this,l))return!1;return!0},E.wj=function(i){var l,d,g;if($e(i,15)&&(g=v(i,15),g.gc()==Uc(this.a).i)){for(l=g.Kc(),d=new mr(this);l.Ob();)if(Ze(l.Pb())!==Ze(wr(d)))return!1;return!0}return!1},E.yj=function(){var i,l,d,g,y;for(d=1,l=new mr(Uc(this.a));l.e!=l.i.gc();)i=v(wr(l),89),g=(y=i.c,$e(y,90)?v(y,29):(Pn(),n0)),d=31*d+(g?vE(g):0);return d},E.zj=function(i){var l,d,g,y;for(g=0,d=new mr(Uc(this.a));d.e!=d.i.gc();){if(l=v(wr(d),89),Ze(i)===Ze((y=l.c,$e(y,90)?v(y,29):(Pn(),n0))))return g;++g}return-1},E.Aj=function(){return Uc(this.a).i==0},E.Bj=function(){return null},E.Ej=function(){return Uc(this.a).i},E.Fj=function(){var i,l,d,g,y,x;for(x=Uc(this.a).i,y=st(zs,Yn,1,x,5,1),d=0,l=new mr(Uc(this.a));l.e!=l.i.gc();)i=v(wr(l),89),y[d++]=(g=i.c,$e(g,90)?v(g,29):(Pn(),n0));return y},E.Gj=function(i){var l,d,g,y,x,T,R;for(R=Uc(this.a).i,i.length<R&&(y=Iz(cd(i).c,R),i=y),i.length>R&&Ga(i,R,null),g=0,d=new mr(Uc(this.a));d.e!=d.i.gc();)l=v(wr(d),89),x=(T=l.c,$e(T,90)?v(T,29):(Pn(),n0)),Ga(i,g++,x);return i},E.Hj=function(){var i,l,d,g,y;for(y=new qb,y.a+="[",i=Uc(this.a),l=0,g=Uc(this.a).i;l<g;)bl(y,XL((d=v(ze(i,l),89).c,$e(d,90)?v(d,29):(Pn(),n0)))),++l<g&&(y.a+=Xo);return y.a+="]",y.a},E.Jj=function(i){},E.Lj=function(){return 10},E.kl=function(){return!0},E.Mj=function(){return!1},E.ll=function(){return!1},E.ml=function(){return!1},E.nl=function(){return!0},E.al=function(){return!1},E.ol=function(){return!0},E.fk=function(i){return $e(i,90)},E.Qj=function(){return Z0r(this.a)},E.Si=function(){return!0},E.Yi=function(){return!0},K(tr,"EClassImpl/8",1171),H(1172,2062,EI,Bkt),E.fd=function(i){return Nz(this.a,i)},E.gc=function(){return Uc(this.a.a).i},K(tr,"EClassImpl/8/1",1172),H(1173,506,hg,USt),E.aj=function(i){return st(v1,Yn,142,i,0,1)},E.Yi=function(){return!1},K(tr,"EClassImpl/9",1173),H(1160,49,dBe,A6t),K(tr,"EClassImpl/MyHashSet",1160),H(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},CK),E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return this.ik();case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A;case 8:return Qn(),!!(this.Bb&256)}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!WE(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return;case 8:kZ(this,Vt(Ht(l)));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),ihn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return;case 8:kZ(this,!0);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){ay((dh(),ko),this).xe(),this.Bb|=1},E.ok=function(){var i,l,d;if(!this.c&&(i=ZVt(Cd(this)),!i.dc()))for(d=i.Kc();d.Ob();)l=ai(d.Pb()),lM(this,l)&&Qyr(this);return this.b},E.ik=function(){var i;if(!this.e){i=null;try{i=WE(this)}catch(l){if(l=Da(l),!$e(l,103))throw _e(l)}this.d=null,i&&i.i&1&&(i==Wh?this.d=(Qn(),a2):i==Wr?this.d=Nt(0):i==g3?this.d=new sU(0):i==ao?this.d=0:i==C2?this.d=Zm(0):i==lC?this.d=V8(0):i==bh?this.d=Cz(0):this.d=Lz(0)),this.e=!0}return this.d},E.nk=function(){return(this.Bb&256)!=0},E.rl=function(i){i&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},E.gl=function(i){B$t(this,i),this.rl(i)},E.hl=function(i){this.C=i,this.e=!1},E.Ib=function(){var i;return this.Db&64?DZ(this):(i=new Ff(DZ(this)),i.a+=" (serializable: ",Hb(i,(this.Bb&256)!=0),i.a+=")",i.a)},E.c=!1,E.d=null,E.e=!1,K(tr,"EDataTypeImpl",577),H(469,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,469:1,158:1,119:1,120:1,691:1},k6t),E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return tLe(this);case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A;case 8:return Qn(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new vt(hb,this,9,5)),this.a}return lf(this,i-kr((Pn(),x2)),qn((g=v(rr(this,16),29),g||x2),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d);case 9:return!this.a&&(this.a=new vt(hb,this,9,5)),bu(this.a,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),x2)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),x2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d);case 9:return!this.a&&(this.a=new vt(hb,this,9,5)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),x2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),x2)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!WE(this);case 4:return!!tLe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return sf(this,i-kr((Pn(),x2)),qn((l=v(rr(this,16),29),l||x2),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return;case 8:kZ(this,Vt(Ht(l)));return;case 9:!this.a&&(this.a=new vt(hb,this,9,5)),Gr(this.a),!this.a&&(this.a=new vt(hb,this,9,5)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),x2)),qn((d=v(rr(this,16),29),d||x2),i),l)},E.ii=function(){return Pn(),x2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return;case 8:kZ(this,!0);return;case 9:!this.a&&(this.a=new vt(hb,this,9,5)),Gr(this.a);return}hf(this,i-kr((Pn(),x2)),qn((l=v(rr(this,16),29),l||x2),i))},E.pi=function(){var i,l;if(this.a)for(i=0,l=this.a.i;i<l;++i)UU(ze(this.a,i));ay((dh(),ko),this).xe(),this.Bb|=1},E.ik=function(){return tLe(this)},E.fk=function(i){return i!=null},E.rl=function(i){},K(tr,"EEnumImpl",469),H(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},Jkt),E.xe=function(){return this.zb},E.Ah=function(i){return Eqt(this,i)},E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Nt(this.d);case 3:return this.b?this.b:this.a;case 4:return y=this.c,y??this.zb;case 5:return this.Db>>16==5?v(this.Cb,685):null}return lf(this,i-kr((Pn(),Ry)),qn((g=v(rr(this,16),29),g||Ry),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 5:return this.Cb&&(d=(y=this.Db>>16,y>=0?Eqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,5,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Ry)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Ry)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 5:return Od(this,null,5,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ry)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ry)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&v(this.Cb,685))}return sf(this,i-kr((Pn(),Ry)),qn((l=v(rr(this,16),29),l||Ry),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:zfe(this,v(l,17).a);return;case 3:vVt(this,v(l,2039));return;case 4:qfe(this,ai(l));return}df(this,i-kr((Pn(),Ry)),qn((d=v(rr(this,16),29),d||Ry),i),l)},E.ii=function(){return Pn(),Ry},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:zfe(this,0);return;case 3:vVt(this,null);return;case 4:qfe(this,null);return}hf(this,i-kr((Pn(),Ry)),qn((l=v(rr(this,16),29),l||Ry),i))},E.Ib=function(){var i;return i=this.c,i??this.zb},E.b=null,E.c=null,E.d=0,K(tr,"EEnumLiteralImpl",582);var iIr=$a(tr,"EFactoryImpl/InternalEDateTimeFormat");H(499,1,{2114:1},oU),K(tr,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),H(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},iE),E.Ch=function(i,l,d){var g;return d=Od(this,i,l,d),this.e&&$e(i,179)&&(g=gJ(this,this.e),g!=this.c&&(d=bI(this,g,d))),d},E.Lh=function(i,l,d){var g;switch(i){case 0:return this.f;case 1:return!this.d&&(this.d=new gs(pl,this,1)),this.d;case 2:return l?kJ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return l?t1e(this):this.a}return lf(this,i-kr((Pn(),Ix)),qn((g=v(rr(this,16),29),g||Ix),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return fzt(this,null,d);case 1:return!this.d&&(this.d=new gs(pl,this,1)),Ko(this.d,i,d);case 3:return pzt(this,null,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ix)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ix)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return sf(this,i-kr((Pn(),Ix)),qn((l=v(rr(this,16),29),l||Ix),i))},E.bi=function(i,l){var d;switch(i){case 0:zqt(this,v(l,89));return;case 1:!this.d&&(this.d=new gs(pl,this,1)),Gr(this.d),!this.d&&(this.d=new gs(pl,this,1)),Ka(this.d,v(l,16));return;case 3:LDe(this,v(l,89));return;case 4:ZDe(this,v(l,850));return;case 5:x8(this,v(l,142));return}df(this,i-kr((Pn(),Ix)),qn((d=v(rr(this,16),29),d||Ix),i),l)},E.ii=function(){return Pn(),Ix},E.ki=function(i){var l;switch(i){case 0:zqt(this,null);return;case 1:!this.d&&(this.d=new gs(pl,this,1)),Gr(this.d);return;case 3:LDe(this,null);return;case 4:ZDe(this,null);return;case 5:x8(this,null);return}hf(this,i-kr((Pn(),Ix)),qn((l=v(rr(this,16),29),l||Ix),i))},E.Ib=function(){var i;return i=new Ed(T0(this)),i.a+=" (expression: ",cpe(this,i),i.a+=")",i.a};var DKe;K(tr,"EGenericTypeImpl",248),H(2067,2062,Pee),E.Gi=function(i,l){jNt(this,i,l)},E.Wk=function(i,l){return jNt(this,this.gc(),i),l},E.$i=function(i){return gf(this.pj(),i)},E.Ii=function(){return this.Ji()},E.pj=function(){return new zkt(this)},E.Ji=function(){return this.Ki(0)},E.Ki=function(i){return this.pj().fd(i)},E.Xk=function(i,l){return f4(this,i,!0),l},E.Ti=function(i,l){var d,g;return g=d1e(this,l),d=this.fd(i),d.Rb(g),g},E.Ui=function(i,l){var d;f4(this,l,!0),d=this.fd(i),d.Rb(l)},K(Ca,"AbstractSequentialInternalEList",2067),H(496,2067,Pee,FU),E.$i=function(i){return gf(this.pj(),i)},E.Ii=function(){return this.b==null?(Yb(),Yb(),TH):this.sl()},E.pj=function(){return new dIt(this.a,this.b)},E.Ji=function(){return this.b==null?(Yb(),Yb(),TH):this.sl()},E.Ki=function(i){var l,d;if(this.b==null){if(i<0||i>1)throw _e(new Sl(FM+i+", size=0"));return Yb(),Yb(),TH}for(d=this.sl(),l=0;l<i;++l)vZ(d);return d},E.dc=function(){var i,l,d,g,y,x;if(this.b!=null){for(d=0;d<this.b.length;++d)if(i=this.b[d],!this.vl()||this.a.Xh(i)){if(x=this.a.Nh(i,!1),al(),v(i,69).xk()){for(l=v(x,160),g=0,y=l.gc();g<y;++g)if(wLt(l.Tl(g))&&l.Ul(g)!=null)return!1}else if(i.Jk()){if(!v(x,16).dc())return!1}else if(x!=null)return!1}}return!0},E.Kc=function(){return E9e(this)},E.fd=function(i){var l,d;if(this.b==null){if(i!=0)throw _e(new Sl(FM+i+", size=0"));return Yb(),Yb(),TH}for(d=this.ul()?this.tl():this.sl(),l=0;l<i;++l)vZ(d);return d},E.Ti=function(i,l){throw _e(new ri)},E.Ui=function(i,l){throw _e(new ri)},E.sl=function(){return new NX(this.a,this.b)},E.tl=function(){return new q8e(this.a,this.b)},E.ul=function(){return!0},E.gc=function(){var i,l,d,g,y,x,T;if(y=0,this.b!=null){for(d=0;d<this.b.length;++d)if(i=this.b[d],!this.vl()||this.a.Xh(i))if(T=this.a.Nh(i,!1),al(),v(i,69).xk())for(l=v(T,160),g=0,x=l.gc();g<x;++g)wLt(l.Tl(g))&&l.Ul(g)!=null&&++y;else i.Jk()?y+=v(T,16).gc():T!=null&&++y}return y},E.vl=function(){return!0};var j2e;K(Ca,"EContentsEList",496),H(1177,496,Pee,NNt),E.sl=function(){return new LNt(this.a,this.b)},E.tl=function(){return new ONt(this.a,this.b)},E.vl=function(){return!1},K(tr,"ENamedElementImpl/1",1177),H(287,1,Bee,NX),E.Nb=function(i){xo(this,i)},E.Rb=function(i){throw _e(new ri)},E.wl=function(i){if(this.g!=0||this.e)throw _e(new Tl("Iterator already in use or already filtered"));this.e=i},E.Ob=function(){var i,l,d,g,y,x;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?!DHt(this,this.p):!xVt(this))){for(;this.d<this.c.length;)if(l=this.c[this.d++],(!this.e||l.pk()!=CN||l.Lj()!=0)&&(!this.vl()||this.b.Xh(l))){if(x=this.b.Nh(l,this.ul()),this.f=(al(),v(l,69).xk()),this.f||l.Jk()){if(this.ul()?(g=v(x,15),this.k=g):(g=v(x,71),this.k=this.j=g),$e(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?DHt(this,this.p):xVt(this))return y=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=3,!0}else if(x!=null)return this.k=null,this.p=null,d=x,this.i=d,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return y=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=3,!0}},E.Sb=function(){var i,l,d,g,y,x;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?!MHt(this,this.p):!YHt(this))){for(;this.d>0;)if(l=this.c[--this.d],(!this.e||l.pk()!=CN||l.Lj()!=0)&&(!this.vl()||this.b.Xh(l))){if(x=this.b.Nh(l,this.ul()),this.f=(al(),v(l,69).xk()),this.f||l.Jk()){if(this.ul()?(g=v(x,15),this.k=g):(g=v(x,71),this.k=this.j=g),$e(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?MHt(this,this.p):YHt(this))return y=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=-3,!0}else if(x!=null)return this.k=null,this.p=null,d=x,this.i=d,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return y=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=-3,!0}},E.Pb=function(){return vZ(this)},E.Tb=function(){return this.a},E.Ub=function(){var i;if(this.g<-1||this.Sb())return--this.a,this.g=0,i=this.i,this.Sb(),i;throw _e(new ec)},E.Vb=function(){return this.a-1},E.Qb=function(){throw _e(new ri)},E.ul=function(){return!1},E.Wb=function(i){throw _e(new ri)},E.vl=function(){return!0},E.a=0,E.d=0,E.f=!1,E.g=0,E.n=0,E.o=0;var TH;K(Ca,"EContentsEList/FeatureIteratorImpl",287),H(711,287,Bee,q8e),E.ul=function(){return!0},K(Ca,"EContentsEList/ResolvingFeatureIteratorImpl",711),H(1178,711,Bee,ONt),E.vl=function(){return!1},K(tr,"ENamedElementImpl/1/1",1178),H(1179,287,Bee,LNt),E.vl=function(){return!1},K(tr,"ENamedElementImpl/1/2",1179),H(39,152,oq,i4,dfe,js,Afe,Vm,E0,n9e,dMt,r9e,fMt,_Oe,pMt,s9e,gMt,wOe,mMt,i9e,bMt,oD,vz,jde,a9e,yMt,EOe,vMt),E.Kj=function(){return $Oe(this)},E.Rj=function(){var i;return i=$Oe(this),i?i.ik():null},E.hj=function(i){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,i)},E.jj=function(){return this.c},E.Sj=function(){var i;return i=$Oe(this),i?i.tk():!1},E.b=-1,K(tr,"ENotificationImpl",39),H(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Oue),E.Ah=function(i){return Tqt(this,i)},E.Lh=function(i,l,d){var g,y,x;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),x=this.t,x>1||x==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?v(this.Cb,29):null;case 11:return!this.d&&(this.d=new sh(Mu,this,11)),this.d;case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),this.c;case 13:return!this.a&&(this.a=new qU(this,this)),this.a;case 14:return Uh(this)}return lf(this,i-kr((Pn(),Iy)),qn((g=v(rr(this,16),29),g||Iy),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 10:return this.Cb&&(d=(y=this.Db>>16,y>=0?Tqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,10,d);case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),bu(this.c,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Iy)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Iy)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 10:return Od(this,null,10,d);case 11:return!this.d&&(this.d=new sh(Mu,this,11)),Ko(this.d,i,d);case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),Ko(this.c,i,d);case 14:return Ko(Uh(this),i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Iy)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Iy)),i,d)},E.Wh=function(i){var l,d,g;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return g=this.t,g>1||g==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return!!(this.Db>>16==10&&v(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Uh(this.a.a).i!=0&&!(this.b&&J0e(this.b));case 14:return!!this.b&&J0e(this.b)}return sf(this,i-kr((Pn(),Iy)),qn((l=v(rr(this,16),29),l||Iy),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:c4(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 11:!this.d&&(this.d=new sh(Mu,this,11)),Gr(this.d),!this.d&&(this.d=new sh(Mu,this,11)),Ka(this.d,v(l,16));return;case 12:!this.c&&(this.c=new vt(Rx,this,12,10)),Gr(this.c),!this.c&&(this.c=new vt(Rx,this,12,10)),Ka(this.c,v(l,16));return;case 13:!this.a&&(this.a=new qU(this,this)),pM(this.a),!this.a&&(this.a=new qU(this,this)),Ka(this.a,v(l,16));return;case 14:Gr(Uh(this)),Ka(Uh(this),v(l,16));return}df(this,i-kr((Pn(),Iy)),qn((d=v(rr(this,16),29),d||Iy),i),l)},E.ii=function(){return Pn(),Iy},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 11:!this.d&&(this.d=new sh(Mu,this,11)),Gr(this.d);return;case 12:!this.c&&(this.c=new vt(Rx,this,12,10)),Gr(this.c);return;case 13:this.a&&pM(this.a);return;case 14:this.b&&Gr(this.b);return}hf(this,i-kr((Pn(),Iy)),qn((l=v(rr(this,16),29),l||Iy),i))},E.pi=function(){var i,l;if(this.c)for(i=0,l=this.c.i;i<l;++i)UU(ze(this.c,i));Gf(this),this.Bb|=1},K(tr,"EOperationImpl",411),H(513,756,MUe,qU),E.qj=function(i,l){Nor(this,i,v(l,142))},E.rj=function(i){bsr(this,v(i,142))},E.xj=function(i){var l,d;return l=v(ze(Uh(this.a),i),89),d=l.c,d||(Pn(),dp)},E.Cj=function(i){var l,d;return l=v(x4(Uh(this.a),i),89),d=l.c,d||(Pn(),dp)},E.Dj=function(i,l){return v2r(this,i,v(l,142))},E.Li=function(){return!1},E.Ij=function(i,l,d,g,y){return null},E.sj=function(){return new Fkt(this)},E.tj=function(){Gr(Uh(this.a))},E.uj=function(i){return Izt(this,i)},E.vj=function(i){var l,d;for(d=i.Kc();d.Ob();)if(l=d.Pb(),!Izt(this,l))return!1;return!0},E.wj=function(i){var l,d,g;if($e(i,15)&&(g=v(i,15),g.gc()==Uh(this.a).i)){for(l=g.Kc(),d=new mr(this);l.Ob();)if(Ze(l.Pb())!==Ze(wr(d)))return!1;return!0}return!1},E.yj=function(){var i,l,d,g,y;for(d=1,l=new mr(Uh(this.a));l.e!=l.i.gc();)i=v(wr(l),89),g=(y=i.c,y||(Pn(),dp)),d=31*d+(g?ma(g):0);return d},E.zj=function(i){var l,d,g,y;for(g=0,d=new mr(Uh(this.a));d.e!=d.i.gc();){if(l=v(wr(d),89),Ze(i)===Ze((y=l.c,y||(Pn(),dp))))return g;++g}return-1},E.Aj=function(){return Uh(this.a).i==0},E.Bj=function(){return null},E.Ej=function(){return Uh(this.a).i},E.Fj=function(){var i,l,d,g,y,x;for(x=Uh(this.a).i,y=st(zs,Yn,1,x,5,1),d=0,l=new mr(Uh(this.a));l.e!=l.i.gc();)i=v(wr(l),89),y[d++]=(g=i.c,g||(Pn(),dp));return y},E.Gj=function(i){var l,d,g,y,x,T,R;for(R=Uh(this.a).i,i.length<R&&(y=Iz(cd(i).c,R),i=y),i.length>R&&Ga(i,R,null),g=0,d=new mr(Uh(this.a));d.e!=d.i.gc();)l=v(wr(d),89),x=(T=l.c,T||(Pn(),dp)),Ga(i,g++,x);return i},E.Hj=function(){var i,l,d,g,y;for(y=new qb,y.a+="[",i=Uh(this.a),l=0,g=Uh(this.a).i;l<g;)bl(y,XL((d=v(ze(i,l),89).c,d||(Pn(),dp)))),++l<g&&(y.a+=Xo);return y.a+="]",y.a},E.Jj=function(i){},E.Lj=function(){return 13},E.kl=function(){return!0},E.Mj=function(){return!1},E.ll=function(){return!1},E.ml=function(){return!1},E.nl=function(){return!0},E.al=function(){return!1},E.ol=function(){return!0},E.fk=function(i){return $e(i,142)},E.Qj=function(){return J0r(this.a)},E.Si=function(){return!0},E.Yi=function(){return!0},K(tr,"EOperationImpl/1",513),H(1376,2062,EI,Fkt),E.fd=function(i){return Nz(this.a,i)},E.gc=function(){return Uh(this.a.a).i},K(tr,"EOperationImpl/1/1",1376),H(1377,555,Xl,M9t),E.Ti=function(i,l){var d,g;return d=v($D(this,i,l),89),id(this.e)&&$R(this,new vz(this.a,7,(Pn(),ohn),Nt(l),(g=d.c,g||dp),i)),d},E.Uj=function(i,l){return Myr(this,v(i,89),l)},E.Vj=function(i,l){return Dyr(this,v(i,89),l)},E.Wj=function(i,l,d){return O2r(this,v(i,89),v(l,89),d)},E.Ij=function(i,l,d,g,y){switch(i){case 3:return pD(this,i,l,d,g,this.i>1);case 5:return pD(this,i,l,d,g,this.i-v(d,15).gc()>0);default:return new Vm(this.e,i,this.c,l,d,g,!0)}},E.Tj=function(){return!0},E.Qj=function(){return J0e(this)},E.Gk=function(){Gr(this)},K(tr,"EOperationImpl/2",1377),H(507,1,{2037:1,507:1},K8t),K(tr,"EPackageImpl/1",507),H(14,83,Xl,vt),E.il=function(){return this.d},E.jl=function(){return this.b},E.ml=function(){return!0},E.b=0,K(Ca,"EObjectContainmentWithInverseEList",14),H(365,14,Xl,bk),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentWithInverseEList/Resolving",365),H(308,365,Xl,ZS),E.Ni=function(){this.a.tb=null},K(tr,"EPackageImpl/2",308),H(1278,1,{},drr),K(tr,"EPackageImpl/3",1278),H(733,45,p5,V7e),E._b=function(i){return ro(i)?Kde(this,i):!!ol(this.f,i)},K(tr,"EPackageRegistryImpl",733),H(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Lue),E.Ah=function(i){return Cqt(this,i)},E.Lh=function(i,l,d){var g,y,x;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),x=this.t,x>1||x==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?v(this.Cb,62):null}return lf(this,i-kr((Pn(),f3)),qn((g=v(rr(this,16),29),g||f3),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 10:return this.Cb&&(d=(y=this.Db>>16,y>=0?Cqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,10,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),f3)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),f3)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 10:return Od(this,null,10,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),f3)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),f3)),i,d)},E.Wh=function(i){var l,d,g;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return g=this.t,g>1||g==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return!!(this.Db>>16==10&&v(this.Cb,62))}return sf(this,i-kr((Pn(),f3)),qn((l=v(rr(this,16),29),l||f3),i))},E.ii=function(){return Pn(),f3},K(tr,"EParameterImpl",518),H(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},W8e),E.Lh=function(i,l,d){var g,y,x,T;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),T=this.t,T>1||T==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this);case 18:return Qn(),!!(this.Bb&Sc);case 19:return Qn(),x=sl(this),!!(x&&x.Bb&Sc);case 20:return Qn(),!!(this.Bb&el);case 21:return l?sl(this):this.b;case 22:return l?V9e(this):qPt(this);case 23:return!this.a&&(this.a=new BT(u3,this,23)),this.a}return lf(this,i-kr((Pn(),iC)),qn((g=v(rr(this,16),29),g||iC),i),l,d)},E.Wh=function(i){var l,d,g,y;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return y=this.t,y>1||y==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this);case 18:return(this.Bb&Sc)!=0;case 19:return g=sl(this),!!g&&(g.Bb&Sc)!=0;case 20:return(this.Bb&el)==0;case 21:return!!this.b;case 22:return!!qPt(this);case 23:return!!this.a&&this.a.i!=0}return sf(this,i-kr((Pn(),iC)),qn((l=v(rr(this,16),29),l||iC),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:c4(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return;case 18:Zfr(this,Vt(Ht(l)));return;case 20:xLe(this,Vt(Ht(l)));return;case 21:w9e(this,v(l,19));return;case 23:!this.a&&(this.a=new BT(u3,this,23)),Gr(this.a),!this.a&&(this.a=new BT(u3,this,23)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),iC)),qn((d=v(rr(this,16),29),d||iC),i),l)},E.ii=function(){return Pn(),iC},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return;case 18:ELe(this,!1),$e(this.Cb,90)&&_4($h(v(this.Cb,90)),2);return;case 20:xLe(this,!0);return;case 21:w9e(this,null);return;case 23:!this.a&&(this.a=new BT(u3,this,23)),Gr(this.a);return}hf(this,i-kr((Pn(),iC)),qn((l=v(rr(this,16),29),l||iC),i))},E.pi=function(){V9e(this),d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.uk=function(){return sl(this)},E._k=function(){var i;return i=sl(this),!!i&&(i.Bb&Sc)!=0},E.al=function(){return(this.Bb&Sc)!=0},E.bl=function(){return(this.Bb&el)!=0},E.Yk=function(i,l){return this.c=null,dLe(this,i,l)},E.Ib=function(){var i;return this.Db&64?TJ(this):(i=new Ff(TJ(this)),i.a+=" (containment: ",Hb(i,(this.Bb&Sc)!=0),i.a+=", resolveProxies: ",Hb(i,(this.Bb&el)!=0),i.a+=")",i.a)},K(tr,"EReferenceImpl",102),H(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},zSt),E.Fb=function(i){return this===i},E.ld=function(){return this.b},E.md=function(){return this.c},E.Hb=function(){return vE(this)},E.Di=function(i){rhr(this,ai(i))},E.nd=function(i){return Gur(this,ai(i))},E.Lh=function(i,l,d){var g;switch(i){case 0:return this.b;case 1:return this.c}return lf(this,i-kr((Pn(),nl)),qn((g=v(rr(this,16),29),g||nl),i),l,d)},E.Wh=function(i){var l;switch(i){case 0:return this.b!=null;case 1:return this.c!=null}return sf(this,i-kr((Pn(),nl)),qn((l=v(rr(this,16),29),l||nl),i))},E.bi=function(i,l){var d;switch(i){case 0:ihr(this,ai(l));return;case 1:y9e(this,ai(l));return}df(this,i-kr((Pn(),nl)),qn((d=v(rr(this,16),29),d||nl),i),l)},E.ii=function(){return Pn(),nl},E.ki=function(i){var l;switch(i){case 0:b9e(this,null);return;case 1:y9e(this,null);return}hf(this,i-kr((Pn(),nl)),qn((l=v(rr(this,16),29),l||nl),i))},E.Bi=function(){var i;return this.a==-1&&(i=this.b,this.a=i==null?0:ry(i)),this.a},E.Ci=function(i){this.a=i},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Ff(T0(this)),i.a+=" (key: ",bl(i,this.b),i.a+=", value: ",bl(i,this.c),i.a+=")",i.a)},E.a=-1,E.b=null,E.c=null;var _c=K(tr,"EStringToStringMapEntryImpl",561),fhn=$a(Ca,"FeatureMap/Entry/Internal");H(576,1,Fee),E.xl=function(i){return this.yl(v(i,54))},E.yl=function(i){return this.xl(i)},E.Fb=function(i){var l,d;return this===i?!0:$e(i,76)?(l=v(i,76),l.Lk()==this.c?(d=this.md(),d==null?l.md()==null:Yi(d,l.md())):!1):!1},E.Lk=function(){return this.c},E.Hb=function(){var i;return i=this.md(),ma(this.c)^(i==null?0:ma(i))},E.Ib=function(){var i,l;return i=this.c,l=Cd(i.qk()).yi(),i.xe(),(l!=null&&l.length!=0?l+":"+i.xe():i.xe())+"="+this.md()},K(tr,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),H(791,576,Fee,rIe),E.yl=function(i){return new rIe(this.c,i)},E.md=function(){return this.a},E.zl=function(i,l,d){return zmr(this,i,this.a,l,d)},E.Al=function(i,l,d){return Gmr(this,i,this.a,l,d)},K(tr,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),H(1350,1,{},X8t),E.yk=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Yl(this.a).Fk(g)},E.zk=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Pl(this.a,g,y)},E.Ak=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Ql(this.a,g,y)},E.Bk=function(i,l,d){var g;return g=v(v8(i,this.b),220),g.Yl(this.a).Qj()},E.Ck=function(i,l,d,g){var y;y=v(v8(i,this.b),220),y.Yl(this.a).Wb(g)},E.Dk=function(i,l,d){return v(v8(i,this.b),220).Yl(this.a)},E.Ek=function(i,l,d){var g;g=v(v8(i,this.b),220),g.Yl(this.a).Gk()},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),H(91,1,{},Wb,A_,Xb,O_),E.yk=function(i,l,d,g,y){var x;if(x=l.li(d),x==null&&l.mi(d,x=BJ(this,i)),!y)switch(this.e){case 50:case 41:return v(x,597).bk();case 40:return v(x,220).Vl()}return x},E.zk=function(i,l,d,g,y){var x,T;return T=l.li(d),T==null&&l.mi(d,T=BJ(this,i)),x=v(T,71).Wk(g,y),x},E.Ak=function(i,l,d,g,y){var x;return x=l.li(d),x!=null&&(y=v(x,71).Xk(g,y)),y},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null&&v(g,79).Qj()},E.Ck=function(i,l,d,g){var y;y=v(l.li(d),79),!y&&l.mi(d,y=BJ(this,i)),y.Wb(g)},E.Dk=function(i,l,d){var g,y;return y=l.li(d),y==null&&l.mi(d,y=BJ(this,i)),$e(y,79)?v(y,79):(g=v(l.li(d),15),new $kt(g))},E.Ek=function(i,l,d){var g;g=v(l.li(d),79),!g&&l.mi(d,g=BJ(this,i)),g.Gk()},E.b=0,E.e=0,K(tr,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),H(512,1,{}),E.zk=function(i,l,d,g,y){throw _e(new ri)},E.Ak=function(i,l,d,g,y){throw _e(new ri)},E.Dk=function(i,l,d){return new WLt(this,i,l,d)};var lm;K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),H(1367,1,Wme,WLt),E.Fk=function(i){return this.a.yk(this.c,this.d,this.b,i,!0)},E.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},E.Wb=function(i){this.a.Ck(this.c,this.d,this.b,i)},E.Gk=function(){this.a.Ek(this.c,this.d,this.b)},E.b=0,K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),H(784,512,{},VNe),E.yk=function(i,l,d,g,y){return K1e(i,i.Ph(),i.Fh())==this.b?this.bl()&&g?M1e(i):i.Ph():null},E.zk=function(i,l,d,g,y){var x,T;return i.Ph()&&(y=(x=i.Fh(),x>=0?i.Ah(y):i.Ph().Th(i,-1-x,null,y))),T=Ma(i.Dh(),this.e),i.Ch(g,T,y)},E.Ak=function(i,l,d,g,y){var x;return x=Ma(i.Dh(),this.e),i.Ch(null,x,y)},E.Bk=function(i,l,d){var g;return g=Ma(i.Dh(),this.e),!!i.Ph()&&i.Fh()==g},E.Ck=function(i,l,d,g){var y,x,T,R,O;if(g!=null&&!J1e(this.a,g))throw _e(new UR($ee+($e(g,58)?ODe(v(g,58).Dh()):ZOe(cd(g)))+Uee+this.a+"'"));if(y=i.Ph(),T=Ma(i.Dh(),this.e),Ze(g)!==Ze(y)||i.Fh()!=T&&g!=null){if(tI(i,v(g,58)))throw _e(new ar(PM+i.Ib()));O=null,y&&(O=(x=i.Fh(),x>=0?i.Ah(O):i.Ph().Th(i,-1-x,null,O))),R=v(g,54),R&&(O=R.Rh(i,Ma(R.Dh(),this.b),null,O)),O=i.Ch(R,T,O),O&&O.oj()}else i.vh()&&i.wh()&&Vi(i,new js(i,1,T,g,g))},E.Ek=function(i,l,d){var g,y,x,T;g=i.Ph(),g?(T=(y=i.Fh(),y>=0?i.Ah(null):i.Ph().Th(i,-1-y,null,null)),x=Ma(i.Dh(),this.e),T=i.Ch(null,x,T),T&&T.oj()):i.vh()&&i.wh()&&Vi(i,new oD(i,1,this.e,null,null))},E.bl=function(){return!1},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),H(1351,784,{},FOt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),H(574,512,{}),E.yk=function(i,l,d,g,y){var x;return x=l.li(d),x==null?this.b:Ze(x)===Ze(lm)?null:x},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null&&(Ze(g)===Ze(lm)||!Yi(g,this.b))},E.Ck=function(i,l,d,g){var y,x;i.vh()&&i.wh()?(y=(x=l.li(d),x==null?this.b:Ze(x)===Ze(lm)?null:x),g==null?this.c!=null?(l.mi(d,null),g=this.b):this.b!=null?l.mi(d,lm):l.mi(d,null):(this.Bl(g),l.mi(d,g)),Vi(i,this.d.Cl(i,1,this.e,y,g))):g==null?this.c!=null?l.mi(d,null):this.b!=null?l.mi(d,lm):l.mi(d,null):(this.Bl(g),l.mi(d,g))},E.Ek=function(i,l,d){var g,y;i.vh()&&i.wh()?(g=(y=l.li(d),y==null?this.b:Ze(y)===Ze(lm)?null:y),l.ni(d),Vi(i,this.d.Cl(i,1,this.e,g,this.b))):l.ni(d)},E.Bl=function(i){throw _e(new Xkt)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),H(S5,1,{},GSt),E.Cl=function(i,l,d,g,y){return new oD(i,l,d,g,y)},E.Dl=function(i,l,d,g,y,x){return new jde(i,l,d,g,y,x)};var MKe,PKe,BKe,FKe,$Ke,UKe,zKe,W2e,GKe;K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",S5),H(1368,S5,{},qSt),E.Cl=function(i,l,d,g,y){return new EOe(i,l,d,Vt(Ht(g)),Vt(Ht(y)))},E.Dl=function(i,l,d,g,y,x){return new vMt(i,l,d,Vt(Ht(g)),Vt(Ht(y)),x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),H(1369,S5,{},HSt),E.Cl=function(i,l,d,g,y){return new n9e(i,l,d,v(g,222).a,v(y,222).a)},E.Dl=function(i,l,d,g,y,x){return new dMt(i,l,d,v(g,222).a,v(y,222).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),H(1370,S5,{},VSt),E.Cl=function(i,l,d,g,y){return new r9e(i,l,d,v(g,180).a,v(y,180).a)},E.Dl=function(i,l,d,g,y,x){return new fMt(i,l,d,v(g,180).a,v(y,180).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),H(1371,S5,{},YSt),E.Cl=function(i,l,d,g,y){return new _Oe(i,l,d,We(at(g)),We(at(y)))},E.Dl=function(i,l,d,g,y,x){return new pMt(i,l,d,We(at(g)),We(at(y)),x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),H(1372,S5,{},jSt),E.Cl=function(i,l,d,g,y){return new s9e(i,l,d,v(g,161).a,v(y,161).a)},E.Dl=function(i,l,d,g,y,x){return new gMt(i,l,d,v(g,161).a,v(y,161).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),H(1373,S5,{},WSt),E.Cl=function(i,l,d,g,y){return new wOe(i,l,d,v(g,17).a,v(y,17).a)},E.Dl=function(i,l,d,g,y,x){return new mMt(i,l,d,v(g,17).a,v(y,17).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),H(1374,S5,{},KSt),E.Cl=function(i,l,d,g,y){return new i9e(i,l,d,v(g,168).a,v(y,168).a)},E.Dl=function(i,l,d,g,y,x){return new bMt(i,l,d,v(g,168).a,v(y,168).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),H(1375,S5,{},XSt),E.Cl=function(i,l,d,g,y){return new a9e(i,l,d,v(g,191).a,v(y,191).a)},E.Dl=function(i,l,d,g,y,x){return new yMt(i,l,d,v(g,191).a,v(y,191).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),H(1353,574,{},KLt),E.Bl=function(i){if(!this.a.fk(i))throw _e(new UR($ee+cd(i)+Uee+this.a+"'"))},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),H(1354,574,{},P9t),E.Bl=function(i){},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),H(785,574,{}),E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null},E.Ck=function(i,l,d,g){var y,x;i.vh()&&i.wh()?(y=!0,x=l.li(d),x==null?(y=!1,x=this.b):Ze(x)===Ze(lm)&&(x=null),g==null?this.c!=null?(l.mi(d,null),g=this.b):l.mi(d,lm):(this.Bl(g),l.mi(d,g)),Vi(i,this.d.Dl(i,1,this.e,x,g,!y))):g==null?this.c!=null?l.mi(d,null):l.mi(d,lm):(this.Bl(g),l.mi(d,g))},E.Ek=function(i,l,d){var g,y;i.vh()&&i.wh()?(g=!0,y=l.li(d),y==null?(g=!1,y=this.b):Ze(y)===Ze(lm)&&(y=null),l.ni(d),Vi(i,this.d.Dl(i,2,this.e,y,this.b,g))):l.ni(d)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),H(1355,785,{},XLt),E.Bl=function(i){if(!this.a.fk(i))throw _e(new UR($ee+cd(i)+Uee+this.a+"'"))},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),H(1356,785,{},B9t),E.Bl=function(i){},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),H(410,512,{},QX),E.yk=function(i,l,d,g,y){var x,T,R,O,D;if(D=l.li(d),this.tk()&&Ze(D)===Ze(lm))return null;if(this.bl()&&g&&D!=null){if(R=v(D,54),R.Vh()&&(O=Hv(i,R),R!=O)){if(!J1e(this.a,O))throw _e(new UR($ee+cd(O)+Uee+this.a+"'"));l.mi(d,D=O),this.al()&&(x=v(O,54),T=R.Th(i,this.b?Ma(R.Dh(),this.b):-1-Ma(i.Dh(),this.e),null,null),!x.Ph()&&(T=x.Rh(i,this.b?Ma(x.Dh(),this.b):-1-Ma(i.Dh(),this.e),null,T)),T&&T.oj()),i.vh()&&i.wh()&&Vi(i,new oD(i,9,this.e,R,O))}return D}else return D},E.zk=function(i,l,d,g,y){var x,T;return T=l.li(d),Ze(T)===Ze(lm)&&(T=null),l.mi(d,g),this.Mj()?Ze(T)!==Ze(g)&&T!=null&&(x=v(T,54),y=x.Th(i,Ma(x.Dh(),this.b),null,y)):this.al()&&T!=null&&(y=v(T,54).Th(i,-1-Ma(i.Dh(),this.e),null,y)),i.vh()&&i.wh()&&(!y&&(y=new Av(4)),y.nj(new oD(i,1,this.e,T,g))),y},E.Ak=function(i,l,d,g,y){var x;return x=l.li(d),Ze(x)===Ze(lm)&&(x=null),l.ni(d),i.vh()&&i.wh()&&(!y&&(y=new Av(4)),this.tk()?y.nj(new oD(i,2,this.e,x,null)):y.nj(new oD(i,1,this.e,x,null))),y},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null},E.Ck=function(i,l,d,g){var y,x,T,R,O;if(g!=null&&!J1e(this.a,g))throw _e(new UR($ee+($e(g,58)?ODe(v(g,58).Dh()):ZOe(cd(g)))+Uee+this.a+"'"));O=l.li(d),R=O!=null,this.tk()&&Ze(O)===Ze(lm)&&(O=null),T=null,this.Mj()?Ze(O)!==Ze(g)&&(O!=null&&(y=v(O,54),T=y.Th(i,Ma(y.Dh(),this.b),null,T)),g!=null&&(y=v(g,54),T=y.Rh(i,Ma(y.Dh(),this.b),null,T))):this.al()&&Ze(O)!==Ze(g)&&(O!=null&&(T=v(O,54).Th(i,-1-Ma(i.Dh(),this.e),null,T)),g!=null&&(T=v(g,54).Rh(i,-1-Ma(i.Dh(),this.e),null,T))),g==null&&this.tk()?l.mi(d,lm):l.mi(d,g),i.vh()&&i.wh()?(x=new jde(i,1,this.e,O,g,this.tk()&&!R),T?(T.nj(x),T.oj()):Vi(i,x)):T&&T.oj()},E.Ek=function(i,l,d){var g,y,x,T,R;R=l.li(d),T=R!=null,this.tk()&&Ze(R)===Ze(lm)&&(R=null),x=null,R!=null&&(this.Mj()?(g=v(R,54),x=g.Th(i,Ma(g.Dh(),this.b),null,x)):this.al()&&(x=v(R,54).Th(i,-1-Ma(i.Dh(),this.e),null,x))),l.ni(d),i.vh()&&i.wh()?(y=new jde(i,this.tk()?2:1,this.e,R,null,T),x?(x.nj(y),x.oj()):Vi(i,y)):x&&x.oj()},E.Mj=function(){return!1},E.al=function(){return!1},E.bl=function(){return!1},E.tk=function(){return!1},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),H(575,410,{},Qhe),E.al=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),H(1359,575,{},MNt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),H(787,575,{},H8e),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),H(1361,787,{},PNt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),H(650,575,{},ude),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),H(1360,650,{},$Ot),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),H(788,650,{},IIe),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),H(1362,788,{},UOt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),H(651,410,{},V8e),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),H(1363,651,{},BNt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),H(789,651,{},kIe),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),H(1364,789,{},zOt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),H(1357,410,{},FNt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),H(786,410,{},RIe),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),H(1358,786,{},GOt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),H(790,576,Fee,CNe),E.yl=function(i){return new CNe(this.a,this.c,i)},E.md=function(){return this.b},E.zl=function(i,l,d){return $pr(this,i,this.b,d)},E.Al=function(i,l,d){return Upr(this,i,this.b,d)},K(tr,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),H(1365,1,Wme,$kt),E.Fk=function(i){return this.a},E.Qj=function(){return $e(this.a,97)?v(this.a,97).Qj():!this.a.dc()},E.Wb=function(i){this.a.$b(),this.a.Gc(v(i,15))},E.Gk=function(){$e(this.a,97)?v(this.a,97).Gk():this.a.$b()},K(tr,"EStructuralFeatureImpl/SettingMany",1365),H(1366,576,Fee,uPt),E.xl=function(i){return new ede((ca(),rB),this.b.ri(this.a,i))},E.md=function(){return null},E.zl=function(i,l,d){return d},E.Al=function(i,l,d){return d},K(tr,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),H(652,576,Fee,ede),E.xl=function(i){return new ede(this.c,i)},E.md=function(){return this.a},E.zl=function(i,l,d){return d},E.Al=function(i,l,d){return d},K(tr,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),H(403,506,hg,OR),E.aj=function(i){return st(Jf,Yn,29,i,0,1)},E.Yi=function(){return!1},K(tr,"ESuperAdapter/1",403),H(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},due),E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new rD(this,pl,this)),this.a}return lf(this,i-kr((Pn(),Nx)),qn((g=v(rr(this,16),29),g||Nx),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 2:return!this.a&&(this.a=new rD(this,pl,this)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Nx)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Nx)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return sf(this,i-kr((Pn(),Nx)),qn((l=v(rr(this,16),29),l||Nx),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:!this.a&&(this.a=new rD(this,pl,this)),Gr(this.a),!this.a&&(this.a=new rD(this,pl,this)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),Nx)),qn((d=v(rr(this,16),29),d||Nx),i),l)},E.ii=function(){return Pn(),Nx},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:!this.a&&(this.a=new rD(this,pl,this)),Gr(this.a);return}hf(this,i-kr((Pn(),Nx)),qn((l=v(rr(this,16),29),l||Nx),i))},K(tr,"ETypeParameterImpl",457),H(458,83,Xl,rD),E.Nj=function(i,l){return exr(this,v(i,89),l)},E.Oj=function(i,l){return txr(this,v(i,89),l)},K(tr,"ETypeParameterImpl/1",458),H(647,45,p5,Due),E.ec=function(){return new SK(this)},K(tr,"ETypeParameterImpl/2",647),H(570,J1,fh,SK),E.Fc=function(i){return uOt(this,v(i,89))},E.Gc=function(i){var l,d,g;for(g=!1,d=i.Kc();d.Ob();)l=v(d.Pb(),89),Ni(this.a,l,"")==null&&(g=!0);return g},E.$b=function(){xh(this.a)},E.Hc=function(i){return Tu(this.a,i)},E.Kc=function(){var i;return i=new P_(new b_(this.a).a),new TK(i)},E.Mc=function(i){return eBt(this,i)},E.gc=function(){return SL(this.a)},K(tr,"ETypeParameterImpl/2/1",570),H(571,1,io,TK),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(zE(this.a).ld(),89)},E.Ob=function(){return this.a.b},E.Qb=function(){cFt(this.a)},K(tr,"ETypeParameterImpl/2/1/1",571),H(1329,45,p5,R6t),E._b=function(i){return ro(i)?Kde(this,i):!!ol(this.f,i)},E.xc=function(i){var l,d;return l=ro(i)?Qc(this,i):Pl(ol(this.f,i)),$e(l,851)?(d=v(l,851),l=d.Kk(),Ni(this,v(i,241),l),l):l??(i==null?(Jue(),ghn):null)},K(tr,"EValidatorRegistryImpl",1329),H(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},QSt),E.ri=function(i,l){switch(i.hk()){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 l==null?null:Kl(l);case 25:return Qgr(l);case 27:return hgr(l);case 28:return dgr(l);case 29:return l==null?null:zIt(QP[0],v(l,206));case 41:return l==null?"":__(v(l,297));case 42:return Kl(l);case 50:return ai(l);default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;switch(i.G==-1&&(i.G=(re=Cd(i),re?uy(re.vi(),i):-1)),i.G){case 0:return d=new Nue,d;case 1:return l=new V6e,l;case 2:return g=new K6e,g;case 4:return y=new CK,y;case 5:return x=new k6t,x;case 6:return T=new Jkt,T;case 7:return R=new X6e,R;case 10:return D=new gK,D;case 11:return q=new Oue,q;case 12:return J=new iDt,J;case 13:return ae=new Lue,ae;case 14:return le=new W8e,le;case 17:return de=new zSt,de;case 18:return O=new iE,O;case 19:return Se=new due,Se;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){switch(i.hk()){case 20:return l==null?null:new mRe(l);case 21:return l==null?null:new Ov(l);case 23:case 22:return l==null?null:u2r(l);case 26:case 24:return l==null?null:Cz(Nd(l,-128,127)<<24>>24);case 25:return R3r(l);case 27:return Q_r(l);case 28:return Z_r(l);case 29:return wxr(l);case 32:case 31:return l==null?null:y4(l);case 38:case 37:return l==null?null:new L7e(l);case 40:case 39:return l==null?null:Nt(Nd(l,Po,qi));case 41:return null;case 42:return l==null,null;case 44:case 43:return l==null?null:Zm(PJ(l));case 49:case 48:return l==null?null:V8(Nd(l,zee,32767)<<16>>16);case 50:return l;default:throw _e(new ar(FI+i.xe()+lx))}},K(tr,"EcoreFactoryImpl",1349),H(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},kLt),E.gb=!1,E.hb=!1;var qKe,phn=!1;K(tr,"EcorePackageImpl",560),H(1234,1,{851:1},ZSt),E.Kk=function(){return eNt(),mhn},K(tr,"EcorePackageImpl/1",1234),H(1243,1,ki,JSt),E.fk=function(i){return $e(i,155)},E.gk=function(i){return st(wH,Yn,155,i,0,1)},K(tr,"EcorePackageImpl/10",1243),H(1244,1,ki,e4t),E.fk=function(i){return $e(i,197)},E.gk=function(i){return st($2e,Yn,197,i,0,1)},K(tr,"EcorePackageImpl/11",1244),H(1245,1,ki,t4t),E.fk=function(i){return $e(i,58)},E.gk=function(i){return st(_2,Yn,58,i,0,1)},K(tr,"EcorePackageImpl/12",1245),H(1246,1,ki,n4t),E.fk=function(i){return $e(i,411)},E.gk=function(i){return st(e0,DUe,62,i,0,1)},K(tr,"EcorePackageImpl/13",1246),H(1247,1,ki,r4t),E.fk=function(i){return $e(i,241)},E.gk=function(i){return st(y1,Yn,241,i,0,1)},K(tr,"EcorePackageImpl/14",1247),H(1248,1,ki,i4t),E.fk=function(i){return $e(i,518)},E.gk=function(i){return st(Rx,Yn,2116,i,0,1)},K(tr,"EcorePackageImpl/15",1248),H(1249,1,ki,a4t),E.fk=function(i){return $e(i,102)},E.gk=function(i){return st(h3,x5,19,i,0,1)},K(tr,"EcorePackageImpl/16",1249),H(1250,1,ki,s4t),E.fk=function(i){return $e(i,179)},E.gk=function(i){return st(Ju,x5,179,i,0,1)},K(tr,"EcorePackageImpl/17",1250),H(1251,1,ki,o4t),E.fk=function(i){return $e(i,481)},E.gk=function(i){return st(c3,Yn,481,i,0,1)},K(tr,"EcorePackageImpl/18",1251),H(1252,1,ki,l4t),E.fk=function(i){return $e(i,561)},E.gk=function(i){return st(_c,mJt,561,i,0,1)},K(tr,"EcorePackageImpl/19",1252),H(1235,1,ki,c4t),E.fk=function(i){return $e(i,331)},E.gk=function(i){return st(u3,x5,35,i,0,1)},K(tr,"EcorePackageImpl/2",1235),H(1253,1,ki,u4t),E.fk=function(i){return $e(i,248)},E.gk=function(i){return st(pl,LJt,89,i,0,1)},K(tr,"EcorePackageImpl/20",1253),H(1254,1,ki,h4t),E.fk=function(i){return $e(i,457)},E.gk=function(i){return st(Mu,Yn,850,i,0,1)},K(tr,"EcorePackageImpl/21",1254),H(1255,1,ki,d4t),E.fk=function(i){return HS(i)},E.gk=function(i){return st(rs,kt,485,i,8,1)},K(tr,"EcorePackageImpl/22",1255),H(1256,1,ki,f4t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(tr,"EcorePackageImpl/23",1256),H(1257,1,ki,p4t),E.fk=function(i){return $e(i,222)},E.gk=function(i){return st(d6,kt,222,i,0,1)},K(tr,"EcorePackageImpl/24",1257),H(1258,1,ki,g4t),E.fk=function(i){return $e(i,180)},E.gk=function(i){return st(WM,kt,180,i,0,1)},K(tr,"EcorePackageImpl/25",1258),H(1259,1,ki,m4t),E.fk=function(i){return $e(i,206)},E.gk=function(i){return st(Qee,kt,206,i,0,1)},K(tr,"EcorePackageImpl/26",1259),H(1260,1,ki,b4t),E.fk=function(i){return!1},E.gk=function(i){return st(oXe,Yn,2215,i,0,1)},K(tr,"EcorePackageImpl/27",1260),H(1261,1,ki,y4t),E.fk=function(i){return VS(i)},E.gk=function(i){return st(ws,kt,345,i,7,1)},K(tr,"EcorePackageImpl/28",1261),H(1262,1,ki,v4t),E.fk=function(i){return $e(i,61)},E.gk=function(i){return st(EKe,I4,61,i,0,1)},K(tr,"EcorePackageImpl/29",1262),H(1236,1,ki,_4t),E.fk=function(i){return $e(i,519)},E.gk=function(i){return st(wi,{3:1,4:1,5:1,2033:1},598,i,0,1)},K(tr,"EcorePackageImpl/3",1236),H(1263,1,ki,w4t),E.fk=function(i){return $e(i,582)},E.gk=function(i){return st(TKe,Yn,2039,i,0,1)},K(tr,"EcorePackageImpl/30",1263),H(1264,1,ki,E4t),E.fk=function(i){return $e(i,160)},E.gk=function(i){return st(WKe,I4,160,i,0,1)},K(tr,"EcorePackageImpl/31",1264),H(1265,1,ki,x4t),E.fk=function(i){return $e(i,76)},E.gk=function(i){return st(pre,GJt,76,i,0,1)},K(tr,"EcorePackageImpl/32",1265),H(1266,1,ki,S4t),E.fk=function(i){return $e(i,161)},E.gk=function(i){return st(VI,kt,161,i,0,1)},K(tr,"EcorePackageImpl/33",1266),H(1267,1,ki,T4t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(tr,"EcorePackageImpl/34",1267),H(1268,1,ki,C4t),E.fk=function(i){return $e(i,297)},E.gk=function(i){return st(jUe,Yn,297,i,0,1)},K(tr,"EcorePackageImpl/35",1268),H(1269,1,ki,A4t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(tr,"EcorePackageImpl/36",1269),H(1270,1,ki,k4t),E.fk=function(i){return $e(i,85)},E.gk=function(i){return st(WUe,Yn,85,i,0,1)},K(tr,"EcorePackageImpl/37",1270),H(1271,1,ki,R4t),E.fk=function(i){return $e(i,599)},E.gk=function(i){return st(HKe,Yn,599,i,0,1)},K(tr,"EcorePackageImpl/38",1271),H(1272,1,ki,I4t),E.fk=function(i){return!1},E.gk=function(i){return st(lXe,Yn,2216,i,0,1)},K(tr,"EcorePackageImpl/39",1272),H(1237,1,ki,N4t),E.fk=function(i){return $e(i,90)},E.gk=function(i){return st(Jf,Yn,29,i,0,1)},K(tr,"EcorePackageImpl/4",1237),H(1273,1,ki,O4t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(tr,"EcorePackageImpl/40",1273),H(1274,1,ki,L4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(tr,"EcorePackageImpl/41",1274),H(1275,1,ki,D4t),E.fk=function(i){return $e(i,596)},E.gk=function(i){return st(SKe,Yn,596,i,0,1)},K(tr,"EcorePackageImpl/42",1275),H(1276,1,ki,M4t),E.fk=function(i){return!1},E.gk=function(i){return st(cXe,kt,2217,i,0,1)},K(tr,"EcorePackageImpl/43",1276),H(1277,1,ki,P4t),E.fk=function(i){return $e(i,44)},E.gk=function(i){return st(rw,$J,44,i,0,1)},K(tr,"EcorePackageImpl/44",1277),H(1238,1,ki,B4t),E.fk=function(i){return $e(i,142)},E.gk=function(i){return st(v1,Yn,142,i,0,1)},K(tr,"EcorePackageImpl/5",1238),H(1239,1,ki,F4t),E.fk=function(i){return $e(i,156)},E.gk=function(i){return st(V2e,Yn,156,i,0,1)},K(tr,"EcorePackageImpl/6",1239),H(1240,1,ki,$4t),E.fk=function(i){return $e(i,469)},E.gk=function(i){return st(fre,Yn,685,i,0,1)},K(tr,"EcorePackageImpl/7",1240),H(1241,1,ki,U4t),E.fk=function(i){return $e(i,582)},E.gk=function(i){return st(hb,Yn,694,i,0,1)},K(tr,"EcorePackageImpl/8",1241),H(1242,1,ki,z4t),E.fk=function(i){return $e(i,480)},E.gk=function(i){return st(XP,Yn,480,i,0,1)},K(tr,"EcorePackageImpl/9",1242),H(1038,2080,gJt,X6t),E.Mi=function(i,l){$yr(this,v(l,424))},E.Qi=function(i,l){HHt(this,i,v(l,424))},K(tr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),H(1039,152,oq,yLt),E.jj=function(){return this.a.a},K(tr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),H(1067,1066,{},OIt),K("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var HKe=$a(qJt,"Resource");H(799,1524,HJt),E.Hl=function(i){},E.Il=function(i){},E.El=function(){return!this.a&&(this.a=new Tue(this)),this.a},E.Fl=function(i){var l,d,g,y,x;if(g=i.length,g>0)if(sr(0,i.length),i.charCodeAt(0)==47){for(x=new gu(4),y=1,l=1;l<g;++l)sr(l,i.length),i.charCodeAt(l)==47&&(Lt(x,y==l?"":(mo(y,l,i.length),i.substr(y,l-y))),y=l+1);return Lt(x,(sr(y,i.length+1),i.substr(y))),Gwr(this,x)}else sr(g-1,i.length),i.charCodeAt(g-1)==63&&(d=mIe(i,Wu(63),g-2),d>0&&(i=(mo(0,d,i.length),i.substr(0,d))));return p4r(this,i)},E.Gl=function(){return this.c},E.Ib=function(){var i;return __(this.Rm)+"@"+(i=ma(this)>>>0,i.toString(16))+" uri='"+this.d+"'"},E.b=!1,K(Kme,"ResourceImpl",799),H(1525,799,HJt,Ukt),K(Kme,"BinaryResourceImpl",1525),H(1190,708,qme),E.bj=function(i){return $e(i,58)?afr(this,v(i,58)):$e(i,599)?new mr(v(i,599).El()):Ze(i)===Ze(this.f)?v(i,16).Kc():(t8(),SH.a)},E.Ob=function(){return CMe(this)},E.a=!1,K(Ca,"EcoreUtil/ContentTreeIterator",1190),H(1526,1190,qme,W9t),E.bj=function(i){return Ze(i)===Ze(this.f)?v(i,15).Kc():new VMt(v(i,58))},K(Kme,"ResourceImpl/5",1526),H(658,2092,OJt,Tue),E.Hc=function(i){return this.i<=4?rI(this,i):$e(i,54)&&v(i,54).Jh()==this.a},E.Mi=function(i,l){i==this.i-1&&(this.a.b||(this.a.b=!0))},E.Oi=function(i,l){i==0?this.a.b||(this.a.b=!0):Sfe(this,i,l)},E.Qi=function(i,l){},E.Ri=function(i,l,d){},E.Lj=function(){return 2},E.jj=function(){return this.a},E.Mj=function(){return!0},E.Nj=function(i,l){var d;return d=v(i,54),l=d.fi(this.a,l),l},E.Oj=function(i,l){var d;return d=v(i,54),d.fi(null,l)},E.Pj=function(){return!1},E.Si=function(){return!0},E.aj=function(i){return st(_2,Yn,58,i,0,1)},E.Yi=function(){return!1},K(Kme,"ResourceImpl/ContentsEList",658),H(970,2062,EI,zkt),E.fd=function(i){return this.a.Ki(i)},E.gc=function(){return this.a.gc()},K(Ca,"AbstractSequentialInternalEList/1",970);var VKe,YKe,ko,jKe;H(634,1,{},XOt);var gre,mre;K(Ca,"BasicExtendedMetaData",634),H(1181,1,{},Z8t),E.Jl=function(){return null},E.Kl=function(){return this.a==-2&&Prr(this,pxr(this.d,this.b)),this.a},E.Ll=function(){return null},E.Ml=function(){return Fn(),Fn(),Zo},E.xe=function(){return this.c==zI&&Brr(this,pGt(this.d,this.b)),this.c},E.Nl=function(){return 0},E.a=-2,E.c=zI,K(Ca,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),H(1182,1,{},wMt),E.Jl=function(){return this.a==(y8(),gre)&&Urr(this,fCr(this.f,this.b)),this.a},E.Kl=function(){return 0},E.Ll=function(){return this.c==(y8(),gre)&&Frr(this,pCr(this.f,this.b)),this.c},E.Ml=function(){return!this.d&&Grr(this,ZAr(this.f,this.b)),this.d},E.xe=function(){return this.e==zI&&Hrr(this,pGt(this.f,this.b)),this.e},E.Nl=function(){return this.g==-2&&Yrr(this,LEr(this.f,this.b)),this.g},E.e=zI,E.g=-2,K(Ca,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),H(1180,1,{},J8t),E.b=!1,E.c=!1,K(Ca,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),H(1183,1,{},EMt),E.c=-2,E.e=zI,E.f=zI,K(Ca,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),H(593,632,Xl,zX),E.Lj=function(){return this.c},E.ol=function(){return!1},E.Wi=function(i,l){return l},E.c=0,K(Ca,"EDataTypeEList",593);var WKe=$a(Ca,"FeatureMap");H(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Xa),E.bd=function(i,l){OTr(this,i,v(l,76))},E.Fc=function(i){return X3r(this,v(i,76))},E.Hi=function(i){ndr(this,v(i,76))},E.Nj=function(i,l){return xlr(this,v(i,76),l)},E.Oj=function(i,l){return yIe(this,v(i,76),l)},E.Ti=function(i,l){return rAr(this,i,l)},E.Wi=function(i,l){return H6r(this,i,v(l,76))},E.hd=function(i,l){return v5r(this,i,v(l,76))},E.Uj=function(i,l){return Slr(this,v(i,76),l)},E.Vj=function(i,l){return TOt(this,v(i,76),l)},E.Wj=function(i,l,d){return _Er(this,v(i,76),v(l,76),d)},E.Zi=function(i,l){return y1e(this,i,v(l,76))},E.Ol=function(i,l){return bPe(this,i,l)},E.cd=function(i,l){var d,g,y,x,T,R,O,D,q;for(D=new PE(l.gc()),y=l.Kc();y.Ob();)if(g=v(y.Pb(),76),x=g.Lk(),tb(this.e,x))(!x.Si()||!NQ(this,x,g.md())&&!rI(D,g))&&Yr(D,g);else{for(q=Iu(this.e.Dh(),x),d=v(this.g,124),T=!0,R=0;R<this.i;++R)if(O=d[R],q.am(O.Lk())){v(JT(this,R,g),76),T=!1;break}T&&Yr(D,g)}return $9e(this,i,D)},E.Gc=function(i){var l,d,g,y,x,T,R,O,D;for(O=new PE(i.gc()),g=i.Kc();g.Ob();)if(d=v(g.Pb(),76),y=d.Lk(),tb(this.e,y))(!y.Si()||!NQ(this,y,d.md())&&!rI(O,d))&&Yr(O,d);else{for(D=Iu(this.e.Dh(),y),l=v(this.g,124),x=!0,T=0;T<this.i;++T)if(R=l[T],D.am(R.Lk())){v(JT(this,T,d),76),x=!1;break}x&&Yr(O,d)}return Ka(this,O)},E.Fi=function(i){return this.j=-1,epe(this,this.i,i)},E.Pl=function(i,l,d){return cPe(this,i,l,d)},E.Xk=function(i,l){return xG(this,i,l)},E.Ql=function(i,l,d){return MPe(this,i,l,d)},E.Rl=function(){return this},E.Sl=function(i,l){return AG(this,i,l)},E.Tl=function(i){return v(ze(this,i),76).Lk()},E.Ul=function(i){return v(ze(this,i),76).md()},E.Vl=function(){return this.b},E.Mj=function(){return!0},E.Tj=function(){return!0},E.Wl=function(i){return!Qz(this,i)},E.aj=function(i){return st(fhn,GJt,343,i,0,1)},E.pl=function(i){return Zhe(this,i)},E.Wb=function(i){ez(this,i)},E.Xl=function(i,l){OJ(this,i,l)},E.Yl=function(i){return x$t(this,i)},E.Zl=function(i){tqt(this,i)},K(Ca,"BasicFeatureMap",78),H(1960,1,Yg),E.Nb=function(i){xo(this,i)},E.Rb=function(i){if(this.g==-1)throw _e(new ih);nQ(this);try{DYt(this.e,this.b,this.a,i),this.d=this.e.j,jZ(this)}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}},E.Ob=function(){return b0e(this)},E.Sb=function(){return KUt(this)},E.Pb=function(){return jZ(this)},E.Tb=function(){return this.a},E.Ub=function(){var i;if(KUt(this))return nQ(this),this.g=--this.a,this.ul()&&(i=eM(this.e,this.b,this.c,this.a,this.j),this.j=i),this.i=0,this.j;throw _e(new ec)},E.Vb=function(){return this.a-1},E.Qb=function(){if(this.g==-1)throw _e(new ih);nQ(this);try{AHt(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(i){throw i=Da(i),$e(i,77)?_e(new Jd):_e(i)}},E.ul=function(){return!1},E.Wb=function(i){if(this.g==-1)throw _e(new ih);nQ(this);try{iWt(this.e,this.b,this.g,i),this.d=this.e.j}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}},E.a=0,E.c=0,E.d=0,E.f=!1,E.g=0,E.i=0,K(Ca,"FeatureMapUtil/BasicFeatureEIterator",1960),H(420,1960,Yg,M8),E.$l=function(){var i,l,d;for(d=this.e.i,i=v(this.e.g,124);this.c<d;){if(l=i[this.c],this.k.am(l.Lk()))return this.j=this.f?l:l.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},E._l=function(){var i,l;for(i=v(this.e.g,124);--this.c>=0;)if(l=i[this.c],this.k.am(l.Lk()))return this.j=this.f?l:l.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},K(Ca,"BasicFeatureMap/FeatureEIterator",420),H(676,420,Yg,Mhe),E.ul=function(){return!0},K(Ca,"BasicFeatureMap/ResolvingFeatureEIterator",676),H(968,496,Pee,GIt),E.pj=function(){return this},K(Ca,"EContentsEList/1",968),H(969,496,Pee,dIt),E.ul=function(){return!1},K(Ca,"EContentsEList/2",969),H(967,287,Bee,qIt),E.wl=function(i){},E.Ob=function(){return!1},E.Sb=function(){return!1},K(Ca,"EContentsEList/FeatureIteratorImpl/1",967),H(840,593,Xl,T8e),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EDataTypeEList/Unsettable",840),H(1958,593,Xl,XIt),E.Si=function(){return!0},K(Ca,"EDataTypeUniqueEList",1958),H(1959,840,Xl,QIt),E.Si=function(){return!0},K(Ca,"EDataTypeUniqueEList/Unsettable",1959),H(147,83,Xl,sh),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentEList/Resolving",147),H(1184,555,Xl,ZIt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentEList/Unsettable/Resolving",1184),H(766,14,Xl,hIe),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectContainmentWithInverseEList/Unsettable",766),H(1222,766,Xl,hOt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),H(757,505,Xl,C8e),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectEList/Unsettable",757),H(338,505,Xl,BT),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectResolvingEList",338),H(1844,757,Xl,JIt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectResolvingEList/Unsettable",1844),H(1527,1,{},G4t);var ghn;K(Ca,"EObjectValidator",1527),H(559,505,Xl,iQ),E.il=function(){return this.d},E.jl=function(){return this.b},E.Mj=function(){return!0},E.ml=function(){return!0},E.b=0,K(Ca,"EObjectWithInverseEList",559),H(1225,559,Xl,dOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseEList/ManyInverse",1225),H(635,559,Xl,nde),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectWithInverseEList/Unsettable",635),H(1224,635,Xl,fOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),H(767,559,Xl,dIe),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectWithInverseResolvingEList",767),H(32,767,Xl,Gn),E.ll=function(){return!0},K(Ca,"EObjectWithInverseResolvingEList/ManyInverse",32),H(768,635,Xl,fIe),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectWithInverseResolvingEList/Unsettable",768),H(1223,768,Xl,pOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),H(1185,632,Xl),E.Li=function(){return(this.b&1792)==0},E.Ni=function(){this.b|=1},E.kl=function(){return(this.b&4)!=0},E.Mj=function(){return(this.b&40)!=0},E.ll=function(){return(this.b&16)!=0},E.ml=function(){return(this.b&8)!=0},E.nl=function(){return(this.b&P4)!=0},E.al=function(){return(this.b&32)!=0},E.ol=function(){return(this.b&k0)!=0},E.fk=function(i){return this.d?ePt(this.d,i):this.Lk().Hk().fk(i)},E.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},E.Si=function(){return(this.b&128)!=0},E.Gk=function(){var i;Gr(this),this.b&2&&(id(this.e)?(i=(this.b&1)!=0,this.b&=-2,$R(this,new E0(this.e,2,Ma(this.e.Dh(),this.Lk()),i,!1))):this.b&=-2)},E.Yi=function(){return(this.b&1536)==0},E.b=0,K(Ca,"EcoreEList/Generic",1185),H(1186,1185,Xl,sDt),E.Lk=function(){return this.a},K(Ca,"EcoreEList/Dynamic",1186),H(765,66,hg,A7e),E.aj=function(i){return Iz(this.a.a,i)},K(Ca,"EcoreEMap/1",765),H(764,83,Xl,hNe),E.Mi=function(i,l){XZ(this.b,v(l,136))},E.Oi=function(i,l){rUt(this.b)},E.Pi=function(i,l,d){var g;++(g=this.b,v(l,136),g).e},E.Qi=function(i,l){A0e(this.b,v(l,136))},E.Ri=function(i,l,d){A0e(this.b,v(d,136)),Ze(d)===Ze(l)&&v(d,136).Ci(_sr(v(l,136).ld())),XZ(this.b,v(l,136))},K(Ca,"EcoreEMap/DelegateEObjectContainmentEList",764),H(1220,141,LUe,_$t),K(Ca,"EcoreEMap/Unsettable",1220),H(1221,764,Xl,gOt),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),H(1189,215,p5,oLt),E.a=!1,E.b=!1,K(Ca,"EcoreUtil/Copier",1189),H(759,1,io,VMt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return Jzt(this)},E.Pb=function(){var i;return Jzt(this),i=this.b,this.b=null,i},E.Qb=function(){this.a.Qb()},K(Ca,"EcoreUtil/ProperContentIterator",759),H(1528,1527,{},GTt);var mhn;K(Ca,"EcoreValidator",1528);var bhn;$a(Ca,"FeatureMapUtil/Validator"),H(1295,1,{2041:1},q4t),E.am=function(i){return!0},K(Ca,"FeatureMapUtil/1",1295),H(773,1,{2041:1},YPe),E.am=function(i){var l;return this.c==i?!0:(l=Ht(br(this.a,i)),l==null?_Cr(this,i)?(VPt(this.a,i,(Qn(),HI)),!0):(VPt(this.a,i,(Qn(),a2)),!1):l==(Qn(),HI))},E.e=!1;var K2e;K(Ca,"FeatureMapUtil/BasicValidator",773),H(774,45,p5,x8e),K(Ca,"FeatureMapUtil/BasicValidator/Cache",774),H(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},DU),E.bd=function(i,l){DYt(this.c,this.b,i,l)},E.Fc=function(i){return bPe(this.c,this.b,i)},E.cd=function(i,l){return zkr(this.c,this.b,i,l)},E.Gc=function(i){return WL(this,i)},E.Gi=function(i,l){Pgr(this.c,this.b,i,l)},E.Wk=function(i,l){return cPe(this.c,this.b,i,l)},E.$i=function(i){return NJ(this.c,this.b,i,!1)},E.Ii=function(){return SIt(this.c,this.b)},E.Ji=function(){return osr(this.c,this.b)},E.Ki=function(i){return zpr(this.c,this.b,i)},E.Xk=function(i,l){return WNt(this,i,l)},E.$b=function(){JA(this)},E.Hc=function(i){return NQ(this.c,this.b,i)},E.Ic=function(i){return Umr(this.c,this.b,i)},E.Xb=function(i){return NJ(this.c,this.b,i,!0)},E.Fk=function(i){return this},E.dd=function(i){return W1r(this.c,this.b,i)},E.dc=function(){return mX(this)},E.Qj=function(){return!Qz(this.c,this.b)},E.Kc=function(){return Cgr(this.c,this.b)},E.ed=function(){return Agr(this.c,this.b)},E.fd=function(i){return ivr(this.c,this.b,i)},E.Ti=function(i,l){return Kjt(this.c,this.b,i,l)},E.Ui=function(i,l){Hpr(this.c,this.b,i,l)},E.gd=function(i){return AHt(this.c,this.b,i)},E.Mc=function(i){return GCr(this.c,this.b,i)},E.hd=function(i,l){return iWt(this.c,this.b,i,l)},E.Wb=function(i){dJ(this.c,this.b),WL(this,v(i,15))},E.gc=function(){return rvr(this.c,this.b)},E.Pc=function(){return X0r(this.c,this.b)},E.Qc=function(i){return K1r(this.c,this.b,i)},E.Ib=function(){var i,l;for(l=new qb,l.a+="[",i=SIt(this.c,this.b);b0e(i);)bl(l,XL(jZ(i))),b0e(i)&&(l.a+=Xo);return l.a+="]",l.a},E.Gk=function(){dJ(this.c,this.b)},K(Ca,"FeatureMapUtil/FeatureEList",509),H(644,39,oq,ffe),E.hj=function(i){return BD(this,i)},E.mj=function(i){var l,d,g,y,x,T,R;switch(this.d){case 1:case 2:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.g=i.ij(),i.gj()==1&&(this.d=1),!0;break}case 3:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=5,l=new PE(2),Yr(l,this.g),Yr(l,i.ij()),this.g=l,!0;break}}break}case 5:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return d=v(this.g,16),d.Fc(i.ij()),!0;break}}break}case 4:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=1,this.g=i.ij(),!0;break}case 4:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=6,R=new PE(2),Yr(R,this.n),Yr(R,i.kj()),this.n=R,T=Te(xe(Wr,1),vi,28,15,[this.o,i.lj()]),this.g=T,!0;break}}break}case 6:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return d=v(this.n,16),d.Fc(i.kj()),T=v(this.g,53),g=st(Wr,vi,28,T.length+1,15,1),Gc(T,0,g,0,T.length),g[T.length]=i.lj(),this.g=g,!0;break}}break}}return!1},K(Ca,"FeatureMapUtil/FeatureENotificationImpl",644),H(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},VX),E.Ol=function(i,l){return bPe(this.c,i,l)},E.Pl=function(i,l,d){return cPe(this.c,i,l,d)},E.Ql=function(i,l,d){return MPe(this.c,i,l,d)},E.Rl=function(){return this},E.Sl=function(i,l){return AG(this.c,i,l)},E.Tl=function(i){return v(NJ(this.c,this.b,i,!1),76).Lk()},E.Ul=function(i){return v(NJ(this.c,this.b,i,!1),76).md()},E.Vl=function(){return this.a},E.Wl=function(i){return!Qz(this.c,i)},E.Xl=function(i,l){OJ(this.c,i,l)},E.Yl=function(i){return x$t(this.c,i)},E.Zl=function(i){tqt(this.c,i)},K(Ca,"FeatureMapUtil/FeatureFeatureMap",564),H(1294,1,Wme,Q8t),E.Fk=function(i){return NJ(this.b,this.a,-1,i)},E.Qj=function(){return!Qz(this.b,this.a)},E.Wb=function(i){OJ(this.b,this.a,i)},E.Gk=function(){dJ(this.b,this.a)},K(Ca,"FeatureMapUtil/FeatureValue",1294);var M6,X2e,Q2e,P6,yhn,CH=$a(Vee,"AnyType");H(680,63,nb,Gue),K(Vee,"InvalidDatatypeValueException",680);var bre=$a(Vee,YJt),AH=$a(Vee,jJt),KKe=$a(Vee,WJt),vhn,Tc,XKe,_w,_hn,whn,Ehn,xhn,Shn,Thn,Chn,Ahn,khn,Rhn,Ihn,aC,Nhn,sC,tB,Ohn,Ox,kH,RH,Lhn,nB,rB;H(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},Y7e),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.c&&(this.c=new Xa(this,0)),this.c):(!this.c&&(this.c=new Xa(this,0)),this.c.b);case 1:return d?(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)):(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Vl();case 2:return d?(!this.b&&(this.b=new Xa(this,2)),this.b):(!this.b&&(this.b=new Xa(this,2)),this.b.b)}return lf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i),l,d)},E.Uh=function(i,l,d){var g;switch(l){case 0:return!this.c&&(this.c=new Xa(this,0)),xG(this.c,i,d);case 1:return(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),71)).Xk(i,d);case 2:return!this.b&&(this.b=new Xa(this,2)),xG(this.b,i,d)}return g=v(qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),l),69),g.wk().Ak(this,KOe(this),l-kr(this.ii()),i,d)},E.Wh=function(i){switch(i){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return sf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i))},E.bi=function(i,l){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),ez(this.c,l);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Wb(l);return;case 2:!this.b&&(this.b=new Xa(this,2)),ez(this.b,l);return}df(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i),l)},E.ii=function(){return ca(),XKe},E.ki=function(i){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),Gr(this.c);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).$b();return;case 2:!this.b&&(this.b=new Xa(this,2)),Gr(this.b);return}hf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (mixed: ",HL(i,this.c),i.a+=", anyAttribute: ",HL(i,this.b),i.a+=")",i.a)},K(_s,"AnyTypeImpl",844),H(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},e3t),E.Lh=function(i,l,d){switch(i){case 0:return this.a;case 1:return this.b}return lf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i),l,d)},E.Wh=function(i){switch(i){case 0:return this.a!=null;case 1:return this.b!=null}return sf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i))},E.bi=function(i,l){switch(i){case 0:Krr(this,ai(l));return;case 1:Qrr(this,ai(l));return}df(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i),l)},E.ii=function(){return ca(),aC},E.ki=function(i){switch(i){case 0:this.a=null;return;case 1:this.b=null;return}hf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (data: ",bl(i,this.a),i.a+=", target: ",bl(i,this.b),i.a+=")",i.a)},E.a=null,E.b=null,K(_s,"ProcessingInstructionImpl",681),H(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},I6t),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.c&&(this.c=new Xa(this,0)),this.c):(!this.c&&(this.c=new Xa(this,0)),this.c.b);case 1:return d?(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)):(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Vl();case 2:return d?(!this.b&&(this.b=new Xa(this,2)),this.b):(!this.b&&(this.b=new Xa(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0));case 4:return gIe(this.a,(!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))));case 5:return this.a}return lf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i),l,d)},E.Wh=function(i){switch(i){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))!=null;case 4:return gIe(this.a,(!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))))!=null;case 5:return!!this.a}return sf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i))},E.bi=function(i,l){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),ez(this.c,l);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Wb(l);return;case 2:!this.b&&(this.b=new Xa(this,2)),ez(this.b,l);return;case 3:rOe(this,ai(l));return;case 4:rOe(this,pIe(this.a,l));return;case 5:Xrr(this,v(l,156));return}df(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i),l)},E.ii=function(){return ca(),sC},E.ki=function(i){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),Gr(this.c);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).$b();return;case 2:!this.b&&(this.b=new Xa(this,2)),Gr(this.b);return;case 3:!this.c&&(this.c=new Xa(this,0)),OJ(this.c,(ca(),tB),null);return;case 4:rOe(this,pIe(this.a,null));return;case 5:this.a=null;return}hf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i))},K(_s,"SimpleAnyTypeImpl",682),H(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},N6t),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.a&&(this.a=new Xa(this,0)),this.a):(!this.a&&(this.a=new Xa(this,0)),this.a.b);case 1:return d?(!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),this.b):(!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),yz(this.b));case 2:return d?(!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),this.c):(!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),yz(this.c));case 3:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),kH));case 4:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),RH));case 5:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),nB));case 6:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),rB))}return lf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i),l,d)},E.Uh=function(i,l,d){var g;switch(l){case 0:return!this.a&&(this.a=new Xa(this,0)),xG(this.a,i,d);case 1:return!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),DX(this.b,i,d);case 2:return!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),DX(this.c,i,d);case 5:return!this.a&&(this.a=new Xa(this,0)),WNt(Zc(this.a,(ca(),nB)),i,d)}return g=v(qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():(ca(),Ox),l),69),g.wk().Ak(this,KOe(this),l-kr((ca(),Ox)),i,d)},E.Wh=function(i){switch(i){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),kH)));case 4:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),RH)));case 5:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),nB)));case 6:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),rB)))}return sf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i))},E.bi=function(i,l){switch(i){case 0:!this.a&&(this.a=new Xa(this,0)),ez(this.a,l);return;case 1:!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),mZ(this.b,l);return;case 2:!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),mZ(this.c,l);return;case 3:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),kH))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,kH),v(l,16));return;case 4:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),RH))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,RH),v(l,16));return;case 5:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),nB))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,nB),v(l,16));return;case 6:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),rB))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,rB),v(l,16));return}df(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i),l)},E.ii=function(){return ca(),Ox},E.ki=function(i){switch(i){case 0:!this.a&&(this.a=new Xa(this,0)),Gr(this.a);return;case 1:!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),kH)));return;case 4:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),RH)));return;case 5:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),nB)));return;case 6:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),rB)));return}hf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (mixed: ",HL(i,this.a),i.a+=")",i.a)},K(_s,"XMLTypeDocumentRootImpl",683),H(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},H4t),E.ri=function(i,l){switch(i.hk()){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 l==null?null:Kl(l);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return ai(l);case 6:return Dor(v(l,195));case 12:case 47:case 49:case 11:return VWt(this,i,l);case 13:return l==null?null:Hkr(v(l,247));case 15:case 14:return l==null?null:Xhr(We(at(l)));case 17:return Gqt((ca(),l));case 18:return Gqt(l);case 21:case 20:return l==null?null:Qhr(v(l,161).a);case 27:return Mor(v(l,195));case 30:return nqt((ca(),v(l,15)));case 31:return nqt(v(l,15));case 40:return Bor((ca(),l));case 42:return qqt((ca(),l));case 43:return qqt(l);case 59:case 48:return Por((ca(),l));default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x;switch(i.G==-1&&(i.G=(d=Cd(i),d?uy(d.vi(),i):-1)),i.G){case 0:return l=new Y7e,l;case 1:return g=new e3t,g;case 2:return y=new I6t,y;case 3:return x=new N6t,x;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;switch(i.hk()){case 5:case 52:case 4:return l;case 6:return q2r(l);case 8:case 7:return l==null?null:REr(l);case 9:return l==null?null:Cz(Nd((g=eu(l,!0),g.length>0&&(sr(0,g.length),g.charCodeAt(0)==43)?(sr(1,g.length+1),g.substr(1)):g),-128,127)<<24>>24);case 10:return l==null?null:Cz(Nd((y=eu(l,!0),y.length>0&&(sr(0,y.length),y.charCodeAt(0)==43)?(sr(1,y.length+1),y.substr(1)):y),-128,127)<<24>>24);case 11:return ai(ex(this,(ca(),Ehn),l));case 12:return ai(ex(this,(ca(),xhn),l));case 13:return l==null?null:new mRe(eu(l,!0));case 15:case 14:return Z3r(l);case 16:return ai(ex(this,(ca(),Shn),l));case 17:return iGt((ca(),l));case 18:return iGt(l);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return eu(l,!0);case 21:case 20:return lTr(l);case 22:return ai(ex(this,(ca(),Thn),l));case 23:return ai(ex(this,(ca(),Chn),l));case 24:return ai(ex(this,(ca(),Ahn),l));case 25:return ai(ex(this,(ca(),khn),l));case 26:return ai(ex(this,(ca(),Rhn),l));case 27:return N2r(l);case 30:return aGt((ca(),l));case 31:return aGt(l);case 32:return l==null?null:Nt(Nd((q=eu(l,!0),q.length>0&&(sr(0,q.length),q.charCodeAt(0)==43)?(sr(1,q.length+1),q.substr(1)):q),Po,qi));case 33:return l==null?null:new Ov((J=eu(l,!0),J.length>0&&(sr(0,J.length),J.charCodeAt(0)==43)?(sr(1,J.length+1),J.substr(1)):J));case 34:return l==null?null:Nt(Nd((re=eu(l,!0),re.length>0&&(sr(0,re.length),re.charCodeAt(0)==43)?(sr(1,re.length+1),re.substr(1)):re),Po,qi));case 36:return l==null?null:Zm(PJ((ae=eu(l,!0),ae.length>0&&(sr(0,ae.length),ae.charCodeAt(0)==43)?(sr(1,ae.length+1),ae.substr(1)):ae)));case 37:return l==null?null:Zm(PJ((le=eu(l,!0),le.length>0&&(sr(0,le.length),le.charCodeAt(0)==43)?(sr(1,le.length+1),le.substr(1)):le)));case 40:return k_r((ca(),l));case 42:return sGt((ca(),l));case 43:return sGt(l);case 44:return l==null?null:new Ov((de=eu(l,!0),de.length>0&&(sr(0,de.length),de.charCodeAt(0)==43)?(sr(1,de.length+1),de.substr(1)):de));case 45:return l==null?null:new Ov((Se=eu(l,!0),Se.length>0&&(sr(0,Se.length),Se.charCodeAt(0)==43)?(sr(1,Se.length+1),Se.substr(1)):Se));case 46:return eu(l,!1);case 47:return ai(ex(this,(ca(),Ihn),l));case 59:case 48:return A_r((ca(),l));case 49:return ai(ex(this,(ca(),Nhn),l));case 50:return l==null?null:V8(Nd((Me=eu(l,!0),Me.length>0&&(sr(0,Me.length),Me.charCodeAt(0)==43)?(sr(1,Me.length+1),Me.substr(1)):Me),zee,32767)<<16>>16);case 51:return l==null?null:V8(Nd((x=eu(l,!0),x.length>0&&(sr(0,x.length),x.charCodeAt(0)==43)?(sr(1,x.length+1),x.substr(1)):x),zee,32767)<<16>>16);case 53:return ai(ex(this,(ca(),Ohn),l));case 55:return l==null?null:V8(Nd((T=eu(l,!0),T.length>0&&(sr(0,T.length),T.charCodeAt(0)==43)?(sr(1,T.length+1),T.substr(1)):T),zee,32767)<<16>>16);case 56:return l==null?null:V8(Nd((R=eu(l,!0),R.length>0&&(sr(0,R.length),R.charCodeAt(0)==43)?(sr(1,R.length+1),R.substr(1)):R),zee,32767)<<16>>16);case 57:return l==null?null:Zm(PJ((O=eu(l,!0),O.length>0&&(sr(0,O.length),O.charCodeAt(0)==43)?(sr(1,O.length+1),O.substr(1)):O)));case 58:return l==null?null:Zm(PJ((D=eu(l,!0),D.length>0&&(sr(0,D.length),D.charCodeAt(0)==43)?(sr(1,D.length+1),D.substr(1)):D)));case 60:return l==null?null:Nt(Nd((d=eu(l,!0),d.length>0&&(sr(0,d.length),d.charCodeAt(0)==43)?(sr(1,d.length+1),d.substr(1)):d),Po,qi));case 61:return l==null?null:Nt(Nd(eu(l,!0),Po,qi));default:throw _e(new ar(FI+i.xe()+lx))}};var Dhn,QKe,Mhn,ZKe;K(_s,"XMLTypeFactoryImpl",2028),H(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},RLt),E.N=!1,E.O=!1;var Phn=!1;K(_s,"XMLTypePackageImpl",594),H(1961,1,{851:1},V4t),E.Kk=function(){return CPe(),Vhn},K(_s,"XMLTypePackageImpl/1",1961),H(1970,1,ki,Y4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/10",1970),H(1971,1,ki,j4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/11",1971),H(1972,1,ki,W4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/12",1972),H(1973,1,ki,K4t),E.fk=function(i){return VS(i)},E.gk=function(i){return st(ws,kt,345,i,7,1)},K(_s,"XMLTypePackageImpl/13",1973),H(1974,1,ki,X4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/14",1974),H(1975,1,ki,Q4t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/15",1975),H(1976,1,ki,Z4t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/16",1976),H(1977,1,ki,J4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/17",1977),H(1978,1,ki,t3t),E.fk=function(i){return $e(i,161)},E.gk=function(i){return st(VI,kt,161,i,0,1)},K(_s,"XMLTypePackageImpl/18",1978),H(1979,1,ki,n3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/19",1979),H(1962,1,ki,r3t),E.fk=function(i){return $e(i,857)},E.gk=function(i){return st(CH,Yn,857,i,0,1)},K(_s,"XMLTypePackageImpl/2",1962),H(1980,1,ki,i3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/20",1980),H(1981,1,ki,a3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/21",1981),H(1982,1,ki,s3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/22",1982),H(1983,1,ki,o3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/23",1983),H(1984,1,ki,l3t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(_s,"XMLTypePackageImpl/24",1984),H(1985,1,ki,c3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/25",1985),H(1986,1,ki,u3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/26",1986),H(1987,1,ki,h3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/27",1987),H(1988,1,ki,d3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/28",1988),H(1989,1,ki,f3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/29",1989),H(1963,1,ki,p3t),E.fk=function(i){return $e(i,681)},E.gk=function(i){return st(bre,Yn,2119,i,0,1)},K(_s,"XMLTypePackageImpl/3",1963),H(1990,1,ki,g3t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(_s,"XMLTypePackageImpl/30",1990),H(1991,1,ki,m3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/31",1991),H(1992,1,ki,b3t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(_s,"XMLTypePackageImpl/32",1992),H(1993,1,ki,y3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/33",1993),H(1994,1,ki,v3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/34",1994),H(1995,1,ki,_3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/35",1995),H(1996,1,ki,w3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/36",1996),H(1997,1,ki,E3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/37",1997),H(1998,1,ki,x3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/38",1998),H(1999,1,ki,S3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/39",1999),H(1964,1,ki,T3t),E.fk=function(i){return $e(i,682)},E.gk=function(i){return st(AH,Yn,2120,i,0,1)},K(_s,"XMLTypePackageImpl/4",1964),H(2e3,1,ki,C3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/40",2e3),H(2001,1,ki,A3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/41",2001),H(2002,1,ki,k3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/42",2002),H(2003,1,ki,R3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/43",2003),H(2004,1,ki,I3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/44",2004),H(2005,1,ki,N3t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(_s,"XMLTypePackageImpl/45",2005),H(2006,1,ki,O3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/46",2006),H(2007,1,ki,L3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/47",2007),H(2008,1,ki,D3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/48",2008),H(2009,1,ki,M3t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(_s,"XMLTypePackageImpl/49",2009),H(1965,1,ki,P3t),E.fk=function(i){return $e(i,683)},E.gk=function(i){return st(KKe,Yn,2121,i,0,1)},K(_s,"XMLTypePackageImpl/5",1965),H(2010,1,ki,B3t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(_s,"XMLTypePackageImpl/50",2010),H(2011,1,ki,F3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/51",2011),H(2012,1,ki,$3t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(_s,"XMLTypePackageImpl/52",2012),H(1966,1,ki,U3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/6",1966),H(1967,1,ki,z3t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(_s,"XMLTypePackageImpl/7",1967),H(1968,1,ki,G3t),E.fk=function(i){return HS(i)},E.gk=function(i){return st(rs,kt,485,i,8,1)},K(_s,"XMLTypePackageImpl/8",1968),H(1969,1,ki,q3t),E.fk=function(i){return $e(i,222)},E.gk=function(i){return st(d6,kt,222,i,0,1)},K(_s,"XMLTypePackageImpl/9",1969);var fp,Oy,iB,yre,Ne;H(55,63,nb,oi),K(yy,"RegEx/ParseException",55),H(836,1,{},j6e),E.bm=function(i){return i<this.j&&Do(this.i,i)==63},E.cm=function(){var i,l,d,g,y;if(this.c!=10)throw _e(new oi(fi((ii(),Lee))));switch(i=this.a,i){case 101:i=27;break;case 102:i=12;break;case 110:i=10;break;case 114:i=13;break;case 116:i=9;break;case 120:if($i(this),this.c!=0)throw _e(new oi(fi((ii(),by))));if(this.a==123){y=0,d=0;do{if($i(this),this.c!=0)throw _e(new oi(fi((ii(),by))));if((y=G_(this.a))<0)break;if(d>d*16)throw _e(new oi(fi((ii(),aJt))));d=d*16+y}while(!0);if(this.a!=125)throw _e(new oi(fi((ii(),sJt))));if(d>GI)throw _e(new oi(fi((ii(),oJt))));i=d}else{if(y=0,this.c!=0||(y=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(d=y,$i(this),this.c!=0||(y=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));d=d*16+y,i=d}break;case 117:if(g=0,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));l=l*16+g,i=l;break;case 118:if($i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,l>GI)throw _e(new oi(fi((ii(),"parser.descappe.4"))));i=l;break;case 65:case 90:case 122:throw _e(new oi(fi((ii(),lJt))))}return i},E.dm=function(i){var l,d;switch(i){case 100:d=(this.e&32)==32?Qv("Nd",!0):(zi(),vre);break;case 68:d=(this.e&32)==32?Qv("Nd",!1):(zi(),iXe);break;case 119:d=(this.e&32)==32?Qv("IsWord",!0):(zi(),RN);break;case 87:d=(this.e&32)==32?Qv("IsWord",!1):(zi(),sXe);break;case 115:d=(this.e&32)==32?Qv("IsSpace",!0):(zi(),B6);break;case 83:d=(this.e&32)==32?Qv("IsSpace",!1):(zi(),aXe);break;default:throw _e(new tc((l=i,len+l.toString(16))))}return d},E.em=function(i){var l,d,g,y,x,T,R,O,D,q,J,re;for(this.b=1,$i(this),l=null,this.c==0&&this.a==94?($i(this),i?q=(zi(),zi(),new Td(5)):(l=(zi(),zi(),new Td(4)),Jc(l,0,GI),q=new Td(4))):q=(zi(),zi(),new Td(4)),y=!0;(re=this.c)!=1&&!(re==0&&this.a==93&&!y);){if(y=!1,d=this.a,g=!1,re==10)switch(d){case 100:case 68:case 119:case 87:case 115:case 83:C4(q,this.dm(d)),g=!0;break;case 105:case 73:case 99:case 67:d=this.um(q,d),d<0&&(g=!0);break;case 112:case 80:if(J=SMe(this,d),!J)throw _e(new oi(fi((ii(),Vme))));C4(q,J),g=!0;break;default:d=this.cm()}else if(re==20){if(T=ZR(this.i,58,this.d),T<0)throw _e(new oi(fi((ii(),AUe))));if(R=!0,Do(this.i,this.d)==94&&(++this.d,R=!1),x=af(this.i,this.d,T),O=DBt(x,R,(this.e&512)==512),!O)throw _e(new oi(fi((ii(),eJt))));if(C4(q,O),g=!0,T+1>=this.j||Do(this.i,T+1)!=93)throw _e(new oi(fi((ii(),AUe))));this.d=T+2}if($i(this),!g)if(this.c!=0||this.a!=45)Jc(q,d,d);else{if($i(this),(re=this.c)==1)throw _e(new oi(fi((ii(),Dee))));re==0&&this.a==93?(Jc(q,d,d),Jc(q,45,45)):(D=this.a,re==10&&(D=this.cm()),$i(this),Jc(q,d,D))}(this.e&k0)==k0&&this.c==0&&this.a==44&&$i(this)}if(this.c==1)throw _e(new oi(fi((ii(),Dee))));return l&&(gM(l,q),q=l),a5(q),fM(q),this.b=0,$i(this),q},E.fm=function(){var i,l,d,g;for(d=this.em(!1);(g=this.c)!=7;)if(i=this.a,g==0&&(i==45||i==38)||g==4){if($i(this),this.c!=9)throw _e(new oi(fi((ii(),nJt))));if(l=this.em(!1),g==4)C4(d,l);else if(i==45)gM(d,l);else if(i==38)zWt(d,l);else throw _e(new tc("ASSERT"))}else throw _e(new oi(fi((ii(),rJt))));return $i(this),d},E.gm=function(){var i,l;return i=this.a-48,l=(zi(),zi(),new Zde(12,null,i)),!this.g&&(this.g=new kK),AK(this.g,new k7e(i)),$i(this),l},E.hm=function(){return $i(this),zi(),$hn},E.im=function(){return $i(this),zi(),Fhn},E.jm=function(){throw _e(new oi(fi((ii(),vf))))},E.km=function(){throw _e(new oi(fi((ii(),vf))))},E.lm=function(){return $i(this),Ybr()},E.mm=function(){return $i(this),zi(),zhn},E.nm=function(){return $i(this),zi(),qhn},E.om=function(){var i;if(this.d>=this.j||((i=Do(this.i,this.d++))&65504)!=64)throw _e(new oi(fi((ii(),QZt))));return $i(this),zi(),zi(),new Fg(0,i-64)},E.pm=function(){return $i(this),KAr()},E.qm=function(){return $i(this),zi(),Hhn},E.rm=function(){var i;return i=(zi(),zi(),new Fg(0,105)),$i(this),i},E.sm=function(){return $i(this),zi(),Ghn},E.tm=function(){return $i(this),zi(),Uhn},E.um=function(i,l){return this.cm()},E.vm=function(){return $i(this),zi(),nXe},E.wm=function(){var i,l,d,g,y;if(this.d+1>=this.j)throw _e(new oi(fi((ii(),WZt))));if(g=-1,l=null,i=Do(this.i,this.d),49<=i&&i<=57){if(g=i-48,!this.g&&(this.g=new kK),AK(this.g,new k7e(g)),++this.d,Do(this.i,this.d)!=41)throw _e(new oi(fi((ii(),tw))));++this.d}else switch(i==63&&--this.d,$i(this),l=QPe(this),l.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw _e(new oi(fi((ii(),tw))));break;default:throw _e(new oi(fi((ii(),KZt))))}if($i(this),y=YE(this),d=null,y.e==2){if(y.Pm()!=2)throw _e(new oi(fi((ii(),XZt))));d=y.Lm(1),y=y.Lm(0)}if(this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),zi(),zi(),new gFt(g,l,y,d)},E.xm=function(){return $i(this),zi(),rXe},E.ym=function(){var i;if($i(this),i=aQ(24,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.zm=function(){var i;if($i(this),i=aQ(20,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Am=function(){var i;if($i(this),i=aQ(22,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Bm=function(){var i,l,d,g,y;for(i=0,d=0,l=-1;this.d<this.j&&(l=Do(this.i,this.d),y=IMe(l),y!=0);)i|=y,++this.d;if(this.d>=this.j)throw _e(new oi(fi((ii(),TUe))));if(l==45){for(++this.d;this.d<this.j&&(l=Do(this.i,this.d),y=IMe(l),y!=0);)d|=y,++this.d;if(this.d>=this.j)throw _e(new oi(fi((ii(),TUe))))}if(l==58){if(++this.d,$i(this),g=uLt(YE(this),i,d),this.c!=7)throw _e(new oi(fi((ii(),tw))));$i(this)}else if(l==41)++this.d,$i(this),g=uLt(YE(this),i,d);else throw _e(new oi(fi((ii(),jZt))));return g},E.Cm=function(){var i;if($i(this),i=aQ(21,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Dm=function(){var i;if($i(this),i=aQ(23,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Em=function(){var i,l;if($i(this),i=this.f++,l=Cde(YE(this),i),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),l},E.Fm=function(){var i;if($i(this),i=Cde(YE(this),0),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Gm=function(i){return $i(this),this.c==5?($i(this),XX(i,(zi(),zi(),new r4(9,i)))):XX(i,(zi(),zi(),new r4(3,i)))},E.Hm=function(i){var l;return $i(this),l=(zi(),zi(),new jL(2)),this.c==5?($i(this),V_(l,sB),V_(l,i)):(V_(l,i),V_(l,sB)),l},E.Im=function(i){return $i(this),this.c==5?($i(this),zi(),zi(),new r4(9,i)):(zi(),zi(),new r4(3,i))},E.a=0,E.b=0,E.c=0,E.d=0,E.e=0,E.f=1,E.g=null,E.j=0,K(yy,"RegEx/RegexParser",836),H(1947,836,{},O6t),E.bm=function(i){return!1},E.cm=function(){return aPe(this)},E.dm=function(i){return fI(i)},E.em=function(i){return PKt(this)},E.fm=function(){throw _e(new oi(fi((ii(),vf))))},E.gm=function(){throw _e(new oi(fi((ii(),vf))))},E.hm=function(){throw _e(new oi(fi((ii(),vf))))},E.im=function(){throw _e(new oi(fi((ii(),vf))))},E.jm=function(){return $i(this),fI(67)},E.km=function(){return $i(this),fI(73)},E.lm=function(){throw _e(new oi(fi((ii(),vf))))},E.mm=function(){throw _e(new oi(fi((ii(),vf))))},E.nm=function(){throw _e(new oi(fi((ii(),vf))))},E.om=function(){return $i(this),fI(99)},E.pm=function(){throw _e(new oi(fi((ii(),vf))))},E.qm=function(){throw _e(new oi(fi((ii(),vf))))},E.rm=function(){return $i(this),fI(105)},E.sm=function(){throw _e(new oi(fi((ii(),vf))))},E.tm=function(){throw _e(new oi(fi((ii(),vf))))},E.um=function(i,l){return C4(i,fI(l)),-1},E.vm=function(){return $i(this),zi(),zi(),new Fg(0,94)},E.wm=function(){throw _e(new oi(fi((ii(),vf))))},E.xm=function(){return $i(this),zi(),zi(),new Fg(0,36)},E.ym=function(){throw _e(new oi(fi((ii(),vf))))},E.zm=function(){throw _e(new oi(fi((ii(),vf))))},E.Am=function(){throw _e(new oi(fi((ii(),vf))))},E.Bm=function(){throw _e(new oi(fi((ii(),vf))))},E.Cm=function(){throw _e(new oi(fi((ii(),vf))))},E.Dm=function(){throw _e(new oi(fi((ii(),vf))))},E.Em=function(){var i;if($i(this),i=Cde(YE(this),0),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Fm=function(){throw _e(new oi(fi((ii(),vf))))},E.Gm=function(i){return $i(this),XX(i,(zi(),zi(),new r4(3,i)))},E.Hm=function(i){var l;return $i(this),l=(zi(),zi(),new jL(2)),V_(l,i),V_(l,sB),l},E.Im=function(i){return $i(this),zi(),zi(),new r4(3,i)};var oC=null,AN=null;K(yy,"RegEx/ParserForXMLSchema",1947),H(122,1,qI,rE),E.Jm=function(i){throw _e(new tc("Not supported."))},E.Km=function(){return-1},E.Lm=function(i){return null},E.Mm=function(){return null},E.Nm=function(i){},E.Om=function(i){},E.Pm=function(){return 0},E.Ib=function(){return this.Qm(0)},E.Qm=function(i){return this.e==11?".":""},E.e=0;var JKe,kN,aB,Bhn,eXe,p3=null,vre,Z2e=null,tXe,sB,J2e=null,nXe,rXe,iXe,aXe,sXe,Fhn,B6,$hn,Uhn,zhn,Ghn,RN,qhn,Hhn,aIr=K(yy,"RegEx/Token",122);H(138,122,{3:1,138:1,122:1},Td),E.Qm=function(i){var l,d,g;if(this.e==4)if(this==tXe)d=".";else if(this==vre)d="\\d";else if(this==RN)d="\\w";else if(this==B6)d="\\s";else{for(g=new qb,g.a+="[",l=0;l<this.b.length;l+=2)i&k0&&l>0&&(g.a+=","),this.b[l]===this.b[l+1]?bl(g,CG(this.b[l])):(bl(g,CG(this.b[l])),g.a+="-",bl(g,CG(this.b[l+1])));g.a+="]",d=g.a}else if(this==iXe)d="\\D";else if(this==sXe)d="\\W";else if(this==aXe)d="\\S";else{for(g=new qb,g.a+="[^",l=0;l<this.b.length;l+=2)i&k0&&l>0&&(g.a+=","),this.b[l]===this.b[l+1]?bl(g,CG(this.b[l])):(bl(g,CG(this.b[l])),g.a+="-",bl(g,CG(this.b[l+1])));g.a+="]",d=g.a}return d},E.a=!1,E.c=!1,K(yy,"RegEx/RangeToken",138),H(592,1,{592:1},k7e),E.a=0,K(yy,"RegEx/RegexParser/ReferencePosition",592),H(591,1,{3:1,591:1},j7t),E.Fb=function(i){var l;return i==null||!$e(i,591)?!1:(l=v(i,591),An(this.b,l.b)&&this.a==l.a)},E.Hb=function(){return ry(this.b+"/"+ZMe(this.a))},E.Ib=function(){return this.c.Qm(this.a)},E.a=0,K(yy,"RegEx/RegularExpression",591),H(228,122,qI,Fg),E.Km=function(){return this.a},E.Qm=function(i){var l,d,g;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:g="\\"+tde(this.a&vs);break;case 12:g="\\f";break;case 10:g="\\n";break;case 13:g="\\r";break;case 9:g="\\t";break;case 27:g="\\e";break;default:this.a>=el?(d=(l=this.a>>>0,"0"+l.toString(16)),g="\\v"+af(d,d.length-6,d.length)):g=""+tde(this.a&vs)}break;case 8:this==nXe||this==rXe?g=""+tde(this.a&vs):g="\\"+tde(this.a&vs);break;default:g=null}return g},E.a=0,K(yy,"RegEx/Token/CharToken",228),H(318,122,qI,r4),E.Lm=function(i){return this.a},E.Nm=function(i){this.b=i},E.Om=function(i){this.c=i},E.Pm=function(){return 1},E.Qm=function(i){var l;if(this.e==3)if(this.c<0&&this.b<0)l=this.a.Qm(i)+"*";else if(this.c==this.b)l=this.a.Qm(i)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)l=this.a.Qm(i)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)l=this.a.Qm(i)+"{"+this.c+",}";else throw _e(new tc("Token#toString(): CLOSURE "+this.c+Xo+this.b));else if(this.c<0&&this.b<0)l=this.a.Qm(i)+"*?";else if(this.c==this.b)l=this.a.Qm(i)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)l=this.a.Qm(i)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)l=this.a.Qm(i)+"{"+this.c+",}?";else throw _e(new tc("Token#toString(): NONGREEDYCLOSURE "+this.c+Xo+this.b));return l},E.b=0,E.c=0,K(yy,"RegEx/Token/ClosureToken",318),H(837,122,qI,bNe),E.Lm=function(i){return i==0?this.a:this.b},E.Pm=function(){return 2},E.Qm=function(i){var l;return this.b.e==3&&this.b.Lm(0)==this.a?l=this.a.Qm(i)+"+":this.b.e==9&&this.b.Lm(0)==this.a?l=this.a.Qm(i)+"+?":l=this.a.Qm(i)+(""+this.b.Qm(i)),l},K(yy,"RegEx/Token/ConcatToken",837),H(1945,122,qI,gFt),E.Lm=function(i){if(i==0)return this.d;if(i==1)return this.b;throw _e(new tc("Internal Error: "+i))},E.Pm=function(){return this.b?2:1},E.Qm=function(i){var l;return this.c>0?l="(?("+this.c+")":this.a.e==8?l="(?("+this.a+")":l="(?"+this.a,this.b?l+=this.d+"|"+this.b+")":l+=this.d+")",l},E.c=0,K(yy,"RegEx/Token/ConditionToken",1945),H(1946,122,qI,aMt),E.Lm=function(i){return this.b},E.Pm=function(){return 1},E.Qm=function(i){return"(?"+(this.a==0?"":ZMe(this.a))+(this.c==0?"":ZMe(this.c))+":"+this.b.Qm(i)+")"},E.a=0,E.c=0,K(yy,"RegEx/Token/ModifierToken",1946),H(838,122,qI,ANe),E.Lm=function(i){return this.a},E.Pm=function(){return 1},E.Qm=function(i){var l;switch(l=null,this.e){case 6:this.b==0?l="(?:"+this.a.Qm(i)+")":l="("+this.a.Qm(i)+")";break;case 20:l="(?="+this.a.Qm(i)+")";break;case 21:l="(?!"+this.a.Qm(i)+")";break;case 22:l="(?<="+this.a.Qm(i)+")";break;case 23:l="(?<!"+this.a.Qm(i)+")";break;case 24:l="(?>"+this.a.Qm(i)+")"}return l},E.b=0,K(yy,"RegEx/Token/ParenToken",838),H(530,122,{3:1,122:1,530:1},Zde),E.Mm=function(){return this.b},E.Qm=function(i){return this.e==12?"\\"+this.a:z3r(this.b)},E.a=0,K(yy,"RegEx/Token/StringToken",530),H(477,122,qI,jL),E.Jm=function(i){V_(this,i)},E.Lm=function(i){return v(kE(this.a,i),122)},E.Pm=function(){return this.a?this.a.a.c.length:0},E.Qm=function(i){var l,d,g,y,x;if(this.e==1){if(this.a.a.c.length==2)l=v(kE(this.a,0),122),d=v(kE(this.a,1),122),d.e==3&&d.Lm(0)==l?y=l.Qm(i)+"+":d.e==9&&d.Lm(0)==l?y=l.Qm(i)+"+?":y=l.Qm(i)+(""+d.Qm(i));else{for(x=new qb,g=0;g<this.a.a.c.length;g++)bl(x,v(kE(this.a,g),122).Qm(i));y=x.a}return y}if(this.a.a.c.length==2&&v(kE(this.a,1),122).e==7)y=v(kE(this.a,0),122).Qm(i)+"?";else if(this.a.a.c.length==2&&v(kE(this.a,0),122).e==7)y=v(kE(this.a,1),122).Qm(i)+"??";else{for(x=new qb,bl(x,v(kE(this.a,0),122).Qm(i)),g=1;g<this.a.a.c.length;g++)x.a+="|",bl(x,v(kE(this.a,g),122).Qm(i));y=x.a}return y},K(yy,"RegEx/Token/UnionToken",477),H(527,1,{600:1},dU),E.Ib=function(){return this.a.b},K(den,"XMLTypeUtil/PatternMatcherImpl",527),H(1707,1527,{},H3t);var Vhn;K(den,"XMLTypeValidator",1707),H(270,1,jg,S_),E.Jc=function(i){To(this,i)},E.Kc=function(){return(this.b-this.a)*this.c<0?T2:new Lv(this)},E.a=0,E.b=0,E.c=0;var T2;K(YUe,"ExclusiveRange",270),H(1084,1,Yg,V3t),E.Rb=function(i){v(i,17),wsr()},E.Nb=function(i){xo(this,i)},E.Pb=function(){return lar()},E.Ub=function(){return car()},E.Wb=function(i){v(i,17),xsr()},E.Ob=function(){return!1},E.Sb=function(){return!1},E.Tb=function(){return-1},E.Vb=function(){return-1},E.Qb=function(){throw _e(new zb(gen))},K(YUe,"ExclusiveRange/1",1084),H(258,1,Yg,Lv),E.Rb=function(i){v(i,17),Esr()},E.Nb=function(i){xo(this,i)},E.Pb=function(){return byr(this)},E.Ub=function(){return agr(this)},E.Wb=function(i){v(i,17),Ssr()},E.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},E.Sb=function(){return this.b>0},E.Tb=function(){return this.b},E.Vb=function(){return this.b-1},E.Qb=function(){throw _e(new zb(gen))},E.a=0,E.b=0,K(YUe,"ExclusiveRange/RangeIterator",258);var Tf=u8(Mee,"C"),Wr=u8(GM,"I"),Wh=u8(Zk,"Z"),C2=u8(qM,"J"),bh=u8($M,"B"),ao=u8(UM,"D"),g3=u8(zM,"F"),lC=u8(HM,"S"),sIr=$a("org.eclipse.elk.core.labels","ILabelManager"),oXe=$a(Qo,"DiagnosticChain"),lXe=$a(qJt,"ResourceSet"),cXe=K(Qo,"InvocationTargetException",null),Yhn=(OK(),_pr),jhn=jhn=hEr;fmr(oir),cmr("permProps",[[["locale","default"],[men,"gecko1_8"]],[["locale","default"],[men,"safari"]]]),jhn(null,"elk",null)}).call(this)}).call(this,typeof ml<"u"?ml:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(r,a,s){function o(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function u(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function h(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var f=r("./elk-api.js?v=1775123024591").default,p=function(m){h(b,m);function b(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o(this,b);var w=Object.assign({},_),S=!1;try{r.resolve("web-worker"),S=!0}catch{}if(_.workerUrl)if(S){var C=r("web-worker");w.workerFactory=function(I){return new C(I)}}else console.warn(`Web worker requested but 'web-worker' package not installed. 
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!w.workerFactory){var A=r("./elk-worker.min.js?v=1775123024591"),k=A.Worker;w.workerFactory=function(I){return new k(I)}}return u(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w))}return b}(f);Object.defineProperty(a.exports,"__esModule",{value:!0}),a.exports=p,p.default=p},{"./elk-api.js?v=1775123024591":1,"./elk-worker.min.js?v=1775123024591":2,"web-worker":4}],4:[function(r,a,s){a.exports=Worker},{}]},{},[3])(3)})})(Bnr);var xwa=Bnr.exports;const Swa=O1(xwa),Twa=(e,t,r)=>{const{parentById:a}=r,s=new Set;let o=e;for(;o;){if(s.add(o),o===t)return o;o=a[o]}for(o=t;o;){if(s.has(o))return o;o=a[o]}return"root"},eAn=new Swa;let Hx={};const Cwa={};let Y7={};const Awa=async function(e,t,r,a,s,o,u){const f=r.select(`[id="${t}"]`).insert("g").attr("class","nodes"),p=Object.keys(e);return await Promise.all(p.map(async function(m){const b=e[m];let _="default";b.classes.length>0&&(_=b.classes.join(" ")),_=_+" flowchart-label";const w=Hw(b.styles);let S=b.text!==void 0?b.text:b.id;const C={width:0,height:0},A=[{id:b.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:b.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:b.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:b.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let k=0,I="",N={};switch(b.type){case"round":k=5,I="rect";break;case"square":I="rect";break;case"diamond":I="question",N={portConstraints:"FIXED_SIDE"};break;case"hexagon":I="hexagon";break;case"odd":I="rect_left_inv_arrow";break;case"lean_right":I="lean_right";break;case"lean_left":I="lean_left";break;case"trapezoid":I="trapezoid";break;case"inv_trapezoid":I="inv_trapezoid";break;case"odd_right":I="rect_left_inv_arrow";break;case"circle":I="circle";break;case"ellipse":I="ellipse";break;case"stadium":I="stadium";break;case"subroutine":I="subroutine";break;case"cylinder":I="cylinder";break;case"group":I="rect";break;case"doublecircle":I="doublecircle";break;default:I="rect"}const L={labelStyle:w.labelStyle,shape:I,labelText:S,labelType:b.labelType,rx:k,ry:k,class:_,style:w.style,id:b.id,link:b.link,linkTarget:b.linkTarget,tooltip:s.db.getTooltip(b.id)||"",domId:s.db.lookUpDomId(b.id),haveCallback:b.haveCallback,width:b.type==="group"?500:void 0,dir:b.dir,type:b.type,props:b.props,padding:Lf().flowchart.padding};let P,M;if(L.type!=="group")M=await _6e(f,L,b.dir),P=M.node().getBBox();else{a.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:U,bbox:$}=await Up(f,L,void 0,!0);C.width=$.width,C.wrappingWidth=Lf().flowchart.wrappingWidth,C.height=$.height,C.labelNode=U.node(),L.labelData=C}const F={id:b.id,ports:b.type==="diamond"?A:[],layoutOptions:N,labelText:S,labelData:C,domId:s.db.lookUpDomId(b.id),width:P==null?void 0:P.width,height:P==null?void 0:P.height,type:b.type,el:M,parent:o.parentById[b.id]};Y7[L.id]=F})),u},tAn=(e,t,r)=>{const a={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 a.TD=a.TB,a[r][t][e]},nAn=(e,t,r)=>{if(ut.info("getNextPort",{node:e,edgeDirection:t,graphDirection:r}),!Hx[e])switch(r){case"TB":case"TD":Hx[e]={inPosition:"north",outPosition:"south"};break;case"BT":Hx[e]={inPosition:"south",outPosition:"north"};break;case"RL":Hx[e]={inPosition:"east",outPosition:"west"};break;case"LR":Hx[e]={inPosition:"west",outPosition:"east"};break}const a=t==="in"?Hx[e].inPosition:Hx[e].outPosition;return t==="in"?Hx[e].inPosition=tAn(Hx[e].inPosition,t,r):Hx[e].outPosition=tAn(Hx[e].outPosition,t,r),a},kwa=(e,t)=>{let r=e.start,a=e.end;const s=r,o=a,u=Y7[r],h=Y7[a];return!u||!h?{source:r,target:a}:(u.type==="diamond"&&(r=`${r}-${nAn(r,"out",t)}`),h.type==="diamond"&&(a=`${a}-${nAn(a,"in",t)}`),{source:r,target:a,sourceId:s,targetId:o})},Rwa=function(e,t,r,a){ut.info("abc78 edges = ",e);const s=a.insert("g").attr("class","edgeLabels");let o={},u=t.db.getDirection(),h,f;if(e.defaultStyle!==void 0){const p=Hw(e.defaultStyle);h=p.style,f=p.labelStyle}return e.forEach(function(p){const m="L-"+p.start+"-"+p.end;o[m]===void 0?(o[m]=0,ut.info("abc78 new entry",m,o[m])):(o[m]++,ut.info("abc78 new entry",m,o[m]));let b=m+"-"+o[m];ut.info("abc78 new link id to be used is",m,b,o[m]);const _="LS-"+p.start,w="LE-"+p.end,S={style:"",labelStyle:""};switch(S.minlen=p.length||1,p.type==="arrow_open"?S.arrowhead="none":S.arrowhead="normal",S.arrowTypeStart="arrow_open",S.arrowTypeEnd="arrow_open",p.type){case"double_arrow_cross":S.arrowTypeStart="arrow_cross";case"arrow_cross":S.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":S.arrowTypeStart="arrow_point";case"arrow_point":S.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":S.arrowTypeStart="arrow_circle";case"arrow_circle":S.arrowTypeEnd="arrow_circle";break}let C="",A="";switch(p.stroke){case"normal":C="fill:none;",h!==void 0&&(C=h),f!==void 0&&(A=f),S.thickness="normal",S.pattern="solid";break;case"dotted":S.thickness="normal",S.pattern="dotted",S.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":S.thickness="thick",S.pattern="solid",S.style="stroke-width: 3.5px;fill:none;";break}if(p.style!==void 0){const M=Hw(p.style);C=M.style,A=M.labelStyle}S.style=S.style+=C,S.labelStyle=S.labelStyle+=A,p.interpolate!==void 0?S.curve=fS(p.interpolate,Cg):e.defaultInterpolate!==void 0?S.curve=fS(e.defaultInterpolate,Cg):S.curve=fS(Cwa.curve,Cg),p.text===void 0?p.style!==void 0&&(S.arrowheadStyle="fill: #333"):(S.arrowheadStyle="fill: #333",S.labelpos="c"),S.labelType=p.labelType,S.label=p.text.replace(mi.lineBreakRegex,`
`),p.style===void 0&&(S.style=S.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),S.labelStyle=S.labelStyle.replace("color:","fill:"),S.id=b,S.classes="flowchart-link "+_+" "+w;const k=Kbt(s,S),{source:I,target:N,sourceId:L,targetId:P}=kwa(p,u);ut.debug("abc78 source and target",I,N),r.edges.push({id:"e"+p.start+p.end,sources:[I],targets:[N],sourceId:L,targetId:P,labelEl:k,labels:[{width:S.width,height:S.height,orgWidth:S.width,orgHeight:S.height,text:S.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:S})}),r},Iwa=function(e,t,r,a,s){let o="";a&&(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,o=o.replace(/\(/g,"\\("),o=o.replace(/\)/g,"\\)")),$er(e,t,o,s,r)},Nwa=function(e,t){return ut.info("Extracting classes"),t.db.getClasses()},Owa=function(e){const t={parentById:{},childrenById:{}},r=e.getSubGraphs();return ut.info("Subgraphs - ",r),r.forEach(function(a){a.nodes.forEach(function(s){t.parentById[s]=a.id,t.childrenById[a.id]===void 0&&(t.childrenById[a.id]=[]),t.childrenById[a.id].push(s)})}),r.forEach(function(a){a.id,t.parentById[a.id]!==void 0&&t.parentById[a.id]}),t},Lwa=function(e,t,r){const a=Twa(e,t,r);if(a===void 0||a==="root")return{x:0,y:0};const s=Y7[a].offset;return{x:s.posX,y:s.posY}},Dwa=function(e,t,r,a,s,o){const u=Lwa(t.sourceId,t.targetId,s),h=t.sections[0].startPoint,f=t.sections[0].endPoint,m=(t.sections[0].bendPoints?t.sections[0].bendPoints:[]).map(N=>[N.x+u.x,N.y+u.y]),b=[[h.x+u.x,h.y+u.y],...m,[f.x+u.x,f.y+u.y]],{x:_,y:w}=Fer(t.edgeData),S=r_().x(_).y(w).curve(Cg),C=e.insert("path").attr("d",S(b)).attr("class","path "+r.classes).attr("fill","none"),A=e.insert("g").attr("class","edgeLabel"),k=gn(A.node().appendChild(t.labelEl)),I=k.node().firstChild.getBoundingClientRect();k.attr("width",I.width),k.attr("height",I.height),A.attr("transform",`translate(${t.labels[0].x+u.x}, ${t.labels[0].y+u.y})`),Iwa(C,r,a.type,a.arrowMarkerAbsolute,o)},Fnr=(e,t)=>{e.forEach(r=>{r.children||(r.children=[]);const a=t.childrenById[r.id];a&&a.forEach(s=>{r.children.push(Y7[s])}),Fnr(r.children,t)})},Mwa=async function(e,t,r,a){var s;a.db.clear(),Y7={},Hx={},a.db.setGen("gen-2"),a.parser.parse(e);const o=gn("body").append("div").attr("style","height:400px").attr("id","cy");let u={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(ut.info("Drawing flowchart using v3 renderer",eAn),a.db.getDirection()){case"BT":u.layoutOptions["elk.direction"]="UP";break;case"TB":u.layoutOptions["elk.direction"]="DOWN";break;case"LR":u.layoutOptions["elk.direction"]="RIGHT";break;case"RL":u.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:f,flowchart:p}=Lf();let m;f==="sandbox"&&(m=gn("#i"+t));const b=gn(f==="sandbox"?m.nodes()[0].contentDocument.body:"body"),_=f==="sandbox"?m.nodes()[0].contentDocument:document,w=b.select(`[id="${t}"]`);jbt(w,["point","circle","cross"],a.type,t);const C=a.db.getVertices();let A;const k=a.db.getSubGraphs();ut.info("Subgraphs - ",k);for(let U=k.length-1;U>=0;U--)A=k[U],a.db.addVertex(A.id,{text:A.title,type:A.labelType},"group",void 0,A.classes,A.dir);const I=w.insert("g").attr("class","subgraphs"),N=Owa(a.db);u=await Awa(C,t,b,_,a,N,u);const L=w.insert("g").attr("class","edges edgePath"),P=a.db.getEdges();u=Rwa(P,a,u,w),Object.keys(Y7).forEach(U=>{const $=Y7[U];$.parent||u.children.push($),N.childrenById[U]!==void 0&&($.labels=[{text:$.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:$.labelData.width,height:$.labelData.height}],delete $.x,delete $.y,delete $.width,delete $.height)}),Fnr(u.children,N),ut.info("after layout",JSON.stringify(u,null,2));const F=await eAn.layout(u);$nr(0,0,F.children,w,I,a,0),ut.info("after layout",F),(s=F.edges)==null||s.map(U=>{Dwa(L,U,U.edgeData,a,N,t)}),oL({},w,p.diagramPadding,p.useMaxWidth),o.remove()},$nr=(e,t,r,a,s,o,u)=>{r.forEach(function(h){if(h)if(Y7[h.id].offset={posX:h.x+e,posY:h.y+t,x:e,y:t,depth:u,width:h.width,height:h.height},h.type==="group"){const f=s.insert("g").attr("class","subgraph");f.insert("rect").attr("class","subgraph subgraph-lvl-"+u%5+" node").attr("x",h.x+e).attr("y",h.y+t).attr("width",h.width).attr("height",h.height);const p=f.insert("g").attr("class","label"),m=Lf().flowchart.htmlLabels?h.labelData.width/2:0;p.attr("transform",`translate(${h.labels[0].x+e+h.x+m}, ${h.labels[0].y+t+h.y+3})`),p.node().appendChild(h.labelData.labelNode),ut.info("Id (UGH)= ",h.type,h.labels)}else ut.info("Id (UGH)= ",h.id),h.el.attr("transform",`translate(${h.x+e+h.width/2}, ${h.y+t+h.height/2})`)}),r.forEach(function(h){h&&h.type==="group"&&$nr(e+h.x,t+h.y,h.children,a,s,o,u+1)})},Pwa={getClasses:Nwa,draw:Mwa},Bwa=e=>{let t="";for(let r=0;r<5;r++)t+=`
      .subgraph-lvl-${r} {
        fill: ${e[`surface${r}`]};
        stroke: ${e[`surfacePeer${r}`]};
      }
    `;return t},Fwa=e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .cluster-label text {
    fill: ${e.titleColor};
  }
  .cluster-label span {
    color: ${e.titleColor};
  }

  .label text,span {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.85;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }

  .cluster rect {
    fill: ${e.clusterBkg};
    stroke: ${e.clusterBorder};
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  .cluster span {
    color: ${e.titleColor};
  }
  /* .cluster div {
    color: ${e.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
  .subgraph {
    stroke-width:2;
    rx:3;
  }
  // .subgraph-lvl-1 {
  //   fill:#ccc;
  //   // stroke:black;
  // }

  .flowchart-label text {
    text-anchor: middle;
  }

  ${Bwa(e)}
`,$wa=Fwa,Uwa={db:Nua,renderer:Pwa,parser:Pbt,styles:$wa},zwa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Uwa},Symbol.toStringTag,{value:"Module"}));var tdt=function(){var e=function(_,w,S,C){for(S=S||{},C=_.length;C--;S[_[C]]=w);return S},t=[6,8,10,11,12,14,16,17,20,21],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,16],f=[1,17],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(w,S,C,A,k,I,N){var L=I.length-1;switch(k){case 1:return I[L-1];case 2:this.$=[];break;case 3:I[L-1].push(I[L]),this.$=I[L-1];break;case 4:case 5:this.$=I[L];break;case 6:case 7:this.$=[];break;case 8:A.getCommonDb().setDiagramTitle(I[L].substr(6)),this.$=I[L].substr(6);break;case 9:this.$=I[L].trim(),A.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=I[L].trim(),A.getCommonDb().setAccDescription(this.$);break;case 12:A.addSection(I[L].substr(8)),this.$=I[L].substr(8);break;case 15:A.addTask(I[L],0,""),this.$=I[L];break;case 16:A.addEvent(I[L].substr(2)),this.$=I[L];break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:18,11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,19]},{15:[1,20]},e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,4]),e(t,[2,9]),e(t,[2,10])],defaultActions:{},parseError:function(w,S){if(S.recoverable)this.trace(w);else{var C=new Error(w);throw C.hash=S,C}},parse:function(w){var S=this,C=[0],A=[],k=[null],I=[],N=this.table,L="",P=0,M=0,F=2,U=1,$=I.slice.call(arguments,1),G=Object.create(this.lexer),B={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(B.yy[Z]=this.yy[Z]);G.setInput(w,B.yy),B.yy.lexer=G,B.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var z=G.yylloc;I.push(z);var Y=G.options&&G.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(){var be;return be=A.pop()||G.lex()||U,typeof be!="number"&&(be instanceof Array&&(A=be,be=A.pop()),be=S.symbols_[be]||be),be}for(var Q,V,j,ee,te={},ne,se,ie,ge;;){if(V=C[C.length-1],this.defaultActions[V]?j=this.defaultActions[V]:((Q===null||typeof Q>"u")&&(Q=W()),j=N[V]&&N[V][Q]),typeof j>"u"||!j.length||!j[0]){var ce="";ge=[];for(ne in N[V])this.terminals_[ne]&&ne>F&&ge.push("'"+this.terminals_[ne]+"'");G.showPosition?ce="Parse error on line "+(P+1)+`:
`+G.showPosition()+`
Expecting `+ge.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":ce="Parse error on line "+(P+1)+": Unexpected "+(Q==U?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(ce,{text:G.match,token:this.terminals_[Q]||Q,line:G.yylineno,loc:z,expected:ge})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+Q);switch(j[0]){case 1:C.push(Q),k.push(G.yytext),I.push(G.yylloc),C.push(j[1]),Q=null,M=G.yyleng,L=G.yytext,P=G.yylineno,z=G.yylloc;break;case 2:if(se=this.productions_[j[1]][1],te.$=k[k.length-se],te._$={first_line:I[I.length-(se||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(se||1)].first_column,last_column:I[I.length-1].last_column},Y&&(te._$.range=[I[I.length-(se||1)].range[0],I[I.length-1].range[1]]),ee=this.performAction.apply(te,[L,M,P,B.yy,j[1],k,I].concat($)),typeof ee<"u")return ee;se&&(C=C.slice(0,-1*se*2),k=k.slice(0,-1*se),I=I.slice(0,-1*se)),C.push(this.productions_[j[1]][0]),k.push(te.$),I.push(te._$),ie=N[C[C.length-2]][C[C.length-1]],C.push(ie);break;case 3:return!0}}return!0}},m=function(){var _={EOF:1,parseError:function(S,C){if(this.yy.parser)this.yy.parser.parseError(S,C);else throw new Error(S)},setInput:function(w,S){return this.yy=S||this.yy||{},this._input=w,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 w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var S=w.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var S=w.length,C=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var A=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),C.length-1&&(this.yylineno-=C.length-1);var k=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:C?(C.length===A.length?this.yylloc.first_column:0)+A[A.length-C.length].length-C[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),S=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+S+"^"},test_match:function(w,S){var C,A,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),A=w[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],C=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var I in k)this[I]=k[I];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,S,C,A;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),I=0;I<k.length;I++)if(C=this._input.match(this.rules[k[I]]),C&&(!S||C[0].length>S[0].length)){if(S=C,A=I,this.options.backtrack_lexer){if(w=this.test_match(C,k[I]),w!==!1)return w;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(w=this.test_match(S,k[A]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>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(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(S,C,A,k){switch(A){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\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:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return _}();p.lexer=m;function b(){this.yy={}}return b.prototype=p,p.Parser=b,new b}();tdt.parser=tdt;const Gwa=tdt;let pW="",Unr=0;const Tyt=[],w5e=[],gW=[],znr=()=>SZn,Gnr=function(){Tyt.length=0,w5e.length=0,pW="",gW.length=0,Mb()},qnr=function(e){pW=e,Tyt.push(e)},Hnr=function(){return Tyt},Vnr=function(){let e=rAn();const t=100;let r=0;for(;!e&&r<t;)e=rAn(),r++;return w5e.push(...gW),w5e},Ynr=function(e,t,r){const a={id:Unr++,section:pW,type:pW,task:e,score:t||0,events:r?[r]:[]};gW.push(a)},jnr=function(e){gW.find(r=>r.id===Unr-1).events.push(e)},Wnr=function(e){const t={section:pW,type:pW,description:e,task:e,classes:[]};w5e.push(t)},rAn=function(){const e=function(r){return gW[r].processed};let t=!0;for(const[r,a]of gW.entries())e(r),t=t&&a.processed;return t},qwa={clear:Gnr,getCommonDb:znr,addSection:qnr,getSections:Hnr,getTasks:Vnr,addTask:Ynr,addTaskOrg:Wnr,addEvent:jnr},Hwa=Object.freeze(Object.defineProperty({__proto__:null,addEvent:jnr,addSection:qnr,addTask:Ynr,addTaskOrg:Wnr,clear:Gnr,default:qwa,getCommonDb:znr,getSections:Hnr,getTasks:Vnr},Symbol.toStringTag,{value:"Module"})),Vwa=12,C6e=function(e,t){const r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},Ywa=function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(s):t.score<3?u(s):h(s),a},jwa=function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},Knr=function(e,t){const r=t.text.replace(/<br\s*\/?>/gi," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},Wwa=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Knr(e,t)},Kwa=function(e,t,r){const a=e.append("g"),s=Cyt();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,C6e(a,s),Xnr(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)};let iAn=-1;const Xwa=function(e,t,r){const a=t.x+r.width/2,s=e.append("g");iAn++;const o=300+5*30;s.append("line").attr("id","task"+iAn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ywa(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=Cyt();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,C6e(s,u),t.x+14,Xnr(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},Qwa=function(e,t){C6e(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Zwa=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Cyt=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Xnr=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(/<br\s*\/?>/gi);for(let A=0;A<C.length;A++){const k=A*w-w*(C.length-1)/2,I=o.append("text").attr("x",u+f/2).attr("y",h).attr("fill",_).style("text-anchor","middle").style("font-size",w).style("font-family",S);I.append("tspan").attr("x",u+f/2).attr("dy",k).text(C[A]),I.attr("y",h+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(I,m)}}function r(s,o,u,h,f,p,m,b){const _=o.append("switch"),S=_.append("foreignObject").attr("x",u).attr("y",h).attr("width",f).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");S.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,_,u,h,f,p,m,b),a(S,m)}function a(s,o){for(const u in o)u in o&&s.attr(u,o[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}}(),Jwa=function(e){e.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")};function Qnr(e,t){e.each(function(){var r=gn(this),a=r.text().split(/(\s+|<br>)/).reverse(),s,o=[],u=1.1,h=r.attr("y"),f=parseFloat(r.attr("dy")),p=r.text(null).append("tspan").attr("x",0).attr("y",h).attr("dy",f+"em");for(let m=0;m<a.length;m++)s=a[a.length-1-m],o.push(s),p.text(o.join(" ").trim()),(p.node().getComputedTextLength()>t||s==="<br>")&&(o.pop(),p.text(o.join(" ").trim()),s==="<br>"?o=[""]:o=[s],p=r.append("tspan").attr("x",0).attr("y",h).attr("dy",u+"em").text(s))})}const eEa=function(e,t,r,a){const s=r%Vwa-1,o=e.append("g");t.section=s,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const u=o.append("g"),h=o.append("g"),p=h.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Qnr,t.width).node().getBBox(),m=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,h.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),nEa(u,t,s),t},tEa=function(e,t,r){const a=e.append("g"),o=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Qnr,t.width).node().getBBox(),u=r.fontSize&&r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;return a.remove(),o.height+u*1.1*.5+t.padding},nEa=function(e,t,r){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},VB={drawRect:C6e,drawCircle:jwa,drawSection:Kwa,drawText:Knr,drawLabel:Wwa,drawTask:Xwa,drawBackgroundRect:Qwa,getTextObj:Zwa,getNoteRect:Cyt,initGraphics:Jwa,drawNode:eEa,getVirtualNodeHeight:tEa},rEa=function(e,t,r,a){var s,o;const u=Qt(),h=u.leftMargin??50;ut.debug("timeline",a.db);const f=u.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const b=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select("#"+t);b.append("g");const _=a.db.getTasks(),w=a.db.getCommonDb().getDiagramTitle();ut.debug("task",_),VB.initGraphics(b);const S=a.db.getSections();ut.debug("sections",S);let C=0,A=0,k=0,I=0,N=50+h,L=50;I=50;let P=0,M=!0;S.forEach(function(B){const Z={number:P,descr:B,section:P,width:150,padding:20,maxHeight:C},z=VB.getVirtualNodeHeight(b,Z,u);ut.debug("sectionHeight before draw",z),C=Math.max(C,z+20)});let F=0,U=0;ut.debug("tasks.length",_.length);for(const[B,Z]of _.entries()){const z={number:B,descr:Z,section:Z.section,width:150,padding:20,maxHeight:A},Y=VB.getVirtualNodeHeight(b,z,u);ut.debug("taskHeight before draw",Y),A=Math.max(A,Y+20),F=Math.max(F,Z.events.length);let W=0;for(let Q=0;Q<Z.events.length;Q++){const j={descr:Z.events[Q],section:Z.section,number:Z.section,width:150,padding:20,maxHeight:50};W+=VB.getVirtualNodeHeight(b,j,u)}U=Math.max(U,W)}ut.debug("maxSectionHeight before draw",C),ut.debug("maxTaskHeight before draw",A),S&&S.length>0?S.forEach(B=>{const Z=_.filter(Q=>Q.section===B),z={number:P,descr:B,section:P,width:200*Math.max(Z.length,1)-50,padding:20,maxHeight:C};ut.debug("sectionNode",z);const Y=b.append("g"),W=VB.drawNode(Y,z,P,u);ut.debug("sectionNode output",W),Y.attr("transform",`translate(${N}, ${I})`),L+=C+50,Z.length>0&&aAn(b,Z,P,N,L,A,u,F,U,C,!1),N+=200*Math.max(Z.length,1),L=I,P++}):(M=!1,aAn(b,_,P,N,L,A,u,F,U,C,!0));const $=b.node().getBBox();ut.debug("bounds",$),w&&b.append("text").text(w).attr("x",$.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),k=M?C+A+150:A+100,b.append("g").attr("class","lineWrapper").append("line").attr("x1",h).attr("y1",k).attr("x2",$.width+3*h).attr("y2",k).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),oL(void 0,b,((s=u.timeline)==null?void 0:s.padding)??50,((o=u.timeline)==null?void 0:o.useMaxWidth)??!1)},aAn=function(e,t,r,a,s,o,u,h,f,p,m){var b;for(const _ of t){const w={descr:_.task,section:r,number:r,width:150,padding:20,maxHeight:o};ut.debug("taskNode",w);const S=e.append("g").attr("class","taskWrapper"),A=VB.drawNode(S,w,r,u).height;if(ut.debug("taskHeight after draw",A),S.attr("transform",`translate(${a}, ${s})`),o=Math.max(o,A),_.events){const k=e.append("g").attr("class","lineWrapper");let I=o;s+=100,I=I+iEa(e,_.events,r,a,s,u),s-=100,k.append("line").attr("x1",a+190/2).attr("y1",s+o).attr("x2",a+190/2).attr("y2",s+o+(m?o:p)+f+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,m&&!((b=u.timeline)!=null&&b.disableMulticolor)&&r++}s=s-10},iEa=function(e,t,r,a,s,o){let u=0;const h=s;s=s+100;for(const f of t){const p={descr:f,section:r,number:r,width:150,padding:20,maxHeight:50};ut.debug("eventNode",p);const m=e.append("g").attr("class","eventWrapper"),_=VB.drawNode(m,p,r,o).height;u=u+_,m.attr("transform",`translate(${a}, ${s})`),s=s+10+_}return s=h,u},aEa={setConf:()=>{},draw:rEa},sEa=e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],bv(e["lineColor"+r])?e["lineColor"+r]=Nr(e["lineColor"+r],20):e["lineColor"+r]=qr(e["lineColor"+r],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const a=""+(17-3*r);t+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path  {
      fill: ${e["cScale"+r]};
    }
    .section-${r-1} text {
     fill: ${e["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${e["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${a};
    }
    .section-${r-1} line {
      stroke: ${e["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .lineWrapper line{
      stroke: ${e["cScaleLabel"+r]} ;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }
    `}return t},oEa=e=>`
  .edge {
    stroke-width: 3;
  }
  ${sEa(e)}
  .section-root rect, .section-root path, .section-root circle  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .eventWrapper  {
   filter: brightness(120%);
  }
`,lEa=oEa,cEa={db:Hwa,renderer:aEa,parser:Gwa,styles:lEa},uEa=Object.freeze(Object.defineProperty({__proto__:null,diagram:cEa},Symbol.toStringTag,{value:"Module"}));var ndt=function(){var e=function(L,P,M,F){for(M=M||{},F=L.length;F--;M[L[F]]=P);return M},t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,6,13,15,16,19,22],S=[1,33],C=[1,34],A=[1,6,7,11,13,15,16,19,22],k={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(P,M,F,U,$,G,B){var Z=G.length-1;switch($){case 6:case 7:return U;case 8:U.getLogger().trace("Stop NL ");break;case 9:U.getLogger().trace("Stop EOF ");break;case 11:U.getLogger().trace("Stop NL2 ");break;case 12:U.getLogger().trace("Stop EOF2 ");break;case 15:U.getLogger().info("Node: ",G[Z].id),U.addNode(G[Z-1].length,G[Z].id,G[Z].descr,G[Z].type);break;case 16:U.getLogger().trace("Icon: ",G[Z]),U.decorateNode({icon:G[Z]});break;case 17:case 21:U.decorateNode({class:G[Z]});break;case 18:U.getLogger().trace("SPACELIST");break;case 19:U.getLogger().trace("Node: ",G[Z].id),U.addNode(0,G[Z].id,G[Z].descr,G[Z].type);break;case 20:U.decorateNode({icon:G[Z]});break;case 25:U.getLogger().trace("node found ..",G[Z-2]),this.$={id:G[Z-1],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break;case 26:this.$={id:G[Z],descr:G[Z],type:U.nodeType.DEFAULT};break;case 27:U.getLogger().trace("node found ..",G[Z-3]),this.$={id:G[Z-3],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:r,9:22,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:p,7:m,10:23,11:b},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:h}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:m,10:32,11:b},{1:[2,7],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(w,[2,14],{7:S,11:C}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(w,[2,13],{7:S,11:C}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(P,M){if(M.recoverable)this.trace(P);else{var F=new Error(P);throw F.hash=M,F}},parse:function(P){var M=this,F=[0],U=[],$=[null],G=[],B=this.table,Z="",z=0,Y=0,W=2,Q=1,V=G.slice.call(arguments,1),j=Object.create(this.lexer),ee={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(ee.yy[te]=this.yy[te]);j.setInput(P,ee.yy),ee.yy.lexer=j,ee.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var ne=j.yylloc;G.push(ne);var se=j.options&&j.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(){var Ie;return Ie=U.pop()||j.lex()||Q,typeof Ie!="number"&&(Ie instanceof Array&&(U=Ie,Ie=U.pop()),Ie=M.symbols_[Ie]||Ie),Ie}for(var ge,ce,be,ve,De={},ye,Ee,he,we;;){if(ce=F[F.length-1],this.defaultActions[ce]?be=this.defaultActions[ce]:((ge===null||typeof ge>"u")&&(ge=ie()),be=B[ce]&&B[ce][ge]),typeof be>"u"||!be.length||!be[0]){var Ce="";we=[];for(ye in B[ce])this.terminals_[ye]&&ye>W&&we.push("'"+this.terminals_[ye]+"'");j.showPosition?Ce="Parse error on line "+(z+1)+`:
`+j.showPosition()+`
Expecting `+we.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'":Ce="Parse error on line "+(z+1)+": Unexpected "+(ge==Q?"end of input":"'"+(this.terminals_[ge]||ge)+"'"),this.parseError(Ce,{text:j.match,token:this.terminals_[ge]||ge,line:j.yylineno,loc:ne,expected:we})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+ge);switch(be[0]){case 1:F.push(ge),$.push(j.yytext),G.push(j.yylloc),F.push(be[1]),ge=null,Y=j.yyleng,Z=j.yytext,z=j.yylineno,ne=j.yylloc;break;case 2:if(Ee=this.productions_[be[1]][1],De.$=$[$.length-Ee],De._$={first_line:G[G.length-(Ee||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(Ee||1)].first_column,last_column:G[G.length-1].last_column},se&&(De._$.range=[G[G.length-(Ee||1)].range[0],G[G.length-1].range[1]]),ve=this.performAction.apply(De,[Z,Y,z,ee.yy,be[1],$,G].concat(V)),typeof ve<"u")return ve;Ee&&(F=F.slice(0,-1*Ee*2),$=$.slice(0,-1*Ee),G=G.slice(0,-1*Ee)),F.push(this.productions_[be[1]][0]),$.push(De.$),G.push(De._$),he=B[F[F.length-2]][F[F.length-1]],F.push(he);break;case 3:return!0}}return!0}},I=function(){var L={EOF:1,parseError:function(M,F){if(this.yy.parser)this.yy.parser.parseError(M,F);else throw new Error(M)},setInput:function(P,M){return this.yy=M||this.yy||{},this._input=P,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 P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var M=P.match(/(?:\r\n?|\n).*/g);return M?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),P},unput:function(P){var M=P.length,F=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-M),this.offset-=M;var U=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),F.length-1&&(this.yylineno-=F.length-1);var $=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:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-M},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-M]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(P){this.unput(this.match.slice(P))},pastInput:function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var P=this.match;return P.length<20&&(P+=this._input.substr(0,20-P.length)),(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var P=this.pastInput(),M=new Array(P.length+1).join("-");return P+this.upcomingInput()+`
`+M+"^"},test_match:function(P,M){var F,U,$;if(this.options.backtrack_lexer&&($={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&&($.yylloc.range=this.yylloc.range.slice(0))),U=P[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,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(P[0].length),this.matched+=P[0],F=this.performAction.call(this,this.yy,this,M,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var G in $)this[G]=$[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var P,M,F,U;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),G=0;G<$.length;G++)if(F=this._input.match(this.rules[$[G]]),F&&(!M||F[0].length>M[0].length)){if(M=F,U=G,this.options.backtrack_lexer){if(P=this.test_match(F,$[G]),P!==!1)return P;if(this._backtrack){M=!1;continue}else return!1}else if(!this.options.flex)break}return M?(P=this.test_match(M,$[U]),P!==!1?P:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var M=this.next();return M||this.lex()},begin:function(M){this.conditionStack.push(M)},popState:function(){var M=this.conditionStack.length-1;return M>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(M){return M=this.conditionStack.length-1-Math.abs(M||0),M>=0?this.conditionStack[M]:"INITIAL"},pushState:function(M){this.begin(M)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(M,F,U,$){switch(U){case 0:return M.getLogger().trace("Found comment",F.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:M.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return M.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:M.getLogger().trace("end icon"),this.popState();break;case 10:return M.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return M.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return M.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return M.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:M.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return M.getLogger().trace("description:",F.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),M.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),M.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),M.getLogger().trace("node end ...",F.yytext),"NODE_DEND";case 30:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 35:return M.getLogger().trace("Long description:",F.yytext),20;case 36:return M.getLogger().trace("Long description:",F.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,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();k.lexer=I;function N(){this.yy={}}return N.prototype=k,k.Parser=N,new N}();ndt.parser=ndt;const hEa=ndt;let iT=[],Znr=0,Ayt={};const dEa=()=>{iT=[],Znr=0,Ayt={}},fEa=function(e){for(let t=iT.length-1;t>=0;t--)if(iT[t].level<e)return iT[t];return null},pEa=()=>iT.length>0?iT[0]:null,gEa=(e,t,r,a)=>{var s,o;ut.info("addNode",e,t,r,a);const u=Qt();let h=((s=u.mindmap)==null?void 0:s.padding)??fd.mindmap.padding;switch(a){case Sp.ROUNDED_RECT:case Sp.RECT:case Sp.HEXAGON:h*=2}const f={id:Znr++,nodeId:J0(t,u),level:e,descr:J0(r,u),type:a,children:[],width:((o=u.mindmap)==null?void 0:o.maxNodeWidth)??fd.mindmap.maxNodeWidth,padding:h},p=fEa(e);if(p)p.children.push(f),iT.push(f);else if(iT.length===0)iT.push(f);else throw new Error('There can be only one root. No parent could be found for ("'+f.descr+'")')},Sp={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},mEa=(e,t)=>{switch(ut.debug("In get type",e,t),e){case"[":return Sp.RECT;case"(":return t===")"?Sp.ROUNDED_RECT:Sp.CLOUD;case"((":return Sp.CIRCLE;case")":return Sp.CLOUD;case"))":return Sp.BANG;case"{{":return Sp.HEXAGON;default:return Sp.DEFAULT}},bEa=(e,t)=>{Ayt[e]=t},yEa=e=>{if(!e)return;const t=Qt(),r=iT[iT.length-1];e.icon&&(r.icon=J0(e.icon,t)),e.class&&(r.class=J0(e.class,t))},vEa=e=>{switch(e){case Sp.DEFAULT:return"no-border";case Sp.RECT:return"rect";case Sp.ROUNDED_RECT:return"rounded-rect";case Sp.CIRCLE:return"circle";case Sp.CLOUD:return"cloud";case Sp.BANG:return"bang";case Sp.HEXAGON:return"hexgon";default:return"no-border"}},_Ea=()=>ut,wEa=e=>Ayt[e],EEa={clear:dEa,addNode:gEa,getMindmap:pEa,nodeType:Sp,getType:mEa,setElementForId:bEa,decorateNode:yEa,type2Str:vEa,getLogger:_Ea,getElementById:wEa},xEa=EEa,SEa=12,TEa=function(e,t,r,a){t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${-r.height+2*5} q0,-5 5,-5 h${r.width-2*5} q5,0 5,5 v${r.height-5} H0 Z`),t.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},CEa=function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},AEa=function(e,t,r){const a=r.width,s=r.height,o=.15*a,u=.25*a,h=.35*a,f=.2*a;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${o},${o} 0 0,1 ${a*.25},${-1*a*.1}
      a${h},${h} 1 0,1 ${a*.4},${-1*a*.1}
      a${u},${u} 1 0,1 ${a*.35},${1*a*.2}

      a${o},${o} 1 0,1 ${a*.15},${1*s*.35}
      a${f},${f} 1 0,1 ${-1*a*.15},${1*s*.65}

      a${u},${o} 1 0,1 ${-1*a*.25},${a*.15}
      a${h},${h} 1 0,1 ${-1*a*.5},0
      a${o},${o} 1 0,1 ${-1*a*.25},${-1*a*.15}

      a${o},${o} 1 0,1 ${-1*a*.1},${-1*s*.35}
      a${f},${f} 1 0,1 ${a*.1},${-1*s*.65}

    H0 V0 Z`)},kEa=function(e,t,r){const a=r.width,s=r.height,o=.15*a;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${o},${o} 1 0,0 ${a*.25},${-1*s*.1}
      a${o},${o} 1 0,0 ${a*.25},0
      a${o},${o} 1 0,0 ${a*.25},0
      a${o},${o} 1 0,0 ${a*.25},${1*s*.1}

      a${o},${o} 1 0,0 ${a*.15},${1*s*.33}
      a${o*.8},${o*.8} 1 0,0 0,${1*s*.34}
      a${o},${o} 1 0,0 ${-1*a*.15},${1*s*.33}

      a${o},${o} 1 0,0 ${-1*a*.25},${s*.15}
      a${o},${o} 1 0,0 ${-1*a*.25},0
      a${o},${o} 1 0,0 ${-1*a*.25},0
      a${o},${o} 1 0,0 ${-1*a*.25},${-1*s*.15}

      a${o},${o} 1 0,0 ${-1*a*.1},${-1*s*.33}
      a${o*.8},${o*.8} 1 0,0 0,${-1*s*.34}
      a${o},${o} 1 0,0 ${a*.1},${-1*s*.33}

    H0 V0 Z`)},REa=function(e,t,r){t.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("r",r.width/2)};function IEa(e,t,r,a,s){return e.insert("polygon",":first-child").attr("points",a.map(function(o){return o.x+","+o.y}).join(" ")).attr("transform","translate("+(s.width-t)/2+", "+r+")")}const NEa=function(e,t,r){const a=r.height,o=a/4,u=r.width-r.padding+2*o,h=[{x:o,y:0},{x:u-o,y:0},{x:u,y:-a/2},{x:u-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}];IEa(t,u,a,h,r)},OEa=function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},LEa=function(e,t,r,a,s){const o=s.htmlLabels,u=a%(SEa-1),h=t.append("g");r.section=u;let f="section-"+u;u<0&&(f+=" section-root"),h.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+f);const p=h.append("g"),m=h.append("g"),b=r.descr.replace(/(<br\/*>)/g,`
`);v6e(m,b,{useHtmlLabels:o,width:r.width,classes:"mindmap-node-label"}),o||m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const _=m.node().getBBox(),[w]=J$(s.fontSize);if(r.height=_.height+w*1.1*.5+r.padding,r.width=_.width+2*r.padding,r.icon)if(r.type===e.nodeType.CIRCLE)r.height+=50,r.width+=50,h.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+r.icon),m.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;const S=r.height;r.height=Math.max(S,60);const C=Math.abs(r.height-S);h.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+C/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+r.icon),m.attr("transform","translate("+(25+r.width/2)+", "+(C/2+r.padding/2)+")")}else if(o){const S=(r.width-_.width)/2,C=(r.height-_.height)/2;m.attr("transform","translate("+S+", "+C+")")}else{const S=r.width/2,C=r.padding/2;m.attr("transform","translate("+S+", "+C+")")}switch(r.type){case e.nodeType.DEFAULT:TEa(e,p,r,u);break;case e.nodeType.ROUNDED_RECT:OEa(e,p,r);break;case e.nodeType.RECT:CEa(e,p,r);break;case e.nodeType.CIRCLE:p.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),REa(e,p,r);break;case e.nodeType.CLOUD:AEa(e,p,r);break;case e.nodeType.BANG:kEa(e,p,r);break;case e.nodeType.HEXAGON:NEa(e,p,r);break}return e.setElementForId(r.id,h),r.height},DEa=function(e,t){const r=e.getElementById(t.id),a=t.x||0,s=t.y||0;r.attr("transform","translate("+a+","+s+")")};CS.use(KVn);function Jnr(e,t,r,a,s){LEa(e,t,r,a,s),r.children&&r.children.forEach((o,u)=>{Jnr(e,t,o,a<0?u:a,s)})}function MEa(e,t){t.edges().map((r,a)=>{const s=r.data();if(r[0]._private.bodyBounds){const o=r[0]._private.rscratch;ut.trace("Edge: ",a,s),e.insert("path").attr("d",`M ${o.startX},${o.startY} L ${o.midX},${o.midY} L${o.endX},${o.endY} `).attr("class","edge section-edge-"+s.section+" edge-depth-"+s.depth)}})}function err(e,t,r,a){t.add({group:"nodes",data:{id:e.id.toString(),labelText:e.descr,height:e.height,width:e.width,level:a,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(s=>{err(s,t,r,a+1),t.add({group:"edges",data:{id:`${e.id}_${s.id}`,source:e.id,target:s.id,depth:a,section:s.section}})})}function PEa(e,t){return new Promise(r=>{const a=gn("body").append("div").attr("id","cy").attr("style","display:none"),s=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),err(e,s,t,0),s.nodes().forEach(function(o){o.layoutDimensions=()=>{const u=o.data();return{w:u.width,h:u.height}}}),s.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),s.ready(o=>{ut.info("Ready",o),r(s)})})}function BEa(e,t){t.nodes().map((r,a)=>{const s=r.data();s.x=r.position().x,s.y=r.position().y,DEa(e,s);const o=e.getElementById(s.nodeId);ut.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",s),o.attr("transform",`translate(${r.position().x-s.width/2}, ${r.position().y-s.height/2})`),o.attr("attr",`apa-${a})`)})}const FEa=async(e,t,r,a)=>{var s,o;ut.debug(`Rendering mindmap diagram
`+e);const u=a.db,h=u.getMindmap();if(!h)return;const f=Qt();f.htmlLabels=!1;const p=Zce(t),m=p.append("g");m.attr("class","mindmap-edges");const b=p.append("g");b.attr("class","mindmap-nodes"),Jnr(u,b,h,-1,f);const _=await PEa(h,f);MEa(m,_),BEa(u,_),oL(void 0,p,((s=f.mindmap)==null?void 0:s.padding)??fd.mindmap.padding,((o=f.mindmap)==null?void 0:o.useMaxWidth)??fd.mindmap.useMaxWidth)},$Ea={draw:FEa},UEa=e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],bv(e["lineColor"+r])?e["lineColor"+r]=Nr(e["lineColor"+r],20):e["lineColor"+r]=qr(e["lineColor"+r],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const a=""+(17-3*r);t+=`
    .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path  {
      fill: ${e["cScale"+r]};
    }
    .section-${r-1} text {
     fill: ${e["cScaleLabel"+r]};
    }
    .node-icon-${r-1} {
      font-size: 40px;
      color: ${e["cScaleLabel"+r]};
    }
    .section-edge-${r-1}{
      stroke: ${e["cScale"+r]};
    }
    .edge-depth-${r-1}{
      stroke-width: ${a};
    }
    .section-${r-1} line {
      stroke: ${e["cScaleInv"+r]} ;
      stroke-width: 3;
    }

    .disabled, .disabled circle, .disabled text {
      fill: lightgray;
    }
    .disabled text {
      fill: #efefef;
    }
    `}return t},zEa=e=>`
  .edge {
    stroke-width: 3;
  }
  ${UEa(e)}
  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {
    fill: ${e.git0};
  }
  .section-root text {
    fill: ${e.gitBranchLabel0};
  }
  .icon-container {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .edge {
    fill: none;
  }
  .mindmap-node-label {
    dy: 1em;
    alignment-baseline: middle;
    text-anchor: middle;
    dominant-baseline: middle;
    text-align: center;
  }
`,GEa=zEa,qEa={db:xEa,renderer:$Ea,parser:hEa,styles:GEa},HEa=Object.freeze(Object.defineProperty({__proto__:null,diagram:qEa},Symbol.toStringTag,{value:"Module"}));var rdt=function(){var e=function(h,f,p,m){for(p=p||{},m=h.length;m--;p[h[m]]=f);return p},t=[1,9],r=[1,10],a=[1,5,10,12],s={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(f,p,m,b,_,w,S){var C=w.length-1;switch(_){case 7:const A=b.findOrCreateNode(w[C-4].trim().replaceAll('""','"')),k=b.findOrCreateNode(w[C-2].trim().replaceAll('""','"')),I=parseFloat(w[C].trim());b.addLink(A,k,I);break;case 8:case 9:case 11:this.$=w[C];break;case 10:this.$=w[C-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(f,p){if(p.recoverable)this.trace(f);else{var m=new Error(f);throw m.hash=p,m}},parse:function(f){var p=this,m=[0],b=[],_=[null],w=[],S=this.table,C="",A=0,k=0,I=2,N=1,L=w.slice.call(arguments,1),P=Object.create(this.lexer),M={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(M.yy[F]=this.yy[F]);P.setInput(f,M.yy),M.yy.lexer=P,M.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var U=P.yylloc;w.push(U);var $=P.options&&P.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(){var ne;return ne=b.pop()||P.lex()||N,typeof ne!="number"&&(ne instanceof Array&&(b=ne,ne=b.pop()),ne=p.symbols_[ne]||ne),ne}for(var B,Z,z,Y,W={},Q,V,j,ee;;){if(Z=m[m.length-1],this.defaultActions[Z]?z=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=G()),z=S[Z]&&S[Z][B]),typeof z>"u"||!z.length||!z[0]){var te="";ee=[];for(Q in S[Z])this.terminals_[Q]&&Q>I&&ee.push("'"+this.terminals_[Q]+"'");P.showPosition?te="Parse error on line "+(A+1)+`:
`+P.showPosition()+`
Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":te="Parse error on line "+(A+1)+": Unexpected "+(B==N?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(te,{text:P.match,token:this.terminals_[B]||B,line:P.yylineno,loc:U,expected:ee})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(z[0]){case 1:m.push(B),_.push(P.yytext),w.push(P.yylloc),m.push(z[1]),B=null,k=P.yyleng,C=P.yytext,A=P.yylineno,U=P.yylloc;break;case 2:if(V=this.productions_[z[1]][1],W.$=_[_.length-V],W._$={first_line:w[w.length-(V||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(V||1)].first_column,last_column:w[w.length-1].last_column},$&&(W._$.range=[w[w.length-(V||1)].range[0],w[w.length-1].range[1]]),Y=this.performAction.apply(W,[C,k,A,M.yy,z[1],_,w].concat(L)),typeof Y<"u")return Y;V&&(m=m.slice(0,-1*V*2),_=_.slice(0,-1*V),w=w.slice(0,-1*V)),m.push(this.productions_[z[1]][0]),_.push(W.$),w.push(W._$),j=S[m[m.length-2]][m[m.length-1]],m.push(j);break;case 3:return!0}}return!0}},o=function(){var h={EOF:1,parseError:function(p,m){if(this.yy.parser)this.yy.parser.parseError(p,m);else throw new Error(p)},setInput:function(f,p){return this.yy=p||this.yy||{},this._input=f,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 f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},unput:function(f){var p=f.length,m=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var b=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),m.length-1&&(this.yylineno-=m.length-1);var _=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:m?(m.length===b.length?this.yylloc.first_column:0)+b[b.length-m.length].length-m[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(f){this.unput(this.match.slice(f))},pastInput:function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+`
`+p+"^"},test_match:function(f,p){var m,b,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),b=f[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,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(f[0].length),this.matched+=f[0],m=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var w in _)this[w]=_[w];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,m,b;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),w=0;w<_.length;w++)if(m=this._input.match(this.rules[_[w]]),m&&(!p||m[0].length>p[0].length)){if(p=m,b=w,this.options.backtrack_lexer){if(f=this.test_match(m,_[w]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,_[b]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var p=this.next();return p||this.lex()},begin:function(p){this.conditionStack.push(p)},popState:function(){var p=this.conditionStack.length-1;return p>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(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},pushState:function(p){this.begin(p)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(p,m,b,_){switch(b){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return h}();s.lexer=o;function u(){this.yy={}}return u.prototype=s,s.Parser=u,new u}();rdt.parser=rdt;const E5e=rdt;let A6e=[],k6e=[],zV={};const VEa=()=>{A6e=[],k6e=[],zV={},Mb()};class YEa{constructor(t,r,a=0){this.source=t,this.target=r,this.value=a}}const jEa=(e,t,r)=>{A6e.push(new YEa(e,t,r))};class WEa{constructor(t){this.ID=t}}const KEa=e=>(e=mi.sanitizeText(e,Qt()),zV[e]||(zV[e]=new WEa(e),k6e.push(zV[e])),zV[e]),XEa=()=>k6e,QEa=()=>A6e,ZEa=()=>({nodes:k6e.map(e=>({id:e.ID})),links:A6e.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),JEa={nodesMap:zV,getConfig:()=>Qt().sankey,getNodes:XEa,getLinks:QEa,getGraph:ZEa,addLink:jEa,findOrCreateNode:KEa,getAccTitle:Ev,setAccTitle:Pb,getAccDescription:Sv,setAccDescription:xv,getDiagramTitle:Tv,setDiagramTitle:Zw,clear:VEa},trr=class idt{static next(t){return new idt(t+ ++idt.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}};trr.count=0;let sAn=trr;const exa={left:MXn,right:PXn,center:BXn,justify:obt},txa=function(e,t,r,a){const{securityLevel:s,sankey:o}=Qt(),u=TZn.sankey;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=(o==null?void 0:o.width)??u.width,b=(o==null?void 0:o.height)??u.width,_=(o==null?void 0:o.useMaxWidth)??u.useMaxWidth,w=(o==null?void 0:o.nodeAlignment)??u.nodeAlignment,S=(o==null?void 0:o.prefix)??u.prefix,C=(o==null?void 0:o.suffix)??u.suffix,A=(o==null?void 0:o.showValues)??u.showValues,k=a.db.getGraph(),I=exa[w];FXn().nodeId(G=>G.id).nodeWidth(10).nodePadding(10+(A?15:0)).nodeAlign(I).extent([[0,0],[m,b]])(k);const P=cA(o1t);p.append("g").attr("class","nodes").selectAll(".node").data(k.nodes).join("g").attr("class","node").attr("id",G=>(G.uid=sAn.next("node-")).id).attr("transform",function(G){return"translate("+G.x0+","+G.y0+")"}).attr("x",G=>G.x0).attr("y",G=>G.y0).append("rect").attr("height",G=>G.y1-G.y0).attr("width",G=>G.x1-G.x0).attr("fill",G=>P(G.id));const M=({id:G,value:B})=>A?`${G}
${S}${Math.round(B*100)/100}${C}`:G;p.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(k.nodes).join("text").attr("x",G=>G.x0<m/2?G.x1+6:G.x0-6).attr("y",G=>(G.y1+G.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",G=>G.x0<m/2?"start":"end").text(M);const F=p.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(k.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),U=(o==null?void 0:o.linkColor)||"gradient";if(U==="gradient"){const G=F.append("linearGradient").attr("id",B=>(B.uid=sAn.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",B=>B.source.x1).attr("x2",B=>B.target.x0);G.append("stop").attr("offset","0%").attr("stop-color",B=>P(B.source.id)),G.append("stop").attr("offset","100%").attr("stop-color",B=>P(B.target.id))}let $;switch(U){case"gradient":$=G=>G.uid;break;case"source":$=G=>P(G.source.id);break;case"target":$=G=>P(G.target.id);break;default:$=U}F.append("path").attr("d",UXn()).attr("stroke",$).attr("stroke-width",G=>Math.max(1,G.width)),oL(void 0,p,0,_)},nxa={draw:txa},rxa=e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),ixa=E5e.parse.bind(E5e);E5e.parse=e=>ixa(rxa(e));const axa={parser:E5e,db:JEa,renderer:nxa},sxa=Object.freeze(Object.defineProperty({__proto__:null,diagram:axa},Symbol.toStringTag,{value:"Module"}));var oAn,lAn,adt=function(){var e=function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},t=[1,7],r=[1,13],a=[1,14],s=[1,15],o=[1,19],u=[1,16],h=[1,17],f=[1,18],p=[8,30],m=[8,21,28,29,30,31,32,40,44,47],b=[1,23],_=[1,24],w=[8,15,16,21,28,29,30,31,32,40,44,47],S=[8,15,16,21,27,28,29,30,31,32,40,44,47],C=[1,49],A={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",$[B-1]),F.setHierarchy($[B-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",$[B]),typeof $[B].length=="number"?this.$=$[B]:this.$=[$[B]];break;case 13:F.getLogger().debug("Rule: statement #2: ",$[B-1]),this.$=[$[B-1]].concat($[B]);break;case 14:F.getLogger().debug("Rule: link: ",$[B],L),this.$={edgeTypeStr:$[B],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",$[B-3],$[B-1],$[B]),this.$={edgeTypeStr:$[B],label:$[B-1]};break;case 18:const Z=parseInt($[B]),z=F.generateId();this.$={id:z,type:"space",label:"",width:Z,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",$[B-2],$[B-1],$[B]," typestr: ",$[B-1].edgeTypeStr);const Y=F.edgeStrToEdgeData($[B-1].edgeTypeStr);this.$=[{id:$[B-2].id,label:$[B-2].label,type:$[B-2].type,directions:$[B-2].directions},{id:$[B-2].id+"-"+$[B].id,start:$[B-2].id,end:$[B].id,label:$[B-1].label,type:"edge",directions:$[B].directions,arrowTypeEnd:Y,arrowTypeStart:"arrow_open"},{id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",$[B-1],$[B]),this.$={id:$[B-1].id,label:$[B-1].label,type:F.typeStr2Type($[B-1].typeStr),directions:$[B-1].directions,widthInColumns:parseInt($[B],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",$[B]),this.$={id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",$[B]),this.$={type:"column-setting",columns:$[B]==="auto"?-1:parseInt($[B])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",$[B-2],$[B-1]),F.generateId(),this.$={...$[B-2],type:"composite",children:$[B-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",$[B-2],$[B-1],$[B]);const W=F.generateId();this.$={id:W,type:"composite",label:"",children:$[B-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",$[B]),this.$={id:$[B]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",$[B-1],$[B]),this.$={id:$[B-1],label:$[B].label,typeStr:$[B].typeStr,directions:$[B].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",$[B]),this.$=[$[B]];break;case 32:F.getLogger().debug("Rule: dirList: ",$[B-1],$[B]),this.$=[$[B-1]].concat($[B]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",$[B-2],$[B-1],$[B]),this.$={typeStr:$[B-2]+$[B],label:$[B-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",$[B-3],$[B-2]," #3:",$[B-1],$[B]),this.$={typeStr:$[B-3]+$[B],label:$[B-2],directions:$[B-1]};break;case 35:case 36:this.$={type:"classDef",id:$[B-1].trim(),css:$[B].trim()};break;case 37:this.$={type:"applyClass",id:$[B-1].trim(),styleClass:$[B].trim()};break;case 38:this.$={type:"applyStyles",id:$[B-1].trim(),stylesStr:$[B].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:a,31:s,32:o,40:u,44:h,47:f}),e(m,[2,16],{14:22,15:b,16:_}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(w,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,32:o},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(S,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:o},{32:[2,14]},{17:[1,36]},e(w,[2,24]),{11:37,13:4,14:22,15:b,16:_,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{37:[1,47]},{34:48,35:C},{15:[1,50]},e(m,[2,27]),e(S,[2,33]),{39:[1,51]},{34:52,35:C,39:[2,31]},{32:[2,15]},e(S,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},parse:function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(){var Ce;return Ce=F.pop()||V.lex()||W,typeof Ce!="number"&&(Ce instanceof Array&&(F=Ce,Ce=F.pop()),Ce=P.symbols_[Ce]||Ce),Ce}for(var ie,ge,ce,be,ve={},De,ye,Ee,he;;){if(ge=M[M.length-1],this.defaultActions[ge]?ce=this.defaultActions[ge]:((ie===null||typeof ie>"u")&&(ie=se()),ce=G[ge]&&G[ge][ie]),typeof ce>"u"||!ce.length||!ce[0]){var we="";he=[];for(De in G[ge])this.terminals_[De]&&De>Y&&he.push("'"+this.terminals_[De]+"'");V.showPosition?we="Parse error on line "+(Z+1)+`:
`+V.showPosition()+`
Expecting `+he.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":we="Parse error on line "+(Z+1)+": Unexpected "+(ie==W?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(we,{text:V.match,token:this.terminals_[ie]||ie,line:V.yylineno,loc:te,expected:he})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ie);switch(ce[0]){case 1:M.push(ie),U.push(V.yytext),$.push(V.yylloc),M.push(ce[1]),ie=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(ye=this.productions_[ce[1]][1],ve.$=U[U.length-ye],ve._$={first_line:$[$.length-(ye||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ye||1)].first_column,last_column:$[$.length-1].last_column},ne&&(ve._$.range=[$[$.length-(ye||1)].range[0],$[$.length-1].range[1]]),be=this.performAction.apply(ve,[B,z,Z,j.yy,ce[1],U,$].concat(Q)),typeof be<"u")return be;ye&&(M=M.slice(0,-1*ye*2),U=U.slice(0,-1*ye),$=$.slice(0,-1*ye)),M.push(this.productions_[ce[1]][0]),U.push(ve.$),$.push(ve._$),Ee=G[M[M.length-2]][M[M.length-1]],M.push(Ee);break;case 3:return!0}}return!0}},k=function(){var N={EOF:1,parseError:function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},setInput:function(L,P){return this.yy=P||this.yy||{},this._input=L,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 L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},unput:function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=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),M.length-1&&(this.yylineno-=M.length-1);var U=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:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(L){this.unput(this.match.slice(L))},pastInput:function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+`
`+P+"^"},test_match:function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,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(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$<U.length;$++)if(M=this._input.match(this.rules[U[$]]),M&&(!P||M[0].length>P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P||this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){var P=this.conditionStack.length-1;return P>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(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},pushState:function(P){this.begin(P)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(P,M,F,U){switch(F){case 0:return 10;case 1:return P.getLogger().debug("Found space-block"),31;case 2:return P.getLogger().debug("Found nl-block"),31;case 3:return P.getLogger().debug("Found space-block"),29;case 4:P.getLogger().debug(".",M.yytext);break;case 5:P.getLogger().debug("_",M.yytext);break;case 6:return 5;case 7:return M.yytext=-1,28;case 8:return M.yytext=M.yytext.replace(/columns\s+/,""),P.getLogger().debug("COLUMNS (LEX)",M.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:P.getLogger().debug("LEX: POPPING STR:",M.yytext),this.popState();break;case 14:return P.getLogger().debug("LEX: STR end:",M.yytext),"STR";case 15:return M.yytext=M.yytext.replace(/space\:/,""),P.getLogger().debug("SPACE NUM (LEX)",M.yytext),21;case 16:return M.yytext="1",P.getLogger().debug("COLUMNS (LEX)",M.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),P.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),P.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),P.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),P.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),P.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),P.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),P.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),P.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),P.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),P.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return P.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return P.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return P.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return P.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return P.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return P.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return P.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),P.getLogger().debug("LEX ARR START"),38;case 75:return P.getLogger().debug("Lex: NODE_ID",M.yytext),32;case 76:return P.getLogger().debug("Lex: EOF",M.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:P.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:P.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return P.getLogger().debug("LEX: NODE_DESCR:",M.yytext),"NODE_DESCR";case 84:P.getLogger().debug("LEX POPPING"),this.popState();break;case 85:P.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (right): dir:",M.yytext),"DIR";case 87:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (left):",M.yytext),"DIR";case 88:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (x):",M.yytext),"DIR";case 89:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (y):",M.yytext),"DIR";case 90:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (up):",M.yytext),"DIR";case 91:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (down):",M.yytext),"DIR";case 92:return M.yytext="]>",P.getLogger().debug("Lex (ARROW_DIR end):",M.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 94:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 95:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 96:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 97:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 98:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 99:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return P.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 103:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 104:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 105:return P.getLogger().debug("Lex: COLON",M.yytext),M.yytext=M.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return I.prototype=A,A.Parser=I,new I}();adt.parser=adt;const oxa=adt;let V2={},kyt=[],Hae={};const cAn="color",uAn="fill",lxa="bgFill",nrr=",",cxa=Qt();let $se={};const uxa=e=>mi.sanitizeText(e,cxa),hxa=function(e,t=""){$se[e]===void 0&&($se[e]={id:e,styles:[],textStyles:[]});const r=$se[e];t!=null&&t.split(nrr).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(a.match(cAn)){const u=s.replace(uAn,lxa).replace(cAn,uAn);r.textStyles.push(u)}r.styles.push(s)})},dxa=function(e,t=""){const r=V2[e];t!=null&&(r.styles=t.split(nrr))},fxa=function(e,t){e.split(",").forEach(function(r){let a=V2[r];if(a===void 0){const s=r.trim();V2[s]={id:s,type:"na",children:[]},a=V2[s]}a.classes||(a.classes=[]),a.classes.push(t)})},rrr=(e,t)=>{const r=e.flat(),a=[];for(const s of r){if(s.label&&(s.label=uxa(s.label)),s.type==="classDef"){hxa(s.id,s.css);continue}if(s.type==="applyClass"){fxa(s.id,(s==null?void 0:s.styleClass)||"");continue}if(s.type==="applyStyles"){s!=null&&s.stylesStr&&dxa(s.id,s==null?void 0:s.stylesStr);continue}if(s.type==="column-setting")t.columns=s.columns||-1;else if(s.type==="edge")Hae[s.id]?Hae[s.id]++:Hae[s.id]=1,s.id=Hae[s.id]+"-"+s.id,kyt.push(s);else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=!V2[s.id];if(o?V2[s.id]=s:(s.type!=="na"&&(V2[s.id].type=s.type),s.label!==s.id&&(V2[s.id].label=s.label)),s.children&&rrr(s.children,s),s.type==="space"){const u=s.width||1;for(let h=0;h<u;h++){const f=ZAe(s);f.id=f.id+"-"+h,V2[f.id]=f,a.push(f)}}else o&&a.push(s)}}t.children=a};let Ryt=[],Use={id:"root",type:"composite",children:[],columns:-1};const pxa=()=>{ut.debug("Clear called"),Mb(),Use={id:"root",type:"composite",children:[],columns:-1},V2={root:Use},Ryt=[],$se={},kyt=[],Hae={}};function gxa(e){switch(ut.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return ut.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function mxa(e){switch(ut.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function bxa(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let hAn=0;const yxa=()=>(hAn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+hAn),vxa=e=>{Use.children=e,rrr(e,Use),Ryt=Use.children},_xa=e=>{const t=V2[e];return t?t.columns?t.columns:t.children?t.children.length:-1:-1},wxa=()=>[...Object.values(V2)],Exa=()=>Ryt||[],xxa=()=>kyt,Sxa=e=>V2[e],Txa=e=>{V2[e.id]=e},Cxa=()=>console,Axa=function(){return $se},kxa={getConfig:()=>Lf().block,typeStr2Type:gxa,edgeTypeStr2Type:mxa,edgeStrToEdgeData:bxa,getLogger:Cxa,getBlocksFlat:wxa,getBlocks:Exa,getEdges:xxa,setHierarchy:vxa,getBlock:Sxa,setBlock:Txa,getColumns:_xa,getClasses:Axa,clear:pxa,generateId:yxa},Rxa=kxa,AEe=(e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},Ixa=e=>`.label {
    font-family: ${e.fontFamily};
    color: ${e.nodeTextColor||e.textColor};
  }
  .cluster-label text {
    fill: ${e.titleColor};
  }
  .cluster-label span,p {
    color: ${e.titleColor};
  }



  .label text,span,p {
    fill: ${e.nodeTextColor||e.textColor};
    color: ${e.nodeTextColor||e.textColor};
  }

  .node rect,
  .node circle,
  .node ellipse,
  .node polygon,
  .node path {
    fill: ${e.mainBkg};
    stroke: ${e.nodeBorder};
    stroke-width: 1px;
  }
  .flowchart-label text {
    text-anchor: middle;
  }
  // .flowchart-label .text-outer-tspan {
  //   text-anchor: middle;
  // }
  // .flowchart-label .text-inner-tspan {
  //   text-anchor: start;
  // }

  .node .label {
    text-align: center;
  }
  .node.clickable {
    cursor: pointer;
  }

  .arrowheadPath {
    fill: ${e.arrowheadColor};
  }

  .edgePath .path {
    stroke: ${e.lineColor};
    stroke-width: 2.0px;
  }

  .flowchart-link {
    stroke: ${e.lineColor};
    fill: none;
  }

  .edgeLabel {
    background-color: ${e.edgeLabelBackground};
    rect {
      opacity: 0.5;
      background-color: ${e.edgeLabelBackground};
      fill: ${e.edgeLabelBackground};
    }
    text-align: center;
  }

  /* For html labels only */
  .labelBkg {
    background-color: ${AEe(e.edgeLabelBackground,.5)};
    // background-color:
  }

  .node .cluster {
    // fill: ${AEe(e.mainBkg,.5)};
    fill: ${AEe(e.clusterBkg,.5)};
    stroke: ${AEe(e.clusterBorder,.2)};
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    stroke-width: 1px;
  }

  .cluster text {
    fill: ${e.titleColor};
  }

  .cluster span,p {
    color: ${e.titleColor};
  }
  /* .cluster div {
    color: ${e.titleColor};
  } */

  div.mermaidTooltip {
    position: absolute;
    text-align: center;
    max-width: 200px;
    padding: 2px;
    font-family: ${e.fontFamily};
    font-size: 12px;
    background: ${e.tertiaryColor};
    border: 1px solid ${e.border2};
    border-radius: 2px;
    pointer-events: none;
    z-index: 100;
  }

  .flowchartTitleText {
    text-anchor: middle;
    font-size: 18px;
    fill: ${e.textColor};
  }
`,Nxa=Ixa;function irr(e,t,r=!1){var a,s,o;const u=e;let h="default";(((a=u==null?void 0:u.classes)==null?void 0:a.length)||0)>0&&(h=((u==null?void 0:u.classes)||[]).join(" ")),h=h+" flowchart-label";let f=0,p="",m;switch(u.type){case"round":f=5,p="rect";break;case"composite":f=0,p="composite",m=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":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"rect_left_inv_arrow":p="rect_left_inv_arrow";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"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const b=Hw((u==null?void 0:u.styles)||[]),_=u.label,w=u.size||{width:0,height:0,x:0,y:0};return{labelStyle:b.labelStyle,shape:p,labelText:_,rx:f,ry:f,class:h,style:b.style,id:u.id,directions:u.directions,width:w.width,height:w.height,x:w.x,y:w.y,positioned:r,intersect:void 0,type:u.type,padding:m??(((o=(s=Lf())==null?void 0:s.block)==null?void 0:o.padding)||0)}}async function Oxa(e,t,r){const a=irr(t,r,!1);if(a.type==="group")return;const s=await _6e(e,a),o=s.node().getBBox(),u=r.getBlock(a.id);u.size={width:o.width,height:o.height,x:0,y:0,node:s},r.setBlock(u),s.remove()}async function Lxa(e,t,r){const a=irr(t,r,!0);r.getBlock(a.id).type!=="space"&&(await _6e(e,a),t.intersect=a==null?void 0:a.intersect,Aht(a))}async function Iyt(e,t,r,a){for(const s of t)await a(e,s,r),s.children&&await Iyt(e,s.children,r,a)}async function Dxa(e,t,r){await Iyt(e,t,r,Oxa)}async function Mxa(e,t,r){await Iyt(e,t,r,Lxa)}async function Pxa(e,t,r,a,s){const o=new F1({multigraph:!0,compound:!0});o.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of r)u.size&&o.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of t)if(u.start&&u.end){const h=a.getBlock(u.start),f=a.getBlock(u.end);if(h!=null&&h.size&&(f!=null&&f.size)){const p=h.size,m=f.size,b=[{x:p.x,y:p.y},{x:p.x+(m.x-p.x)/2,y:p.y+(m.y-p.y)/2},{x:m.x,y:m.y}];await zer(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",o,s),u.label&&(await Kbt(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart}),await Uer({...u,x:b[1].x,y:b[1].y},{originalPath:b}))}}}const Y0=((lAn=(oAn=Qt())==null?void 0:oAn.block)==null?void 0:lAn.padding)||8;function Bxa(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const r=t%e,a=Math.floor(t/e);return{px:r,py:a}}const Fxa=e=>{let t=0,r=0;for(const a of e.children){const{width:s,height:o,x:u,y:h}=a.size||{width:0,height:0,x:0,y:0};ut.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",o,"x:",u,"y:",h,a.type),a.type!=="space"&&(s>t&&(t=s/(e.widthInColumns||1)),o>r&&(r=o))}return{width:t,height:r}};function sdt(e,t,r=0,a=0){var s,o,u,h,f,p,m,b,_,w,S;ut.debug("setBlockSizes abc95 (start)",e.id,(s=e==null?void 0:e.size)==null?void 0:s.x,"block width =",e==null?void 0:e.size,"sieblingWidth",r),(o=e==null?void 0:e.size)!=null&&o.width||(e.size={width:r,height:a,x:0,y:0});let C=0,A=0;if(((u=e.children)==null?void 0:u.length)>0){for(const U of e.children)sdt(U,t);const k=Fxa(e);C=k.width,A=k.height,ut.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",C,A);for(const U of e.children)U.size&&(ut.debug(`abc95 Setting size of children of ${e.id} id=${U.id} ${C} ${A} ${U.size}`),U.size.width=C*(U.widthInColumns||1)+Y0*((U.widthInColumns||1)-1),U.size.height=A,U.size.x=0,U.size.y=0,ut.debug(`abc95 updating size of ${e.id} children child:${U.id} maxWidth:${C} maxHeight:${A}`));for(const U of e.children)sdt(U,t,C,A);const I=e.columns||-1;let N=0;for(const U of e.children)N+=U.widthInColumns||1;let L=e.children.length;I>0&&I<N&&(L=I),e.widthInColumns;const P=Math.ceil(N/L);let M=L*(C+Y0)+Y0,F=P*(A+Y0)+Y0;if(M<r){ut.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${r} sieblingHeight ${a} width ${M}`),M=r,F=a;const U=(r-L*Y0-Y0)/L,$=(a-P*Y0-Y0)/P;ut.debug("Size indata abc88",e.id,"childWidth",U,"maxWidth",C),ut.debug("Size indata abc88",e.id,"childHeight",$,"maxHeight",A),ut.debug("Size indata abc88 xSize",L,"padding",Y0);for(const G of e.children)G.size&&(G.size.width=U,G.size.height=$,G.size.x=0,G.size.y=0)}if(ut.debug(`abc95 (finale calc) ${e.id} xSize ${L} ySize ${P} columns ${I}${e.children.length} width=${Math.max(M,((h=e.size)==null?void 0:h.width)||0)}`),M<(((f=e==null?void 0:e.size)==null?void 0:f.width)||0)){M=((p=e==null?void 0:e.size)==null?void 0:p.width)||0;const U=I>0?Math.min(e.children.length,I):e.children.length;if(U>0){const $=(M-U*Y0-Y0)/U;ut.debug("abc95 (growing to fit) width",e.id,M,(m=e.size)==null?void 0:m.width,$);for(const G of e.children)G.size&&(G.size.width=$)}}e.size={width:M,height:F,x:0,y:0}}ut.debug("setBlockSizes abc94 (done)",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x,(_=e==null?void 0:e.size)==null?void 0:_.width,(w=e==null?void 0:e.size)==null?void 0:w.y,(S=e==null?void 0:e.size)==null?void 0:S.height)}function arr(e,t){var r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;ut.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(r=e==null?void 0:e.size)==null?void 0:r.x} y: ${(a=e==null?void 0:e.size)==null?void 0:a.y} width: ${(s=e==null?void 0:e.size)==null?void 0:s.width}`);const N=e.columns||-1;if(ut.debug("layoutBlocks columns abc95",e.id,"=>",N,e),e.children&&e.children.length>0){const L=((u=(o=e==null?void 0:e.children[0])==null?void 0:o.size)==null?void 0:u.width)||0,P=e.children.length*L+(e.children.length-1)*Y0;ut.debug("widthOfChildren 88",P,"posX");let M=0;ut.debug("abc91 block?.size?.x",e.id,(h=e==null?void 0:e.size)==null?void 0:h.x);let F=(f=e==null?void 0:e.size)!=null&&f.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((m=e==null?void 0:e.size)==null?void 0:m.width)/2||0):-Y0,U=0;for(const $ of e.children){const G=e;if(!$.size)continue;const{width:B,height:Z}=$.size,{px:z,py:Y}=Bxa(N,M);if(Y!=U&&(U=Y,F=(b=e==null?void 0:e.size)!=null&&b.x?((_=e==null?void 0:e.size)==null?void 0:_.x)+(-((w=e==null?void 0:e.size)==null?void 0:w.width)/2||0):-Y0,ut.debug("New row in layout for block",e.id," and child ",$.id,U)),ut.debug(`abc89 layout blocks (child) id: ${$.id} Pos: ${M} (px, py) ${z},${Y} (${(S=G==null?void 0:G.size)==null?void 0:S.x},${(C=G==null?void 0:G.size)==null?void 0:C.y}) parent: ${G.id} width: ${B}${Y0}`),G.size){const W=B/2;$.size.x=F+Y0+W,ut.debug(`abc91 layout blocks (calc) px, pyid:${$.id} startingPos=X${F} new startingPosX${$.size.x} ${W} padding=${Y0} width=${B} halfWidth=${W} => x:${$.size.x} y:${$.size.y} ${$.widthInColumns} (width * (child?.w || 1)) / 2 ${B*(($==null?void 0:$.widthInColumns)||1)/2}`),F=$.size.x+W,$.size.y=G.size.y-G.size.height/2+Y*(Z+Y0)+Z/2+Y0,ut.debug(`abc88 layout blocks (calc) px, pyid:${$.id}startingPosX${F}${Y0}${W}=>x:${$.size.x}y:${$.size.y}${$.widthInColumns}(width * (child?.w || 1)) / 2${B*(($==null?void 0:$.widthInColumns)||1)/2}`)}$.children&&arr($),M+=($==null?void 0:$.widthInColumns)||1,ut.debug("abc88 columnsPos",$,M)}}ut.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(A=e==null?void 0:e.size)==null?void 0:A.x} y: ${(k=e==null?void 0:e.size)==null?void 0:k.y} width: ${(I=e==null?void 0:e.size)==null?void 0:I.width}`)}function srr(e,{minX:t,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:o,y:u,width:h,height:f}=e.size;o-h/2<t&&(t=o-h/2),u-f/2<r&&(r=u-f/2),o+h/2>a&&(a=o+h/2),u+f/2>s&&(s=u+f/2)}if(e.children)for(const o of e.children)({minX:t,minY:r,maxX:a,maxY:s}=srr(o,{minX:t,minY:r,maxX:a,maxY:s}));return{minX:t,minY:r,maxX:a,maxY:s}}function $xa(e){const t=e.getBlock("root");if(!t)return;sdt(t,e,0,0),arr(t),ut.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:a,maxX:s,maxY:o}=srr(t),u=o-a,h=s-r;return{x:r,y:a,width:h,height:u}}const Uxa=function(e,t){return t.db.getClasses()},zxa=async function(e,t,r,a){const{securityLevel:s,block:o}=Lf(),u=a.db;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`);jbt(p,["point","circle","cross"],a.type,t);const b=u.getBlocks(),_=u.getBlocksFlat(),w=u.getEdges(),S=p.insert("g").attr("class","block");await Dxa(S,b,u);const C=$xa(u);if(await Mxa(S,b,u),await Pxa(S,w,_,u,t),C){const A=C,k=Math.max(1,Math.round(.125*(A.width/A.height))),I=A.height+k+10,N=A.width+10,{useMaxWidth:L}=o;Db(p,I,N,!!L),ut.debug("Here Bounds",C,A),p.attr("viewBox",`${A.x-5} ${A.y-5} ${A.width+10} ${A.height+10}`)}cA(o1t)},Gxa={draw:zxa,getClasses:Uxa},qxa={parser:oxa,db:Rxa,renderer:Gxa,styles:Nxa},Hxa=Object.freeze(Object.defineProperty({__proto__:null,diagram:qxa},Symbol.toStringTag,{value:"Module"}));function Vxa(e){return typeof e=="string"&&/^data:image\/svg\+xml/i.test(e)}function Yxa(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function jxa(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Wxa(e){let t=[],r="",a=0;for(let s=0;s<e.length;s++){let o=e[s];o==="("&&a++,o===")"&&(a=Math.max(0,a-1)),o===";"&&a===0?(t.push(r),r=""):r+=o}return r.trim()&&t.push(r),t.map(s=>s.trim()).filter(Boolean)}function Kxa(e){let t=[],r="",a=0;for(let o=0;o<e.length;o++){let u=e[o];u==="("&&a++,u===")"&&(a=Math.max(0,a-1)),u===","&&a===0?(t.push(r.trim()),r=""):r+=u}r.trim()&&t.push(r.trim());let s=[];for(let o of t){if(/\binset\b/i.test(o))continue;let u=o.match(/-?\d+(?:\.\d+)?px/gi)||[],[h="0px",f="0px",p="0px"]=u,m=o.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),b=!!m&&m!==",";s.push(`drop-shadow(${h} ${f} ${p}${b?` ${m}`:""})`)}return s.join(" ")}function orr(e){let t=Wxa(e),r=null,a=null,s=null,o=[];for(let h of t){let f=h.indexOf(":");if(f<0)continue;let p=h.slice(0,f).trim().toLowerCase(),m=h.slice(f+1).trim();p==="box-shadow"?s=m:p==="filter"?r=m:p==="-webkit-filter"?a=m:o.push([p,m])}if(s){let h=Kxa(s);h&&(r=r?`${r} ${h}`:h,a=a?`${a} ${h}`:h)}let u=[...o];return r&&u.push(["filter",r]),a&&u.push(["-webkit-filter",a]),u.map(([h,f])=>`${h}:${f}`).join(";")}function Xxa(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(t,r,a)=>`${r}{${orr(a)}}`)}function Qxa(e){return e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,r)=>t.replace(r,Xxa(r))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(t,r,a)=>`style=${r}${orr(a)}${r}`),e}function Zxa(e){if(!cF()||!Vxa(e))return e;try{let t=Yxa(e),r=Qxa(t);return jxa(r)}catch{return e}}async function R6e(e,t){let{width:r,height:a,scale:s=1,dpr:o=1,meta:u={},backgroundColor:h}=t;e=Zxa(e);let f=new Image;f.loading="eager",f.decoding="sync",f.crossOrigin="anonymous",f.src=e,await f.decode();let p=f.naturalWidth,m=f.naturalHeight,b=Number.isFinite(u.w0)?u.w0:p,_=Number.isFinite(u.h0)?u.h0:m,w,S,C=Number.isFinite(r),A=Number.isFinite(a);if(C&&A)w=Math.max(1,r),S=Math.max(1,a);else if(C){let N=r/Math.max(1,b);w=r,S=_*N}else if(A){let N=a/Math.max(1,_);S=a,w=b*N}else w=p,S=m;w=w*s,S=S*s;let k=document.createElement("canvas");k.width=w*o,k.height=S*o,k.style.width=`${w}px`,k.style.height=`${S}px`;let I=k.getContext("2d");return o!==1&&I.scale(o,o),h&&(I.save(),I.fillStyle=h,I.fillRect(0,0,w,S),I.restore()),I.drawImage(f,0,0,w,S),k}async function lrr(e,t){let r=await R6e(e,t),a=new Image;return a.src=r.toDataURL(`image/${t.format}`,t.quality),await a.decode(),a.style.width=`${r.width/t.dpr}px`,a.style.height=`${r.height/t.dpr}px`,a}async function dAn(e,t){let{scale:r=1,width:a,height:s,meta:o={}}=t,u=Number.isFinite(a),h=Number.isFinite(s),f=Number.isFinite(r)&&r!==1||u||h;if(cF()&&f)return await lrr(e,{...t,format:"png",quality:1,meta:o});let p=new Image;if(p.decoding="sync",p.loading="eager",p.src=e,await p.decode(),u&&h)p.style.width=`${a}px`,p.style.height=`${s}px`;else if(u){let m=Number.isFinite(o.w0)?o.w0:p.naturalWidth,b=Number.isFinite(o.h0)?o.h0:p.naturalHeight,_=a/Math.max(1,m);p.style.width=`${a}px`,p.style.height=`${Math.round(b*_)}px`}else if(h){let m=Number.isFinite(o.w0)?o.w0:p.naturalWidth,b=Number.isFinite(o.h0)?o.h0:p.naturalHeight,_=s/Math.max(1,b);p.style.height=`${s}px`,p.style.width=`${Math.round(m*_)}px`}else{let m=Math.round(p.naturalWidth*r),b=Math.round(p.naturalHeight*r);if(p.style.width=`${m}px`,p.style.height=`${b}px`,typeof e=="string"&&e.startsWith("data:image/svg+xml"))try{let _=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${m}"`).replace(/height="[^"]*"/,`height="${b}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(_)}`,p.src=e}catch{}}return p}const kEe=Object.freeze(Object.defineProperty({__proto__:null,toImg:dAn,toSvg:dAn},Symbol.toStringTag,{value:"Module"})),fAn=Object.freeze(Object.defineProperty({__proto__:null,toCanvas:R6e},Symbol.toStringTag,{value:"Module"}));async function crr(e,t){let r=t.type;if(r==="svg"){let s=decodeURIComponent(e.split(",")[1]);return new Blob([s],{type:"image/svg+xml"})}let a=await R6e(e,t);return new Promise(s=>a.toBlob(o=>s(o),`image/${r}`,t.quality))}const pAn=Object.freeze(Object.defineProperty({__proto__:null,toBlob:crr},Symbol.toStringTag,{value:"Module"})),SB=Object.freeze(Object.defineProperty({__proto__:null,rasterize:lrr},Symbol.toStringTag,{value:"Module"}));async function Jxa(e,t){let r=((t==null?void 0:t.format)||(t==null?void 0:t.type)||"").toLowerCase(),a=r==="jpg"?"jpeg":r||"png",s=(t==null?void 0:t.filename)||`snapdom.${a}`,o={...t||{},format:a,type:a};if(o.dpr=1,a==="svg"){let f=await crr(e,{...o,type:"svg"}),p=URL.createObjectURL(f),m=document.createElement("a");m.href=p,m.download=s,m.click(),URL.revokeObjectURL(p);return}let u=await R6e(e,o),h=document.createElement("a");h.href=u.toDataURL(`image/${a}`,t==null?void 0:t.quality),h.download=s,h.click()}const eSa=Object.freeze(Object.defineProperty({__proto__:null,download:Jxa},Symbol.toStringTag,{value:"Module"}));export{AFr as $,L4a as A,D4a as B,z4a as C,C4a as D,T4a as E,n_ as F,odn as G,G4a as H,H4a as I,V4a as J,q4a as K,BTa as L,HQr as M,U4a as N,FTa as O,ldt as P,DOr as Q,dj as R,A4a as S,Y4a as T,X4a as U,zy as V,i5a as W,GF as X,PFr as Y,a5a as Z,Pat as _,Sj as a,T3a as a$,l5a as a0,o5a as a1,cUn as a2,s5a as a3,Cb as a4,vh as a5,k3e as a6,E5a as a7,k5a as a8,A5a as a9,V5a as aA,G5a as aB,H5a as aC,q5a as aD,z5a as aE,tCa as aF,EA as aG,S4a as aH,GSa as aI,jSa as aJ,b4a as aK,USa as aL,mSa as aM,x4a as aN,M3a as aO,dSa as aP,P3a as aQ,A3a as aR,k3a as aS,I3a as aT,N3a as aU,L3a as aV,uSa as aW,O3a as aX,vSa as aY,R3a as aZ,D3a as a_,yEi as aa,S5a as ab,C5a as ac,T5a as ad,u_n as ae,R5a as af,x5a as ag,U9 as ah,N5a as ai,I5a as aj,y5a as ak,gUn as al,v5a as am,xpt as an,_5a as ao,w5a as ap,O5a as aq,dzn as ar,hxi as as,B5a as at,F5a as au,$5a as av,M5a as aw,U5a as ax,P5a as ay,Y5a as az,PTa as b,dWr as b$,C3a as b0,hSa as b1,xSa as b2,d4a as b3,Y3a as b4,j3a as b5,H3a as b6,V3a as b7,Z3a as b8,o4a as b9,c4a as bA,aTa as bB,sTa as bC,oTa as bD,cTa as bE,hTa as bF,vTa as bG,fSa as bH,_Ta as bI,dTa as bJ,fTa as bK,pTa as bL,gTa as bM,mTa as bN,yTa as bO,bTa as bP,wTa as bQ,lTa as bR,uTa as bS,ETa as bT,xTa as bU,TTa as bV,CTa as bW,ATa as bX,kTa as bY,STa as bZ,oSa as b_,E4a as ba,_Sa as bb,ISa as bc,VYr as bd,HYr as be,YYr as bf,Q3a as bg,Q4a as bh,K3a as bi,X3a as bj,qYr as bk,eTa as bl,tTa as bm,nTa as bn,J3a as bo,rTa as bp,iTa as bq,JSa as br,wSa as bs,cSa as bt,sSa as bu,PSa as bv,zSa as bw,n4a as bx,m4a as by,$Sa as bz,e3a as c,h5a as c$,fWr as c0,RTa as c1,HSa as c2,pSa as c3,TSa as c4,w4a as c5,gSa as c6,y4a as c7,lSa as c8,FSa as c9,DSa as cA,RSa as cB,s4a as cC,a4a as cD,ySa as cE,h4a as cF,ASa as cG,QSa as cH,VSa as cI,XSa as cJ,KSa as cK,v4a as cL,ZSa as cM,Z4a as cN,r4a as cO,g4a as cP,x3a as cQ,E3a as cR,B3a as cS,z3a as cT,G3a as cU,q3a as cV,$3a as cW,U3a as cX,F3a as cY,c5a as cZ,d5a as c_,MSa as ca,kSa as cb,i4a as cc,u4a as cd,ITa as ce,NTa as cf,OTa as cg,_Wr as ch,CWr as ci,qSa as cj,l4a as ck,p4a as cl,YSa as cm,bSa as cn,BSa as co,t4a as cp,LSa as cq,WSa as cr,ESa as cs,SSa as ct,CSa as cu,f4a as cv,e4a as cw,_4a as cx,NSa as cy,OSa as cz,sOr as d,p5a as d0,G6n as d1,V6n as d2,q6n as d3,u5a as d4,g5a as d5,f5a as d6,b5a as d7,m5a as d8,U6n as d9,J4a as da,W4a as db,K4a as dc,LTa as dd,DTa as de,MTa as df,NWr as dg,eCa as dh,sCa as di,oCa as dj,Fat as e,R4a as f,UTa as g,Yri as h,RAn as i,N4a as j,NAn as k,T9n as l,r5a as m,O4a as n,B4a as o,J5a as p,P4a as q,k4a as r,Gse as s,F4a as t,I4a as u,$4a as v,NOr as w,OOr as x,pj as y,M4a as z};
